benilla-re systems structs docs

CMovement::UpdateCurrentSpeed

function · collision · orchestration

Address
0x7c5c20 · 34 bytes, up to 0x7c5c41
Signature
void __thiscall (CMovement *this, uint32_t force)
Meaning
Stores the selected speed at +0x84 unless falling without force
Confidence
verified, proof one
Name from
the community database (idb)
Finding
collision/kinematics#current-speed-selector

Finding: Current speed selector in collision: kinematics

0x7c4c90(walk) returns the current speed from the flags +0x40, first match:

testresult
no bit of 0xf0.0
spline +0xa4 set, its +0x18 bit 2 clearits +0x30 / +0x24 · 1000, unrounded
0x00200000 and 0x2+0x98 if +0x98 ≤ +0x94, else +0x94
0x00200000+0x94
0x100 or walk ≠ 0+0x88 if +0x8c > +0x88, else +0x8c
0x2+0x90 if +0x90 ≤ +0x8c, else +0x8c
otherwise+0x8c

0x7c5c20(force) stores 0x7c4c90(force) at +0x84 as a float, unless 0x2000 is set and force is 0.

The derivation is in the doc.

Callers 19

Callees 1

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