revert grapple stuff

This commit is contained in:
relaxtakenotes 2024-12-22 16:15:57 +05:00
parent 7b03b16ea7
commit 40142ec39d
3 changed files with 5 additions and 6 deletions

View file

@ -205,8 +205,8 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
tr.endpos = mv:GetOrigin()
local mins, maxs = ply:GetHull()
mins:Mul(1.05)
maxs:Mul(1.05)
mins:Mul(1.01)
maxs:Mul(1.01)
tr.mins = mins
tr.maxs = maxs
@ -219,10 +219,9 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
vel:Normalize()
if not trout.Hit then
mv:SetOrigin(mv:GetOrigin() - vel * (ply:GetGrapplePos():Distance(pos) - ply:GetGrappleLength()))
mv:SetOrigin(mv:GetOrigin() - vel * (ply:GetGrapplePos():Distance(pos) - ply:GetGrappleLength() - 10))
end
mv:SetVelocity(mv:GetVelocity() - vel * (ply:GetGrapplePos():Distance(pos) - ply:GetGrappleLength()))
end

View file

@ -1,4 +1,4 @@
VERSION_GLOBAL = "1.0.28"
VERSION_GLOBAL = "1.0.29"
VERSION_LATEST = ""
VERSION_CHECKED = false

View file

@ -1 +1 @@
1.0.28
1.0.29