MiniQuake2

src/miniquake2/game/world/targets.ml

Provides miniquake2 game world targets facilities for this project.

Package
miniquake2.game.world.targets
Reachable
Yes

Imports

Declarations

crossLevelTargetThink

function crossLevelTargetThink(entity, world)

Compute level target think.

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

View source

earthquakeThink

function earthquakeThink(entity, world)

Run earthquake.

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

View source

earthquakeUse

function earthquakeUse(entity, other, activator, world)

Use earthquake.

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

explosionThink

function explosionThink(entity, world)

Run explosion.

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

View source

LASER_BLUE

const LASER_BLUE = 8

Defines the laser blue constant used by the miniquake2 game world targets module.

View source

LASER_DIRECTION_CHANGED

const LASER_DIRECTION_CHANGED = 2147483648

Defines the laser direction changed constant used by the miniquake2 game world targets module.

View source

LASER_FAT

const LASER_FAT = 64

Defines the laser fat constant used by the miniquake2 game world targets module.

View source

LASER_GREEN

const LASER_GREEN = 4

Defines the laser green constant used by the miniquake2 game world targets module.

View source

LASER_ORANGE

const LASER_ORANGE = 32

Defines the laser orange constant used by the miniquake2 game world targets module.

View source

LASER_RED

const LASER_RED = 2

Defines the laser red constant used by the miniquake2 game world targets module.

View source

LASER_START_ON

const LASER_START_ON = 1

Defines the laser start on constant used by the miniquake2 game world targets module.

View source

LASER_YELLOW

const LASER_YELLOW = 16

Defines the laser yellow constant used by the miniquake2 game world targets module.

View source

laserOff

function laserOff(entity, world)

Report whether laser off.

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

View source

laserOn

function laserOn(entity, world)

Report whether laser on.

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

View source

laserStart

function laserStart(entity, world)

Start laser.

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

View source

laserThink

function laserThink(entity, world)

Run laser.

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

View source

laserUse

function laserUse(entity, other, activator, world)

Use laser.

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_target_actor

function SP_target_actor(entity, world)

Spawn target actor.

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

View source

SP_target_blaster

function SP_target_blaster(entity, world)

Spawn target blaster.

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

View source

SP_target_changelevel

function SP_target_changelevel(entity, world)

Spawn target changelevel.

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

View source

SP_target_crosslevel_target

function SP_target_crosslevel_target(entity, world)

Spawn target crosslevel target.

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

View source

SP_target_crosslevel_trigger

function SP_target_crosslevel_trigger(entity, world)

Spawn target crosslevel trigger.

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

View source

SP_target_earthquake

function SP_target_earthquake(entity, world)

Spawn target earthquake.

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

View source

SP_target_explosion

function SP_target_explosion(entity, world)

Spawn target explosion.

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

View source

SP_target_goal

function SP_target_goal(entity, world)

Spawn target goal.

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

View source

SP_target_help

function SP_target_help(entity, world)

Spawn target help.

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

View source

SP_target_laser

function SP_target_laser(entity, world)

Spawn target laser.

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

View source

SP_target_lightramp

function SP_target_lightramp(entity, world)

Spawn target lightramp.

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

View source

SP_target_secret

function SP_target_secret(entity, world)

Spawn target secret.

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

View source

SP_target_spawner

function SP_target_spawner(entity, world)

Spawn target spawner.

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

View source

SP_target_speaker

function SP_target_speaker(entity, world)

Spawn target speaker.

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

View source

SP_target_splash

function SP_target_splash(entity, world)

Spawn target splash.

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

View source

SP_target_temp_entity

function SP_target_temp_entity(entity, world)

Spawn target temp entity.

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

View source

spawnBlaster

function spawnBlaster(entity, world)

Spawn blaster.

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

View source

spawnChangeLevel

function spawnChangeLevel(entity, world)

Spawn change level.

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

View source

spawnCrossLevelTarget

function spawnCrossLevelTarget(entity, world)

Spawn cross level target.

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

View source

spawnCrossLevelTrigger

function spawnCrossLevelTrigger(entity, world)

Spawn cross level trigger.

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

View source

spawnEarthquake

function spawnEarthquake(entity, world)

Spawn earthquake.

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

View source

spawnExplosion

function spawnExplosion(entity, world)

Spawn explosion.

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

View source

spawnGoal

function spawnGoal(entity, world)

Spawn goal.

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

View source

spawnHelp

function spawnHelp(entity, world)

Spawn help.

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

View source

spawnLaser

function spawnLaser(entity, world)

Spawn laser.

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

View source

spawnSecret

function spawnSecret(entity, world)

Spawn secret.

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

View source

spawnSpawner

function spawnSpawner(entity, world)

Spawn spawner.

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

View source

spawnSpeaker

function spawnSpeaker(entity, world)

Spawn speaker.

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

View source

spawnSplash

function spawnSplash(entity, world)

Spawn splash.

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

View source

spawnTargetActor

function spawnTargetActor(entity, world)

Spawn target actor.

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

View source

spawnTargetLightRamp

function spawnTargetLightRamp(entity, world, deathmatch)

Spawn target light ramp.

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

View source

spawnTempEntity

function spawnTempEntity(entity, world)

Spawn temp entity.

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

View source

targetActorTouch

function targetActorTouch(entity, other, world)

target_actor from m_actor.c. AI-private state changes are represented by one explicit transition callback; this package still owns target lookup, pathtarget dispatch, jump velocity and deterministic waypoint chaining.

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

View source

targetLightRampThink

function targetLightRampThink(entity, world)

target_lightramp from g_target.c. Configstring mutation is an explicit engine callback so this state machine stays deterministic and headless.

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

View source

targetLightRampUse

function targetLightRampUse(entity, other, activator, world)

Use target light ramp.

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

useBlaster

function useBlaster(entity, other, activator, world)

Use blaster.

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

useChangeLevel

function useChangeLevel(entity, other, activator, world)

Use change level.

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

useCrossLevelTrigger

function useCrossLevelTrigger(entity, other, activator, world)

Use cross level trigger.

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

useExplosion

function useExplosion(entity, other, activator, world)

Use explosion.

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

useGoal

function useGoal(entity, other, activator, world)

Use goal.

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

useHelp

function useHelp(entity, other, activator, world)

Use help.

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

useSecret

function useSecret(entity, other, activator, world)

Use secret.

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

useSpawner

function useSpawner(entity, other, activator, world)

Use spawner.

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

useSpeaker

function useSpeaker(entity, other, activator, world)

Use speaker.

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

useSplash

function useSplash(entity, other, activator, world)

Use splash.

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

useTempEntity

function useTempEntity(entity, other, activator, world)

Use temp entity.

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