default viewmodel_fov 68
This commit is contained in:
parent
9917083884
commit
6a07992e34
@ -112,7 +112,7 @@ static ConVar v_centerspeed( "v_centerspeed","500" );
|
|||||||
// and motions look the most natural.
|
// and motions look the most natural.
|
||||||
ConVar v_viewmodel_fov( "viewmodel_fov", "54", FCVAR_ARCHIVE, "Sets the field-of-view for the viewmodel.", true, 0.1, true, 179.9 );
|
ConVar v_viewmodel_fov( "viewmodel_fov", "54", FCVAR_ARCHIVE, "Sets the field-of-view for the viewmodel.", true, 0.1, true, 179.9 );
|
||||||
#else
|
#else
|
||||||
ConVar v_viewmodel_fov( "viewmodel_fov", "54", FCVAR_CHEAT, "Sets the field-of-view for the viewmodel.", true, 0.1, true, 179.9 );
|
ConVar v_viewmodel_fov( "viewmodel_fov", "68", FCVAR_ARCHIVE, "Sets the field-of-view for the viewmodel.", true, 0.1, true, 179.9 );
|
||||||
#endif
|
#endif
|
||||||
ConVar mat_viewportscale( "mat_viewportscale", "1.0", FCVAR_ARCHIVE, "Scale down the main viewport (to reduce GPU impact on CPU profiling)", true, (1.0f / 640.0f), true, 1.0f );
|
ConVar mat_viewportscale( "mat_viewportscale", "1.0", FCVAR_ARCHIVE, "Scale down the main viewport (to reduce GPU impact on CPU profiling)", true, (1.0f / 640.0f), true, 1.0f );
|
||||||
ConVar mat_viewportupscale( "mat_viewportupscale", "1", FCVAR_ARCHIVE, "Scale the viewport back up" );
|
ConVar mat_viewportupscale( "mat_viewportupscale", "1", FCVAR_ARCHIVE, "Scale the viewport back up" );
|
||||||
@ -1125,11 +1125,13 @@ void CViewRender::Render( vrect_t *rect )
|
|||||||
|
|
||||||
static ConVarRef sv_restrict_aspect_ratio_fov( "sv_restrict_aspect_ratio_fov" );
|
static ConVarRef sv_restrict_aspect_ratio_fov( "sv_restrict_aspect_ratio_fov" );
|
||||||
float aspectRatio = engine->GetScreenAspectRatio() * 0.75f; // / (4/3)
|
float aspectRatio = engine->GetScreenAspectRatio() * 0.75f; // / (4/3)
|
||||||
|
|
||||||
|
|
||||||
float limitedAspectRatio = aspectRatio;
|
float limitedAspectRatio = aspectRatio;
|
||||||
if ( ( sv_restrict_aspect_ratio_fov.GetInt() > 0 && engine->IsWindowedMode() && gpGlobals->maxClients > 1 ) ||
|
if ( ( sv_restrict_aspect_ratio_fov.GetInt() > 0 && engine->IsWindowedMode() && gpGlobals->maxClients > 1 ) ||
|
||||||
sv_restrict_aspect_ratio_fov.GetInt() == 2 )
|
sv_restrict_aspect_ratio_fov.GetInt() == 2 )
|
||||||
{
|
{
|
||||||
limitedAspectRatio = MIN( aspectRatio, 1.85f * 0.75f ); // cap out the FOV advantage at a 1.85:1 ratio (about the widest any legit user should be)
|
limitedAspectRatio = MIN( aspectRatio, 1.85f * 1.75f ); // cap out the FOV advantage at a 1.85:1 ratio (about the widest any legit user should be)
|
||||||
}
|
}
|
||||||
|
|
||||||
view.fov = ScaleFOVByWidthRatio( view.fov, limitedAspectRatio );
|
view.fov = ScaleFOVByWidthRatio( view.fov, limitedAspectRatio );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user