PLAYERNAMEDESC::AddWorldText
function · playername · primitive
- Address
0x6c73f0· 125 bytes, up to0x6c746c- Signature
void __thiscall (PLAYERNAMEDESC *this, uint32_t category, const char *text, const uint32_t *color, const uint32_t *icon)- Meaning
- Takes a free slot and constructs a world text over the unit, 1/3 below its name position
- Confidence
- verified, proof one
- Finding
- playername/worldtext#submitting-a-text
- Test
playername::pn_worldtext_anchor_lift
Finding: Submitting a text in playername: world text
0x6c7840 adds a text over the unit of a name record unless a gate holds: the record's GUID is
the camera's and 0x50d390 returns nonzero, or the object manager's dword at +0xc8 is
nonzero. 0x6c73f0 takes the first free of the four slots and drops the text when all four are
used; it never replaces one. It looks the unit up, takes its name position, lowers the z by
0.3333333 (0x3eaaaaab, an f32 subtract rounded to f32) and constructs the text.
The derivation is in the doc.
Callers 1
- SubmitWorldText playername
Callees 3
- ClntObjMgrObjectPtr objectlayer
- CGUnit_C::GetNamePosition objectlayer
- WORLDTEXTSTRING::Create playername
Calls and jumps by a bare address, from tables/calls.tsv.