From b6b20b55ed2a5d64bc15b1b8d15143294e6e4228 Mon Sep 17 00:00:00 2001 From: Magnus Date: Fri, 6 Jan 2006 01:59:15 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1797 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- quakec/fallout2/combat.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quakec/fallout2/combat.qc b/quakec/fallout2/combat.qc index 5b6b097c7..46c35b8d3 100644 --- a/quakec/fallout2/combat.qc +++ b/quakec/fallout2/combat.qc @@ -299,6 +299,14 @@ void(entity targ, entity inflictor, entity attacker, float damage) T_Damage = default: break; } + + if (damage <= 0) + { + damage = 0; + sound (targ, CHAN_BODY, targ.armornoise, 1, ATTN_NORM); + return; + } + targ.health = targ.health - take; if (targ.health <= 0)