CMovement::BroadcastStateChange
function · collision · orchestration
- Address
0x61a820· 585 bytes, up to0x61aa68- 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:
| step | condition | effect |
|---|---|---|
| 1 | skipSpline 0, running spline, flags & 3, spline flag 1 | stop (0x7c6c00), snap to spline +0x58, face by spline flag, complete, 0x60e0a0(t, 0xb7, 0); go to 3 |
| 2 | otherwise a done spline | snap to spline +0x58, complete (0x619de0) |
| 3 | old had 0x2000, flags lack it | landing hook 0x602d00(t, old, fallMoving); nonzero skips to 6 |
| 4 | heartbeat, active mover, spline idle | send 0xee through 0x600a30; go to 6 |
| 5 | (flags ^ old) & 0xf, active mover, spline idle | send 0x619f00(old, fallMoving) through 0x600a30 |
| 6 | 0x2000 or 0x4000 newly set | the owner's 0x602c40 |
| 7 | 0x200000 cleared, active mover, spline idle | 0x60e0a0(t, 0xcb, 1) |
The derivation is in the doc.
Callers 4
- CMovement::UpdatePlayerMovement collision
- CMovement::ApplyGravityState collision
- CMovement::ApplyGravityStateAndReport collision
- CMovement::ResolveDisplacement collision
Callees 10
- ClntObjMgrObjectPtr objectlayer
- HeadingBetweenPoints objectlayer
- SendMovementPacket objectlayer
- CGUnit_C::PlayFallAnimation objectlayer
- CGUnit_C::OnLand objectlayer
- ProcessLocalMoveEvent objectlayer
- CMovement::SnapIfFar collision
- CMovement::CompleteSpline collision
- CMovement::GetFlagChangeOpcode collision
- CMovement::ForceStopMove collision
Calls and jumps by a bare address, from tables/calls.tsv.