MiniQuake2

src/miniquake2/game/world/movers.ml

Provides miniquake2 game world movers facilities for this project.

Package
miniquake2.game.world.movers
Reachable
Yes

Imports

Declarations

accelerateMove

function accelerateMove(moveInfo)

Move accelerate.

ParameterTypeDefaultDescription
moveInfodynamic—moveInfo value consumed by this operation.

View source

accelerationDistance

function accelerationDistance(target, rate)

Return the acceleration distance value.

ParameterTypeDefaultDescription
targetdynamic—target value consumed by this operation.
ratedynamic—rate value consumed by this operation.

View source

buttonDone

function buttonDone(entity, world)

func_button

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonFire

function buttonFire(entity, world)

Fire button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonKilled

function buttonKilled(entity, inflictor, attacker, damage, point, world)

Return the button killed value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonReturn

function buttonReturn(entity, world)

Return button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonTouch

function buttonTouch(entity, other, world)

Handle button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonUse

function buttonUse(entity, other, activator, world)

Use button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

buttonWait

function buttonWait(entity, world)

Return the button wait value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

calculateAcceleratedMove

function calculateAcceleratedMove(moveInfo)

Calculate accelerated move.

ParameterTypeDefaultDescription
moveInfodynamic—moveInfo value consumed by this operation.

View source

calculateDoorMoveSpeed

function calculateDoorMoveSpeed(entity, world)

Calculate door move speed.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

configureSecretDoorGeometry

function configureSecretDoorGeometry(entity, world)

func_door_secret is a two-leg mover. It slides sideways, pauses, moves forward, waits open, then reverses the same two legs.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

conveyorUse

function conveyorUse(entity, other, activator, world)

func_conveyor

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorBlocked

function doorBlocked(entity, other, world)

Report whether door blocked.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorGoDown

function doorGoDown(entity, world)

Return the door go down value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorGoUp

function doorGoUp(entity, activator, world)

Return the door go up value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorHitBottom

function doorHitBottom(entity, world)

Return the door hit bottom value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorHitTop

function doorHitTop(entity, world)

Return the door hit top value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorKilled

function doorKilled(entity, inflictor, attacker, damage, point, world)

Return the door killed value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorTouch

function doorTouch(entity, other, world)

Handle door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorTriggerTouch

function doorTriggerTouch(trigger, other, world)

Handle door trigger.

ParameterTypeDefaultDescription
triggerdynamic—trigger value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorUse

function doorUse(entity, other, activator, world)

Use door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

doorUseAreaPortals

function doorUseAreaPortals(entity, isOpen, world)

func_door

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
isOpendynamic—isOpen value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

elevatorInit

function elevatorInit(entity, world)

Initialize elevator.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

elevatorUse

function elevatorUse(entity, other, activator, world)

trigger_elevator from g_func.c. The train remains the authoritative mover; the trigger only resolves a requested path_corner and resumes it.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

explosiveExplode

function explosiveExplode(entity, inflictor, attacker, damage, point, world)

func_explosive from g_misc.c (kept here with the brush movers).

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

explosiveSpawn

function explosiveSpawn(entity, other, activator, world)

Spawn explosive.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

explosiveUse

function explosiveUse(entity, other, activator, world)

Use explosive.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

killBoxUse

function killBoxUse(entity, other, activator, world)

func_killbox from g_func.c.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

moveBegin

function moveBegin(entity, world)

Move begin.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

moveCalc

function moveCalc(entity, destination, endFunction, world)

Move calc.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
destinationdynamic—destination value consumed by this operation.
endFunctiondynamic—endFunction value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

moveDone

function moveDone(entity, world)

Move done.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

moveFinal

function moveFinal(entity, world)

Move final.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platBlocked

function platBlocked(entity, other, world)

Report whether plat blocked.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platCenterTouch

function platCenterTouch(trigger, other, world)

Handle plat center.

ParameterTypeDefaultDescription
triggerdynamic—trigger value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platGoDown

function platGoDown(entity, world)

Return the plat go down value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platGoUp

function platGoUp(entity, world)

Return the plat go up value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platHitBottom

function platHitBottom(entity, world)

Return the plat hit bottom value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platHitTop

function platHitTop(entity, world)

func_plat

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

platUse

function platUse(entity, other, activator, world)

Use plat.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

refreshBrushGeometry

function refreshBrushGeometry(entity, world)

Inline BSP bounds arrive through game_import_t.setmodel after the managed spawn callbacks have established behavior. Rebuild only the geometric endpoints here; do not reapply speed scaling or allocate trigger helpers.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

