mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
Remove some useless code
This commit is contained in:
parent
a25f5a6ee7
commit
f61e6e344d
1 changed files with 19 additions and 22 deletions
|
@ -73,8 +73,6 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
|
||||||
local dist = trout.HitPos:DistToSqr(mv:GetOrigin())
|
local dist = trout.HitPos:DistToSqr(mv:GetOrigin())
|
||||||
|
|
||||||
if trout.Fraction > 0 and dist < 2750000 and dist > 90000 and mv:KeyPressed(IN_JUMP) then
|
if trout.Fraction > 0 and dist < 2750000 and dist > 90000 and mv:KeyPressed(IN_JUMP) then
|
||||||
if CrueltyParkour:GetBool() and !ply:UsingRH() then
|
|
||||||
else
|
|
||||||
local vel = mv:GetVelocity()
|
local vel = mv:GetVelocity()
|
||||||
vel.z = -math.abs(vel.z)
|
vel.z = -math.abs(vel.z)
|
||||||
|
|
||||||
|
@ -100,7 +98,6 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
|
||||||
ply.GrappleLengthOld = ply:GetGrappleLength()
|
ply.GrappleLengthOld = ply:GetGrappleLength()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if ply:GetGrappling() then
|
if ply:GetGrappling() then
|
||||||
local startshrink = (ply.GrappleLengthOld or 0) - ply:GetGrappleLength() < 200
|
local startshrink = (ply.GrappleLengthOld or 0) - ply:GetGrappleLength() < 200
|
||||||
|
|
Loading…
Reference in a new issue