MiniQuake2

src/miniquake2/game/integration/baseq2.ml

Provides miniquake2 game integration baseq2 facilities for this project.

Package
miniquake2.game.integration.baseq2
Reachable
Yes

Imports

Declarations

activeIntegrationRuntime

activeIntegrationRuntime

Stores module-wide active integration runtime state for the miniquake2 game integration baseq2 module.

View source

activeMonsterAttackPlan

function activeMonsterAttackPlan(actor)

Report whether active monster attack plan.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

advanceDroppedItems

function advanceDroppedItems(runtime)

Advance every dropped item (compatibility/test entry point).

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

advanceDroppedItemsAtNumber

function advanceDroppedItemsAtNumber(runtime, requestedNumber)

Advance dropped items.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
requestedNumberdynamic—requestedNumber value consumed by this operation.

View source

advanceMonsterAttack

function advanceMonsterAttack(runtime, actor, attackPlan)

Advance exactly one 0.1-second attack-plan frame, including movement, frame callbacks and refire decisions. nextFrame is persisted so save/restore does not replay an already emitted projectile or sound.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.

View source

advanceMutantJumpPhysics

function advanceMutantJumpPhysics(runtime, actor)

Advance mutant jump physics.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.

View source

advanceWeaponProjectileAtNumber

function advanceWeaponProjectileAtNumber(runtime, requestedNumber)

Advance weapon projectiles.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
requestedNumberdynamic—requestedNumber value consumed by this operation.

View source

advanceWeaponProjectiles

function advanceWeaponProjectiles(runtime)

Advance weapon projectiles.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

advanceWorldTossEntities

function advanceWorldTossEntities(runtime)

Advance every managed world toss entity (compatibility/test entry point).

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

advanceWorldTossEntitiesAtNumber

function advanceWorldTossEntitiesAtNumber(runtime, requestedNumber)

Advance world toss entities.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
requestedNumberdynamic—requestedNumber value consumed by this operation.

View source

aiAreasConnected

function aiAreasConnected(first, second)

Report whether ai areas connected.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

aiClearShot

function aiClearShot(actor, other)

Clear ai shot.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
otherdynamic—other value consumed by this operation.

View source

aiInPHS

function aiInPHS(first, second)

Return the ai in phs value.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

aiPickTarget

function aiPickTarget(targetName)

Choose ai target.

ParameterTypeDefaultDescription
targetNamedynamic—targetName value consumed by this operation.

View source

aiTraceEndScratch

aiTraceEndScratch

Stores module-wide ai trace end scratch state for the miniquake2 game integration baseq2 module.

View source

aiTraceStartScratch

aiTraceStartScratch

The server game is single-threaded. Reuse the three immutable-by-callee

View source

aiTraceZeroScratch

aiTraceZeroScratch

Stores module-wide ai trace zero scratch state for the miniquake2 game integration baseq2 module.

View source

aiTrailPickFirst

function aiTrailPickFirst(actor)

Choose ai trail first.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

aiTrailPickNext

function aiTrailPickNext(actor)

Choose ai trail next.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

aiTriggerMaxsScratch

aiTriggerMaxsScratch

Stores module-wide ai trigger maxs scratch state for the miniquake2 game integration baseq2 module.

View source

aiTriggerMinsScratch

aiTriggerMinsScratch

Stores module-wide ai trigger mins scratch state for the miniquake2 game integration baseq2 module.

View source

aiUseTargets

function aiUseTargets(actor, activator)

Use ai targets.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
activatordynamic—activator value consumed by this operation.

View source

aiVisible

function aiVisible(actor, other)

Report whether ai visible.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
otherdynamic—other value consumed by this operation.

View source

applyMonsterAttackMovement

function applyMonsterAttackMovement(actor, attackPlan, timelineOffset, context)

Apply monster attack movement.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
timelineOffsetdynamic—timelineOffset value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

applyPlayerWeaponRecoil

function applyPlayerWeaponRecoil(runtime, player, item, direction)

Apply player weapon recoil.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
itemdynamic—item value consumed by this operation.
directiondynamic—direction value consumed by this operation.

View source

beginMonsterAttack

function beginMonsterAttack(runtime, actor, attackPlan)

Begin monster attack.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.

View source

beginPlayerAttackAnimation

function beginPlayerAttackAnimation(player)

Begin player attack animation.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.

View source

bindEngineModels

function bindEngineModels(runtime, exportTable, imports)

Bind engine models.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
exportTabledynamic—exportTable value consumed by this operation.
importsdynamic—imports value consumed by this operation.

View source

bindEngineModelsWithMode

function bindEngineModelsWithMode(runtime, exportTable, imports, refreshGeometry)

Bind managed world components to their engine edicts through setmodel so inline brush hull bounds/headnodes become authoritative for movement and traces. This must run after configureIntegratedRuntime installed linkEntity.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
exportTabledynamic—exportTable value consumed by this operation.
importsdynamic—imports value consumed by this operation.
refreshGeometrydynamic—refreshGeometry value consumed by this operation.

View source

bindRestoredEngineModels

function bindRestoredEngineModels(runtime, exportTable, imports)

Bind restored engine models.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
exportTabledynamic—exportTable value consumed by this operation.
importsdynamic—imports value consumed by this operation.

View source

bodyQueueDie

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

Handle damage to a corpse copied into the fixed body queue.

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

boundsOverlap

function boundsOverlap(first, second)

Return the bounds overlap value.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

clipWeaponAxis

function clipWeaponAxis(interval, startValue, endValue, minimum, maximum, axis)

Clip weapon axis.

ParameterTypeDefaultDescription
intervaldynamic—interval value consumed by this operation.
startValuedynamic—startValue value consumed by this operation.
endValuedynamic—endValue value consumed by this operation.
minimumdynamic—minimum value consumed by this operation.
maximumdynamic—maximum value consumed by this operation.
axisdynamic—axis value consumed by this operation.

View source

clipWorldLaserAxis

function clipWorldLaserAxis(clip, startValue, endValue, minimum, maximum, axis)

Clip world laser axis.

