]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also check if the attacker is a player
authorMario <mario.mario@y7mail.com>
Fri, 12 Jul 2013 04:42:24 +0000 (14:42 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 12 Jul 2013 04:42:24 +0000 (14:42 +1000)
qcsrc/server/mutators/mutator_nades.qc

index 7b5bb12c63e126df3f0455b87a6fcfd8c5a40327..a223f8be2b2c9e6a20ab1863b578c38a63ffb9b3 100644 (file)
@@ -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)