GetLightningCasterPoint
function · spell · primitive
- Address
0x6ec6f0· 138 bytes, up to0x6ec779- Signature
float * __fastcall (float *out, void *unit)- Meaning
- Writes a caster's beam end: its $CSL event, else its position raised by +0x90 times +0xbc times 0.75
- Confidence
- verified, proof one
- Finding
- spell/visuals#chain-endpoints
- Test
spell::spellvisual_attach_height_difftest
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
- LightningObject::Update spell
Callees 2
- CM2Model::HasEvent models
- CM2Model::GetEventPosition models
Calls and jumps by a bare address, from tables/calls.tsv.