ParameterTypeDefaultDescription
clipdynamic—clip value consumed by this operation.
startValuedynamic—startValue value consumed by this operation.
endValuedynamic—endValue value consumed by this operation.
minimumdynamic—minimum value consumed by this operation.
maximumdynamic—maximum value consumed by this operation.
axisdynamic—axis value consumed by this operation.

View source

clipWorldLaserBounds

function clipWorldLaserBounds(start, finish, origin, mins, maxs)

Clip world laser bounds.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
finishdynamic—finish value consumed by this operation.
origindynamic—origin value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.

View source

clipWorldTossVelocity

function clipWorldTossVelocity(entity, normal)

Match g_phys.c ClipVelocity and the SV_Physics_Toss landing gate. Bounce entities retain enough reflected vertical speed to leave the ground again; ordinary toss entities settle on the first walkable floor impact.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
normaldynamic—normal value consumed by this operation.

View source

compactIntegratedValues

function compactIntegratedValues(values, count)

Return the compact integrated values value.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.
countdynamic—Number of items or units to process.

View source

compactWeaponProjectiles

function compactWeaponProjectiles(runtime)

Remove projectile records released during the numeric edict pass.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

configureAI

function configureAI(context)

Configure ai.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

containsItemIndex

function containsItemIndex(indexes, value)

Report whether contains item index.

ParameterTypeDefaultDescription
indexesdynamic—indexes value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

copyPlayerBody

function copyPlayerBody(runtime, player)

CopyToBodyQue: snapshot the dead player into the next fixed corpse slot.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

copyVector

function copyVector(values)

Copy vector data.

ParameterTypeDefaultDescription
valuesdynamic—values value consumed by this operation.

View source

create

function create(spawnResult)

Construct every world, item and monster record before callbacks can observe the runtime. Parsed edict numbers remain authoritative across proxy tables.

ParameterTypeDefaultDescription
spawnResultdynamic—spawnResult value consumed by this operation.

View source

damageMonster

function damageMonster(runtime, monsterIndex, attacker, damage)

Return the damage monster value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
monsterIndexdynamic—Zero-based index of monster.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.

View source

damageMutantJumpTarget

function damageMutantJumpTarget(runtime, actor, target, velocity, impactPoint)

Return the damage mutant jump target value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
targetdynamic—target value consumed by this operation.
velocitydynamic—velocity value consumed by this operation.
impactPointdynamic—impactPoint value consumed by this operation.

View source

damageWorldEntity

function damageWorldEntity(runtime, entityNumber, attacker, damage)

Return the damage world entity value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entityNumberdynamic—entityNumber value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
damagedynamic—damage value consumed by this operation.

View source

deathmatchInhibitsItem

function deathmatchInhibitsItem(itemEntity, playerContext)

Return the deathmatch inhibits item value.

ParameterTypeDefaultDescription
itemEntitydynamic—itemEntity value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

dropPlayerItem

function dropPlayerItem(runtime, player, playerContext, item)

Drop player item.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.
itemdynamic—item value consumed by this operation.

View source

emitMonsterAttackEventSound

function emitMonsterAttackEventSound(actor, attackPlan, eventIndex, eventFired)

Emit monster attack event sound.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.
eventFireddynamic—eventFired value consumed by this operation.

View source

emitMonsterAttackFrameSound

function emitMonsterAttackFrameSound(actor, attackPlan, timelineOffset)

Emit monster attack frame sound.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
timelineOffsetdynamic—timelineOffset value consumed by this operation.

View source

emitPlayerWeaponSound

function emitPlayerWeaponSound(runtime, player, channel, name, attenuation)

Emit player weapon sound.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
channeldynamic—channel value consumed by this operation.
namedynamic—Name of the affected item.
attenuationdynamic—attenuation value consumed by this operation.

View source

findAIPlayer

function findAIPlayer(runtime, number)

Find ai player.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

findItemByClass

function findItemByClass(runtime, className)

Find item by class.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

findItemByNumber

function findItemByNumber(runtime, number)

Find item by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

findWorldByClass

function findWorldByClass(runtime, className)

Find world by class.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

findWorldByNumber

function findWorldByNumber(runtime, number)

Find world by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

finishMonsterAttack

function finishMonsterAttack(runtime, actor, attackPlan, lastFrameOffset)

Finish monster attack.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
lastFrameOffsetdynamic—lastFrameOffset value consumed by this operation.

View source

fireMonsterAttack

function fireMonsterAttack(runtime, actor, attackPlan, eventIndex, muzzleFlash)

Fire monster attack.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.
muzzleFlashdynamic—muzzleFlash value consumed by this operation.

View source

infantryDeathAimPitch

infantryDeathAimPitch

m_infantry.c's fixed death211..death222 spray. Scalar package tables avoid

View source

infantryDeathAimYaw

infantryDeathAimYaw

Stores module-wide infantry death aim yaw state for the miniquake2 game integration baseq2 module.

View source

initializeBodyQueue

function initializeBodyQueue(runtime)

Reserve the eight body edicts immediately after the client range.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

initializeEdictAllocator

function initializeEdictAllocator(runtime, exportTable, maxClients)

Initialize the level-owned allocator state used by every dynamic entity.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
exportTabledynamic—exportTable value consumed by this operation.
maxClientsdynamic—maxClients value consumed by this operation.

View source

initializeMonsterMovement

function initializeMonsterMovement(runtime, restoring)

m_move/g_monster startup is delayed until the GameImport collision bridge has the retail BSP and inline models linked. Restores re-establish transient ground/water references without altering the persisted transform.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
restoringdynamic—restoring value consumed by this operation.

View source

installDroppedItem

function installDroppedItem(runtime, player, playerContext, itemEntity)

Complete Drop_Item's engine-facing half after the item-specific callback has changed inventory. The managed item record retains toss velocity and the two stock deadlines: owner immunity for one second and DM expiry at 30.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.
itemEntitydynamic—itemEntity value consumed by this operation.

View source

installMonsterTargetProxies

function installMonsterTargetProxies(runtime)

Install monster target proxies.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

installPropTargetProxies

function installPropTargetProxies(runtime)

Install prop target proxies.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

installTurretRigs

function installTurretRigs(runtime)

Install turret rigs.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

installWorldSpawn

function installWorldSpawn(entity, world)

Install world spawn.

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

View source

integratedActorBroadcast

