2015-01-12 09:48:26 +00:00
|
|
|
class CfgACE_Triggers {
|
|
|
|
/* onPlace parameters:
|
|
|
|
0: OBJECT - unit placing
|
|
|
|
1: OBJECT - Placed explosive
|
|
|
|
2: STRING - Magazine classname
|
|
|
|
3: ARRAY - vars
|
|
|
|
Last Index: CfgACE_Triggers config of trigger type.
|
|
|
|
onSetup parameters:
|
|
|
|
0: STRING - Magazine Classname
|
|
|
|
*/
|
|
|
|
class Command {
|
|
|
|
displayName = $STR_ACE_Explosives_clacker_displayName;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\Clacker.paa);
|
|
|
|
onPlace = QUOTE(_this call FUNC(AddClacker);false);
|
2015-01-12 09:48:26 +00:00
|
|
|
requires[] = {"ACE_Clacker"};
|
|
|
|
};
|
|
|
|
class MK16_Transmitter:Command {
|
|
|
|
displayName = $STR_ACE_Explosives_MK16_displayName;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\MK16_Reciever_ca.paa);
|
2015-01-12 09:48:26 +00:00
|
|
|
requires[] = {"ACE_M26_Clacker"};
|
|
|
|
};
|
|
|
|
class DeadManSwitch:Command {
|
|
|
|
displayName = $STR_ACE_Explosives_DeadManSwitch_displayName;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\DeadmanSwitch.paa);
|
2015-01-12 09:48:26 +00:00
|
|
|
requires[] = {"ACE_DeadManSwitch"};
|
|
|
|
};
|
2015-02-04 00:16:47 +00:00
|
|
|
class Cellphone:Command {
|
|
|
|
displayName = $STR_ACE_Explosives_cellphone_displayName;
|
|
|
|
picture = PATHTOF(Data\UI\Cellphone_UI.paa);
|
|
|
|
onPlace = QUOTE(_this call FUNC(addCellphoneIED);false);
|
|
|
|
requires[] = {"ACE_Cellphone"};
|
|
|
|
};
|
2015-01-12 09:48:26 +00:00
|
|
|
class PressurePlate {
|
|
|
|
displayName = $STR_ACE_Explosives_PressurePlate;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\PressurePlate.paa);
|
2015-01-12 09:48:26 +00:00
|
|
|
onPlace = "_dist=GetNumber(ConfigFile >> 'CfgMagazines' >> (_this select 2) >> 'ACE_Triggers' >> 'PressurePlate' >> 'digDistance');_ex=_this select 1;_ex setPosATL ((getPosATL _ex) vectorDiff ((VectorUp _ex) vectorCrossProduct [0,0,_dist]));false";
|
|
|
|
};
|
|
|
|
class IRSensor {
|
|
|
|
displayName = $STR_ACE_Explosives_IRSensor;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\PressurePlate.paa);
|
2015-01-12 09:48:26 +00:00
|
|
|
onPlace = "false";
|
|
|
|
};
|
|
|
|
class Timer {
|
|
|
|
displayName = $STR_ACE_Explosives_timerName;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(data\UI\Timer.paa);
|
|
|
|
onPlace = QUOTE([ARR_2(_this select 1,(_this select 3) select 0)] call FUNC(startTimer);false);
|
|
|
|
onSetup = QUOTE(_this call FUNC(openTimerSetUI);true);
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
|
|
|
class Tripwire {
|
|
|
|
displayName = $STR_ACE_Explosives_TripWire;
|
2015-01-15 19:13:12 +00:00
|
|
|
picture = PATHTOF(Data\UI\Tripwire.paa);
|
2015-01-12 09:48:26 +00:00
|
|
|
onPlace = "false";
|
|
|
|
};
|
|
|
|
};
|