From 1d96e5fbfa71cac38d37d8d3690559b35227e531 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 23 Jul 2023 23:16:54 +0500 Subject: [PATCH] Fix for zipline stuck sound when zipline is removed --- beatrun/gamemodes/beatrun/gamemode/sh/Zipline.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Zipline.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Zipline.lua index 87e3cb9..cefcd45 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Zipline.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Zipline.lua @@ -275,4 +275,12 @@ function CreateZipline(startpos, endpos) return zipline end +end + +if CLIENT then + hook.Add("Think", "ZiplineSoundFix", function() + if not IsValid(LocalPlayer():GetZipline()) then + LocalPlayer():StopSound("ZiplineLoop") + end + end) end \ No newline at end of file