benilla-re systems structs docs

CMovement::SetRunMode

function · collision · orchestration

Address
0x7c71c0 · 54 bytes, up to 0x7c71f5
Signature
void __thiscall (CMovement *this, uint32_t run)
Meaning
Clears 0x100 for a nonzero argument or sets it for zero, then re-anchors and updates the current speed
Confidence
verified, proof one
Finding
collision/commands#speed-and-run-mode-setters

Finding: Speed and run-mode setters in collision: commands

Five setters store a speed and one the turn rate, each only when the new value differs from the field by 2⁻²² or more, or is NaN; they return 1 then and 0 otherwise. All re-anchor; the speed setters also update the current speed, which while falling keeps its value. The fields are named from their use in 0x7c4c90 and 0x7c5c50:

setterfield
0x7c70d0+0x88 walk
0x7c7030+0x8c run
0x7c7080+0x90 run back
0x7c7120+0x94 swim
0x7c7170+0x98 swim back
0x7c6ff0+0x9c turn rate, no speed update

0x7c71c0(run) clears the walk bit 0x100 for a nonzero argument and sets it for zero, then re-anchors and updates the speed.

The derivation is in the doc.

Callers 5

Callees 2

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