]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
only do headshot announcer if headshot bonus is > 0
authorRudolf Polzer <divverent@alientrap.org>
Wed, 20 Apr 2011 14:20:20 +0000 (16:20 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 20 Apr 2011 14:20:20 +0000 (16:20 +0200)
qcsrc/server/w_common.qc

index 2d9ecfd8b31085d0fb0ea2eb2d4294d56d3826a0..1efd6132d084e217b586015bf4910fb61446ebcc 100644 (file)
@@ -184,7 +184,7 @@ void W_BallisticBullet_Hit (void)
 
                if(headshot)
                        f *= q;
-               if(DEATH_WEAPONOF(self.projectiledeathtype) == WEP_SNIPERRIFLE)
+               if(self.dmg_edge > 0)
                {
                        if(headshot)
                                AnnounceTo(self.owner, "headshot");