benilla-re systems structs docs

CMovement::BroadcastStateChange

function · collision · orchestration

Address
0x61a820 · 585 bytes, up to 0x61aa68
Signature
void __thiscall (CMovement *this, uint32_t time, uint32_t skipSpline, uint32_t oldFlags, uint32_t fallMoving, uint32_t heartbeat)
Meaning
Ends an arrived spline, then reports a landing, a heartbeat, a direction change and a swim end
Confidence
verified, proof one
Finding
collision/handlers#state-change-broadcaster

Finding: State-change broadcaster in collision: handlers

0x61a820(t, skipSpline, old, fallMoving, heartbeat) reports the mover's flag change against old. The owner is the active mover when its GUID equals 0xc4da98; a spline is idle when absent or done. Steps, in order:

stepconditioneffect
1skipSpline 0, running spline, flags & 3, spline flag 1stop (0x7c6c00), snap to spline +0x58, face by spline flag, complete, 0x60e0a0(t, 0xb7, 0); go to 3
2otherwise a done splinesnap to spline +0x58, complete (0x619de0)
3old had 0x2000, flags lack itlanding hook 0x602d00(t, old, fallMoving); nonzero skips to 6
4heartbeat, active mover, spline idlesend 0xee through 0x600a30; go to 6
5(flags ^ old) & 0xf, active mover, spline idlesend 0x619f00(old, fallMoving) through 0x600a30
60x2000 or 0x4000 newly setthe owner's 0x602c40
70x200000 cleared, active mover, spline idle0x60e0a0(t, 0xcb, 1)

The derivation is in the doc.

Callers 4

Callees 10

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