From d7130529917aaf12a7e736cb1c9cc4b79679ef9d Mon Sep 17 00:00:00 2001 From: Freddy Date: Sun, 26 Jun 2016 12:49:24 +0200 Subject: [PATCH] Clan Arena: Fix spectators being shown as part of a team --- qcsrc/server/mutators/mutator/gamemode_ca.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_ca.qc b/qcsrc/server/mutators/mutator/gamemode_ca.qc index 2a8da29c2..3ee1f515b 100644 --- a/qcsrc/server/mutators/mutator/gamemode_ca.qc +++ b/qcsrc/server/mutators/mutator/gamemode_ca.qc @@ -307,7 +307,7 @@ void ca_LastPlayerForTeam_Notify(entity this) MUTATOR_HOOKFUNCTION(ca, PlayerDies) { entity frag_target = M_ARGV(2, entity); - + ca_LastPlayerForTeam_Notify(frag_target); if (!allowed_to_spawn) frag_target.respawn_flags = RESPAWN_SILENT; @@ -340,6 +340,8 @@ MUTATOR_HOOKFUNCTION(ca, MakePlayerObserver) player.caplayer = 0; if (player.caplayer) player.frags = FRAGS_LMS_LOSER; + else + player.frags = FRAGS_SPECTATOR; if (!warmup_stage) eliminatedPlayers.SendFlags |= 1; return true; // prevent team reset -- 2.39.2