From 351e17cc91c1e7bffec35e089126ce23330c6dc8 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Sat, 27 Jun 2009 12:17:34 -0700 Subject: [PATCH] Team scores are now updated. --- src/zr/roundend.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index 6e3fe11..3c99504 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -162,6 +162,26 @@ RoundEndOnRoundEnd(reason) // Get outcome of the round. new RoundEndOutcome:outcome = RoundEndReasonToOutcome(reason); + // Update team scores. + new teamscore; + switch(outcome) + { + // Zombies won the round. + case ZombiesWin: + { + // Increment T score. + teamscore = GetTeamScore(CS_TEAM_T); + SetTeamScore(CS_TEAM_T, ++teamscore); + } + // Humans won the round. + case HumansWin: + { + // Increment CT score. + teamscore = GetTeamScore(CS_TEAM_CT); + SetTeamScore(CS_TEAM_CT, ++teamscore); + } + } + // Display the overlay to all clients. RoundEndOverlayStart(outcome);