Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
dayzplayercamera3rdperson.c File Reference

Go to the source code of this file.

Data Structures

class  DayZPlayerCameraBase
 this is main camera class More...
 
class  DayZPlayerCamera3rdPersonErc
 
class  DayZPlayerCamera3rdPersonErc
 
class  DayZPlayerCamera3rdPersonErcRaised
 
class  DayZPlayerCamera3rdPersonCrouch
 
class  DayZPlayerCamera3rdPersonProneBase
 

Functions

class DayZPlayerCamera3rdPerson extends DayZPlayerCameraBase DayZPlayerCamera3rdPersonErc (DayZPlayer pPlayer, HumanInputController pInput)
 
void DayZPlayerCamera3rdPerson (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 ()
 
class DayZPlayerCamera3rdPersonJump extends DayZPlayerCamera3rdPersonErc DayZPlayerCamera3rdPersonClimb (DayZPlayer pPlayer, HumanInputController pInput)
 
void DayZPlayerCamera3rdPersonJump (DayZPlayer pPlayer, HumanInputController pInput)
 
class DayZPlayerCamera3rdPersonErcSpr extends DayZPlayerCamera3rdPersonErc DayZPlayerCamera3rdPersonErcRaised (DayZPlayer pPlayer, HumanInputController pInput)
 
void DayZPlayerCamera3rdPersonErcSpr (DayZPlayer pPlayer, HumanInputController pInput)
 
override bool IsCamera3rdRaised ()
 
void DayZPlayerCamera3rdPersonCrouch (DayZPlayer pPlayer, HumanInputController pInput)
 
float UpdateLRAngleLookAt (float pMin, float pMax, float pDt)
 
class DayZPlayerCamera3rdPersonProne extends DayZPlayerCamera3rdPersonProneBase DayZPlayerCamera3rdPersonProneRaised (DayZPlayer pPlayer, HumanInputController pInput)
 
void DayZPlayerCamera3rdPersonProne (DayZPlayer pPlayer, HumanInputController pInput)
 

Variables

protected int m_iBoneIndex = -1
 runtime config More...
 
protected vector m_CameraOffsetMS
 model space offset More...
 
protected vector m_CameraOffsetLS
 local space offset More...
 
protected float m_fDistance
 distance from start More...
 
protected float m_fShoulderWidth
 shoulder camera widths More...
 
protected bool m_bShoulderInLS
 true - shoulder is in local space More...
 
protected float m_fRoll
 camera roll (deprecated) More...
 
protected float m_fLeanDistance
 shift on leaning More...
 
protected float m_fUpDownAngle
 runtime values More...
 
protected float m_fUpDownAngleAdd
 up down angle in rad More...
 
protected float m_fLeftRightAngle
 left right angle in rad (in freelook only) More...
 
protected float m_fLeftRightAngleAdd
 left right angle in rad (in freelook only) More...
 
protected float m_fCameraLRShoulder
 shoulder offsets More...
 
protected float m_fCameraLRShoulderVel [1]
 
protected float m_fPredictCollisionRadius
 collision prediction More...
 
ref HumanMovementState m_MovementState = new HumanMovementState()
 movement state More...
 
float m_fDelay
 runtime config More...
 
float m_fDamping
 
float m_fDelayTimer
 runtime values More...
 
float m_fJumpStartY
 
float m_fJumpOffset
 
float m_jumpOffsetVelocity [1]
 
protected int m_iPelvisBone
 
protected float m_fTime
 
class DayZPlayerCamera3rdPersonErcRaisedMelee extends DayZPlayerCamera3rdPersonErcRaised CONST_CAMERAMOVEMENTHEIGH = 0.4
 
protected float m_fCameraHeight
 
protected float m_fCameraHeightVel [1]
 
class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelX [1]
 
class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelY [1]
 
class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelZ [1]
 
protected float m_LookAtLRAngle
 

Function Documentation

◆ DayZPlayerCamera3rdPerson()

void DayZPlayerCamera3rdPersonErc::DayZPlayerCamera3rdPerson ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 8 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonClimb()

class DayZPlayerCamera3rdPersonJump extends DayZPlayerCamera3rdPersonErc DayZPlayerCamera3rdPersonClimb ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 241 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonCrouch()

Definition at line 375 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonErc()

◆ DayZPlayerCamera3rdPersonErcRaised()

◆ DayZPlayerCamera3rdPersonErcSpr()

void DayZPlayerCamera3rdPersonErcRaised::DayZPlayerCamera3rdPersonErcSpr ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 2 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonJump()

void DayZPlayerCamera3rdPersonClimb::DayZPlayerCamera3rdPersonJump ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

runtime config

runtime values

Definition at line 2 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonProne()

void DayZPlayerCamera3rdPersonProneRaised::DayZPlayerCamera3rdPersonProne ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 473 of file dayzplayercamera3rdperson.c.

◆ DayZPlayerCamera3rdPersonProneRaised()

class DayZPlayerCamera3rdPersonProne extends DayZPlayerCamera3rdPersonProneBase DayZPlayerCamera3rdPersonProneRaised ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 557 of file dayzplayercamera3rdperson.c.

◆ GetAdditiveAngles()

override vector DayZPlayerCamera3rdPersonErc::GetAdditiveAngles ( )

Definition at line 116 of file dayzplayercamera3rdperson.c.

◆ GetBaseAngles()

override vector DayZPlayerCamera3rdPersonErc::GetBaseAngles ( )

Definition at line 107 of file dayzplayercamera3rdperson.c.

◆ GetCameraName()

override string DayZPlayerCamera3rdPersonErc::GetCameraName ( )

Definition at line 125 of file dayzplayercamera3rdperson.c.

◆ IsCamera3rdRaised()

override bool IsCamera3rdRaised ( )

Definition at line 348 of file dayzplayercamera3rdperson.c.

◆ OnActivate()

override void DayZPlayerCamera3rdPersonErc::OnActivate ( DayZPlayerCamera  pPrevCamera,
DayZPlayerCameraResult  pPrevCameraResult 
)

Definition at line 28 of file dayzplayercamera3rdperson.c.

◆ OnUpdate()

override void DayZPlayerCamera3rdPersonErc::OnUpdate ( float  pDt,
out DayZPlayerCameraResult  pOutResult 
)

update angles from input

base bone pos

apply shoulder dist

store distance

basically -> transform up vector (0,1,0) and read x coord -> and set is as roll

prev update

movement height

prev update

update angles from input

this is actually negative to yaw

base bone pos

apply shoulder dist

store distance

Definition at line 45 of file dayzplayercamera3rdperson.c.

◆ UpdateLRAngleLookAt()

float UpdateLRAngleLookAt ( float  pMin,
float  pMax,
float  pDt 
)

lr angle

Definition at line 436 of file dayzplayercamera3rdperson.c.

Variable Documentation

◆ CONST_CAMERAMOVEMENTHEIGH

class DayZPlayerCamera3rdPersonErcRaisedMelee extends DayZPlayerCamera3rdPersonErcRaised CONST_CAMERAMOVEMENTHEIGH = 0.4

◆ m_BaseOffsetVelX

class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelX[1]

◆ m_BaseOffsetVelY

class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelY[1]

◆ m_BaseOffsetVelZ

class DayZPlayerCamera3rdPersonCrouchRaised extends DayZPlayerCamera3rdPersonCrouch m_BaseOffsetVelZ[1]

◆ m_bShoulderInLS

protected bool m_bShoulderInLS

true - shoulder is in local space

Definition at line 136 of file dayzplayercamera3rdperson.c.

◆ m_CameraOffsetLS

protected vector m_CameraOffsetLS

local space offset

Definition at line 133 of file dayzplayercamera3rdperson.c.

◆ m_CameraOffsetMS

protected vector m_CameraOffsetMS

model space offset

Definition at line 132 of file dayzplayercamera3rdperson.c.

◆ m_fCameraHeight

protected float m_fCameraHeight

Definition at line 400 of file dayzplayercamera3rdperson.c.

◆ m_fCameraHeightVel

protected float m_fCameraHeightVel[1]

Definition at line 401 of file dayzplayercamera3rdperson.c.

◆ m_fCameraLRShoulder

protected float m_fCameraLRShoulder

shoulder offsets

Definition at line 148 of file dayzplayercamera3rdperson.c.

◆ m_fCameraLRShoulderVel

protected float m_fCameraLRShoulderVel[1]

Definition at line 149 of file dayzplayercamera3rdperson.c.

◆ m_fDamping

float m_fDamping

Definition at line 41 of file dayzplayercamera3rdperson.c.

◆ m_fDelay

float m_fDelay

runtime config

Definition at line 40 of file dayzplayercamera3rdperson.c.

◆ m_fDelayTimer

float m_fDelayTimer

runtime values

Definition at line 44 of file dayzplayercamera3rdperson.c.

◆ m_fDistance

protected float m_fDistance

distance from start

Definition at line 134 of file dayzplayercamera3rdperson.c.

◆ m_fJumpOffset

float m_fJumpOffset

Definition at line 46 of file dayzplayercamera3rdperson.c.

◆ m_fJumpStartY

float m_fJumpStartY

Definition at line 45 of file dayzplayercamera3rdperson.c.

◆ m_fLeanDistance

protected float m_fLeanDistance

shift on leaning

Definition at line 138 of file dayzplayercamera3rdperson.c.

◆ m_fLeftRightAngle

protected float m_fLeftRightAngle

left right angle in rad (in freelook only)

Definition at line 144 of file dayzplayercamera3rdperson.c.

◆ m_fLeftRightAngleAdd

protected float m_fLeftRightAngleAdd

left right angle in rad (in freelook only)

Definition at line 145 of file dayzplayercamera3rdperson.c.

◆ m_fPredictCollisionRadius

protected float m_fPredictCollisionRadius

collision prediction

Definition at line 152 of file dayzplayercamera3rdperson.c.

◆ m_fRoll

protected float m_fRoll

camera roll (deprecated)

Definition at line 137 of file dayzplayercamera3rdperson.c.

◆ m_fShoulderWidth

protected float m_fShoulderWidth

shoulder camera widths

Definition at line 135 of file dayzplayercamera3rdperson.c.

◆ m_fTime

protected float m_fTime

Definition at line 44 of file dayzplayercamera3rdperson.c.

◆ m_fUpDownAngle

protected float m_fUpDownAngle

runtime values

up down angle in rad

Definition at line 142 of file dayzplayercamera3rdperson.c.

◆ m_fUpDownAngleAdd

protected float m_fUpDownAngleAdd

up down angle in rad

Definition at line 143 of file dayzplayercamera3rdperson.c.

◆ m_iBoneIndex

protected int m_iBoneIndex = -1

runtime config

main bone

Definition at line 131 of file dayzplayercamera3rdperson.c.

◆ m_iPelvisBone

protected int m_iPelvisBone

Definition at line 43 of file dayzplayercamera3rdperson.c.

◆ m_jumpOffsetVelocity

float m_jumpOffsetVelocity[1]

Definition at line 47 of file dayzplayercamera3rdperson.c.

◆ m_LookAtLRAngle

protected float m_LookAtLRAngle

Definition at line 434 of file dayzplayercamera3rdperson.c.

◆ m_MovementState

ref HumanMovementState m_MovementState = new HumanMovementState()

movement state

Definition at line 155 of file dayzplayercamera3rdperson.c.