From d0d7814d93278cf3a9f6281eb4ce657d5e62c52a Mon Sep 17 00:00:00 2001 From: z411 Date: Sat, 21 Nov 2020 20:37:36 -0300 Subject: [PATCH] Perfect and Defense medals don't make sense in less than 3v3 CA --- qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc index cb7af17dd..d5ec7521d 100644 --- a/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc +++ b/qcsrc/common/gamemodes/gamemode/clanarena/sv_clanarena.qc @@ -112,7 +112,7 @@ float CA_CheckWinner() if(winner_team > 0) { entity last_pl = ca_LastPlayer(winner_team); - if(last_pl) { + if(last_pl && Team_GetNumberOfPlayers(tm) >= 3) { Give_Medal(last_pl, DEFENSE); } @@ -123,7 +123,9 @@ float CA_CheckWinner() entity tm = Team_GetTeam(winner_team); - if(Team_GetNumberOfAlivePlayers(tm) == Team_GetNumberOfPlayers(tm)) perfect = true; + if (Team_GetNumberOfPlayers(tm) >= 3 && + Team_GetNumberOfAlivePlayers(tm) == Team_GetNumberOfPlayers(tm)) + perfect = true; } else if(winner_team == -1) { -- 2.39.2