|
bool | IsScreenPositionInSights (vector screenPosition) |
| Returns whether screen position is in located within the sights radius.
|
|
SCR_PIPCamera | GetPIPCamera () |
| Returns the camera used for picture in picture mode or null if none.
|
|
int | GetPIPCameraIndex () |
| Returns the camera index used by this component when enabled.
|
|
override float | GetADSActivationPercentageScript () |
| Called to get the ADS percentage when the sights go active.
|
|
override float | GetADSDeactivationPercentageScript () |
| Called to get the ADS percentage when the sights go inactive.
|
|
bool | IsPIPEnabled () |
|
float | GetMainCameraFOV () |
|
float | GetMainCameraOffset () |
|
void | SetPIPEnabled (bool enabled) |
|
void | UpdateCamera (float timeSlice) |
|
void | UpdateHDR () |
|
void | UpdateScopeMaterial () |
|
override bool | CanFreelook () |
|
void | SCR_2DPIPSightsComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
| Constructor.
|
|
void | ~SCR_2DPIPSightsComponent () |
| Destructor.
|
|
override void | OnSightADSActivated () |
| Called every time the sight is activated.
|
|
override void | OnSightADSDeactivated () |
| Called every time the sight is deactivated.
|
|
override bool | CanFreelook () |
|
SCR_SightsZoomFOVInfo | GetSightsFovInfo () |
|
override float | GetADSActivationPercentageScript () |
| Called to get the ADS percentage when the sights go active.
|
|
override float | GetADSDeactivationPercentageScript () |
| Called to get the ADS percentage when the sights go inactive.
|
|
float | GetReticleOffsetX () |
|
void | GetReticleTextures (out ResourceName reticleTexture, out ResourceName reticleTextureGlow, out ResourceName filterTexture) |
|
void | GetReticleData (out float reticleAngularSize, out float reticlePortion, out float reticleBaseZoom) |
|
float | GetObjectiveFov () |
|
float | GetObjectiveScale () |
|
float | GetVignetteScale () |
|
float | GetMisalignmentDampingSpeed () |
|
float | GetRotationScale () |
|
float | GetRotationDampingSpeed () |
|
float | GetMovementScale () |
|
float | GetMovementDampingSpeed () |
|
float | GetRollScale () |
|
float | GetRollDampingSpeed () |
|
float | GetMisalignmentScale () |
|
float | GetVignetteMoveSpeed () |
|
float | GetMotionBlurScale () |
|
float | GetMotionBlurMax () |
|
SCR_EPIPZeroingType | GetZeroType () |
|
float | GetMagnification () |
|
bool | GetIsOpticsHidden () |
|
ScriptInvokerVoid | OnSetupOpticImage () |
|
ScriptInvokerBase< On2DOpticsIlluminationChange > | OnIlluminationChange () |
|
float | GetFovZoomed () |
| Get base FOV of the optic, used to determine maximum FOV.
|
|
void | SetFovZoomed (float value) |
| Set base FOV of the optic. Negative value means magnification to compute new m_fFovZoomed with.
|
|
float | GetNearPlane () |
|
int | GetAnimationActivationDelay () |
|
int | GetAnimationDeactivationDelay () |
|
float | GetAnimationEnterTime () |
|
float | GetAnimationSpeedBlur () |
|
bool | GetIsMoving () |
|
bool | GetIsRotating () |
|
float | GetScratchesRoll () |
|
override void | OnInit (IEntity owner) |
| Called during EOnInit.
|
|
override void | OnSightADSActivated () |
| Called every time the sight is activated.
|
|
override void | OnSightADSDeactivated () |
| Called every time the sight is deactivated.
|
|
bool | IsMoveCloseToLimit (vector move, float limitMin) |
| Return true if move X a Y is below limit.
|
|
vector | GetMisalignmentAngles (notnull CameraBase camera) |
| Get sight angles in camera space !
|
|
vector | GetRotation (out vector previousDir, float timeSlice) |
|
vector | GetMovement (out vector previousPos, float timeSlice) |
|
bool | HasIllumination () |
|
Color | GetReticleColor () |
|
Color | GetReticleOutlineColor () |
|
Color | GetReticleIlluminationColor () |
|
float | GetCurrentReticleOffsetY () |
|
float | GetCurrentCameraPitchOffset () |
|
vector | GetCameraOffset () |
|
vector | GetCameraAngles () |
|
IEntity | GetCameraLocalTransform (out vector matrix[4]) |
| Return actual parent (weapon) with calculated transformation in relation to it.
|
|
void | SetObjectiveFov (float objectiveFov) |
|
void | SetObjectiveScale (float objectiveScale) |
|
void | SetReticleBaseZoom (float reticleBaseZoom) |
|
void | SetReticleAngularSize (float reticleAngularSize) |
|
void | SetReticlePortion (float reticlePortion) |
|
void | SetReticleOffsetX (float reticleOffsetX) |
|
void | SetReticleOffsetY (float reticleOffsetY) |
|
void | OnInit (IEntity owner) |
| Called during EOnInit.
|
|
void | OnSightADSActivated () |
| Called every time the sight is activated.
|
|
void | OnSightADSPostFrame (IEntity owner, float timeSlice) |
| Called on post-frame as long as sights ADS is active.
|
|
void | OnSightADSDeactivated () |
| Called every time the sight is deactivated.
|
|
float | GetADSActivationPercentageScript () |
| Called to get the ADS percentage when the sights go active.
|
|
float | GetADSDeactivationPercentageScript () |
| Called to get the ADS percentage when the sights go inactive.
|
|
void | ApplyRecoilToCamera (inout vector pOutCameraTransform[4], vector aimModAngles) |
| Applies the given recoil angles to the camera transform according to the type of sight By default this method is empty.
|
|
bool | CanFreelook () |
|
bool | GetDOFRelatedPrefabData (out int opticDOFDistanceScale=-1, out bool forceSimpleDOF=false) |
| Used by SCR_DepthOfFieldEffect to scale the DOF based on each particular ironsight-distance.
|
|
proto external IEntity | GetOwner () |
|
proto external void | ForceSightsZeroValue (vector offset, vector angles, vector turnOffset) |
| Allow to override Zeroing via aim modifier (only works in Workbench)
|
|
proto external void | ForceSightsZeroValueEnablel (bool bOnOff) |
| Disable forced zeroing data.
|
|
proto external bool | IsSightADSActive () |
|
proto external float | GetADSActivationPercentage () |
|
proto external float | GetADSDeactivationPercentage () |
|
proto external bool | AreSightsValid (bool front=true, bool rear=true) |
|
proto external vector | GetSightsRearPosition (bool localSpace=false) |
| Returns additional sights position used for calculating zeroing A vector is calculated from start position to end position and used as direction for calculating zeroing offsets Start position should be the one closer to eye position than end position.
|
|
proto external vector | GetSightsFrontPosition (bool localSpace=false) |
| Returns additional sights position used for calculating zeroing A vector is calculated from start position to end position and used as direction for calculating zeroing offsets End position should be the one further from eye position than start position.
|
|
proto external vector | GetSightsDirection (bool localSpace=false, bool normalize=true) |
| Returns a direction vector from the rear sight position to the front sight position A vector is calculated from the rear sight to the front sight in such a way that GetSightsRearPosition() + GetSightsDirection() == GetSightsFrontPosition()
|
|
proto external vector | GetSightsDirectionUntransformed (bool localSpace=false, bool normalize=true) |
| Like GetSightsDirection, but ignores and bones associated with the sight points.
|
|
proto external vector | GetSightsOffset () |
| Returns the local sights reference point offset.
|
|
proto external bool | GetSightsTransform (out vector transform[4], bool localSpace=false) |
| Returns the transform matrix of the local sights.
|
|
proto external float | GetFOV () |
| Returns current value of field of view.
|
|
proto external vector | GetCurrentSightsRange () |
| Returns current range info value where x: animation value y: distance z: unused.
|
|
proto external SightsFOVInfo | GetFOVInfo () |
| Returns currently selected sights FOV info or null if none.
|
|
proto external float | GetCameraRecoilAmount () |
| Percentage 0...1 of recoil that should be applied to camera when using this sights component.
|
|
proto external bool | GetSightsPriority () |
| Boolean indicating whether this sight component is prioritized.
|
|
proto external bool | GetSightsSkipSwitch () |
| Return true if the sights can be switched to.
|
|
proto external void | SetSightsVisibility (float visFactor) |
| Hide parts of the sight on ADS. 0 means completely visible, 1 means completely hidden.
|
|
proto external PointInfo | GetPositionPointInfo () |
|
proto external PointInfo | GetRearPositionPointInfo () |
|
proto external PointInfo | GetFrontPositionPointInfo () |
|
bool | OnTicksOnRemoteProxy () |
|
|
float | GetFocusFOV () |
|
bool | IsLocalControlledEntity (IEntity pEntity, bool checkHierarchy=true) |
|
CameraBase | CreateCamera (IEntity parent, vector position, vector angles, int cameraIndex, float fov, float nearPlane, float farPlane) |
|
Widget | CreateUI (string layout, string rtTextureName, string rtName, out RTTextureWidget RTTexture, out RenderTargetWidget RTWidget) |
|
void | DestroyCamera (CameraBase camera) |
|
void | Destroy () |
|
override void | EnableReticleIllumination (bool enable) |
| Toggle between illumination modes.
|
|
override void | HandleSightActivation () |
|
override void | HandleSightDeactivation () |
|
override void | OnSightADSPostFrame (IEntity owner, float timeSlice) |
| Called on post-frame as long as sights ADS is active.
|
|
override void | OnInit (IEntity owner) |
| Called during EOnInit.
|
|
override void | ApplyRecoilToCamera (inout vector pOutCameraTransform[4], vector aimModAngles) |
| Applies the given recoil angles to the camera transform according to the type of sight By default this method is empty.
|
|
override void | _WB_AfterWorldUpdate (IEntity owner, float timeSlice) |
|
void | RegisterInputs () |
|
void | UnregisterInputs () |
|
override void | HandleSightActivation () |
|
override void | HandleSightDeactivation () |
|
override void | ApplyRecoilToCamera (inout vector pOutCameraTransform[4], vector aimModAngles) |
| Applies the given recoil angles to the camera transform according to the type of sight By default this method is empty.
|
|
void | SetupFovInfo () |
|
void | SelectZoomLevel (int id) |
| Switch betweem zoom levels from sights.
|
|
void | ActionZoomIn (float value=0.0, EActionTrigger reason=0) |
| Move zoom level up and down based on mouse wheel value.
|
|
void | ActionZoomOut (float value=0.0, EActionTrigger reason=0) |
| Move zoom level up and down based on mouse wheel value.
|
|
void | AdjustZoom (float value) |
| Move zoom level up and down based on mouse wheel value.
|
|
void | ToggleIllumination (float value, EActionTrigger trigger) |
| Action for toggling illumination.
|
|
override float | GetReticleOffsetYTarget () |
|
void | HandleSightActivation () |
|
void | HandleSightDeactivation () |
|
override void | OnSightADSPostFrame (IEntity owner, float timeSlice) |
| Called on post-frame as long as sights ADS is active.
|
|
void | HideObjects () |
| Hides objects to prevent clipping when entering ADS.
|
|
vector | GetSightsRelPosition () |
|
void | EnableReticleIllumination (bool enable) |
| Toggle between illumination modes.
|
|
float | GetReticleOffsetYTarget () |
|
float | GetCameraPitchTarget () |
|
override bool | WB_GetZeroingData (IEntity owner, BaseSightsComponent sights, float weaponAngle, out vector offset, out vector angles) |
| Positive weapon angle tilts weapon upwards (muzzle goes up, stock goes down) Negative weapon angle tilts weapon downwards (muzzle goes down, stock goes up) Called from GameCode, do not remove!
|
|
bool | FindParent (IEntity owner, string eyeBoneName, out IEntity parentWeapon, out int boneIndex) |
|
bool | WB_GetZeroingData (IEntity owner, BaseSightsComponent sights, float weaponAngle, out vector offset, out vector angles) |
| Positive weapon angle tilts weapon upwards (muzzle goes up, stock goes down) Negative weapon angle tilts weapon downwards (muzzle goes down, stock goes up) Called from GameCode, do not remove!
|
|