benilla-re systems structs docs

InitPlayerColor

function · ui · orchestration

Address
0x7cb120 · 11 bytes, up to 0x7cb12a
Meaning
Stores the blue plate colour in 0xcf60e8
Confidence
verified, proof one
Finding
ui/nameplates#bar-colour-and-values

Finding: Bar colour and values in ui: the nameplate frame

0x7cbaa0 sets the bar colour: red 0xffff0000 when the unit's reaction toward the player is 1 or less, else blue 0xff0000ff for a player unit, green 0xff00ff00 when the reaction is 4 or more, else yellow 0xffffff00. 0x7cc3d0 sets the bar range 0 to UNIT_FIELD_MAXHEALTH and the value to UNIT_FIELD_HEALTH, so GetValue() is the health and not a fraction; watchers on both fields (0x7cc510) keep them current through 0x7cc570.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.