benilla-re systems structs docs

s_flushDispatchCases

global · collision

Address
0x618528 · 76 bytes, up to 0x618573
Type
void *[19]
Meaning
Holds the 19 case addresses of the switch in 0x618080, the last one the no-action exit 0x61851e
Confidence
verified, proof one
Finding
collision/eventapply#flush-dispatcher

Finding: Flush dispatcher in collision: event applies

0x618080(event, keep, endSpline, saved) pops the queue's first node, which its caller passes as event, then switches on its tag. The send helper 0x617fe0 calls 0x60e0a0(time, opcode, +0x4d, value, +0x48) on the unit at CMovement+0x15c, the time from movement globals +0x12c; with keep 0 it puts flag 0x800 back to its saved value for the call and sets it again after.

tagsindexcaseaction
600x6180bewith keep nonzero, 0x7c61c0, and when it starts a fall a unit hook
14, 151, 20x6180ea, 0x6180fa0x7c71c0(1), 0x7c71c0(0), no send
20 to 253 to 80x61810a to 0x618213speed setter and send
29 to 369 to 160x618248 to 0x618472mode toggle and send
38170x6184d0teleport and send 0xc7
every other180x61851enone

The derivation is in the doc.