mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 04:23:02 +05:00
attempt to fix slide-roll softlock
This commit is contained in:
parent
333231fc9b
commit
a077069648
2 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ local function SafetyRollThink(ply, mv, cmd)
|
|||
|
||||
ply:SetMEMoveLimit(450)
|
||||
else
|
||||
removingbuttons["SafetyRoll.lua:57"] = SysTime()
|
||||
mv:SetVelocity(vector_origin)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -366,7 +366,7 @@ hook.Add("SetupMove", "qslide", function(ply, mv, cmd)
|
|||
end
|
||||
end
|
||||
|
||||
if ply:GetSlidingDelay() < CT and ply:Alive() and (ducking and sprinting and speed > runspeed * 0.5 or slippery and ply:GetSafetyRollTime() <= CurTime() - 0.25 or ply:GetDive() and ply:GetSafetyRollKeyTime() <= CurTime()) and onground and not sliding then
|
||||
if ply:GetSlidingDelay() < CT and ply:Alive() and (ducking and sprinting and speed > runspeed * 0.5 or slippery and ply:GetSafetyRollTime() <= CurTime() + 0.25 or ply:GetDive() and ply:GetSafetyRollKeyTime() <= CurTime()) and onground and not sliding then
|
||||
vel = math.min(speed, 541.44) * ply:GetOverdriveMult()
|
||||
|
||||
ParkourEvent(slippery and "slide45" or "slide", ply)
|
||||
|
|
Loading…
Reference in a new issue