Back to TPG

TPG.Voting.VoteScramble

S🏷️ Voting

Part of TPG namespace

TPG.Voting.VoteScramble(ply)
View on GitHub|gamemode/voting/sv_voting.lua:97-129
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Register ply's scramble vote and scramble teams once enough players agree. Same shape as TPG.Voting.RockTheVote: any connected player counts, threshold is max(ceil(totalPlayers * TPG.Config.scramblePercent), 2), recomputed on every vote, and there is no un-vote. Passing calls TPG.PlayerTeams.ScrambleAll() (a different module, not documented here) directly and immediately, mid-round.

Parameters

NameTypeDescription
plyPlayerThe voter.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.