aboutsummaryrefslogtreecommitdiff
path: root/gamemode/hud/draw_targets.lua
blob: b5eadac6603bed58f11c2ef6cb7d66457f3583f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
function DrawTargets()
	local pl = LocalPlayer()
	
	if (pl:IsPigeon()) then return end
	
	local tr = pl:GetEyeTrace()
	
	if (IsValid(tr.Entity) and tr.Entity:IsPlayer()) then
		DrawText(tr.Entity:Nick(),"ChatFont",ScrW()/2,ScrH()/2,MAIN_YELLOWCOLOR,1)
	end
end