LightningObject
struct · spell · 80 bytes
- Meaning
- Holds a chain effect: link, GUID and hop arrays, end time, chain record values, texture, spell, flag and references
- Confidence
- verified, proof one
- Finding
- spell/visuals#chain-effect-creation
Finding: Chain effect creation in spell: visuals
Kit procedure kinds 0 and 12 call 0x6ecb90 with the chain id, strand count and persistent flag
from params 0, 1 and 2 (each low byte of bits(f32(p + 512.0)) >> 14, the flag that byte's
being nonzero), the targets and the spell. For each strand up to 3, 0x6ecbd0 allocates a
0x50-byte LightningObject with one reference, links it at the tail, and stores the GUIDs,
the end now + n·life, the record's fields 1 to 4, life·0.001f, its texture, spell and flag. A persistent object gains a reference and fills the owner's next slot. It returns at
once for a null caster or targets, no targets, spell 0, no strands, or a chain id with no record.
The derivation is in the doc.
Fields 10
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 8 | void *[2] | m_link | Holds the chain's link in the chain list | verified, proof one | spell/visuals#chain-effect-creation |
0x0008 | 16 | uint32_t[4] | m_guids | Holds the uint64 GUID array: capacity, count, data, quantum | verified, proof one | spell/visuals#chain-hop-table |
0x0018 | 16 | uint32_t[4] | m_bolts | Holds the hop array: capacity, count, data, quantum | verified, proof one | spell/visuals#chain-hop-table |
0x0028 | 4 | uint32_t | m_endTime | Holds the end time, now plus hops times life; set to now by 0x6ece10 | verified, proof one | spell/visuals#chain-update-per-frame |
0x002c | 16 | uint32_t[4] | m_chainFields | Holds the chain record's fields 1 to 4 as copied dwords, passed to 0x7b07f0 | verified, proof one | spell/visuals#chain-update-per-frame |
0x003c | 4 | float | m_lifeSeconds | Holds the chain record's +0x14 times 0.001 | verified, proof one | spell/visuals#chain-effect-creation |
0x0040 | 4 | void * | m_texture | Holds the texture of the chain record's +0x1c | verified, proof one | spell/visuals#chain-effect-creation |
0x0044 | 4 | uint32_t | m_spellId | Holds the spell id 0x6ec780 places target ends with | verified, proof one | spell/visuals#chain-endpoints |
0x0048 | 1 | uint8_t | m_persistent | Holds 1 for a chain that ignores its hop windows and end time | verified, proof one | spell/visuals#chain-update-per-frame |
0x004c | 4 | uint32_t | m_refCount | Holds the reference count, 1 at creation | verified, proof one | spell/visuals#chain-lifetime |