CGUnit_C::UpdateNamePlateVisibility
function · objectlayer · primitive
- Address
0x60f600· 487 bytes, up to0x60f7e6- Meaning
- Gives a unit a nameplate when visible, switched on for its side and within 20 yards, else releases it
- Confidence
- verified, proof one
- Finding
- objectlayer/unitnames#nameplates
- Test
objectlayer::follow_dist_proceed_difftest
Finding: Nameplates in objectlayer: unit names and markers
0x60f600 runs each frame. A unit gets a plate when it is alive, selectable, not stealthed, in a
visible node, not the camera's own unit, on screen and within 20 yards of it; when enemy or
friendly plates are switched on for its side; and when it is no friendly totem and no enemy
flagged dead. Plates come from a free list and stay sorted by distance from the screen point
(0.4, 0.3).
The derivation is in the doc.
Callers 2
- CGUnit_C::InvalidateNameDesc objectlayer
- CGUnit_C::Update objectlayer
Callees 10
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetActiveCamera ui
- GetUnitCreatureType objectlayer
- CGUnit_C::CanAttack objectlayer
- CGUnit_C::CanCooperate objectlayer
- CGUnit_C::UpdateNamePlate objectlayer
- CGUnit_C::ReleaseNamePlate objectlayer
- CGUnit_C::GetNamePlateScreenPos objectlayer
- CWorld::IsEntityDrawn terrain
Calls and jumps by a bare address, from tables/calls.tsv.