mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33: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
|
if SERVER and not land then
|
||||||
ply:EmitSound("Cloth.Roll")
|
ply:EmitSound("Cloth.Roll")
|
||||||
ply:EmitSound("Cloth.RollLand")
|
ply:EmitSound("Cloth.RollLand")
|
||||||
elseif CLIENT_IFTP() then
|
elseif CLIENT_IFTP() or game.SinglePlayer() then
|
||||||
ply:EmitSound("Handsteps.ConcreteHard")
|
ply:EmitSound("Handsteps.ConcreteHard")
|
||||||
ply:EmitSound("Land.Concrete")
|
ply:EmitSound("Land.Concrete")
|
||||||
end
|
end
|
||||||
|
@ -155,7 +155,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
||||||
if SERVER and not land then
|
if SERVER and not land then
|
||||||
ply:EmitSound("Cloth.Roll")
|
ply:EmitSound("Cloth.Roll")
|
||||||
ply:EmitSound("Cloth.RollLand")
|
ply:EmitSound("Cloth.RollLand")
|
||||||
elseif CLIENT_IFTP() then
|
elseif CLIENT_IFTP() or game.SinglePlayer() then
|
||||||
ply:EmitSound("Handsteps.ConcreteHard")
|
ply:EmitSound("Handsteps.ConcreteHard")
|
||||||
ply:EmitSound("Land.Concrete")
|
ply:EmitSound("Land.Concrete")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue