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",
dodgejumpleft = "stand",
walkbalancefalloffleft = "jumpair",
vaultover = "runfwd",
vaultover = "jumpair",
meleeairhit = "jumpair",
dodgejumpright = "stand",
meleeair = "jumpair",

View file

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

View file

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