mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
Fix no sound on landing when in singleplayer
Merge pull request #44 from RedyRT/master
This commit is contained in:
commit
6f95a5500c
1 changed files with 3 additions and 3 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 CLIENT_IFTP() 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 CLIENT_IFTP() then
|
||||
elseif CLIENT_IFTP() or game.SinglePlayer() then
|
||||
ply:EmitSound("Handsteps.ConcreteHard")
|
||||
ply:EmitSound("Land.Concrete")
|
||||
end
|
||||
|
@ -197,4 +197,4 @@ if SERVER then
|
|||
|
||||
return 0
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue