Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CharacterCamera3rdPersonErc.c
Go to the documentation of this file.
1 // *************************************************************************************
2 // ! CharacterCamera3rdPersonErc - 3rd person camera in erected stance
3 // *************************************************************************************
5 {
6  //-----------------------------------------------------------------------------
7  void CharacterCamera3rdPersonErc(CameraHandlerComponent pCameraHandler)
8  {
9  m_fDistance = 1.2;
10  m_CameraOffsetMS = "0.0 1.2 0.0";
11  m_CameraOffsetLS = "0.0 0.3 0.0";
12  m_fShoulderWidth = 0.4;
13  m_fLeanDistance = 0.3;
14  }
15 
16  //-----------------------------------------------------------------------------
17  override void OnUpdate(float pDt, out ScriptedCameraItemResult pOutResult)
18  {
19  pOutResult.m_fFOV = m_fFOV;
20 
21  bool sprinting = m_ControllerComponent.IsSprinting();
22  if( sprinting )
23  pOutResult.m_fFOV = m_fFOV + 5 * m_fBobScale;
24 
25  super.OnUpdate(pDt, pOutResult);
26 
27  // Apply shake
28  if (m_CharacterCameraHandler)
29  m_CharacterCameraHandler.AddShakeToToTransform(pOutResult.m_CameraTM, pOutResult.m_fFOV);
30  }
31 };
m_fDistance
float m_fDistance
Definition: SCR_AIGroupTargetCluster.c:38
CharacterCamera3rdPersonBase
Definition: CharacterCamera3rdPersonCrouch.c:4
CharacterCamera3rdPersonErc
Definition: CharacterCamera3rdPersonClimb.c:4
m_ControllerComponent
private SCR_CharacterControllerComponent m_ControllerComponent
Definition: CharacterCameraHandlerComponent.c:985