attempt to fix slide-roll softlock

This commit is contained in:
relaxtakenotes 2024-12-20 22:44:04 +05:00
parent 333231fc9b
commit a077069648
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ local function SafetyRollThink(ply, mv, cmd)
ply:SetMEMoveLimit(450) ply:SetMEMoveLimit(450)
else else
removingbuttons["SafetyRoll.lua:57"] = SysTime()
mv:SetVelocity(vector_origin) mv:SetVelocity(vector_origin)
end end
end end

View file

@ -366,7 +366,7 @@ hook.Add("SetupMove", "qslide", function(ply, mv, cmd)
end end
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() vel = math.min(speed, 541.44) * ply:GetOverdriveMult()
ParkourEvent(slippery and "slide45" or "slide", ply) ParkourEvent(slippery and "slide45" or "slide", ply)