Files
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.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneApplySpawnFlags
function insaneApplySpawnFlags(actor)
Apply insane spawn flags.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
View source
# insaneCheckDown
function insaneCheckDown(actor, context)
Validate insane down.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneCheckUp
function insaneCheckUp(actor, context)
Validate insane up.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
runMove | dynamic | — | runMove value consumed by this operation. |
View source
# insaneCrawlPainMove
function insaneCrawlPainMove()
Handle insane crawl move.
View source
# insaneCross
function insaneCross(actor, context)
Compute insane.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneCrossMove
function insaneCrossMove(struggle)
Compute insane move.
| Parameter | Type | Default | Description |
|---|
struggle | dynamic | — | struggle value consumed by this operation. |
View source
# insaneDead
function insaneDead(actor, context)
Return the insane dead value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneDie
function insaneDie(actor, attacker, damage, context)
Handle insane.
| 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. |
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.
| 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. |
View source
# insaneFist
function insaneFist(actor, context)
Return the insane fist value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Name of the affected item. |
firstFrame | dynamic | — | firstFrame value consumed by this operation. |
lastFrame | dynamic | — | lastFrame value consumed by this operation. |
aiFunction | dynamic | — | aiFunction value consumed by this operation. |
distances | dynamic | — | distances value consumed by this operation. |
endFunction | dynamic | — | endFunction value consumed by this operation. |
View source
# insaneMoan
function insaneMoan(actor, context)
Return the insane moan value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneOnGround
function insaneOnGround(actor, context)
Report whether insane on ground.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insanePain
function insanePain(actor, attacker, damage, context)
Handle insane.
| 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. |
View source
# insaneRun
function insaneRun(actor, context)
Run insane.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneScream
function insaneScream(actor, context)
Return the insane scream value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneSetMove
function insaneSetMove(actor, move)
Set insane move.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
move | dynamic | — | move value consumed by this operation. |
View source
# insaneShake
function insaneShake(actor, context)
Return the insane shake value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneStand
function insaneStand(actor, context)
Return the insane stand value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# insaneWalkInsaneMove
function insaneWalkInsaneMove(runMove)
Move insane walk insane.
| Parameter | Type | Default | Description |
|---|
runMove | dynamic | — | runMove value consumed by this operation. |
View source
# insaneWalkNormalMove
function insaneWalkNormalMove(runMove)
Move insane walk normal.
| Parameter | Type | Default | Description |
|---|
runMove | dynamic | — | runMove value consumed by this operation. |
View source
# insaneZeros
function insaneZeros(count)
Return the insane zeros value.
| Parameter | Type | Default | Description |
|---|
count | dynamic | — | Number of items or units to process. |
View source
# restoreMove
function restoreMove(actor, moveName)
Restore move.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
moveName | dynamic | — | moveName value consumed by this operation. |
View source