# actorYaw
function actorYaw(actor)Return the actor yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
src/miniquake2/game/ai/core.mlProvides miniquake2 game ai core facilities for this project.
miniquake2/game/ai/constants.ml as gaiconstants → src/miniquake2/game/ai/constants.mlminiquake2/game/ai/types.ml as gaitypes → src/miniquake2/game/ai/types.mlminiquake2/qcommon/constants.ml as gaiqconstants → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/types.ml as gaiqtypes → src/miniquake2/qcommon/types.mlstd/math.ml as gaimath → ../MiniLangCompilerML/std/math.ml external dependencyfunction actorYaw(actor)Return the actor yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
function ai_charge(actor, distance, context)Return the ai charge value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_checkattack(actor, distance, context)Return the ai checkattack value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_move(actor, distance, context)Move ai.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_run(actor, distance, context)Port the stock ai_run pursuit state machine. Lost-sight flags and temporary goals change in stock order so trail markers are consumed at most once.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_run_slide(actor, distance, context)Run ai slide.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_stand(actor, distance, context)Return the ai stand value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_turn(actor, distance, context)Return the ai turn value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ai_walk(actor, distance, context)Return the ai walk value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
aiRunCourseScratchStores module-wide ai run course scratch state for the miniquake2 game ai core module.
function angleMod(value)Return the angle mod value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function candidateFromContext(actor, context)Return the candidate from context.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function ChangeYaw(actor)Return the change yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
inline function copyOriginToArray(target, origin)Copy origin to array.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | dynamic | — | target value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
function directionTo(first, second)Return the direction to value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function DispatchAttackState(actor, context, enemyYaw)Dispatch attack state.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
enemyYaw | dynamic | — | enemyYaw value consumed by this operation. |
function FacingIdeal(actor)Return the facing ideal value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
function FindTarget(actor, context)Find target.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function FoundTarget(actor, context)Return the found target value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function HuntTarget(actor, context)Return the hunt target value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function infront(first, second)Return the infront value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function M_CheckAttack(actor, context, enemyRange)Validate m attack.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
enemyRange | dynamic | — | enemyRange value consumed by this operation. |
function moveToGoal(actor, distance, context)Move to goal.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function pursuitGoal(actor)Return the pursuit goal value.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
function range(first, second)Return the range value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
inline function scalarToYaw(x, y)Return the scalar to yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
function setActorYaw(actor, value)Set actor yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function vectorLength(value)Return the vector length.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function vectorToYaw(value)Return the vector to yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function vectorX(value)Return the vector x value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function vectorY(value)Return the vector y value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function vectorZ(value)Return the vector z value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function visible(actor, other, context)Report whether visible.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
other | dynamic | — | other value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
function walkMove(actor, yaw, distance, context)Move walk.
| Parameter | Type | Default | Description |
|---|---|---|---|
actor | dynamic | — | actor value consumed by this operation. |
yaw | dynamic | — | yaw value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |