|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
7 static const float CONST_UD_MAX = 85.0;
9 static const float CONST_LR_MIN = -160.0;
10 static const float CONST_LR_MAX = 160.0;
18 Print(
"DayZPlayerCamera1stPerson: main bone not found");
28 super.OnActivate(pPrevCamera, pPrevCameraResult);
32 vector baseAngles = pPrevCamera.GetBaseAngles();
36 vector addAngles = pPrevCamera.GetAdditiveAngles();
54 pOutResult.m_iDirectBoneMode = 1;
55 pOutResult.m_fUseHeading = 1.0;
56 pOutResult.m_fInsideCamera = 1.0;
58 pOutResult.m_fNearPlane = 0.04;
87 return "DayZPlayerCamera1stPerson";
111 super.OnUpdate(pDt, pOutResult);
114 pOutResult.m_iDirectBoneMode = 4;
115 pOutResult.m_fUseHeading = 0.0;
122 Math3D.YawPitchRollMatrix(rot, pOutResult.m_CameraTM);
class DayZPlayerCamera1stPersonVehicle extends DayZPlayerCamera1stPerson CONST_UD_MIN
down limit
override void OnActivate(DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult)
void DayZPlayerCamera1stPerson(DayZPlayer pPlayer, HumanInputController pInput)
float UpdateUDAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
void ProcessCameraShake(float delta, out float leftRight, out float upDown)
protected int m_iBoneIndex
main bone
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
protected float m_fLeftRightAngle
left right angle in rad (in freelook only)
proto void Print(void var)
Prints content of variable to console/log.
override string GetCameraName()
float UpdateLRAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
protected vector m_OffsetLS
position offset
protected DayZPlayer m_pPlayer
data
protected float m_CurrentCameraPitch
protected float m_fUpDownAngleAdd
up down angle in rad
void InitCameraOnPlayer(bool force=false)
override void OnUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
class DayZPlayerCamera1stPerson extends DayZPlayerCameraBase DayZPlayerCamera1stPersonUnconscious(DayZPlayer pPlayer, HumanInputController pInput)
protected float m_fUpDownAngle
up down angle in rad
this is main camera class
protected float m_CurrentCameraYaw
override vector GetBaseAngles()
void StdFovUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
vector GetCurrentOrientation()
override vector GetAdditiveAngles()
protected float m_fLeftRightAngleAdd
left right angle in rad (in freelook only)
void UpdateCameraNV(PlayerBase player)