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

Go to the source code of this file.

Data Structures

class  DayZPlayerCamera1stPerson
 

Functions

void DayZPlayerCamera3rdPersonVehicle (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 ()
 

Variables

class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN = -85.0
 down limit More...
 
const float CONST_LINEAR_VELOCITY_STRENGTH = 0.025
 
const float CONST_ANGULAR_VELOCITY_STRENGTH = 0.025
 
const float CONST_ANGULAR_LAG_YAW_STRENGTH = 4.0
 
const float CONST_ANGULAR_LAG_PITCH_STRENGTH = 1.5
 
const float CONST_ANGULAR_LAG_ROLL_STRENGTH = 0.0
 
protected vector m_CameraOffsetMS
 runtime config More...
 
protected float m_fDistance
 distance from start 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 More...
 
protected float m_fLeftRightAngleAdd
 left right angle in rad More...
 
protected vector m_LagOffsetPosition
 lag offsets More...
 
protected vector m_LagOffsetOrientation
 
protected float m_fLagOffsetVelocityX [1]
 
protected float m_fLagOffsetVelocityY [1]
 
protected float m_fLagOffsetVelocityZ [1]
 
protected float m_fLagOffsetVelocityYaw [1]
 
protected float m_fLagOffsetVelocityPitch [1]
 
protected float m_fLagOffsetVelocityRoll [1]
 
protected Transport m_Transport
 cache More...
 

Function Documentation

◆ DayZPlayerCamera3rdPersonVehicle()

void DayZPlayerCamera3rdPersonVehicle ( DayZPlayer  pPlayer,
HumanInputController  pInput 
)

Definition at line 33 of file dayzplayercameravehicles.c.

◆ GetAdditiveAngles()

override vector GetAdditiveAngles ( )

Definition at line 150 of file dayzplayercameravehicles.c.

◆ GetBaseAngles()

override vector GetBaseAngles ( )

Definition at line 141 of file dayzplayercameravehicles.c.

◆ OnActivate()

override void OnActivate ( DayZPlayerCamera  pPrevCamera,
DayZPlayerCameraResult  pPrevCameraResult 
)

Definition at line 53 of file dayzplayercameravehicles.c.

◆ OnUpdate()

override void OnUpdate ( float  pDt,
out DayZPlayerCameraResult  pOutResult 
)

get player transform

get vehicle and set it as ignore entity for camera collision solver

update camera offset

orientation LS

create LS lag from vehicle velocities

smooth it!

setup orientation

setup position

setup rest

Definition at line 72 of file dayzplayercameravehicles.c.

Variable Documentation

◆ CONST_ANGULAR_LAG_PITCH_STRENGTH

const float CONST_ANGULAR_LAG_PITCH_STRENGTH = 1.5

Definition at line 30 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_LAG_ROLL_STRENGTH

const float CONST_ANGULAR_LAG_ROLL_STRENGTH = 0.0

Definition at line 31 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_LAG_YAW_STRENGTH

const float CONST_ANGULAR_LAG_YAW_STRENGTH = 4.0

Definition at line 29 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_VELOCITY_STRENGTH

const float CONST_ANGULAR_VELOCITY_STRENGTH = 0.025

Definition at line 27 of file dayzplayercameravehicles.c.

◆ CONST_LINEAR_VELOCITY_STRENGTH

const float CONST_LINEAR_VELOCITY_STRENGTH = 0.025

Definition at line 26 of file dayzplayercameravehicles.c.

◆ CONST_UD_MIN

class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN = -85.0

down limit

◆ m_CameraOffsetMS

protected vector m_CameraOffsetMS

runtime config

model space offset

Definition at line 160 of file dayzplayercameravehicles.c.

◆ m_fDistance

protected float m_fDistance

distance from start

Definition at line 161 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityPitch

protected float m_fLagOffsetVelocityPitch[1]

Definition at line 176 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityRoll

protected float m_fLagOffsetVelocityRoll[1]

Definition at line 177 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityX

protected float m_fLagOffsetVelocityX[1]

Definition at line 172 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityY

protected float m_fLagOffsetVelocityY[1]

Definition at line 173 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityYaw

protected float m_fLagOffsetVelocityYaw[1]

Definition at line 175 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityZ

protected float m_fLagOffsetVelocityZ[1]

Definition at line 174 of file dayzplayercameravehicles.c.

◆ m_fLeftRightAngle

protected float m_fLeftRightAngle

left right angle in rad

Definition at line 166 of file dayzplayercameravehicles.c.

◆ m_fLeftRightAngleAdd

protected float m_fLeftRightAngleAdd

left right angle in rad

Definition at line 167 of file dayzplayercameravehicles.c.

◆ m_fUpDownAngle

protected float m_fUpDownAngle

runtime values

up down angle in rad

Definition at line 164 of file dayzplayercameravehicles.c.

◆ m_fUpDownAngleAdd

protected float m_fUpDownAngleAdd

up down angle in rad

Definition at line 165 of file dayzplayercameravehicles.c.

◆ m_LagOffsetOrientation

protected vector m_LagOffsetOrientation

Definition at line 171 of file dayzplayercameravehicles.c.

◆ m_LagOffsetPosition

protected vector m_LagOffsetPosition

lag offsets

Definition at line 170 of file dayzplayercameravehicles.c.

◆ m_Transport

protected Transport m_Transport

cache

Definition at line 180 of file dayzplayercameravehicles.c.