Browse Source

Force set cl_lw cvar value to 1. Must prevent fake prediction bugs.

dmc
Night Owl 7 years ago
parent
commit
1c52adfd03
  1. 3
      cl_dll/hud.cpp

3
cl_dll/hud.cpp

@ -135,6 +135,9 @@ void CHud::Init( void )
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" );
if( cl_lw && cl_lw->value == 0 )
gEngfuncs.Cvar_SetValue( "cl_lw", 1.0 );
/************************ CLIENT CVAR DEFINITIONS ************************/ /************************ CLIENT CVAR DEFINITIONS ************************/
cl_autowepswitch = gEngfuncs.pfnRegisterVariable( "cl_autowepswitch", "2", FCVAR_USERINFO | FCVAR_ARCHIVE ); cl_autowepswitch = gEngfuncs.pfnRegisterVariable( "cl_autowepswitch", "2", FCVAR_USERINFO | FCVAR_ARCHIVE );
cl_rollangle = gEngfuncs.pfnRegisterVariable( "cl_rollangle", "0.65", FCVAR_CLIENTDLL | FCVAR_ARCHIVE ); cl_rollangle = gEngfuncs.pfnRegisterVariable( "cl_rollangle", "0.65", FCVAR_CLIENTDLL | FCVAR_ARCHIVE );

Loading…
Cancel
Save