MiniQuake2

src/miniquake2/game/player/client.ml

Provides miniquake2 game player client facilities for this project.

Package
miniquake2.game.player.client
Reachable
Yes

Imports

Declarations

angleToShort

function angleToShort(angle)

Return the angle to short value.

ParameterTypeDefaultDescription
angledynamic—angle value consumed by this operation.

View source

ChaseNext

function ChaseNext(context, player)

Select the next chase target in client-edict order, wrapping at maxclients.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

ChasePrev

function ChasePrev(context, player)

Select the previous chase target in client-edict order, wrapping at one.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

chaseTargetEligible

function chaseTargetEligible(candidate)

Report whether a player is a live, non-spectator chase target.

ParameterTypeDefaultDescription
candidatedynamic—candidate value consumed by this operation.

View source

ClientBegin

function ClientBegin(context, player)

Begin client.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

ClientBeginServerFrame

function ClientBeginServerFrame(context, player)

Begin client server frame.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

ClientThink

function ClientThink(context, player, command)

Run client.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

copyInventoryCounts

function copyInventoryCounts(counts)

Copy inventory counts.

ParameterTypeDefaultDescription
countsdynamic—counts value consumed by this operation.

View source

copyPmoveState

function copyPmoveState(state)

Copy pmove state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

GetChaseTarget

function GetChaseTarget(context, player)

Acquire the first live non-spectator and initialize the camera immediately.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

MoveClientToIntermission

function MoveClientToIntermission(context, player, spot)

p_hud.c::MoveClientToIntermission. The caller owns map-change timing and point selection; this routine only applies the stock client-visible state.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.
spotdynamic—spot value consumed by this operation.

View source

pmoveStateEqual

function pmoveStateEqual(first, second)

Report whether two pmove states are byte-contract equivalent.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

PutClientInServer

function PutClientInServer(context, player)

Write client in server.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

respawn

function respawn(context, player)

Return the respawn value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

shortToAngle

function shortToAngle(value)

Performs the shortToAngle operation for the miniquake2 game player client module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

spectator_respawn

function spectator_respawn(context, player)

Return the spectator respawn value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

ThinkWeapon

function ThinkWeapon(context, player)

Run weapon.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

UpdateChaseCam

function UpdateChaseCam(context, player)

Update one spectator camera from its current target, matching g_chase.c.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source