From 68d4eeedec5551e8f7b83096f3811d29361a8261 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Fri, 25 Nov 2016 00:58:10 +0100 Subject: [PATCH] don't spawn on chatting players --- .../mutator/spawn_near_teammate/sv_spawn_near_teammate.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc b/qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc index e4b784371..5f11777c2 100644 --- a/qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc +++ b/qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc @@ -87,6 +87,8 @@ MUTATOR_HOOKFUNCTION(spawn_near_teammate, PlayerSpawn) int tested = 0; FOREACH_CLIENT_RANDOM(IS_PLAYER(it), LAMBDA( if (autocvar_g_spawn_near_teammate_ignore_spawnpoint_max && tested >= autocvar_g_spawn_near_teammate_ignore_spawnpoint_max) break; + + if (PHYS_INPUT_BUTTON_CHAT(it)) continue; if (!SAME_TEAM(player, it)) continue; if (autocvar_g_spawn_near_teammate_ignore_spawnpoint_check_health && it.health < autocvar_g_balance_health_regenstable) continue; if (IS_DEAD(it)) continue; -- 2.39.2