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-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(EarPlugs_On);
|
2017-02-16 16:16:46 +00:00
|
|
|
condition = QUOTE(GVAR(EnableCombatDeafness) && {!([_player] call FUNC(hasEarPlugsIn)) && {'ACE_EarPlugs' in items _player}});
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
|
2015-01-13 04:17:52 +00:00
|
|
|
statement = QUOTE( [_player] call FUNC(putInEarPlugs) );
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.5;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
class ACE_RemoveEarplugs {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(EarPlugs_Off);
|
2017-02-16 16:16:46 +00:00
|
|
|
condition = QUOTE( GVAR(EnableCombatDeafness) && {[_player] call FUNC(hasEarPlugsIn)});
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming", "isNotInside", "isNotSitting"};
|
2015-01-13 04:17:52 +00:00
|
|
|
statement = QUOTE( [_player] call FUNC(removeEarPlugs) );
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.5;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\ACE_earplugs_x_ca.paa);
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
2015-05-30 04:37:41 +00:00
|
|
|
class ACE_Module;
|
|
|
|
class ACE_ModuleHearing: ACE_Module {
|
2015-05-27 20:04:41 +00:00
|
|
|
author = ECSTRING(common,ACETeam);
|
2015-03-16 23:28:37 +00:00
|
|
|
category = "ACE";
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(Module_DisplayName);
|
2015-03-16 23:28:37 +00:00
|
|
|
function = QFUNC(moduleHearing);
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1;
|
2015-03-16 23:28:37 +00:00
|
|
|
isGlobal = 1;
|
2015-10-19 04:34:11 +00:00
|
|
|
isSingular = 1;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Icon_Module_Hearing_ca.paa);
|
2015-03-16 23:28:37 +00:00
|
|
|
class Arguments {
|
|
|
|
class EnableCombatDeafness {
|
2016-02-06 16:59:31 +00:00
|
|
|
displayName = CSTRING(EnableCombatDeafness_DisplayName);
|
|
|
|
description = CSTRING(EnableCombatDeafness_Description);
|
2015-03-16 23:28:37 +00:00
|
|
|
typeName = "BOOL";
|
2015-05-09 18:37:57 +00:00
|
|
|
defaultValue = 1;
|
2015-03-16 23:28:37 +00:00
|
|
|
};
|
2015-08-02 17:15:26 +00:00
|
|
|
class DisableEarRinging {
|
2016-02-06 16:59:31 +00:00
|
|
|
displayName = CSTRING(DisableEarRinging_DisplayName);
|
|
|
|
description = CSTRING(DisableEarRinging_Description);
|
2015-08-02 17:15:26 +00:00
|
|
|
typeName = "NUMBER";
|
|
|
|
class values {
|
|
|
|
class DoNotForce {
|
|
|
|
default = 1;
|
2015-08-06 17:24:56 +00:00
|
|
|
name = ECSTRING(common,DoNotForce);
|
2015-08-02 17:15:26 +00:00
|
|
|
value = -1;
|
|
|
|
};
|
2015-08-02 17:30:35 +00:00
|
|
|
/* Probably don't want to allow forcing ear ringing for people who have serious problems with the effect
|
2015-08-02 17:15:26 +00:00
|
|
|
class NotDisabled {
|
|
|
|
name = ECSTRING(common,No);
|
|
|
|
value = 0;
|
|
|
|
};
|
2015-08-02 17:30:35 +00:00
|
|
|
*/
|
2015-08-02 17:15:26 +00:00
|
|
|
class IsDisabled {
|
|
|
|
name = ECSTRING(common,Yes);
|
|
|
|
value = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-08-08 19:40:19 +00:00
|
|
|
class enabledForZeusUnits {
|
|
|
|
displayName = CSTRING(enabledForZeusUnits_DisplayName);
|
|
|
|
description = CSTRING(enabledForZeusUnits_Description);
|
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
2015-11-11 02:44:55 +00:00
|
|
|
class autoAddEarplugsToUnits {
|
|
|
|
displayName = CSTRING(autoAddEarplugsToUnits_DisplayName);
|
|
|
|
description = CSTRING(autoAddEarplugsToUnits_Description);
|
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
2015-05-11 22:24:12 +00:00
|
|
|
};
|
2015-05-12 00:29:32 +00:00
|
|
|
class ModuleDescription {
|
2015-05-27 17:04:25 +00:00
|
|
|
description = CSTRING(Module_Description);
|
2015-03-16 23:28:37 +00:00
|
|
|
};
|
|
|
|
};
|
2015-01-13 04:17:52 +00:00
|
|
|
};
|