From: z411 Date: Sat, 21 Nov 2020 23:37:36 +0000 (-0300) Subject: Perfect and Defense medals don't make sense in less than 3v3 CA X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d0d7814d93278cf3a9f6281eb4ce657d5e62c52a;p=xonotic%2Fxonotic-data.pk3dir.git Perfect and Defense medals don't make sense in less than 3v3 CA --- 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) {