MiniQuake

src/miniquake/server_move.ml

Package
miniquake.server_move
Reachable
Yes

Imports

Declarations

absolute

function absolute(value)

Implements the `absolute` operation for `miniquake.server_move` (absolute).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `absolute`.

View source

changeYaw

function changeYaw(server, entityIndex)

PF_changeyaw / SV_StepDirection share this exact angle update.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.

View source

closeEnough

function closeEnough(server, entityIndex, goalIndex, distance)

Release state for close enough.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
goalIndexdynamic—Zero-based index of the requested entry.
distancedynamic—The distance input consumed by `closeEnough`.

View source

DI_NODIR

const DI_NODIR = -1.

Defines the di nodir value used by `miniquake.server_move`.

View source

fixCheckBottom

function fixCheckBottom(server, entityIndex)

Implements the `fixCheckBottom` operation for `miniquake.server_move` (fix check bottom).

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.

View source

moveToGoal

function moveToGoal(server, entityIndex, distance)

Transfer data for move to goal.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
distancedynamic—The distance input consumed by `moveToGoal`.

View source

newChaseDirection

function newChaseDirection(server, actor, enemy, distance)

Create and initialize chase direction.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
actordynamic—The actor input consumed by `newChaseDirection`.
enemydynamic—The enemy input consumed by `newChaseDirection`.
distancedynamic—The distance input consumed by `newChaseDirection`.

View source

randomWord

function randomWord(server)

Implements the `randomWord` operation for `miniquake.server_move` (random word).

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.

View source

STEP_SIZE

const STEP_SIZE = 18.

Defines the step size value used by `miniquake.server_move`.

View source

stepDirection

function stepDirection(server, entityIndex, yaw, distance)

Advance direction by one processing step.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
yawdynamic—The yaw input consumed by `stepDirection`.
distancedynamic—The distance input consumed by `stepDirection`.

View source

SV_ChangeYaw

function SV_ChangeYaw(server, entityIndex)

PF_changeyaw is declared in sv_move.c and implemented in pr_cmds.c. This explicit server hook completes the combined C/header pendant without duplicating the QuakeC builtin.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.

View source

SV_CheckBottom

function SV_CheckBottom(server, entityIndex)

-------------------------------------------------------------------------- sv_move.c public compatibility surface. Keep these names one-for-one with the original server movement unit; the lower-case spellings above remain convenient internal helpers for existing MiniQuake callers.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.

View source

SV_CloseEnough

function SV_CloseEnough(server, entityIndex, goalIndex, distance)

Apply the Quake-compatible sv close enough behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
goalIndexdynamic—Zero-based index of the requested entry.
distancedynamic—The distance input consumed by `SV_CloseEnough`.

View source

SV_FixCheckBottom

function SV_FixCheckBottom(server, entityIndex)

Apply the Quake-compatible sv fix check bottom behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.

View source

SV_MoveToGoal

function SV_MoveToGoal(server, entityIndex, distance)

Apply the Quake-compatible sv move to goal behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
distancedynamic—The distance input consumed by `SV_MoveToGoal`.

View source

SV_NewChaseDir

function SV_NewChaseDir(server, actor, enemy, distance)

Apply the Quake-compatible sv new chase dir behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
actordynamic—The actor input consumed by `SV_NewChaseDir`.
enemydynamic—The enemy input consumed by `SV_NewChaseDir`.
distancedynamic—The distance input consumed by `SV_NewChaseDir`.

View source

SV_StepDirection

function SV_StepDirection(server, entityIndex, yaw, distance)

Apply the Quake-compatible sv step direction behavior.

ParameterTypeDefaultDescription
serverdynamic—Server state participating in the operation.
entityIndexdynamic—Zero-based index of the requested entry.
yawdynamic—The yaw input consumed by `SV_StepDirection`.
distancedynamic—The distance input consumed by `SV_StepDirection`.

View source

zeroVector

function zeroVector()

Implements the `zeroVector` operation for `miniquake.server_move` (zero vector).

View source