benilla-re systems structs docs

CreateLightningObjects

function · spell · primitive

Address
0x6ecbd0 · 548 bytes, up to 0x6ecdf3
Signature
void __fastcall (void *caster, const uint64_t *targets, uint32_t n, uint32_t spell, int32_t chainId, uint32_t strands, uint8_t flag, void **slots, int32_t cap)
Meaning
Creates up to three chains of a SpellChainEffects record over a caster and its targets
Confidence
verified, proof one
Finding
spell/visuals#chain-effect-creation
Test
spell::spellvisual_chain_duration_difftest

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.

Callers 1

Callees 14

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