CGUnit_C::SetClientControl
function · objectlayer · primitive
- Address
0x5fa600· 193 bytes, up to0x5fa6c0- Meaning
- Sets or clears bit 0x400 of +0xc58, re-picks the camera's mover and tells the interface for the active player
- Confidence
- verified, proof two
- Finding
- objectlayer/unitmovement#the-active-mover
Finding: The active mover in objectlayer: unit movement
The active mover is the GUID at 0xc4da98. 0x6006e0(guid) switches it: the old mover's
auto-move stops, bit 31 of its flags clears and, with no running spline, its queue resets; the
active player's old mover sends 0x2d1. The new GUID is stored and, when nonzero, sent with 0x26a;
the new mover resets. 0x6006b0 stops the auto-move and clears it.
The derivation is in the doc.
Callers 2
- CGPlayer_C::OnActiveArrival objectlayer
- HandleClientControlUpdatePacket objectlayer
Callees 5
- GetActiveCamera ui
- SetPlayerControl ui
- CGUnit_C::IsClientControlled objectlayer
- IsActivePlayerUnit objectlayer
- SetActiveMover objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.