From 5bf8b642f7dc583f25f8611c529a39aa0f9f0984 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 10 Nov 2016 12:05:08 -0600 Subject: [PATCH] Add cargo configs for some planes (#4650) --- addons/cargo/CfgVehicles.hpp | 7 ++++++- optionals/compat_rhs_usf3/CfgVehicles.hpp | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/cargo/CfgVehicles.hpp b/addons/cargo/CfgVehicles.hpp index 9d4c34182f..a89375e4a0 100644 --- a/addons/cargo/CfgVehicles.hpp +++ b/addons/cargo/CfgVehicles.hpp @@ -259,12 +259,17 @@ class CfgVehicles { GVAR(space) = 4; }; - // jets + // planes (off by default as most are attack jets) class Plane: Air { GVAR(space) = 0; GVAR(hasCargo) = 0; }; + class Plane_Base_F: Plane {}; + class Plane_Civil_01_base_F: Plane_Base_F { // Tanoa Civilian Prop Plane + GVAR(space) = 2; + GVAR(hasCargo) = 1; + }; class VTOL_Base_F; class VTOL_01_base_F: VTOL_Base_F { GVAR(space) = 4; diff --git a/optionals/compat_rhs_usf3/CfgVehicles.hpp b/optionals/compat_rhs_usf3/CfgVehicles.hpp index b2460e5824..9e9cc99c2a 100644 --- a/optionals/compat_rhs_usf3/CfgVehicles.hpp +++ b/optionals/compat_rhs_usf3/CfgVehicles.hpp @@ -390,5 +390,7 @@ class CfgVehicles { class Plane_Base_F; class RHS_C130J_Base: Plane_Base_F { EGVAR(refuel,fuelCapacity) = 25704; + EGVAR(cargo,space) = 4; + EGVAR(cargo,hasCargo) = 1; }; };