benilla-re systems structs docs

AllocPlayerMoveEvent

function · collision · host

Address
0x6175d0 · 202 bytes, up to 0x617699
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.

offsetfieldwriters
+0x00, +0x04list link: previous link, next node (bit 0 set marks the end)list code
+0x08time the event takes effect0x6175d0
+0x0ctag0x6175d0
+0x10, +0x1c, +0x20position (3 floats), facing, pitch0x617570, 0x617730
+0x28transport GUID0x617730
+0x30movement flags & 0x75a07dff0x617730
+0x34fall time0x617730
+0x38new speed (tags 20 to 25) or knockback direction x0x6176a0, 0x6177a0
+0x3c, +0x40, +0x44knockback direction y, horizontal and vertical speed0x6177a0
+0x48server change counterthe three adders
+0x4c1 when a status snapshot filled +0x10 to +0x340x617730
+0x4d1 when processing the event sends its opcode to the serverthe three adders

The derivation is in the doc.

Callers 3

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.