Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CameraManager.c
Go to the documentation of this file.
4
5class SCR_CameraManager : CameraManager
6{
7
11 override protected void OnInit()
12 {
13 SetupFOV();
14 GetGame().OnUserSettingsChangedInvoker().Insert(SetupFOV);
15 }
16
17 protected void SetupFOV()
18 {
19 BaseContainer fovSettings = GetGame().GetGameUserSettings().GetModule("SCR_FieldOfViewSettings");
20 if (!fovSettings)
21 return;
22
23 float fov;
24 if (fovSettings.Get("m_fFirstPersonFOV", fov))
26
27 if (fovSettings.Get("m_fThirdPersonFOV", fov))
29
30 if (fovSettings.Get("m_fVehicleFOV", fov))
31 SetVehicleFOV(fov);
32 }
33};
ArmaReforgerScripted GetGame()
Definition game.c:1398
proto external void SetThirdPersonFOV(float fieldOfView)
proto external void SetVehicleFOV(float fieldOfView)
proto external void SetFirstPersonFOV(float fieldOfView)