function integratedActorBroadcast(actorNumber, message, exclamation)

Return the integrated actor broadcast value.

ParameterTypeDefaultDescription
actorNumberdynamic—actorNumber value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.
exclamationdynamic—exclamation value consumed by this operation.

View source

integratedActorChat

function integratedActorChat(actor, message)

Return the integrated actor chat value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

integratedActorMessage

function integratedActorMessage(actorEntity, message)

Return the integrated actor message value.

ParameterTypeDefaultDescription
actorEntitydynamic—actorEntity value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

integratedActorName

function integratedActorName(number)

Return the integrated actor name.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.

View source

integratedActorTransition

function integratedActorTransition(actorEntity, waypoint, action, actionTarget, nextTarget, wait, flags)

Return the integrated actor transition value.

ParameterTypeDefaultDescription
actorEntitydynamic—actorEntity value consumed by this operation.
waypointdynamic—waypoint value consumed by this operation.
actiondynamic—action value consumed by this operation.
actionTargetdynamic—actionTarget value consumed by this operation.
nextTargetdynamic—nextTarget value consumed by this operation.
waitdynamic—wait value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.

View source

integratedAIDamage

function integratedAIDamage(actor, amount, damageFlags, meansOfDeath)

Return the integrated ai damage value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
amountdynamic—amount value consumed by this operation.
damageFlagsdynamic—damageFlags value consumed by this operation.
meansOfDeathdynamic—meansOfDeath value consumed by this operation.

View source

integratedAIDeathEffect

function integratedAIDeathEffect(actor, effect)

Return the integrated ai death effect value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
effectdynamic—effect value consumed by this operation.

View source

integratedAIFindTargets

function integratedAIFindTargets(targetName)

Find integrated ai targets.

ParameterTypeDefaultDescription
targetNamedynamic—targetName value consumed by this operation.

View source

integratedAIKillBox

function integratedAIKillBox(actor)

Kill integrated ai box.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

integratedAILinkActor

function integratedAILinkActor(actor)

Link integrated ai actor.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

integratedAILog

function integratedAILog(message)

Return the integrated ai log value.

ParameterTypeDefaultDescription
messagedynamic—Human-readable message associated with the operation.

View source

integratedAIMoveToGoal

function integratedAIMoveToGoal(actor, distance)

Move integrated ai to goal.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
distancedynamic—distance value consumed by this operation.

View source

integratedAIPointContents

function integratedAIPointContents(point)

Return the integrated ai point contents value.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.

View source

integratedAISound

function integratedAISound(actor, soundName, channel, attenuation)

Return the integrated ai sound value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
soundNamedynamic—soundName value consumed by this operation.
channeldynamic—channel value consumed by this operation.
attenuationdynamic—attenuation value consumed by this operation.

View source

integratedAISoundIndex

function integratedAISoundIndex(soundName)

Return the integrated ai sound index.

ParameterTypeDefaultDescription
soundNamedynamic—soundName value consumed by this operation.

View source

integratedAITempEntity

function integratedAITempEntity(actor, effectType)

Return the integrated ai temp entity value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
effectTypedynamic—effectType value consumed by this operation.

View source

integratedAITouchTriggers

function integratedAITouchTriggers(actor)

Handle integrated ai triggers.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

integratedAITrace

function integratedAITrace(start, mins, maxs, finish, ignore, mask)

Trace integrated ai.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.
finishdynamic—finish value consumed by this operation.
ignoredynamic—ignore value consumed by this operation.
maskdynamic—mask value consumed by this operation.

View source

integratedAIWalkMove

function integratedAIWalkMove(actor, yaw, distance)

Move integrated ai walk.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
yawdynamic—yaw value consumed by this operation.
distancedynamic—distance value consumed by this operation.

View source

miniquake2.game.integration.baseq2.IntegratedBaseQ2 struct

integratedBodyGibs

function integratedBodyGibs(origin, damage, count)

Spawn the four organic chunks emitted by p_client.c::body_die.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
damagedynamic—damage value consumed by this operation.
countdynamic—Number of items or units to process.

View source

integratedCanDamage

function integratedCanDamage(target, origin)

Report whether integrated can damage.

ParameterTypeDefaultDescription
targetdynamic—target value consumed by this operation.
origindynamic—origin value consumed by this operation.

View source

integratedClockSeconds

function integratedClockSeconds()

Return the integrated clock seconds value.

View source

integratedCombatPointTransition

function integratedCombatPointTransition(actorEntity, point, nextTarget, hold, clearCombatPoint)

Return the integrated combat point transition value.

ParameterTypeDefaultDescription
actorEntitydynamic—actorEntity value consumed by this operation.
pointdynamic—point value consumed by this operation.
nextTargetdynamic—nextTarget value consumed by this operation.
holddynamic—hold value consumed by this operation.
clearCombatPointdynamic—clearCombatPoint value consumed by this operation.

View source

integratedConsumeKeyItem

function integratedConsumeKeyItem(activator, itemClassName)

Consume integrated key item.

ParameterTypeDefaultDescription
activatordynamic—activator value consumed by this operation.
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

integratedDamageEffect

function integratedDamageEffect(point, direction, blood, bullet)

Return the integrated damage effect value.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.
directiondynamic—direction value consumed by this operation.
blooddynamic—blood value consumed by this operation.
bulletdynamic—bullet value consumed by this operation.

View source

integratedDodge

function integratedDodge(owner, start, direction, speed)

Return the integrated dodge value.

ParameterTypeDefaultDescription
ownerdynamic—owner value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
speeddynamic—speed value consumed by this operation.

View source

miniquake2.game.integration.baseq2.IntegratedDynamicClip struct

integratedExitDamage

function integratedExitDamage(targetEntity, amount)

use_target_changelevel's no-exit punishment is ordinary T_Damage with a large knockback and MOD_EXIT. Route it through the same live target adapter as weapon and projectile damage so players, monsters and brush entities all receive their normal pain/death synchronization.

ParameterTypeDefaultDescription
targetEntitydynamic—targetEntity value consumed by this operation.
amountdynamic—amount value consumed by this operation.

View source

integratedFindDeadMonster

function integratedFindDeadMonster(medic)

Find integrated dead monster.

