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=refs%2Fheads%2FMario%2Fstatus_effects_soundfix_alt;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)