mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
Update SafetyRoll.lua Fixes missing sound when falling on hands
Fixes sound when falling on hands in singleplayer. For some reason CLIENT_IFTP() was preventing to play these sounds in singleplayer. This will ensure that the sounds are played regardless of whether it's a singleplayer or multiplayer.
This commit is contained in:
parent
c61a2b129d
commit
9d807b190b
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ hook.Add("SetupMove", "EvadeRoll", function(ply, mv, cmd)
|
|||
if SERVER and not land then
|
||||
ply:EmitSound("Cloth.Roll")
|
||||
ply:EmitSound("Cloth.RollLand")
|
||||
elseif true then
|
||||
elseif CLIENT_IFTP() or game.SinglePlayer() then
|
||||
ply:EmitSound("Handsteps.ConcreteHard")
|
||||
ply:EmitSound("Land.Concrete")
|
||||
end
|
||||
|
@ -155,7 +155,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
|||
if SERVER and not land then
|
||||
ply:EmitSound("Cloth.Roll")
|
||||
ply:EmitSound("Cloth.RollLand")
|
||||
elseif true then
|
||||
elseif CLIENT_IFTP() or game.SinglePlayer() then
|
||||
ply:EmitSound("Handsteps.ConcreteHard")
|
||||
ply:EmitSound("Land.Concrete")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue