CGUnit_C::OnHealthFieldChanged
function · objectlayer · primitive
- Address
0x6046f0· 358 bytes, up to0x604855- Meaning
- Keeps low health, flashes the plate on loss, handles death and resurrection, fires usable events
- Confidence
- verified, proof one
- Finding
- objectlayer/units#health-death-and-resurrection
- Test
objectlayer::unit_low_health_ratio_difftest
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 0
None by a direct call or jump.
Callees 16
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- FireUsableEvents ui
- GetInputControl input
- CInputControl::Tick input
- IsActivePlayerUnit objectlayer
- CGUnit_C::ClearLowHealth objectlayer
- CGUnit_C::SetLowHealth objectlayer
- CGUnit_C::OnResurrect objectlayer
- CGUnit_C::OnDied objectlayer
- IsDeadOrGhost objectlayer
- CGUnit_C::RefreshNameDesc objectlayer
- CGUnit_C::OnDisplayChanged objectlayer
- UnitClearPrecastSpell objectlayer
- CGUnit_C::FlashNamePlate objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.