Jump to content
marki980908

Y-32 Components loose radar, help

Recommended Posts

I am having an issue, I tried modifying Y-31 CSAT VTOL. Editing some coef, but mainly adding AWS capatibility as well as giving it a lot more munitions. Issue I ran into is this: Open Ramp option is no longer there, as well as  more importantly, the radar is gone.
Here is the code:
 

Spoiler



class CfgPatches
{
	class Y_32X_Stuff
	{
		author="Marki";
		version=0.1;
		units[]=
		{
			"Y_32X_Infantry",
			"Y_32X_Vehicle"
		};
		weapons[]={};
		magazines[]={};
		ammo[]={};
		requiredVersion=1;
		requiredAddons[]={};
	};
};
class CfgVehicles
{
	class Air;
	class Plane: Air
	{
		class HitPoints;
		class NewTurret;
	};
	class Plane_Base_F: Plane
	{
		class NewTurret: NewTurret
		{
			class ViewGunner;
		};
		class Turrets;
		class ViewPilot;
		class AnimationSources;
		class HitPoints: HitPoints
		{
			class HitHull;
		};
		class Components;
		class Eventhandlers;
	};
	class y_32x_base: Plane_Base_F
	{
	};
	class O_T_VTOL_02_infantry_grey_F: y_32x_base
	{
	};
	class Y_32X_Infantry: O_T_VTOL_02_infantry_grey_F
	{
		
