]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add checks for other.deadflag when announcing airshot -- this way airshots don't...
authorSamual <samual@xonotic.org>
Tue, 24 May 2011 23:45:29 +0000 (19:45 -0400)
committerSamual <samual@xonotic.org>
Tue, 24 May 2011 23:45:29 +0000 (19:45 -0400)
qcsrc/server/w_grenadelauncher.qc
qcsrc/server/w_minelayer.qc
qcsrc/server/w_rocketlauncher.qc

index 017a41a87a9a2bbb08ed1bcca99c1914227e439a..02ba362aee0ca7e28a96dcc7d7ff3169374a8b39 100644 (file)
@@ -30,8 +30,9 @@ void W_Grenade_Explode2 (void)
        if(other.takedamage == DAMAGE_AIM)
                if(other.classname == "player")
                        if(IsDifferentTeam(self.owner, other))
-                               if(IsFlying(other))
-                                       AnnounceTo(self.owner, "airshot");
+                               if(other.deadflag == DEAD_NO)
+                                       if(IsFlying(other))
+                                               AnnounceTo(self.owner, "airshot");
 
        self.event_damage = SUB_Null;
        self.takedamage = DAMAGE_NO;
index 14c6506faa0d13111f35402e3a8f109ac8384f63..8c3186d15d2e339cd86c192059613866ed613281 100644 (file)
@@ -56,8 +56,9 @@ void W_Mine_Explode ()
        if(other.takedamage == DAMAGE_AIM)
                if(other.classname == "player")
                        if(IsDifferentTeam(self.owner, other))
-                               if(IsFlying(other))
-                                       AnnounceTo(self.owner, "airshot");
+                               if(other.deadflag == DEAD_NO)
+                                       if(IsFlying(other))
+                                               AnnounceTo(self.owner, "airshot");
 
        self.event_damage = SUB_Null;
        self.takedamage = DAMAGE_NO;
index dfd2c3f1906fcc514685883bc828286307fd0afa..23ebee65df5efcb6fc5514b4d299857bf1486fdf 100644 (file)
@@ -21,8 +21,9 @@ void W_Rocket_Explode ()
        if(other.takedamage == DAMAGE_AIM)
                if(other.classname == "player")
                        if(IsDifferentTeam(self.owner, other))
-                               if(IsFlying(other))
-                                       AnnounceTo(self.owner, "airshot");
+                               if(other.deadflag == DEAD_NO)
+                                       if(IsFlying(other))
+                                               AnnounceTo(self.owner, "airshot");
 
        self.event_damage = SUB_Null;
        self.takedamage = DAMAGE_NO;