# absolute
function absolute(value)Implements the `absolute` operation for `miniquake.server_move` (absolute).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absolute`. |
src/miniquake/server_move.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/mathlib.ml as math → src/miniquake/mathlib.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/server_collision.ml as collision → src/miniquake/server_collision.mlminiquake/types.ml as t → src/miniquake/types.mlminiquake/world_bsp.ml as world → src/miniquake/world_bsp.mlfunction absolute(value)Implements the `absolute` operation for `miniquake.server_move` (absolute).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absolute`. |
function changeYaw(server, entityIndex)PF_changeyaw / SV_StepDirection share this exact angle update.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function closeEnough(server, entityIndex, goalIndex, distance)Release state for close enough.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
goalIndex | dynamic | — | Zero-based index of the requested entry. |
distance | dynamic | — | The distance input consumed by `closeEnough`. |
const DI_NODIR = -1.Defines the di nodir value used by `miniquake.server_move`.
function fixCheckBottom(server, entityIndex)Implements the `fixCheckBottom` operation for `miniquake.server_move` (fix check bottom).
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function moveStep(server, entityIndex, movement, relink)SV_movestep: QuakeC monster movement, including stair/drop checks and flying/swimming pursuit height adjustment.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
movement | dynamic | — | The movement input consumed by `moveStep`. |
relink | dynamic | — | The relink input consumed by `moveStep`. |
function moveToGoal(server, entityIndex, distance)Transfer data for move to goal.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
distance | dynamic | — | The distance input consumed by `moveToGoal`. |
function newChaseDirection(server, actor, enemy, distance)Create and initialize chase direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
actor | dynamic | — | The actor input consumed by `newChaseDirection`. |
enemy | dynamic | — | The enemy input consumed by `newChaseDirection`. |
distance | dynamic | — | The distance input consumed by `newChaseDirection`. |
function randomWord(server)Implements the `randomWord` operation for `miniquake.server_move` (random word).
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
const STEP_SIZE = 18.Defines the step size value used by `miniquake.server_move`.
function stepDirection(server, entityIndex, yaw, distance)Advance direction by one processing step.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
yaw | dynamic | — | The yaw input consumed by `stepDirection`. |
distance | dynamic | — | The distance input consumed by `stepDirection`. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_CloseEnough(server, entityIndex, goalIndex, distance)Apply the Quake-compatible sv close enough behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
goalIndex | dynamic | — | Zero-based index of the requested entry. |
distance | dynamic | — | The distance input consumed by `SV_CloseEnough`. |
function SV_FixCheckBottom(server, entityIndex)Apply the Quake-compatible sv fix check bottom behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_movestep(server, entityIndex, movement, relink)Apply the Quake-compatible sv movestep behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
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(server, entityIndex, distance)Apply the Quake-compatible sv move to goal behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
distance | dynamic | — | The distance input consumed by `SV_MoveToGoal`. |
function SV_NewChaseDir(server, actor, enemy, distance)Apply the Quake-compatible sv new chase dir behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
actor | dynamic | — | The actor input consumed by `SV_NewChaseDir`. |
enemy | dynamic | — | The enemy input consumed by `SV_NewChaseDir`. |
distance | dynamic | — | The distance input consumed by `SV_NewChaseDir`. |
function SV_StepDirection(server, entityIndex, yaw, distance)Apply the Quake-compatible sv step direction behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
yaw | dynamic | — | The yaw input consumed by `SV_StepDirection`. |
distance | dynamic | — | The distance input consumed by `SV_StepDirection`. |
function zeroVector()Implements the `zeroVector` operation for `miniquake.server_move` (zero vector).