# MULTICAST_ALL
const MULTICAST_ALL = 0Defines the multicast all value used by `miniquake.sv_main`.
src/miniquake/sv_main.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/edict.ml as edict → src/miniquake/edict.mlminiquake/format/progs.ml as progs → src/miniquake/format/progs.mlminiquake/mathlib.ml as math → src/miniquake/mathlib.mlminiquake/message.ml as msg → src/miniquake/message.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/net_loop.ml as netloop → src/miniquake/net_loop.mlminiquake/net_main.ml as netmain → src/miniquake/net_main.mlminiquake/physics.ml as physics → src/miniquake/physics.mlminiquake/protocol_events.ml as protocolEvents → src/miniquake/protocol_events.mlminiquake/protocol_serverdata.ml as serverData → src/miniquake/protocol_serverdata.mlminiquake/protocol_transients.ml as transients → src/miniquake/protocol_transients.mlminiquake/protocol_update.ml as protocolUpdate → src/miniquake/protocol_update.mlminiquake/quakec/vm.ml as vm → src/miniquake/quakec/vm.mlminiquake/server.ml as runtime → src/miniquake/server.mlminiquake/server_move.ml as serverMove → src/miniquake/server_move.mlminiquake/sizebuf.ml as sz → src/miniquake/sizebuf.mlminiquake/types.ml as t → src/miniquake/types.mlminiquake/world_bsp.ml as world → src/miniquake/world_bsp.mlconst MULTICAST_ALL = 0Defines the multicast all value used by `miniquake.sv_main`.
const MULTICAST_PHS = 2Defines the multicast phs value used by `miniquake.sv_main`.
const MULTICAST_PVS = 1Defines the multicast pvs value used by `miniquake.sv_main`.
function SV_AddClientToServer(state, socket)Public server.h spelling retained for callers that already own a socket.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_AddClientToServer`. |
socket | dynamic | — | Network socket used for communication. |
function SV_AddToFatPVS(state, origin, nodeIndex)SV_AddToFatPVS
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_AddToFatPVS`. |
origin | dynamic | — | World-space origin of the operation. |
nodeIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_AddUpdates(state)Apply the Quake-compatible sv add updates behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_AddUpdates`. |
function SV_BroadcastPrintf(state, text)Apply the Quake-compatible sv broadcast printf behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_BroadcastPrintf`. |
text | dynamic | — | Text to parse or process. |
function SV_CheckBottom(state, entityIndex)Apply the Quake-compatible sv check bottom behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_CheckBottom`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_CheckForNewClients(state)SV_CheckForNewClients
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_CheckForNewClients`. |
function SV_CleanupEnts(state)SV_CleanupEnts
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_CleanupEnts`. |
function SV_ClearDatagram(state)SV_ClearDatagram
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_ClearDatagram`. |
function SV_ClientPrintf(state, clientValue, text)Apply the Quake-compatible sv client printf behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_ClientPrintf`. |
clientValue | dynamic | — | The client value input consumed by `SV_ClientPrintf`. |
text | dynamic | — | Text to parse or process. |
function SV_ClientThink(state, player, frameTime, registry)Apply the Quake-compatible sv client think behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_ClientThink`. |
player | dynamic | — | The player input consumed by `SV_ClientThink`. |
frameTime | dynamic | — | Time value used by the operation. |
registry | dynamic | — | The registry input consumed by `SV_ClientThink`. |
function SV_ConnectClient(state, clientIndex, socket)SV_ConnectClient
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_ConnectClient`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
socket | dynamic | — | Network socket used for communication. |
function SV_CreateBaseline(state)SV_CreateBaseline
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_CreateBaseline`. |
function SV_DropClient(state, clientValue, crashed)SV_DropClient is declared by server.h and implemented by host.c in the original tree; it lives here because all message lifecycle decisions call it.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_DropClient`. |
clientValue | dynamic | — | The client value input consumed by `SV_DropClient`. |
crashed | dynamic | — | The crashed input consumed by `SV_DropClient`. |
function SV_FatPVS(state, origin)SV_FatPVS
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_FatPVS`. |
origin | dynamic | — | World-space origin of the operation. |
function SV_Init(maxClients)SV_Init
| Parameter | Type | Default | Description |
|---|---|---|---|
maxClients | dynamic | — | The max clients input consumed by `SV_Init`. |
function SV_ModelIndex(state, name)SV_ModelIndex
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_ModelIndex`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function SV_movestep(state, entityIndex, movement, relink)Apply the Quake-compatible sv movestep behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_movestep`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
movement | dynamic | — | The movement input consumed by `SV_movestep`. |
relink | dynamic | — | The relink input consumed by `SV_movestep`. |
function SV_MoveToGoal(state, entityIndex, distance)Apply the Quake-compatible sv move to goal behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_MoveToGoal`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
distance | dynamic | — | The distance input consumed by `SV_MoveToGoal`. |
function SV_Multicast(state, origin, source, mode)Protocol-15 has no QuakeWorld multicast opcode. The stock MiniQuake server routes transient events through datagram/reliable_datagram. This helper exposes equivalent target selection for private engine producers: ALL is a reliable broadcast, PVS/PHS append only to active clients in the selected visibility set. PHS falls back to PVS because MiniQuake 1.09 does not build a separate hearability table.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_Multicast`. |
origin | dynamic | — | World-space origin of the operation. |
source | dynamic | — | Source value or collection to read. |
mode | dynamic | — | The mode input consumed by `SV_Multicast`. |
function SV_Physics(state, frameTime, gravity, maxVelocity)Apply the Quake-compatible sv physics behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_Physics`. |
frameTime | dynamic | — | Time value used by the operation. |
gravity | dynamic | — | The gravity input consumed by `SV_Physics`. |
maxVelocity | dynamic | — | The max velocity input consumed by `SV_Physics`. |
function SV_RunClients(state, player)Apply the Quake-compatible sv run clients behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_RunClients`. |
player | dynamic | — | The player input consumed by `SV_RunClients`. |
function SV_SaveSpawnparms(state)SV_SaveSpawnparms
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SaveSpawnparms`. |
function SV_SendClientDatagram(state, clientValue, player)SV_SendClientDatagram
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SendClientDatagram`. |
clientValue | dynamic | — | The client value input consumed by `SV_SendClientDatagram`. |
player | dynamic | — | The player input consumed by `SV_SendClientDatagram`. |
function SV_SendClientMessages(state, player)SV_SendClientMessages
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SendClientMessages`. |
player | dynamic | — | The player input consumed by `SV_SendClientMessages`. |
function SV_SendNop(state, clientValue)SV_SendNop
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SendNop`. |
clientValue | dynamic | — | The client value input consumed by `SV_SendNop`. |
function SV_SendReconnect(state)SV_SendReconnect
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SendReconnect`. |
function SV_SendServerinfo(state, clientValue)SV_SendServerinfo
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SendServerinfo`. |
clientValue | dynamic | — | The client value input consumed by `SV_SendServerinfo`. |
function SV_SetClientFrags(state, clientIndex, frags)Apply the Quake-compatible sv set client frags behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetClientFrags`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
frags | dynamic | — | The frags input consumed by `SV_SetClientFrags`. |
function SV_SetDropAsap(state, clientIndex, enabled)Apply the Quake-compatible sv set drop asap behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetDropAsap`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
enabled | dynamic | — | Whether the optional behavior is enabled. |
function SV_SetIdealPitch(state, clientIndex, player, pitchScale)SV_SetIdealPitch. The result is cached per client for hosts that keep their player state outside QuakeC and is also written to the edict field when a VM is active.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetIdealPitch`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
player | dynamic | — | The player input consumed by `SV_SetIdealPitch`. |
pitchScale | dynamic | — | The pitch scale input consumed by `SV_SetIdealPitch`. |
function SV_SetNetworkState(state, network)Apply the Quake-compatible sv set network state behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetNetworkState`. |
network | dynamic | — | The network input consumed by `SV_SetNetworkState`. |
function SV_SetRealtime(state, value)Apply the Quake-compatible sv set realtime behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetRealtime`. |
value | dynamic | — | Value consumed by `SV_SetRealtime`. |
function SV_SetStandardQuake(state, enabled)Apply the Quake-compatible sv set standard quake behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SetStandardQuake`. |
enabled | dynamic | — | Whether the optional behavior is enabled. |
function SV_SpawnServer(state, filesystem, mapName, skill, registry, commandSystem)SV_SpawnServer is intentionally present even though the inventory's C parser drops the preprocessor-split definition. It preserves sockets/spawn parms, loads and settles QuakeC through the shared low-level runtime, then restarts the four-stage signon on the new map.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_SpawnServer`. |
filesystem | dynamic | — | The filesystem input consumed by `SV_SpawnServer`. |
mapName | dynamic | — | Name of the map to load or inspect. |
skill | dynamic | — | The skill input consumed by `SV_SpawnServer`. |
registry | dynamic | — | The registry input consumed by `SV_SpawnServer`. |
commandSystem | dynamic | — | The command system input consumed by `SV_SpawnServer`. |
function SV_StartParticle(state, origin, direction, color, count)SV_StartParticle
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_StartParticle`. |
origin | dynamic | — | World-space origin of the operation. |
direction | dynamic | — | The direction input consumed by `SV_StartParticle`. |
color | dynamic | — | Color value used by the operation. |
count | dynamic | — | Number of entries or units to process. |
function SV_StartSound(state, entityIndex, channel, sample, volume, attenuation)SV_StartSound
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_StartSound`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
channel | dynamic | — | The channel input consumed by `SV_StartSound`. |
sample | dynamic | — | The sample input consumed by `SV_StartSound`. |
volume | dynamic | — | The volume input consumed by `SV_StartSound`. |
attenuation | dynamic | — | The attenuation input consumed by `SV_StartSound`. |
function SV_UpdateToReliableMessages(state)SV_UpdateToReliableMessages
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_UpdateToReliableMessages`. |
function SV_WriteClientdataToMessage(state, clientValue, player, buffer)SV_WriteClientdataToMessage
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_WriteClientdataToMessage`. |
clientValue | dynamic | — | The client value input consumed by `SV_WriteClientdataToMessage`. |
player | dynamic | — | The player input consumed by `SV_WriteClientdataToMessage`. |
buffer | dynamic | — | The buffer input consumed by `SV_WriteClientdataToMessage`. |
function SV_WriteEntitiesToClient(state, clientEntity, buffer)Apply the Quake-compatible sv write entities to client behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_WriteEntitiesToClient`. |
clientEntity | dynamic | — | The client entity input consumed by `SV_WriteEntitiesToClient`. |
buffer | dynamic | — | The buffer input consumed by `SV_WriteEntitiesToClient`. |
function SV_WriteEntitiesToClientReserved(state, clientEntity, buffer, reservedBytes)SV_WriteEntitiesToClient with an optional tail budget supplied by SV_SendClientDatagram for frame-local sounds and temporary entities.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_WriteEntitiesToClientReserved`. |
clientEntity | dynamic | — | The client entity input consumed by `SV_WriteEntitiesToClientReserved`. |
buffer | dynamic | — | The buffer input consumed by `SV_WriteEntitiesToClientReserved`. |
reservedBytes | dynamic | — | Byte data consumed by the operation. |
function SV_WriteEntityDelta(state, buffer, item)Exact Protocol-15 fast-update encoder used by SV_WriteEntitiesToClient.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `SV_WriteEntityDelta`. |
buffer | dynamic | — | The buffer input consumed by `SV_WriteEntityDelta`. |
item | dynamic | — | The item input consumed by `SV_WriteEntityDelta`. |
function svmAbsolute(value)Apply server-side absolute semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `svmAbsolute`. |
miniquake.sv_main.SvMainState struct
function svmAppendDatagram(destination, source)Apply server-side append datagram semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | Destination value or collection to update. |
source | dynamic | — | Source value or collection to read. |
function svmAppendServerInfo(server, clientValue)Apply server-side append server info semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
clientValue | dynamic | — | The client value input consumed by `svmAppendServerInfo`. |
function svmBoxPlaneSides(mins, maxs, plane)Apply server-side box plane sides semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
mins | dynamic | — | The mins input consumed by `svmBoxPlaneSides`. |
maxs | dynamic | — | The maxs input consumed by `svmBoxPlaneSides`. |
plane | dynamic | — | The plane input consumed by `svmBoxPlaneSides`. |
function svmClampByte(value)Apply server-side clamp byte semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `svmClampByte`. |
function svmClientItems(state, clientValue, player)Apply server-side client items semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmClientItems`. |
clientValue | dynamic | — | The client value input consumed by `svmClientItems`. |
player | dynamic | — | The player input consumed by `svmClientItems`. |
function svmCurrentFrags(state, clientIndex)Apply server-side current frags semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmCurrentFrags`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
function svmEntityBits(item)Apply server-side entity bits semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
item | dynamic | — | The item input consumed by `svmEntityBits`. |
function svmEntityCenter(item)Apply server-side entity center semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
item | dynamic | — | The item input consumed by `svmEntityCenter`. |
function svmEntityVisible(state, item, clientEdict, pvs)Apply server-side entity visible semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmEntityVisible`. |
item | dynamic | — | The item input consumed by `svmEntityVisible`. |
clientEdict | dynamic | — | The client edict input consumed by `svmEntityVisible`. |
pvs | dynamic | — | The pvs input consumed by `svmEntityVisible`. |
function svmFreeClientIndex(state)Apply server-side free client index semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmFreeClientIndex`. |
function svmLeafBitVisible(pvs, leafIndex)Apply server-side leaf bit visible semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
pvs | dynamic | — | The pvs input consumed by `svmLeafBitVisible`. |
leafIndex | dynamic | — | Zero-based index of the requested entry. |
function svmLocalModels()Apply server-side local models semantics.
function svmOrBytes(destination, source, count)Apply server-side or bytes semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | Destination value or collection to update. |
source | dynamic | — | Source value or collection to read. |
count | dynamic | — | Number of entries or units to process. |
function svmProgsCrc(server)Apply server-side progs crc semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
function svmQcFloat(state, entityIndex, fieldName, fallback)Apply server-side qc float semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmQcFloat`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
fieldName | dynamic | — | Name that identifies the requested value or resource. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
function svmQcVector(state, entityIndex, fieldName, fallback)Apply server-side qc vector semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmQcVector`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
fieldName | dynamic | — | Name that identifies the requested value or resource. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
function svmResetClient(state, clientIndex, socket)Apply server-side reset client semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmResetClient`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
socket | dynamic | — | Network socket used for communication. |
function svmSoundIndex(server, sample)Apply server-side sound index semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
sample | dynamic | — | The sample input consumed by `svmSoundIndex`. |
function svmTouchedLeaves(map, nodeIndex, mins, maxs, result)Apply server-side touched leaves semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
map | dynamic | — | The map input consumed by `svmTouchedLeaves`. |
nodeIndex | dynamic | — | Zero-based index of the requested entry. |
mins | dynamic | — | The mins input consumed by `svmTouchedLeaves`. |
maxs | dynamic | — | The maxs input consumed by `svmTouchedLeaves`. |
result | dynamic | — | Result value to report or translate into a status code. |
function svmWeaponModelIndex(state, entityIndex, fallback)Apply server-side weapon model index semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmWeaponModelIndex`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
function svmWriteBaseline(buffer, entityNumber, baseline)Apply server-side write baseline semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `svmWriteBaseline`. |
entityNumber | dynamic | — | The entity number input consumed by `svmWriteBaseline`. |
baseline | dynamic | — | The baseline input consumed by `svmWriteBaseline`. |
function svmWriteDamage(state, clientValue, buffer)Apply server-side write damage semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmWriteDamage`. |
clientValue | dynamic | — | The client value input consumed by `svmWriteDamage`. |
buffer | dynamic | — | The buffer input consumed by `svmWriteDamage`. |
function svmWriteDamageAndAngle(state, clientValue, player, buffer)Apply server-side write damage and angle semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmWriteDamageAndAngle`. |
clientValue | dynamic | — | The client value input consumed by `svmWriteDamageAndAngle`. |
player | dynamic | — | The player input consumed by `svmWriteDamageAndAngle`. |
buffer | dynamic | — | The buffer input consumed by `svmWriteDamageAndAngle`. |
function svmWriteFixAngle(state, clientValue, player, buffer)Apply server-side write fix angle semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_main` state used by `svmWriteFixAngle`. |
clientValue | dynamic | — | The client value input consumed by `svmWriteFixAngle`. |
player | dynamic | — | The player input consumed by `svmWriteFixAngle`. |
buffer | dynamic | — | The buffer input consumed by `svmWriteFixAngle`. |
function svmZeroSpawnParms()Apply server-side zero spawn parms semantics.