benilla-re systems structs docs

CMovement::GetSplineStep

function · collision · primitive

Address
0x616af0 · 256 bytes, up to 0x616bef
Signature
uint32_t __thiscall (CMovement *this, uint32_t end, uint32_t length, float *delta)
Meaning
Gets the spline step, or jumps to the spline point and returns 0 when its horizontal step is over 3 yd or 60 yd/s
Confidence
verified, proof one
Finding
collision/mover#spline-warp-gate
Test
collision::anti_warp_difftest

Finding: Spline warp gate in collision: mover

0x616af0(end, r, &delta) gets the spline displacement from 0x7c5490(end, &delta) and returns 0 when that does. Unless flags & 0x200f and the spline's +0x18 lacks 0x200, it returns 1. Else target = fl(anchor + delta) per axis, D = dy² + dx² from the position (53-bit) and T = r · 0.001 (0x3a83126f). If D / T² > 3600 (0x45610000, 0x80c734) or D > 9.0, each test also passing when unordered, it stores target as the position, sets +0x7c to 0x7c5f30(+0x78) when flags & 0x2000, calls 0x7c4930 and 0x634030, and returns 0, which ends 0x616de0 without a commit. Otherwise it returns 1. A step over 3 yards or 60 yards per second in x and y is taken without collision.

The derivation is in the doc.

Callers 1

Callees 4

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