Browse Source

Fov cvar fix (#98)

* game: set fov_desired cvar max value to 110
* scripts: waifulib: change '4.9,9' to '4.9,21' in configure example
pull/110/merge
SanyaSho 2 years ago committed by GitHub
parent
commit
48aa042ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      game/client/hl1/hl1_clientmode.cpp
  2. 2
      game/client/hl2/clientmode_hlnormal.cpp
  3. 3
      game/client/portal/clientmode_portal.cpp
  4. 2
      game/shared/gamerules.cpp
  5. 2
      scripts/waifulib/xcompile.py

2
game/client/hl1/hl1_clientmode.cpp

@ -13,7 +13,7 @@
// default FOV for HL1 // default FOV for HL1
ConVar default_fov( "default_fov", "90", FCVAR_CHEAT ); ConVar default_fov( "default_fov", "90", FCVAR_CHEAT );
ConVar fov_desired( "fov_desired", "90", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 90.0 ); ConVar fov_desired( "fov_desired", "90", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 110.0 );
// The current client mode. Always ClientModeNormal in HL. // The current client mode. Always ClientModeNormal in HL.
IClientMode *g_pClientMode = NULL; IClientMode *g_pClientMode = NULL;

2
game/client/hl2/clientmode_hlnormal.cpp

@ -19,7 +19,7 @@
extern bool g_bRollingCredits; extern bool g_bRollingCredits;
ConVar fov_desired( "fov_desired", "75", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 90.0 ); ConVar fov_desired( "fov_desired", "75", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 110.0 );
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Globals // Globals

3
game/client/portal/clientmode_portal.cpp

@ -20,8 +20,7 @@
// default FOV for HL2 // default FOV for HL2
ConVar default_fov( "default_fov", "75", FCVAR_CHEAT ); ConVar default_fov( "default_fov", "75", FCVAR_CHEAT );
ConVar fov_desired( "fov_desired", "75", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 90.0 ); ConVar fov_desired( "fov_desired", "75", FCVAR_ARCHIVE | FCVAR_USERINFO, "Sets the base field-of-view.", true, 75.0, true, 110.0 );
// The current client mode. Always ClientModeNormal in HL. // The current client mode. Always ClientModeNormal in HL.
IClientMode *g_pClientMode = NULL; IClientMode *g_pClientMode = NULL;

2
game/shared/gamerules.cpp

@ -859,7 +859,7 @@ void CGameRules::ClientSettingsChanged( CBasePlayer *pPlayer )
if ( pszFov ) if ( pszFov )
{ {
int iFov = atoi(pszFov); int iFov = atoi(pszFov);
iFov = clamp( iFov, 75, 90 ); iFov = clamp( iFov, 75, 110 );
pPlayer->SetDefaultFOV( iFov ); pPlayer->SetDefaultFOV( iFov );
} }

2
scripts/waifulib/xcompile.py

@ -318,7 +318,7 @@ class Android:
def options(opt): def options(opt):
android = opt.add_option_group('Android options') android = opt.add_option_group('Android options')
android.add_option('--android', action='store', dest='ANDROID_OPTS', default=None, android.add_option('--android', action='store', dest='ANDROID_OPTS', default=None,
help='enable building for android, format: --android=<arch>,<toolchain>,<api>, example: --android=armeabi-v7a-hard,4.9,9') help='enable building for android, format: --android=<arch>,<toolchain>,<api>, example: --android=armeabi-v7a-hard,4.9,21')
def configure(conf): def configure(conf):
if conf.options.ANDROID_OPTS: if conf.options.ANDROID_OPTS:

Loading…
Cancel
Save