From: Martin Taibr Date: Thu, 24 Nov 2016 23:58:10 +0000 (+0100) Subject: don't spawn on chatting players X-Git-Tag: xonotic-v0.8.2~405^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=68d4eeedec5551e8f7b83096f3811d29361a8261;p=xonotic%2Fxonotic-data.pk3dir.git don't spawn on chatting players --- 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;