CMovement::DispatchFlushedEvent
function · collision · orchestration
- Address
0x618080· 1189 bytes, up to0x618524- Signature
void __thiscall (CMovement *this, CPlayerMoveEvent *event, uint32_t keep, uint32_t endSpline, uint32_t saved)- Meaning
- Pops the first event and applies its mode, speed, root or teleport change with the ack; drops other tags
- 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.
| tags | index | case | action |
|---|---|---|---|
| 6 | 0 | 0x6180be | with keep nonzero, 0x7c61c0, and when it starts a fall a unit hook |
| 14, 15 | 1, 2 | 0x6180ea, 0x6180fa | 0x7c71c0(1), 0x7c71c0(0), no send |
| 20 to 25 | 3 to 8 | 0x61810a to 0x618213 | speed setter and send |
| 29 to 36 | 9 to 16 | 0x618248 to 0x618472 | mode toggle and send |
| 38 | 17 | 0x6184d0 | teleport and send 0xc7 |
| every other | 18 | 0x61851e | none |
The derivation is in the doc.
Callers 1
- CMovement::FlushEvents collision
Callees 20
- CGUnit_C::PlayFallAnimation objectlayer
- RecycleFirstMoveEvent collision
- CMovement::FinishSpline collision
- CMovement::Teleport collision
- CMovement::SendFlushAck collision
- CMovement::Root collision
- CMovement::ReplayHover collision
- MovementGetGlobals collision
- CMovement::StartFalling collision
- CMovement::SetTurnRate collision
- CMovement::SetRunSpeed collision
- CMovement::SetRunBackSpeed collision
- CMovement::SetWalkSpeed collision
- CMovement::SetSwimSpeed collision
- CMovement::SetSwimBackSpeed collision
- CMovement::SetRunMode collision
- CMovement::SetWaterWalk collision
- CMovement::RestartFall collision
- CMovement::SetFeatherFall collision
- CMovement::ClearRoot collision
Calls and jumps by a bare address, from tables/calls.tsv.