![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| bool | AllowsDOF () |
| returns 'true' for non-magnifying optics | |
| int | GetCurrentNVType () |
| int | GetCurrentOpticMode () |
| ItemOpticsType | GetItemOpticsType () |
| Returns the ItemOpticsType of this ItemOptics instance. | |
| float | GetNearPlaneValue () |
| ref array< float > | GetOpticsDOF () |
| float | GetOpticsPPBlur () |
| ref array< float > | GetOpticsPPLens () |
| ref array< float > | GetOpticsPPMask () |
| PlayerBase | GetPlayer () |
| void | Init2DPreloadType () |
| void | InitCameraOverrideProperties () |
| bool | InitDOFAvailability () |
| optics with more than 1x zoom do not allow DOF changes | |
| void | InitOpticMode () |
| bool | InitOpticsDOFProperties (out array< float > temp_array) |
| Initializes DOF properties for optic's alternate ironsights (ACOG etc.). | |
| void | InitOpticsPP (out array< float > mask_array, out array< float > lens_array, out float blur_float) |
| initializes values for optics' post-processes | |
| void | InitOpticsPPInfo () |
| void | InitReddotData () |
| bool | IsNVOptic () |
| bool | IsSightOnly () |
| bool | IsUsableWithNV () |
| bool | IsUsingOptics2DModel () |
| Returns whether this ItemOptics uses the 2D optics model. | |
| bool | IsWorking () |
| override void | OnDebugSpawn () |
| void | OnDrawOptics2D () |
| override void | OnInventoryExit (Man player) |
| void | OnOpticEnter () |
| void | OnOpticExit () |
| void | OnOpticModeChange () |
| optic-specific behaviour to be defined here (override) | |
| override bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| override void | OnStoreSave (ParamsWriteContext ctx) |
| override void | OnVariablesSynchronized () |
| override void | OnWasAttached (EntityAI parent, int slot_id) |
| override void | OnWasDetached (EntityAI parent, int slot_id) |
| override void | OnWorkStart () |
| override void | OnWorkStop () |
| override void | SetActions () |
| void | SetCurrentOpticMode (int mode) |
| void | SetPlayer (PlayerBase player) |
| void | ShowReddot (bool state) |
| void | StartWorkServer () |
| void | StopWorkServer () |
| void | UpdateOpticsReddotVisibility () |
| void | UpdateSelectionVisibility () |
Protected Attributes | |
| bool | m_IsActionActive |
| PlayerBase | m_Player |
Private Member Functions | |
| void | ItemOptics () |
| override bool | CanPutAsAttachment (EntityAI parent) |
| override bool | CanPutAsAttachment (EntityAI parent) |
| proto native bool | EnterOptics () |
| switches to optics mode if possible | |
| proto native bool | ExitOptics () |
| switches out of optics mode (if possible) | |
| proto native void | GetCameraPoint (out vector pos, out vector dir) |
| proto native float | GetCurrentStepFOV () |
| returns fov value at current index, or 'OpticsInfo.opticsZoomInit' config value (non-zooming optics) | |
| proto native int | GetStepFOVCount () |
| returns number of configured steps | |
| proto native int | GetStepFOVIndex () |
| returns index of currently used value in 'discretefov' config array | |
| proto native int | GetStepZeroing () |
| returns position of currently used value in zeroing config array | |
| proto native float | GetZeroingDistanceZoomMax () |
| Gets Zeroing distance at opticsZoomMax. | |
| proto native float | GetZeroingDistanceZoomMin () |
| Gets Zeroing distance at opticsZoomMin. | |
| proto native float | GetZoomInit () |
| gets FOV value, when entering optics | |
| proto native float | GetZoomMax () |
| gets FOV maximum | |
| proto native float | GetZoomMin () |
| gets FOV minimum | |
| proto native bool | HasWeaponIronsightsOverride () |
| is weapon in optics mode or not | |
| override void | HideSelection (string selection_name) |
| void | HuntingOptic () |
| proto native bool | IsInOptics () |
| is weapon in optics mode or not | |
| override bool | IsSightOnly () |
| proto native bool | IsUsingWeaponIronsightsOverride () |
| is optics using ironsights override settings or not | |
| override void | OnWasAttached (EntityAI parent, int slot_id) |
| override void | OnWasDetached (EntityAI parent, int slot_id) |
| bool | ParentUsesWinchesterTypeMount () |
| proto native bool | SetStepFOVIndex (int step) |
| proto native bool | SetStepZeroing (int step) |
| proto native void | SetZeroingClampDist (float dist) |
| override void | ShowSelection (string selection_name) |
| proto native bool | StepFOVDown () |
| sets zoom to previous (respective to current) defined value in zoom fov config array | |
| proto native bool | StepFOVUp () |
| sets zoom to next defined (respective to current) value in zoom fov config array | |
| proto native bool | StepZeroingDown () |
| sets zeroing to previous (respective to current) defined value in zeroing config array | |
| proto native bool | StepZeroingUp () |
| sets zeroing to next defined (respective to current) value in zeroing config array | |
| proto native bool | UseWeaponIronsightsOverride (bool state) |
| Private Member Functions inherited from InventoryItemSuper | |
| override bool | DescriptionOverride (out string output) |
| override bool | DisplayNameRuinAttach () |
| override void | EEHealthLevelChanged (int oldLevel, int newLevel, string zone) |
| bool | GetMapStateAnimation () |
| array< ref MapMarker > | GetMarkerArray () |
| override int | GetMeleeTargetType () |
| proto native float | GetRadius () |
| Returns current wheel radius. | |
| string | GetRuinedReplacement () |
| proto native float | GetWidth () |
| Returns wheel width. | |
| void | InitMapState () |
| void | InsertMarker (vector pos, string text, int color, int idx) |
| void | ItemMap () |
| override bool | NameOverride (out string output) |
| override void | OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner) |
| override void | OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx) |
| override bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| override void | OnStoreSave (ParamsWriteContext ctx) |
| override void | OnWasAttached (EntityAI parent, int slot_id) |
| override void | OnWasDetached (EntityAI parent, int slot_id) |
| override void | SetActions () |
| void | SetMapStateOpen (bool state, PlayerBase player) |
| displays open/closed selections; 1 == opened | |
| override bool | ShowZonesHealth () |
| void | SyncMapMarkers () |
Private Attributes | |
| string | m_2D_preload_type |
| bool | m_allowsDOF |
| float | m_blur_float |
| int | m_CurrentOpticMode |
| int | m_CurrentOpticModeLocal |
| bool | m_data_set |
| bool m_reddot_displayed bool | m_isNVOptic = false |
| ref array< float > | m_lens_array |
| ref array< float > | m_mask_array |
| float | m_nearplane_override |
| string | m_optic_sight_material |
| string | m_optic_sight_texture |
| ref array< float > | m_OpticsDOFProperties |
| EntityAI | m_Parent |
| int | m_reddot_index |
| Private Attributes inherited from InventoryItemSuper | |
| string | m_AttachSound = "Offroad_Wheel_Attach_SoundSet" |
| string | m_Description |
| string | m_DetachSound = "Offroad_Wheel_Remove_SoundSet" |
| string | m_DisplayName |
| ref array< ref MapMarker > | m_MapMarkerArray |
| string | m_TextureClosed |
| string | m_TextureLegend |
| string | m_TextureOpened |
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.
|
inlineprotected |
returns 'true' for non-magnifying optics
Definition at line 487 of file itemoptics.c.
References m_allowsDOF.
Referenced by Weapon::HideWeaponBarrel().
Definition at line 3 of file m4_carryhandleoptic.c.
|
private |
switches to optics mode if possible
Referenced by ActionViewBinoculars::EnterOptics(), ActionViewOptics::EnterOptics(), ActionZoomIn::OnEndServer(), and DayZPlayer::SwitchOptics().
|
private |
switches out of optics mode (if possible)
Referenced by ActionViewOptics::ExitOptics(), ActionZoomOut::OnEndServer(), and DayZPlayer::SwitchOptics().
|
inlineprotected |
Definition at line 497 of file itemoptics.c.
|
inlineprotected |
Definition at line 526 of file itemoptics.c.
References m_CurrentOpticMode.
Referenced by ActionToggleNVMode::SwitchMode(), StarlightOptic::UpdateSelectionVisibility(), and UpdateSelectionVisibility().
|
private |
returns fov value at current index, or 'OpticsInfo.opticsZoomInit' config value (non-zooming optics)
Referenced by ManBase::HideClothing(), and HoldBreathFOVEffect().
|
inlineprotected |
Returns the ItemOpticsType of this ItemOptics instance.
Definition at line 201 of file itemoptics.c.
Referenced by InitReddotData(), IsUsingOptics2DModel(), and OnDrawOptics2D().
|
inlineprotected |
Definition at line 565 of file itemoptics.c.
References m_nearplane_override.
Definition at line 548 of file itemoptics.c.
References m_OpticsDOFProperties.
|
inlineprotected |
Definition at line 560 of file itemoptics.c.
References m_blur_float.
Definition at line 556 of file itemoptics.c.
References m_lens_array.
Definition at line 552 of file itemoptics.c.
References m_mask_array.
|
inlineprotected |
Definition at line 11 of file poweredoptic_base.c.
References m_Player.
|
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 Weapon::CanEnterIronsights().
|
inlineprivate |
Definition at line 34 of file huntingoptic.c.
References HideSelection().
Referenced by ActionViewBinoculars::EnterOptics(), ActionViewOptics::EnterOptics(), HideSelection(), HuntingOptic(), OnOpticEnter(), OnOpticEnter(), StarlightOptic::OnOpticEnter(), OnWasAttached(), OnWasDetached(), ShowSelection(), StarlightOptic::UpdateSelectionVisibility(), and UpdateSelectionVisibility().
|
inlineprivate |
Definition at line 5 of file huntingoptic.c.
References HideSelection().
|
inlineprotected |
Definition at line 570 of file itemoptics.c.
References g_Game, GetType(), m_2D_preload_type, and path.
Referenced by ItemOptics().
|
inlineprotected |
Definition at line 457 of file itemoptics.c.
References DayZPlayerCameraOptics(), g_Game, GetType(), m_nearplane_override, Math::Max(), and path.
Referenced by ItemOptics().
|
inlineprotected |
optics with more than 1x zoom do not allow DOF changes
Definition at line 430 of file itemoptics.c.
References GameConstants::DZPLAYER_CAMERA_FOV_IRONSIGHTS, g_Game, GetType(), and path.
Referenced by InitOpticsPPInfo().
|
inlineprotected |
Definition at line 582 of file itemoptics.c.
References GameConstants::OPTICS_STATE_DAY, and SetCurrentOpticMode().
Referenced by ItemOptics(), and IsSightOnly().
Initializes DOF properties for optic's alternate ironsights (ACOG etc.).
Definition at line 471 of file itemoptics.c.
References g_Game, and GetType().
Referenced by ItemOptics().
|
inlineprotected |
initializes values for optics' post-processes
Definition at line 449 of file itemoptics.c.
References g_Game, GetType(), and path.
Referenced by InitOpticsPPInfo().
|
inlineprotected |
Definition at line 421 of file itemoptics.c.
References InitDOFAvailability(), InitOpticsPP(), m_allowsDOF, m_blur_float, m_isNVOptic, m_lens_array, and m_mask_array.
Referenced by ItemOptics().
|
inlineprotected |
Definition at line 345 of file itemoptics.c.
References ItemOpticsType::FindOptics2DSelection(), g_Game, GetItemOpticsType(), GetType(), IsUsingOptics2DModel(), 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 ActionViewBinoculars::ActionCondition(), ActionViewOptics::ActionCondition(), ActionZoomIn::ActionCondition(), ActionZoomOut::ActionCondition(), DayZPlayer::HandleWeapons(), DayZPlayer::OnDrawOptics2D(), ActionViewOptics::OnEndClient(), ActionViewOptics::OnEndServer(), ActionViewOptics::OnStartAnimationLoopClient(), ActionViewOptics::OnStartAnimationLoopServer(), and StarlightOptic::UpdateSelectionVisibility().
|
inlineprotected |
Definition at line 492 of file itemoptics.c.
References m_isNVOptic.
Referenced by ActionToggleNVMode::ActionCondition().
|
inlineprotected |
Definition at line 213 of file itemoptics.c.
Referenced by DayZPlayer::SwitchOptics().
|
inlineprotected |
Definition at line 218 of file itemoptics.c.
Referenced by DayZPlayer::OnDrawOptics2D().
|
inlineprotected |
Returns whether this ItemOptics uses the 2D optics model.
Definition at line 207 of file itemoptics.c.
References GetItemOpticsType(), and ItemOpticsType::IsUsingOptics2DModel().
Referenced by InitReddotData(), DayZPlayer::OnDrawOptics2D(), and ShowReddot().
|
private |
is optics using ironsights override settings or not
Referenced by DayZPlayer::HandleWeapons().
|
inlineprotected |
Definition at line 239 of file itemoptics.c.
Referenced by GetCurrentNVType(), StarlightOptic::GetCurrentNVType(), and UpdateOpticsReddotVisibility().
|
inlineprotected |
Definition at line 596 of file itemoptics.c.
|
inlineprotected |
Definition at line 180 of file itemoptics.c.
References GetItemOpticsType(), m_optic_sight_material, m_optic_sight_texture, m_reddot_index, ItemOpticsType::SetOptics2DMaterial(), and ItemOpticsType::SetOptics2DTexture().
|
inlineprotected |
Definition at line 290 of file itemoptics.c.
References SetTakeable().
|
inlineprotected |
Definition at line 533 of file itemoptics.c.
References g_Game, and HideSelection().
Referenced by DayZPlayer::SwitchOptics().
|
inlineprotected |
Definition at line 540 of file itemoptics.c.
References g_Game, and ShowSelection().
Referenced by DayZPlayer::SwitchOptics().
|
inlineprotected |
optic-specific behaviour to be defined here (override)
Definition at line 532 of file itemoptics.c.
Referenced by OnStoreLoad(), OnVariablesSynchronized(), and SetCurrentOpticMode().
|
inlineprotected |
Definition at line 310 of file itemoptics.c.
References m_CurrentOpticMode, m_IsStoreLoad, OnOpticModeChange(), and Serializer::Read().
|
inlineprotected |
Definition at line 303 of file itemoptics.c.
References m_CurrentOpticMode, and Serializer::Write().
|
inlineprotected |
Definition at line 334 of file itemoptics.c.
References m_CurrentOpticMode, m_CurrentOpticModeLocal, and OnOpticModeChange().
Definition at line 258 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 271 of file itemoptics.c.
References Class::CastTo(), SetTakeable(), and SetZeroingClampDist().
Definition at line 24 of file huntingoptic.c.
References HideSelection(), m_Parent, and ShowSelection().
|
inlineprotected |
Definition at line 223 of file itemoptics.c.
References g_Game, and ShowReddot().
|
inlineprotected |
Definition at line 231 of file itemoptics.c.
References g_Game, and ShowReddot().
|
inlineprivate |
Definition at line 66 of file huntingoptic.c.
References m_Parent.
Referenced by OnWasAttached(), and ShowSelection().
|
inlineprotected |
Definition at line 589 of file itemoptics.c.
References AddAction().
|
inlineprotected |
Definition at line 520 of file itemoptics.c.
References m_CurrentOpticMode, and OnOpticModeChange().
Referenced by InitOpticMode(), StarlightOptic::InitOpticMode(), IsSightOnly(), and ActionToggleNVMode::SwitchMode().
|
inlineprotected |
Definition at line 6 of file poweredoptic_base.c.
References m_Player.
|
private |
Referenced by OnWasAttached(), and OnWasDetached().
|
inlineprotected |
Definition at line 383 of file itemoptics.c.
References ErrorEx, g_Game, InitReddotData(), IsUsingOptics2DModel(), m_data_set, m_optic_sight_material, m_optic_sight_texture, and m_reddot_index.
Referenced by OnWorkStart(), OnWorkStop(), and UpdateOpticsReddotVisibility().
|
inlineprivate |
Definition at line 44 of file huntingoptic.c.
References HideSelection(), ParentUsesWinchesterTypeMount(), and ShowSelection().
Referenced by ActionViewBinoculars::ExitOptics(), ActionViewOptics::ExitOptics(), OnOpticExit(), OnWasAttached(), OnWasDetached(), ShowSelection(), StarlightOptic::UpdateSelectionVisibility(), and UpdateSelectionVisibility().
|
inlineprotected |
Definition at line 16 of file poweredoptic_base.c.
References m_IsActionActive.
|
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
Referenced by DayZPlayer::HandleWeapons().
|
private |
sets zeroing to next defined (respective to current) value in zeroing config array
Referenced by DayZPlayer::HandleWeapons().
|
inlineprotected |
Definition at line 22 of file poweredoptic_base.c.
References m_IsActionActive.
|
inlineprotected |
Definition at line 246 of file itemoptics.c.
References IsWorking(), and ShowReddot().
Referenced by DayZPlayerCameraBase::UpdateBatteryOptics().
|
inlineprotected |
Definition at line 587 of file itemoptics.c.
Referenced by OnOpticModeChange().
|
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 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().
|
protected |
Definition at line 4 of file poweredoptic_base.c.
Referenced by StartWorkServer(), and StopWorkServer().
Definition at line 6 of file itemoptics.c.
Referenced by InitOpticsPPInfo(), and IsNVOptic().
Definition at line 16 of file itemoptics.c.
Referenced by ItemOptics(), GetOpticsPPLens(), and InitOpticsPPInfo().
Definition at line 15 of file itemoptics.c.
Referenced by ItemOptics(), GetOpticsPPMask(), and InitOpticsPPInfo().
|
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(), OnDrawOptics2D(), and ShowReddot().
|
private |
Definition at line 12 of file itemoptics.c.
Referenced by InitReddotData(), OnDrawOptics2D(), and ShowReddot().
Definition at line 17 of file itemoptics.c.
Referenced by ItemOptics(), and GetOpticsDOF().
|
private |
Definition at line 3 of file huntingoptic.c.
Referenced by OnWasAttached(), OnWasDetached(), and ParentUsesWinchesterTypeMount().
|
protected |
Definition at line 3 of file poweredoptic_base.c.
Referenced by GetPlayer(), and SetPlayer().
|
private |
Definition at line 9 of file itemoptics.c.
Referenced by InitReddotData(), OnDrawOptics2D(), and ShowReddot().