|
|
@ -99,7 +99,6 @@ float g_hud_text_color[3]; |
|
|
|
extern client_sprite_t *GetSpriteList( client_sprite_t *pList, const char *psz, int iRes, int iCount ); |
|
|
|
extern client_sprite_t *GetSpriteList( client_sprite_t *pList, const char *psz, int iRes, int iCount ); |
|
|
|
|
|
|
|
|
|
|
|
extern cvar_t *sensitivity; |
|
|
|
extern cvar_t *sensitivity; |
|
|
|
qboolean bIsXash; |
|
|
|
|
|
|
|
cvar_t *cl_lw = NULL; |
|
|
|
cvar_t *cl_lw = NULL; |
|
|
|
cvar_t *cl_viewbob = NULL; |
|
|
|
cvar_t *cl_viewbob = NULL; |
|
|
|
cvar_t *cl_rollspeed; |
|
|
|
cvar_t *cl_rollspeed; |
|
|
@ -387,18 +386,9 @@ void CHud::Init( void ) |
|
|
|
m_pCvarStealMouse = CVAR_CREATE( "hud_capturemouse", "1", FCVAR_ARCHIVE ); |
|
|
|
m_pCvarStealMouse = CVAR_CREATE( "hud_capturemouse", "1", FCVAR_ARCHIVE ); |
|
|
|
m_pCvarDraw = CVAR_CREATE( "hud_draw", "1", FCVAR_ARCHIVE ); |
|
|
|
m_pCvarDraw = CVAR_CREATE( "hud_draw", "1", FCVAR_ARCHIVE ); |
|
|
|
cl_lw = gEngfuncs.pfnGetCvarPointer( "cl_lw" ); |
|
|
|
cl_lw = gEngfuncs.pfnGetCvarPointer( "cl_lw" ); |
|
|
|
cl_viewbob = CVAR_CREATE( "cl_bobtilt", "0", FCVAR_ARCHIVE ); |
|
|
|
cl_viewbob = CVAR_CREATE( "cl_viewbob", "0", FCVAR_ARCHIVE ); |
|
|
|
#if GOLDSOURCE_SUPPORT |
|
|
|
|
|
|
|
if( gEngfuncs.pfnGetCvarPointer( "build" )) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
bIsXash = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
cl_rollangle = gEngfuncs.pfnRegisterVariable( "cl_rollangle", "0", FCVAR_CLIENTDLL | FCVAR_ARCHIVE ); |
|
|
|
cl_rollangle = gEngfuncs.pfnRegisterVariable( "cl_rollangle", "0", FCVAR_CLIENTDLL | FCVAR_ARCHIVE ); |
|
|
|
cl_rollspeed = gEngfuncs.pfnRegisterVariable( "cl_rollspeed", "200", FCVAR_CLIENTDLL | FCVAR_ARCHIVE ); |
|
|
|
cl_rollspeed = gEngfuncs.pfnRegisterVariable( "cl_rollspeed", "200", FCVAR_CLIENTDLL | FCVAR_ARCHIVE ); |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
m_pSpriteList = NULL; |
|
|
|
m_pSpriteList = NULL; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef MOBILE_HACKS |
|
|
|
#ifdef MOBILE_HACKS |
|
|
|