Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_VehicleSpeedCondition.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
()]
3
class
SCR_VehicleSpeedCondition
:
SCR_AvailableActionCondition
4
{
5
[
Attribute
(defvalue:
SCR_ComparerOperator
.GREATER_THAN.ToString(),
desc
:
"Condition operator"
, uiwidget:
UIWidgets
.ComboBox, enumType:
SCR_ComparerOperator
)]
6
protected
SCR_ComparerOperator
m_eOperator
;
7
8
[
Attribute
(
"2"
,
UIWidgets
.EditBox,
"Speed compare value\n[km/h]"
,
""
)]
9
protected
float
m_fValue
;
10
11
protected
SignalsManagerComponent
m_Signals
;
12
protected
int
m_iSpeedID
= -1;
13
protected
const
string
SIGNAL_NAME
=
"speed"
;
14
15
//------------------------------------------------------------------------------------------------
18
override
bool
IsAvailable
(notnull
SCR_AvailableActionsConditionData
data
)
19
{
20
SignalsManagerComponent
signals =
data
.GetCurrentVehicleSignals();
21
if
(!signals ||
m_Signals
!= signals)
22
{
23
m_Signals
= signals;
24
m_iSpeedID
= -1;
25
return
false
;
26
}
27
28
if
(
m_iSpeedID
== -1)
29
m_iSpeedID
= signals.AddOrFindSignal(
SIGNAL_NAME
);
30
31
return
GetReturnResult
(
m_iSpeedID
!= -1 && SCR_Comparer<int>.
Compare
(
m_eOperator
, signals.GetSignalValue(
m_iSpeedID
), (
int
)
m_fValue
));
32
}
33
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_ComparerOperator
SCR_ComparerOperator
Definition
SCR_Comparer.c:3
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
Compare
SCR_VONRadialDisplay Compare
Definition
SCR_ContentBrowser_AddonsSubMenu.c:1693
SCR_AvailableActionCondition
A single available action condition representation.
Definition
SCR_AvailableActionCondition.c:4
SCR_AvailableActionCondition::GetReturnResult
bool GetReturnResult(bool desiredResult)
Definition
SCR_AvailableActionCondition.c:22
SCR_AvailableActionsConditionData
Definition
SCR_AvailableActionsConditionData.c:6
SCR_VehicleSpeedCondition
Returns true if current vehicle speed matches the condition.
Definition
SCR_VehicleSpeedCondition.c:4
SCR_VehicleSpeedCondition::m_eOperator
SCR_ComparerOperator m_eOperator
Definition
SCR_VehicleSpeedCondition.c:6
SCR_VehicleSpeedCondition::IsAvailable
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
Definition
SCR_VehicleSpeedCondition.c:18
SCR_VehicleSpeedCondition::m_iSpeedID
int m_iSpeedID
Definition
SCR_VehicleSpeedCondition.c:12
SCR_VehicleSpeedCondition::m_fValue
float m_fValue
Definition
SCR_VehicleSpeedCondition.c:8
SCR_VehicleSpeedCondition::m_Signals
SignalsManagerComponent m_Signals
Definition
SCR_VehicleSpeedCondition.c:11
SCR_VehicleSpeedCondition::SIGNAL_NAME
const string SIGNAL_NAME
Definition
SCR_VehicleSpeedCondition.c:13
SignalsManagerComponent
Definition
SignalsManagerComponent.c:13
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Vehicle
SCR_VehicleSpeedCondition.c
Generated by
1.17.0