this is main camera class
update angles from input
44 {
48
52
57
59
61
65 }
float UpdateLRAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
Definition DayZPlayerCamera_Base.c:190
float m_CurrentCameraYaw
Definition DayZPlayerCamera_Base.c:578
float m_CurrentCameraPitch
Definition DayZPlayerCamera_Base.c:579
float UpdateUDAngleUnlocked(out float pAngle, out float pAngleAdd, float pMin, float pMax, float pDt)
Definition DayZPlayerCamera_Base.c:129
void StdFovUpdate(float pDt, out DayZPlayerCameraResult pOutResult)
Definition DayZPlayerCamera_Base.c:315
void InitCameraOnPlayer(bool force=false)
Definition DayZPlayerCamera_Base.c:561
void UpdateCameraNV(PlayerBase player)
Definition DayZPlayerCamera_Base.c:421
void ProcessCameraShake(float delta, out float leftRight, out float upDown)
Definition DayZPlayerCamera_Base.c:108
static const float CONST_UD_MAX
up limit
Definition DayZPlayerCamera1stPerson.c:7
static const float CONST_LR_MAX
up limit
Definition DayZPlayerCamera1stPerson.c:10
static const float CONST_LR_MIN
down limit
Definition DayZPlayerCamera1stPerson.c:9
static const float CONST_UD_MIN
down limit
Definition DayZPlayerCamera1stPerson.c:6
Definition PlayerBaseClient.c:2
vector GetCurrentOrientation()
Definition dayzplayer.c:112
static proto void YawPitchRollMatrix(vector ang, out vector mat[3])
Creates rotation matrix from angles.
Перекрестные ссылки CONST_LR_MAX, CONST_LR_MIN, CONST_UD_MAX, CONST_UD_MIN, GetCurrentOrientation(), InitCameraOnPlayer(), m_CurrentCameraPitch, m_CurrentCameraYaw, m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fUpDownAngle, m_fUpDownAngleAdd, m_iBoneIndex, m_OffsetLS, m_pPlayer, ProcessCameraShake(), StdFovUpdate(), UpdateCameraNV(), UpdateLRAngleUnlocked(), UpdateUDAngleUnlocked() и Math3D::YawPitchRollMatrix().
update angles from input
base bone pos
apply shoulder dist
store distance
50 {
52
56
58
59
61 {
63 }
64 else
65 {
67 }
68
70
73
76 {
78 }
79 else
80 {
82 }
83
87
89 {
91 }
92 else
93 {
95 }
96
97
99
105
109 }
vector m_CameraOffsetMS
model space offset
Definition DayZPlayerCamera3rdPerson.c:136
float m_fShoulderWidth
shoulder camera widths
Definition DayZPlayerCamera3rdPerson.c:139
float m_fDistance
distance from start
Definition DayZPlayerCamera3rdPerson.c:138
ref HumanMovementState m_MovementState
movement state
Definition DayZPlayerCamera3rdPerson.c:159
vector m_CameraOffsetLS
local space offset
Definition DayZPlayerCamera3rdPerson.c:137
bool m_bShoulderInLS
true - shoulder is in local space
Definition DayZPlayerCamera3rdPerson.c:140
HumanInputController m_pInput
human input
Definition dayzplayer.c:136
Перекрестные ссылки HumanInputController::Camera3rdIsRightShoulder(), CONST_LR_MAX, CONST_LR_MIN, CONST_UD_MAX, CONST_UD_MIN, GetCurrentOrientation(), InitCameraOnPlayer(), m_bShoulderInLS, m_CameraOffsetLS, m_CameraOffsetMS, m_CurrentCameraPitch, m_CurrentCameraYaw, m_fCameraLRShoulder, m_fCameraLRShoulderVel, m_fDistance, m_fLeanDistance, m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fPredictCollisionRadius, m_fShoulderWidth, m_fUpDownAngle, m_fUpDownAngleAdd, m_iBoneIndex, m_MovementState, m_pInput, m_pPlayer, ProcessCameraShake(), Math::SmoothCD(), StdFovUpdate(), UpdateCameraNV(), UpdateLRAngleUnlocked(), UpdateUDAngleUnlocked() и Math3D::YawPitchRollMatrix().
update angles from input
137 {
143 else
145
148
149
154
155
159
162 {
163 float speed =
hcm.GetCurrentMovementSpeed();
164
165 if( speed > 0 )
167 else
169
172 }
173
177
181
182
185
186
189
193
195 {
199 }
200 }
ref CameraShake m_CameraShake
Definition DayZPlayerCamera_Base.c:75
PlayerBase GetPlayer()
Definition ModifierBase.c:51
float m_velocityYaw[1]
camera dynamics
Definition DayZPlayerCameraIronsights.c:19
void UpdateBatteryOptics(EntityAI entity)
Definition DayZPlayerCameraIronsights.c:338
static const float CONST_UD_MIN_BACK
down limit on back
Definition DayZPlayerCameraIronsights.c:7
float m_velocityPitch[1]
Definition DayZPlayerCameraIronsights.c:20
void AdjustCameraParameters(float pDt, inout DayZPlayerCameraResult pOutResult)
Definition DayZPlayerCameraIronsights.c:220
static const vector Zero
Definition EnConvert.c:110
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
proto native CGame GetGame()
static proto void MatrixMultiply4(vector mat0[4], vector mat1[4], out vector res[4])
Transforms matrix.
static const float PI2
Definition EnMath.c:13
static const float RAD2DEG
Definition EnMath.c:16
static proto float Sin(float angle)
Returns sinus of angle in radians.
void HumanItemAccessor()
Definition humanitems.c:141
Перекрестные ссылки AdjustCameraParameters(), CONST_LR_MAX, CONST_LR_MIN, CONST_UD_MAX, CONST_UD_MIN, CONST_UD_MIN_BACK, HumanInputController::GetAimDelta(), GetCurrentSightEntity(), GetGame(), GetPlayer(), HumanItemAccessor(), m_CameraShake, m_CurrentCameraPitch, m_CurrentCameraYaw, m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fUpDownAngle, m_fUpDownAngleAdd, m_iBoneIndex, m_pInput, m_pPlayer, Math3D::MatrixMultiply4(), Math::PI2, Math::RAD2DEG, Math::Sin(), Math::SmoothCD(), UpdateBatteryOptics(), UpdateCameraNV(), UpdateLRAngleUnlocked(), UpdateUDAngleUnlocked(), x, y, Math3D::YawPitchRollMatrix() и vector::Zero.