Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Copyright Novacock
- --]]
- surface.CreateFont( "CombineRecognitionFont",
- {
- font = "Trebuchet24",
- size = ScreenScale(8),
- weight = 1000,
- antialias = true,
- shadow = false
- })
- function CanSee(ent)
- local data = {}
- data.start = LocalPlayer():GetShootPos()
- data.endpos = data.start + LocalPlayer():GetAimVector()*340
- local trace = util.TraceLine(data)
- local ent = trace.ent
- if ( ent:IsValid() ) then
- local dist = ent:GetPos():Distance(LocalPlayer():GetPos())*0.0245;
- local pos = ent:GetPos():ToScreen()
- --draw.DrawText("this is an ent but name returns nil lmao ur a faggot XD", "CB1", pos.x, pos.y, Color(100, 104, 113, 255), 1 )
- end
- end
- function DrawCombineRecognition()
- for k,v in pairs(player.GetAll()) do
- if CanSee(v) then
- if (v:GetFaction() == "Citizen") then
- local pos = Vector(0,0,0)
- cam.Start3D2D(v:GetPos()+Vector(0,0,80), ang, 0.1);
- draw.SimpleTextOutlined(v:Name(), "CombineRecognitionFont", pos.x, pos.y-20, Color(255,255,255, alpha), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 2,Color(0,0,0, alpha) )
- cam.End3D2D();
- halo.Add({v}, Color( 255, 155, 0 ), 5, 5, 2)
- end
- end
- end
- end
- hook.Add( "HUDPaint", "DrawCombineRecognition", DrawCombineRecognition );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement