set menu_picmip_bypass 0 "bypass texture quality enforcement based on system resources, not recommended and may cause crashes!"
set menu_showboxes 0 "show item bounding boxes (debug)"
set menu_cvarlist_onlymodified 0 "show only modified cvars in the cvar list"
+set menu_force_on_disconnection 1 "force to show the menu this number of seconds after you get disconnected (0 to disable)"
r_textbrightness 0.2
r_textcontrast 0.8
}
}
+float autocvar_menu_force_on_disconnection;
void m_draw(float width, float height)
{
- if (clientstate() == CS_DISCONNECTED) m_toggle(true);
+ if (autocvar_menu_force_on_disconnection > 0)
+ {
+ static float connected_time;
+ if (clientstate() == CS_DISCONNECTED)
+ {
+ if (connected_time && time - connected_time > autocvar_menu_force_on_disconnection)
+ {
+ m_toggle(true);
+ connected_time = 0;
+ }
+ }
+ else
+ connected_time = time;
+ }
+
m_gamestatus();
execute_next_frame();