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); }
void CSettingsSA::SetFieldOfView ( float fAngle ) { SetFieldOfViewPlayer ( fAngle ); SetFieldOfViewVehicle ( fAngle ); }