Check for the sound hittype instead of the tuba when deciding whether to send damage...
authorMario <mario.mario@y7mail.com>
Sun, 19 Jul 2020 13:00:51 +0000 (23:00 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 19 Jul 2020 13:00:51 +0000 (23:00 +1000)
qcsrc/server/g_damage.qc

index 417275f..9eb3d86 100644 (file)
@@ -911,7 +911,7 @@ float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector in
        total_damage_to_creatures = 0;
 
        if(deathtype != (WEP_HOOK.m_id | HITTYPE_SECONDARY | HITTYPE_BOUNCE)) // only send gravity bomb damage once
-               if(DEATH_WEAPONOF(deathtype) != WEP_TUBA) // do not send tuba damage (bandwidth hog)
+               if(!(deathtype & HITTYPE_SOUND)) // do not send radial sound damage (bandwidth hog)
                {
                        force = inflictorvelocity;
                        if(force == '0 0 0')