InitMovementStatus
function · collision · primitive
- Address
0x618900· 32 bytes, up to0x61891f- Signature
void __thiscall (CMovement *this, uint32_t time, void *status)- Meaning
- Stores the flags & 0x75a07dff at +0x10 of a status, then fills the rest of it through 0x7c6340
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- collision/events#filling-from-a-status
Finding: Filling from a status in collision: events
0x617730(status, event) copies the status's transport GUID (+0x08) to +0x28 and its flags
(+0x10) masked with 0x75a07dff to +0x30. With a nonzero GUID it copies the transport-local
position and facing (+0x14, +0x20), else the world ones (+0x24, +0x30), to +0x10 and +0x1c; then
pitch (+0x34) to +0x20, fall time (+0x38) to +0x34, and 1 to +0x4c. 0x618900(time, status)
builds an outgoing status: it stores the CMovement flags & 0x75a07dff at status +0x10 first,
then calls 0x7c6340, which reads that word back and sets 0x2000000 when on a transport, else
clears it. The mask clears 0x200, 0x8000, 0x10000 to 0x100000, 0x400000, 0x2000000, 0x8000000 and
0x80000000.
The derivation is in the doc.
Callers 1
- CGUnit_C::WriteMovementPacket objectlayer
Callees 1
- CMovement::WriteStatus collision
Calls and jumps by a bare address, from tables/calls.tsv.