ParameterTypeDefaultDescription
medicdynamic—medic value consumed by this operation.

View source

integratedHasKeyItem

function integratedHasKeyItem(activator, itemClassName)

Report whether integrated has key item.

ParameterTypeDefaultDescription
activatordynamic—activator value consumed by this operation.
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

integratedInfantryDeathFire

function integratedInfantryDeathFire(runtime, actor, timelineOffset)

Fire integrated infantry death.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
timelineOffsetdynamic—timelineOffset value consumed by this operation.

View source

integratedLightStyle

function integratedLightStyle(style, pattern)

Return the integrated light style value.

ParameterTypeDefaultDescription
styledynamic—style value consumed by this operation.
patterndynamic—pattern value consumed by this operation.

View source

integratedMedicCableEvent

function integratedMedicCableEvent(runtime, medic, eventIndex)

Return the integrated medic cable event value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
medicdynamic—medic value consumed by this operation.
eventIndexdynamic—Zero-based index of event.

View source

integratedMedicCorpseVisible

function integratedMedicCorpseVisible(runtime, medic, patient)

Report whether integrated medic corpse visible.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
medicdynamic—medic value consumed by this operation.
patientdynamic—patient value consumed by this operation.

View source

integratedMonsterByNumber

function integratedMonsterByNumber(runtime, number)

Return the integrated monster by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

integratedMonsterDrainBeam

function integratedMonsterDrainBeam(runtime, actor, start, endPosition)

Drain integrated monster beam.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
startdynamic—start value consumed by this operation.
endPositiondynamic—endPosition value consumed by this operation.

View source

integratedMonsterMedicCable

function integratedMonsterMedicCable(runtime, medic, cableOffsetIndex)

Return the integrated monster medic cable value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
medicdynamic—medic value consumed by this operation.
cableOffsetIndexdynamic—Zero-based index of cable offset.

View source

integratedMonsterMuzzleFlash

function integratedMonsterMuzzleFlash(runtime, actor, muzzleFlash, origin)

Return the integrated monster muzzle flash value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
muzzleFlashdynamic—muzzleFlash value consumed by this operation.
origindynamic—origin value consumed by this operation.

View source

integratedMonsterProxyUse

function integratedMonsterProxyUse(entity, other, activator, world)

Use integrated monster proxy.

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

integratedPlayerByNumber

function integratedPlayerByNumber(runtime, number)

Return the integrated player by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

integratedPlayerFire

function integratedPlayerFire(gameplayPlayer, registry)

Bridge the stock p_weapon state machine to authoritative edicts, protocol effects and damage while preserving the component-only fallback used by isolated gameplay tests.

ParameterTypeDefaultDescription
gameplayPlayerdynamic—gameplayPlayer value consumed by this operation.
registrydynamic—registry value consumed by this operation.

View source

integratedPlayerMuzzleFlash

function integratedPlayerMuzzleFlash(runtime, shooter, item, shots, silenced)

Return the integrated player muzzle flash value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
shooterdynamic—shooter value consumed by this operation.
itemdynamic—item value consumed by this operation.
shotsdynamic—shots value consumed by this operation.
silenceddynamic—silenced value consumed by this operation.

View source

integratedPlayerNoise

function integratedPlayerNoise(owner, position, noiseType)

Return the integrated player noise value.

ParameterTypeDefaultDescription
ownerdynamic—owner value consumed by this operation.
positiondynamic—position value consumed by this operation.
noiseTypedynamic—noiseType value consumed by this operation.

View source

integratedPlayerNoiseOwnerNumber

function integratedPlayerNoiseOwnerNumber(owner)

Resolve either a WeaponTarget or GameplayPlayer to its engine edict number.

ParameterTypeDefaultDescription
ownerdynamic—owner value consumed by this operation.

View source

integratedPowerArmorEffect

function integratedPowerArmorEffect(point, direction, armorType)

Emit the stock power-screen or power-shield impact feedback.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.
directiondynamic—direction value consumed by this operation.
armorTypedynamic—armorType value consumed by this operation.

View source

integratedProjectileFreeTotal

integratedProjectileFreeTotal

Stores module-wide integrated projectile free total state for the miniquake2 game integration baseq2 module.

View source

integratedProjectileLinkTotal

integratedProjectileLinkTotal

Stores module-wide integrated projectile link total state for the miniquake2 game integration baseq2 module.

View source

integratedPropProxyUse

function integratedPropProxyUse(entity, other, activator, world)

Use integrated prop proxy.

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

integratedRadiusTargets

function integratedRadiusTargets(origin, radius)

Return the integrated radius targets value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
radiusdynamic—radius value consumed by this operation.

View source

integratedRandomIndex

function integratedRandomIndex(count)

Return the integrated random index.

ParameterTypeDefaultDescription
countdynamic—Number of items or units to process.

View source

integratedRandomInteger

function integratedRandomInteger()

Return the integrated random integer value.

View source

integratedRandomSigned

function integratedRandomSigned()

Return the integrated random signed value.

View source

integratedRandomUnit

function integratedRandomUnit()

Return the integrated random unit value.

View source

integratedReactionFrameEvent

function integratedReactionFrameEvent(actor, plan, timelineOffset, eventKind)

Return the integrated reaction frame event value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
plandynamic—plan value consumed by this operation.
timelineOffsetdynamic—timelineOffset value consumed by this operation.
eventKinddynamic—eventKind value consumed by this operation.

View source

integratedResolveKeyItem

function integratedResolveKeyItem(itemClassName)

Resolve integrated key item.

ParameterTypeDefaultDescription
itemClassNamedynamic—itemClassName value consumed by this operation.

View source

integratedResurrectMonster

function integratedResurrectMonster(runtime, medic, patient)

Return the integrated resurrect monster value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
medicdynamic—medic value consumed by this operation.
patientdynamic—patient value consumed by this operation.

View source

integratedSoldierDeathFire

function integratedSoldierDeathFire(runtime, actor, timelineOffset)

Fire integrated soldier death.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
timelineOffsetdynamic—timelineOffset value consumed by this operation.

View source

integratedSourceNumber

function integratedSourceNumber(source)

Return the integrated source number.

ParameterTypeDefaultDescription
sourcedynamic—source value consumed by this operation.

