Browse Source

barrel texture change;
vtol hud color changer;
fuel indicator to heli hud;

thefloff 3 years ago
parent
commit
74c0fba2d6

+ 4 - 0
addons - Copy/RD501_Vehicles/air/ARC_170X/arc170_common.hpp

@@ -9,6 +9,10 @@ draconicForceYCoef=6;
 envelope[] = {0.5,2.11,2.43,1.97,1.72,2.69,3.87,5.27,6.89,8.72,9.7,9.6,9.2,8.5,8.2,8};
 faction="RD501_Republic_Faction";
 editorSubcategory="RD501_Editor_Category_Air_Republic_vtol";
+class ACE_SelfActions: ACE_SelfActions
+{
+	#include "../../common/universal_hud_color_changer.hpp"
+};
 weapons[]=
 {
 	"Laserdesignator_pilotCamera",

+ 5 - 0
addons - Copy/RD501_Vehicles/air/ARC_170X/arc170_inheritance.hpp

@@ -17,6 +17,7 @@ class 3as_arc_170_blue: 3as_arc_170_base
 		class LaserPilot;
 		class Reargun;
 	};
+	class ACE_SelfActions;
 };
 class 3as_arc_170_green: 3as_arc_170_blue
 {
@@ -26,6 +27,7 @@ class 3as_arc_170_green: 3as_arc_170_blue
 		class LaserPilot;
 		class Reargun;
 	};
+	class ACE_SelfActions;
 };
 class 3as_arc_170_Orange: 3as_arc_170_blue
 {
@@ -35,6 +37,7 @@ class 3as_arc_170_Orange: 3as_arc_170_blue
 		class LaserPilot;
 		class Reargun;
 	};
+	class ACE_SelfActions;
 };
 class 3as_arc_170_yellow: 3as_arc_170_blue
 {
@@ -44,6 +47,7 @@ class 3as_arc_170_yellow: 3as_arc_170_blue
 		class LaserPilot;
 		class Reargun;
 	};
+	class ACE_SelfActions;
 };
 class 3as_arc_170_red: 3as_arc_170_blue
 {
@@ -53,4 +57,5 @@ class 3as_arc_170_red: 3as_arc_170_blue
 		class LaserPilot;
 		class Reargun;
 	};
+	class ACE_SelfActions;
 };

+ 5 - 0
addons - Copy/RD501_Vehicles/air/Z95/config.cpp

@@ -54,6 +54,7 @@ class CfgVehicles
 		{
 			class TransportPylonsComponent;
 		};
+		class ACE_SelfActions;
 	};
 	class macro_new_vehicle(z95,blue):3as_Z95_base
 	{
@@ -75,6 +76,10 @@ class CfgVehicles
 		aileronSensitivity=2.9;
 		aileronControlsSensitivityCoef=4;
 		#include "../../common/universal_mfd.hpp"
+		class ACE_SelfActions: ACE_SelfActions
+		{
+			#include "../../common/universal_hud_color_changer.hpp"
+		};
 		#include "../../common/common_pilotCamera.hpp"
 		weaponLockSystem = "2+4+8";
 		weapons[]=

+ 47 - 13
addons - Copy/RD501_Vehicles/common/helicopter_mfd.hpp

@@ -314,6 +314,41 @@ class MFD
 						"user2"
 					};
 					condition="(1 - (cameraHeadingDiffY<=-19) + (abs(cameraHeadingDiffX)>=24))*on";
+					
+					class fuelNumber
+					{
+						type = "text";
+						source = "fuel";
+						sourceScale = 100;
+						align = "right";
+						scale = 1;
+						pos[] = {{"0.05 + 0.02", 0.9}, 1};
+						right[] = {{"0.05 + 0.02 + 0.04", 0.9}, 1};
+						down[] = {{"0.05 + 0.02", "0.9 + 0.03"}, 1};
+					};
+					class fuelPercent
+					{
+						type = "text";
+						source = "static";
+						text = "%";
+						scale = 1;
+						sourceScale = 1;
+						align = "right";
+						pos[] = {{"0.05 + 0.1", 0.9}, 1};
+						right[] = {{"0.05 + 0.1 + 0.04", 0.9}, 1};
+						down[] = {{"0.05 + 0.1", "0.9 + 0.03"}, 1};
+					};
+					class fuelText
+					{
+						type = "text";
+						source = "static";
+						text = "F:";
+						align = "left";
+						scale = 1;
+						pos[] = {{0.05, 0.9}, 1};
+						right[] = {{"0.05 + 0.04", 0.9}, 1};
+						down[] = {{0.05, "0.9 + 0.03"}, 1};
+					};
 					class VelocityLine
 					{
 						type="line";
@@ -1471,37 +1506,36 @@ class MFD
 						scale = 1;
 						pos[]=
 						{
-							{0.98499999,0.171},
+							{0.96499999,0.171},
 							1
 						};
 						right[]=
 						{
-							{1.02500001,0.171},
+							{1.00500001,0.171},
 							1
 						};
 						down[]=
 						{
-							{0.98499999,0.20100001},
+							{0.96499999,0.20100001},
 							1
 						};
 					};
-
 					class AltitudeNumberAGL:AltitudeNumberASL
 					{
 						source = "altitudeAGL";
 						pos[]=
 						{
-							{0.98499999,0.201},
+							{0.96499999,0.201},
 							1
 						};
 						right[]=
 						{
-							{1.02500001,0.201},
+							{1.00500001,0.201},
 							1
 						};
 						down[]=
 						{
-							{0.98499999,0.23100001},
+							{0.96499999,0.23100001},
 							1
 						};
 					};
@@ -1516,17 +1550,17 @@ class MFD
 						align="center";
 						pos[]=
 						{
-							{0.88499999,0.171},
+							{0.86499999,0.171},
 							1
 						};
 						right[]=
 						{
-							{0.92500001,0.171},
+							{0.90500001,0.171},
 							1
 						};
 						down[]=
 						{
-							{0.88499999,0.20100001},
+							{0.86499999,0.20100001},
 							1
 						};
 					};
@@ -1541,17 +1575,17 @@ class MFD
 						align="center";
 						pos[]=
 						{
-							{0.88499999,0.201},
+							{0.86499999,0.201},
 							1
 						};
 						right[]=
 						{
-							{0.92500001,0.201},
+							{0.90500001,0.201},
 							1
 						};
 						down[]=
 						{
-							{0.88499999,0.23100001},
+							{0.86499999,0.23100001},
 							1
 						};
 					};

BIN
addons - Copy/RD501_Vehicles/static/Explosives/data/barrel_co.paa