DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Класс ItemOptics
+ Граф наследования:ItemOptics:

Защищенные члены

void SetPlayer (PlayerBase player)
 
PlayerBase GetPlayer ()
 
void StartWorkServer ()
 
void StopWorkServer ()
 

Защищенные данные

PlayerBase m_Player
 
bool m_IsActionActive
 

Закрытые члены

void ItemOptics ()
 
proto native bool EnterOptics ()
 switches to optics mode if possible
 
proto native bool IsInOptics ()
 is weapon in optics mode or not
 
proto native bool ExitOptics ()
 switches out of optics mode (if possible)
 
proto native bool HasWeaponIronsightsOverride ()
 is weapon in optics mode or not
 
proto native bool UseWeaponIronsightsOverride (bool state)
 switches into ironsights override settings
 
proto native bool IsUsingWeaponIronsightsOverride ()
 is optics using ironsights override settings or not
 
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 bool SetStepFOVIndex (int step)
 sets zoom to fov value defined at given in 'discretefov' config array
 
proto native bool StepFOVUp ()
 sets zoom to next defined (respective to current) value in zoom fov config array
 
proto native bool StepFOVDown ()
 sets zoom to previous (respective to current) defined value in zoom fov config array
 
proto native float GetCurrentStepFOV ()
 returns fov value at current index, or 'OpticsInfo.opticsZoomInit' config value (non-zooming optics)
 
proto native int GetStepZeroing ()
 returns position of currently used value in zeroing config array
 
proto native bool SetStepZeroing (int step)
 
proto native bool StepZeroingUp ()
 sets zeroing to next defined (respective to current) value in zeroing config array
 
proto native bool StepZeroingDown ()
 sets zeroing to previous (respective to current) defined value in zeroing config array
 
proto native void GetCameraPoint (out vector pos, out vector dir)
 gets camera position & direction in model space of optics entity
 
proto native float GetZoomInit ()
 gets FOV value, when entering optics
 
proto native float GetZoomMin ()
 gets FOV minimum
 
proto native float GetZoomMax ()
 gets FOV maximum
 
proto native float GetZeroingDistanceZoomMin ()
 Gets Zeroing distance at opticsZoomMin.
 
proto native float GetZeroingDistanceZoomMax ()
 Gets Zeroing distance at opticsZoomMax.
 
proto native void SetZeroingClampDist (float dist)
 Sets zeroing clamp for the optics and updates the clamp if dist > 0. Used when attached to weapon.
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
bool IsWorking ()
 
void UpdateOpticsReddotVisibility ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void OnInventoryExit (Man player)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnVariablesSynchronized ()
 
void InitReddotData ()
 
void ShowReddot (bool state)
 
void InitOpticsPPInfo ()
 
bool InitDOFAvailability ()
 optics with more than 1x zoom do not allow DOF changes
 
void InitOpticsPP (out array< float > mask_array, out array< float > lens_array, out float blur_float)
 initializes values for optics' post-processes
 
void InitCameraOverrideProperties ()
 
bool InitOpticsDOFProperties (out array< float > temp_array)
 Initializes DOF properties for optic's alternate ironsights (ACOG etc.)
 
bool AllowsDOF ()
 returns 'true' for non-magnifying optics
 
bool IsNVOptic ()
 
int GetCurrentNVType ()
 
void SetCurrentOpticMode (int mode)
 
int GetCurrentOpticMode ()
 
void OnOpticModeChange ()
 optic-specific behaviour to be defined here (override)
 
void OnOpticEnter ()
 
void OnOpticExit ()
 
ref array< floatGetOpticsDOF ()
 
ref array< floatGetOpticsPPMask ()
 
ref array< floatGetOpticsPPLens ()
 
float GetOpticsPPBlur ()
 
float GetNearPlaneValue ()
 
void Init2DPreloadType ()
 
void InitOpticMode ()
 
void UpdateSelectionVisibility ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanPutAsAttachment (EntityAI parent)
 
void HuntingOptic ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
override void HideSelection (string selection_name)
 
override void ShowSelection (string selection_name)
 
bool ParentUsesWinchesterTypeMount ()
 
override bool CanPutAsAttachment (EntityAI parent)
 

Закрытые данные

bool m_data_set
 
bool m_allowsDOF
 
bool m_reddot_displayed bool m_isNVOptic = false
 
int m_CurrentOpticMode
 
int m_CurrentOpticModeLocal
 
int m_reddot_index
 
float m_blur_float
 
float m_nearplane_override
 
string m_optic_sight_texture
 
string m_optic_sight_material
 
string m_2D_preload_type
 
ref array< floatm_mask_array
 
ref array< floatm_lens_array
 
ref array< floatm_OpticsDOFProperties
 
EntityAI m_Parent
 

Подробное описание

См. определение в файле ItemOptics.c строка 1