PresentUnitDeath
function · objectlayer · orchestration
- Address
0x625190· 66 bytes, up to0x6251d1- Meaning
- Writes a unit's death line, flushes its XP gain and plays its death animation and sound
- Confidence
- verified, proof one
- Finding
- objectlayer/unitcombat#environmental-damage-and-death
Finding: Environmental damage and death in objectlayer: unit combat
0x1fc writes the environmental line, signals the active player's wound in the type's school
with absorb and resist marks, and plays the type's kit, the kit even for a hit of all zeros. A unit's death writes the death line,
flushes the XP gain held on it, which is always empty since a gain is written as it is stored,
plays the death animation and the death sound, stops its loop sound and, for the active player,
signals PLAYER_DEAD.
The derivation is in the doc.
Callers 1
- CGUnit_C::OnDied objectlayer
Callees 7
- SignalDeathState ui
- IsActivePlayerUnit objectlayer
- CGUnit_C::PlayDeathAnimation objectlayer
- CGUnit_C::StopLoopSound objectlayer
- CGUnit_C::PlayReaction objectlayer
- ShowPendingXpGain objectlayer
- LogUnitDeath objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.