CGPlayer_C::OnDied
function · objectlayer · primitive
- Address
0x5e99b0· 229 bytes, up to0x5e9a94- Signature
void __thiscall (CGPlayer_C *this)- Meaning
- Announces a party member's death, or for the active player arms the release timer and resets its state
- Confidence
- verified, proof one
- Finding
- ui/deathui#the-release-timer
Finding: The release timer in ui: death, the corpse run and resurrection
GetReleaseTimeRemaining() pushes the seconds left until the dead player is released, -1 when the map has no timer and 0 when the timer is unset or past. The client arms it: when the active player dies, 0x5e99b0 tests bit 3 of byte 0 of PLAYER_FIELD_BYTES (player block +0x1028) and, if it is set, stores the current time plus 360000 milliseconds at 0xb4e340 (0x496250), else sets the no-timer byte 0xb4e344 (0x496280).
The countdown is not on the wire.
The derivation is in the doc.
Callers 1
- CGUnit_C::OnDied objectlayer
Callees 12
- ClntObjMgrGetActivePlayer objectlayer
- EndLootWindow ui
- CGGameUI::IsPartyMember ui
- EndInteractionWithGuid ui
- CGGameUI::SelectTarget ui
- ArmReleaseTimer ui
- ClearReleaseTimer ui
- CGGameUI::DisplayError ui
- CGPlayer_C::SendRepopRequest objectlayer
- RefreshQuestGiverStatuses objectlayer
- CGUnit_C::GetUnitName objectlayer
- CancelCast spell
Calls and jumps by a bare address, from tables/calls.tsv.