Files
src/miniquake/player_move.ml
- Package
miniquake.player_move- Reachable
- Yes
Imports
Declarations
# accelerate
function accelerate(player, wishDirection, wishSpeed, frameTime, acceleration)
Implements the `accelerate` operation for `miniquake.player_move` (accelerate).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `accelerate`. |
wishDirection | dynamic | — | The wish direction input consumed by `accelerate`. |
wishSpeed | dynamic | — | The wish speed input consumed by `accelerate`. |
frameTime | dynamic | — | Time value used by the operation. |
acceleration | dynamic | — | The acceleration input consumed by `accelerate`. |
View source
# airAccelerate
function airAccelerate(player, wishVelocity, wishSpeed, frameTime, acceleration)
Implements the `airAccelerate` operation for `miniquake.player_move` (air accelerate).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `airAccelerate`. |
wishVelocity | dynamic | — | The wish velocity input consumed by `airAccelerate`. |
wishSpeed | dynamic | — | The wish speed input consumed by `airAccelerate`. |
frameTime | dynamic | — | Time value used by the operation. |
acceleration | dynamic | — | The acceleration input consumed by `airAccelerate`. |
View source
# applyCommand
function applyCommand(player, map, command, frameTime)
Apply command to the active subsystem state.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `applyCommand`. |
map | dynamic | — | The map input consumed by `applyCommand`. |
command | dynamic | — | Console or protocol command to execute. |
frameTime | dynamic | — | Time value used by the operation. |
View source
# cameraOrigin
function cameraOrigin(player)
Return camera origin derived from the active module state.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `cameraOrigin`. |
View source
# checkGround
function checkGround(player, map)
Validate ground and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `checkGround`. |
map | dynamic | — | The map input consumed by `checkGround`. |
View source
# checkWater
function checkWater(player, map)
Validate water and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `checkWater`. |
map | dynamic | — | The map input consumed by `checkWater`. |
View source
# clipVelocity
function clipVelocity(input, normal, overbounce)
Implements the `clipVelocity` operation for `miniquake.player_move` (clip velocity).
| Parameter | Type | Default | Description |
|---|
input | dynamic | — | The input input consumed by `clipVelocity`. |
normal | dynamic | — | The normal input consumed by `clipVelocity`. |
overbounce | dynamic | — | The overbounce input consumed by `clipVelocity`. |
View source
# create
function create(origin, angles)
Implements the `create` operation for `miniquake.player_move` (create).
| Parameter | Type | Default | Description |
|---|
origin | dynamic | — | World-space origin of the operation. |
angles | dynamic | — | Orientation angles used by the operation. |
View source
# createPlayer
function createPlayer(origin, angles)
Create and initialize player.
| Parameter | Type | Default | Description |
|---|
origin | dynamic | — | World-space origin of the operation. |
angles | dynamic | — | Orientation angles used by the operation. |
View source
# horizontalSpeed
function horizontalSpeed(velocity)
Implements the `horizontalSpeed` operation for `miniquake.player_move` (horizontal speed).
| Parameter | Type | Default | Description |
|---|
velocity | dynamic | — | Velocity applied by the operation. |
View source
# move
function move(player, map, command, frameTime, registry)
Transfer data for move.
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `move`. |
map | dynamic | — | The map input consumed by `move`. |
command | dynamic | — | Console or protocol command to execute. |
frameTime | dynamic | — | Time value used by the operation. |
registry | dynamic | — | The registry input consumed by `move`. |
View source
# slideMove
function slideMove(player, map, frameTime)
Implements the `slideMove` operation for `miniquake.player_move` (slide move).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `slideMove`. |
map | dynamic | — | The map input consumed by `slideMove`. |
frameTime | dynamic | — | Time value used by the operation. |
View source
# userFriction
function userFriction(player, map, frameTime, friction, edgeFriction, stopSpeed)
Implements the `userFriction` operation for `miniquake.player_move` (user friction).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `userFriction`. |
map | dynamic | — | The map input consumed by `userFriction`. |
frameTime | dynamic | — | Time value used by the operation. |
friction | dynamic | — | The friction input consumed by `userFriction`. |
edgeFriction | dynamic | — | The edge friction input consumed by `userFriction`. |
stopSpeed | dynamic | — | The stop speed input consumed by `userFriction`. |
View source
# walkMove
function walkMove(player, map, frameTime)
Implements the `walkMove` operation for `miniquake.player_move` (walk move).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `walkMove`. |
map | dynamic | — | The map input consumed by `walkMove`. |
frameTime | dynamic | — | Time value used by the operation. |
View source
# waterMove
function waterMove(player, command, frameTime)
Implements the `waterMove` operation for `miniquake.player_move` (water move).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `waterMove`. |
command | dynamic | — | Console or protocol command to execute. |
frameTime | dynamic | — | Time value used by the operation. |
View source
# wishMove
function wishMove(player, command, frameTime, map)
Implements the `wishMove` operation for `miniquake.player_move` (wish move).
| Parameter | Type | Default | Description |
|---|
player | dynamic | — | The player input consumed by `wishMove`. |
command | dynamic | — | Console or protocol command to execute. |
frameTime | dynamic | — | Time value used by the operation. |
map | dynamic | — | The map input consumed by `wishMove`. |
View source
# zeroVector
function zeroVector()
Implements the `zeroVector` operation for `miniquake.player_move` (zero vector).
View source