benilla-re systems structs docs

CMovement::SetSwimBackSpeed

function · collision · primitive

Address
0x7c7170 · 74 bytes, up to 0x7c71b9
Signature
uint32_t __thiscall (CMovement *this, float speed)
Meaning
Stores +0x98, re-anchors and updates the current speed when it differs by 2^-22 or more
Confidence
verified, proof one
Finding
collision/commands#speed-and-run-mode-setters
Test
collision::move_setters_difftest

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 4

Callees 2

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