CPlayerMoveEvent
struct · collision · 80 bytes
- Meaning
- Holds one queued movement event: list link, time, tag, pose, status snapshot, payload and flags
- Confidence
- verified, proof one
- 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.
Fields 17
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void * | m_linkPrev | Holds the link to the previous node of the list the event is in | verified, proof one | collision/events#event-node |
0x0004 | 4 | void * | m_linkNext | Holds the next node, or the list's own link with bit 0 set at the end | verified, proof one | collision/events#event-node |
0x0008 | 4 | uint32_t | m_time | Holds the time the event takes effect, the queue's sort key, compared as a signed difference | verified, proof one | collision/events#event-node |
0x000c | 4 | uint32_t | m_tag | Holds the internal tag, 0 to 38, that the two consumer switches map to an action and opcode | verified, proof one | collision/events#event-node |
0x0010 | 12 | float[3] | m_position | Holds the event position, transport-local when the snapshot has a transport | verified, proof one | collision/events#event-node |
0x001c | 4 | float | m_facing | Holds the event facing, transport-local when the snapshot has a transport | verified, proof one | collision/events#event-node |
0x0020 | 4 | float | m_pitch | Holds the event pitch | verified, proof one | collision/events#event-node |
0x0028 | 8 | uint64_t | m_transportGuid | Holds the snapshot's transport GUID, 0 off a transport | verified, proof one | collision/events#event-node |
0x0030 | 4 | uint32_t | m_moveFlags | Holds the snapshot's movement flags masked with 0x75a07dff | verified, proof one | collision/events#event-node |
0x0034 | 4 | uint32_t | m_fallTime | Holds the snapshot's fall time, the status field 0x7c6340 copies from CMovement+0x78 | verified, proof one | collision/events#event-node |
0x0038 | 4 | float | m_value | Holds the new speed for tags 20 to 25, or the first knockback direction component | verified, proof one | collision/events#event-node |
0x003c | 4 | float | m_directionY | Holds the second knockback direction component | verified, proof one | collision/events#event-node |
0x0040 | 4 | float | m_speedXY | Holds the knockback horizontal speed | verified, proof one | collision/events#event-node |
0x0044 | 4 | float | m_speedZ | Holds the knockback vertical speed, stored into CMovement+0xa0 by 0x7c61f0 | verified, proof one | collision/events#event-node |
0x0048 | 4 | uint32_t | m_counter | Holds the server change counter that the acknowledgement echoes | verified, proof one | collision/events#event-node |
0x004c | 1 | uint8_t | m_hasStatus | Holds 1 when 0x617730 filled the snapshot fields, 0 from allocation | verified, proof one | collision/events#event-node |
0x004d | 1 | uint8_t | m_send | Holds 1 when processing the event sends its opcode to the server | verified, proof one | collision/events#event-node |