CGPlayer_C::UpdateGhostState
function · objectlayer · primitive
- Address
0x5de9c0· 132 bytes, up to0x5dea43- Meaning
- Switches the fog, tutorial and spirit state for PLAYER_FLAGS bit 0x10, signalling PLAYER_UNGHOST when clear
- Confidence
- verified, proof one
- Finding
- objectlayer/playerfields#ghost-state
Finding: Ghost state in objectlayer: player fields
0x5de9c0 applies PLAYER_FLAGS bit 0x10: set, it makes the death effect [0xb4b39c] current (ffxeffects), calls
0x6d4620(4) and the ghost tutorial; clear, it restores the glow effect [0xb4b350], calls 0x6d4630,
0x6d4900 and 0x4921c0(0,0) and signals PLAYER_UNGHOST. Both end in 0x458680 with the bit.
The derivation is in the doc.
Callers 2
- CGPlayer_C::OnActiveArrival objectlayer
- CGPlayer_C::OnPlayerFlagsChanged objectlayer
Callees 8
- SetSoundGhost sound
- SetAreaSpiritHealer ui
- FireTutorial ui
- SetCurrentFfx ffxeffects
- SetOverrideLight lighting
- ClearOverrideLight lighting
- 0x6d4900 lighting
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.