AllocPlayerMoveEvent
function · collision · host
- Address
0x6175d0· 202 bytes, up to0x617699- Signature
CPlayerMoveEvent * __fastcall (uint32_t time, uint32_t tag)- Meaning
- Takes an event node from the free list or allocates 80 bytes, and stores the time and tag
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- collision/events#event-node
Finding: Event node in collision: events
0x6175d0(time, tag) takes the first node of the free list 0xc4db88 and unlinks it, or, when
the list is empty, allocates 80 bytes with SMemAlloc (0x6462e0) under the type name
.?AUCPlayerMoveEvent@@ (0x8613e4) and zeroes the link and position. It then stores the time,
the tag and 0 at +0x4c. A recycled node keeps its old pose and payload. 0x615910 moves a spent first
node to the free list's tail; nodes are freed only by 0x615a50 when no manager exists
(SMemFree at 0x615aaa) and by the manager teardown 0x616910, which frees the free list.
| offset | field | writers |
|---|---|---|
| +0x00, +0x04 | list link: previous link, next node (bit 0 set marks the end) | list code |
| +0x08 | time the event takes effect | 0x6175d0 |
| +0x0c | tag | 0x6175d0 |
| +0x10, +0x1c, +0x20 | position (3 floats), facing, pitch | 0x617570, 0x617730 |
| +0x28 | transport GUID | 0x617730 |
| +0x30 | movement flags & 0x75a07dff | 0x617730 |
| +0x34 | fall time | 0x617730 |
| +0x38 | new speed (tags 20 to 25) or knockback direction x | 0x6176a0, 0x6177a0 |
| +0x3c, +0x40, +0x44 | knockback direction y, horizontal and vertical speed | 0x6177a0 |
| +0x48 | server change counter | the three adders |
| +0x4c | 1 when a status snapshot filled +0x10 to +0x34 | 0x617730 |
| +0x4d | 1 when processing the event sends its opcode to the server | the three adders |
The derivation is in the doc.
Callers 3
- CMovement::AddPositionMoveEvent collision
- CMovement::AddPlayerMoveEvent collision
- CMovement::AddLaunchMoveEvent collision
Callees 1
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.