Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
dayzplayercameravehicles.c File Reference

Go to the source code of this file.

Classes

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
 
const float UP_ANGLE_CAP = 10
 
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.5
 
vector m_CameraOffsetMS
 runtime config
 
float m_fDistance
 distance from start
 
float m_fUpDownAngle
 runtime values
 
float m_fUpDownAngleAdd
 up down angle in rad
 
float m_fLeftRightAngle
 left right angle in rad
 
float m_fLeftRightAngleAdd
 left right angle in rad
 
vector m_LagOffsetPosition
 lag offsets
 
vector m_LagOffsetOrientation
 
float m_fLagOffsetVelocityX [1]
 
float m_fLagOffsetVelocityY [1]
 
float m_fLagOffsetVelocityZ [1]
 
float m_fLagOffsetVelocityYaw [1]
 
float m_fLagOffsetVelocityPitch [1]
 
float m_fLagOffsetVelocityRoll [1]
 
Transport m_Transport
 cache
 

Function Documentation

◆ DayZPlayerCamera3rdPersonVehicle()

void DayZPlayerCamera3rdPersonVehicle ( DayZPlayer pPlayer,
HumanInputController pInput )

Definition at line 34 of file dayzplayercameravehicles.c.

◆ GetAdditiveAngles()

override vector GetAdditiveAngles ( )

Definition at line 211 of file dayzplayercameravehicles.c.

◆ GetBaseAngles()

override vector GetBaseAngles ( )

Definition at line 202 of file dayzplayercameravehicles.c.

◆ OnActivate()

override void OnActivate ( DayZPlayerCamera pPrevCamera,
DayZPlayerCameraResult pPrevCameraResult )

Definition at line 54 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 89 of file dayzplayercameravehicles.c.

Variable Documentation

◆ CONST_ANGULAR_LAG_PITCH_STRENGTH

const float CONST_ANGULAR_LAG_PITCH_STRENGTH = 1.5

Definition at line 31 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_LAG_ROLL_STRENGTH

const float CONST_ANGULAR_LAG_ROLL_STRENGTH = 0.5

Definition at line 32 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_LAG_YAW_STRENGTH

const float CONST_ANGULAR_LAG_YAW_STRENGTH = 4.0

Definition at line 30 of file dayzplayercameravehicles.c.

◆ CONST_ANGULAR_VELOCITY_STRENGTH

const float CONST_ANGULAR_VELOCITY_STRENGTH = 0.025

Definition at line 28 of file dayzplayercameravehicles.c.

◆ CONST_LINEAR_VELOCITY_STRENGTH

const float CONST_LINEAR_VELOCITY_STRENGTH = 0.025

Definition at line 27 of file dayzplayercameravehicles.c.

◆ CONST_UD_MIN

class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN = -85.0

down limit

◆ m_CameraOffsetMS

vector m_CameraOffsetMS
protected

runtime config

model space offset

Definition at line 221 of file dayzplayercameravehicles.c.

◆ m_fDistance

float m_fDistance
protected

distance from start

Definition at line 222 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityPitch

float m_fLagOffsetVelocityPitch[1]
protected

Definition at line 237 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityRoll

float m_fLagOffsetVelocityRoll[1]
protected

Definition at line 238 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityX

float m_fLagOffsetVelocityX[1]
protected

Definition at line 233 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityY

float m_fLagOffsetVelocityY[1]
protected

Definition at line 234 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityYaw

float m_fLagOffsetVelocityYaw[1]
protected

Definition at line 236 of file dayzplayercameravehicles.c.

◆ m_fLagOffsetVelocityZ

float m_fLagOffsetVelocityZ[1]
protected

Definition at line 235 of file dayzplayercameravehicles.c.

◆ m_fLeftRightAngle

float m_fLeftRightAngle
protected

left right angle in rad

Definition at line 227 of file dayzplayercameravehicles.c.

◆ m_fLeftRightAngleAdd

float m_fLeftRightAngleAdd
protected

left right angle in rad

Definition at line 228 of file dayzplayercameravehicles.c.

◆ m_fUpDownAngle

float m_fUpDownAngle
protected

runtime values

up down angle in rad

Definition at line 225 of file dayzplayercameravehicles.c.

◆ m_fUpDownAngleAdd

float m_fUpDownAngleAdd
protected

up down angle in rad

Definition at line 226 of file dayzplayercameravehicles.c.

◆ m_LagOffsetOrientation

vector m_LagOffsetOrientation
protected

Definition at line 232 of file dayzplayercameravehicles.c.

◆ m_LagOffsetPosition

vector m_LagOffsetPosition
protected

lag offsets

Definition at line 231 of file dayzplayercameravehicles.c.

◆ m_Transport

Transport m_Transport
protected

cache

Definition at line 241 of file dayzplayercameravehicles.c.

◆ UP_ANGLE_CAP

const float UP_ANGLE_CAP = 10

Definition at line 22 of file dayzplayercameravehicles.c.