DayZ 1.24
|
this is main camera class More...
Static Private Attributes | |
static const float | CONST_UD_MIN = -85.0 |
down limit | |
static const float | CONST_UD_MAX = 85.0 |
up limit | |
static const float | CONST_LR_MIN = -160.0 |
down limit | |
static const float | CONST_LR_MAX = 160.0 |
up limit | |
static const float | CONST_UD_MIN_BACK = -25.0 |
down limit on back | |
this is main camera class
Definition at line 4 of file DayZPlayerCamera1stPerson.c.
|
inlineprotected |
Definition at line 212 of file DayZPlayerCameraIronsights.c.
References HoldBreathFOVEffect(), m_fShootFromCamera, and m_iBoneIndex.
Referenced by OnUpdate().
|
inlineprivate |
Definition at line 13 of file DayZPlayerCamera1stPerson.c.
References m_iBoneIndex, m_OffsetLS, and Print().
|
inlineprivate |
Definition at line 12 of file DayZPlayerCamera3rdPerson.c.
References m_CurrentCameraRoll, m_fCameraLRShoulder, m_fCameraLRShoulderVel, m_fLeanDistance, m_fPredictCollisionRadius, and m_WeaponSwayModifier.
|
inlineprotected |
Definition at line 32 of file DayZPlayerCameraIronsights.c.
References Class::CastTo(), GetCurrentSightInfo(), Init(), m_iBoneIndex, m_WeaponSwayModifier, Print(), and SetupSightEntities().
Definition at line 74 of file DayZPlayerCamera1stPerson.c.
References m_fLeftRightAngleAdd, and m_fUpDownAngleAdd.
Definition at line 104 of file DayZPlayerCamera3rdPerson.c.
References m_fLeftRightAngleAdd, and m_fUpDownAngleAdd.
Definition at line 203 of file DayZPlayerCameraIronsights.c.
References m_fLeftRightAngleAdd, and m_fUpDownAngleAdd.
Definition at line 65 of file DayZPlayerCamera1stPerson.c.
References m_fLeftRightAngle, and m_fUpDownAngle.
Definition at line 95 of file DayZPlayerCamera3rdPerson.c.
References m_fLeftRightAngle, and m_fUpDownAngle.
Definition at line 194 of file DayZPlayerCameraIronsights.c.
References m_fLeftRightAngle, and m_fUpDownAngle.
Definition at line 83 of file DayZPlayerCamera1stPerson.c.
Definition at line 113 of file DayZPlayerCamera3rdPerson.c.
Definition at line 289 of file DayZPlayerCameraIronsights.c.
|
inlineprotected |
Definition at line 97 of file DayZPlayerCameraIronsights.c.
References m_opticsUsed, and m_weaponUsed.
Referenced by GetCurrentSightInfo(), and OnUpdate().
|
inlineprotected |
Definition at line 105 of file DayZPlayerCameraIronsights.c.
References ErrorEx, ItemOptics::GetCameraPoint(), GetCurrentSightEntity(), m_opticsUsed, m_weaponUsed, and ItemOptics::UseWeaponIronsightsOverride().
Referenced by DayZPlayerCameraIronsights().
Definition at line 228 of file DayZPlayerCameraIronsights.c.
References GameConstants::DZPLAYER_CAMERA_FOV_EYEZOOM, GameConstants::DZPLAYER_CAMERA_FOV_IRONSIGHTS, m_fFovAbsolute, m_fFovAbsVel, m_pPlayer, and Math::SmoothCD().
Referenced by AdjustCameraParameters().
|
inlineprivate |
Definition at line 24 of file DayZPlayerCamera1stPerson.c.
References m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fUpDownAngle, and m_fUpDownAngleAdd.
|
inlineprivate |
Definition at line 28 of file DayZPlayerCamera3rdPerson.c.
References m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fUpDownAngle, and m_fUpDownAngleAdd.
|
inlineprotected |
Definition at line 81 of file DayZPlayerCameraIronsights.c.
References m_fLeftRightAngle, m_fLeftRightAngleAdd, m_fUpDownAngle, and m_fUpDownAngleAdd.
|
inlineprivate |
update angles from input
Definition at line 41 of file DayZPlayerCamera1stPerson.c.
References 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(), and Math3D::YawPitchRollMatrix().
|
inlineprivate |
update angles from input
base bone pos
apply shoulder dist
store distance
Definition at line 45 of file DayZPlayerCamera3rdPerson.c.
References 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(), and Math3D::YawPitchRollMatrix().
|
inlineprotected |
update angles from input
Definition at line 128 of file DayZPlayerCameraIronsights.c.
References 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(), and vector::Zero.
|
inlineprotected |
Definition at line 244 of file DayZPlayerCameraIronsights.c.
References GetCameraNVType(), ItemOptics::GetOpticsDOF(), IsCameraNV(), m_opticsUsed, m_pPlayer, m_weaponUsed, and SetNVPostprocess().
Referenced by OnActivate(), and UpdateCameraNV().
|
inlineprotected |
Definition at line 294 of file DayZPlayerCameraIronsights.c.
References m_CameraPPDelay, DayZPlayerCameras::TIME_CAMERACHANGE_01, and DayZPlayerCameras::TIME_CAMERACHANGE_02.
Referenced by OnActivate().
|
inlineprotected |
Definition at line 60 of file DayZPlayerCameraIronsights.c.
References ItemOptics::HasWeaponIronsightsOverride(), m_opticsUsed, m_pPlayer, and m_weaponUsed.
Referenced by DayZPlayerCameraIronsights().
Definition at line 310 of file DayZPlayerCameraIronsights.c.
Referenced by OnUpdate().
up limit
Definition at line 10 of file DayZPlayerCamera1stPerson.c.
down limit
Definition at line 9 of file DayZPlayerCamera1stPerson.c.
up limit
Definition at line 7 of file DayZPlayerCamera1stPerson.c.
down limit on back
Definition at line 7 of file DayZPlayerCameraIronsights.c.
Referenced by OnUpdate().
|
protected |
true - shoulder is in local space
Definition at line 124 of file DayZPlayerCamera3rdPerson.c.
|
protected |
local space offset
Definition at line 121 of file DayZPlayerCamera3rdPerson.c.
Referenced by OnUpdate().
|
protected |
model space offset
Definition at line 120 of file DayZPlayerCamera3rdPerson.c.
Referenced by OnUpdate(), and OnUpdate().
|
protected |
Definition at line 22 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 21 of file DayZPlayerCameraIronsights.c.
|
protected |
shoulder offsets
Definition at line 136 of file DayZPlayerCamera3rdPerson.c.
|
protected |
Definition at line 137 of file DayZPlayerCamera3rdPerson.c.
|
protected |
distance from start
Definition at line 122 of file DayZPlayerCamera3rdPerson.c.
Referenced by OnUpdate(), and OnUpdate().
|
protected |
shift on leaning
Definition at line 126 of file DayZPlayerCamera3rdPerson.c.
Referenced by OnUpdate().
|
protected |
left right angle in rad (in freelook only)
Definition at line 93 of file DayZPlayerCamera1stPerson.c.
Referenced by GetBaseAngles(), and GetBaseAngles().
|
protected |
left right angle in rad (in freelook only)
Definition at line 94 of file DayZPlayerCamera1stPerson.c.
Referenced by GetAdditiveAngles(), and GetAdditiveAngles().
|
protected |
collision prediction
Definition at line 140 of file DayZPlayerCamera3rdPerson.c.
Referenced by OnUpdate().
|
protected |
camera roll (deprecated)
Definition at line 125 of file DayZPlayerCamera3rdPerson.c.
|
protected |
settings
Definition at line 318 of file DayZPlayerCameraIronsights.c.
Referenced by AdjustCameraParameters().
|
protected |
shoulder camera widths
Definition at line 123 of file DayZPlayerCamera3rdPerson.c.
|
protected |
up down angle in rad
runtime values
up down angle in rad
Definition at line 91 of file DayZPlayerCamera1stPerson.c.
Referenced by GetBaseAngles(), and GetBaseAngles().
|
protected |
up down angle in rad
Definition at line 92 of file DayZPlayerCamera1stPerson.c.
Referenced by GetAdditiveAngles(), and GetAdditiveAngles().
|
protected |
main bone
runtime values
runtime config
main bone
right hand dummy bone index
Definition at line 88 of file DayZPlayerCamera1stPerson.c.
Referenced by AdjustCameraParameters().
Definition at line 12 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 26 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 27 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 28 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 29 of file DayZPlayerCameraIronsights.c.
|
protected |
movement state
Definition at line 143 of file DayZPlayerCamera3rdPerson.c.
|
protected |
Definition at line 25 of file DayZPlayerCameraIronsights.c.
|
protected |
position offset
Definition at line 89 of file DayZPlayerCamera1stPerson.c.
|
protected |
Definition at line 323 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 322 of file DayZPlayerCameraIronsights.c.
Definition at line 13 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 16 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 23 of file DayZPlayerCameraIronsights.c.
|
protected |
Definition at line 20 of file DayZPlayerCameraIronsights.c.
|
protected |
camera dynamics
Definition at line 19 of file DayZPlayerCameraIronsights.c.
Definition at line 14 of file DayZPlayerCameraIronsights.c.