CMovement::SetBit800
function · collision · orchestration
- Address
0x7c7240· 58 bytes, up to0x7c7279- Signature
uint32_t __thiscall (CMovement *this, uint32_t clear)- Meaning
- Clears 0x800 for a nonzero argument or sets it for zero; re-anchors and returns 1 when the flags changed
- Confidence
- verified, proof one
- Finding
- collision/commands#root-and-state-flags
Finding: Root and state flags in collision: commands
0x7c7340 sets 0x1000, runs the landing 0x7c6290, then clears 0xff, 0x8000 and 0x10000 to
0x100000 (direction, turn, pitch and the deferred bits), and updates the speed; it does not
re-anchor after the wipe. 0x7c7370(fall) clears 0x1000 and, for a nonzero argument, calls
0x7c61c0, which can now start a fall because root is already clear. 0x7c7240(clear) clears
0x800 for nonzero or sets it for zero, stores the word either way, and re-anchors and returns 1
only when the word changed. 0x7c7280, 0x7c72e0 and 0x7c7310 set their bit for a nonzero
argument and clear it for zero: 0x10000000 water walking, 0x20000000 the 7.0 terminal speed,
0x40000000 hover. 0x7c6500 and 0x7c6510 set and clear 0x8000000.
The derivation is in the doc.
Callers 3
- CMovement::UpdatePlayerMovement collision
- CMovement::SetGravity collision
- CMovement::SetBits400And800 collision
Callees 1
- CMovement::UpdateAnchors collision
Calls and jumps by a bare address, from tables/calls.tsv.