Back to TPG

TPG.PlayerTeams.Autobalance

S🏷️ Playerteams

Part of TPG namespace

TPG.PlayerTeams.Autobalance(ply)
View on GitHub|gamemode/player/sv_teams.lua:119-138
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Force ply onto the weaker team if their own team outnumbers the other by more than one. Called (via a small delay) after every death, so the swap always lands between lives rather than mid-fight.

Parameters

NameTypeDescription
plyPlayer

Returns

TypeDescription
booleanTrue if the player was moved.

Examples

No examples available.

Used In

No usages found in the codebase.