Kinda fixed glitch with ladder noclip when ladder is deleted

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-22 00:12:03 +05:00
parent 9a7d1561dc
commit 95adabcf3c
3 changed files with 4 additions and 2 deletions

View file

@ -345,7 +345,7 @@ local transitionanims = {
hangheaveup = "runfwd", hangheaveup = "runfwd",
dodgejumpleft = "stand", dodgejumpleft = "stand",
walkbalancefalloffleft = "jumpair", walkbalancefalloffleft = "jumpair",
vaultover = "runfwd", vaultover = "jumpair",
meleeairhit = "jumpair", meleeairhit = "jumpair",
dodgejumpright = "stand", dodgejumpright = "stand",
meleeair = "jumpair", meleeair = "jumpair",

View file

@ -657,7 +657,7 @@ local function ClimbingCheck(ply, mv, cmd)
local lastvel = mv:GetVelocity() local lastvel = mv:GetVelocity()
mv:SetVelocity(vector_origin) mv:SetVelocity(vector_origin)
ply:SetMoveType(MOVETYPE_NOCLIP) -- ply:SetMoveType(MOVETYPE_NOCLIP)
ply:ViewPunch(Angle(5, 0, 0.5)) ply:ViewPunch(Angle(5, 0, 0.5))
local wallangc = Angle(wallang) local wallangc = Angle(wallang)

View file

@ -75,6 +75,8 @@ local function LadderCheck(ply, mv, cmd, ladder)
else else
ply:SetLadderDelay(CurTime() + 0.25) ply:SetLadderDelay(CurTime() + 0.25)
end end
ply:SetMoveType(MOVETYPE_WALK)
end end
local function LadderThink(ply, mv, cmd, ladder) local function LadderThink(ply, mv, cmd, ladder)