TPG.State.GetPlayer(ply)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
| Name | Type | Description |
|---|---|---|
ply | Player |
Returns
| Type | Description |
|---|---|
table | The live state table. |
Examples
No examples available.
Used In
No usages found in the codebase.