Защищенные члены | |
void | OnDrawOptics2D () |
ItemOpticsType | GetItemOpticsType () |
Returns the ItemOpticsType of this ItemOptics instance. | |
bool | IsUsingOptics2DModel () |
Returns whether this ItemOptics uses the 2D optics model. | |
bool | IsSightOnly () |
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< float > | GetOpticsDOF () |
ref array< float > | GetOpticsPPMask () |
ref array< float > | GetOpticsPPLens () |
float | GetOpticsPPBlur () |
float | GetNearPlaneValue () |
void | Init2DPreloadType () |
void | InitOpticMode () |
void | UpdateSelectionVisibility () |
override void | SetActions () |
override void | OnDebugSpawn () |
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 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< float > | m_mask_array |
ref array< float > | m_lens_array |
ref array< float > | m_OpticsDOFProperties |
EntityAI | m_Parent |
См. определение в файле ItemOptics.c строка 1