LightningObject::Update
function · spell · primitive
- Address
0x6ec460· 641 bytes, up to0x6ec6e0- Signature
uint32_t __thiscall (LightningObject *this, uint32_t now)- Meaning
- Shows, hides, places and expires each hop's bolt; returns 0 when a non-persistent chain reaches its end
- Confidence
- verified, proof one
- Finding
- spell/visuals#chain-update-per-frame
Finding: Chain update per frame in spell: visuals
For each hop 0x6ec460 looks up both GUIDs (type mask 1), marking an object a unit when its type
bits have bit 3. A non-persistent hop outside [start, end), or a hop missing either object, which
it hides, goes to the end test. Otherwise it is shown and its ends
placed: hop 0's start by 0x6ec6f0, every other unit end by 0x6ec780 with the chain's spell, a
non-unit end at its position. A hop without a handle creates its bolt with the record's values and
colour 0xffffffff; one with a handle moves it. The end test destroys a non-persistent hop's bolt
at or past its end. The result is 0 when not persistent and now ≥ +0x28, else 1.
The derivation is in the doc.
Callers 1
- SpellVisualsUpdate spell
Callees 8
- ClntObjMgrObjectPtr objectlayer
- SetColor terrain
- GetLightningCasterPoint spell
- GetSpellImpactPoint spell
- LightningRendererCreateBolt gx
- LightningRendererMoveBolt gx
- LightningRendererDestroyBolt gx
- LightningRendererShowBolt gx
Calls and jumps by a bare address, from tables/calls.tsv.