		author="Marki";
		side=1;
		faction="Legendary_Aces";
		vehicleclass="Planes";
		scope=2;
		displayName="TMV-90 Infantry: Y-32 Captured (Saber)";
		textureList[]={};
		scopeCurator=2;
		hiddenSelectionsTextures[]=
		{
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar1.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar2.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar3.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar4.paa"
		};
		crew="B_Fighter_Pilot_F";
		radarTargetSize=1.1;
		armor=120;
		altFullForce=3000;
		altNoForce=15000;
		maximumLoad=6000;
		airBrakeFrictionCoef = 15.4;
		thrustCoef[]={1.62,1.37,1.35,1.34,1.43,1.42,1.4,1.3700001,1.29000001,0.5,0,0,0}; //unchanged
		rudderInfluence=0.966;
		rudderCoef[]={0.2,0.5,1,1.5,1.8,2.0999999,2.4000001,2.5,2.5999999,2.7,2.7,0.80000001,0.40000001};
		rudderControlsSensitivityCoef=6;
		VTOLYawInfluence=12;
		init = "[(_this select 0)] exec ""\MF_Plane_Configs\MF_Y_32X\scripts\door.sqf""";
		class eventhandlers
		{
			class FIR_AWS_Common_EH
			{
				Init = "[_this select 0,'yes'] execVM ""\FIR_AirWeaponSystem_US\Script\init\init.sqf"";";		
			};			
		};
		class UserActions
		{
			class Aircraft_MFD_Open_N
			{
				displayName = "Open I-TGT System";
				position = "pos cano";
				radius = 15;
				shortcut = "User4";
				condition = "('FIR_TGTPOD' in weapons this or 'Laserdesignator_pilotCamera' in weapons this) and player in this and isengineon this";				
				statement = "this execVM ""\FIR_AirWeaponSystem_US\Script\TGTSystem\FIR_AWS_MFD_N_Open.sqf""";
				onlyforplayer = "false";
				hideOnUse = 1;
			};
			class ECM_ON
			{
				displayName = "ECM JAMMER ON";
				position = "pos cano";
				radius = 15;
				shortcut = "User2";
				condition = "player in this and isengineon this and (this getvariable 'ECMJAMMER' == 'yes' or 'FIR_ECMPOD' in weapons this)";
				statement = "[this] execVM ""\FIR_AirWeaponSystem_US\Script\ECM\ECM_ON.sqf"";";
				onlyforplayer = "False";
				hideOnUse = 1;
			};		
		};
		class AMS_LiteOpen
		{
			displayName = "<t color='#739eff'>Open AMS Lite</t>";
			position = "pos cano";
			radius = 15;
			shortcut = "User3";
			condition = "player in this and (speed this < 1)";
			statement = "this execVM ""\FIR_AirWeaponSystem_US\Script\AMS\AMS_Lite\AMS_Lite_GUI_Open.sqf""";
			onlyforplayer = "false";
			priority = 6;
			hideOnUse = 1;
		};		
		class Components: Components
		{
			class TransportPylonsComponent
			{
				uiPicture="\A3\Air_F_Exp\VTOL_02\Data\UI\VTOL_02_3DEN_CA.paa";
				class Pylons
				{
					class PylonLeft1
					{
						attachment="PylonRack_4Rnd_LG_scalpel";
						priority=5;
						hardpoints[]=
						{
							"UNI_SCALPEL",
							"B_GBU12",
							"B_AGM65_DUAL",
							"B_HARM_INT",
							"B_SDB_QUAD_RAIL",
							"EF2K_SRAAM",
							"O_KAB250_BOMB",
							"O_R73",
							"O_R77",
							"O_KH25",
							"O_BOMB_PYLON",
							"O_MISSILE_PYLON",
							"UNI_SCALPEL",
							"JS_JC_SU35_Pylon",
							"FIR_OPFOR_Combined_HP",
							"FIR_OPFOR_AA_HP",
							"B_BIM9X_RAIL",
							"B_BIM9X_DUAL_RAIL",
							"B_AMRAAM_D_RAIL",
							"B_AMRAAM_D_DUAL_RAIL",
							"B_AGM65_RAIL",
							"B_AGM65_DUAL_RAIL",
							"B_GBU12",
							"B_GBU12_DUAL_RAIL",
							"B_HARM_RAIL",
							"B_SDB_QUAD_RAIL",
							"B_BOMB_PYLON",
							"B_MISSILE_PYLON",
							"I_BOMB_PYLON",
							"I_MISSILE_PYLON",
							"UNI_GRIFFIN",
							"SCALPEL_1RND",
							"B_ASRAAM",
							"B_SDB_SINGLE"
						};
						maxweight=10000;
						turret[]={0};
						UIposition[]={0.34999999,0.16};
					};
					class PylonLeft2: PylonLeft1
					{
						attachment="PylonRack_19Rnd_Rocket_Skyfire";
						priority=4;
						hardpoints[]=
						{
							"UNI_SCALPEL",
							"B_GBU12",
							"B_AGM65_DUAL",
							"B_HARM_INT",
							"B_SDB_QUAD_RAIL",
							"EF2K_SRAAM",
							"O_KAB250_BOMB",
							"O_R73",
							"O_R77",
							"O_KH25",
							"O_BOMB_PYLON",
							"O_MISSILE_PYLON",
							"UNI_SCALPEL",
							"JS_JC_SU35_Pylon",
							"FIR_OPFOR_Combined_HP",
							"FIR_OPFOR_AA_HP",
							"B_BIM9X_RAIL",
							"B_BIM9X_DUAL_RAIL",
							"B_AMRAAM_D_RAIL",
							"B_AMRAAM_D_DUAL_RAIL",
							"B_AGM65_RAIL",
							"B_AGM65_DUAL_RAIL",
							"B_GBU12",
							"B_GBU12_DUAL_RAIL",
							"B_HARM_RAIL",
							"B_SDB_QUAD_RAIL",
							"B_BOMB_PYLON",
							"B_MISSILE_PYLON",
							"I_BOMB_PYLON",
							"I_MISSILE_PYLON",
							"UNI_GRIFFIN",
							"SCALPEL_1RND",
							"B_ASRAAM",
							"B_SDB_SINGLE"
						};
						UIposition[]={0.33000001,0.20999999};
					};
					class PylonRight2: PylonLeft2
					{
						mirroredMissilePos=2;
						UIposition[]={0.33000001,0.34};
					};
					class PylonRight1: PylonLeft1
					{
						mirroredMissilePos=1;
						UIposition[]={0.34999999,0.38999999};
					};
				};
				class presets
				{
					class Empty
					{
						displayName="$STR_empty";
						attachment[]={};
					};
					class Default
					{
						displayName="$STR_vehicle_default";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
					class AT
					{
						displayName="$STR_A3_cfgmagazines_titan_at_dns";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
					class CAS
					{
						displayName="$STR_A3_CAS_PRESET_DISPLAYNAME";
						attachment[]=
						{
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonMissile_1Rnd_Bomb_03_F",
							"PylonMissile_1Rnd_Bomb_03_F",
							"PylonRack_19Rnd_Rocket_Skyfire"
						};
					};
					class HAT
					{
						displayName="$STR_A3_Heavy_AT_preset_displayName";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_1Rnd_Missile_AGM_01_F",
							"PylonRack_1Rnd_Missile_AGM_01_F",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
				};
			};
		};
	};
	class O_T_VTOL_02_vehicle_grey_F: y_32x_base
	{
	};
	class Y_32X_Vehicle: O_T_VTOL_02_vehicle_grey_F
	{
		author="Marki";
		side=1;
		faction="Legendary_Aces";
		vehicleclass="Planes";
		scope=2;
		displayName="TMV-90 Vehicle: Y-32 Captured (Saber)";
		textureList[]={};
		scopeCurator=2;
		hiddenSelectionsTextures[]=
		{
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar1.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar2.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar3.paa",
			"\MF_Plane_Configs\MF_Y_32X\data\vtoltdar4.paa"
		};
		crew="B_Fighter_Pilot_F";
		radarTargetSize=1.1;
		armor=120;
		altFullForce=3000;
		altNoForce=15000;
		maximumLoad=6000;
		airBrakeFrictionCoef = 15.4;
		thrustCoef[]={1.62,1.37,1.35,1.34,1.43,1.42,1.4,1.3700001,1.29000001,0.5,0,0,0}; //unchanged
		rudderInfluence=0.966;
		rudderCoef[]={0.2,0.5,1,1.5,1.8,2.0999999,2.4000001,2.5,2.5999999,2.7,2.7,0.80000001,0.40000001};
		rudderControlsSensitivityCoef=6;
		VTOLYawInfluence=12;
		class eventhandlers
		{
			class Jerry_Rig_Door_Vehicle
			{
				Init = "[_this select 0,'yes'] execVM ""\MF_Plane_Configs\MF_Y_32X\scripts\door.sqf"";";
			};
			class FIR_AWS_Common_EH
			{
				Init = "[_this select 0,'yes'] execVM ""\FIR_AirWeaponSystem_US\Script\init\init.sqf"";";		
			};			
		};
		class UserActions
		{
			class Aircraft_MFD_Open_N
			{
				displayName = "Open I-TGT System";
				position = "pos cano";
				radius = 15;
				shortcut = "User4";
				condition = "('FIR_TGTPOD' in weapons this or 'Laserdesignator_pilotCamera' in weapons this) and player in this and isengineon this";				
				statement = "this execVM ""\FIR_AirWeaponSystem_US\Script\TGTSystem\FIR_AWS_MFD_N_Open.sqf""";
				onlyforplayer = "false";
				hideOnUse = 1;
			};
			class ECM_ON
			{
				displayName = "ECM JAMMER ON";
				position = "pos cano";
				radius = 15;
				shortcut = "User2";
				condition = "player in this and isengineon this and (this getvariable 'ECMJAMMER' == 'yes' or 'FIR_ECMPOD' in weapons this)";
				statement = "[this] execVM ""\FIR_AirWeaponSystem_US\Script\ECM\ECM_ON.sqf"";";
				onlyforplayer = "False";
				hideOnUse = 1;
			};		
		};
		class AMS_LiteOpen
		{
			displayName = "<t color='#739eff'>Open AMS Lite</t>";
			position = "pos cano";
			radius = 15;
			shortcut = "User3";
			condition = "player in this and (speed this < 1)";
			statement = "this execVM ""\FIR_AirWeaponSystem_US\Script\AMS\AMS_Lite\AMS_Lite_GUI_Open.sqf""";
			onlyforplayer = "false";
			priority = 6;
			hideOnUse = 1;
		};	
		class Components: Components
		{
			class TransportPylonsComponent
			{
				uiPicture="\A3\Air_F_Exp\VTOL_02\Data\UI\VTOL_02_3DEN_CA.paa";
				class Pylons
				{
					class PylonLeft1
					{
						attachment="PylonRack_4Rnd_LG_scalpel";
						priority=5;
						hardpoints[]=
						{
							"UNI_SCALPEL",
							"B_GBU12",
							"B_AGM65_DUAL",
							"B_HARM_INT",
							"B_SDB_QUAD_RAIL",
							"EF2K_SRAAM",
							"O_KAB250_BOMB",
							"O_R73",
							"O_R77",
							"O_KH25",
							"O_BOMB_PYLON",
							"O_MISSILE_PYLON",
							"UNI_SCALPEL",
							"JS_JC_SU35_Pylon",
							"FIR_OPFOR_Combined_HP",
							"FIR_OPFOR_AA_HP",
							"B_BIM9X_RAIL",
							"B_BIM9X_DUAL_RAIL",
							"B_AMRAAM_D_RAIL",
							"B_AMRAAM_D_DUAL_RAIL",
							"B_AGM65_RAIL",
							"B_AGM65_DUAL_RAIL",
							"B_GBU12",
							"B_GBU12_DUAL_RAIL",
							"B_HARM_RAIL",
							"B_SDB_QUAD_RAIL",
							"B_BOMB_PYLON",
							"B_MISSILE_PYLON",
							"I_BOMB_PYLON",
							"I_MISSILE_PYLON",
							"UNI_GRIFFIN",
							"SCALPEL_1RND",
							"B_ASRAAM",
							"B_SDB_SINGLE"
						};
						maxweight=10000;
						turret[]={0};
						UIposition[]={0.34999999,0.16};
					};
					class PylonLeft2: PylonLeft1
					{
						attachment="PylonRack_19Rnd_Rocket_Skyfire";
						priority=4;
						hardpoints[]=
						{
							"UNI_SCALPEL",
							"B_GBU12",
							"B_AGM65_DUAL",
							"B_HARM_INT",
							"B_SDB_QUAD_RAIL",
							"EF2K_SRAAM",
							"O_KAB250_BOMB",
							"O_R73",
							"O_R77",
							"O_KH25",
							"O_BOMB_PYLON",
							"O_MISSILE_PYLON",
							"UNI_SCALPEL",
							"JS_JC_SU35_Pylon",
							"FIR_OPFOR_Combined_HP",
							"FIR_OPFOR_AA_HP",
							"B_BIM9X_RAIL",
							"B_BIM9X_DUAL_RAIL",
							"B_AMRAAM_D_RAIL",
							"B_AMRAAM_D_DUAL_RAIL",
							"B_AGM65_RAIL",
							"B_AGM65_DUAL_RAIL",
							"B_GBU12",
							"B_GBU12_DUAL_RAIL",
							"B_HARM_RAIL",
							"B_SDB_QUAD_RAIL",
							"B_BOMB_PYLON",
							"B_MISSILE_PYLON",
							"I_BOMB_PYLON",
							"I_MISSILE_PYLON",
							"UNI_GRIFFIN",
							"SCALPEL_1RND",
							"B_ASRAAM",
							"B_SDB_SINGLE"
						};
						UIposition[]={0.33000001,0.20999999};
					};
					class PylonRight2: PylonLeft2
					{
						mirroredMissilePos=2;
						UIposition[]={0.33000001,0.34};
					};
					class PylonRight1: PylonLeft1
					{
						mirroredMissilePos=1;
						UIposition[]={0.34999999,0.38999999};
					};
				};
				class presets
				{
					class Empty
					{
						displayName="$STR_empty";
						attachment[]={};
					};
					class Default
					{
						displayName="$STR_vehicle_default";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
					class AT
					{
						displayName="$STR_A3_cfgmagazines_titan_at_dns";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
					class CAS
					{
						displayName="$STR_A3_CAS_PRESET_DISPLAYNAME";
						attachment[]=
						{
							"PylonRack_19Rnd_Rocket_Skyfire",
							"PylonMissile_1Rnd_Bomb_03_F",
							"PylonMissile_1Rnd_Bomb_03_F",
							"PylonRack_19Rnd_Rocket_Skyfire"
						};
					};
					class HAT
					{
						displayName="$STR_A3_Heavy_AT_preset_displayName";
						attachment[]=
						{
							"PylonRack_4Rnd_LG_scalpel",
							"PylonRack_1Rnd_Missile_AGM_01_F",
							"PylonRack_1Rnd_Missile_AGM_01_F",
							"PylonRack_4Rnd_LG_scalpel"
						};
					};
				};
			};
		};
	};
};
class cfgMods
{
	author="CR Marki";
	timepacked="1654972984";
};

 

 

 

Edited by marki980908
more detail

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×