Advertisement
spinsquad

hitbox esp

May 31st, 2015
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. hook.Add("HUDPaint", "", function()
  2.     for k,v in next, player.GetAll() do
  3.         if(!v || !v:IsValid() || v:Health() < 1 || v:IsDormant() || v == LocalPlayer()) then continue; end
  4.         for group = 0, v:GetHitBoxGroupCount() do
  5.             local count = v:GetHitBoxCount( group );
  6.             for hitbox = 0, count do
  7.                 local bone = v:GetHitBoxBone( hitbox, group );
  8.                 if(!bone) then continue; end
  9.                 local min, max = v:GetHitBoxBounds( hitbox, group );
  10.                 local bonepos, boneang = v:GetBonePosition( bone );
  11.                 cam.Start3D();
  12.                     render.DrawWireframeBox( bonepos, boneang, min, max, Color(255, 0, 0), true );
  13.                 cam.End3D();
  14.             end
  15.         end
  16.     end
  17. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement