Tidas

Untitled

Jun 26th, 2013
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. local set = CreateClientConVar("bio", 0, FCVAR_SERVER_CAN_EXECUTE)
  2. local glowMaterial = Material("sprites/glow04_noz");
  3. local glowColor = Color(0, 162, 255, 255);
  4.  
  5. hook.Add( "HUDPaint", "Tracking", function()
  6. if(set:GetInt() == 1) then
  7. for k, v in pairs(player.GetAll()) do
  8. local pos = v:GetPos()
  9. if(v:Alive() and v:HasInitialized()) then
  10. cam.Start3D( EyePos(), EyeAngles() );
  11. render.SetMaterial(glowMaterial);
  12. render.DrawSprite(Vector(pos.x, pos.y, pos.z + 75), LocalPlayer():GetPos():Distance(v:GetPos()) / 20, LocalPlayer():GetPos():Distance(v:GetPos()) / 20, glowColor);
  13. cam.End3D();
  14.  
  15. draw.SimpleTextOutlined(v:Name(), "DebugFixed", v:EyePos():ToScreen().x, v:EyePos():ToScreen().y - 20, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
  16. if(v:GetVelocity():Length() != 0) then
  17. draw.SimpleTextOutlined("<:: Velocity | "..tostring(v:GetVelocity():Length()), "DebugFixed", v:EyePos():ToScreen().x + 155, v:EyePos():ToScreen().y + 20, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
  18. else
  19. draw.SimpleTextOutlined("<:: Velocity | "..tostring(v:GetVelocity():Length()), "DebugFixed", v:EyePos():ToScreen().x + 105, v:EyePos():ToScreen().y + 20, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
  20. end;
  21. draw.SimpleTextOutlined("<:: Distance | "..tostring(LocalPlayer():GetPos():Distance(v:GetPos())), "DebugFixed", v:EyePos():ToScreen().x + 105, v:EyePos():ToScreen().y + 40, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
  22. draw.SimpleTextOutlined("<:: Health | "..v:Health(), "DebugFixed", v:EyePos():ToScreen().x + 105, v:EyePos():ToScreen().y, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
  23. end;
  24. end;
  25. end;
  26. end);
Advertisement
Add Comment
Please, Sign In to add comment