|
override int | GetCount () |
| Returns the number of available elements.
|
|
override int | GetCurrentIndex () |
| Returns currently selected element or -1 if none.
|
|
override bool | IsAdjusting () |
| Returns true when current FOV of the optic does not match the target FOV.
|
|
override float | GetBaseFOV () |
| Returns max field of view provided by this info.
|
|
int | GetCount () |
| Returns the number of available elements.
|
|
int | GetCurrentIndex () |
| Returns currently selected element or -1 if none.
|
|
bool | SetNext (bool allowOverflow=true) |
| Selects next available element.
|
|
bool | SetPrevious (bool allowUnderflow=true) |
| Selects previous available element.
|
|
bool | IsAdjusting () |
| Returns true when current FOV of the optic does not match the target FOV.
|
|
float | GetBaseFOV () |
| Returns true when current FOV of the optic does not match the target FOV.
|
|
proto external float | GetFOV () |
| Returns current field of view provided by this info.
|
|
|
override void | SetIndex (int index) |
| Set provided element as the current one.
|
|
override void | OnInit (IEntity owner, BaseSightsComponent sights) |
| Called on initialization.
|
|
override void | OnUpdate (IEntity owner, BaseSightsComponent sights, float timeSlice) |
| Called every frame when active to update current state.
|
|
override float | GetCurrentFOV () |
| Returns current field of view provided by this info.
|
|
int | GetNextIndex (bool allowOverflow=true) |
| Returns the index of next available element.
|
|
int | GetPreviousIndex (bool allowUnderflow=true) |
| Returns the index of previous available element.
|
|
void | SetIndex (int index) |
| Set provided element as the current one.
|
|
void | OnInit (IEntity owner, BaseSightsComponent sights) |
| Called on initialization.
|
|
void | OnUpdate (IEntity owner, BaseSightsComponent sights, float timeSlice) |
| Called every frame when active to update current state.
|
|
float | GetCurrentFOV () |
| Return current field of view of this info.
|
|
◆ GetBaseFOV()
override float SCR_VariableSightsFOVInfo.GetBaseFOV |
( |
| ) |
|
Returns max field of view provided by this info.
Assumes that first FOV is the largest one. Returns zero if FOVs array is empty.
- Returns
- Returns field of view in degrees.
Implements SCR_BaseVariableSightsFOVInfo.
◆ GetCount()
override int SCR_VariableSightsFOVInfo.GetCount |
( |
| ) |
|
◆ GetCurrentFOV()
override float SCR_VariableSightsFOVInfo.GetCurrentFOV |
( |
| ) |
|
|
protected |
Returns current field of view provided by this info.
- Returns
- Returns field of view in degrees.
Implements ScriptedSightsFOVInfo.
◆ GetCurrentIndex()
override int SCR_VariableSightsFOVInfo.GetCurrentIndex |
( |
| ) |
|
◆ IsAdjusting()
override bool SCR_VariableSightsFOVInfo.IsAdjusting |
( |
| ) |
|
◆ OnInit()
Called on initialization.
- Parameters
-
owner | Parent weapon entity. |
sights | Parent sights component. |
Implements ScriptedSightsFOVInfo.
◆ OnUpdate()
override void SCR_VariableSightsFOVInfo.OnUpdate |
( |
IEntity |
owner, |
|
|
BaseSightsComponent |
sights, |
|
|
float |
timeSlice |
|
) |
| |
|
protected |
Called every frame when active to update current state.
- Parameters
-
owner | Parent weapon entity. |
sights | Parent sights component. |
timeSlice | Delta of time since last update. |
Implements ScriptedSightsFOVInfo.
◆ SetIndex()
override void SCR_VariableSightsFOVInfo.SetIndex |
( |
int |
index | ) |
|
|
protected |
◆ m_aFOVs
ref array<float> SCR_VariableSightsFOVInfo.m_aFOVs |
|
protected |
◆ m_fCurrentFOV
float SCR_VariableSightsFOVInfo.m_fCurrentFOV = 60.0 |
|
protected |
Immediate field of view value.
◆ m_fInterpolationSpeed
float SCR_VariableSightsFOVInfo.m_fInterpolationSpeed |
|
protected |
◆ m_iCurrentIndex
int SCR_VariableSightsFOVInfo.m_iCurrentIndex = -1 |
|
protected |
Currently selected FOV or -1 if none.
The documentation for this interface was generated from the following file:
- Game/Weapon/Sights/SightsFOVInfo/SCR_VariableSightsFOVInfo.c