mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-01 14:53:02 +05:00
Kinda fixed glitch with ladder noclip when ladder is deleted
This commit is contained in:
parent
9a7d1561dc
commit
95adabcf3c
3 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue