OnEnvironmentalDamage
function · objectlayer · primitive
- Address
0x624f30· 213 bytes, up to0x625004- Meaning
- Writes environmental damage, signals the active player's wound and plays the type's kit
- 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 2
- CGUnit_C::OnLand objectlayer
- HandleUnitCombatMessage objectlayer
Callees 4
- SignalUnitCombatWound ui
- IsActivePlayerUnit objectlayer
- PlayUnitSpellVisualKit objectlayer
- LogEnvironmentalDamage objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.