Browse Source

adjust aircraft user actions

thefloff 4 years ago
parent
commit
5be6c4228e

+ 3 - 3
addons - Copy/RD501_Vehicles/air/LAAT/config.cpp

@@ -315,7 +315,7 @@ class CfgVehicles
 	
 		class UserActions
 		{
-			#include "user_action.hpp"
+			#include "../../common/user_action.hpp"
 		};
 		class ACE_SelfActions:ACE_SelfActions
 		{		
@@ -398,7 +398,7 @@ class CfgVehicles
 
 		class UserActions
 		{
-			#include "user_action.hpp"
+			#include "../../common/user_action.hpp"
 
 			class OpenCargoDoor
 			{
@@ -521,7 +521,7 @@ class CfgVehicles
 		#include "sounds.hpp"
 		class UserActions
 		{
-			#include "user_action.hpp"
+			#include "../../common/user_action.hpp"
 			class StartRefuel
 			{
 				displayName = "<t color='#07CC0C'>[Start Refueling]</t>";

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

@@ -1,13 +1,18 @@
 class Heli_Attack_01_base_F;
 class B_Heli_Attack_01_base_F: Heli_Attack_01_base_F
 {
+	class UserActions;
 	class Turrets;
 	class ViewPilot;
 	class Components;
 };
 class 3as_laat_Base: B_Heli_Attack_01_base_F
 {
-	class UserActions;
+	class UserActions: UserActions
+	{
+		class rampOpen;
+		class rampClose;
+	};
 	class Components:Components{};
 	class Turrets: Turrets
 	{

+ 13 - 27
addons - Copy/RD501_Vehicles/air/LAAT/user_action.hpp

@@ -1,28 +1,4 @@
-
 	class ThrusterEngage
-	{
-		displayName = "<t color='#4C9900'>[Impulsor On]</t>";
-		displayNameDefault = "<t color='#4C9900'>[Impulsor On]</t>";
-		textToolTip = "<t color='#4C9900'>[Impulsor On]</t>";
-		position = "pilotview";
-		radius = 20;
-		priority = 21;
-		onlyForPlayer = 1;
-		condition = "((player == driver this) AND (alive this))";
-		statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
-	};
-
-	class ThrusterDisngage: ThrusterEngage
-	{
-		priority = 21;
-		displayName = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		displayNameDefault = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		textToolTip = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		condition = "((player == driver this) AND (alive this))";
-		statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
-	};
-
-	class ThrusterEngage_spam: ThrusterEngage
 	{
 		displayName = "";
 		displayNameDefault = "";
@@ -36,8 +12,7 @@
 		shortcut="User19"
 	};
 
-
-	class ThrusterDisngage_spam: ThrusterEngage
+	class ThrusterDisengage: ThrusterEngage
 	{
 		priority = 0;
 		displayName = "";
@@ -48,4 +23,15 @@
 		shortcut="User20"
 	};
 
-	
+    class afterburnerMk1_turn_on{};
+    class afterburnerMk1_turn_off{};
+
+	class rampOpen: rampOpen
+	{
+		condition="(this animationphase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
+	};
+
+	class rampClose: rampClose
+	{
+		condition="(this animationphase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
+	};

+ 53 - 3
addons - Copy/RD501_Vehicles/air/NuClass/config.cpp

@@ -26,11 +26,21 @@ class CfgPatches
 };
 class CfgVehicles
 {
-	class 3as_nuclass_f;
-	class 3AS_Nuclass : 3as_nuclass_f
+	class 3as_nuclass_base;
+	class 3as_nuclass_f: 3as_nuclass_base
 	{
 		class UserActions;
 	};
+	class 3AS_Nuclass : 3as_nuclass_f
+	{
+		class UserActions: UserActions
+		{
+			class rampOpen;
+			class rampClose;
+			class frontrampOpen;
+			class frontrampClose;
+		};
+	};
 
 	class macro_new_vehicle(nuclass,mk1) : 3AS_Nuclass
 	{
@@ -70,7 +80,47 @@ class CfgVehicles
 		};
 		class UserActions:UserActions
 		{
-			#include "user_action.hpp"
+			class ThrusterEngage
+			{
+				displayName = "";
+				displayNameDefault = "";
+				textToolTip = "";
+				position = "pilotview";
+				radius = 20;
+				priority = 0;
+				onlyForPlayer = 1;
+				condition = "((player == driver this) AND (alive this))";
+				statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
+				shortcut="User19"
+			};
+
+			class ThrusterDisengage: ThrusterEngage
+			{
+				priority = 0;
+				displayName = "";
+				displayNameDefault = "";
+				textToolTip = "";
+				condition = "((player == driver this) AND (alive this))";
+				statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
+				shortcut="User20"
+			};
+
+			class rampOpen: rampOpen
+			{
+				condition="(this animationSourcePhase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
+			};
+			class rampClose: rampClose
+			{
+				condition="(this animationSourcePhase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
+			};
+			class frontrampOpen: frontrampOpen
+			{
+				condition="(this animationSourcePhase 'rampfront' == 0) AND (alive this) AND (player in [gunner this, driver this])";
+			};
+			class frontrampClose: frontrampClose
+			{
+				condition="(this animationSourcePhase 'rampfront' == 1) AND (alive this) AND (player in [gunner this, driver this])";
+			};
 		};
 		class ACE_SelfActions
 		{

+ 0 - 56
addons - Copy/RD501_Vehicles/air/NuClass/user_action.hpp

@@ -1,56 +0,0 @@
-
-
-	class ThrusterEngage
-	{
-		displayName = "<t color='#4C9900'>[Impulsor On]</t>";
-		displayNameDefault = "<t color='#4C9900'>[Impulsor On]</t>";
-		textToolTip = "<t color='#4C9900'>[Impulsor On]</t>";
-		position = "pilotview";
-		radius = 20;
-		priority = 21;
-		onlyForPlayer = 1;
-		condition = "(!(this getvariable [""impulsorStatus"",false]) AND (player == driver this) AND (alive this) AND (speed this >10) )";
-		statement = "this execVM ""\LAAT\initTE.sqf""";
-	
-	};
-
-	class ThrusterDisngage: ThrusterEngage
-	{
-		priority = 21;
-		displayName = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		displayNameDefault = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		textToolTip = "<t color='#FF9933'>[RepulsorBrake On]</t>";
-		condition = "((this getvariable [""impulsorStatus"",false]) AND (player == driver this) AND (alive this))";
-		statement = "this execVM ""\LAAT\initTD.sqf""";
-	
-	};
-
-
-	class ThrusterEngage_spam: ThrusterEngage
-	{
-		displayName = "";
-		displayNameDefault = "";
-		textToolTip = "";
-		position = "pilotview";
-		radius = 20;
-		priority = 0;
-		onlyForPlayer = 1;
-		condition = "((player == driver this) AND (alive this) AND (speed this >10) )";
-		statement = "this execVM ""\LAAT\initTE.sqf""";
-		shortcut="User19"
-	};
-
-
-
-	class ThrusterDisngage_spam: ThrusterEngage
-	{
-		priority = 0;
-		displayName = "";
-		displayNameDefault = "";
-		textToolTip = "";
-		condition = "((player == driver this) AND (alive this))";
-		statement = "this execVM ""\LAAT\initTD.sqf""";
-		shortcut="User20"
-	};
-
-