benilla-re systems structs docs

PlayChainEffect

function · spell · orchestration

Address
0x6ecb90 · 50 bytes, up to 0x6ecbc1
Signature
void __fastcall (void *caster, uint32_t chain, uint32_t strands, uint32_t flag, uint32_t spell, uint64_t *targets, uint32_t n, void **slots, uint32_t cap)
Meaning
Calls 0x6ecbd0 with its arguments reordered unless the caster or the target count is 0
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.

Callers 1

Callees 1

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