DayZ 1.24
|
Protected Member Functions | |
void | SetPlayer (PlayerBase player) |
PlayerBase | GetPlayer () |
Protected Attributes | |
PlayerBase | m_Player |
Definition at line 1 of file ItemOptics.c.
|
inlineprivate |
Definition at line 19 of file ItemOptics.c.
References Init2DPreloadType(), InitCameraOverrideProperties(), InitOpticMode(), InitOpticsDOFProperties(), InitOpticsPPInfo(), InitReddotData(), m_CurrentOpticModeLocal, m_lens_array, m_mask_array, and m_OpticsDOFProperties.
|
inlineprivate |
returns 'true' for non-magnifying optics
Definition at line 394 of file ItemOptics.c.
References m_allowsDOF.
Referenced by SetCameraPP().
Definition at line 3 of file BUISOptic.c.
Definition at line 3 of file M4_CarryHandleOptic.c.
|
private |
switches to optics mode if possible
|
private |
switches out of optics mode (if possible)
gets camera position & direction in model space of optics entity
Referenced by DayZPlayerCameraBase::GetCurrentSightInfo(), and GetCurrentSightInfo().
|
inlineprivate |
Definition at line 404 of file ItemOptics.c.
Referenced by SetCameraPP().
|
inlineprivate |
Definition at line 433 of file ItemOptics.c.
References m_CurrentOpticMode.
Referenced by KazuarOptic::UpdateSelectionVisibility(), and StarlightOptic::UpdateSelectionVisibility().
|
private |
returns fov value at current index, or 'OpticsInfo.opticsZoomInit' config value (non-zooming optics)
|
inlineprivate |
Definition at line 468 of file ItemOptics.c.
References m_nearplane_override.
Referenced by AdjustCameraParameters().
Definition at line 451 of file ItemOptics.c.
References m_OpticsDOFProperties.
Referenced by DayZPlayerCameraBase::SetCameraPP(), and SetCameraPP().
|
inlineprivate |
Definition at line 463 of file ItemOptics.c.
References m_blur_float.
Referenced by SetCameraPP().
|
inlineprotected |
|
private |
returns number of configured steps
|
private |
returns index of currently used value in 'discretefov' config array
|
private |
returns position of currently used value in zeroing config array
|
private |
Gets Zeroing distance at opticsZoomMax.
|
private |
Gets Zeroing distance at opticsZoomMin.
|
private |
gets FOV value, when entering optics
|
private |
gets FOV maximum
|
private |
gets FOV minimum
|
private |
is weapon in optics mode or not
Referenced by DayZPlayerCameraBase::SetupSightEntities().
Definition at line 34 of file HuntingOptic.c.
References HideSelection().
Referenced by HideSelection(), HuntingOptic(), OnOpticEnter(), KazuarOptic::OnOpticEnter(), StarlightOptic::OnOpticEnter(), OnWasAttached(), OnWasDetached(), ShowSelection(), KazuarOptic::UpdateSelectionVisibility(), and StarlightOptic::UpdateSelectionVisibility().
|
inlineprivate |
Definition at line 5 of file HuntingOptic.c.
References HideSelection().
|
inlineprivate |
Definition at line 473 of file ItemOptics.c.
References GetGame(), GetType(), m_2D_preload_type, and path.
Referenced by ItemOptics().
|
inlineprivate |
Definition at line 368 of file ItemOptics.c.
References DayZPlayerCameraOptics(), GetGame(), GetType(), m_nearplane_override, Math::Max(), and path.
Referenced by ItemOptics().
|
inlineprivate |
optics with more than 1x zoom do not allow DOF changes
Definition at line 343 of file ItemOptics.c.
References GameConstants::DZPLAYER_CAMERA_FOV_IRONSIGHTS, GetGame(), GetType(), and path.
Referenced by InitOpticsPPInfo().
|
inlineprivate |
Definition at line 485 of file ItemOptics.c.
References GameConstants::OPTICS_STATE_DAY, and SetCurrentOpticMode().
Referenced by ItemOptics().
Initializes DOF properties for optic's alternate ironsights (ACOG etc.)
Definition at line 378 of file ItemOptics.c.
References GetGame(), and GetType().
Referenced by ItemOptics().
|
inlineprivate |
initializes values for optics' post-processes
Definition at line 360 of file ItemOptics.c.
References GetGame(), GetType(), and path.
Referenced by InitOpticsPPInfo().
|
inlineprivate |
Definition at line 334 of file ItemOptics.c.
References InitDOFAvailability(), InitOpticsPP(), m_allowsDOF, m_blur_float, m_isNVOptic, m_lens_array, and m_mask_array.
Referenced by ItemOptics().
|
inlineprivate |
Definition at line 280 of file ItemOptics.c.
References GetGame(), GetType(), m_data_set, m_optic_sight_material, m_optic_sight_texture, m_reddot_index, and path.
Referenced by ItemOptics(), and ShowReddot().
|
private |
is weapon in optics mode or not
Referenced by KazuarOptic::UpdateSelectionVisibility(), and StarlightOptic::UpdateSelectionVisibility().
|
inlineprivate |
Definition at line 399 of file ItemOptics.c.
References m_isNVOptic.
Referenced by Init(), and SetCameraPP().
|
private |
is optics using ironsights override settings or not
|
inlineprivate |
Definition at line 188 of file ItemOptics.c.
Referenced by KazuarOptic::GetCurrentNVType(), StarlightOptic::GetCurrentNVType(), Init(), and UpdateOpticsReddotVisibility().
Definition at line 499 of file ItemOptics.c.
Definition at line 229 of file ItemOptics.c.
References SetTakeable().
|
inlineprivate |
Definition at line 440 of file ItemOptics.c.
References GetGame(), and HideSelection().
|
inlineprivate |
Definition at line 445 of file ItemOptics.c.
References GetGame(), and ShowSelection().
|
inlineprivate |
optic-specific behaviour to be defined here (override)
Definition at line 439 of file ItemOptics.c.
Referenced by OnStoreLoad(), OnVariablesSynchronized(), and SetCurrentOpticMode().
|
inlineprivate |
Definition at line 247 of file ItemOptics.c.
References m_CurrentOpticMode, m_IsStoreLoad, and OnOpticModeChange().
|
inlineprivate |
Definition at line 240 of file ItemOptics.c.
References m_CurrentOpticMode.
Definition at line 269 of file ItemOptics.c.
References m_CurrentOpticMode, m_CurrentOpticModeLocal, and OnOpticModeChange().
Definition at line 203 of file ItemOptics.c.
References Class::CastTo(), SetTakeable(), and SetZeroingClampDist().
Definition at line 11 of file HuntingOptic.c.
References HideSelection(), m_Parent, ParentUsesWinchesterTypeMount(), and ShowSelection().
Definition at line 214 of file ItemOptics.c.
References Class::CastTo(), SetTakeable(), and SetZeroingClampDist().
Definition at line 24 of file HuntingOptic.c.
References HideSelection(), m_Parent, and ShowSelection().
Definition at line 182 of file ItemOptics.c.
References GetGame(), and ShowReddot().
|
inlineprivate |
Definition at line 66 of file HuntingOptic.c.
References m_Parent.
Referenced by OnWasAttached(), and ShowSelection().
Definition at line 492 of file ItemOptics.c.
References AddAction().
Definition at line 427 of file ItemOptics.c.
References m_CurrentOpticMode, and OnOpticModeChange().
Referenced by InitOpticMode(), KazuarOptic::InitOpticMode(), and StarlightOptic::InitOpticMode().
|
inlineprotected |
|
private |
sets zoom to fov value defined at given in 'discretefov' config array
[in] | index | of configured step, range [0..cfg_max] |
|
private |
Sets zeroing clamp for the optics and updates the clamp if dist > 0. Used when attached to weapon.
Referenced by OnWasAttached(), and OnWasDetached().
Definition at line 304 of file ItemOptics.c.
References ErrorEx, GetGame(), InitReddotData(), m_data_set, m_optic_sight_material, m_optic_sight_texture, and m_reddot_index.
Referenced by OnWorkStart(), OnWorkStop(), and UpdateOpticsReddotVisibility().
Definition at line 44 of file HuntingOptic.c.
References HideSelection(), ParentUsesWinchesterTypeMount(), and ShowSelection().
Referenced by OnOpticExit(), OnWasAttached(), OnWasDetached(), ShowSelection(), KazuarOptic::UpdateSelectionVisibility(), and StarlightOptic::UpdateSelectionVisibility().
|
private |
sets zoom to previous (respective to current) defined value in zoom fov config array
|
private |
sets zoom to next defined (respective to current) value in zoom fov config array
|
private |
sets zeroing to previous (respective to current) defined value in zeroing config array
|
private |
sets zeroing to next defined (respective to current) value in zeroing config array
|
inlineprivate |
|
inlineprivate |
Definition at line 490 of file ItemOptics.c.
|
private |
switches into ironsights override settings
Referenced by DayZPlayerCameraBase::GetCurrentSightInfo(), and GetCurrentSightInfo().
|
private |
Definition at line 14 of file ItemOptics.c.
Referenced by Init2DPreloadType().
|
private |
Definition at line 4 of file ItemOptics.c.
Referenced by AllowsDOF(), and InitOpticsPPInfo().
|
private |
Definition at line 10 of file ItemOptics.c.
Referenced by GetOpticsPPBlur(), and InitOpticsPPInfo().
|
private |
Definition at line 7 of file ItemOptics.c.
Referenced by KazuarOptic::GetCurrentNVType(), StarlightOptic::GetCurrentNVType(), GetCurrentOpticMode(), OnStoreLoad(), OnStoreSave(), OnVariablesSynchronized(), and SetCurrentOpticMode().
|
private |
Definition at line 8 of file ItemOptics.c.
Referenced by ItemOptics(), and OnVariablesSynchronized().
|
private |
Definition at line 3 of file ItemOptics.c.
Referenced by InitReddotData(), and ShowReddot().
|
private |
Definition at line 6 of file ItemOptics.c.
Referenced by InitOpticsPPInfo(), and IsNVOptic().
Definition at line 16 of file ItemOptics.c.
Referenced by GetOpticsPPLens(), InitOpticsPPInfo(), and ItemOptics().
Definition at line 15 of file ItemOptics.c.
Referenced by GetOpticsPPMask(), InitOpticsPPInfo(), and ItemOptics().
|
private |
Definition at line 11 of file ItemOptics.c.
Referenced by GetNearPlaneValue(), and InitCameraOverrideProperties().
|
private |
Definition at line 13 of file ItemOptics.c.
Referenced by InitReddotData(), and ShowReddot().
|
private |
Definition at line 12 of file ItemOptics.c.
Referenced by InitReddotData(), and ShowReddot().
Definition at line 17 of file ItemOptics.c.
Referenced by GetOpticsDOF(), and ItemOptics().
|
private |
Definition at line 3 of file HuntingOptic.c.
|
protected |
Definition at line 3 of file PoweredOptic_Base.c.
|
private |
Definition at line 9 of file ItemOptics.c.
Referenced by InitReddotData(), and ShowReddot().