mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 05:41:20 +00:00
CLIENT: Allow disabling of crosshair
This commit is contained in:
parent
4b78cfeb05
commit
7e3113ec63
1 changed files with 3 additions and 2 deletions
|
@ -1138,15 +1138,16 @@ vector crosshair_color;
|
||||||
|
|
||||||
void() Draw_Crosshair =
|
void() Draw_Crosshair =
|
||||||
{
|
{
|
||||||
//void(float width, vector pos1, vector pos2, vector rgb, float alpha, optional float drawflag) drawline
|
|
||||||
if (cvar("cl_crosshair_debug")) {
|
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], [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/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, [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);
|
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)
|
if (!crosshair_opacity)
|
||||||
crosshair_opacity = 1;
|
crosshair_opacity = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue