benilla-re systems structs docs

SWING

struct · playername · 1560 bytes

Meaning
Holds a weapon trail: a ring of 128 points, colour, lifetime and times
Confidence
verified, proof one
Finding
playername/swing#trail-objects

Finding: Trail objects in playername: weapon swing trails

A trail object is 8 bytes: the swing record pointer at +0 and the model at +4. A swing record (0x618 bytes, tag SWING) holds the ring write counter at +0x00, the read counter at +0x04, 128 points of 12 bytes from +0x08, the colour dword at +0x608, the lifetime in milliseconds at +0x60c, the start time at +0x610 and the time of the last step at +0x614.

The derivation is in the doc.

Fields 7

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_headHolds the ring write counterverified, proof oneplayername/swing#trail-objects
0x00044uint32_tm_tailHolds the ring read counterverified, proof oneplayername/swing#trail-objects
0x00081536float[384]m_pointsHolds 128 points of three floatsverified, proof oneplayername/swing#trail-objects
0x06084uint32_tm_colorHolds the trail colour; byte 3 is the alphaverified, proof oneplayername/swing#trail-objects
0x060c4uint32_tm_lifetimeHolds the time in milliseconds during which points are addedverified, proof oneplayername/swing#trail-objects
0x06104uint32_tm_startTimeHolds the clock value when the trail startedverified, proof oneplayername/swing#trail-objects
0x06144uint32_tm_lastStepHolds the clock value of the last stepverified, proof oneplayername/swing#trail-objects