From 141729ea9d5f5b2010eac77723399a6e20aaeeff Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 4 Sep 2019 19:37:51 +1000 Subject: [PATCH] If an attack would be fatal, don't play the armor hit sound --- qcsrc/server/player.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index c39f59e721..9e67050cb6 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -398,7 +398,7 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, if(sound_allowed(MSG_BROADCAST, attacker)) { - if (save > 10) + if (save > 10 && (dh - take) > 0) // don't play armor sound if the attack is fatal sound (this, CH_SHOTS, SND_ARMORIMPACT, VOL_BASE, ATTEN_NORM); else if (take > 30) sound (this, CH_SHOTS, SND_BODYIMPACT2, VOL_BASE, ATTEN_NORM); -- 2.39.2