2015-04-10 03:56:19 +00:00
|
|
|
class ACE_Triggers {
|
2018-06-22 19:41:43 +00:00
|
|
|
/* onPlace Parameters:
|
|
|
|
* 0: Unit placing <OBJECT>
|
|
|
|
* 1: Explosive <OBJECT>
|
|
|
|
* 2: Magazine classname <STRING>
|
|
|
|
* 3: Additional arguments <ARRAY>
|
|
|
|
* - Same as those passed to FUNC(placeExplosive) for specific trigger type
|
|
|
|
* - Last element is ACE_Triggers config of the trigger type <CONFIG>
|
|
|
|
*
|
|
|
|
* onSetup Parameters:
|
|
|
|
* 0: Explosive <OBJECT>
|
|
|
|
* 1: Magazine classname <STRING>
|
|
|
|
*
|
|
|
|
* For both, expected return type is BOOL.
|
|
|
|
* True indicates manual handling of explosive setup/placement.
|
|
|
|
*/
|
2015-04-06 20:20:11 +00:00
|
|
|
class Command {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 1;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(clacker_displayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\Clacker.paa);
|
2024-08-14 17:53:40 +00:00
|
|
|
onPlace = QUOTE(_this call FUNC(addClacker); false);
|
2015-04-06 20:20:11 +00:00
|
|
|
requires[] = {"ACE_Clacker"};
|
|
|
|
};
|
2016-01-15 09:20:49 +00:00
|
|
|
class MK16_Transmitter: Command {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 1;
|
2016-01-15 10:47:40 +00:00
|
|
|
displayName = CSTRING(M152_displayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\MK16_Reciever_ca.paa);
|
2015-04-06 20:20:11 +00:00
|
|
|
requires[] = {"ACE_M26_Clacker"};
|
|
|
|
};
|
2016-01-15 09:20:49 +00:00
|
|
|
class DeadManSwitch: Command {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 1;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(DeadManSwitch_displayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\DeadmanSwitch.paa);
|
2015-04-06 20:20:11 +00:00
|
|
|
requires[] = {"ACE_DeadManSwitch"};
|
|
|
|
};
|
2016-01-15 09:20:49 +00:00
|
|
|
class Cellphone: Command {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 1;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(cellphone_displayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\Cellphone_UI.paa);
|
2024-08-14 17:53:40 +00:00
|
|
|
onPlace = QUOTE(_this call FUNC(addCellphoneIED); false);
|
2015-04-06 20:20:11 +00:00
|
|
|
requires[] = {"ACE_Cellphone"};
|
|
|
|
};
|
|
|
|
class PressurePlate {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 0;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(PressurePlate);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\PressurePlate.paa);
|
2015-08-16 06:51:44 +00:00
|
|
|
onPlace = QUOTE(false);
|
2015-04-06 20:20:11 +00:00
|
|
|
};
|
|
|
|
class IRSensor {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 0;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(IRSensor);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\PressurePlate.paa);
|
2017-10-07 11:37:59 +00:00
|
|
|
onPlace = QUOTE(false);
|
2015-04-06 20:20:11 +00:00
|
|
|
};
|
|
|
|
class Timer {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 1;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(timerName);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(data\UI\Timer.paa);
|
2023-11-05 18:36:00 +00:00
|
|
|
onPlace = QUOTE([ARR_4(_this select 1,_this select 3 select 0,nil,_this select 0)] call FUNC(startTimer); false);
|
2018-06-22 19:41:43 +00:00
|
|
|
onSetup = QUOTE(_this call FUNC(openTimerUI));
|
2015-04-06 20:20:11 +00:00
|
|
|
};
|
|
|
|
class Tripwire {
|
2015-07-16 04:52:47 +00:00
|
|
|
isAttachable = 0;
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(TripWire);
|
2016-04-08 18:34:50 +00:00
|
|
|
picture = QPATHTOF(Data\UI\Tripwire.paa);
|
2017-10-07 11:37:59 +00:00
|
|
|
onPlace = QUOTE(false);
|
2015-04-06 20:20:11 +00:00
|
|
|
};
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|