Back to TPG

TPG.Rounds.EndRound

S🏷️ Rounds

Part of TPG namespace

TPG.Rounds.EndRound(winningTeam)
View on GitHub|gamemode/core/sv_rounds.lua:317-361
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Close out a round and decide what happens next. Marks the round inactive, credits the win, announces it, plays a win or loss cue to each player, clears duplicator cooldowns, awards commendations and applies the round result to everyone's lifetime rating via tpg.stats.OnRoundEnd. Then one of two things: once the two teams' wins add up to TPG.Config.winsToMapVote it hands off to the map vote, otherwise it queues the next Setup ten seconds later. CheckWinCondition resolves a simultaneous wipe before calling here.

Parameters

NameTypeDescription
winningTeamnumberTEAM_GREEN or TEAM_RED. There is no draw path --

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.