if(!hud_configure)
return false;
+ // allow console bind to work
+ string con_keys;
+ float keys;
+ con_keys = findkeysforcommand("toggleconsole");
+ keys = tokenize(con_keys);
+
+ float hit_con_bind, i;
+ for (i = 0; i < keys; ++i)
+ {
+ if(nPrimary == stof(argv(i)))
+ hit_con_bind = 1;
+ }
+
prevMouseClicked = mouseClicked;
if(nPrimary == K_MOUSE1)
{
}
}
else if(nPrimary == K_ESCAPE)
- cvar_set("_hud_configure", "0");
+ {
+ localcmd("menu_showhudexit\n");
+ }
+ else if(hit_con_bind)
+ return false;
+
return true; // Suppress ALL other input
}
HUD_ShowSpeed();
if (cvar("cl_showacceleration"))
HUD_ShowAcceleration();
+
+ if (hud_configure && spectatee_status) // try to join if we are in hud_configure mode, but still spectating (in order to get rid of motd and such)
+ localcmd("cmd selectteam auto; cmd join\n");
+
}