From 960d524193f1646c069df489e7d2eae3adabc408 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 28 Oct 2018 15:48:08 +0100 Subject: [PATCH] Fix #2126 "g_keepaway_noncarrier_damage disables damage by map objects" --- qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc b/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc index 66acc2e45..0b8144deb 100644 --- a/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc +++ b/qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qc @@ -394,7 +394,7 @@ MUTATOR_HOOKFUNCTION(ka, Damage_Calculate) // for changing damage and force valu frag_force *= autocvar_g_keepaway_ballcarrier_force; } } - else if (!frag_target.ballcarried) // if the target is a noncarrier + else if (IS_PLAYER(frag_attacker) && !frag_target.ballcarried) // if the target is a noncarrier { if(frag_target == frag_attacker) // damage done to yourself { -- 2.39.2