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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_head | Holds the ring write counter | verified, proof one | playername/swing#trail-objects |
0x0004 | 4 | uint32_t | m_tail | Holds the ring read counter | verified, proof one | playername/swing#trail-objects |
0x0008 | 1536 | float[384] | m_points | Holds 128 points of three floats | verified, proof one | playername/swing#trail-objects |
0x0608 | 4 | uint32_t | m_color | Holds the trail colour; byte 3 is the alpha | verified, proof one | playername/swing#trail-objects |
0x060c | 4 | uint32_t | m_lifetime | Holds the time in milliseconds during which points are added | verified, proof one | playername/swing#trail-objects |
0x0610 | 4 | uint32_t | m_startTime | Holds the clock value when the trail started | verified, proof one | playername/swing#trail-objects |
0x0614 | 4 | uint32_t | m_lastStep | Holds the clock value of the last step | verified, proof one | playername/swing#trail-objects |