MiniQuake2

src/miniquake2/game/ai/insane.ml

Provides miniquake2 game ai insane facilities for this project.

Package
miniquake2.game.ai.insane
Reachable
Yes

Imports

Declarations

configure

function configure(actor, context)

Performs the configure operation for the miniquake2 game ai insane module.

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

View source

insaneApplySpawnFlags

function insaneApplySpawnFlags(actor)

Apply insane spawn flags.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.

View source

insaneCheckDown

function insaneCheckDown(actor, context)

Validate insane down.

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

View source

insaneCheckUp

function insaneCheckUp(actor, context)

Validate insane up.

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

View source

insaneCrawlDeathMove

function insaneCrawlDeathMove()

Move insane crawl death.

View source

insaneCrawlMove

function insaneCrawlMove(runMove)

Move insane crawl.

ParameterTypeDefaultDescription
runMovedynamic—runMove value consumed by this operation.

View source

insaneCrawlPainMove

function insaneCrawlPainMove()

Handle insane crawl move.

View source

insaneCross

function insaneCross(actor, context)

Compute insane.

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

View source

insaneCrossMove

function insaneCrossMove(struggle)

Compute insane move.

ParameterTypeDefaultDescription
struggledynamic—struggle value consumed by this operation.

View source

insaneDead

function insaneDead(actor, context)

Return the insane dead value.

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

View source

insaneDie

function insaneDie(actor, attacker, damage, context)

Handle insane.

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

View source

insaneDownMove

function insaneDownMove()

Move insane down.

View source

insaneDownToUpMove

function insaneDownToUpMove()

Move insane down to up.

View source

insaneEmit

function insaneEmit(actor, context, soundName)

Emit insane.

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

View source

insaneFist

function insaneFist(actor, context)

Return the insane fist value.

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

View source

insaneJumpDownMove

function insaneJumpDownMove()

Move insane jump down.

View source

insaneMakeMove

function insaneMakeMove(name, firstFrame, lastFrame, aiFunction, distances, endFunction)

Create insane move.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.
firstFramedynamic—firstFrame value consumed by this operation.
lastFramedynamic—lastFrame value consumed by this operation.
aiFunctiondynamic—aiFunction value consumed by this operation.
distancesdynamic—distances value consumed by this operation.
endFunctiondynamic—endFunction value consumed by this operation.

View source

insaneMoan

function insaneMoan(actor, context)

Return the insane moan value.

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

View source

insaneOnGround

function insaneOnGround(actor, context)

Report whether insane on ground.

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

View source

insanePain

function insanePain(actor, attacker, damage, context)

Handle insane.

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

View source

insaneRun

function insaneRun(actor, context)

Run insane.

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

View source

insaneScream

function insaneScream(actor, context)

Return the insane scream value.

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

View source

insaneSetMove

function insaneSetMove(actor, move)

Set insane move.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
movedynamic—move value consumed by this operation.

View source

insaneShake

function insaneShake(actor, context)

Return the insane shake value.

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

View source

insaneStand

function insaneStand(actor, context)

Return the insane stand value.

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

View source

insaneStandDeathMove

function insaneStandDeathMove()

Move insane stand death.

View source

insaneStandInsaneMove

function insaneStandInsaneMove()

Move insane stand insane.

View source

insaneStandNormalMove

function insaneStandNormalMove()

Move insane stand normal.

View source

insaneStandPainMove

function insaneStandPainMove()

Handle insane stand move.

View source

insaneUpToDownMove

function insaneUpToDownMove()

Move insane up to down.

View source

insaneWalk

function insaneWalk(actor, context)

Return the insane walk value.

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

View source

insaneWalkInsaneMove

function insaneWalkInsaneMove(runMove)

Move insane walk insane.

ParameterTypeDefaultDescription
runMovedynamic—runMove value consumed by this operation.

View source

insaneWalkNormalMove

function insaneWalkNormalMove(runMove)

Move insane walk normal.

ParameterTypeDefaultDescription
runMovedynamic—runMove value consumed by this operation.

View source

insaneZeros

function insaneZeros(count)

Return the insane zeros value.

ParameterTypeDefaultDescription
countdynamic—Number of items or units to process.

View source

restoreMove

function restoreMove(actor, moveName)

Restore move.

ParameterTypeDefaultDescription
actordynamic—actor value consumed by this operation.
moveNamedynamic—moveName value consumed by this operation.

View source