diff --git a/addons/logistics_uavbattery/CfgVehicles.hpp b/addons/logistics_uavbattery/CfgVehicles.hpp index 6af24e7474..068174e5d7 100644 --- a/addons/logistics_uavbattery/CfgVehicles.hpp +++ b/addons/logistics_uavbattery/CfgVehicles.hpp @@ -6,18 +6,18 @@ class CfgVehicles { }; }; class Helicopter_Base_F: Helicopter { - class ACE_Actions: ACE_Actions{ + class ACE_Actions: ACE_Actions { class ACE_MainActions: ACE_MainActions {}; }; }; class UAV_01_base_F: Helicopter_Base_F { fuelCapacity = 19; // Around 30 minutes hovering - class ACE_Actions: ACE_Actions{ + class ACE_Actions: ACE_Actions { class ACE_MainActions: ACE_MainActions { class GVAR(RefuelUAV) { displayName = CSTRING(Recharge); - condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRefuelUAV)); - statement = QUOTE([ARR_2(_player, _target)] call FUNC(refuelUAV)); + condition = QUOTE([ARR_2(_player,_target)] call FUNC(canRefuelUAV)); + statement = QUOTE([ARR_2(_player,_target)] call FUNC(refuelUAV)); icon = QPATHTOF(ui\UAV_battery_ca.paa); }; }; @@ -25,12 +25,36 @@ class CfgVehicles { }; class UAV_06_base_F: Helicopter_Base_F { fuelCapacity = 16; // Around 25 minutes hovering - class ACE_Actions: ACE_Actions{ + class ACE_Actions: ACE_Actions { class ACE_MainActions: ACE_MainActions { class GVAR(RefuelUAV) { displayName = CSTRING(Recharge); - condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRefuelUAV)); - statement = QUOTE([ARR_2(_player, _target)] call FUNC(refuelUAV)); + condition = QUOTE([ARR_2(_player,_target)] call FUNC(canRefuelUAV)); + statement = QUOTE([ARR_2(_player,_target)] call FUNC(refuelUAV)); + icon = QPATHTOF(ui\UAV_battery_ca.paa); + }; + }; + }; + }; + + class LandVehicle; + class Tank: LandVehicle { + class ACE_Actions { + class ACE_MainActions; + }; + }; + class Tank_F: Tank { + class ACE_Actions: ACE_Actions { + class ACE_MainActions: ACE_MainActions {}; + }; + }; + class UGV_02_Base_F: Tank_F { + class ACE_Actions: ACE_Actions { + class ACE_MainActions: ACE_MainActions { + class GVAR(RefuelUAV) { + displayName = CSTRING(Recharge); + condition = QUOTE([ARR_2(_player,_target)] call FUNC(canRefuelUAV)); + statement = QUOTE([ARR_2(_player,_target)] call FUNC(refuelUAV)); icon = QPATHTOF(ui\UAV_battery_ca.paa); }; }; diff --git a/addons/refuel/CfgVehicles.hpp b/addons/refuel/CfgVehicles.hpp index efcd1aa3a2..445cfeaad7 100644 --- a/addons/refuel/CfgVehicles.hpp +++ b/addons/refuel/CfgVehicles.hpp @@ -358,6 +358,11 @@ class CfgVehicles { GVAR(canReceive) = 0; }; + class UGV_02_Base_F: Tank_F { + // ED-1D and ED-1E are electrical + GVAR(canReceive) = 0; + }; + class UAV: Plane {}; class UAV_02_base_F: UAV {