]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't play teamshoot sounds for damage dealt with HITTYPE_SPAM
authorMario <mario.mario@y7mail.com>
Thu, 12 Dec 2024 17:18:40 +0000 (17:18 +0000)
committerterencehill <piuntn@gmail.com>
Thu, 12 Dec 2024 17:18:40 +0000 (17:18 +0000)
qcsrc/server/damage.qc

index 8b2af78f22f013fc74d903ffbb86c85e41468ddc..63ee5fda1bf6e712adf55bbbeb7e91a5c93e6ee1 100644 (file)
@@ -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)
                                        {