benilla-re systems structs docs

CMovement::AdvanceTo

function · collision · primitive

Address
0x616620 · 478 bytes, up to 0x6167fd
Signature
void __thiscall (CMovement *this, uint32_t now, uint32_t previous)
Meaning
Simulates a mover from previous to now in steps cut at queued events and the heartbeat deadline
Confidence
verified, proof one
Finding
collision/mover#local-player-step

Finding: Local player step in collision: mover

0x616620(now, previous) advances one mover over w = now − previous (uint32), from s = previous:

stepaction
windowif w > 250: 0x615ae0(w − 250), s = previous + w − 250, w = 250; if w = 0: go to the end
1L = w − done; with a queued event, L = min(L, max(head.time − s, 0))
2active mover, spline null or with bit 0x4, flags & 0x200f: L = min(L, +0x130 − s) unsigned
3s += L; manager +0x12c = s
4if L > 0 and flags & 0x20ff: 0x616de0(s, L), then a heartbeat if the tests of 2 hold and s − +0x130 ≥ 0
5if L > 0: done += L
60x615c30(s); on 0, 0x619e80(1) and go to the end; else back to 1 while done < w
end0x5fac70(now, 0); a NaN in +0x10, +0x14 or +0x18 prints a console line and nothing more

The heartbeat is 0x600a30(s, 0xee, 0, 0).

The derivation is in the doc.

Callers 1

Callees 11

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