Do we need clear rapsheet?
function Hitmarker()
local MYEYES = LocalPlayer():GetEyeTrace().Entity
local me = LocalPlayer()
if MYEYES:IsPlayer() then
if me:Health() > 0 then
if me:KeyDown(IN_ATTACK) then
if me:GetActiveWeapon():Clip1() > 0 then
surface.SetDrawColor( 255 , 255 , 255 , 255 )
surface.DrawLine(ScrW() / 2 - 5 , ScrH() / 2 - 5 , ScrW() / 2 - 15 , ScrH() / 2 - 15)
surface.DrawLine(ScrW() / 2 + 5 , ScrH() / 2 + 5 , ScrW() / 2 + 15, ScrH() / 2 + 15)
surface.DrawLine(ScrW() / 2 + 5 , ScrH() / 2 - 5 , ScrW() / 2 + 15 , ScrH() / 2 - 15)
surface.DrawLine(ScrW() / 2 - 5 , ScrH() / 2 + 5 , ScrW() / 2 - 15 , ScrH() / 2 + 15)
end
end
end
end
end
hook.Add("HUDPaint","wtfisthisshittyhitmarker",Hitmarker)
Hitmarker