Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CharacterCamera3rdPersonFloat.c
Go to the documentation of this file.
1 // *************************************************************************************
2 // ! CharacterCamera3rdPersonFloat - 3rd person camera when floating
3 // *************************************************************************************
4 class CharacterCamera3rdPersonFloat extends CharacterCamera3rdPersonBase
5 {
6  //-----------------------------------------------------------------------------
7  void CharacterCamera3rdPersonFloat(CameraHandlerComponent pCameraHandler)
8  {
9  m_bIgnoreCharacterPitch = true;
10 
11  m_fDistance = 1.2;
12  m_CameraOffsetMS = "0.0 1.2 0.0";
13  m_CameraOffsetLS = "0.0 0.3 0.0";
14  m_fShoulderWidth = 0.4;
15  m_fLeanDistance = 0.3;
16 
17  //m_fDistance = 1.6;
18  //m_CameraOffsetMS = "0.0 0.1 -0.3";
19  //m_iBoneIndex = m_OwnerCharacter.GetAnimation().GetBoneIndex("Head");
20 
21  // TODO move the camera properly.
22  }
23 
24  //-----------------------------------------------------------------------------
25  override void OnUpdate(float pDt, out ScriptedCameraItemResult pOutResult)
26  {
27  pOutResult.m_fFOV = m_fFOV;
28 
29  super.OnUpdate(pDt, pOutResult);
30  }
31 };
m_fDistance
float m_fDistance
Definition: SCR_AIGroupTargetCluster.c:38
OnUpdate
override void OnUpdate(BaseWorld world, float timeslice)
Definition: game.c:910
CharacterCamera3rdPersonBase
Definition: CharacterCamera3rdPersonCrouch.c:4