Back to TPG

TPG.UI.DrawTeammates

C🏷️ Hud

Part of TPG namespace

TPG.UI.DrawTeammates(ply, teamId, teamColor)
View on GitHub|gamemode/ui/cl_hud.lua:340-364
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Draw a name-tagged dot over every teammate visible on screen. Prefers the server-pushed position from TPG.UI.teamPositions (populated by the TPG_TeamPositions net message, which the server sends for the local player's OWN team only, keyed by entity index -- see the comment above that net.Receive), which stays accurate even for a teammate outside this client's PVS. Falls back to the entity's own GetPos() when no server position has arrived yet for that index, which happens for anyone who joined since the last TPG_TeamPositions broadcast.

Parameters

NameTypeDescription
plyPlayerThe local player (used only to skip drawing over self).
teamIdnumberThe team to draw markers for.
teamColorColorDot colour.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.