From b0b4d6b657c4507749da05b81f97cbb9449aa0de Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 12 Jul 2013 14:42:24 +1000 Subject: [PATCH] Also check if the attacker is a player --- qcsrc/server/mutators/mutator_nades.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/mutators/mutator_nades.qc b/qcsrc/server/mutators/mutator_nades.qc index 7b5bb12c6..a223f8be2 100644 --- a/qcsrc/server/mutators/mutator_nades.qc +++ b/qcsrc/server/mutators/mutator_nades.qc @@ -124,7 +124,7 @@ void nade_damage(entity inflictor, entity attacker, float damage, float deathtyp self.velocity += force; - if(!damage || self.flags & FL_ONGROUND) + if(!damage || (self.flags & FL_ONGROUND && IS_PLAYER(attacker))) return; if(self.health == self.max_health) -- 2.39.2