Provides miniquake2 client prediction facilities for this project.
# commandViewAngles
function commandViewAngles(playerState, command)
The PMF_NO_PREDICTION branch still updates view angles from the current command; only origin replay is disabled. This is the managed equivalent of cl.viewangles + SHORT2ANGLE(delta_angles) in CL_PredictMovement.
| Parameter | Type | Default | Description |
|---|
playerState | dynamic | — | playerState value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
View source
# createWorkspace
function createWorkspace(traceCallback, pointContentsCallback)
Create workspace.
| Parameter | Type | Default | Description |
|---|
traceCallback | dynamic | — | traceCallback value consumed by this operation. |
pointContentsCallback | dynamic | — | pointContentsCallback value consumed by this operation. |
View source
# predict
function predict(playerState, commands, traceCallback, pointContentsCallback, airAcceleration)
Return the predict value.
| Parameter | Type | Default | Description |
|---|
playerState | dynamic | — | playerState value consumed by this operation. |
commands | dynamic | — | commands value consumed by this operation. |
traceCallback | dynamic | — | traceCallback value consumed by this operation. |
pointContentsCallback | dynamic | — | pointContentsCallback value consumed by this operation. |
airAcceleration | dynamic | — | airAcceleration value consumed by this operation. |
View source
# predictInto
function predictInto(workspace, playerState, commands, commandCount, airAcceleration)
Populate the predict destination.
| Parameter | Type | Default | Description |
|---|
workspace | dynamic | — | workspace value consumed by this operation. |
playerState | dynamic | — | playerState value consumed by this operation. |
commands | dynamic | — | commands value consumed by this operation. |
commandCount | dynamic | — | Number of command to process. |
airAcceleration | dynamic | — | airAcceleration value consumed by this operation. |
View source