Fix for zipline stuck sound when zipline is removed

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-23 23:16:54 +05:00
parent e79c75c448
commit 1d96e5fbfa

View file

@ -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