DayZ 1.24
|
Go to the source code of this file.
Enumerations | |
enum | NVTypes { NONE = 0 , NV_GOGGLES , NV_GOGGLES_OFF , NV_OPTICS_ON , NV_OPTICS_OFF , NV_PUMPKIN , NV_OPTICS_KAZUAR_DAY , NV_OPTICS_KAZUAR_NIGHT , NV_OPTICS_STARLIGHT_DAY , NV_OPTICS_STARLIGHT_NIGHT , MAX } |
Enumerator | |
---|---|
NONE | |
NV_GOGGLES | |
NV_GOGGLES_OFF | |
NV_OPTICS_ON | |
NV_OPTICS_OFF | |
NV_PUMPKIN | |
NV_OPTICS_KAZUAR_DAY | |
NV_OPTICS_KAZUAR_NIGHT | |
NV_OPTICS_STARLIGHT_DAY | |
NV_OPTICS_STARLIGHT_NIGHT | |
MAX |
Definition at line 40 of file DayZPlayerCamera_Base.c.
|
protected |
constructor must be same
Definition at line 64 of file DayZPlayerCamera_Base.c.
References GetDayZGame(), DayZPlayer::GetEyeZoomLevel(), HandleShoulderCameraOverride(), Init(), m_CameraPPDelay, m_CommandWeapons, m_fFovAbsolute, m_fFovAbsVel, m_fLRAngleVel, m_fUDAngleVel, m_pPlayer, and m_WeaponSwayModifier.
Definition at line 26 of file DayZPlayerCamera_Base.c.
Referenced by UIScriptedMenu::SetCameraData().
Definition at line 13 of file DayZPlayerCamera_Base.c.
Definition at line 345 of file DayZPlayerCamera_Base.c.
|
protected |
Definition at line 369 of file DayZPlayerCamera_Base.c.
References m_NightvisionType.
Referenced by SetCameraPP(), DayZPlayerCameraBase::SetCameraPP(), and UpdateCameraNV().
Definition at line 407 of file DayZPlayerCamera_Base.c.
References m_CurrentCameraPitch.
|
protected |
Definition at line 340 of file DayZPlayerCamera_Base.c.
References m_WeaponSwayModifier.
|
protected |
disable override
Definition at line 88 of file DayZPlayerCamera_Base.c.
References m_pInput, and HumanInputController::Override3rdIsRightShoulder().
Referenced by DayZPlayerCameraBase().
|
protected |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
pre-init arrays
Definition at line 105 of file DayZPlayerCamera_Base.c.
References IsCameraNV(), m_pPlayer, SetCameraNV(), and SetCameraNVType().
Definition at line 506 of file DayZPlayerCamera_Base.c.
References m_pPlayer.
Referenced by OnActivate(), DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
Definition at line 359 of file DayZPlayerCamera_Base.c.
References m_IsNightvision.
Referenced by Init(), OnActivate(), SetCameraPP(), DayZPlayerCameraBase::SetCameraPP(), and UpdateCameraNV().
limit function
Definition at line 2 of file DayZPlayerCamera_Base.c.
Referenced by UpdateLRAngle(), UpdateLRAngleLookAt(), UpdateLRAngleUnlocked(), UpdateUDAngle(), and UpdateUDAngleUnlocked().
|
protected |
Definition at line 326 of file DayZPlayerCamera_Base.c.
References CALL_CATEGORY_GUI, DayZPlayerCamera(), DayZPlayerCameraOptics(), GetGame(), InitCameraOnPlayer(), IsCameraNV(), m_CameraPPDelay, m_pPlayer, DayZPlayerCameraBase::SetCameraPP(), and DayZPlayerCameraBase::SetCameraPPDelay().
|
protected |
Definition at line 306 of file DayZPlayerCamera_Base.c.
References InitCameraOnPlayer(), Debug::Log(), m_pPlayer, StdFovUpdate(), and UpdateCameraNV().
Definition at line 94 of file DayZPlayerCamera_Base.c.
References m_CameraShake, x, and y.
Referenced by DayZPlayerCameraBase::OnUpdate().
Definition at line 354 of file DayZPlayerCamera_Base.c.
References m_IsNightvision.
Referenced by Init(), SetCameraPP(), and UpdateCameraNV().
Definition at line 364 of file DayZPlayerCamera_Base.c.
References m_NightvisionType.
Referenced by Init(), and UpdateCameraNV().
|
protected |
by default sets camera PP to zero, regardless of parameter. Override if needed.
Definition at line 388 of file DayZPlayerCamera_Base.c.
References GetCameraNVType(), IsCameraNV(), m_pPlayer, m_weaponUsed, and SetNVPostprocess().
|
protected |
Definition at line 350 of file DayZPlayerCamera_Base.c.
DayZPlayerCameraOptics handles this separately, otherwise it takes active NVType from PlayerBase::GetCameraNVType.
Definition at line 424 of file DayZPlayerCamera_Base.c.
References GetGame(), and m_pPlayer.
Referenced by SetCameraPP(), and DayZPlayerCameraBase::SetCameraPP().
|
protected |
Definition at line 301 of file DayZPlayerCamera_Base.c.
References m_CameraShake.
Referenced by SpawnCameraShake(), and SpawnDiagCameraShake().
|
protected |
change abs FOV for naked eye zoom
switch shooting from camera to weapon (firearms)
Definition at line 274 of file DayZPlayerCamera_Base.c.
References GetDayZGame(), DayZPlayer::GetEyeZoomLevel(), DayZPlayer::IsShootingFromCamera(), m_fFovAbsolute, m_fFovAbsVel, m_pPlayer, and Math::SmoothCD().
Referenced by DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
Definition at line 374 of file DayZPlayerCamera_Base.c.
References GetCameraNVType(), IsCameraNV(), SetCameraNV(), SetCameraNVType(), and DayZPlayerCameraBase::SetCameraPP().
Referenced by DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
lr angle
Definition at line 241 of file DayZPlayerCamera_Base.c.
References HumanInputController::CameraIsFreeLook(), HumanInputController::CameraIsTracking(), HumanInputController::GetAimChange(), HumanInputController::GetTracking(), Limit(), m_bForceFreeLook, m_fLRAngleVel, m_pInput, Math::RAD2DEG, and Math::SmoothCD().
|
protected |
Definition at line 152 of file DayZPlayerCamera_Base.c.
References Math::AbsFloat(), HumanInputController::CameraIsFreeLook(), HumanInputController::CameraIsTracking(), HumanInputController::GetAimDelta(), HumanInputController::GetTracking(), Limit(), m_bForceFreeLook, m_fLRAngleVel, m_fUDAngleVel, m_pInput, Math::RAD2DEG, and Math::SmoothCD().
Referenced by DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
pAngle + pAngleAdd == aimingUDAngle + aimingUDAdd now we set pAngleAdd to be the differenc from aimingAngle and we change camera angle to be the aiming angle
lr angle
update it in degrees
Definition at line 189 of file DayZPlayerCamera_Base.c.
References Math::AbsFloat(), HumanInputController::CameraIsFreeLook(), HumanInputController::CameraIsTracking(), HumanInputController::GetAimChange(), HumanCommandWeapons::GetBaseAimingAngleUD(), HumanInputController::GetTracking(), Limit(), m_CommandWeapons, m_fUDAngleVel, m_pInput, Math::RAD2DEG, and Math::SmoothCD().
|
protected |
Definition at line 115 of file DayZPlayerCamera_Base.c.
References Math::AbsFloat(), HumanInputController::CameraIsFreeLook(), HumanInputController::CameraIsTracking(), HumanInputController::GetAimDelta(), HumanCommandWeapons::GetBaseAimingAngleUD(), HumanInputController::GetTracking(), Limit(), m_CommandWeapons, m_fUDAngleVel, m_pInput, Math::RAD2DEG, and Math::SmoothCD().
Referenced by DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
Definition at line 517 of file DayZPlayerCamera_Base.c.
Referenced by ForceFreelook(), UpdateLRAngle(), UpdateLRAngleLookAt(), and UpdateLRAngleUnlocked().
|
protected |
Definition at line 519 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase(), OnActivate(), DayZPlayerCameraBase::SetCameraPPDelay(), and SetCameraPPDelay().
|
protected |
Definition at line 61 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase::OnUpdate(), ProcessCameraShake(), and SpawnCameraShakeProper().
|
protected |
Definition at line 525 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase(), UpdateUDAngle(), and UpdateUDAngleUnlocked().
|
protected |
Definition at line 522 of file DayZPlayerCamera_Base.c.
Referenced by GetCurrentPitch(), DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
Definition at line 523 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase::DayZPlayerCamera3rdPerson(), GetCurrentRoll(), and OnUpdate().
|
protected |
Definition at line 521 of file DayZPlayerCamera_Base.c.
Referenced by GetCurrentYaw(), DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
Definition at line 516 of file DayZPlayerCamera_Base.c.
|
protected |
Definition at line 515 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase(), DayZPlayerCameraBase::HoldBreathFOVEffect(), HoldBreathFOVEffect(), and StdFovUpdate().
|
protected |
Definition at line 513 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase(), UpdateLRAngle(), UpdateLRAngleLookAt(), and UpdateLRAngleUnlocked().
|
protected |
Definition at line 514 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase(), UpdateLRAngleUnlocked(), UpdateUDAngle(), and UpdateUDAngleUnlocked().
|
protected |
Definition at line 526 of file DayZPlayerCamera_Base.c.
Referenced by IsCameraNV(), and SetCameraNV().
|
protected |
Definition at line 527 of file DayZPlayerCamera_Base.c.
Referenced by GetCameraNVType(), and SetCameraNVType().
|
protected |
Definition at line 60 of file DayZPlayerCamera_Base.c.
Referenced by AdjustCameraParameters(), DayZPlayerCameraBase::GetCurrentSightEntity(), GetCurrentSightEntity(), DayZPlayerCameraBase::GetCurrentSightInfo(), GetCurrentSightInfo(), Init(), OnActivate(), DayZPlayerCameraBase::SetCameraPP(), SetCameraPP(), and DayZPlayerCameraBase::SetupSightEntities().
|
protected |
Definition at line 518 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase::DayZPlayerCamera3rdPerson(), DayZPlayerCameraBase(), DayZPlayerCameraBase::DayZPlayerCameraIronsights(), and GetWeaponSwayModifier().
|
protected |
Definition at line 59 of file DayZPlayerCamera_Base.c.
Referenced by DayZPlayerCameraBase::GetCurrentSightEntity(), DayZPlayerCameraBase::GetCurrentSightInfo(), SetCameraPP(), DayZPlayerCameraBase::SetCameraPP(), and DayZPlayerCameraBase::SetupSightEntities().