EA6B_Prowler =  {
      
		Name 			= 'EA6B_Prowler',--AG
		DisplayName		= _('EA6B Prowler'),--AG
        Picture 		= "EA6B_Prowler_Orion.png",
        Rate 			= "40",
        Shape			= "EA6B_Prowler",--AG	
		WorldID			=  WSTYPE_PLACEHOLDER, 
		--WorldID 		= 31,		
		singleInFlight 	= true,
        
	shape_table_data 	= 
	{
		{
			file  	 	= 'EA6B_Prowler';--AG
			life  	 	= 20; -- lifebar
			vis   	 	= 3; -- visibility gain.
			desrt    	= 'EA6B_Prowler-oblomok'; -- Name of destroyed object file name
			fire  	 	= { 300, 2}; 			-- Fire on the ground after destoyed: 300sec 2m
			username	= 'EA6B_Prowler';--AG
			index       =  WSTYPE_PLACEHOLDER;
			--index       =  EA6B_Prowler;
			classname   = "lLandPlane";
			positioning = "BYNORMAL";
		},
		{
			name  		= "EA6B_Prowler-oblomok";
			file  		= "EA6B_Prowler-oblomok";
			fire  		= { 240, 2};
		},
	},
	
	LandRWCategories = 
        {
        [1] = 
        {
			Name = "AircraftCarrier",
        },
        [2] = 
        {
            Name = "AircraftCarrier With Catapult",
        }, 
        [3] = 
        {
            Name = "AircraftCarrier With Tramplin",
        }, 
    }, -- end of LandRWCategories
        TakeOffRWCategories = 
        {
        [1] = 
        {
			Name = "AircraftCarrier",
        },
        [2] = 
        {
            Name = "AircraftCarrier With Catapult",
        }, 
        [3] = 
        {
            Name = "AircraftCarrier With Tramplin",
        }, 
    }, -- end of TakeOffRWCategories
	
	    mapclasskey 		= "P0091000029",
	    attribute  			= {wsType_Air, wsType_Airplane, wsType_Cruiser, WSTYPE_PLACEHOLDER ,
        "Aux", "Refuelable",},
		
	    Categories = {
        },
				
		M_empty	=	14000,
		M_nominal	=	19278,
		M_max	=	23831,
		M_fuel_max	=	5500,
		H_max	=	7500,
		average_fuel_consumption	=	0.06,
		CAS_min	=	54,
		V_opt	=	215,
		V_take_off	=	60,
		V_land	=	52.8,
		has_afteburner	=	false,
		has_speedbrake	=	true,
		has_differential_stabilizer = false,
		main_gear_pos = 	{-2.071,	-1.477,	1.989},
		radar_can_see_ground	=	true,
		nose_gear_pos = 	{3.832,	-1.477,	0},
		AOA_take_off	=	0.14,
		stores_number	=	2,
		bank_angle_max	=	60,
		Ny_min	=	-2.5,
		Ny_max	=	9.0,
		tand_gear_max	=	3.73,
		V_max_sea_level	=	290,
		V_max_h	=	290,
		tanker_type	=	4,
		wing_area	=	49.14,
		wing_span	=	16,
		wing_type = FOLDED_WING,
		thrust_sum_max	=	8414,
		thrust_sum_ab	=	8414,
		Vy_max	=	8,
		length	=	18.24,
		height	=	5.08,
		flaps_maneuver	=	0.5,
		Mach_max	=	1.2,
		range	=	3900,
		RCS	=	30,
		Ny_max_e	=	2,
		detection_range_max	=	100,
		IR_emission_coeff	=	0.53,
		IR_emission_coeff_ab	=	0,
		crew_size				=	4,
		engines_count	=	2,
		wing_tip_pos = 	{-2.0,	0.5,	8.0},
		nose_gear_wheel_diameter	=	0.83,
		main_gear_wheel_diameter	=	1.09,
		
		EPLRS 						= true,--?
		TACAN_AA					= true,--?
		launch_bar_connected_arg_value	= 0.745,
		
		engines_nozzles = 
		{
			[1] = 
			{
				pos = 	{-1.3,	0.3,	-1.1},--
				elevation	=	0,
				diameter	=	1.0,
				exhaust_length_ab	=	11.794,
				exhaust_length_ab_K	=	0.76,
				smokiness_level     = 	0.2, 
			}, -- end of [1]
			[2] = 
			{
				pos = 	{-1.3,	0.3,	1.1},--
				elevation	=	0,
				diameter	=	1.0,
				exhaust_length_ab	=	11.794,
				exhaust_length_ab_K	=	0.76,
				smokiness_level     = 	0.2, 
			}, -- end of [2] 
			
		}, -- end of engines_nozzles
		crew_members = 
		{
			[1] = 
			{
				ejection_seat_name	=	9,
				drop_canopy_name	=	0,
				pos = 	{7.916,	0.986,	0},
			}, -- end of [1]
			[2] = 
			{
				ejection_seat_name	=	9,
				drop_canopy_name	=	0,
				pos = 	{3.949,	1.01,	0},
			}, -- end of [2]
			[3] = 
			{
				ejection_seat_name	=	9,
				drop_canopy_name	=	0,
				pos = 	{3.949,	1.01,	0},
			}, -- end of [3]
			[4] = 
			{
				ejection_seat_name	=	9,
				drop_canopy_name	=	0,
				pos = 	{3.949,	1.01,	0},
			}, -- end of [4]
		}, -- end of crew_members
		mechanimations = {
            Door0 = {
                {Transition = {"Close", "Open"}, Sequence = {{C = {{"Sleep", "for", 0.0}}}}},
                {Transition = {"Open", "Close"}, Sequence = {{C = {{"Sleep", "for", 0.0}}}}},
                {Transition = {"Open", "Board"}, Sequence = {{C = {{"Sleep", "for", 50.0}}}, {C = {{"Arg", 38, "to", 1.0, "in", 3.0}}}}},
                {Transition = {"Board", "Open"}, Sequence = {{C = {{"Arg", 38, "to", 0.0, "in", 6.0}}}}},
            },
            FoldableWings = {
                {Transition = {"Retract", "Extend"}, Sequence = {{C = {{"Arg", 8, "to", 0.0, "in", 6.0}}}}, Flags = {"Reversible"}},
                {Transition = {"Extend", "Retract"}, Sequence = {{C = {{"Arg", 8, "to", 1.0, "in", 30.0}}}}, Flags = {"Reversible", "StepsBackwards"}},
            },
            LaunchBar = {
                {Transition = {"Retract", "Extend"}, Sequence = {{C = {{"ChangeDriveTo", "HydraulicGravityAssisted"}, {"VelType", 2}, {"Arg", 85, "to", 1.0, "in", 4.5}}}}},
                {Transition = {"Extend", "Retract"}, Sequence = {{C = {{"ChangeDriveTo", "Hydraulic"}, {"VelType", 2}, {"Arg", 85, "to", 0.0, "in", 4.5}}}}},
                {Transition = {"Retract", "Stage"},  Sequence = {{C = {{"ChangeDriveTo", "HydraulicGravityAssisted"}, {"VelType", 2}, {"Arg", 85, "to", 0.745, "in", 4.0}}}}},
                {Transition = {"Stage", "Retract"},  Sequence = {{C = {{"ChangeDriveTo", "Hydraulic"}, {"VelType", 2}, {"Arg", 85, "to", 0.0, "in", 4.0}}}}},
                {Transition = {"Extend", "Stage"},   Sequence = {{C = {{"ChangeDriveTo", "Mechanical"}, {"Arg", 85, "from", 1.0, "to", 0.745, "in", 1.0}}}}},				
				{Transition = {"Stage", "Pull"},     Sequence = {{C = {{"ChangeDriveTo", "Mechanical"}, {"Arg", 85, "from", 0.7450, "to", 0.743, "in", 1.0}}}}},
                {Transition = {"Stage", "Extend"},   Sequence = {{C = {{"ChangeDriveTo", "Mechanical"}, {"Arg", 85, "from", 0.745, "to", 1.0, "in", 0.2}}}}},
            },
        },
		brakeshute_name	=	0,
		is_tanker	=	false,
		air_refuel_receptacle_pos = 	{10,	2.2,	0.1},
		fires_pos = 
		{
			[1] = 	{-0.138,	-0.79,	0},
			[2] = 	{-0.138,	-0.79,	5.741},
			[3] = 	{-0.138,	-0.79,	-5.741},
			[4] = 	{-0.82,	0.265,	2.774},
			[5] = 	{-0.82,	0.265,	-2.774},
			[6] = 	{-0.82,	0.255,	4.274},
			[7] = 	{-0.82,	0.255,	-4.274},
			[8] = 	{-0.347,	-1.875,	8.138},
			[9] = 	{-0.347,	-1.875,	-8.138},
			[10] = 	{-5.024,	-1.353,	13.986},
			[11] = 	{-5.024,	-1.353,	-13.986},
		}, -- end of fires_pos

        CanopyGeometry = {
            azimuth = {-110.0, 110.0},
            elevation = {-40.0, 70.0}
        },

Sensors = {
RADAR = "AN/APS-138",
RWR = "Abstract RWR"
},
Countermeasures = {
ECM = "AN/ALQ-135"--f15
},		

	Failures = {
			{ id = 'asc', 		label = _('ASC'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'autopilot', label = _('AUTOPILOT'), enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'hydro',  	label = _('HYDRO'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'l_engine',  label = _('L-ENGINE'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'r_engine',  label = _('R-ENGINE'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'radar',  	label = _('RADAR'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
--			{ id = 'eos',  		label = _('EOS'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
--			{ id = 'helmet',  	label = _('HELMET'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'mlws',  	label = _('MLWS'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'rws',  		label = _('RWS'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'ecm',   	label = _('ECM'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'hud',  		label = _('HUD'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'mfd',  		label = _('MFD'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
	},
	HumanRadio = {
		frequency = 127.5,  -- Radio Freq
		editable = true,
		minFrequency = 100.000,
		maxFrequency = 156.000,
		modulation = MODULATION_AM
	},

	Pylons =     {

        pylon(1, 0, 0.694, -0.277, -2.441,
            {
				use_full_connector_position = true, connector = "pylon_02", arg = 341, arg_value = 0
            },
            {
				{ CLSID	= "{B06DD79A-F21E-4EB9-BD9D-AB3844618C9C}" ,arg_increment = 0.0}, --AGM-88 HARM
				{ CLSID	= "{DFT-EA6B-300gal}" ,arg_increment = 0.0},
			}
	   ),
	   pylon(2, 0, 0.712, 0.754, 0.045,
            {
				use_full_connector_position = true, connector = "pylon_01", arg = 341, arg_value = 0
            },
            {
				
				{ CLSID	= "{DFT-EA6B-300gal}" ,arg_increment = 0.0},
			}
        ),
	   pylon(3, 0, 0.694, 0.277, 2.516,
	   {
				use_full_connector_position = true, connector = "pylon_03", arg = 341, arg_value = 0
	   },
	   {
		   { CLSID	= "{B06DD79A-F21E-4EB9-BD9D-AB3844618C9C}" ,arg_increment = 0.0}, --AGM-88 HARM
		   { CLSID	= "{DFT-EA6B-300gal}" ,arg_increment = 0.0},
	   }
  ),
},
	
	Tasks = {
		--aircraft_task(Transport),
        --aircraft_task(CAP),
     	aircraft_task(Escort),
		aircraft_task(SEAD),
      	--aircraft_task(FighterSweep),
		--aircraft_task(Intercept),
		aircraft_task(Reconnaissance),
    	aircraft_task(GroundAttack),
     	--aircraft_task(CAS),
        --aircraft_task(AFAC),
	    --aircraft_task(RunwayAttack),
    	--aircraft_task(AntishipStrike),
		--aircraft_task(PinpointStrike),
    },	
	DefaultTask = aircraft_task(SEAD),
	
	
	SFM_Data = {     --ea-6b [44]
	aerodynamics = 
		{
			Cy0	=	0,
			Mzalfa	=	4.355,
			Mzalfadt	=	0.8,
			kjx	=	2.4,
			kjz	=	0.00125,
			Czbe	=	-0.016,
			cx_gear	=	0.0268,
			cx_flap	=	0.04,
			cy_flap	=	0.5,
			cx_brk	=	0.06,
			table_data = 
			{
				[1] = 	{0,	0.0165,	0.07,	0.1,	0.032,	0.5,	30,	1.6},
				[2] = 	{0.2,	0.0165,	0.07,	0.1,	0.032,	1.5,	30,	1.5666666666667},
				[3] = 	{0.4,	0.0165,	0.07,	0.1,	0.032,	2.5,	30,	1.5333333333333},
				[4] = 	{0.6,	0.0165,	0.073,	0.094,	0.043,	3.5,	30,	1.5},
				[5] = 	{0.7,	0.017,	0.076,	0.094,	0.045,	3.5,	28.666666666667,	1.4333333333333},
				[6] = 	{0.8,	0.0178,	0.079,	0.094,	0.048,	3.5,	27.333333333333,	1.3666666666667},
				[7] = 	{0.9,	0.0215,	0.083,	0.11,	0.05,	3.5,	26,	1.3},
				[8] = 	{1,	0.031,	0.085,	0.15,	0.1,	3.5,	24.666666666667,	1.2333333333333},
				[9] = 	{1.05,	0.0366,	0.0855,	0.15,	0.1,	3.5,	24,	1.2},
				[10] = 	{1.1,	0.0422,	0.086,	0.15,	0.1,	3.15,	18,	1.1},
				[11] = 	{1.2,	0.044,	0.083,	0.14,	0.1,	2.45,	17,	1.05},
				[12] = 	{1.3,	0.0432,	0.077,	0.17,	0.096,	1.75,	16,	1},
				[13] = 	{1.5,	0.0423,	0.062,	0.23,	0.09,	1.5,	13,	0.9},
				[14] = 	{1.7,	0.041833333333333,	0.051333333333333,	0.23,	0.28333333333333,	0.9,	12,	0.7},
				[15] = 	{1.8,	0.0416,	0.046,	0.23,	0.38,	0.86,	11.4,	0.64},
				[16] = 	{2,	0.0416,	0.039,	0.08,	2.5,	0.78,	10.2,	0.52},
				[17] = 	{2.2,	0.0416,	0.034,	0.16,	3.2,	0.7,	9,	0.4},
				[18] = 	{2.5,	0.041,	0.033,	0.25,	4.5,	0.7,	9,	0.4},
				[19] = 	{3.9,	0.0395,	0.033,	0.35,	6,	0.7,	9,	0.4},
			}, -- end of table_data
		}, -- end of aerodynamics
		engine = 
		{
			Nmg	=	60.00001,--67.5,
			MinRUD	=	0,
			MaxRUD	=	1,
			MaksRUD	=	1,
			ForsRUD	=	1,
			type	=	"TurboJet",
			hMaxEng	=	19,
			dcx_eng	=	0.0124,
			cemax	=	0.37,
			cefor	=	0.37,
			dpdh_m	=	4500,
			dpdh_f	=	12000,
			table_data = 
			{
				[1] = 	{0,	81967.2,	81967.2},
				[2] = 	{0.1,	72180,	72180},
				[3] = 	{0.2,	62600,	62600},
				[4] = 	{0.3,	53520,	53520},
				[5] = 	{0.4,	45160,	45160},
				[6] = 	{0.5,	37780,	37780},
				[7] = 	{0.6,	31860,	31860},
				[8] = 	{0.7,	27920,	27920},
				[9] = 	{0.8,	26520,	26520},
				[10] = 	{1,	26520,	26520},
			}, -- end of table_data
		}, -- end of engine
	},


	--damage , index meaning see in  Scripts\Aircrafts\_Common\Damage.lua
	Damage = {
	[0]  = {critical_damage = 5,  args = {146}},--NOSE_CENTER
	[1]  = {critical_damage = 3,  args = {296}},--NOSE_LEFT_SIDE
	[2]  = {critical_damage = 3,  args = {297}},--NOSE_RIGHT_SIDE
	[3]  = {critical_damage = 8, args = {65}},--CABINA / COCKPIT
	[4]  = {critical_damage = 2,  args = {298}},--CABIN_LEFT_SIDE
	[5]  = {critical_damage = 2,  args = {301}},--CABIN_RIGHT_SIDE
	[7]  = {critical_damage = 2,  args = {249}},--GUN
	[8]  = {critical_damage = 3,  args = {265}},--FRONT_GEAR_BOX
	[9]  = {critical_damage = 3,  args = {154}},--FUSELAGE_LEFT_SIDE
	[10] = {critical_damage = 3,  args = {153}},--MAIN / FUSELAGE_RIGHT_SIDE
	[11] = {critical_damage = 1,  args = {167}},--ENGINE_L
	[12] = {critical_damage = 1,  args = {161}},--ENGINE_R
	[13] = {critical_damage = 2,  args = {169}},--MTG_L_BOTTOM
	[14] = {critical_damage = 2,  args = {163}},--MTG_R_BOTTOM
	[15] = {critical_damage = 2,  args = {267}},--LEFT_GEAR_BOX
	[16] = {critical_damage = 2,  args = {266}},--RIGHT_GEAR_BOX
	[17] = {critical_damage = 2,  args = {168}},--ENGINE_L_OUT
	[18] = {critical_damage = 2,  args = {162}},--ENGINE_R_OUT
	[20] = {critical_damage = 2,  args = {183}},--AIR_BRAKE_R
	[23] = {critical_damage = 5, args = {223}},--WING_L_OUT
	[24] = {critical_damage = 5, args = {213}},--WING_R_OUT
	[25] = {critical_damage = 2,  args = {226}},--ELERON_L
	[26] = {critical_damage = 2,  args = {216}},--ELERON_R
	[29] = {critical_damage = 5, args = {224}, deps_cells = {23, 25}},--WING_L_CENTER
	[30] = {critical_damage = 5, args = {214}, deps_cells = {24, 26}},--WING_R_CENTER
	[35] = {critical_damage = 6, args = {225}, deps_cells = {23, 29, 25, 37}},--WING_L_IN
	[36] = {critical_damage = 6, args = {215}, deps_cells = {24, 30, 26, 38}},--WING_R_IN
	[37] = {critical_damage = 2,  args = {228}},--FLAP_L_IN
	[38] = {critical_damage = 2,  args = {218}},--FLAP_R_IN
	[39] = {critical_damage = 2,  args = {244}, deps_cells = {53}},--FIN_L_TOP
	[40] = {critical_damage = 2,  args = {241}, deps_cells = {54}},--FIN_R_TOP 
	[43] = {critical_damage = 2,  args = {243}, deps_cells = {39, 53}},--FIN_L_BOTTOM
	[44] = {critical_damage = 2,  args = {242}, deps_cells = {40, 54}},--FIN_R_BOTTOM 
	[51] = {critical_damage = 2,  args = {240}},--ELEVATOR_L_IN
	[52] = {critical_damage = 2,  args = {238}},--ELEVATOR_R_IN
	[53] = {critical_damage = 2,  args = {248}},--RUDDER_L
	[54] = {critical_damage = 2,  args = {247}},--RUDDER_R
	[56] = {critical_damage = 2,  args = {158}},--TAIL_LEFT_SIDE
	[57] = {critical_damage = 2,  args = {157}},--TAIL_RIGHT_SIDE
	[59] = {critical_damage = 3,  args = {148}},--NOSE_BOTTOM
	[61] = {critical_damage = 2,  args = {147}},--FUEL_TANK_F
	[82] = {critical_damage = 2,  args = {152}},--FUSELAGE_BOTTOM
	[105] = {critical_damage = 2,  args = {603}},--ENGINE_3
	[106] = {critical_damage = 2,  args = {604}},--ENGINE_4
	},
	
	DamageParts = 
	{  
		[1] = "EA6B_Prowler-OBLOMOK-WING-R", -- wing R
		[2] = "EA6B_Prowler-OBLOMOK-WING-L", -- wing L
--		[3] = "kc-135-oblomok-noise", -- nose
--		[4] = "kc-135-oblomok-tail-r", -- tail
--		[5] = "kc-135-oblomok-tail-l", -- tail
	},
	
-- VSN DCS World\Scripts\Aircrafts\_Common\Lights.lua

	lights_data = { typename = "collection", lights = {
	
    [1] = { typename = "collection", -- WOLALIGHT_STROBES
					lights = {	
						--{typename  = "natostrobelight",	argument_1  = 199, period = 1.2, color = {0.8,0,0}, connector = "RESERV_BANO_1"},--R
						--{typename  = "natostrobelight",	argument_1  = 199, period = 1.2, color = {0.8,0,0}, connector = "RESERV1_BANO_1"},--L
						--{typename  = "natostrobelight",	argument_1  = 199, period = 1.2, color = {0.8,0,0}, connector = "RESERV2_BANO_1"},--H
						--{typename  = "natostrobelight",	argument_1  = 195, period = 1.2, color = {0.8,0,0}, connector = "WHITE_BEACON L"},--195
						--{typename  = "natostrobelight",	argument_1  = 196, period = 1.2, color = {0.8,0,0}, connector = "WHITE_BEACON R"},--196
						--{typename  = "natostrobelight",	argument_1  = 192, period = 1.2, color = {0.8,0,0}, connector = "BANO_0_BACK"},
						--{typename  = "natostrobelight",	argument_1  = 195, period = 1.2, color = {0.8,0,0}, connector = "RED_BEACON L"},
						--{typename  = "natostrobelight",	argument_1  = 196, period = 1.2, color = {0.8,0,0}, connector = "RED_BEACON R"},
							}
			},
	[2] = { typename = "collection",
					lights = {-- 1=Landing light -- 2=Landing/Taxi light
						{typename = "spotlight", connector = "MAIN_SPOT_PTR", argument = 209, dir_correction = {elevation = math.rad(-1)}},--"MAIN_SPOT_PTR_02","RESERV_SPOT_PTR"
						{typename = "spotlight", connector = "MAIN_SPOT_PTR", argument = 208, dir_correction = {elevation = math.rad(3)}},--"MAIN_SPOT_PTR_01","RESERV_SPOT_PTR","MAIN_SPOT_PTL",
							}
			},
    [3]	= {	typename = "collection", -- nav_lights_default
					lights = {
						{typename  = "omnilight",connector =  "BANO_1"  ,argument  =  190,color = {0.99, 0.11, 0.3}},-- Left Position(red)
						{typename  = "omnilight",connector =  "BANO_2"  ,argument  =  191,color = {0, 0.894, 0.6}},-- Right Position(green)
						{typename  = "omnilight",connector =  "BANO_0"  ,argument  =  192,color = {1, 1, 1}},-- Tail Position white)
							}
			},
	[4] = { typename = "collection", -- formation_lights_default
					lights = {
						{typename  = "argumentlight" ,argument  = 200,},--formation_lights_tail_1 = 200;
						{typename  = "argumentlight" ,argument  = 201,},--formation_lights_tail_2 = 201;
						{typename  = "argumentlight" ,argument  = 202,},--formation_lights_left   = 202;
						{typename  = "argumentlight" ,argument  = 203,},--formation_lights_right  = 203;
						{typename  = "argumentlight" ,argument  =  88,},--old aircraft arg 
							}
			},
--[[			
	[5] = { typename = "collection", -- strobe_lights_default
					lights = {
						{typename  = "strobelight",connector =  "RED_BEACON"  ,argument = 193, color = {0.8,0,0}},-- Arg 193, 83,
						{typename  = "strobelight",connector =  "RED_BEACON_2",argument = 194, color = {0.8,0,0}},-- (-1"RESERV_RED_BEACON")
						{typename  = "strobelight",connector =  "RED_BEACON"  ,argument =  83, color = {0.8,0,0}},-- Arg 193, 83,
							}
			},
--]]			
	}},
}

add_aircraft(EA6B_Prowler)
