From 78abd26f61a73945b0069d37c31959bc41e85807 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 16 Aug 2021 17:35:40 +1000 Subject: [PATCH] Clear all status effects from the player instead of removing them, fixes removal sounds being played on death --- .../common/mutators/mutator/status_effects/sv_status_effects.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/mutators/mutator/status_effects/sv_status_effects.qc b/qcsrc/common/mutators/mutator/status_effects/sv_status_effects.qc index 0ec5d4d5c..1fa8174f6 100644 --- a/qcsrc/common/mutators/mutator/status_effects/sv_status_effects.qc +++ b/qcsrc/common/mutators/mutator/status_effects/sv_status_effects.qc @@ -65,7 +65,7 @@ MUTATOR_HOOKFUNCTION(status_effects, PlayerDies) { entity frag_target = M_ARGV(2, entity); - StatusEffects_removeall(frag_target, STATUSEFFECT_REMOVE_NORMAL); + StatusEffects_removeall(frag_target, STATUSEFFECT_REMOVE_CLEAR); } MUTATOR_HOOKFUNCTION(status_effects, MakePlayerObserver) -- 2.39.2