Back to TPG

TPG.PropTracking.UpdateTeamTotals

S🏷️ Proptracking

Part of TPG namespace

TPG.PropTracking.UpdateTeamTotals(refreshPoints)
View on GitHub|gamemode/systems/sv_proptracking.lua:52-106
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Recompute every playing team's props/weight/points, and each player's own usage. refreshPoints forces ACE to rebuild stale point totals before reading them. Props and weight don't need it: CFW maintains con.ents and con.totalMass live, so those are just table reads. ACE points are the expensive one (lazy, rebuilt on demand), which is why the caller decides how often it's worth paying for -- see the tpg_points_refresh_interval convar below, which drives the periodic caller. Fully replaces TPG.State.limits and TPG.PropTracking.Players each call; nothing here is incremental. Syncs the result to clients via TPG.Net.SyncLimits if that exists. totals before reading them.

Parameters

NameTypeDescription
refreshPoints?booleanForce ACE to rebuild point(default: false)

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.