Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !Ply:Alive() then hook.Remove("Think", "ClimbGrab"..Ply:UniqueID());
- elseif !ClimbSwep.Grab or Ply:GetMoveType() != MOVETYPE_NONE then Forget(); return
- elseif !IsOneHanded() then Forget();
- return
- elseif IsValid(ClimbSwep.Parent) then
- if ClimbSwep.Parent:GetPhysicsObject():IsMoveable() then
- if math.abs(ClimbSwep.OldVelocity - ClimbSwep.Parent:GetVelocity():Length()) >= 500 then Forget()
- else
- ClimbSwep.OldVelocity = ClimbSwep.Parent:GetVelocity():Length()
- Ply:SetLocalVelocity(Vector(0, 0, 0))
- Ply:SetPos(ClimbSwep.Parent:LocalToWorld(ClimbSwep.LocalPos))
- return
- end
- end
- end
- [ERROR] addons/climb swep/lua/weapons/climb_swep2/shared.lua:501: Tried to use a NULL entity!
- 1. Alive - [C]:-1
- 2. fn - addons/climb swep/lua/weapons/climb_swep2/shared.lua:501
- 3. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
Advertisement
Add Comment
Please, Sign In to add comment