Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_2DSightsComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_2DSightsComponentClass
 

Functions

SCR_2DSightsComponentClass SCR_2DOpticsComponentClass Attribute ("0", UIWidgets.CheckBox, "Should hide parent of parent object when using 2D sights", category:"2DSights")] protected bool m_bShouldHideParentParentObject
 
protected override void OnSightADSActivated ()
 Called every time the sight is activated. More...
 
protected override void OnSightADSDeactivated ()
 Called every time the sight is deactivated. More...
 
override bool CanFreelook ()
 
protected override void ApplyRecoilToCamera (inout vector pOutCameraTransform[4], vector aimModAngles)
 
void UpdateRecoil (float timeSlice)
 Update vignettes scale based on weapon recoil. More...
 
override void OnSightADSPostFrame (IEntity owner, float timeSlice)
 
protected void SetupFovInfo ()
 
protected void SelectZoomLevel (int id)
 Switch betweem zoom levels from sights. More...
 
protected void SelectNextZoomLevel (float value)
 Move zoom level up and down based on mouse wheel value. More...
 
protected void ToggleIllumination (float value, EActionTrigger trigger)
 Action for toggling illumination. More...
 
protected override float GetReticleOffsetYTarget ()
 
SCR_SightsZoomFOVInfo GetSightsFovInfo ()
 

Variables

protected bool m_bDynamicReticle
 
protected float m_fRecoilScaleMax
 
protected float m_fRecoilTranslationTarget
 
protected float m_fRecoilScaleTranslation
 
protected bool m_bAllowRecoil
 
protected vector m_vLastCameraDir
 
protected vector m_vLastPos
 
protected CharacterAimingComponent m_CharacterAiming
 
protected TurretControllerComponent m_TurretController
 
protected SCR_SightsZoomFOVInfo m_SightsFovInfo
 

Function Documentation

◆ ApplyRecoilToCamera()

protected override void ApplyRecoilToCamera ( inout vector  pOutCameraTransform[4],
vector  aimModAngles 
)

Definition at line 154 of file SCR_2DSightsComponent.c.

◆ Attribute()

SCR_2DSightsComponentClass SCR_2DOpticsComponentClass Attribute ( "0"  ,
UIWidgets.  CheckBox,
"Should hide parent of parent object when using 2D sights"  ,
category:"2DSights"   
)

◆ CanFreelook()

override bool CanFreelook ( )

Definition at line 148 of file SCR_2DSightsComponent.c.

◆ GetReticleOffsetYTarget()

protected override float GetReticleOffsetYTarget ( )

Definition at line 353 of file SCR_2DSightsComponent.c.

◆ GetSightsFovInfo()

SCR_SightsZoomFOVInfo GetSightsFovInfo ( )

Definition at line 366 of file SCR_2DSightsComponent.c.

◆ SelectNextZoomLevel()

protected void SelectNextZoomLevel ( float  value)

Move zoom level up and down based on mouse wheel value.

Definition at line 269 of file SCR_2DSightsComponent.c.

◆ SelectZoomLevel()

protected void SelectZoomLevel ( int  id)

Switch betweem zoom levels from sights.

Definition at line 245 of file SCR_2DSightsComponent.c.

◆ SetupFovInfo()

protected void SetupFovInfo ( )

Definition at line 204 of file SCR_2DSightsComponent.c.

◆ ToggleIllumination()

protected void ToggleIllumination ( float  value,
EActionTrigger  trigger 
)

Action for toggling illumination.

Definition at line 320 of file SCR_2DSightsComponent.c.

◆ UpdateRecoil()

void UpdateRecoil ( float  timeSlice)

Update vignettes scale based on weapon recoil.

Definition at line 163 of file SCR_2DSightsComponent.c.

Variable Documentation

◆ m_bAllowRecoil

protected bool m_bAllowRecoil

Definition at line 25 of file SCR_2DSightsComponent.c.

◆ m_bDynamicReticle

protected bool m_bDynamicReticle

Definition at line 13 of file SCR_2DSightsComponent.c.

◆ m_CharacterAiming

protected CharacterAimingComponent m_CharacterAiming

Definition at line 34 of file SCR_2DSightsComponent.c.

◆ m_fRecoilScaleMax

protected float m_fRecoilScaleMax

Definition at line 16 of file SCR_2DSightsComponent.c.

◆ m_fRecoilScaleTranslation

protected float m_fRecoilScaleTranslation

Definition at line 22 of file SCR_2DSightsComponent.c.

◆ m_fRecoilTranslationTarget

protected float m_fRecoilTranslationTarget

Definition at line 19 of file SCR_2DSightsComponent.c.

◆ m_SightsFovInfo

protected SCR_SightsZoomFOVInfo m_SightsFovInfo

Definition at line 37 of file SCR_2DSightsComponent.c.

◆ m_TurretController

protected TurretControllerComponent m_TurretController

Definition at line 35 of file SCR_2DSightsComponent.c.

◆ m_vLastCameraDir

protected vector m_vLastCameraDir

Definition at line 28 of file SCR_2DSightsComponent.c.

◆ m_vLastPos

protected vector m_vLastPos

Definition at line 31 of file SCR_2DSightsComponent.c.