Add support for orange drone (UAV_06) (#5494)

* Add support for orange drone (UAV_06)

- Remove cargo from orange drones (and apex heli drone)
- Allow battery replacement on orange drone

* ops
This commit is contained in:
PabstMirror 2017-09-10 15:38:10 -05:00 committed by GitHub
parent 559a498e6d
commit d4cd0f2286
3 changed files with 25 additions and 4 deletions

View File

@ -286,11 +286,19 @@ class CfgVehicles {
GVAR(hasCargo) = 1;
};
// autonomus
// autonomous
class UAV_01_base_F: Helicopter_Base_F {
GVAR(space) = 0;
GVAR(hasCargo) = 0;
};
class UAV_03_base_F: Helicopter_Base_F {
GVAR(space) = 0;
GVAR(hasCargo) = 0;
};
class UAV_06_base_F: Helicopter_Base_F {
GVAR(space) = 0;
GVAR(hasCargo) = 0;
};
// boats
class Ship;

View File

@ -15,11 +15,20 @@ class CfgVehicles {
class ACE_MainActions: ACE_MainActions {
class GVAR(RefuelUAV) {
displayName = CSTRING(Recharge);
distance = 4;
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRefuelUAV));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(refuelUAV));
showDisabled = 0;
priority = 1.245;
icon = QPATHTOF(ui\UAV_battery_ca.paa);
};
};
};
};
class UAV_06_base_F: Helicopter_Base_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

@ -351,6 +351,10 @@ class CfgVehicles {
// Darter is electrical
GVAR(canReceive) = 0;
};
class UAV_06_base_F: Helicopter_Base_F {
// Orange UAV is electrical
GVAR(canReceive) = 0;
};
class UAV: Plane {};