Update SafetyRoll.lua Fixes missing sound when falling on hands in singleplayer

Works for both multiplayer and singleplayer.
This commit is contained in:
RedyRT 2023-08-03 04:48:17 +03:00 committed by GitHub
parent 33eb4692f6
commit c61a2b129d
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 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 true 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 true then
ply:EmitSound("Handsteps.ConcreteHard") ply:EmitSound("Handsteps.ConcreteHard")
ply:EmitSound("Land.Concrete") ply:EmitSound("Land.Concrete")
end end