Files
src/miniquake2/game/ai/move.ml
Provides miniquake2 game ai move facilities for this project.
- Package
miniquake2.game.ai.move- Reachable
- Yes
Imports
Declarations
# CloseEnough
function CloseEnough(actor, goal, distance)
Close enough.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
goal | dynamic | — | goal value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
View source
# contentsAt
inline function contentsAt(point, context)
Return the contents for the requested position.
| Parameter | Type | Default | Description |
|---|
point | dynamic | — | point value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# InitializeActor
function InitializeActor(actor, context)
Initialize actor.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# linkAndTouch
inline function linkAndTouch(actor, context)
Link and touch.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# M_CategorizePosition
function M_CategorizePosition(actor, context)
Return the m categorize position.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# M_CheckBottom
function M_CheckBottom(actor, context)
Validate m bottom.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# M_CheckGround
function M_CheckGround(actor, context)
Validate m ground.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# M_DropToFloor
function M_DropToFloor(actor, context)
Drop m to floor.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# movePointScratch
movePointScratch
Stores module-wide move point scratch state for the miniquake2 game ai move module.
View source
# MoveStep
function MoveStep(actor, moveX, moveY, moveZ, relink, context)
Apply one stock M_MoveStep attempt without publishing a partial transform. Ground, fly/swim and water branches commit only after their trace checks pass.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
moveX | dynamic | — | moveX value consumed by this operation. |
moveY | dynamic | — | moveY value consumed by this operation. |
moveZ | dynamic | — | moveZ value consumed by this operation. |
relink | dynamic | — | relink value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# MoveToGoal
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. |
View source
# moveTraceEndScratch
moveTraceEndScratch
Stores module-wide move trace end scratch state for the miniquake2 game ai move module.
View source
# moveTraceStartScratch
moveTraceStartScratch
Stores module-wide move trace start scratch state for the miniquake2 game ai move module.
View source
# moveZeroScratch
moveZeroScratch
Stores module-wide move zero scratch state for the miniquake2 game ai move module.
View source
# NewChaseDirection
function NewChaseDirection(actor, goal, distance, context)
Return the new chase direction value.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
goal | dynamic | — | goal value consumed by this operation. |
distance | dynamic | — | distance value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# NO_DIRECTION
const NO_DIRECTION = -1.
Defines the no direction constant used by the miniquake2 game ai move module.
View source
# randomInteger
inline function randomInteger(context)
Return the random integer value.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
View source
# setOrigin
inline function setOrigin(actor, x, y, z)
Set origin.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
z | dynamic | — | z value consumed by this operation. |
View source
# STEP_SIZE
const STEP_SIZE = 18.
Defines the step size constant used by the miniquake2 game ai move module.
View source
# StepDirection
function StepDirection(actor, yaw, distance, context)
Advance direction.
| 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. |
View source
# traceMove
inline function traceMove(actor, start, mins, maxs, finish, context)
Trace move.
| Parameter | Type | Default | Description |
|---|
actor | dynamic | — | actor value consumed by this operation. |
start | dynamic | — | start value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
finish | dynamic | — | finish value consumed by this operation. |
context | dynamic | — | Context that carries state for the operation. |
View source
# WalkMove
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. |
View source