benilla-re systems structs docs

CMovement::GetCurrentFallSpeed

function · collision · primitive

Address
0x7c5d70 · 41 bytes, up to 0x7c5d98
Signature
float __thiscall (CMovement *this)
Meaning
Returns 0x7c5d20 at float(+0x78 · 0.001), the arc time elapsed
Confidence
verified, proof one
Finding
collision/falling#fall-speed-at-a-time
Test
collision::gravity_fall_difftest

Finding: Fall speed at a time in collision: falling

0x7c5d20(t) returns the vertical speed t seconds into the arc. With v = +0xa0 and T the cap: vc = T when v > T, else v (NaN keeps v); w = float(t·g + vc); it returns T when T < w, else w, NaN included. The sum is rounded to float before the compare. 0x7c5d70 calls it with t = float(+0x78 · 0.001), the count read as unsigned. Its one user is 0x7c72b0: while 0x2000 is set it stores the result at +0xa0, zeroes +0x78 and copies z to +0x7c, restarting the arc from the current height at the current speed. 0x61a4e0 runs it right after the feather-fall setter 0x7c72e0, so a changed cap takes hold from that moment.

The derivation is in the doc.

Callers 1

Callees 1

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