MiniQuake2

src/miniquake2/game/world/misc.ml

Provides miniquake2 game world misc facilities for this project.

Package
miniquake2.game.world.misc
Reachable
Yes

Imports

Declarations

areaPortalUse

function areaPortalUse(entity, other, activator, world)

func_areaportal from g_misc.c. Doors also drive linked areaportals through mover code, but a directly targeted portal must own the stock toggle use.

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

bannerThink

function bannerThink(entity, world)

Run banner.

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

View source

barrelDelay

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

Return the barrel delay 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

barrelDropToFloor

function barrelDropToFloor(entity, world)

Drop barrel to floor.

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

View source

barrelExplode

function barrelExplode(entity, world)

Return the barrel explode value.

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

View source

barrelTouch

function barrelTouch(entity, other, world)

Handle barrel.

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

View source

blackHoleThink

function blackHoleThink(entity, world)

Run black hole.

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

View source

blackHoleUse

function blackHoleUse(entity, other, activator, world)

Remaining stock g_misc.c set pieces. Model registration is injected through setModel; animation and movement remain world-owned deterministic state.

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

deadSoldierDie

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

Handle dead soldier.

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

debrisDie

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

ThrowDebris uses a quiet damage callback: shooting a chunk removes it but must not create a blood/gib effect.

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

easterChick2Think

function easterChick2Think(entity, world)

Run easter chick 2.

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

View source

easterChickThink

function easterChickThink(entity, world)

Run easter chick.

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

View source

easterTankThink

function easterTankThink(entity, world)

Run easter tank.

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

View source

findWorldViper

function findWorldViper(world)

Find world viper.

ParameterTypeDefaultDescription
worlddynamic—world value consumed by this operation.

View source

funcObjectRelease

function funcObjectRelease(entity, world)

Release func object.

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

View source

funcObjectTouch

function funcObjectTouch(entity, other, world)

Handle func object.

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

View source

funcObjectUse

function funcObjectUse(entity, other, activator, world)

Use func object.

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

gibDie

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

Handle gib.

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

gibFree

function gibFree(entity, world)

Release gib.

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

View source

lightUse

function lightUse(entity, other, activator, world)

Use light.

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

pathCornerTouch

function pathCornerTouch(entity, other, world)

path_corner from g_misc.c. AI-private walk/stand state stays behind the existing actorTransition callback used by target_actor.

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

View source

pointCombatTouch

function pointCombatTouch(entity, other, world)

point_combat from g_misc.c. AI_COMBAT_POINT and stand-ground mutations live behind combatPointTransition; this world layer owns route consumption, target lookup and G_UseTargets activator selection.

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

View source

resetWorldClock

function resetWorldClock(entity)

Reset world clock.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

rotatingBlocked

function rotatingBlocked(entity, other, world)

Report whether rotating 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

rotatingTouch

function rotatingTouch(entity, other, world)

Handle rotating.

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

View source

rotatingUse

function rotatingUse(entity, other, activator, world)

Use rotating.

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

satelliteDishThink

function satelliteDishThink(entity, world)

Run satellite dish.

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

View source

satelliteDishUse

function satelliteDishUse(entity, other, activator, world)

Use satellite dish.

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

shrinkFuncObjectBounds

function shrinkFuncObjectBounds(entity)

Return the shrink func object bounds.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

SP_func_clock

function SP_func_clock(entity, world)

Spawn func clock.

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

View source

SP_info_notnull

function SP_info_notnull(entity, world)

Spawn info notnull.

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

View source

SP_light_mine2

function SP_light_mine2(entity, world)

Spawn light mine 2.

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

View source

SP_misc_blackhole

function SP_misc_blackhole(entity, world)

Spawn misc blackhole.

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

View source

SP_misc_easterchick

function SP_misc_easterchick(entity, world)

Spawn misc easterchick.

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

View source

SP_misc_easterchick2

function SP_misc_easterchick2(entity, world)

Spawn misc easterchick 2.

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

View source

SP_misc_eastertank

function SP_misc_eastertank(entity, world)

Spawn misc eastertank.

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

View source

SP_misc_satellite_dish

function SP_misc_satellite_dish(entity, world)

Spawn misc satellite dish.

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

View source

SP_misc_viper

function SP_misc_viper(entity, world)

Spawn misc viper.

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

View source

SP_misc_viper_bomb

function SP_misc_viper_bomb(entity, world)

Spawn misc viper bomb.

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

View source

SP_point_combat

function SP_point_combat(entity, world)

Spawn point combat.

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

View source

SP_target_character

function SP_target_character(entity, world)

Spawn target character.

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

View source

SP_target_string

function SP_target_string(entity, world)

Spawn target string.

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

View source

spawnAreaPortal

function spawnAreaPortal(entity, world)

Spawn area portal.

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

View source