restoreMoverState

function restoreMoverState(entity, world)

Rebind serialized callback identities from classname/state. Function values are deliberately not written to disk; the deterministic spawn path restores behavior and this boundary restores the currently pending mover callback.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

rotatingDoorGoDown

function rotatingDoorGoDown(entity, world)

Return the rotating door go down value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

rotatingDoorGoUp

function rotatingDoorGoUp(entity, activator, world)

Return the rotating door go up value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

rotatingDoorHitBottom

function rotatingDoorHitBottom(entity, world)

Return the rotating door hit bottom value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

rotatingDoorHitTop

function rotatingDoorHitTop(entity, world)

Return the rotating door hit top value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

rotatingDoorUse

function rotatingDoorUse(entity, other, activator, world)

Use rotating door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorBlocked

function secretDoorBlocked(entity, other, world)

Report whether secret door blocked.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorDie

function secretDoorDie(entity, inflictor, attacker, damage, point, world)

Handle secret door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.
pointdynamic—point value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorDone

function secretDoorDone(entity, world)

Return the secret door done value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove1

function secretDoorMove1(entity, world)

Move secret door 1.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove2

function secretDoorMove2(entity, world)

Move secret door 2.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove3

function secretDoorMove3(entity, world)

Move secret door 3.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove4

function secretDoorMove4(entity, world)

Move secret door 4.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove5

function secretDoorMove5(entity, world)

Move secret door 5.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorMove6

function secretDoorMove6(entity, world)

Move secret door 6.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

secretDoorUse

function secretDoorUse(entity, other, activator, world)

Use secret door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_button

function SP_func_button(entity, world)

Spawn func button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_conveyor

function SP_func_conveyor(entity, world)

Spawn func conveyor.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_door

function SP_func_door(entity, world)

Spawn func door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_door_secret

function SP_func_door_secret(entity, world)

Spawn func door secret.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_explosive

function SP_func_explosive(entity, world, deathmatch)

Spawn func explosive.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.
deathmatchdynamic—deathmatch value consumed by this operation.

View source

SP_func_killbox

function SP_func_killbox(entity, world)

Spawn func killbox.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_plat

function SP_func_plat(entity, world)

Spawn func plat.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_timer

function SP_func_timer(entity, world)

Spawn func timer.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_train

function SP_func_train(entity, world)

Spawn func train.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_func_water

function SP_func_water(entity, world)

Spawn func water.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

SP_trigger_elevator

function SP_trigger_elevator(entity, world)

Spawn trigger elevator.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnButton

function spawnButton(entity, world)

Spawn button.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnConveyor

function spawnConveyor(entity, world)

Spawn conveyor.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnDoor

function spawnDoor(entity, world)

Spawn door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnDoorTrigger

function spawnDoorTrigger(entity, world)

Spawn door trigger.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnElevator

function spawnElevator(entity, world)

Spawn elevator.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnExplosive

function spawnExplosive(entity, world, deathmatch)

Spawn explosive.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.
deathmatchdynamic—deathmatch value consumed by this operation.

View source

spawnKillBox

function spawnKillBox(entity, world)

Spawn kill box.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnPlat

function spawnPlat(entity, world)

Spawn plat.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnPlatInsideTrigger

function spawnPlatInsideTrigger(entity, world)

Report whether spawn plat inside trigger.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnRotatingDoor

function spawnRotatingDoor(entity, world)

Spawn rotating door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnSecretDoor

function spawnSecretDoor(entity, world)

Spawn secret door.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnTimer

function spawnTimer(entity, world)

Spawn timer.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnTrain

function spawnTrain(entity, world)

Spawn train.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

spawnWater

function spawnWater(entity, world)

func_water reuses door_use only after establishing its distinct defaults: 25-unit speed, zero lip, no blocked callback and a wait=-1 toggle.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

thinkAcceleratedMove

function thinkAcceleratedMove(entity, world)

Run accelerated move.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

timerThink

function timerThink(entity, world)

func_timer

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

timerUse

function timerUse(entity, other, activator, world)

Use timer.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainBlocked

function trainBlocked(entity, other, world)

Report whether train blocked.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainFind

function trainFind(entity, world)

Find train.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainNext

function trainNext(entity, world)

Return the train next value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainResume

function trainResume(entity, world)

Resume train.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainUse

function trainUse(entity, other, activator, world)

Use train.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
otherdynamic—other value consumed by this operation.
activatordynamic—activator value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

trainWait

function trainWait(entity, world)

func_train

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source