mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
Fix cruel wallrun
This commit is contained in:
parent
32863eb53a
commit
a25f5a6ee7
1 changed files with 6 additions and 2 deletions
|
@ -78,6 +78,10 @@ local function WallrunningThink(ply, mv, cmd)
|
||||||
mv:SetButtons(mv:GetButtons() - IN_DUCK)
|
mv:SetButtons(mv:GetButtons() - IN_DUCK)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if math.Round(math.Rand(0, 1.1), 1) > 1 and SlippyWallrun:GetBool() and !ply:UsingRH() then
|
||||||
|
timer.Simple(math.Rand(0, (ply:GetWallrunTime() - CurTime())), function() ply:SetWallrunTime(0) end)
|
||||||
|
end
|
||||||
|
|
||||||
local wrtimeremains = CurTime() < ply:GetWallrunTime()
|
local wrtimeremains = CurTime() < ply:GetWallrunTime()
|
||||||
|
|
||||||
if PuristWallrun:GetBool() then
|
if PuristWallrun:GetBool() then
|
||||||
|
@ -522,12 +526,12 @@ end
|
||||||
local vecdir = Vector(1000, 1000, 1000)
|
local vecdir = Vector(1000, 1000, 1000)
|
||||||
|
|
||||||
hook.Add("SetupMove", "Wallrunning", function(ply, mv, cmd)
|
hook.Add("SetupMove", "Wallrunning", function(ply, mv, cmd)
|
||||||
if ply:GetWallrun() == nil or not ply:Alive() or (CrueltyParkour:GetBool() and !(ply:UsingRH())) then
|
if ply:GetWallrun() == nil or not ply:Alive() or (CrueltyParkour:GetBool() and !ply:UsingRH() and !SlippyWallrun:GetBool()) then
|
||||||
ply:SetWallrun(0)
|
ply:SetWallrun(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ply:GetWallrun() == 0 and mv:GetVelocity().z > -450 and not ply:OnGround() and mv:KeyDown(IN_FORWARD) and not ply:Crouching() and not mv:KeyDown(IN_DUCK) and ply:GetMoveType() ~= MOVETYPE_NOCLIP and ply:WaterLevel() < 1 then
|
if ply:GetWallrun() == 0 and mv:GetVelocity().z > -450 and not ply:OnGround() and mv:KeyDown(IN_FORWARD) and not ply:Crouching() and not mv:KeyDown(IN_DUCK) and ply:GetMoveType() ~= MOVETYPE_NOCLIP and ply:WaterLevel() < 1 then
|
||||||
if (CrueltyParkour:GetBool() and (ply:GetActiveWeapon():GetClass() != "runnerhands")) then
|
if (CrueltyParkour:GetBool() and !ply:UsingRH() and !SlippyWallrun:GetBool()) then
|
||||||
else
|
else
|
||||||
WallrunningCheck(ply, mv, cmd)
|
WallrunningCheck(ply, mv, cmd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue