benilla-re systems structs docs

CMovement::GetCurrentSpeed

function · collision · primitive

Address
0x7c4c90 · 234 bytes, up to 0x7c4d79
Signature
float __thiscall (CMovement *this, uint32_t walk)
Meaning
Returns 0, the spline speed, or the swim, walk, run or back speed the movement flags pick
Confidence
verified, proof one
Finding
collision/kinematics#current-speed-selector
Test
collision::move_setters_difftest

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 7

Callees 0

None by a direct call or jump.

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