View source

integratedSpawnMonster

function integratedSpawnMonster(className, parent)

Spawn integrated monster.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
parentdynamic—parent value consumed by this operation.

View source

integratedTurretAcquire

function integratedTurretAcquire(driver, world)

Return the integrated turret acquire value.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedTurretControl

function integratedTurretControl()

Return the integrated turret control value.

View source

integratedTurretCrushDamage

function integratedTurretCrushDamage(targetEntity, inflictor, attacker, amount, knockback, means, world)

Return the integrated turret crush damage value.

ParameterTypeDefaultDescription
targetEntitydynamic—targetEntity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
knockbackdynamic—knockback value consumed by this operation.
meansdynamic—means value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedTurretDriverDie

function integratedTurretDriverDie(driver, inflictor, attacker, damage, point, world)

Handle integrated turret driver.

ParameterTypeDefaultDescription
driverdynamic—driver 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

integratedTurretDriverSpawn

function integratedTurretDriverSpawn(driver, world)

Spawn integrated turret driver.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedTurretDriverUse

function integratedTurretDriverUse(driver, other, activator, world)

Use integrated turret driver.

ParameterTypeDefaultDescription
driverdynamic—driver 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

integratedTurretFire

function integratedTurretFire(attacker, start, direction, damage, speed, splashRadius, world)

Fire integrated turret.

ParameterTypeDefaultDescription
attackerdynamic—attacker value consumed by this operation.
startdynamic—start value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.
splashRadiusdynamic—splashRadius value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedTurretPositionedSound

function integratedTurretPositionedSound(origin, entity, soundName, world)

Return the integrated turret positioned sound value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
entitydynamic—entity value consumed by this operation.
soundNamedynamic—soundName value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedTurretRandomUnit

function integratedTurretRandomUnit()

Return the integrated turret random unit value.

View source

integratedTurretSkillValue

function integratedTurretSkillValue()

Return the integrated turret skill value.

View source

integratedTurretVisible

function integratedTurretVisible(driver, enemy, world)

Report whether integrated turret visible.

ParameterTypeDefaultDescription
driverdynamic—driver value consumed by this operation.
enemydynamic—enemy value consumed by this operation.
worlddynamic—world value consumed by this operation.

View source

integratedWeaponCallbacks

function integratedWeaponCallbacks()

Return the integrated weapon callbacks value.

View source

integratedWeaponContents

function integratedWeaponContents(point)

Return the integrated weapon contents value.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.

View source

integratedWeaponDamage

function integratedWeaponDamage(combatant, request)

Return the integrated weapon damage value.

ParameterTypeDefaultDescription
combatantdynamic—combatant value consumed by this operation.
requestdynamic—request value consumed by this operation.

View source

integratedWeaponEffect

function integratedWeaponEffect(effect)

Return the integrated weapon effect value.

ParameterTypeDefaultDescription
effectdynamic—effect value consumed by this operation.

View source

integratedWeaponFree

function integratedWeaponFree(entity)

Release integrated weapon.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

integratedWeaponSound

function integratedWeaponSound(entity, soundName)

Return the integrated weapon sound value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
soundNamedynamic—soundName value consumed by this operation.

View source

integratedWeaponTargets

function integratedWeaponTargets(runtime)

Return the integrated weapon targets value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

integratedWeaponTrace

function integratedWeaponTrace(start, mins, maxs, finish, ignore, mask)

Trace integrated weapon.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.
finishdynamic—finish value consumed by this operation.
ignoredynamic—ignore value consumed by this operation.
maskdynamic—mask value consumed by this operation.

View source

integratedWorldActor

function integratedWorldActor(number)

Return the integrated world actor value.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.

View source

integratedWorldAIActivator

function integratedWorldAIActivator(source)

Return the integrated world ai activator value.

ParameterTypeDefaultDescription
sourcedynamic—source value consumed by this operation.

View source

integratedWorldAITarget

function integratedWorldAITarget(entity)

Return the integrated world ai target value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

integratedWorldCollisionProxy

function integratedWorldCollisionProxy(runtime, number)

Return the integrated world collision proxy value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

integratedWorldDamage

function integratedWorldDamage(targetEntity, inflictor, attacker, amount, means)

Return the integrated world damage value.

ParameterTypeDefaultDescription
targetEntitydynamic—targetEntity value consumed by this operation.
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
meansdynamic—means value consumed by this operation.

View source

integratedWorldDebris

function integratedWorldDebris(kind, origin, speed, count)

Match g_misc.c ThrowDebris: model-backed, non-solid bounce entities with a five-to-ten-second lifetime. Unlike monster gibs they carry no EF_GIB trail.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
origindynamic—origin value consumed by this operation.
speeddynamic—speed value consumed by this operation.
countdynamic—Number of items or units to process.

View source

integratedWorldEarthquake

function integratedWorldEarthquake(entity, speed, playSound)

Return the integrated world earthquake value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
speeddynamic—speed value consumed by this operation.
playSounddynamic—playSound value consumed by this operation.

View source

integratedWorldEffect

function integratedWorldEffect(kind, origin, style, count)

World state machines use this callback for stock temp entities and visible barrel debris. Permanent protocol edicts are allocated only for the chunks.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
origindynamic—origin value consumed by this operation.
styledynamic—style value consumed by this operation.
countdynamic—Number of items or units to process.

View source

integratedWorldFireBlaster

function integratedWorldFireBlaster(entity, direction, damage, speed)

Fire integrated world blaster.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.
directiondynamic—direction value consumed by this operation.
damagedynamic—damage value consumed by this operation.
speeddynamic—speed value consumed by this operation.

View source

integratedWorldKillBox

function integratedWorldKillBox(entity)

Kill integrated world box.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source

integratedWorldLaserSparks

function integratedWorldLaserSparks(origin, normal, count, color)

Return the integrated world laser sparks value.

ParameterTypeDefaultDescription
origindynamic—origin value consumed by this operation.
normaldynamic—normal value consumed by this operation.
countdynamic—Number of items or units to process.
colordynamic—color value consumed by this operation.

View source

integratedWorldLaserTrace

function integratedWorldLaserTrace(start, finish, ignore)

