# DropPunchAngle
function DropPunchAngle(state, player)DropPunchAngle
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `DropPunchAngle`. |
player | dynamic | — | The player input consumed by `DropPunchAngle`. |
src/miniquake/sv_user.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/input.ml as input → src/miniquake/input.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_main.ml as netmain → src/miniquake/net_main.mlminiquake/physics.ml as physics → src/miniquake/physics.mlminiquake/server.ml as runtime → src/miniquake/server.mlminiquake/sizebuf.ml as sz → src/miniquake/sizebuf.mlminiquake/types.ml as t → src/miniquake/types.mlminiquake/view.ml as view → src/miniquake/view.mlminiquake/world_bsp.ml as world → src/miniquake/world_bsp.mlfunction DropPunchAngle(state, player)DropPunchAngle
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `DropPunchAngle`. |
player | dynamic | — | The player input consumed by `DropPunchAngle`. |
function quakeFloat(value)Implements the `quakeFloat` operation for `miniquake.sv_user` (quake float).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `quakeFloat`. |
function SV_Accelerate(state, player, wishDirection, wishSpeed)SV_Accelerate. One MiniLang entry represents both the disabled experimental #if 0 definition and the active no-argument definition in the source file.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_Accelerate`. |
player | dynamic | — | The player input consumed by `SV_Accelerate`. |
wishDirection | dynamic | — | The wish direction input consumed by `SV_Accelerate`. |
wishSpeed | dynamic | — | The wish speed input consumed by `SV_Accelerate`. |
function SV_AirAccelerate(state, player, wishVelocity, wishSpeed)SV_AirAccelerate
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_AirAccelerate`. |
player | dynamic | — | The player input consumed by `SV_AirAccelerate`. |
wishVelocity | dynamic | — | The wish velocity input consumed by `SV_AirAccelerate`. |
wishSpeed | dynamic | — | The wish speed input consumed by `SV_AirAccelerate`. |
function SV_AirMove(state, player, command, map, entityIndex)SV_AirMove
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_AirMove`. |
player | dynamic | — | The player input consumed by `SV_AirMove`. |
command | dynamic | — | Console or protocol command to execute. |
map | dynamic | — | The map input consumed by `SV_AirMove`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_ClientThink(state, clientValue, player, map)SV_ClientThink
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_ClientThink`. |
clientValue | dynamic | — | The client value input consumed by `SV_ClientThink`. |
player | dynamic | — | The player input consumed by `SV_ClientThink`. |
map | dynamic | — | The map input consumed by `SV_ClientThink`. |
function SV_IdealPitchFromHeights(state, heights, clientIndex)Apply the Quake-compatible sv ideal pitch from heights behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_IdealPitchFromHeights`. |
heights | dynamic | — | The heights input consumed by `SV_IdealPitchFromHeights`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_ReadClientMessage(state, clientValue, data, player)SV_ReadClientMessage. The original outer NET_GetMessage loop lives in SV_RunClients; this entry consumes one already-framed reliable/unreliable payload and preserves the exact clc_* command ordering.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_ReadClientMessage`. |
clientValue | dynamic | — | The client value input consumed by `SV_ReadClientMessage`. |
data | dynamic | — | Input data consumed by the operation. |
player | dynamic | — | The player input consumed by `SV_ReadClientMessage`. |
function SV_ReadClientMove(state, reader, clientValue, player)SV_ReadClientMove
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_ReadClientMove`. |
reader | dynamic | — | The reader input consumed by `SV_ReadClientMove`. |
clientValue | dynamic | — | The client value input consumed by `SV_ReadClientMove`. |
player | dynamic | — | The player input consumed by `SV_ReadClientMove`. |
function SV_RunClients(state, player)SV_RunClients
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_RunClients`. |
player | dynamic | — | The player input consumed by `SV_RunClients`. |
function SV_SetIdealPitch(state, player, map, clientIndex)SV_SetIdealPitch
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_SetIdealPitch`. |
player | dynamic | — | The player input consumed by `SV_SetIdealPitch`. |
map | dynamic | — | The map input consumed by `SV_SetIdealPitch`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_UserFriction(state, player, map, entityIndex)SV_UserFriction
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_UserFriction`. |
player | dynamic | — | The player input consumed by `SV_UserFriction`. |
map | dynamic | — | The map input consumed by `SV_UserFriction`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_UserInit(server)Apply the Quake-compatible sv user init behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
function SV_UserSetFrameTime(state, frameTime)Apply the Quake-compatible sv user set frame time behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_UserSetFrameTime`. |
frameTime | dynamic | — | Time value used by the operation. |
function SV_UserSetFrozen(state, frozen)Apply the Quake-compatible sv user set frozen behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_UserSetFrozen`. |
frozen | dynamic | — | The frozen input consumed by `SV_UserSetFrozen`. |
function SV_UserSetMovement(state, maxSpeed, acceleration, friction, edgeFriction, stopSpeed)Apply the Quake-compatible sv user set movement behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_UserSetMovement`. |
maxSpeed | dynamic | — | The max speed input consumed by `SV_UserSetMovement`. |
acceleration | dynamic | — | The acceleration input consumed by `SV_UserSetMovement`. |
friction | dynamic | — | The friction input consumed by `SV_UserSetMovement`. |
edgeFriction | dynamic | — | The edge friction input consumed by `SV_UserSetMovement`. |
stopSpeed | dynamic | — | The stop speed input consumed by `SV_UserSetMovement`. |
function SV_UserSetPaused(state, paused, keyDestination)Apply the Quake-compatible sv user set paused behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_UserSetPaused`. |
paused | dynamic | — | The paused input consumed by `SV_UserSetPaused`. |
keyDestination | dynamic | — | The key destination input consumed by `SV_UserSetPaused`. |
function SV_WaterJump(state, player)SV_WaterJump
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_WaterJump`. |
player | dynamic | — | The player input consumed by `SV_WaterJump`. |
function SV_WaterMove(state, player, command)SV_WaterMove
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `SV_WaterMove`. |
player | dynamic | — | The player input consumed by `SV_WaterMove`. |
command | dynamic | — | Console or protocol command to execute. |
function svuAllowedCommand(text)Implements the `svuAllowedCommand` operation for `miniquake.sv_user` (svu allowed command).
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function svuExecuteString(state, clientValue, player, text)Implements the `svuExecuteString` operation for `miniquake.sv_user` (svu execute string).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `svuExecuteString`. |
clientValue | dynamic | — | The client value input consumed by `svuExecuteString`. |
player | dynamic | — | The player input consumed by `svuExecuteString`. |
text | dynamic | — | Text to parse or process. |
function svuReadNetworkMessages(state, clientValue, player)Implements the `svuReadNetworkMessages` operation for `miniquake.sv_user` (svu read network messages).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `svuReadNetworkMessages`. |
clientValue | dynamic | — | The client value input consumed by `svuReadNetworkMessages`. |
player | dynamic | — | The player input consumed by `svuReadNetworkMessages`. |
miniquake.sv_user.SvUserState struct
function svuStartsWith(text, prefix)Implements the `svuStartsWith` operation for `miniquake.sv_user` (svu starts with).
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
prefix | dynamic | — | The prefix input consumed by `svuStartsWith`. |
function svuTraceIdealPitch(state, player, map, clientIndex)Implements the `svuTraceIdealPitch` operation for `miniquake.sv_user` (svu trace ideal pitch).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.sv_user` state used by `svuTraceIdealPitch`. |
player | dynamic | — | The player input consumed by `svuTraceIdealPitch`. |
map | dynamic | — | The map input consumed by `svuTraceIdealPitch`. |
clientIndex | dynamic | — | Zero-based index of the requested entry. |