Add support for ED-1D and ED-1E drones (#7778)

This commit is contained in:
mharis001 2020-06-29 11:43:05 -04:00 committed by GitHub
parent fe8d2e900b
commit d38dd1d67f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 7 deletions

View File

@ -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);
};
};

View File

@ -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 {