MiniQuake2

src/miniquake2/game/ai/death_effects.ml

Provides miniquake2 game ai death effects facilities for this project.

Package
miniquake2.game.ai.death_effects
Reachable
Yes

Imports

Declarations

applyCorpse

function applyCorpse(actor, context)

Apply corpse.

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

View source

corpseBounds

function corpseBounds(className)

Return the corpse bounds.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.

View source

miniquake2.game.ai.death_effects.CorpseBounds struct

effect

function effect(kind, modelName, origin, damage, gibType, head, sequence, effectType)

Return the effect value.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
modelNamedynamic—modelName value consumed by this operation.
origindynamic—origin value consumed by this operation.
damagedynamic—damage value consumed by this operation.
gibTypedynamic—gibType value consumed by this operation.
headdynamic—head value consumed by this operation.
sequencedynamic—sequence value consumed by this operation.
effectTypedynamic—effectType value consumed by this operation.

View source

emit

function emit(context, actor, event)

Performs the emit operation for the miniquake2 game ai death effects module.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
actordynamic—actor value consumed by this operation.
eventdynamic—event value consumed by this operation.

View source

emitExplosion

function emitExplosion(actor, origin, sequence, context)

Emit explosion.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
origindynamic—origin value consumed by this operation.
sequencedynamic—sequence value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

emitGibSpecs

function emitGibSpecs(actor, specs, damage, context)

Emit gib specs.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
specsdynamic—specs value consumed by this operation.
damagedynamic—damage value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

emitMonsterGibs

function emitMonsterGibs(actor, damage, context)

Emit monster gibs.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
damagedynamic—damage value consumed by this operation.
contextdynamic—Context that carries state for the operation.

View source

emitSupertankFinalGibs

function emitSupertankFinalGibs(actor, context)

Emit supertank final gibs.

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

View source

GIB_METALLIC

const GIB_METALLIC = 1

Defines the gib metallic constant used by the miniquake2 game ai death effects module.

View source

GIB_ORGANIC

const GIB_ORGANIC = 0

Defines the gib organic constant used by the miniquake2 game ai death effects module.

View source

gibPlan

function gibPlan(className)

Return the gib plan value.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.

View source

miniquake2.game.ai.death_effects.GibSpec struct

miniquake2.game.ai.death_effects.MonsterDeathEffect struct

organicGibs

function organicGibs()

Return the organic gibs value.

View source

supertankExplosionOrigin

function supertankExplosionOrigin(actor, stage)

Return the supertank explosion origin.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
stagedynamic—stage value consumed by this operation.

View source

supertankFinalGibs

function supertankFinalGibs()

Return the supertank final gibs value.

View source

TE_EXPLOSION1

const TE_EXPLOSION1 = 5

Defines the te explosion1 constant used by the miniquake2 game ai death effects module.

View source