ACE3/addons/minedetector/CfgVehicles.hpp
PabstMirror 6ce625a52f
Cleanup spaces in config macros (#9621)
* Cleanup spaces in config macros

* remove extra whitespace before call

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2023-11-05 12:36:00 -06:00

69 lines
2.6 KiB
C++

class CfgVehicles {
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportWeapons {
MACRO_ADDWEAPON(ACE_VMM3,4);
MACRO_ADDWEAPON(ACE_VMH3,4);
};
};
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Equipment {
class GVAR(metalDetector) {
displayName = CSTRING(MetalDetector);
condition = QUOTE([ACE_player] call FUNC(hasDetector));
statement = "";
icon = QPATHTOF(ui\icon_mineDetector.paa);
exceptions[] = {};
class GVAR(activate) {
displayName = CSTRING(ActivateDetector);
condition = QUOTE(call FUNC(canActivateDetector));
statement = QUOTE(call FUNC(activateDetector));
icon = QPATHTOF(ui\icon_mineDetectorOn.paa);
exceptions[] = {};
};
class GVAR(deactivate) {
displayName = CSTRING(DeactivateDetector);
condition = QUOTE(call FUNC(canDeactivateDetector));
statement = QUOTE(call FUNC(deactivateDetector));
icon = QPATHTOF(ui\icon_mineDetectorOff.paa);
exceptions[] = {};
};
class GVAR(connectHeadphones) {
displayName = CSTRING(ConnectHeadphones);
condition = QUOTE(call FUNC(canConnectHeadphones));
statement = QUOTE([ARR_2(ACE_player,true)] call FUNC(connectHeadphones));
icon = ""; //TODO
exceptions[] = {};
};
class GVAR(disconnectHeadphones) {
displayName = CSTRING(DisconnectHeadphones);
condition = QUOTE(call FUNC(canDisconnectHeadphones));
statement = QUOTE([ARR_2(ACE_player,false)] call FUNC(connectHeadphones));
icon = ""; //TODO
exceptions[] = {};
};
};
};
};
};
class Items_base_F;
class ACE_Explosives_Place: Items_base_F {
GVAR(detectable) = 1;
};
// Editor placed mines
class Static;
class MineGeneric: Static {
GVAR(detectable) = 1;
};
// Zeus placed mines
class ModuleEmpty_F;
class ModuleMine_F: ModuleEmpty_F {
GVAR(detectable) = 1;
};
};