Merge the engine world trace with managed player, monster and world bounds. The nearest eligible hit wins; scratch records are reused on the server thread.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
finishdynamic—finish value consumed by this operation.
ignoredynamic—ignore value consumed by this operation.

View source

integratedWorldMeans

function integratedWorldMeans(means)

Return the integrated world means value.

ParameterTypeDefaultDescription
meansdynamic—means value consumed by this operation.

View source

integratedWorldPlayer

function integratedWorldPlayer(activator)

Return the integrated world player value.

ParameterTypeDefaultDescription
activatordynamic—activator value consumed by this operation.

View source

integratedWorldPointContents

function integratedWorldPointContents(runtime, point)

Return the integrated world point contents value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
pointdynamic—point value consumed by this operation.

View source

integratedWorldRadiusDamage

function integratedWorldRadiusDamage(inflictor, attacker, amount, radius, means)

Return the integrated world radius damage value.

ParameterTypeDefaultDescription
inflictordynamic—inflictor value consumed by this operation.
attackerdynamic—attacker value consumed by this operation.
amountdynamic—amount value consumed by this operation.
radiusdynamic—radius value consumed by this operation.
meansdynamic—means value consumed by this operation.

View source

integratedWorldSetModel

function integratedWorldSetModel(entity, modelName)

Set integrated world model.

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

View source

integratedWorldSpawnExternal

function integratedWorldSpawnExternal(className, origin, angles, velocity)

Spawn integrated world external.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
origindynamic—origin value consumed by this operation.
anglesdynamic—angles value consumed by this operation.
velocitydynamic—velocity value consumed by this operation.

View source

itemTeamMaster

function itemTeamMaster(itemEntity)

Return the item team master value.

ParameterTypeDefaultDescription
itemEntitydynamic—itemEntity value consumed by this operation.

View source

itemWorldEffects

function itemWorldEffects(item)

Return the item world effects value.

ParameterTypeDefaultDescription
itemdynamic—item value consumed by this operation.

View source

managedEdictSlotActive

function managedEdictSlotActive(runtime, number)

Report whether a protocol slot still belongs to a live managed record.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

medicCableOffsetX

medicCableOffsetX

Exact m_medic.c attack42-relative cable offsets. Package-rooted scalar

View source

medicCableOffsetY

medicCableOffsetY

Stores module-wide medic cable offset y state for the miniquake2 game integration baseq2 module.

View source

medicCableOffsetZ

medicCableOffsetZ

Stores module-wide medic cable offset z state for the miniquake2 game integration baseq2 module.

View source

monsterAttackDamage

function monsterAttackDamage(runtime, attackPlan, eventIndex)

Run monster damage.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.

View source

monsterAttackDamageFromState

function monsterAttackDamageFromState(randomState, attackPlan, eventIndex)

Run monster damage from state.

ParameterTypeDefaultDescription
randomStatedynamic—randomState value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.

View source

monsterAttackDirection

function monsterAttackDirection(actor, attackPlan, eventIndex, start, destination, velocity)

Run monster direction.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.
startdynamic—start value consumed by this operation.
destinationdynamic—destination value consumed by this operation.
velocitydynamic—velocity value consumed by this operation.

View source

monsterAttackSupported

function monsterAttackSupported(actor)

Report whether monster attack supported.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

monsterAttackTimelineOffset

function monsterAttackTimelineOffset(actor, attackPlan, now)

Run monster timeline offset.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
nowdynamic—now value consumed by this operation.

View source

monsterEnemyAimPoint

function monsterEnemyAimPoint(actor, enemy)

Return the monster enemy aim point value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
enemydynamic—enemy value consumed by this operation.

View source

monsterFireHit

function monsterFireHit(runtime, actor, enemyTarget, shooter, attackPlan, eventIndex, damage, kick)

Fire monster hit.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
enemyTargetdynamic—enemyTarget value consumed by this operation.
shooterdynamic—shooter value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.
damagedynamic—damage value consumed by this operation.
kickdynamic—kick value consumed by this operation.

View source

monsterMeleeAim

function monsterMeleeAim(actor, attackPlan, eventIndex)

Return the monster melee aim value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.

View source

monsterMuzzleAndDirection

function monsterMuzzleAndDirection(runtime, actor, attackPlan, eventIndex, muzzleFlash)

Return the monster muzzle and direction value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.
eventIndexdynamic—Zero-based index of event.
muzzleFlashdynamic—muzzleFlash value consumed by this operation.

View source

monsterMuzzleStart

function monsterMuzzleStart(actor, muzzleFlash)

Start monster muzzle.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
muzzleFlashdynamic—muzzleFlash value consumed by this operation.

View source

monsterProjectedStart

function monsterProjectedStart(actor, offset)

Start monster projected.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
offsetdynamic—Zero-based offset at which processing starts.

View source

monsterRefireDecisionOffset

function monsterRefireDecisionOffset(attackPlan)

Return the monster refire decision offset.

ParameterTypeDefaultDescription
attackPlandynamic—attackPlan value consumed by this operation.

View source

monsterSecondaryModelName

function monsterSecondaryModelName(actor)

Return the monster secondary model name.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

monsterShouldRefire

function monsterShouldRefire(runtime, actor, attackPlan)

Report whether monster should refire.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.

View source

monsterSoldierAttackDirection

function monsterSoldierAttackDirection(randomState, start, destination)

Run monster soldier direction.

ParameterTypeDefaultDescription
randomStatedynamic—randomState value consumed by this operation.
startdynamic—start value consumed by this operation.
destinationdynamic—destination value consumed by this operation.

View source

monsterWeaponTarget

function monsterWeaponTarget(actor)

Return the monster weapon target value.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

parasiteDrainCanDamage

function parasiteDrainCanDamage(runtime, shooter, enemyTarget, start)

Report whether parasite drain can damage.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
shooterdynamic—shooter value consumed by this operation.
enemyTargetdynamic—enemyTarget value consumed by this operation.
startdynamic—start value consumed by this operation.

View source

parasiteDrainPointOk

function parasiteDrainPointOk(start, endPosition)

Drain parasite point ok.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
endPositiondynamic—endPosition value consumed by this operation.

View source

playerChaingunMuzzle

function playerChaingunMuzzle(player)

Return the player chaingun muzzle value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.

