2015-02-20 05:45:17 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
2019-12-18 17:31:08 +00:00
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_Equipment {
|
|
|
|
class GVAR(checkAmmo) {
|
|
|
|
displayName = CSTRING(checkAmmo);
|
|
|
|
condition = QUOTE(GVAR(showCheckAmmoSelf) && {_player call FUNC(canCheckAmmoSelf)});
|
|
|
|
statement = QUOTE(call FUNC(checkAmmo));
|
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-02-20 05:45:17 +00:00
|
|
|
class ACE_Actions {
|
2015-03-06 01:52:29 +00:00
|
|
|
class ACE_Weapon {
|
2023-08-28 17:26:24 +00:00
|
|
|
class GVAR(linkBelt) {
|
|
|
|
displayName = CSTRING(linkBelt);
|
|
|
|
distance = 2;
|
2023-11-05 18:36:00 +00:00
|
|
|
condition = QUOTE(([ARR_2(_player,_target)] call FUNC(getAmmoToLinkBelt)) > 0);
|
|
|
|
statement = QUOTE([ARR_2(_player,_target)] call FUNC(startLinkingBelt));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside"};
|
2015-02-20 05:45:17 +00:00
|
|
|
};
|
2023-08-28 17:26:24 +00:00
|
|
|
class GVAR(checkAmmo) {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(checkAmmo);
|
2023-08-28 17:26:24 +00:00
|
|
|
distance = 2;
|
2019-06-08 04:47:39 +00:00
|
|
|
condition = QUOTE(call FUNC(canCheckAmmo));
|
|
|
|
statement = QUOTE(call FUNC(checkAmmo));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
|
2015-03-06 04:34:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class LandVehicle;
|
|
|
|
class StaticWeapon: LandVehicle {
|
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_MainActions {
|
2023-08-28 17:26:24 +00:00
|
|
|
class GVAR(checkAmmo) {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(checkAmmo);
|
2023-08-28 17:26:24 +00:00
|
|
|
distance = 2;
|
2019-06-08 04:47:39 +00:00
|
|
|
condition = QUOTE(call FUNC(canCheckAmmo));
|
|
|
|
statement = QUOTE(call FUNC(checkAmmo));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
|
2015-03-06 04:34:38 +00:00
|
|
|
};
|
2015-02-20 05:45:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|