benilla-re systems structs docs

GetSpellImpactPoint

function · spell · primitive

Address
0x6ec780 · 240 bytes, up to 0x6ec86f
Signature
float * __fastcall (float *out, void *unit, uint32_t spellId)
Meaning
Writes the unit's attachment the spell visual names through 0x860a18, else 0x22 for an unknown spell, else its position
Confidence
verified, proof one
Finding
spell/visuals#chain-endpoints

Finding: Chain endpoints in spell: visuals

0x6ec6f0 gives the caster's end: the position when the unit has no model, the $CSL event's position when the model has it, else the position with z + f32(+0x90 · +0xbc · 0.75), the product at 53 bits and both results rounded to floats. 0x6ec780 gives a spell's impact end: for a spell id with no record, attachment 0x22 when the model has it, else the position; otherwise the SpellVisual record's +0x24 indexes the attachments of 0x860a18 (20, 34, 19, 21, 22, 17, 23, 24, 25, 15, 16), unbounded, and the end is that attachment, else the position. A found spell never falls back to 0x22.

The derivation is in the doc.

Callers 1

Callees 6

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