# AdvanceBossExplosion
function AdvanceBossExplosion(actor, context)Advance boss explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
src/miniquake2/game/ai/monster.mlProvides miniquake2 game ai monster facilities for this project.
miniquake2/game/ai/actor.ml as gaiactor → src/miniquake2/game/ai/actor.mlminiquake2/game/ai/constants.ml as gaiconstants → src/miniquake2/game/ai/constants.mlminiquake2/game/ai/core.ml as gaicore → src/miniquake2/game/ai/core.mlminiquake2/game/ai/death_effects.ml as gaideatheffects → src/miniquake2/game/ai/death_effects.mlminiquake2/game/ai/locomotion_sequences.ml as gailocomotion → src/miniquake2/game/ai/locomotion_sequences.mlminiquake2/game/ai/move.ml as gaimove → src/miniquake2/game/ai/move.mlminiquake2/game/ai/props.ml as gaimonsterprops → src/miniquake2/game/ai/props.mlminiquake2/game/ai/reaction_sequences.ml as gaireactions → src/miniquake2/game/ai/reaction_sequences.mlminiquake2/game/ai/sounds.ml as gaisounds → src/miniquake2/game/ai/sounds.mlminiquake2/game/constants.ml as gconstants → src/miniquake2/game/constants.mlminiquake2/qcommon/constants.ml as qconstants → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/types.ml as gaiqtypes → src/miniquake2/qcommon/types.mlstd/math.ml as gaimath → ../MiniLangCompilerML/std/math.ml external dependencyfunction AdvanceBossExplosion(actor, context)Advance boss explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function AdvanceReaction(actor, plan, context)Advance reaction.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
plan | dynamic | — | plan value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ApplyWorldDamage(actor, amount, damageFlags, meansOfDeath, context)Apply world damage.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
damageFlags | dynamic | — | damageFlags value consumed by this operation. |
meansOfDeath | dynamic | — | meansOfDeath value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function BeginBossExplosion(actor, context)Begin boss explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ClaimMedicPatient(actor, patient, preserveEnemy, context)Return the claim medic patient value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
patient | dynamic | — | patient value consumed by this operation. |
preserveEnemy | dynamic | — | preserveEnemy value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ConfigureStockMoveCallbacks(actor, move)Configure stock move callbacks.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
move | dynamic | — | move value consumed by this operation. |
function ContinueBossDeath(actor, context)Return the continue boss death value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function CurrentMoveName(actor)Move current name.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
function DefaultCheckAttack(actor, context, enemyRange)Validate default attack.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
enemyRange | dynamic | — | enemyRange value consumed by this operation. |
function DispatchDie(actor, attacker, damage, context)Dispatch die.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function DispatchPain(actor, attacker, damage, context)Dispatch pain.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function EmitStockSound(actor, context, soundName, channel, attenuation)Emit stock sound.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
soundName | dynamic | — | soundName value consumed by this operation. |
channel | dynamic | — | channel value consumed by this operation. |
attenuation | dynamic | — | attenuation value consumed by this operation. |
function FindMedicPatient(actor, preserveEnemy, context)Find medic patient.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
preserveEnemy | dynamic | — | preserveEnemy value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishFlipperRunTransition(actor, context)Finish flipper run transition.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishParasiteFidgetLoop(actor, context)Finish parasite fidget loop.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishParasiteFidgetStart(actor, context)Finish parasite fidget start.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishReaction(actor, plan, context)Finish reaction.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
plan | dynamic | — | plan value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishRunStart(actor, context)Finish run start.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FinishWalkStart(actor, context)Finish walk start.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FlyMonsterStart(actor, context)Start fly monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function installDefaultCallbacks(actor, hasAttack, hasMelee)Install default callbacks.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
hasAttack | dynamic | — | hasAttack value consumed by this operation. |
hasMelee | dynamic | — | hasMelee value consumed by this operation. |
inline function IsActorMoveActivity(activity)Report whether is actor move activity.
| Parameter | Type | Default | Description |
|---|---|---|---|
activity | dynamic | — | activity value consumed by this operation. |
inline function IsLocomotionActivity(activity)Report whether is locomotion activity.
| Parameter | Type | Default | Description |
|---|---|---|---|
activity | dynamic | — | activity value consumed by this operation. |
function M_EndFrame(actor, context)End m frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_FliesOff(actor, context)Report whether m flies off.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_FliesOn(actor, context)Report whether m flies on.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_FlyCheck(actor, context)Validate m fly.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_MoveFrame(actor, context)Move m frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_SetEffects(actor, context)Set m effects.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function M_WorldEffects(actor, context)Return the m world effects value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MedicCheckAttack(actor, context, enemyRange)Validate medic attack.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
enemyRange | dynamic | — | enemyRange value consumed by this operation. |
function MonsterDeathUse(actor, context)Use monster death.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterStart(actor, context)Start monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterStartGo(actor, context)Start monster go.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterTargetUse(actor, other, activator, context)Use monster target.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterThink(actor, context)Run monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterTriggeredSpawn(actor, context)Spawn monster triggered.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterTriggeredSpawnUse(actor, other, activator, context)Spawn monster triggered use.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterTriggeredStart(actor, context)Start monster triggered.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MonsterUse(actor, other, activator, context)Use monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
activator | dynamic | — | activator value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function MutantCheckAttack(actor, context, enemyRange)Validate mutant attack.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
enemyRange | dynamic | — | enemyRange value consumed by this operation. |
function NextStockRandomInteger(context, fallback)Return the next stock random integer value.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
fallback | dynamic | — | Value returned when no explicit result is available. |
function NextStockRandomUnit(context, fallback)Return the next stock random unit value.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
fallback | dynamic | — | Value returned when no explicit result is available. |
function NormalizeCombatTarget(actor, context)Normalize combat target.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function RunReactionFrameCallbacks(actor, plan, timelineOffset, context)Run reaction frame callbacks.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
plan | dynamic | — | plan value consumed by this operation. |
timelineOffset | dynamic | — | timelineOffset value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function SetStockMove(actor, moveKind, endFunction)Set stock move.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
moveKind | dynamic | — | moveKind value consumed by this operation. |
endFunction | dynamic | — | endFunction value consumed by this operation. |
function StartReaction(actor, plan, context)Start reaction.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
plan | dynamic | — | plan value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateAttack(actor, context)Performs the StateAttack operation for the miniquake2 game ai monster module.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateDie(actor, attacker, damage, context)Handle state.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateIdle(actor, context)Return the state idle value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateMelee(actor, context)Return the state melee value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StatePain(actor, attacker, damage, context)Handle state.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
attacker | dynamic | — | attacker value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateRun(actor, context)Performs the StateRun operation for the miniquake2 game ai monster module.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateSearch(actor, context)Return the state search value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateSight(actor, enemy, context)Return the state sight value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
enemy | dynamic | — | enemy value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateStand(actor, context)Return the state stand value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StateWalk(actor, context)Return the state walk value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockFidgetFrameSound(actor, context)Return the stock fidget frame sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockIdleSoundName(className)Return the stock idle sound name.
| Parameter | Type | Default | Description |
|---|---|---|---|
className | dynamic | — | className value consumed by this operation. |
function StockJorgIdleSound(actor, context)Return the stock jorg idle sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockJorgStepLeft(actor, context)Advance stock jorg left.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockJorgStepRight(actor, context)Advance stock jorg right.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockMedicIdleFrame(actor, context)Return the stock medic idle frame value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockMutantIdleLoop(actor, context)Return the stock mutant idle loop value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockParasiteTapSound(actor, context)Return the stock parasite tap sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockScratchSound(actor, context)Return the stock scratch sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockSoldierCockSound(actor, context)Return the stock soldier cock sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockSoldierIdleFrameSound(actor, context)Return the stock soldier idle frame sound value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockSoldierWalkCycle(actor, context)Return the stock soldier walk cycle value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockStandFidgetProbe(actor, context)Return the stock stand fidget probe value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function StockStepSound(actor, context)Advance stock sound.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function SwimMonsterStart(actor, context)Start swim monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function WalkMonsterStart(actor, context)Start walk monster.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |