Fix no sound on landing when in singleplayer

Merge pull request #44 from RedyRT/master
This commit is contained in:
Jonny_Bro (Nikita) 2023-08-03 22:10:50 +05:00 committed by GitHub
commit 6f95a5500c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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