CMovement::GetScaleRatio
function · collision · orchestration
- Address
0x617430· 34 bytes, up to0x617451- Signature
float __thiscall (CMovement *this)- Meaning
- Returns the scale ratio at +0xb8 when 0x5fa550 accepts the unit, else 2.0
- Confidence
- verified, proof one
- Finding
- collision/mover#collision-size
Finding: Collision size in collision: mover
0x6174b0(w, h, s, d) sets +0xb8 to 1.0 when |d| < 2⁻²² (0x34800000), else fl(s / d), NaN
for a NaN d; +0xb0 to fl(w · s · 0.5); +0xb4 to fl(h · s); then calls 0x7c4930 and
0x634030. 0x617460(w, h, s) takes a = fl(w · s · 0.5) and b = fl(h · s); when
a · 1.8493990 (0x3fecb91b, 0x80c740) exceeds s it uses a = fl(s · 0.54071623)
(0x3f0a6c61, 0x80c73c); equality or NaN keeps a. It returns 0x631670(b, a) on this mover.
0x60b270 sizes a unit's mover with them. 0x617430 returns +0xb8 when 0x5fa550(unit) is nonzero, else 2.0.
The derivation is in the doc.
Callers 4
- CMovement::QuerySweptBox collision
- CMovement::LimitFaceRise collision
- CMovement::ProbeStepUp collision
- CMovement::ResolveWalk collision
Callees 1
- IsUnitPlayerDriven objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.