mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-15 12:53:46 +05:00
slippery fix
This commit is contained in:
parent
870cf943a2
commit
82f755381d
3 changed files with 6 additions and 5 deletions
|
@ -366,9 +366,10 @@ hook.Add("SetupMove", "qslide", function(ply, mv, cmd)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if onground and not ply:GetSliding() and not ply:GetJumpTurn() and ply:Alive() and
|
local able_to_slide = ducking and sprinting and speed > runspeed * 0.5
|
||||||
(ply:GetSlidingDelay() < CT) and ducking and
|
local already_sliding = (ply:GetSlidingDelay() >= CT) or ply:GetSliding()
|
||||||
((ducking and sprinting and speed > runspeed * 0.5) or slippery or ply:GetDive()) then
|
|
||||||
|
if not already_sliding and ply:Alive() and onground and not ply:GetJumpTurn() and (able_to_slide or slippery or ply:GetDive()) then
|
||||||
vel = math.min(speed, 541.44) * ply:GetOverdriveMult()
|
vel = math.min(speed, 541.44) * ply:GetOverdriveMult()
|
||||||
|
|
||||||
ParkourEvent(slippery and "slide45" or "slide", ply)
|
ParkourEvent(slippery and "slide45" or "slide", ply)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VERSION_GLOBAL = "1.0.30"
|
VERSION_GLOBAL = "1.0.31"
|
||||||
VERSION_LATEST = ""
|
VERSION_LATEST = ""
|
||||||
VERSION_CHECKED = false
|
VERSION_CHECKED = false
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.0.30
|
1.0.31
|
Loading…
Reference in a new issue