Remove some useless code

This commit is contained in:
LostTrackpad 2024-06-18 16:04:39 +07:00
parent a25f5a6ee7
commit f61e6e344d

View file

@ -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