View source

playerForGameplay

function playerForGameplay(runtime, gameplayPlayer)

Return the player for gameplay value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
gameplayPlayerdynamic—gameplayPlayer value consumed by this operation.

View source

playerMuzzle

function playerMuzzle(player, item, gunFrame, shotIndex)

Return the player muzzle value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
itemdynamic—item value consumed by this operation.
gunFramedynamic—gunFrame value consumed by this operation.
shotIndexdynamic—Zero-based index of shot.

View source

playerMuzzleFlashForItem

function playerMuzzleFlashForItem(item, shots)

Return the player muzzle flash for item value.

ParameterTypeDefaultDescription
itemdynamic—item value consumed by this operation.
shotsdynamic—shots value consumed by this operation.

View source

playerMuzzleForAngles

function playerMuzzleForAngles(player, item, gunFrame, shotIndex, angles)

Return the player muzzle for angles.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
itemdynamic—item value consumed by this operation.
gunFramedynamic—gunFrame value consumed by this operation.
shotIndexdynamic—Zero-based index of shot.
anglesdynamic—angles value consumed by this operation.

View source

playerWeaponShotCount

function playerWeaponShotCount(gameplayPlayer, item, effectiveFrame)

Return the player weapon shot count.

ParameterTypeDefaultDescription
gameplayPlayerdynamic—gameplayPlayer value consumed by this operation.
itemdynamic—item value consumed by this operation.
effectiveFramedynamic—effectiveFrame value consumed by this operation.

View source

playerWeaponTarget

function playerWeaponTarget(player, registry)

Return the player weapon target value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
registrydynamic—registry value consumed by this operation.

View source

playerWorldProxy

function playerWorldProxy(player)

Return the player world proxy value.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.

View source

precacheSpawned

function precacheSpawned(runtime, playerContext)

Keep map startup bounded to the definitions that can actually participate in this level. The default Blaster/player model are the only unconditional player assets; duplicate item and monster instances reuse engine indices.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

prepareMonsterRuntimeState

function prepareMonsterRuntimeState(actor)

Prepare monster runtime state.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

prepareSpawnedItem

function prepareSpawnedItem(runtime, itemEntity)

Prepare spawned item.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
itemEntitydynamic—itemEntity value consumed by this operation.

View source

projectileFreeCount

function projectileFreeCount()

Release projectile count.

View source

projectileLinkCount

function projectileLinkCount()

Link projectile count.

View source

projectMonsterAttackFrame

function projectMonsterAttackFrame(runtime, actor, attackPlan)

Project monster attack frame.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
attackPlandynamic—attackPlan value consumed by this operation.

View source

recordFrameDispatch

function recordFrameDispatch(runtime, number, kind)

Record an optional scheduler probe without allocating in production frames.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.
kinddynamic—kind value consumed by this operation.

View source

refreshAiRandom

function refreshAiRandom(runtime)

Refresh ai random.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

releaseEdict

function releaseEdict(runtime, number)

G_FreeEdict: preserve client and body-queue reservations and timestamp frees.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

releaseReservedEdict

function releaseReservedEdict(runtime, number)

Release reserved edict.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

reserveEdict

function reserveEdict(runtime)

G_Spawn: reuse only eligible freed edicts, then extend globals.num_edicts.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

reserveSpawnerEdict

function reserveSpawnerEdict(runtime)

Reserve spawner edict.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

reserveWorldEffectEdict

function reserveWorldEffectEdict(runtime)

Reuse a freed non-player edict before extending the protocol-visible table. Short-lived debris can otherwise exhaust MAX_EDICTS after several barrels.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

respawnTeamItem

function respawnTeamItem(runtime, itemEntity)

Return the respawn team item value.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
itemEntitydynamic—itemEntity value consumed by this operation.

View source

restoreBodyQueue

function restoreBodyQueue(runtime)

Rebind body-queue records decoded from a private level save.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

runFrame

function runFrame(runtime)

Run all non-client edicts in the original global numeric slot order.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.

View source

runItemAtNumber

function runItemAtNumber(runtime, number)

Run one managed item at its global edict slot.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

runMonsterAtNumber

function runMonsterAtNumber(runtime, number)

Run one monster at its global edict slot.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

runMonsterCombat

function runMonsterCombat(runtime, actor)

Select or continue the original class-specific combat sequence only after reaction/death moves have had priority. The function returns true when it owns this server frame and the generic AI path must not also advance it.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.

View source

runPlayerGameplayFrame

function runPlayerGameplayFrame(runtime, playerContext)

Run player gameplay frame.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

runWorldAtNumber

function runWorldAtNumber(runtime, captureState, number)

Run one world-owned edict, including an atomic pusher team at its captain.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
captureStatedynamic—captureState value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

runWorldThinkAtNumber

function runWorldThinkAtNumber(runtime, entity)

Run one ordinary world think at its global edict slot.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.

View source

segmentWeaponTarget

function segmentWeaponTarget(start, finish, target)

Return the segment weapon target value.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
finishdynamic—finish value consumed by this operation.
targetdynamic—target value consumed by this operation.

View source

selectSightClient

function selectSightClient(runtime, playerContext)

Rotate the one client considered by FindTarget this frame exactly like g_ai.c:AI_SetSightClient. Client slots, not the managed array order, define the sequence and FL_NOTARGET clients do not consume another player's turn.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

setPlayerGameplayGunFrame

function setPlayerGameplayGunFrame(gameplayPlayer, frame)

Set player gameplay gun frame.

ParameterTypeDefaultDescription
gameplayPlayerdynamic—gameplayPlayer value consumed by this operation.
framedynamic—frame value consumed by this operation.

View source

setSoldierDuckAttackBounds

function setSoldierDuckAttackBounds(runtime, actor, lowered)

Set soldier duck attack bounds.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.
lowereddynamic—lowered value consumed by this operation.

View source

startMutantJump

function startMutantJump(runtime, actor)

Start mutant jump.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
actordynamic—actor value consumed by this operation.

View source

stockWorldGibModels

stockWorldGibModels

Stores module-wide stock world gib models state for the miniquake2 game integration baseq2 module.

View source

stockWorldSexedModels

stockWorldSexedModels

