# addPlayerDeltaYaw
function addPlayerDeltaYaw(body, amount)Add player delta yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
src/miniquake2/game/integration/pusher.mlProvides miniquake2 game integration pusher facilities for this project.
miniquake2/game/weapons/vector.ml as pushvector → src/miniquake2/game/weapons/vector.mlminiquake2/game/world/constants.ml as pushworldconstants → src/miniquake2/game/world/constants.mlminiquake2/game/world/core.ml as pushworldcore → src/miniquake2/game/world/core.mlminiquake2/game/world/types.ml as pushworldtypes → src/miniquake2/game/world/types.mlminiquake2/qcommon/byteio.ml as pushqbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/constants.ml as pushqconstants → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/types.ml as pushqtypes → src/miniquake2/qcommon/types.mlfunction addPlayerDeltaYaw(body, amount)Add player delta yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
amount | dynamic | — | amount value consumed by this operation. |
function advanceTeam(captureState, masterNumber, duration)Integrate one pusher team for the frame before its atomic SV_Push pass.
| Parameter | Type | Default | Description |
|---|---|---|---|
captureState | dynamic | — | captureState value consumed by this operation. |
masterNumber | dynamic | — | masterNumber value consumed by this operation. |
duration | dynamic | — | duration value consumed by this operation. |
function assembleTeams(world)Assemble teams.
| Parameter | Type | Default | Description |
|---|---|---|---|
world | dynamic | — | world value consumed by this operation. |
function bodyBoundsAt(body, origin, angles)Return the body bounds for the requested position.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
function bodyCanBePushed(body)Report whether body can be pushed.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function bodyGroundNumber(groundEntity)Return the body ground number.
| Parameter | Type | Default | Description |
|---|---|---|---|
groundEntity | dynamic | — | groundEntity value consumed by this operation. |
function bodyIntersectsFinalPusher(runtime, body)Return the body intersects final pusher value.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
body | dynamic | — | body value consumed by this operation. |
function bodyMoved(body)Report whether body moved.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function bodyPassEntity(runtime, body)Return the body pass entity value.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
body | dynamic | — | body value consumed by this operation. |
function bodyPositionBlocked(runtime, body, position)Report whether body position blocked.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
body | dynamic | — | body value consumed by this operation. |
position | dynamic | — | position value consumed by this operation. |
miniquake2.game.integration.pusher.BodySnapshot struct
function bodySnapshotInto(snapshot, kind, value, edict, number, origin, angles, mins, maxs, solid, groundNumber, clipMask, deltaYaw)Populate the body snapshot destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
kind | dynamic | — | kind value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
edict | dynamic | — | edict value consumed by this operation. |
number | dynamic | — | number value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
solid | dynamic | — | Identifier of sol. |
groundNumber | dynamic | — | groundNumber value consumed by this operation. |
clipMask | dynamic | — | clipMask value consumed by this operation. |
deltaYaw | dynamic | — | deltaYaw value consumed by this operation. |
function capture(runtime)Capture state.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function carryOrigin(body, pusherSnapshot)Return the carry origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
pusherSnapshot | dynamic | — | pusherSnapshot value consumed by this operation. |
function clearGroundUnlessRiding(body, pusherSnapshot)Clear ground unless riding.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
pusherSnapshot | dynamic | — | pusherSnapshot value consumed by this operation. |
function currentAngles(body)Return the current angles.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function currentOrigin(body)Return the current origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function deferDueThinks(captureState, targetTime)Defer due mover thinks until the enclosing SV_Push transaction succeeds.
| Parameter | Type | Default | Description |
|---|---|---|---|
captureState | dynamic | — | captureState value consumed by this operation. |
targetTime | dynamic | — | targetTime value consumed by this operation. |
function finishTeamThinks(runtime, team, blocked)Finish a pusher team's deferred thinks with g_phys.c ordering.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
team | dynamic | — | team value consumed by this operation. |
blocked | dynamic | — | blocked value consumed by this operation. |
function isPusher(entity)Report whether is pusher.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function itemBodyInto(snapshot, item)Populate a dropped/static MOVETYPE_TOSS item body destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
function linkBody(runtime, body)Link body.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
body | dynamic | — | body value consumed by this operation. |
function monsterBodyInto(snapshot, actor)Populate the monster body destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
actor | dynamic | — | actor value consumed by this operation. |
function moved(snapshot)Report whether moved.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
function playerBodyInto(snapshot, player)Populate the player body destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
player | dynamic | — | player value consumed by this operation. |
function playerDeltaYaw(edict)Return the player delta yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
edict | dynamic | — | edict value consumed by this operation. |
function projectileBodyInto(snapshot, runtime, projectile)Populate a MOVETYPE_FLYMISSILE/BOUNCE projectile body destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
runtime | dynamic | — | runtime value consumed by this operation. |
projectile | dynamic | — | projectile value consumed by this operation. |
function proxyFor(body)Return the proxy for the requested input.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function publishPusherMove(runtime, snapshot)Publish pusher move.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
snapshot | dynamic | — | snapshot value consumed by this operation. |
function pushBody(runtime, body, pusherSnapshot)BaseQ2 SV_Push first moves a contacted bbox with a MOVETYPE_PUSH brush and reports a block only when the carried position is obstructed. Treating the first overlap as a block leaves the player embedded at the reversal point; the door then toggles direction and applies crush damage every server frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
body | dynamic | — | body value consumed by this operation. |
pusherSnapshot | dynamic | — | pusherSnapshot value consumed by this operation. |
function pushCopy(value)Copy push data.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
inline function pushCopyInto(output, value)Populate the push copy destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
output | dynamic | — | Output collection or buffer populated by the operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function pusherCanContactBodies(entity)Report whether this mover has a linked brush volume that can contact bodies.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
miniquake2.game.integration.pusher.PusherCapture struct
function pusherMasterNumber(entity)Return the pusher master number.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
miniquake2.game.integration.pusher.PusherSnapshot struct
function pusherSnapshotInto(snapshot, entity)Populate the pusher snapshot destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
function resolve(runtime, captureState)Resolve state.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
captureState | dynamic | — | captureState value consumed by this operation. |
function resolveTeam(runtime, captureState, masterNumber)Resolve team.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
captureState | dynamic | — | captureState value consumed by this operation. |
masterNumber | dynamic | — | masterNumber value consumed by this operation. |
function restorePlayerDeltaYaw(body)Restore player delta yaw.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
function rotatedBounds(origin, angles, mins, maxs)Return the rotated bounds.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
function setBody(body, origin, angles)Set body.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | angles value consumed by this operation. |
inline function snappedPusherMove(value)Move snapped pusher.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function standingOn(body, pusherSnapshot)Report whether standing on.
| Parameter | Type | Default | Description |
|---|---|---|---|
body | dynamic | — | body value consumed by this operation. |
pusherSnapshot | dynamic | — | pusherSnapshot value consumed by this operation. |
function strictOverlap(first, second)Return the strict overlap value.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function teamHas(team, number)Report whether team has.
| Parameter | Type | Default | Description |
|---|---|---|---|
team | dynamic | — | team value consumed by this operation. |
number | dynamic | — | number value consumed by this operation. |
function touchCommittedBodies(runtime, bodies, movedBodies)Run trigger passes only after the complete pusher team commits. g_phys.c defers G_TouchTriggers until SV_Push succeeds, so a rolled-back rider must never activate a trigger at its temporary carried position.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
bodies | dynamic | — | bodies value consumed by this operation. |
movedBodies | dynamic | — | movedBodies value consumed by this operation. |
function touchPushedEntries(runtime, entries)Dispatch one stock SV_Push trigger pass. The shared pushed stack is walked in reverse after every successful team part; later team failure rolls back transforms but deliberately cannot roll back trigger side effects.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
entries | dynamic | — | entries value consumed by this operation. |
function translatedFallback(destination, pusherSnapshot)Return the translated fallback value.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | destination value consumed by this operation. |
pusherSnapshot | dynamic | — | pusherSnapshot value consumed by this operation. |
function worldBodyCanBePushed(entity)g_phys.c excludes MOVETYPE_NONE/PUSH/STOP/NOCLIP entities before testing a pusher overlap. Managed world bodies that can actually be displaced use one of these three locomotion modes; static bbox/BSP helpers must never jam a door merely because their authored bounds intersect its swept volume.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
function worldBodyInto(snapshot, entity)Populate the world body destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
snapshot | dynamic | — | snapshot value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |