# absolute
function absolute(value)Implements the `absolute` operation for `miniquake.world` (absolute).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absolute`. |
src/miniquake/world.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.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 bspworld → src/miniquake/world_bsp.mlminiquake/world_hull.ml as boxworld → src/miniquake/world_hull.mlfunction absolute(value)Implements the `absolute` operation for `miniquake.world` (absolute).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `absolute`. |
const AREA_DEPTH = 4Defines the area depth value used by `miniquake.world`.
const AREA_NODES = 32Defines the area nodes value used by `miniquake.world`.
miniquake.world.AreaNode struct
function boxesOverlap(minsA, maxsA, minsB, maxsB)Implements the `boxesOverlap` operation for `miniquake.world` (boxes overlap).
| Parameter | Type | Default | Description |
|---|---|---|---|
minsA | dynamic | — | The mins a input consumed by `boxesOverlap`. |
maxsA | dynamic | — | The maxs a input consumed by `boxesOverlap`. |
minsB | dynamic | — | The mins b input consumed by `boxesOverlap`. |
maxsB | dynamic | — | The maxs b input consumed by `boxesOverlap`. |
function boxPlane(state, planeIndex)Implements the `boxPlane` operation for `miniquake.world` (box plane).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `boxPlane`. |
planeIndex | dynamic | — | Zero-based index of the requested entry. |
function chooseTrace(best, candidate)Implements the `chooseTrace` operation for `miniquake.world` (choose trace).
| Parameter | Type | Default | Description |
|---|---|---|---|
best | dynamic | — | The best input consumed by `chooseTrace`. |
candidate | dynamic | — | The candidate input consumed by `chooseTrace`. |
function entityHasTouch(state, entityIndex)Implements the `entityHasTouch` operation for `miniquake.world` (entity has touch).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `entityHasTouch`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function entityModel(state, entityIndex)Implements the `entityModel` operation for `miniquake.world` (entity model).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `entityModel`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function entityNumber(state, entityIndex, name, fallback)Return entity number derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `entityNumber`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
name | dynamic | — | Stable name that identifies the requested object or option. |
fallback | dynamic | — | Value to use when the requested input is unavailable or invalid. |
function entityValid(state, entityIndex)Report whether entity valid holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `entityValid`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function entityVector(state, entityIndex, name)Implements the `entityVector` operation for `miniquake.world` (entity vector).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `entityVector`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function executeTrigger(state, triggerIndex, entityIndex)Execute trigger.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `executeTrigger`. |
triggerIndex | dynamic | — | Zero-based index of the requested entry. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function fallbackEdict(state, entityIndex)Implements the `fallbackEdict` operation for `miniquake.world` (fallback edict).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `fallbackEdict`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
inline function hasRuntime(state)Report whether runtime.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `hasRuntime`. |
function hullIndex(mins, maxs)Return hull index derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
mins | dynamic | — | The mins input consumed by `hullIndex`. |
maxs | dynamic | — | The maxs input consumed by `hullIndex`. |
function makeState(server, map)Creates state for `miniquake.world`.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
map | dynamic | — | The map input consumed by `makeState`. |
const MAX_ENT_LEAFS = 16Defines the max ent leafs value used by `miniquake.world`.
miniquake.world.MoveClip struct
function removeEntity(values, entityIndex)Release state for remove entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
values | dynamic | — | The values input consumed by `removeEntity`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function rotatedBounds(origin, mins, maxs)Implements the `rotatedBounds` operation for `miniquake.world` (rotated bounds).
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | World-space origin of the operation. |
mins | dynamic | — | The mins input consumed by `rotatedBounds`. |
maxs | dynamic | — | The maxs input consumed by `rotatedBounds`. |
function rotateFromModel(value, angles)Implements the `rotateFromModel` operation for `miniquake.world` (rotate from model).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `rotateFromModel`. |
angles | dynamic | — | Orientation angles used by the operation. |
function rotateIntoModel(value, angles)Implements the `rotateIntoModel` operation for `miniquake.world` (rotate into model).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `rotateIntoModel`. |
angles | dynamic | — | Orientation angles used by the operation. |
function SV_BoxOnPlaneSide(mins, maxs, plane)Apply the Quake-compatible sv box on plane side behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
mins | dynamic | — | The mins input consumed by `SV_BoxOnPlaneSide`. |
maxs | dynamic | — | The maxs input consumed by `SV_BoxOnPlaneSide`. |
plane | dynamic | — | The plane input consumed by `SV_BoxOnPlaneSide`. |
function SV_BspHullPointContents(hull, number, point)Apply the Quake-compatible sv bsp hull point contents behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
hull | dynamic | — | The hull input consumed by `SV_BspHullPointContents`. |
number | dynamic | — | The number input consumed by `SV_BspHullPointContents`. |
point | dynamic | — | The point input consumed by `SV_BspHullPointContents`. |
function SV_ClearWorld(server, map)Apply the Quake-compatible sv clear world behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
server | dynamic | — | Server state participating in the operation. |
map | dynamic | — | The map input consumed by `SV_ClearWorld`. |
function SV_ClipMoveToEntity(state, entityIndex, start, mins, maxs, finish)Apply the Quake-compatible sv clip move to entity behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_ClipMoveToEntity`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
start | dynamic | — | The start input consumed by `SV_ClipMoveToEntity`. |
mins | dynamic | — | The mins input consumed by `SV_ClipMoveToEntity`. |
maxs | dynamic | — | The maxs input consumed by `SV_ClipMoveToEntity`. |
finish | dynamic | — | The finish input consumed by `SV_ClipMoveToEntity`. |
function SV_ClipToLinks(state, nodeIndex, clip)Apply the Quake-compatible sv clip to links behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_ClipToLinks`. |
nodeIndex | dynamic | — | Zero-based index of the requested entry. |
clip | dynamic | — | The clip input consumed by `SV_ClipToLinks`. |
function SV_CreateAreaNode(state, depth, mins, maxs)Apply the Quake-compatible sv create area node behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_CreateAreaNode`. |
depth | dynamic | — | The depth input consumed by `SV_CreateAreaNode`. |
mins | dynamic | — | The mins input consumed by `SV_CreateAreaNode`. |
maxs | dynamic | — | The maxs input consumed by `SV_CreateAreaNode`. |
function SV_FindTouchedLeafs(state, entityIndex, nodeNumber)Apply the Quake-compatible sv find touched leafs behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_FindTouchedLeafs`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
nodeNumber | dynamic | — | The node number input consumed by `SV_FindTouchedLeafs`. |
function SV_HullForBox(mins, maxs)Apply the Quake-compatible sv hull for box behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
mins | dynamic | — | The mins input consumed by `SV_HullForBox`. |
maxs | dynamic | — | The maxs input consumed by `SV_HullForBox`. |
function SV_HullForEntity(state, entityIndex, mins, maxs)Apply the Quake-compatible sv hull for entity behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_HullForEntity`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
mins | dynamic | — | The mins input consumed by `SV_HullForEntity`. |
maxs | dynamic | — | The maxs input consumed by `SV_HullForEntity`. |
function SV_HullPointContents(hull, number, point)Apply the Quake-compatible sv hull point contents behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
hull | dynamic | — | The hull input consumed by `SV_HullPointContents`. |
number | dynamic | — | The number input consumed by `SV_HullPointContents`. |
point | dynamic | — | The point input consumed by `SV_HullPointContents`. |
function SV_InitBoxHull()Apply the Quake-compatible sv init box hull behavior.
function SV_LinkEdict(state, entityIndex, touchTriggers)Apply the Quake-compatible sv link edict behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_LinkEdict`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
touchTriggers | dynamic | — | The touch triggers input consumed by `SV_LinkEdict`. |
function SV_Move(state, start, mins, maxs, finish, moveType, passedEntity)Apply the Quake-compatible sv move behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_Move`. |
start | dynamic | — | The start input consumed by `SV_Move`. |
mins | dynamic | — | The mins input consumed by `SV_Move`. |
maxs | dynamic | — | The maxs input consumed by `SV_Move`. |
finish | dynamic | — | The finish input consumed by `SV_Move`. |
moveType | dynamic | — | The move type input consumed by `SV_Move`. |
passedEntity | dynamic | — | The passed entity input consumed by `SV_Move`. |
function SV_MoveBounds(start, mins, maxs, finish)Apply the Quake-compatible sv move bounds behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
start | dynamic | — | The start input consumed by `SV_MoveBounds`. |
mins | dynamic | — | The mins input consumed by `SV_MoveBounds`. |
maxs | dynamic | — | The maxs input consumed by `SV_MoveBounds`. |
finish | dynamic | — | The finish input consumed by `SV_MoveBounds`. |
function SV_PointContents(state, point)Apply the Quake-compatible sv point contents behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_PointContents`. |
point | dynamic | — | The point input consumed by `SV_PointContents`. |
function SV_RecursiveHullCheck(hull, number, p1Fraction, p2Fraction, p1, p2, trace)Apply the Quake-compatible sv recursive hull check behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
hull | dynamic | — | The hull input consumed by `SV_RecursiveHullCheck`. |
number | dynamic | — | The number input consumed by `SV_RecursiveHullCheck`. |
p1Fraction | dynamic | — | The p1 fraction input consumed by `SV_RecursiveHullCheck`. |
p2Fraction | dynamic | — | The p2 fraction input consumed by `SV_RecursiveHullCheck`. |
p1 | dynamic | — | The p1 input consumed by `SV_RecursiveHullCheck`. |
p2 | dynamic | — | The p2 input consumed by `SV_RecursiveHullCheck`. |
trace | dynamic | — | The trace input consumed by `SV_RecursiveHullCheck`. |
function SV_TestEntityPosition(state, entityIndex)Apply the Quake-compatible sv test entity position behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_TestEntityPosition`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_TouchLinks(state, entityIndex, nodeIndex)Apply the Quake-compatible sv touch links behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_TouchLinks`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
nodeIndex | dynamic | — | Zero-based index of the requested entry. |
function SV_TruePointContents(state, point)Apply the Quake-compatible sv true point contents behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_TruePointContents`. |
point | dynamic | — | The point input consumed by `SV_TruePointContents`. |
function SV_UnlinkEdict(state, entityIndex)Apply the Quake-compatible sv unlink edict behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `SV_UnlinkEdict`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
function World_SetTouchEnabled(state, entityIndex, enabled)Report whether world set touch enabled holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.world` state used by `World_SetTouchEnabled`. |
entityIndex | dynamic | — | Zero-based index of the requested entry. |
enabled | dynamic | — | Whether the optional behavior is enabled. |
miniquake.world.WorldAreaState struct
function zeroVector()Implements the `zeroVector` operation for `miniquake.world` (zero vector).