Head dot
Last updated
Last updated
local function on_paint()
local players = entity.get_players(true)
for i=1, #players do
local player = players[i]
if (not player:is_alive()) then goto continue end
local color = player:is_visible() and { r=0, g=255, b=0, a=255 } or { r=155, g=155, b=155, a=255 }
local head_pos = vector(player:bone_position(6))
if (head_pos:is_zero()) then goto continue end
local screen_pos = vector(utility.world_to_screen(head_pos:unpack()))
if (screen_pos:is_zero()) then goto continue end
render.circle(screen_pos.x, screen_pos.y, 4, color.r, color.g, color.b, color.a, 360) -- all da segmentz
::continue::
end
end
cheat.set_callback("paint", on_paint)