benilla-re systems structs docs

CGPlayer_C::OnPlayerFlagsChanged

function · objectlayer · primitive

Address
0x5ee990 · 495 bytes, up to 0x5eeb7e
Signature
void __thiscall (CGPlayer_C *this, uint32_t old)
Meaning
Reacts to each changed PLAYER_FLAGS bit: tags, reaction, helm, cloak, ghost, rest, PvP and play time
Confidence
verified, proof one
Finding
objectlayer/playerfields#player-flag-changes

Finding: Player flag changes in objectlayer: player fields

0x5ee990(old) reacts to the changed bits of PLAYER_FLAGS, in this order: AFK, DND or GM (0xe) mark the name dirty and copy the active player's AFK bit to 0xb6e5cc; bits 0x180 refresh the reaction; 0xc00 call 0x524e10; the unit event PLAYER_FLAGS_CHANGED always; 0x400 and 0x800 hide or show the helm and cloak. For the active player: 0x10 runs the ghost state, 0x20 signals PLAYER_UPDATE_RESTING (with the rest tutorial when set), 0x200 shows the PvP toggle error and its verbose text, 0x3000 signal PLAYTIME_CHANGED.

The derivation is in the doc.

Callers 1

Callees 18

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