Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
CharacterCamera3rdPersonUnconscious.c
Go to the documentation of this file.
1// *************************************************************************************
2// ! CharacterCamera3rdPersonUnconscious - 3rd person camera in unconscious state
3// *************************************************************************************
4class CharacterCamera3rdPersonUnconscious extends CharacterCamera3rdPersonBase
5{
6 //-----------------------------------------------------------------------------
7 void CharacterCamera3rdPersonUnconscious(CameraHandlerComponent pCameraHandler)
8 {
9 m_iBoneIndex = m_OwnerCharacter.GetAnimation().GetBoneIndex("Neck1");
10 m_CameraOffsetLS = "0.0 0.0 0.0";
11 m_CameraOffsetMS = "0.0 0.0 0.0";
12 m_fDistance = 1.6;
13 }
14
15 //-----------------------------------------------------------------------------
16 override void OnUpdate(float pDt, out ScriptedCameraItemResult pOutResult)
17 {
18 super.OnUpdate(pDt, pOutResult);
19
20 // follow character origin when ragdolling
21 if(m_OwnerCharacter.GetAnimationComponent().IsRagdollActive())
22 {
23 pOutResult.m_CameraTM[3] = Vector(0, 0, 0);
24 }
25 }
26};
float m_fDistance
override void OnUpdate()
proto native vector Vector(float x, float y, float z)