mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Interaction - Add condition to zeus actions (#6665)
* Add conditions to zeus actions * Add condition caching
This commit is contained in:
@ -7,7 +7,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class stance {
|
||||
displayName = "$STR_A3_RscAttributeUnitPos_Title";
|
||||
condition = QUOTE(-1 < (curatorSelected select 0) findIf {_x isKindOf 'CAManBase'});
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION && {-1 < (curatorSelected select 0) findIf {_x isKindOf 'CAManBase'}});
|
||||
|
||||
class prone {
|
||||
displayName = "$STR_Pos_Down";
|
||||
@ -34,7 +34,7 @@ class ACE_ZeusActions {
|
||||
class remoteControl {
|
||||
displayName = "$STR_A3_CfgVehicles_ModuleRemoteControl_F";
|
||||
icon = "\A3\Modules_F_Curator\Data\portraitRemoteControl_ca.paa";
|
||||
condition = QUOTE(-1 < (curatorSelected select 0) findIf {_x isKindOf 'CAManBase'});
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION && {-1 < (curatorSelected select 0) findIf {_x isKindOf 'CAManBase'}});
|
||||
statement = QUOTE( \
|
||||
private _units = curatorSelected select 0; \
|
||||
private _unit = _units param [ARR_2( \
|
||||
@ -52,7 +52,7 @@ class ACE_ZeusActions {
|
||||
class GVAR(repair) {
|
||||
displayName = "$STR_repair";
|
||||
icon = "\A3\ui_f\data\igui\cfg\actions\repair_ca.paa";
|
||||
condition = QUOTE(-1 < (curatorSelected select 0) findIf {_x isKindOf 'AllVehicles' && {!(_x isKindOf 'Man')}});
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION && {-1 < (curatorSelected select 0) findIf {_x isKindOf 'AllVehicles' && {!(_x isKindOf 'Man')}}});
|
||||
statement = QUOTE({if (_x isKindOf 'AllVehicles' && {!(_x isKindOf 'Man')}) then {_x setDamage 0}} forEach (curatorSelected select 0));
|
||||
};
|
||||
};
|
||||
@ -64,6 +64,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class behaviour {
|
||||
displayName = "$STR_Combat_Mode";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class careless {
|
||||
displayName = "$STR_Combat_Careless";
|
||||
@ -93,6 +94,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class speed {
|
||||
displayName = "$STR_HC_Menu_Speed";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class limited {
|
||||
displayName = "$STR_Speed_Limited";
|
||||
@ -113,6 +115,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class formation {
|
||||
displayName = "$STR_Formation";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class wedge {
|
||||
displayName = "$STR_Wedge";
|
||||
@ -169,6 +172,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class behaviour {
|
||||
displayName = "$STR_Combat_Mode";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class careless {
|
||||
displayName = "$STR_Combat_Careless";
|
||||
@ -198,6 +202,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class speed {
|
||||
displayName = "$STR_HC_Menu_Speed";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class limited {
|
||||
displayName = "$STR_Speed_Limited";
|
||||
@ -218,6 +223,7 @@ class ACE_ZeusActions {
|
||||
|
||||
class formation {
|
||||
displayName = "$STR_Formation";
|
||||
condition = QUOTE(ZEUS_ACTION_CONDITION);
|
||||
|
||||
class wedge {
|
||||
displayName = "$STR_Wedge";
|
||||
|
Reference in New Issue
Block a user