From: Rudolf Polzer Date: Wed, 4 Jan 2012 12:48:26 +0000 (+0100) Subject: don't overemphasize direct hits X-Git-Tag: xonotic-v0.6.0~188^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=10279a8bed152f21526af3b06cc7eaf218734d07;p=xonotic%2Fxonotic-data.pk3dir.git don't overemphasize direct hits --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 86df995cc..5910dba3e 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -38,6 +38,8 @@ void Ent_DamageInfo(float isNew) thisdmg = ((vlen (nearest - w_org) - bound(MIN_DAMAGEEXTRARADIUS, self.damageextraradius, MAX_DAMAGEEXTRARADIUS)) / rad); if(thisdmg >= 1) continue; + if(thisdmg < 0) + thisdmg = 0; if(dmg) { thisdmg = dmg + (edge - dmg) * thisdmg;