From 0c28cd4413a133853fb2c5c9e1ec66c341a6bfe6 Mon Sep 17 00:00:00 2001 From: gpgpgpgp Date: Wed, 8 Jun 2016 17:26:23 +0800 Subject: [PATCH] add a line to get rid of 4 first aid kits in the invisible helper The helper "ace_fastroping_helper" inherits from Helicopter_Base_F, and here's chain of inheritance. class CfgVehicles { class AllVehicles; class Air: AllVehicles { class TransportItems { class _xx_FirstAidKit { name = "FirstAidKit"; count = 4; }; }; }; class Helicopter: Air { }; class Helicopter_Base_F: Helicopter { }; class ace_fastroping_helper: Helicopter_Base_F { class TransportItems {}; // now overrides the first aid kits }; }; Was a happy and funny surprise to pick up some decent medical supplies from one end of a cut rope. --- addons/fastroping/CfgVehicles.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/fastroping/CfgVehicles.hpp b/addons/fastroping/CfgVehicles.hpp index 9d45264853..488badd3b1 100644 --- a/addons/fastroping/CfgVehicles.hpp +++ b/addons/fastroping/CfgVehicles.hpp @@ -155,6 +155,7 @@ class CfgVehicles { model = QPATHTOF(data\helper.p3d); class ACE_Actions {}; class Turrets {}; + class TransportItems {}; }; class Helicopter_Base_H;