Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
CharacterCamera3rdPersonClimb.c
Go to the documentation of this file.
1 // *************************************************************************************
2 // ! CharacterCamera3rdPersonClimb
3 // *************************************************************************************
4 class CharacterCamera3rdPersonClimb extends CharacterCamera3rdPersonErc
5 {
6  void CharacterCamera3rdPersonClimb(CameraHandlerComponent pCameraHandler)
7  {
8  m_fDistance = 1.6;
9  m_CameraOffsetMS = "0.0 0.1 -0.3";
10  m_iBoneIndex = m_OwnerCharacter.GetAnimation().GetBoneIndex("Spine1");
11  }
12 
13  //-----------------------------------------------------------------------------
14  override void OnUpdate(float pDt, out ScriptedCameraItemResult pOutResult)
15  {
16  m_fYoffsetPrevFrame = 0;
17  super.OnUpdate(pDt, pOutResult);
18 
19  // Apply shake
20  if (m_CharacterCameraHandler)
21  m_CharacterCameraHandler.AddShakeToToTransform(pOutResult.m_CameraTM, pOutResult.m_fFOV);
22  }
23 };
m_fDistance
float m_fDistance
Definition: SCR_AIGroupTargetCluster.c:38
OnUpdate
override void OnUpdate(BaseWorld world, float timeslice)
Definition: game.c:910
m_OwnerCharacter
private SCR_ChimeraCharacter m_OwnerCharacter
Definition: CharacterCameraHandlerComponent.c:984
CharacterCamera3rdPersonErc
Definition: CharacterCamera3rdPersonClimb.c:4