mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
Fix for zipline stuck sound when zipline is removed
This commit is contained in:
parent
e79c75c448
commit
1d96e5fbfa
1 changed files with 8 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue