Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
CharacterCamera3rdPersonUnconscious.c
Go to the documentation of this file.
1
// *************************************************************************************
2
// ! CharacterCamera3rdPersonUnconscious - 3rd person camera in unconscious state
3
// *************************************************************************************
4
class
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
};
m_fDistance
float m_fDistance
Definition
SCR_AIGroupTargetCluster.c:38
OnUpdate
override void OnUpdate()
Definition
SCR_MapMarkerSquadLeader.c:333
CharacterCamera3rdPersonBase
Definition
CharacterCamera3rdPersonCrouch.c:5
Vector
proto native vector Vector(float x, float y, float z)
scripts
Game
Character
Cameras
ThirdPerson
CharacterCamera3rdPersonUnconscious.c
Generated by
1.17.0