From: Rudolf Polzer Date: Wed, 20 Apr 2011 14:20:20 +0000 (+0200) Subject: only do headshot announcer if headshot bonus is > 0 X-Git-Tag: xonotic-v0.5.0~109^2~21^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc189c1838060ff3e0c395743d385da8c07f5c0e;p=xonotic%2Fxonotic-data.pk3dir.git only do headshot announcer if headshot bonus is > 0 --- diff --git a/qcsrc/server/w_common.qc b/qcsrc/server/w_common.qc index 2d9ecfd8b..1efd6132d 100644 --- a/qcsrc/server/w_common.qc +++ b/qcsrc/server/w_common.qc @@ -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");