CLIENT: Allow disabling of crosshair

This commit is contained in:
cypress 2023-10-15 16:06:01 -04:00
parent 4b78cfeb05
commit 7e3113ec63

View file

@ -1138,15 +1138,16 @@ vector crosshair_color;
void() Draw_Crosshair =
{
//void(float width, vector pos1, vector pos2, vector rgb, float alpha, optional float drawflag) drawline
if (cvar("cl_crosshair_debug")) {
drawline(2, [g_width/2, g_height/2, 0], [0, g_height, 0], [1, 0, 0], 0.5);
drawline(2, [g_width/2, g_height/2, 0], [g_width, 0, 0], [0, 1, 1], 0.5);
drawline(2, [g_width, g_height, 0], [g_width/2, g_height/2, 0], [0, 1, 0], 0.5);
drawline(2, [0, 0, 0], [g_width/2, g_height/2, 0], [0, 0, 1], 0.5);
//return;
}
if (!cvar("crosshair"))
return;
if (!crosshair_opacity)
crosshair_opacity = 1;