Stores module-wide stock world sexed models state for the miniquake2 game integration baseq2 module.

View source

stockWorldSounds

stockWorldSounds

SP_worldspawn's unconditional player/environment inventory. These package

View source

syncGameEdicts

function syncGameEdicts(runtime, exportTable)

Synchronize game edicts.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
exportTabledynamic—exportTable value consumed by this operation.

View source

syncPlayers

function syncPlayers(runtime, playerContext)

Synchronize players.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

thinkPlayerHandGrenade

function thinkPlayerHandGrenade(player, playerContext, runtime, item)

Run player hand grenade.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.
runtimedynamic—runtime value consumed by this operation.
itemdynamic—item value consumed by this operation.

View source

thinkPlayerWeapon

function thinkPlayerWeapon(player, playerContext)

Run player weapon.

ParameterTypeDefaultDescription
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

tossClientDeathItem

function tossClientDeathItem(runtime, player, playerContext, item, yawOffset, spawnFlags)

Create the two deathmatch-only drops from p_client.c:TossClientWeapon. Unlike the normal Drop command this must not mutate inventory: player_die clears it immediately after this callback, and the current weapon may be the player's last copy. Both results still use installDroppedItem, so they own real engine edicts, toss physics, models and pickup behavior.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.
itemdynamic—item value consumed by this operation.
yawOffsetdynamic—yawOffset value consumed by this operation.
spawnFlagsdynamic—spawnFlags value consumed by this operation.

View source

tossClientDeathItems

function tossClientDeathItems(playerContext, player)

Return the toss client death items value.

ParameterTypeDefaultDescription
playerContextdynamic—playerContext value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

tossClientHeldGrenade

function tossClientHeldGrenade(playerContext, player)

ChangeWeapon throws a cooked hand grenade when its owner dies. The stock code sets grenade_time to level.time first, so the resulting hand grenade has a zero timer and detonates through the ordinary projectile path at the death muzzle. player_die invokes this only after marking the owner dead, so the immediate radius damage cannot recursively re-enter first-death logic.

ParameterTypeDefaultDescription
playerContextdynamic—playerContext value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

touchDroppedItemTriggers

function touchDroppedItemTriggers(runtime, item)

Dispatch G_TouchTriggers for a dropped item's newly linked toss position.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
itemdynamic—item value consumed by this operation.

View source

touchEdict

function touchEdict(runtime, edict, player, playerContext)

Handle edict.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
edictdynamic—edict value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

touchItem

function touchItem(runtime, itemEntity, player, playerContext)

Handle item.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
itemEntitydynamic—itemEntity value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

touchItemByNumber

function touchItemByNumber(runtime, number, player, playerContext)

Handle item by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

touchNearbyItems

function touchNearbyItems(runtime, player, playerContext)

Handle nearby items.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerdynamic—player value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

touchPushedBody

function touchPushedBody(runtime, kind, value)

Dispatch the post-commit G_TouchTriggers pass for every pusher body kind. PlayerData, Actor and WorldEntity retain different authoritative shapes, so each branch reuses its normal trigger adapter instead of leaking snapshots.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
kinddynamic—kind value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.

View source

touchWeaponProjectileTriggers

function touchWeaponProjectileTriggers(runtime, projectile)

Adapt a managed projectile to the stock world-trigger callback surface after SV_PushEntity linked its final pose. Trigger mutations are copied back to the authoritative projectile record before the next physics frame.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
projectiledynamic—projectile value consumed by this operation.

View source

touchWorld

function touchWorld(runtime, entity, player)

Handle world.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

touchWorldByClass

function touchWorldByClass(runtime, className, player)

Handle world by class.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
classNamedynamic—className value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

touchWorldByNumber

function touchWorldByNumber(runtime, number, player)

Handle world by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.
playerdynamic—player value consumed by this operation.

View source

touchWorldTossTriggers

function touchWorldTossTriggers(runtime, entity)

Match SV_PushEntity's post-link G_TouchTriggers pass for toss/bounce world records. baseWorldLink mirrors the server-computed expanded abs bounds back onto the managed entity before this query.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.

View source

updatePlayerTrail

function updatePlayerTrail(runtime, playerContext)

Update player trail.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
playerContextdynamic—playerContext value consumed by this operation.

View source

updateWorldTossWater

function updateWorldTossWater(runtime, entity, oldOrigin)

SV_Physics_Toss samples only the entity origin. Entry is positioned at the pre-move origin, while exit is positioned at the post-move origin.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
entitydynamic—entity value consumed by this operation.
oldOrigindynamic—oldOrigin value consumed by this operation.

View source

useTriggeredItem

function useTriggeredItem(entity, other, activator, world)

Use triggered item.

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

weaponTargetByNumber

function weaponTargetByNumber(runtime, number)

Return the weapon target by number.

ParameterTypeDefaultDescription
runtimedynamic—runtime value consumed by this operation.
numberdynamic—number value consumed by this operation.

View source

weaponVector

function weaponVector(value)

Return the weapon vector value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

worldEntity

function worldEntity(baseEdict)

Return the world entity value.

ParameterTypeDefaultDescription
baseEdictdynamic—baseEdict value consumed by this operation.

View source

worldLaserBlockProxy

worldLaserBlockProxy

Stores module-wide world laser block proxy state for the miniquake2 game integration baseq2 module.

View source

worldLaserClipScratch

worldLaserClipScratch

target_laser is evaluated every server frame. Reuse its clip and adapter

View source

worldLaserEndScratch

worldLaserEndScratch

Stores module-wide world laser end scratch state for the miniquake2 game integration baseq2 module.

View source

worldLaserNormalScratch

worldLaserNormalScratch

Stores module-wide world laser normal scratch state for the miniquake2 game integration baseq2 module.

View source

worldLaserPlayerProxy

worldLaserPlayerProxy

Stores module-wide world laser player proxy state for the miniquake2 game integration baseq2 module.

View source

worldLaserTraceScratch

worldLaserTraceScratch

Stores module-wide world laser trace scratch state for the miniquake2 game integration baseq2 module.

View source

worldWeaponTarget

function worldWeaponTarget(entity)

Return the world weapon target value.

ParameterTypeDefaultDescription
entitydynamic—entity value consumed by this operation.

View source