CGUnit_C::OnDynamicFlagsChanged
function · objectlayer · primitive
- Address
0x600440· 395 bytes, up to0x6005ca- Meaning
- Handles loot, death-look and tap changes in UNIT_DYNAMIC_FLAGS: sparkle, events, death animation
- 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::OnDynamicFlagsFieldChanged objectlayer
Callees 13
- OsGetAsyncTimeMs core
- FireTutorial ui
- GetInputControl input
- CInputControl::Tick input
- SignalUnitEvent ui
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::ClearTargetIfSelected objectlayer
- CGUnit_C::AddLootSparkle objectlayer
- CGUnit_C::RemoveLootSparkle objectlayer
- CGUnit_C::PlayDeathAnimation objectlayer
- CGObject_C::ReleaseEffects objectlayer
- CGUnit_C::UpdateLoopSound objectlayer
- CGUnit_C::PlayReaction objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.