benilla-re systems structs docs

CMovement::AdvanceLateStart

function · collision · primitive

Address
0x618bb0 · 121 bytes, up to 0x618c28
Signature
void __thiscall (CMovement *this, uint32_t time, int32_t late)
Meaning
Steps a moving unit forward by the ms it was applied late, adding them to +0x58 when it translates
Confidence
verified, proof one
Finding
collision/eventapply#late-start-catch-up

Finding: Late start catch-up in collision: event applies

0x618bb0(time, late) does nothing for late 0, for a unit with no flag of 0x200f, or for one with a live spline whose bit 0x4 is clear. Otherwise it adds late to +0x58 when a flag of 0xf is set, calls 0x7c5360(+0x58, 0x618920()), and steps the unit with 0x616cb0(time, +0x58, 0). 0x618920 returns the address of +0x144 when the float at +0x148 is nonzero or NaN, else 0. 0x618c30 calls 0x618bb0 with the fire time and the movement clock minus it.

The derivation is in the doc.

Callers 1

Callees 3

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