Back to TPG

TPG.Net.SyncTeamPositions

S🏷️ Net

Part of TPG namespace

TPG.Net.SyncTeamPositions()
View on GitHub|gamemode/core/sv_networking.lua:128-146
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Push each team its own members' live positions for the teammate HUD markers. Teammate map markers (cl_hud DrawTeammates) read positions clientside, but the engine only refreshes a player's networked position while they're in your PVS, a teammate across the map would otherwise sit frozen at their last-seen spot. This pushes each team its OWN members' live positions a few times a second so the markers track everywhere. Sent per-team only, so it never leaks enemy positions to the other side. Only alive members are included. Run on a timer.Create("TPG_TeamPositions", 0.2, 0, ...) below, not called elsewhere.

Parameters

No parameters.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.