From 375dceea87800e616c4a3e7f6b0be6b1fe66678b Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Sat, 15 Apr 2023 14:32:58 +0200 Subject: [PATCH] remove_heavy_weapon_slow 1.0.1 An additional OnPlayerWeaponSwitch function was threaded on every spawn. Now it will stop when the player dies and thread a new one as expected --- small_scripts/remove_heavy_weapon_slow.gsc | 1 + 1 file changed, 1 insertion(+) diff --git a/small_scripts/remove_heavy_weapon_slow.gsc b/small_scripts/remove_heavy_weapon_slow.gsc index d67f1b6..df05ba3 100644 --- a/small_scripts/remove_heavy_weapon_slow.gsc +++ b/small_scripts/remove_heavy_weapon_slow.gsc @@ -40,6 +40,7 @@ The move speed scale is reset whenever we switch weapons so we need to re-apply OnPlayerWeaponSwitch() { self endon("disconnect"); + self endon("death"); for (;;) {