# actorAttack
function actorAttack(actor, context)Run actor.
| 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/actor.mlProvides miniquake2 game ai actor facilities for this project.
miniquake2/game/ai/constants.ml as actorconstants → src/miniquake2/game/ai/constants.mlminiquake2/game/ai/core.ml as actorcore → src/miniquake2/game/ai/core.mlminiquake2/game/ai/death_effects.ml as actordeatheffects → src/miniquake2/game/ai/death_effects.mlminiquake2/game/ai/types.ml as actortypes → src/miniquake2/game/ai/types.mlminiquake2/game/constants.ml as actorgameconstants → src/miniquake2/game/constants.mlminiquake2/qcommon/types.ml as actorqtypes → src/miniquake2/qcommon/types.mlfunction actorAttack(actor, context)Run actor.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function actorDead(actor, context)Return the actor dead value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
actorDeath1DistancesStores module-wide actor death1 distances state for the miniquake2 game ai actor module.
actorDeath2DistancesStores module-wide actor death2 distances state for the miniquake2 game ai actor module.
function actorDeathMove(variant)Move actor death.
| Parameter | Type | Default | Description |
|---|---|---|---|
variant | dynamic | — | variant value consumed by this operation. |
function actorDie(actor, attacker, damage, context)Handle actor.
| 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 actorMakeMove(name, firstFrame, lastFrame, aiFunction, distances, endFunction)Create actor 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. |
function actorPain(actor, attacker, damage, context)Handle actor.
| 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. |
actorPain1DistancesStores module-wide actor pain1 distances state for the miniquake2 game ai actor module.
actorPain2DistancesStores module-wide actor pain2 distances state for the miniquake2 game ai actor module.
actorPain3DistancesStores module-wide actor pain3 distances state for the miniquake2 game ai actor module.
function actorPainMove(variant)Handle actor move.
| Parameter | Type | Default | Description |
|---|---|---|---|
variant | dynamic | — | variant value consumed by this operation. |
function actorRandomInteger(context, fallback)Return the actor 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 actorRandomUnit(context, fallback)Return the actor 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 actorRun(actor, context)Run actor.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
actorRunDistancesStores module-wide actor run distances state for the miniquake2 game ai actor module.
function actorRunMove()Run actor move.
function actorSetMove(actor, move)Set actor move.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
move | dynamic | — | move value consumed by this operation. |
function actorStand(actor, context)Return the actor stand value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function actorStandMove()Move actor stand.
function actorTauntMove(flipOff)Move actor taunt.
| Parameter | Type | Default | Description |
|---|---|---|---|
flipOff | dynamic | — | flipOff value consumed by this operation. |
function actorUse(actor, other, activator, context)Use actor.
| 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 actorWalk(actor, context)Return the actor walk value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
actorWalkDistancesStores module-wide actor walk distances state for the miniquake2 game ai actor module.
function actorWalkMove()Move actor walk.
function configure(actor, context)Performs the configure operation for the miniquake2 game ai actor module.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
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. |