CGUnit_C::OnDied
function · objectlayer · primitive
- Address
0x605860· 254 bytes, up to0x60595d- Meaning
- Clears a dying unit's attack target, cast, target selection, marker, sound and auto-move
- 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 14
- EndInteractionWithGuid ui
- CGGameUI::SelectTarget ui
- CGPlayer_C::OnDied objectlayer
- CGUnit_C::ReleaseQuestMarker objectlayer
- CGUnit_C::StopAutoMove objectlayer
- CGObject_C::FreeCastMissiles objectlayer
- CGObject_C::FreeStuckMissiles objectlayer
- CGObject_C::ReleaseEffects objectlayer
- PresentUnitDeath objectlayer
- IsCastInFlight spell
- GetPendingCastTargetPtr spell
- CancelCast spell
- StopAutoRepeatSpell spell
- Sound::Stop sound
Calls and jumps by a bare address, from tables/calls.tsv.