MiniQuake

src/miniquake/sv_user.ml

Package
miniquake.sv_user
Reachable
No

Imports

Declarations

DropPunchAngle

function DropPunchAngle(state, player)

DropPunchAngle

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `DropPunchAngle`.
playerdynamic—The player input consumed by `DropPunchAngle`.

View source

quakeFloat

function quakeFloat(value)

Implements the `quakeFloat` operation for `miniquake.sv_user` (quake float).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `quakeFloat`.

View source

SV_Accelerate

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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_Accelerate`.
playerdynamic—The player input consumed by `SV_Accelerate`.
wishDirectiondynamic—The wish direction input consumed by `SV_Accelerate`.
wishSpeeddynamic—The wish speed input consumed by `SV_Accelerate`.

View source

SV_AirAccelerate

function SV_AirAccelerate(state, player, wishVelocity, wishSpeed)

SV_AirAccelerate

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_AirAccelerate`.
playerdynamic—The player input consumed by `SV_AirAccelerate`.
wishVelocitydynamic—The wish velocity input consumed by `SV_AirAccelerate`.
wishSpeeddynamic—The wish speed input consumed by `SV_AirAccelerate`.

View source

SV_AirMove

function SV_AirMove(state, player, command, map, entityIndex)

SV_AirMove

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_AirMove`.
playerdynamic—The player input consumed by `SV_AirMove`.
commanddynamic—Console or protocol command to execute.
mapdynamic—The map input consumed by `SV_AirMove`.
entityIndexdynamic—Zero-based index of the requested entry.

View source

SV_ClientThink

function SV_ClientThink(state, clientValue, player, map)

SV_ClientThink

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_ClientThink`.
clientValuedynamic—The client value input consumed by `SV_ClientThink`.
playerdynamic—The player input consumed by `SV_ClientThink`.
mapdynamic—The map input consumed by `SV_ClientThink`.

View source

SV_IdealPitchFromHeights

function SV_IdealPitchFromHeights(state, heights, clientIndex)

Apply the Quake-compatible sv ideal pitch from heights behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_IdealPitchFromHeights`.
heightsdynamic—The heights input consumed by `SV_IdealPitchFromHeights`.
clientIndexdynamic—Zero-based index of the requested entry.

View source

SV_ReadClientMessage

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.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_ReadClientMessage`.
clientValuedynamic—The client value input consumed by `SV_ReadClientMessage`.
datadynamic—Input data consumed by the operation.
playerdynamic—The player input consumed by `SV_ReadClientMessage`.

View source

SV_ReadClientMove

function SV_ReadClientMove(state, reader, clientValue, player)

SV_ReadClientMove

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_ReadClientMove`.
readerdynamic—The reader input consumed by `SV_ReadClientMove`.
clientValuedynamic—The client value input consumed by `SV_ReadClientMove`.
playerdynamic—The player input consumed by `SV_ReadClientMove`.

View source

SV_RunClients

function SV_RunClients(state, player)

SV_RunClients

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_RunClients`.
playerdynamic—The player input consumed by `SV_RunClients`.

View source

SV_SetIdealPitch

function SV_SetIdealPitch(state, player, map, clientIndex)

SV_SetIdealPitch

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_SetIdealPitch`.
playerdynamic—The player input consumed by `SV_SetIdealPitch`.
mapdynamic—The map input consumed by `SV_SetIdealPitch`.
clientIndexdynamic—Zero-based index of the requested entry.

View source

SV_UserFriction

function SV_UserFriction(state, player, map, entityIndex)

SV_UserFriction

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_UserFriction`.
playerdynamic—The player input consumed by `SV_UserFriction`.
mapdynamic—The map input consumed by `SV_UserFriction`.
entityIndexdynamic—Zero-based index of the requested entry.

View source

SV_UserInit

function SV_UserInit(server)

Apply the Quake-compatible sv user init behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.

View source

SV_UserSetFrameTime

function SV_UserSetFrameTime(state, frameTime)

Apply the Quake-compatible sv user set frame time behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_UserSetFrameTime`.
frameTimedynamic—Time value used by the operation.

View source

SV_UserSetFrozen

function SV_UserSetFrozen(state, frozen)

Apply the Quake-compatible sv user set frozen behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_UserSetFrozen`.
frozendynamic—The frozen input consumed by `SV_UserSetFrozen`.

View source

SV_UserSetMovement

function SV_UserSetMovement(state, maxSpeed, acceleration, friction, edgeFriction, stopSpeed)

Apply the Quake-compatible sv user set movement behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_UserSetMovement`.
maxSpeeddynamic—The max speed input consumed by `SV_UserSetMovement`.
accelerationdynamic—The acceleration input consumed by `SV_UserSetMovement`.
frictiondynamic—The friction input consumed by `SV_UserSetMovement`.
edgeFrictiondynamic—The edge friction input consumed by `SV_UserSetMovement`.
stopSpeeddynamic—The stop speed input consumed by `SV_UserSetMovement`.

View source

SV_UserSetPaused

function SV_UserSetPaused(state, paused, keyDestination)

Apply the Quake-compatible sv user set paused behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_UserSetPaused`.
pauseddynamic—The paused input consumed by `SV_UserSetPaused`.
keyDestinationdynamic—The key destination input consumed by `SV_UserSetPaused`.

View source

SV_WaterJump

function SV_WaterJump(state, player)

SV_WaterJump

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_WaterJump`.
playerdynamic—The player input consumed by `SV_WaterJump`.

View source

SV_WaterMove

function SV_WaterMove(state, player, command)

SV_WaterMove

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `SV_WaterMove`.
playerdynamic—The player input consumed by `SV_WaterMove`.
commanddynamic—Console or protocol command to execute.

View source

svuAllowedCommand

function svuAllowedCommand(text)

Implements the `svuAllowedCommand` operation for `miniquake.sv_user` (svu allowed command).

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

svuExecuteString

function svuExecuteString(state, clientValue, player, text)

Implements the `svuExecuteString` operation for `miniquake.sv_user` (svu execute string).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `svuExecuteString`.
clientValuedynamic—The client value input consumed by `svuExecuteString`.
playerdynamic—The player input consumed by `svuExecuteString`.
textdynamic—Text to parse or process.

View source

svuReadNetworkMessages

function svuReadNetworkMessages(state, clientValue, player)

Implements the `svuReadNetworkMessages` operation for `miniquake.sv_user` (svu read network messages).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `svuReadNetworkMessages`.
clientValuedynamic—The client value input consumed by `svuReadNetworkMessages`.
playerdynamic—The player input consumed by `svuReadNetworkMessages`.

View source

miniquake.sv_user.SvUserState struct

svuStartsWith

function svuStartsWith(text, prefix)

Implements the `svuStartsWith` operation for `miniquake.sv_user` (svu starts with).

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.
prefixdynamic—The prefix input consumed by `svuStartsWith`.

View source

svuTraceIdealPitch

function svuTraceIdealPitch(state, player, map, clientIndex)

Implements the `svuTraceIdealPitch` operation for `miniquake.sv_user` (svu trace ideal pitch).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sv_user` state used by `svuTraceIdealPitch`.
playerdynamic—The player input consumed by `svuTraceIdealPitch`.
mapdynamic—The map input consumed by `svuTraceIdealPitch`.
clientIndexdynamic—Zero-based index of the requested entry.

View source