From: Mario Date: Thu, 12 Dec 2024 17:18:40 +0000 (+0000) Subject: Don't play teamshoot sounds for damage dealt with HITTYPE_SPAM X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=11a70b0809e5916f45dd2e9b320e0e52ff606962;p=xonotic%2Fxonotic-data.pk3dir.git Don't play teamshoot sounds for damage dealt with HITTYPE_SPAM --- 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) {