2015-01-13 03:23:14 +00:00
class CfgVehicles {
class Man ;
class CAManBase : Man {
class ACE_SelfActions {
class ACE_Equipment {
class ACE_SwapBarrel {
2015-05-27 17:04:25 +00:00
displayName = CSTRING ( SwapBarrel ) ;
2015-01-13 03:23:14 +00:00
condition = QUOTE ( ' ACE_SpareBarrel ' in items _player & & { getNumber ( configFile > > ' CfgWeapons ' > > currentWeapon _player > > ' ACE_Overheating_allowSwapBarrel ' ) = = 1 } ) ;
2015-01-14 01:26:55 +00:00
statement = QUOTE ( [ ARR_2 ( _player , currentWeapon _player ) ] call FUNC ( swapBarrel ) ; ) ;
2015-01-13 03:23:14 +00:00
showDisabled = 0 ;
priority = 3 ;
2015-01-14 00:07:32 +00:00
icon = QUOTE ( PATHTOF ( UI \ spare_barrel_ca . paa ) ) ;
2015-01-13 03:23:14 +00:00
} ;
2015-04-11 22:34:29 +00:00
class ACE_CheckTemperature {
2015-05-27 17:04:25 +00:00
displayName = CSTRING ( CheckTemperatureShort ) ;
2015-04-11 22:34:29 +00:00
condition = " switch (currentWeapon _player) do {case (''): {false}; case (primaryWeapon _player); case (secondaryWeapon _player); case (handgunWeapon _player): {true}; default {false}} " ;
2015-06-09 14:17:05 +00:00
exceptions [ ] = { " isNotInside " , " isNotSitting " } ;
2015-04-11 22:34:29 +00:00
statement = QUOTE ( [ ARR_2 ( _player , currentWeapon _player ) ] call FUNC ( CheckTemperature ) ; ) ;
showDisabled = 0 ;
priority = 2.9 ;
icon = QUOTE ( PATHTOF ( UI \ temp_ca . paa ) ) ;
} ;
2015-01-13 03:23:14 +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-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class B_supplyCrate_F : ReammoBox_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class Box_East_Support_F : EAST_Box_Base {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class O_supplyCrate_F : B_supplyCrate_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class Box_IND_Support_F : IND_Box_Base {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class Box_FIA_Support_F : FIA_Box_Base_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class I_supplyCrate_F : B_supplyCrate_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class IG_supplyCrate_F : ReammoBox_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class C_supplyCrate_F : ReammoBox_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 2 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
class ACE_Box_Misc : Box_NATO_Support_F {
class TransportItems {
2015-03-11 22:36:40 +00:00
MACRO_ADDITEM ( ACE_SpareBarrel , 6 ) ;
2015-01-13 03:23:14 +00:00
} ;
} ;
// Add ACE_SpareBarrel to every machine gunner.
# define MACRO_ADDSPAREBARREL \
items [ ] = { " FirstAidKit " , " ACE_SpareBarrel " } ; \
respawnitems [ ] = { " FirstAidKit " , " ACE_SpareBarrel " } ;
// NATO
class B_Soldier_02_f ; class B_soldier_AR_F : B_Soldier_02_f { MACRO_ADDSPAREBARREL } ;
class B_Soldier_support_base_F ; class B_soldier_AAR_F : B_Soldier_support_base_F { MACRO_ADDSPAREBARREL } ;
class B_Soldier_base_F ; class B_CTRG_soldier_AR_A_F : B_Soldier_base_F { MACRO_ADDSPAREBARREL } ;
// Guerrilla
class I_G_Soldier_base_F ; class I_G_Soldier_AR_F : I_G_Soldier_base_F { MACRO_ADDSPAREBARREL } ;
class B_G_Soldier_AR_F : I_G_Soldier_AR_F { MACRO_ADDSPAREBARREL } ;
class O_G_Soldier_AR_F : I_G_Soldier_AR_F { MACRO_ADDSPAREBARREL } ;
// Iran
class O_Soldier_base_F ; class O_Soldier_AR_F : O_Soldier_base_F { MACRO_ADDSPAREBARREL } ;
class O_Soldier_support_base_F ; class O_Soldier_AAR_F : O_Soldier_support_base_F { MACRO_ADDSPAREBARREL } ;
class O_Soldier_Urban_base ; class O_soldierU_AR_F : O_Soldier_Urban_base { MACRO_ADDSPAREBARREL } ;
class O_soldierU_AAR_F : O_Soldier_Urban_base { MACRO_ADDSPAREBARREL } ;
// Czech
class I_Soldier_02_F ; class I_Soldier_AR_F : I_Soldier_02_F { MACRO_ADDSPAREBARREL } ;
class I_Soldier_support_base_F ; class I_Soldier_AAR_F : I_Soldier_support_base_F { MACRO_ADDSPAREBARREL } ;
2015-12-30 10:23:52 +00:00
} ;