benilla-re systems structs docs

CMovement::StartFalling

function · collision · orchestration

Address
0x7c61c0 · 47 bytes, up to 0x7c61ee
Signature
uint32_t __thiscall (CMovement *this)
Meaning
Starts a fall at speed 0 through 0x7c61f0 unless a live spline, swimming, falling, root or bit 0x800 refuses
Confidence
verified, proof one
Name from
the community database (idb)
Finding
collision/falling#starting-a-fall

Finding: Starting a fall in collision: falling

0x7c61f0(v) re-anchors with 0x7c5cd0(0) while the old flags still stand, then clears 0x200000 and 0x4000000, sets 0x2000, zeroes +0x78, copies z to +0x7c and stores v verbatim at +0xa0. It leaves 0x4000, the pitch bits 0xc0 and the current speed +0x84 alone. Because the anchor runs before 0x2000 is set, a fall begun on the ground recomputes the direction from the held bits, and one begun in the air keeps it. 0x7c61c0 calls 0x7c61f0(0) and returns 1, unless a spline is live (present at +0xa4, its flags without 0x4 and with 0x200) or +0x40 has any of 0x203800: swimming, falling, root or 0x800 (0x7c61d6). Then it returns 0 and changes nothing.

The derivation is in the doc.

Callers 15

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.