Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local set = CreateClientConVar("bio", 0, FCVAR_SERVER_CAN_EXECUTE)
- local glowMaterial = Material("sprites/glow04_noz");
- local glowColor = Color(0, 162, 255, 255);
- hook.Add( "HUDPaint", "Tracking", function()
- if(Schema:PlayerIsCombine(LocalPlayer())) then
- for k, v in pairs(player.GetAll()) do
- local pos = v:GetPos()
- if(v:Alive() and v:HasInitialized() and v != LocalPlayer() and Schema:PlayerIsCombine(v)) then
- if(set:GetInt() == 1) then
- local distance = math.floor(tostring(LocalPlayer():GetPos():Distance(v:GetPos()) / 16 * .3048))
- 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))
- if(distance == 1) then
- draw.SimpleTextOutlined("<:: Distance | "..distance.." meter", "DebugFixed", v:EyePos():ToScreen().x + 132, v:EyePos():ToScreen().y + 20, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
- else
- draw.SimpleTextOutlined("<:: Distance | "..distance.." meters", "DebugFixed", v:EyePos():ToScreen().x + 132, v:EyePos():ToScreen().y + 20, Color(255, 255, 255), 1, 1, 1, Color(0, 0, 0))
- end;
- 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))
- end;
- cam.Start3D( EyePos(), EyeAngles() );
- render.SetMaterial(glowMaterial);
- render.DrawSprite(Vector(pos.x, pos.y, pos.z + 75), LocalPlayer():GetPos():Distance(v:GetPos()) / 20, LocalPlayer():GetPos():Distance(v:GetPos()) / 20, glowColor);
- cam.End3D();
- end;
- end;
- else
- chat.AddText("You are not the Combine!")
- end;
- end);
Advertisement
Add Comment
Please, Sign In to add comment