2015-08-15 16:43:13 +00:00
|
|
|
#define MACRO_REARM_ACTIONS \
|
2017-06-08 16:47:52 +00:00
|
|
|
class ACE_Actions { \
|
|
|
|
class ACE_MainActions { \
|
|
|
|
class GVAR(Rearm) { \
|
|
|
|
displayName = CSTRING(Rearm); \
|
|
|
|
distance = REARM_ACTION_DISTANCE; \
|
|
|
|
condition = QUOTE(_this call FUNC(canRearm)); \
|
|
|
|
statement = QUOTE(_this call FUNC(rearm)); \
|
|
|
|
exceptions[] = {"isNotInside"}; \
|
|
|
|
icon = QPATHTOF(ui\icon_rearm_interact.paa); \
|
2015-08-15 16:43:13 +00:00
|
|
|
}; \
|
2017-06-08 16:47:52 +00:00
|
|
|
}; \
|
|
|
|
};
|
2016-02-27 19:31:07 +00:00
|
|
|
|
2016-03-01 16:05:00 +00:00
|
|
|
class CBA_Extended_EventHandlers;
|
|
|
|
|
2015-08-15 16:43:13 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class ACE_Module;
|
2016-03-01 16:05:00 +00:00
|
|
|
class ACE_moduleRearmSettings: ACE_Module {
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1;
|
2015-08-15 16:43:13 +00:00
|
|
|
displayName = CSTRING(RearmSettings_Module_DisplayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(ui\icon_module_rearm.paa);
|
2015-11-24 20:30:08 +00:00
|
|
|
category = "ACE_Logistics";
|
2015-08-18 00:32:10 +00:00
|
|
|
function = QFUNC(moduleRearmSettings);
|
2015-08-15 16:43:13 +00:00
|
|
|
functionPriority = 1;
|
2017-11-11 19:21:55 +00:00
|
|
|
isGlobal = 1;
|
2015-08-15 16:43:13 +00:00
|
|
|
isTriggerActivated = 0;
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
class Arguments {
|
|
|
|
class level {
|
|
|
|
displayName = CSTRING(RearmSettings_level_DisplayName);
|
|
|
|
description = CSTRING(RearmSettings_level_Description);
|
|
|
|
typeName = "NUMBER";
|
|
|
|
class values {
|
|
|
|
class vehicle {
|
|
|
|
name = CSTRING(RearmSettings_vehicle);
|
|
|
|
value = 0;
|
|
|
|
};
|
|
|
|
class magazine {
|
|
|
|
name = CSTRING(RearmSettings_magazine);
|
|
|
|
value = 1;
|
|
|
|
};
|
|
|
|
class caliber {
|
|
|
|
name = CSTRING(RearmSettings_caliber);
|
|
|
|
value = 2;
|
|
|
|
default = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-02-27 19:31:07 +00:00
|
|
|
class supply {
|
|
|
|
displayName = CSTRING(RearmSettings_supply_DisplayName);
|
|
|
|
description = CSTRING(RearmSettings_supply_Description);
|
|
|
|
typeName = "NUMBER";
|
|
|
|
class values {
|
|
|
|
class unlimited {
|
|
|
|
name = CSTRING(RearmSettings_unlimited);
|
|
|
|
value = 0;
|
|
|
|
default = 1;
|
|
|
|
};
|
|
|
|
class magazine {
|
|
|
|
name = CSTRING(RearmSettings_limited);
|
|
|
|
value = 1;
|
|
|
|
};
|
|
|
|
class caliber {
|
|
|
|
name = CSTRING(RearmSettings_magazineSupply);
|
|
|
|
value = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|
2015-08-18 00:32:10 +00:00
|
|
|
class ModuleDescription {
|
|
|
|
description = CSTRING(RearmSettings_Module_Description);
|
|
|
|
};
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class LandVehicle;
|
2016-03-01 16:05:00 +00:00
|
|
|
class Car: LandVehicle {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
|
|
|
|
2016-03-01 16:05:00 +00:00
|
|
|
class Tank: LandVehicle {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
2015-08-18 00:32:10 +00:00
|
|
|
|
2016-03-01 16:05:00 +00:00
|
|
|
class StaticWeapon: LandVehicle {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
|
|
|
|
|
|
|
class Air;
|
2016-03-01 16:05:00 +00:00
|
|
|
class Helicopter: Air {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
|
|
|
|
2016-03-01 16:05:00 +00:00
|
|
|
class Plane: Air {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
|
|
|
|
|
|
|
class Ship;
|
2016-03-01 16:05:00 +00:00
|
|
|
class Ship_F: Ship {
|
2015-08-15 16:43:13 +00:00
|
|
|
MACRO_REARM_ACTIONS
|
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class Truck_03_base_F;
|
2016-03-01 16:05:00 +00:00
|
|
|
class O_Truck_03_ammo_F: Truck_03_base_F {
|
2015-08-15 16:43:13 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|
|
|
|
|
2017-08-22 21:21:41 +00:00
|
|
|
class Truck_02_base_F;
|
|
|
|
class Truck_02_Ammo_base_F: Truck_02_base_F {
|
2015-08-15 16:43:13 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class B_Truck_01_mover_F;
|
2016-03-01 16:05:00 +00:00
|
|
|
class B_Truck_01_ammo_F: B_Truck_01_mover_F {
|
2015-08-15 16:43:13 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|
2015-08-16 21:52:37 +00:00
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class B_APC_Tracked_01_base_F;
|
2017-03-15 15:10:53 +00:00
|
|
|
class B_APC_Tracked_01_CRV_F: B_APC_Tracked_01_base_F {
|
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2017-03-15 15:10:53 +00:00
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class Heli_Transport_04_base_F;
|
2016-03-01 16:05:00 +00:00
|
|
|
class O_Heli_Transport_04_ammo_F: Heli_Transport_04_base_F {
|
2015-08-19 22:03:16 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2016-05-30 22:11:06 +00:00
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class Pod_Heli_Transport_04_base_F;
|
2015-11-26 17:47:25 +00:00
|
|
|
class Land_Pod_Heli_Transport_04_ammo_F: Pod_Heli_Transport_04_base_F {
|
2015-08-19 22:03:16 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2015-08-19 22:03:16 +00:00
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class Slingload_01_Base_F;
|
2016-03-01 16:05:00 +00:00
|
|
|
class B_Slingload_01_Ammo_F: Slingload_01_Base_F {
|
2015-08-19 22:03:16 +00:00
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2015-08-19 22:03:16 +00:00
|
|
|
};
|
|
|
|
|
2017-06-08 16:47:52 +00:00
|
|
|
class ReammoBox_F;
|
2021-10-18 16:56:43 +00:00
|
|
|
class NATO_Box_Base: ReammoBox_F {};
|
2016-12-14 19:18:04 +00:00
|
|
|
class Box_NATO_AmmoVeh_F: NATO_Box_Base {
|
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2016-12-14 19:18:04 +00:00
|
|
|
};
|
2021-10-18 16:56:43 +00:00
|
|
|
class EAST_Box_Base: ReammoBox_F {};
|
2016-12-14 19:18:04 +00:00
|
|
|
class Box_East_AmmoVeh_F: EAST_Box_Base {
|
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2016-12-14 19:18:04 +00:00
|
|
|
};
|
2021-10-18 16:56:43 +00:00
|
|
|
class IND_Box_Base: ReammoBox_F {};
|
2016-12-14 19:18:04 +00:00
|
|
|
class Box_IND_AmmoVeh_F: IND_Box_Base {
|
|
|
|
transportAmmo = 0;
|
2017-06-08 16:47:52 +00:00
|
|
|
GVAR(defaultSupply) = 1200;
|
2016-12-14 19:18:04 +00:00
|
|
|
};
|
2021-10-15 18:48:33 +00:00
|
|
|
class Box_IND_AmmoOrd_F;
|
|
|
|
class Box_IDAP_AmmoOrd_F: Box_IND_AmmoOrd_F {
|
|
|
|
transportAmmo = 0; // not sure why this one has 240
|
|
|
|
};
|
2015-08-18 00:32:10 +00:00
|
|
|
|
|
|
|
// Dummy Vehicles
|
2017-06-08 16:47:52 +00:00
|
|
|
class ThingX;
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(defaultCarriedObject): ThingX {
|
|
|
|
class EventHandlers {
|
|
|
|
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
|
|
|
|
};
|
|
|
|
|
2015-08-19 22:03:16 +00:00
|
|
|
displayName = QGVAR(dummy_obj);
|
2015-12-22 16:54:16 +00:00
|
|
|
scope = 1;
|
|
|
|
scopeCurator = 1;
|
2015-08-19 23:20:31 +00:00
|
|
|
model = "\A3\Weapons_F\AmmoBoxes\AmmoBox_F.p3d";
|
2015-08-20 17:51:22 +00:00
|
|
|
EGVAR(cargo,size) = 1;
|
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_MainActions {
|
2015-11-24 20:30:08 +00:00
|
|
|
displayName = CSTRING(PickUpAmmo);
|
2015-08-20 17:51:22 +00:00
|
|
|
distance = REARM_ACTION_DISTANCE;
|
2015-11-24 20:30:08 +00:00
|
|
|
condition = QUOTE(_this call FUNC(canTakeAmmo));
|
|
|
|
statement = QUOTE(_this call FUNC(grabAmmo));
|
|
|
|
exceptions[] = {"isNotInside"};
|
2015-08-20 17:51:22 +00:00
|
|
|
showDisabled = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(ui\icon_rearm_interact.paa);
|
2015-08-20 17:51:22 +00:00
|
|
|
};
|
|
|
|
};
|
2015-08-19 22:03:16 +00:00
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Bo_GBU12_LGB): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F\Ammo\Bomb_01_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Bo_Mk82): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F\Ammo\Bomb_02_F";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Bomb_04_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Bomb_04_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Bomb_03_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Bomb_03_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Missile_AA_04_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Missile_AA_04_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Missile_AA_03_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Missile_AA_03_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Missile_AGM_02_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Missile_AGM_02_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Missile_AGM_01_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Missile_AGM_01_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(R_230mm_fly): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F\Ammo\Missile_AT_02_F";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(R_230mm_HE): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F\Ammo\Missile_AT_02_F";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(M_PG_AT): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F\Ammo\Rocket_01_F";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Rocket_04_HE_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_04_HE_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Rocket_03_HE_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_03_HE_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Rocket_04_AP_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_04_AP_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(Rocket_03_AP_F): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_03_AP_F.p3d";
|
|
|
|
};
|
|
|
|
// Using wrong model
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(R_80mm_HE): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_03_HE_F.p3d";
|
|
|
|
};
|
2016-03-01 16:05:00 +00:00
|
|
|
class GVAR(R_60mm_HE): GVAR(defaultCarriedObject) {
|
2015-08-16 21:52:37 +00:00
|
|
|
model = "\A3\Weapons_F_EPC\Ammo\Rocket_03_HE_F.p3d";
|
|
|
|
};
|
2015-08-15 16:43:13 +00:00
|
|
|
};
|