benilla-re systems structs docs

CMovement::GetTurnRate

function · collision · primitive

Address
0x7c5c50 · 49 bytes, up to 0x7c5c80
Signature
float __thiscall (CMovement *this)
Meaning
Returns ±+0x9c by the turn bits, or 0, times 0.75 while any of 0x200f is set
Confidence
verified, proof one
Finding
collision/kinematics#turn-and-pitch-rates
Test
collision::get_strafe_speed_difftest

Finding: Turn and pitch rates in collision: kinematics

0x7c5c50 returns the turn rate: +0x9c with 0x10 set, else the negated +0x9c with 0x20, else 0.0. 0x7c5c90 returns the pitch rate the same way from 0x40 and 0x80, from the same +0x9c. Either is multiplied by 0.75 (0x3f400000) when any bit of 0x200f is set: a direction bit or falling. The result returns unrounded in st0.

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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