engine: client: implement cvar showpause for GoldSrc compatibility
This commit is contained in:
parent
dd03723144
commit
d7d96c02a2
3 changed files with 5 additions and 1 deletions
|
@ -1019,6 +1019,7 @@ void CL_DrawHUD( int state )
|
||||||
CL_DrawCrosshair ();
|
CL_DrawCrosshair ();
|
||||||
CL_DrawCenterPrint ();
|
CL_DrawCenterPrint ();
|
||||||
clgame.dllFuncs.pfnRedraw( cl.time, cl.intermission );
|
clgame.dllFuncs.pfnRedraw( cl.time, cl.intermission );
|
||||||
|
if( showpause.value )
|
||||||
CL_DrawLoadingOrPaused( cls.pauseIcon );
|
CL_DrawLoadingOrPaused( cls.pauseIcon );
|
||||||
break;
|
break;
|
||||||
case CL_LOADING:
|
case CL_LOADING:
|
||||||
|
|
|
@ -30,6 +30,7 @@ GNU General Public License for more details.
|
||||||
#define CL_CONNECTION_RETRIES 10
|
#define CL_CONNECTION_RETRIES 10
|
||||||
#define CL_TEST_RETRIES 5
|
#define CL_TEST_RETRIES 5
|
||||||
|
|
||||||
|
CVAR_DEFINE_AUTO( showpause, "1", 0, "show pause logo when paused" );
|
||||||
CVAR_DEFINE_AUTO( mp_decals, "300", FCVAR_ARCHIVE, "decals limit in multiplayer" );
|
CVAR_DEFINE_AUTO( mp_decals, "300", FCVAR_ARCHIVE, "decals limit in multiplayer" );
|
||||||
static CVAR_DEFINE_AUTO( dev_overview, "0", 0, "draw level in overview-mode" );
|
static CVAR_DEFINE_AUTO( dev_overview, "0", 0, "draw level in overview-mode" );
|
||||||
static CVAR_DEFINE_AUTO( cl_resend, "6.0", 0, "time to resend connect" );
|
static CVAR_DEFINE_AUTO( cl_resend, "6.0", 0, "time to resend connect" );
|
||||||
|
@ -3046,6 +3047,7 @@ static void CL_InitLocal( void )
|
||||||
cl.resourcesneeded.pNext = cl.resourcesneeded.pPrev = &cl.resourcesneeded;
|
cl.resourcesneeded.pNext = cl.resourcesneeded.pPrev = &cl.resourcesneeded;
|
||||||
cl.resourcesonhand.pNext = cl.resourcesonhand.pPrev = &cl.resourcesonhand;
|
cl.resourcesonhand.pNext = cl.resourcesonhand.pPrev = &cl.resourcesonhand;
|
||||||
|
|
||||||
|
Cvar_RegisterVariable( &showpause );
|
||||||
Cvar_RegisterVariable( &mp_decals );
|
Cvar_RegisterVariable( &mp_decals );
|
||||||
Cvar_RegisterVariable( &dev_overview );
|
Cvar_RegisterVariable( &dev_overview );
|
||||||
Cvar_RegisterVariable( &cl_resend );
|
Cvar_RegisterVariable( &cl_resend );
|
||||||
|
|
|
@ -660,6 +660,7 @@ extern gameui_static_t gameui;
|
||||||
//
|
//
|
||||||
// cvars
|
// cvars
|
||||||
//
|
//
|
||||||
|
extern convar_t showpause;
|
||||||
extern convar_t mp_decals;
|
extern convar_t mp_decals;
|
||||||
extern convar_t cl_logomaxdim;
|
extern convar_t cl_logomaxdim;
|
||||||
extern convar_t cl_allow_download;
|
extern convar_t cl_allow_download;
|
||||||
|
|
Loading…
Add table
Reference in a new issue