CGUnit_C::SetLowHealth
function · objectlayer · primitive
- Address
0x5fa710· 18 bytes, up to0x5fa721- Meaning
- Sets bit 0x2 of +0xc58 when the unit has a blood levels row
- Confidence
- verified, proof one
- Finding
- objectlayer/unitbody#low-health-and-bleeding
Finding: Low health and bleeding in objectlayer: unit body each frame
UNIT_FIELD_HEALTH sets bit 0x2 of +0xc58 through 0x5fa710 when the unit has blood levels;
0x5fa700 clears it. While set, the tick's 0x60a260 reschedules +0xc40 2 to 5 seconds ahead.
Nothing else reads +0xc40: the timer draws from the client random and shows nothing.
The derivation is in the doc.
Callers 3
- CGUnit_C::CGUnit_C objectlayer
- CGUnit_C::Reactivate objectlayer
- CGUnit_C::OnHealthFieldChanged objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.