From: Mario Date: Mon, 16 Aug 2021 07:35:40 +0000 (+1000) Subject: Clear all status effects from the player instead of removing them, fixes removal... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=78abd26f61a73945b0069d37c31959bc41e85807;p=xonotic%2Fxonotic-data.pk3dir.git Clear all status effects from the player instead of removing them, fixes removal sounds being played on death --- 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)