From 11a70b0809e5916f45dd2e9b320e0e52ff606962 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Dec 2024 17:18:40 +0000 Subject: [PATCH] Don't play teamshoot sounds for damage dealt with HITTYPE_SPAM --- qcsrc/server/damage.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/damage.qc b/qcsrc/server/damage.qc index 8b2af78f2..63ee5fda1 100644 --- a/qcsrc/server/damage.qc +++ b/qcsrc/server/damage.qc @@ -832,7 +832,7 @@ void Damage(entity targ, entity inflictor, entity attacker, float damage, int de } } } - else if (IS_PLAYER(attacker) && !STAT(FROZEN, victim)) // same team + else if (IS_PLAYER(attacker) && !STAT(FROZEN, victim) && !(deathtype & HITTYPE_SPAM)) // same team { if (deathtype != DEATH_FIRE.m_id) { -- 2.39.2