Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WeaponFiremodeCountCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(defvalue: SCR_ComparerOperator.GREATER_THAN.ToString(), desc: "Condition operator", uiwidget: UIWidgets.ComboBox, enumType: SCR_ComparerOperator)]
6 private SCR_ComparerOperator m_eOperator;
7
8 [Attribute("2", UIWidgets.EditBox, "Min firemodes, 2 = safety & default usually")]
9 private int m_iValue;
10
11 //------------------------------------------------------------------------------------------------
14 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
15 {
16 BaseMuzzleComponent muzzle = data.GetCurrentMuzzle();
17 return GetReturnResult(muzzle && SCR_Comparer<int>.Compare(m_eOperator, muzzle.GetFireModesCount(), m_iValue));
18 }
19}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_ComparerOperator
Definition SCR_Comparer.c:3
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_VONRadialDisplay Compare
A single available action condition representation.
Returns true if current weapon's number of firemodes matches current condition.
SCR_FieldOfViewSettings Attribute