# applyCorpse
function applyCorpse(actor, context)Apply corpse.
| 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/death_effects.mlProvides miniquake2 game ai death effects facilities for this project.
miniquake2/qcommon/types.ml as gaideathqtypes → src/miniquake2/qcommon/types.mlfunction applyCorpse(actor, context)Apply corpse.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function corpseBounds(className)Return the corpse bounds.
| Parameter | Type | Default | Description |
|---|---|---|---|
className | dynamic | — | className value consumed by this operation. |
miniquake2.game.ai.death_effects.CorpseBounds struct
function effect(kind, modelName, origin, damage, gibType, head, sequence, effectType)Return the effect value.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | kind value consumed by this operation. |
modelName | dynamic | — | modelName value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
gibType | dynamic | — | gibType value consumed by this operation. |
head | dynamic | — | head value consumed by this operation. |
sequence | dynamic | — | sequence value consumed by this operation. |
effectType | dynamic | — | effectType value consumed by this operation. |
function emit(context, actor, event)Performs the emit operation for the miniquake2 game ai death effects module.
| Parameter | Type | Default | Description |
|---|---|---|---|
context | dynamic | — | Context that carries state for the operation. |
actor | dynamic | — | actor value consumed by this operation. |
event | dynamic | — | event value consumed by this operation. |
function emitExplosion(actor, origin, sequence, context)Emit explosion.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
sequence | dynamic | — | sequence value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function emitGibSpecs(actor, specs, damage, context)Emit gib specs.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
specs | dynamic | — | specs value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function emitMonsterGibs(actor, damage, context)Emit monster gibs.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
damage | dynamic | — | damage value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function emitSupertankFinalGibs(actor, context)Emit supertank final gibs.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
const GIB_METALLIC = 1Defines the gib metallic constant used by the miniquake2 game ai death effects module.
const GIB_ORGANIC = 0Defines the gib organic constant used by the miniquake2 game ai death effects module.
function gibPlan(className)Return the gib plan value.
| Parameter | Type | Default | Description |
|---|---|---|---|
className | dynamic | — | className value consumed by this operation. |
miniquake2.game.ai.death_effects.GibSpec struct
miniquake2.game.ai.death_effects.MonsterDeathEffect struct
function organicGibs()Return the organic gibs value.
function supertankExplosionOrigin(actor, stage)Return the supertank explosion origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
stage | dynamic | — | stage value consumed by this operation. |
function supertankFinalGibs()Return the supertank final gibs value.
const TE_EXPLOSION1 = 5Defines the te explosion1 constant used by the miniquake2 game ai death effects module.