示例#1
0
void CSettingsSA::UpdateFieldOfViewFromSettings(void)
{
    float fFieldOfView;
    g_pCore->GetCVars()->Get("fov", fFieldOfView);
    fFieldOfView = Clamp(70.f, fFieldOfView, 100.f);
    SetFieldOfViewPlayer(fFieldOfView, false);
    SetFieldOfViewVehicle(fFieldOfView, false);
    SetFieldOfViewVehicleMax(100, false);
}
示例#2
0
void CSettingsSA::SetFieldOfView ( float fAngle )
{
    SetFieldOfViewPlayer ( fAngle );
    SetFieldOfViewVehicle ( fAngle );
}