浏览代码

add hud color changer to 3as laats

thefloff 4 年之前
父节点
当前提交
f970af66d9

+ 12 - 0
addons - Copy/RD501_Vehicles/air/LAAT/common_stuff_tcw.hpp

@@ -6,6 +6,18 @@ class EventHandlers : DefaultEventhandlers
 
 #include "../../common/helicopter_mfd.hpp"
 
+class ACE_SelfActions: ACE_SelfActions
+{
+	class ACE_Passengers
+	{
+		condition = "alive _target";
+		displayName = "Passengers";
+		insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
+		statement = "";
+	};
+	#include "../../common/universal_hud_color_changer.hpp"
+};
+
 scope=2;
 author="RD501";
 forceInGarage = 1;

+ 0 - 40
addons - Copy/RD501_Vehicles/air/LAAT/config.cpp

@@ -145,16 +145,6 @@ class CfgVehicles
 			class CargoTurret_05: CargoTurret_05{};
 			class CargoTurret_06: CargoTurret_06{};
 		};
-		class ACE_SelfActions
-		{
-			class ACE_Passengers
-			{
-				condition = "alive _target";
-				displayName = "Passengers";
-				insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
-				statement = "";
-			};
-		};
 	};
 	class macro_new_vehicle(laat,Mk1_lights):3as_LAAT_Mk1Lights
 	{
@@ -192,16 +182,6 @@ class CfgVehicles
 			class CargoTurret_05: CargoTurret_05{};
 			class CargoTurret_06: CargoTurret_06{};
 		};
-		class ACE_SelfActions
-		{
-			class ACE_Passengers
-			{
-				condition = "alive _target";
-				displayName = "Passengers";
-				insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
-				statement = "";
-			};
-		};
 	};
 
 	class macro_new_vehicle(laat,Mk2):3as_LAAT_Mk2
@@ -236,16 +216,6 @@ class CfgVehicles
 			class CargoTurret_01: CargoTurret_01{};
 			class CargoTurret_02: CargoTurret_02{};
 		};
-		class ACE_SelfActions
-		{
-			class ACE_Passengers
-			{
-				condition = "alive _target";
-				displayName = "Passengers";
-				insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
-				statement = "";
-			};
-		};
 	};
 	class macro_new_vehicle(laat,Mk2_lights):3as_LAAT_Mk2Lights
 	{
@@ -279,16 +249,6 @@ class CfgVehicles
 			class CargoTurret_01: CargoTurret_01{};
 			class CargoTurret_02: CargoTurret_02{};
 		};
-		class ACE_SelfActions
-		{
-			class ACE_Passengers
-			{
-				condition = "alive _target";
-				displayName = "Passengers";
-				insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
-				statement = "";
-			};
-		};
 	};
 
 // SWOP START HERE

+ 1 - 0
addons - Copy/RD501_Vehicles/air/LAAT/inheritance.hpp

@@ -8,6 +8,7 @@ class B_Heli_Attack_01_base_F: Heli_Attack_01_base_F
 };
 class 3as_laat_Base: B_Heli_Attack_01_base_F
 {
+	class ACE_SelfActions;
 	class UserActions: UserActions
 	{
 		class rampOpen;