benilla-re systems structs docs

CGGameObject_C::SetState

function · objectlayer · orchestration

Address
0x5f8bd0 · 41 bytes, up to 0x5f8bf8
Signature
void __thiscall (CGGameObject_C *this, uint32_t state)
Meaning
Stores a game object's state at +0x27c and calls the handler's slot 10 with the old and new state when it changes
Confidence
verified, proof one
Finding
spell/go#player-cast-tail

Finding: Player cast tail in spell: go

For the player's cast: a first guid that is the player, with flags lacking 0x41, calls 0x4fd7b0 (spell id). A spell with effect 33 or 59 in a slot of +0xf4 and exactly one hit reads that hit as a game object: type 3 calls 0x5ed5f0 (unit, the hit guid); types 0, 1 and 3 match each effect-33 slot's misc value (+0x1a8) against the type-2 index slots of the object's Lock.dbc record and set the object's state (+0x27c) with 0x5f8bd0: action 0 or 1 gives 0, 2 gives 1. Then, when 0x6e5230 holds, or 0x6e5200 with bit 3 of +0x54, and the unit's +0xc48 guid is 0, 0x6131a0 starts the unit's attack on the first hit, or on guid 0.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

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