From 4a073af219c86e54149bc2b02b506cdf99a261ea Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sun, 2 Apr 2017 18:36:51 +0300 Subject: [PATCH] Survival: JoinBestTeam bugfix. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index 5b138c588..e5a5250c9 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -1439,6 +1439,10 @@ MUTATOR_HOOKFUNCTION(surv, CheckAllowedTeams, CBC_ORDER_EXCLUSIVE) /// \brief Hook that determines the best team for the player to join. MUTATOR_HOOKFUNCTION(surv, JoinBestTeam, CBC_ORDER_EXCLUSIVE) { + if (surv_type == SURVIVAL_TYPE_COOP) + { + return; + } entity player = M_ARGV(0, entity); if (IS_BOT_CLIENT(player)) { -- 2.39.5