CGPlayer_C::OnPlayerFlagsChanged
function · objectlayer · primitive
- Address
0x5ee990· 495 bytes, up to0x5eeb7e- 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
- OnPlayerFlagsWatch objectlayer
Callees 18
- ClntObjMgrGetActivePlayer objectlayer
- QueryCorpse ui
- CGGameUI::DisplayError ui
- AddChatLine ui
- FireTutorial ui
- SignalUnitEvent ui
- MarkPortraitDirty ui
- CGPlayer_C::UpdateGhostState objectlayer
- RefreshQuestGiverStatuses objectlayer
- CGPlayer_C::ShowHelm objectlayer
- CGPlayer_C::HideHelm objectlayer
- CGPlayer_C::ShowCloak objectlayer
- CGPlayer_C::HideCloak objectlayer
- CGUnit_C::RefreshReaction objectlayer
- PlayerNameMarkAllColorDirty playername
- PlayerNameMarkRebuild playername
- FrameScript_GetText ui
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.