spawnBanner

function spawnBanner(entity, world)

Spawn banner.

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

View source

spawnBigViper

function spawnBigViper(entity, world)

Spawn big viper.

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

View source

spawnBlackHole

function spawnBlackHole(entity, world)

Spawn black hole.

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

View source

spawnDeadSoldier

function spawnDeadSoldier(entity, world)

Spawn dead soldier.

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

View source

spawnEasterChick

function spawnEasterChick(entity, world)

Spawn easter chick.

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

View source

spawnEasterChick2

function spawnEasterChick2(entity, world)

Spawn easter chick 2.

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

View source

spawnEasterTank

function spawnEasterTank(entity, world)

Spawn easter tank.

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

View source

spawnExplobox

function spawnExplobox(entity, world)

Spawn explobox.

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

View source

spawnGibArm

function spawnGibArm(entity, world)

Spawn gib arm.

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

View source

spawnGibHead

function spawnGibHead(entity, world)

Spawn gib head.

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

View source

spawnGibLeg

function spawnGibLeg(entity, world)

Spawn gib leg.

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

View source

spawnGibPart

function spawnGibPart(entity, modelName, world)

Spawn gib part.

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

View source

spawnInfoNotNull

function spawnInfoNotNull(entity, world)

Spawn info not null.

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

View source

spawnLight

function spawnLight(entity, world)

Spawn light.

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

View source

spawnLightMine1

function spawnLightMine1(entity, world)

Spawn light mine 1.

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

View source

spawnLightMine2

function spawnLightMine2(entity, world)

Spawn light mine 2.

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

View source

spawnNull

function spawnNull(entity, world)

Spawn null.

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

View source

spawnObject

function spawnObject(entity, world)

Spawn object.

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

View source

spawnPathCorner

function spawnPathCorner(entity, world)

Spawn path corner.

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

View source

spawnPointCombat

function spawnPointCombat(entity, world, deathmatch)

Spawn point combat.

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

View source

spawnRotating

function spawnRotating(entity, world)

Spawn rotating.

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

View source

spawnSatelliteDish

function spawnSatelliteDish(entity, world)

Spawn satellite dish.

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

View source

spawnStroggShip

function spawnStroggShip(entity, world)

Spawn strogg ship.

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

View source

spawnTargetCharacter

function spawnTargetCharacter(entity, world)

target_character / target_string from g_misc.c.

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

View source

spawnTargetString

function spawnTargetString(entity, world)

Spawn target string.

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

View source

spawnTeleporter

function spawnTeleporter(entity, world)

Spawn teleporter.

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

View source

spawnTeleporterDestination

function spawnTeleporterDestination(entity, world)

Spawn teleporter destination.

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

View source

spawnViewThing

function spawnViewThing(entity, world)

Spawn view thing.

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

View source

spawnViper

function spawnViper(entity, world)

Spawn viper.

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

View source

spawnViperBomb

function spawnViperBomb(entity, world)

Spawn viper bomb.

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

View source

spawnWall

function spawnWall(entity, world)

Spawn wall.

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

View source

spawnWorldClock

function spawnWorldClock(entity, world)

Spawn world clock.

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

View source

stroggShipUse

function stroggShipUse(entity, other, activator, world)

Use strogg ship.

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

targetStringFrame

function targetStringFrame(character)

Return the target string frame value.

ParameterTypeDefaultDescription
characterdynamic—character value consumed by this operation.

View source

teleporterTouch

function teleporterTouch(entity, other, world)

Handle teleporter.

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

View source

useTargetString

function useTargetString(entity, other, activator, world)

Use target string.

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

useWorldClock

function useWorldClock(entity, other, activator, world)

Use world clock.

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

viewThingThink

function viewThingThink(entity, world)

Run view thing.

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

View source

viperBombPreThink

function viperBombPreThink(entity, world)

Run viper bomb pre.

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

View source

viperBombTouch

function viperBombTouch(entity, other, world)

Handle viper bomb.

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

View source

viperBombUse

function viperBombUse(entity, other, activator, world)

Use viper bomb.

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

viperUse

function viperUse(entity, other, activator, world)

Use viper.

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

wallUse

function wallUse(entity, other, activator, world)

Use wall.

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

worldClockDisplay

function worldClockDisplay(entity, world)

Return the world clock display value.

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

View source

worldClockFormatValue

function worldClockFormatValue(value, style)

Format world clock value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
styledynamic—style value consumed by this operation.

View source

worldClockThink

function worldClockThink(entity, world)

Run world clock.

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

View source

worldClockTwoDigits

function worldClockTwoDigits(value)

Return the world clock two digits value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

worldClockTwoWide

function worldClockTwoWide(value)

func_clock. The original localtime dependency is injected as clockSeconds; timer-up/down paths remain entirely scheduler-driven and deterministic.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source