Hopefully fix roll-to-slide bug dff602a651

This commit is contained in:
Jonny_Bro (Nikita) 2024-11-10 16:59:25 +05:00
parent 45c2c77bc3
commit 669c266cfd
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8

View file

@ -246,6 +246,7 @@ end
hook.Add("SetupMove", "qslide", function(ply, mv, cmd) hook.Add("SetupMove", "qslide", function(ply, mv, cmd)
if not ply:Alive() then return end if not ply:Alive() then return end
if ply:GetSafetyRollKeyTime() > CurTime() then return end
if not ply.OldDuckSpeed then if not ply.OldDuckSpeed then
ply.OldDuckSpeed = ply:GetDuckSpeed() ply.OldDuckSpeed = ply:GetDuckSpeed()