CMovement::OnSetGravity
function · collision · primitive
- Address
0x619c50· 79 bytes, up to0x619c9e- Signature
uint32_t __thiscall (CMovement *this, uint32_t eventTime, const void *status)- Meaning
- Applies a status with tag 0x1b or 0x1a by its flag 0x800 and, applied, re-anchors and runs 0x619aa0
- Confidence
- verified, proof one
- Finding
- collision/handlers#gravity-toggle
Finding: Gravity toggle in collision: handlers
Flag 0x800 suspends falling. 0x619aa0 acts on the flags as they stand: when 0x800 is set, or a
running spline has flag 0x200, it records fallMoving (0x2000 with +0xa0 ≠ 0.0, NaN counting
as nonzero) and the flags without 0x800, ends the fall (0x7c6290), applies the latched
directions (0x61ab20), broadcasts with those old flags at the update time
(0x61a820(t, 0, old, fallMoving, 0)), and, idle with an empty queue, unlinks. Otherwise it
tries to start a fall and links the mover only when the fall starts (0x617b00). Opcode 0x2ad applies through 0x619c50: tag 0x1b
when the status has 0x800, else 0x1a; applied, it re-anchors and runs 0x619aa0.
The derivation is in the doc.
Callers 1
- CGUnit_C::OnToggleGravityCheat objectlayer
Callees 3
- CMovement::UpdateStatus collision
- CMovement::ApplyGravityState collision
- CMovement::UpdateAnchors collision
Calls and jumps by a bare address, from tables/calls.tsv.