MiniQuake

src/miniquake/chase.ml

Package
miniquake.chase
Reachable
Yes

Imports

Declarations

CHASE_BACK_DEFAULT

const CHASE_BACK_DEFAULT = 100.

Defines the chase back default value used by `miniquake.chase`.

View source

Chase_Init

function Chase_Init(registry)

Chase_Init registers the same four non-archived, non-server cvars as MiniQuake and returns the value state used by the data-oriented MiniLang renderer.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Chase_Init`.

View source

Chase_Reset

function Chase_Reset(state)

The original reset hook intentionally contains no state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.chase` state used by `Chase_Reset`.

View source

CHASE_RIGHT_DEFAULT

const CHASE_RIGHT_DEFAULT = 0.

Defines the chase right default value used by `miniquake.chase`.

View source

CHASE_UP_DEFAULT

const CHASE_UP_DEFAULT = 16.

Defines the chase up default value used by `miniquake.chase`.

View source

Chase_Update

function Chase_Update(state, viewOrigin, clientViewAngles, worldMap)

Mirror Quake's Chase_Update routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.chase` state used by `Chase_Update`.
viewOrigindynamic—The view origin input consumed by `Chase_Update`.
clientViewAnglesdynamic—The client view angles input consumed by `Chase_Update`.
worldMapdynamic—The world map input consumed by `Chase_Update`.

View source

Chase_UpdateRefdef

function Chase_UpdateRefdef(state, viewOrigin, clientViewAngles, renderViewAngles, worldMap)

Returns [new view origin, new view angles, exact chase destination, impact]. cl.viewangles supplies the trace direction. Original Chase_Update modifies only r_refdef.viewangles[PITCH]; yaw/roll, damage kick and idle sway survive.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.chase` state used by `Chase_UpdateRefdef`.
viewOrigindynamic—The view origin input consumed by `Chase_UpdateRefdef`.
clientViewAnglesdynamic—The client view angles input consumed by `Chase_UpdateRefdef`.
renderViewAnglesdynamic—The render view angles input consumed by `Chase_UpdateRefdef`.
worldMapdynamic—The world map input consumed by `Chase_UpdateRefdef`.

View source

commandNeverExists

function commandNeverExists(name)

Report whether command never exists holds for the active state.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

create

function create()

Implements the `create` operation for `miniquake.chase` (create).

View source

syncCvars

function syncCvars(state, registry)

Update module state for cvars.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.chase` state used by `syncCvars`.
registrydynamic—The registry input consumed by `syncCvars`.

View source

TraceLine

function TraceLine(worldMap, start, finish)

Implements the `TraceLine` operation for `miniquake.chase` (trace line).

ParameterTypeDefaultDescription
worldMapdynamic—The world map input consumed by `TraceLine`.
startdynamic—The start input consumed by `TraceLine`.
finishdynamic—The finish input consumed by `TraceLine`.

View source

update

function update(state, viewOrigin, viewAngles)

Existing convenience API retains its destination-only contract.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.chase` state used by `update`.
viewOrigindynamic—The view origin input consumed by `update`.
viewAnglesdynamic—The view angles input consumed by `update`.

View source