PredaCarbon

Untitled

Mar 11th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. if !Ply:Alive() then hook.Remove("Think", "ClimbGrab"..Ply:UniqueID());
  2. elseif !ClimbSwep.Grab or Ply:GetMoveType() != MOVETYPE_NONE then Forget(); return
  3. elseif !IsOneHanded() then Forget();
  4. return
  5. elseif IsValid(ClimbSwep.Parent) then
  6.  
  7. if ClimbSwep.Parent:GetPhysicsObject():IsMoveable() then
  8.  
  9. if math.abs(ClimbSwep.OldVelocity - ClimbSwep.Parent:GetVelocity():Length()) >= 500 then Forget()
  10. else
  11.  
  12. ClimbSwep.OldVelocity = ClimbSwep.Parent:GetVelocity():Length()
  13. Ply:SetLocalVelocity(Vector(0, 0, 0))
  14. Ply:SetPos(ClimbSwep.Parent:LocalToWorld(ClimbSwep.LocalPos))
  15. return
  16.  
  17. end
  18.  
  19. end
  20.  
  21. end
  22.  
  23. [ERROR] addons/climb swep/lua/weapons/climb_swep2/shared.lua:501: Tried to use a NULL entity!
  24. 1. Alive - [C]:-1
  25. 2. fn - addons/climb swep/lua/weapons/climb_swep2/shared.lua:501
  26. 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
Advertisement
Add Comment
Please, Sign In to add comment