2015-01-13 04:17:52 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_Equipment {
|
|
|
|
class ACE_PutInEarplugs {
|
2015-03-16 15:56:05 +00:00
|
|
|
displayName = "$STR_ACE_Hearing_EarPlugs_On";
|
|
|
|
condition = QUOTE( !([_player] call FUNC(hasEarPlugsIn)) && {'ACE_EarPlugs' in items _player} );
|
2015-03-24 18:43:49 +00:00
|
|
|
exceptions[] = {"isNotInside"};
|
2015-01-13 04:17:52 +00:00
|
|
|
statement = QUOTE( [_player] call FUNC(putInEarPlugs) );
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.5;
|
2015-01-14 03:45:09 +00:00
|
|
|
icon = PATHTOF(UI\ACE_earplugs_x_ca.paa);
|
2015-01-13 04:17:52 +00:00
|
|
|
hotkey = "E";
|
|
|
|
};
|
|
|
|
class ACE_RemoveEarplugs {
|
2015-03-16 15:56:05 +00:00
|
|
|
displayName = "$STR_ACE_Hearing_EarPlugs_Off";
|
2015-01-13 04:17:52 +00:00
|
|
|
condition = QUOTE( [_player] call FUNC(hasEarPlugsIn) );
|
2015-03-24 18:43:49 +00:00
|
|
|
exceptions[] = {"isNotInside"};
|
2015-01-13 04:17:52 +00:00
|
|
|
statement = QUOTE( [_player] call FUNC(removeEarPlugs) );
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.5;
|
2015-01-14 03:45:09 +00:00
|
|
|
icon = PATHTOF(UI\ACE_earplugs_x_ca.paa);
|
2015-01-13 04:17:52 +00:00
|
|
|
hotkey = "E";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class ReammoBox_F;
|
|
|
|
class NATO_Box_Base;
|
|
|
|
class EAST_Box_Base;
|
|
|
|
class IND_Box_Base;
|
|
|
|
class FIA_Box_Base_F;
|
|
|
|
|
|
|
|
class Box_NATO_Support_F: NATO_Box_Base {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class B_supplyCrate_F: ReammoBox_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_East_Support_F: EAST_Box_Base {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class O_supplyCrate_F: B_supplyCrate_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_IND_Support_F: IND_Box_Base {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_FIA_Support_F: FIA_Box_Base_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class I_supplyCrate_F: B_supplyCrate_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class IG_supplyCrate_F: ReammoBox_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class C_supplyCrate_F: ReammoBox_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
|
|
|
class TransportItems {
|
2015-03-16 15:56:05 +00:00
|
|
|
MACRO_ADDITEM(ACE_EarPlugs,12);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
2015-03-16 23:28:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Module_F;
|
|
|
|
class ACE_ModuleHearing: Module_F {
|
|
|
|
author = "$STR_ACE_Common_ACETeam";
|
|
|
|
category = "ACE";
|
|
|
|
displayName = "Hearing";
|
|
|
|
function = QFUNC(moduleHearing);
|
|
|
|
scope = 2;
|
|
|
|
isGlobal = 1;
|
2015-03-23 19:02:35 +00:00
|
|
|
icon = PATHTOF(UI\Icon_Module_Hearing_ca.paa);
|
2015-03-16 23:28:37 +00:00
|
|
|
class Arguments {
|
|
|
|
class EnableCombatDeafness {
|
|
|
|
displayName = "Enable combat deafness?";
|
|
|
|
description = "Enable combat deafness?";
|
|
|
|
typeName = "BOOL";
|
|
|
|
class values {
|
|
|
|
class Yes { name = "Yes"; value = 1; default = 1; };
|
|
|
|
class No { name = "No"; value = 0; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|