From: Mario Date: Fri, 12 Jul 2013 04:42:24 +0000 (+1000) Subject: Also check if the attacker is a player X-Git-Tag: xonotic-v0.8.0~366^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0b4d6b657c4507749da05b81f97cbb9449aa0de;p=xonotic%2Fxonotic-data.pk3dir.git Also check if the attacker is a player --- 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)