ACE3/addons/explosives/ACE_Triggers.hpp

63 lines
2.0 KiB
C++
Raw Normal View History

2015-04-10 03:56:19 +00:00
class ACE_Triggers {
2015-07-16 04:52:47 +00:00
/* onPlace parameters:
2015-04-06 20:10:00 +00:00
0: OBJECT - unit placing
1: OBJECT - Placed explosive
2: STRING - Magazine classname
3: ARRAY - vars
2015-04-10 03:56:19 +00:00
Last Index: ACE_Triggers config of trigger type.
2015-04-06 20:10:00 +00:00
onSetup parameters:
0: STRING - Magazine Classname
2015-07-16 04:52:47 +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);
onPlace = QUOTE(_this call FUNC(AddClacker);false);
requires[] = {"ACE_Clacker"};
};
class MK16_Transmitter: Command {
2015-07-16 04:52:47 +00:00
isAttachable = 1;
displayName = CSTRING(M152_displayName);
2016-04-08 18:34:50 +00:00
picture = QPATHTOF(Data\UI\MK16_Reciever_ca.paa);
requires[] = {"ACE_M26_Clacker"};
};
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);
requires[] = {"ACE_DeadManSwitch"};
};
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);
onPlace = QUOTE(_this call FUNC(addCellphoneIED);false);
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);
onPlace = QUOTE(false);
};
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);
onPlace = "false";
};
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);
onPlace = QUOTE([ARR_2(_this select 1,(_this select 3) select 0)] call FUNC(startTimer);false);
onSetup = QUOTE(_this call FUNC(openTimerSetUI);true);
};
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);
onPlace = "false";
};
};