PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
DayZPlayerCamera1stPerson.c File Reference

Data Structures

class  DayZPlayerCameraBase
 this is main camera class More...
 

Functions

class DayZPlayerCamera1stPerson extends DayZPlayerCameraBase DayZPlayerCamera1stPersonUnconscious (DayZPlayer pPlayer, HumanInputController pInput)
 
void DayZPlayerCamera1stPerson (DayZPlayer pPlayer, HumanInputController pInput)
 
override void OnActivate (DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult)
 
override void OnUpdate (float pDt, out DayZPlayerCameraResult pOutResult)
 
override vector GetBaseAngles ()
 
override vector GetAdditiveAngles ()
 
override string GetCameraName ()
 

Variables

static const float CONST_UD_MIN = -85.0
 down limit
 
static const float CONST_UD_MAX = 85.0
 up limit
 
static const float CONST_LR_MIN = -160.0
 down limit
 
static const float CONST_LR_MAX = 160.0
 up limit
 
protected int m_iBoneIndex
 main bone
 
protected vector m_OffsetLS
 position offset
 
protected float m_fUpDownAngle
 up down angle in rad
 
protected float m_fUpDownAngleAdd
 up down angle in rad
 
protected float m_fLeftRightAngle
 left right angle in rad (in freelook only)
 
protected float m_fLeftRightAngleAdd
 left right angle in rad (in freelook only)
 

Function Documentation

◆ DayZPlayerCamera1stPerson()

◆ DayZPlayerCamera1stPersonUnconscious()

class DayZPlayerCamera1stPerson extends DayZPlayerCameraBase DayZPlayerCamera1stPersonUnconscious ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

◆ GetAdditiveAngles()

override vector GetAdditiveAngles ( )

◆ GetBaseAngles()

override vector GetBaseAngles ( )

◆ GetCameraName()

override string GetCameraName ( )

◆ OnActivate()

override void OnActivate ( DayZPlayerCamera  pPrevCamera,
DayZPlayerCameraResult  pPrevCameraResult 
)

◆ OnUpdate()

override void OnUpdate ( float  pDt,
out DayZPlayerCameraResult  pOutResult 
)

update angles from input

Variable Documentation

◆ CONST_LR_MAX

const float CONST_LR_MAX = 160.0
static

◆ CONST_LR_MIN

const float CONST_LR_MIN = -160.0
static

◆ CONST_UD_MAX

const float CONST_UD_MAX = 85.0
static

◆ CONST_UD_MIN

const float CONST_UD_MIN = -85.0
static

◆ m_fLeftRightAngle

protected float m_fLeftRightAngle

left right angle in rad (in freelook only)

Referenced by DayZPlayerCameraBase::OnActivate(), OnActivate(), DayZPlayerCameraBase::OnUpdate(), and OnUpdate().

◆ m_fLeftRightAngleAdd

protected float m_fLeftRightAngleAdd

left right angle in rad (in freelook only)

Referenced by DayZPlayerCameraBase::OnActivate(), OnActivate(), DayZPlayerCameraBase::OnUpdate(), and OnUpdate().

◆ m_fUpDownAngle

protected float m_fUpDownAngle

◆ m_fUpDownAngleAdd

protected float m_fUpDownAngleAdd

◆ m_iBoneIndex

◆ m_OffsetLS

protected vector m_OffsetLS