# CHASE_BACK_DEFAULT
const CHASE_BACK_DEFAULT = 100.Defines the chase back default value used by `miniquake.chase`.
src/miniquake/chase.mlminiquake/cvar.ml as cvar → src/miniquake/cvar.mlminiquake/mathlib.ml as math → src/miniquake/mathlib.mlminiquake/types.ml as t → src/miniquake/types.mlminiquake/world_bsp.ml as world → src/miniquake/world_bsp.mlconst CHASE_BACK_DEFAULT = 100.Defines the chase back default value used by `miniquake.chase`.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Chase_Init`. |
function Chase_Reset(state)The original reset hook intentionally contains no state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.chase` state used by `Chase_Reset`. |
const CHASE_RIGHT_DEFAULT = 0.Defines the chase right default value used by `miniquake.chase`.
const CHASE_UP_DEFAULT = 16.Defines the chase up default value used by `miniquake.chase`.
function Chase_Update(state, viewOrigin, clientViewAngles, worldMap)Mirror Quake's Chase_Update routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.chase` state used by `Chase_Update`. |
viewOrigin | dynamic | — | The view origin input consumed by `Chase_Update`. |
clientViewAngles | dynamic | — | The client view angles input consumed by `Chase_Update`. |
worldMap | dynamic | — | The world map input consumed by `Chase_Update`. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.chase` state used by `Chase_UpdateRefdef`. |
viewOrigin | dynamic | — | The view origin input consumed by `Chase_UpdateRefdef`. |
clientViewAngles | dynamic | — | The client view angles input consumed by `Chase_UpdateRefdef`. |
renderViewAngles | dynamic | — | The render view angles input consumed by `Chase_UpdateRefdef`. |
worldMap | dynamic | — | The world map input consumed by `Chase_UpdateRefdef`. |
function commandNeverExists(name)Report whether command never exists holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function create()Implements the `create` operation for `miniquake.chase` (create).
function syncCvars(state, registry)Update module state for cvars.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.chase` state used by `syncCvars`. |
registry | dynamic | — | The registry input consumed by `syncCvars`. |
function TraceLine(worldMap, start, finish)Implements the `TraceLine` operation for `miniquake.chase` (trace line).
| Parameter | Type | Default | Description |
|---|---|---|---|
worldMap | dynamic | — | The world map input consumed by `TraceLine`. |
start | dynamic | — | The start input consumed by `TraceLine`. |
finish | dynamic | — | The finish input consumed by `TraceLine`. |
function update(state, viewOrigin, viewAngles)Existing convenience API retains its destination-only contract.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.chase` state used by `update`. |
viewOrigin | dynamic | — | The view origin input consumed by `update`. |
viewAngles | dynamic | — | The view angles input consumed by `update`. |