benilla-re systems structs docs

s_autoSelfCastCVar

global · spell

Address
0xceac34 · 4 bytes, up to 0xceac37
Type
void *
Meaning
Holds the autoSelfCast CVar record 0x6e7150 registers, default "0"; the arm reads its +0x28
Confidence
verified, proof one
Finding
spell/cast#arm-candidates

Finding: Arm candidates in spell: cast

The candidate is the caster's main-hand item when the caster is a player and the spell has Attributes 0x200 (none when the count at +0x1d38 is 15 or less), else the guid passed in, else the selection 0xb4e2d8. A successful bind returns 1. Otherwise, when autoSelfCast is set, the active player is bound and the bind's result returned. Otherwise a nonzero candidate the object manager does not know, for a spell whose maximum range is above 100, goes in the record at +0x18 and is sent; that returns 1. Everything else returns 0.

The derivation is in the doc.