Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
dayzplayercamera1stperson.c File Reference

Go to the source code of this file.

Data Structures

class  DayZPlayerCameraBase
 this is main camera class More...

Functions

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

Variables

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

Function Documentation

◆ DayZPlayerCamera1stPerson()

void DayZPlayerCamera1stPerson ( DayZPlayer pPlayer,
HumanInputController pInput )

Definition at line 112 of file dayzplayercamera1stperson.c.

References m_iBoneIndex.

◆ DayZPlayerCamera1stPersonUnconscious()

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

◆ GetAdditiveAngles()

override vector GetAdditiveAngles ( )

Definition at line 175 of file dayzplayercamera1stperson.c.

◆ GetBaseAngles()

override vector GetBaseAngles ( )

Definition at line 166 of file dayzplayercamera1stperson.c.

◆ GetCameraName()

override string GetCameraName ( )

Definition at line 184 of file dayzplayercamera1stperson.c.

◆ OnActivate()

override void OnActivate ( DayZPlayerCamera pPrevCamera,
DayZPlayerCameraResult pPrevCameraResult )

Definition at line 125 of file dayzplayercamera1stperson.c.

◆ OnUpdate()

override void OnUpdate ( float pDt,
out DayZPlayerCameraResult pOutResult )

update angles from input

Definition at line 142 of file dayzplayercamera1stperson.c.

Variable Documentation

◆ CONST_LR_MAX

const float CONST_LR_MAX = 160.0
static

up limit

Definition at line 109 of file dayzplayercamera1stperson.c.

Referenced by DayZPlayerCamera3rdPersonErc(), and OnUpdate().

◆ CONST_LR_MIN

const float CONST_LR_MIN = -160.0
static

down limit

Definition at line 108 of file dayzplayercamera1stperson.c.

Referenced by DayZPlayerCamera3rdPersonErc(), and OnUpdate().

◆ CONST_UD_MAX

const float CONST_UD_MAX = 85.0
static

up limit

Definition at line 106 of file dayzplayercamera1stperson.c.

Referenced by DayZPlayerCamera3rdPersonErc(), and OnUpdate().

◆ CONST_UD_MIN

const float CONST_UD_MIN = -85.0
static

down limit

Definition at line 105 of file dayzplayercamera1stperson.c.

Referenced by DayZPlayerCamera3rdPersonErc(), and OnUpdate().

◆ m_fLeftRightAngle

float m_fLeftRightAngle
protected

left right angle in rad (in freelook only)

Definition at line 194 of file dayzplayercamera1stperson.c.

Referenced by GetBaseAngles(), OnActivate(), and OnUpdate().

◆ m_fLeftRightAngleAdd

float m_fLeftRightAngleAdd
protected

left right angle in rad (in freelook only)

Definition at line 195 of file dayzplayercamera1stperson.c.

Referenced by GetAdditiveAngles(), OnActivate(), and OnUpdate().

◆ m_fUpDownAngle

float m_fUpDownAngle
protected

up down angle in rad

Definition at line 192 of file dayzplayercamera1stperson.c.

Referenced by GetBaseAngles(), OnActivate(), and OnUpdate().

◆ m_fUpDownAngleAdd

float m_fUpDownAngleAdd
protected

up down angle in rad

Definition at line 193 of file dayzplayercamera1stperson.c.

Referenced by GetAdditiveAngles(), OnActivate(), and OnUpdate().

◆ m_iBoneIndex

◆ m_OffsetLS

vector m_OffsetLS
protected

position offset

Definition at line 190 of file dayzplayercamera1stperson.c.