Back to TPG

TPG.State.GetPlayer

S🏷️ State

Part of TPG namespace

TPG.State.GetPlayer(ply)
View on GitHub|gamemode/core/sv_gamestate.lua:138-143
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

A player's state table, creating it if needed. The normal way in. Returns the live table, so writing to it is how the rest of the gamemode records cooldowns, per-round stats and votes: dupeCooldown CurTime() past which the duplicator is usable again spawnProtection CurTime() past which spawn protection has expired stats this round only: kills, killsPerTon, objectiveKills, captures. Cleared by ResetRound votes rtv, scramble, map money wallet, when the per-player economy is running gearCooldowns [gear key] = { charges, expires, cooldown } -- lives left in the item's current run, and the CurTime its timer runs out (0 while none is running). See tpg.gearsystem.

Parameters

NameTypeDescription
plyPlayer

Returns

TypeDescription
tableThe live state table.

Examples

No examples available.

Used In

No usages found in the codebase.