Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function drawPolygon(tbl)
- local len = #tbl
- for i=1, len do
- local pa = tbl[i]
- local pb = tbl[i%len + 1]
- pa.z = -620
- pb.z = -620
- pa = pa:ToScreen()
- pb = pb:ToScreen()
- if pa.visible and pb.visible then
- surface.DrawLine(pa.x, pa.y, pb.x, pb.y)
- end
- end
- end
- ---------------------------------------------
- --feed it cords
- ---------------------------------------------
- local inner = {
- Vector( 1735, -11477),
- Vector( 893, -10617),
- Vector( 78, -10617),
- Vector(- 580, -11424),
- Vector(- 580, -12107),
- Vector( 220, -12841),
- Vector( 966, -12841),
- Vector( 1735, -12119),
- }
- ------------------------------------
- surface.SetDrawColor(0, 255, 0, 255)
- drawPolygon(inner)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement