CGUnit_C::OnResurrect
function · objectlayer · orchestration
- Address
0x5fef70· 78 bytes, up to0x5fefbd- Meaning
- Refreshes a revived unit's sounds, death time and animation; signals PLAYER_ALIVE for the active player
- Confidence
- verified, proof one
- Finding
- objectlayer/units#health-death-and-resurrection
Finding: Health, death and resurrection in objectlayer: units
The health watcher redraws the name, keeps the low-health bit (under 20%), and flashes the
nameplate on a loss. A unit that dies stops the active mover's input, runs 0x605860 and clears
the player's precast on it; one that comes back resets input, plays its idle and rebuilds its
display. Dynamic flag 0x20 makes a unit look dead.
The derivation is in the doc.
Callers 1
- CGUnit_C::OnHealthFieldChanged objectlayer
Callees 7
- UnlockAllItems ui
- RefreshQuestGiverObjects objectlayer
- IsActivePlayerUnit objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::UpdateLoopSound objectlayer
- FrameScript_SignalEvent ui
- CM2Model::SetKeyBoneAnimSpeed models
Calls and jumps by a bare address, from tables/calls.tsv.