benilla-re systems structs docs

CMovement::StartMove

function · collision · orchestration

Address
0x7c6ae0 · 135 bytes, up to 0x7c6b66
Signature
uint32_t __thiscall (CMovement *this, uint32_t forward)
Meaning
Sets 0x1 or 0x2 and refreshes, or while falling with a direction held records 0x20000 or 0x40000
Confidence
verified, proof one
Name from
the community database (idb)
Finding
collision/commands#start-and-stop-move

Finding: Start and stop move in collision: commands

0x7c6ae0(forward) clears 0x8000, 0x20000 and 0x40000. Grounded, or falling with no bit of 0xf held, it sets 0x1 and clears 0x2 for a nonzero argument (the reverse for zero), refreshes with e = 1 when falling (0x7c6afc), and returns 1. Falling with a direction held, it records 0x20000 (forward) or 0x40000 (back) unless already moving that way, and returns 0. 0x7c6ba0 without 0x1 or 0x2 clears the deferred starts. Otherwise it clears a set 0x4000000 and runs 0x7c61c0; then, falling, it swaps the deferred starts for 0x8000, and grounded it runs 0x7c6c00 and returns 1, its only 1. 0x7c6c00 clears 0x1, 0x2 and 0x8000, refreshes, and ends a live spline (flag 0x4), falling if it has 0x200.

The derivation is in the doc.

Callers 4

Callees 2

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