
local tipL =
{
	{ CLSID	= "{apu60-mig21-r73e}", attach_point_position = {0.0, -0.00 ,0.0}}, -- R-73E
	{ CLSID	= "{R-60M 2L}", arg = 309, arg_value = 0.5}, -- R-60Mx2-L
	{ CLSID	= "{B4C01D60-A8A3-4237-BD72-CA7655BC0FEC}", arg = 309, arg_value = 0.5}, -- R-77
	{ CLSID	= "{R-3R}", attach_point_position = {0.0, -0.0 ,0.0}}, -- R-3R
	{ CLSID	= "{R-3S}", attach_point_position = {0.0, -0.0 ,0.0}}, -- R-3S
	{ CLSID	= "{FB3CE165-BF07-4979-887C-92B87F13276B}", attach_point_position = {-0.2, -0.02 ,0.0}}, -- FAB-100
	{ CLSID	= "{3C612111-C7AD-476E-8A8E-2485812F4E5C}", attach_point_position = {-0.2, -0.02 ,0.0}}, -- FAB-250
	{ CLSID	= "{PTB_490_MIG21}", arg = 309, arg_value = 0.5}, -- 500L drop tank
	{ CLSID	= "{UB-16_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-16
	{ CLSID	= "{UB-32_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-32
	{ CLSID	= "{S-24B}", attach_point_position = {0.0, -0.01 ,0.0}}, -- S-24B
	{ CLSID	= "{4203753F-8198-4E85-9924-6F8FF679F9FF}", attach_point_position = {-0.0, -0.19 ,0.0}}, -- RBK-250

	{ CLSID = "{INV-SMOKE-RED}",						arg_value = 0.5}, --Smokewinder-red
	{ CLSID = "{INV-SMOKE-GREEN",						arg_value = 0.5}, --Smokewinder-green
	{ CLSID = "{INV-SMOKE-BLUE}",						arg_value = 0.5}, --Smokewinder-blue
	{ CLSID = "{INV-SMOKE-WHITE}",						arg_value = 0.5}, --Smokewinder-white
	{ CLSID = "{INV-SMOKE-YELLOW}",						arg_value = 0.5}, --Smokewinder-yellow
	{ CLSID = "{INV-SMOKE-ORANGE}",						arg_value = 0.5}, --Smokewinder-orange
}
local inboard =
{
	{ CLSID	= "{B4C01D60-A8A3-4237-BD72-CA7655BC0FEC}", arg = 309, arg_value = 0.5}, -- R-77
	{ CLSID	= "{apu60-mig21-r73e}", attach_point_position = {0.0, -0.00 ,0.0}}, -- R-73E
	{ CLSID	= "{apu60-mig21-r27r1}", attach_point_position = {0.0, -0.00 ,0.0}}, -- R-27R1
	{ CLSID	= "{apu60-mig21-r27t1}", attach_point_position = {0.0, -0.00 ,0.0}}, -- R-27T1
	{ CLSID	= "{FB3CE165-BF07-4979-887C-92B87F13276B}", attach_point_position = {-0.4, -0.02 ,0.0}}, -- FAB-100
	{ CLSID	= "{3C612111-C7AD-476E-8A8E-2485812F4E5C}", attach_point_position = {-0.4, -0.02 ,0.0}}, -- FAB-250
	{ CLSID	= "{UB-16_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-16
	{ CLSID	= "{UB-32_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-32
	{ CLSID	= "{S-24B}", attach_point_position = {0.0, -0.01 ,0.0}}, -- S-24B
	{ CLSID	= "{4203753F-8198-4E85-9924-6F8FF679F9FF}", attach_point_position = {-0.3, -0.19 ,0.0}}, -- RBK-250
}
local centerline =
{
	{ CLSID = "{PTB_490_MIG21}",							attach_point_position = {0.0, 0.02 ,0.0}},	-- 500L drop tank
	{ CLSID = "{PTB_800_MIG21}",							attach_point_position = {0.0, 0.02 ,0.0}},	-- 800L drop tank
	{ CLSID = "{37DCC01E-9E02-432F-B61D-10C166CA2798}",							attach_point_position = {0.0, -0.22 ,0.0}},	-- FAB-500-M62
	{ CLSID = "{35B698AC-9FEF-4EC4-AD29-484A0085F62B}",							attach_point_position = {0.2, -0.02 ,0.0}},	-- BetAB-500
	{ CLSID = "{96A7F676-F956-404A-AD04-F33FB2C74884}",							attach_point_position = {0.0, -0.21 ,0.0}},	-- KMGU-2
	{ CLSID	= "{FC56DF80-9B09-44C5-8976-DCFAFF219062}",							attach_point_position = {0.0, -0.20 ,0.0}},	-- B-13L
}

local tipR =
{
	{ CLSID	= "{apu60-mig21-r73e}", attach_point_position = {0.0, -0.00 ,0.0}}, -- R-73E
	{ CLSID	= "{R-60M 2R}", arg = 309, arg_value = 0.5}, -- R-60Mx2-R
	{ CLSID	= "{B4C01D60-A8A3-4237-BD72-CA7655BC0FEC}", arg = 309, arg_value = 0.5}, -- R-77
	{ CLSID	= "{R-3R}", attach_point_position = {0.0, -0.0 ,0.0}}, -- R-3R
	{ CLSID	= "{R-3S}", attach_point_position = {0.0, -0.0 ,0.0}}, -- R-3S
	{ CLSID	= "{FB3CE165-BF07-4979-887C-92B87F13276B}", attach_point_position = {-0.2, -0.02 ,0.0}}, -- FAB-100
	{ CLSID	= "{3C612111-C7AD-476E-8A8E-2485812F4E5C}", attach_point_position = {-0.2, -0.02 ,0.0}}, -- FAB-250
	{ CLSID	= "{PTB_490_MIG21}", arg = 309, arg_value = 0.5}, -- 500L drop tank
	{ CLSID	= "{UB-16_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-16
	{ CLSID	= "{UB-32_S5M}", attach_point_position = {0.0, -0.01 ,0.0}}, -- UB-32
	{ CLSID	= "{S-24B}", attach_point_position = {0.0, -0.01 ,0.0}}, -- S-24B
	{ CLSID	= "{4203753F-8198-4E85-9924-6F8FF679F9FF}", attach_point_position = {-0.0, -0.19 ,0.0}}, -- RBK-250

	{ CLSID = "{INV-SMOKE-RED}",						arg_value = 0.5}, --Smokewinder-red
	{ CLSID = "{INV-SMOKE-GREEN",						arg_value = 0.5}, --Smokewinder-green
	{ CLSID = "{INV-SMOKE-BLUE}",						arg_value = 0.5}, --Smokewinder-blue
	{ CLSID = "{INV-SMOKE-WHITE}",						arg_value = 0.5}, --Smokewinder-white
	{ CLSID = "{INV-SMOKE-YELLOW}",						arg_value = 0.5}, --Smokewinder-yellow
	{ CLSID = "{INV-SMOKE-ORANGE}",						arg_value = 0.5}, --Smokewinder-orange
}


declare_loadout({
	category    	=	CAT_PODS,
	CLSID       	=	"{VSN_Swiss_Antenne2}",
	attribute   	=	{wsType_Weapon, wsType_GContainer, wsType_Support,WSTYPE_PLACEHOLDER},
	Picture     	=	"Swiss_Antenne.png",
	displayName   	=  _("Swiss Antenne"),
	Weight     		= 	0,
	Cx_pil     		= 	0,
	Elements   		=
	{
		{
		Position  	=	{0, 0, 0},
		ShapeName 	= 	"VSN_Swiss_Antenne2",
		}, 
	},
	shape_table_data = 
	{
		{
		name     	= 	"VSN_Swiss_Antenne2",
		file     	= 	"VSN_Swiss_Antenne2";
		username 	= 	"VSN_Swiss_Antenne2";
		index    	= 	WSTYPE_PLACEHOLDER;
		},
	},	   
})	

MIG21BISON =  {
      
		Name 			= 'MIG21BISON',--AG
		DisplayName		= _('MiG-21UPG Bison AI'),--AG
        Picture 		= "MIG21BISON.png",
        Rate 			= "50",
        Shape			= "MIG21BISON",--AG	
        WorldID			=  WSTYPE_PLACEHOLDER, 
        
	shape_table_data 	= 
	{
		{
			file  	 	= 'MIG21BISON';--AG
			life  	 	= 20; -- lifebar
			vis   	 	= 3; -- visibility gain.
			desrt    	= 'F-5E-oblomok'; -- Name of destroyed object file name
			fire  	 	= { 300, 2}; -- Fire on the ground after destoyed: 300sec 2m
			username	= 'MIG21BISON';--AG
			index       =  WSTYPE_PLACEHOLDER;
			classname   = "lLandPlane";
			positioning = "BYNORMAL";
		},
		{
			name  		= "F-5E-oblomok";
			file  		= "F-5E-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 		= "P0091000024",
	attribute  			= {wsType_Air, wsType_Airplane, wsType_Fighter, WSTYPE_PLACEHOLDER, "Fighters", "Refuelable", "Datalink", "Link16"},
	Categories= {"{78EFB7A2-FD52-4b57-A6A6-3BF0E1D6555F}", "Interceptor",},
	
		M_empty						=	5250,	-- kg  with pilot and nose load
		M_nominal					=	7600,	-- kg (Empty Plus Full Internal Fuel)
		M_max						=	10400,	-- kg (Maximum Take Off Weight)
		M_fuel_max					=	2350,	-- kg (Internal Fuel Only)
		H_max						=	17500,	-- m  (Maximum Operational Ceiling)
		average_fuel_consumption	=	0.182,
		CAS_min						=	58,		-- Minimum CAS speed (m/s) (for AI)
		V_opt						=	220,	-- Cruise speed (m/s) (for AI)
		V_take_off					=	61,		-- Take off speed in m/s (for AI)
		V_land						=	71,		-- Land speed in m/s (for AI)
		has_afteburner				=	true,
		has_speedbrake				=	true,
		radar_can_see_ground		=	true,

		nose_gear_pos 							 = 	{4.062, -1.56 + 0.06, 0.00},
		nose_gear_amortizer_direct_stroke        =  0.08,
		nose_gear_amortizer_reversal_stroke      = -0.08,  -- up 
		nose_gear_amortizer_normal_weight_stroke = -0.01,
		nose_gear_wheel_diameter				 =	0.510,
	
		main_gear_pos 							 = 	{-0.588, -1.58 + 0.08, 1.300},
		main_gear_amortizer_direct_stroke	     =  0.08,
		main_gear_amortizer_reversal_stroke      = -0.08, --  up 
		main_gear_amortizer_normal_weight_stroke = -0.01,
		main_gear_wheel_diameter				 =	0.810,

		AOA_take_off				=	0.16,	-- AoA in take off (for AI)
		stores_number				=	12,
		bank_angle_max				=	60,		-- Max bank angle (for AI)
		Ny_min						=	-3,		-- Min G (for AI)
		Ny_max						=	8,		-- Max G (for AI)
		V_max_sea_level				=	403,	-- Max speed at sea level in m/s (for AI)
		V_max_h						=	736.11,	-- Max speed at max altitude in m/s (for AI)
		wing_area					=	23.5,	-- wing area in m2
		thrust_sum_max				=	4147,	-- thrust in kgf (64.3 kN)
		thrust_sum_ab				=	7552,	-- thrust in kgf (95.1 kN)
		Vy_max						=	275,	-- Max climb speed in m/s (for AI)
		flaps_maneuver				=	1,
		Mach_max					=	2.1,	-- Max speed in Mach (for AI)
		range						=	2040,	-- Max range in km (for AI)
		RCS							=	3,		-- Radar Cross Section m2
		Ny_max_e					=	8,		-- Max G (for AI)
		detection_range_max			=	120,
		IR_emission_coeff			=	0.61,	-- Normal engine -- IR_emission_coeff = 1 is Su-27 without afterburner. It is reference.
		IR_emission_coeff_ab		=	2.3,		-- With afterburner
		tand_gear_max				=	3.73,--XX  1.732 FA18 3.73, 
		tanker_type					=	0,-- F14=2/S33=4/M29=0/S27=0/F15=1/F16=1/To=0/F18=2/A10A=1/M29K=4/M2000=2/F4=0/F5=0/
		wing_span					=	7.13,  --XX
		wing_type 					= 	0,-- 0=FIXED_WING/ 1=VARIABLE_GEOMETRY/ 2=FOLDED_WING/ 3=ARIABLE_GEOMETRY_FOLDED
		length						=	14.73,--XX
		height						=	4.13,
		crew_size					=	1, --XX
		engines_count				=	1,    --XX
		wing_tip_pos 				= 	{-2.784,	-0.393,	4.037},
		
		--EPLRS 						= true,--?
		TACAN_AA					= true,--?
		mechanimations = "Default",
		
		engines_nozzles = 
		{
			[1] = 
			{
				pos = 	{-6.0,	0.109,	0.0},
				elevation			=	0.5,
				azimuth				=	-2.08,
				diameter			=	0.75,
				exhaust_length_ab	=	5.5,
				exhaust_length_ab_K	=	0.76,
				smokiness_level     = 	0.35, 
			}, -- end of [1]
			[2] = 
			{
				pos 				= 	{-6.0,	0.109,	0.0},
				elevation			=	0.5,
				azimuth				=	2.08,
				diameter			=	0.75,
				exhaust_length_ab	=	5.5,
				exhaust_length_ab_K	=	0.76,
				smokiness_level     = 	0.35, 
			}, -- end of [2]
		}, -- end of engines_nozzles
		crew_members = 
		{
			[1] = 
			{
				ejection_seat_name	=	17,
				drop_canopy_name	=	43,
				pos = 	{3.022,	0.86,	0},
			}, -- end of [1]
		}, -- end of crew_members
		brakeshute_name	=	3,
		is_tanker	=	false,
		air_refuel_receptacle_pos = 	{0,	0,	0},
		fires_pos = 
		{
			[1] = 	{-1.801,	-0.633,	0},
			[2] = 	{-1.161,	-0.311,	0.91},
			[3] = 	{-1.161,	-0.311,	-0.91},
			[4] = 	{-0.82,	0.265,	1.774},
			[5] = 	{-0.82,	0.265,	-1.774},
			[6] = 	{-0.82,	0.255,	2.274},
			[7] = 	{-0.82,	0.255,	-2.274},
			[8] = 	{-5.0,	0.109,	0.0},
			[9] = 	{-6.0,	0.109,	0.0},
			[10] = 	{-0.088,	0.55,	0},
			[11] = 	{-0.023,	-0.61,	0},
		}, -- end of fires_pos
		
		effects_presets = {
			{effect = "OVERWING_VAPOR", file = current_mod_path.."/Effects/MIG21BISON_overwingVapor.lua"},
		},
		
		chaff_flare_dispenser = 
		{
			[1] = 
			{
				dir = 	{0, -1, 0},
				pos = 	{-3.5,	-0.606,	-0.496},
			}, -- end of [1]
		}, -- end of chaff_flare_dispenser

        -- Countermeasures
passivCounterm 		= {
CMDS_Edit 			= true,
SingleChargeTotal 	= 72,
chaff 				= {default = 36, increment = 12, chargeSz = 1},
flare 				= {default = 36, increment = 12, chargeSz = 1}
 },
	
 ammo_type ={ _("AP Armor Piercing"),
              _("CM Combat Mix"),
              _("HEI High Explosive Incendiary"),
              _("TP Target Practice"),
            },

        CanopyGeometry = {
            azimuth = {-145.0, 145.0},
            elevation = {-50.0, 90.0}
        },

Sensors = {
RADAR 	= "Kopyo",
OPTIC = "OLS-27",
RWR 	= "Abstract RWR"
},
	laserEquipment = 
	{
		laserRangefinder = true,
		laserDesignator  = true,
	},
Countermeasures = {
ECM 			= "AN/ALQ-165"--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
	},

Guns = {
	    gun_mount("M_39",
		{
			count = 260
		},
		{
			muzzle_pos				= {4.904,  0.239,-0.248},
			muzzle_pos_connector	= "GUN_POINT",
			supply_position			= {4.8753, 0, -0.2},	-- approx
			drop_cartridge 			= 204,		-- cartridge_50cal
			ejector_pos_connector	= "EJECT_001",
			ejector_dir 			= {-2,0,0},
			effects = {
				{name = "FireEffect", arg = 432,duration = 0.02, attenuation = 2 , light_pos = {0.5,0,0}},
				{name = "SmokeEffect",gas_deflector_arg = 327  , add_speed = {0, -3, 10}},
			},
		}),			-- LEFT
		gun_mount("M_39",
		{
			count = 260
		},
		{
			muzzle_pos				= {4.904,  0.239, 0.242},
			muzzle_pos_connector	= "GUN_POINT",
			supply_position			= {4.8753, 0,  0.2},	-- approx
			drop_cartridge 			= 204,		-- cartridge_50cal
			ejector_pos_connector	= "EJECT_002",
			ejector_dir 			= {-2,0,0},
			effects = {
				{name = "FireEffect", arg 				= 433, duration  = 0.02, attenuation = 2 , light_pos = {0.5,0,0}},
				{name = "SmokeEffect",gas_deflector_arg = 328, add_speed = {0,  3, 10}},
			},
		})			-- RIGHT
	},
-- 2 × 20-mm-Maschinenkanonen Pontiac (Colt-Browning) M39A2 mit je 280 Schuss Munition

pylons_enumeration = {1, 5, 2, 4, 3},

	Pylons =     {

        pylon(1, 0, -0.920000, -0.230000,  -2.614000,--1
			{
				use_full_connector_position = true,
				connector = "PYLON_L_OUT",
				arg				= 350,
				arg_value		= 0,
			},
			tipL
		),
		pylon(2, 0, -0.110000, -0.230000, -1.979000,--2
			{
				use_full_connector_position = true,
				connector = "PYLON_L_IN",
				arg				= 350,
				arg_value		= 0,
			},
			inboard
		),	
        pylon(3, 0,  0.665000, -0.655000,  0.000000,--3
			{
				use_full_connector_position = true,
				connector = "PYLON_C_FUEL_490",
				arg				= 350,
				arg_value		= 0,
			},
			centerline
		),
		pylon(4, 0, -0.110000, -0.230000,  1.979000,--4
			{
				use_full_connector_position = true,
				connector = "PYLON_R_IN",
				arg				= 350,
				arg_value		= 0,
			},
			inboard
		),
        pylon(5, 0, -0.920000, -0.230000,  2.614000,--5
			{
				use_full_connector_position = true,
				connector = "PYLON_R_OUT",
				arg				= 350,
				arg_value		= 0,
			},
			tipR
		),
    },
	
	Tasks = {
        aircraft_task(CAS),
        aircraft_task(GroundAttack),
        aircraft_task(CAP),
        aircraft_task(Escort),
        aircraft_task(FighterSweep),
        aircraft_task(Intercept),
		aircraft_task(AntishipStrike),
    },	
	DefaultTask = aircraft_task(CAP),

	SFM_Data = {
	aerodynamics = --F15
		{
			Cy0	=	0,
			Mzalfa	=	4.2,
			Mzalfadt	=	0.8,
			kjx = 2.7,
			kjz = 0.01,
			Czbe = -0.014,
			cx_gear = 0.035,
			cx_flap = 0.04,
			cy_flap = 0.3,
			cx_brk = 0.07,
			table_data = 
			{
			--      M	 Cx0		 Cya		 B		 B4	      Omxmax	Aldop	Cymax
				{0.0,	0.0215,		0.055,		0.08,		0.22,	0.65,	25.0,	1.2 	},
				{0.2,	0.0215,		0.055,		0.08,		0.22,	1.80,	25.0,	1.2     },
				{0.4,	0.0215,		0.055,		0.08,	   	0.22,	3.00,	25.0,	1.2     },
				{0.6,	0.0215,		0.055,		0.05,		0.28,	4.20,	25.0,	1.2     },
				{0.7,	0.0215,		0.055,		0.05,		0.28,	4.20,	23.0,	1.15    },
				{0.8,	0.0215,		0.055,		0.05,		0.28,	4.20,	21.7,	1.1     },
				{0.9,	0.0230,		0.058,		0.09,		0.20,	4.20,	20.1,	1.07    },
				{1.0,	0.0320,		0.062,		0.17,		0.15,	4.20,	18.9,	1.04    },
				{1.1,	0.0430,		0.062,	   	0.235,		0.09,	3.78,	17.4,	1.02    },
				{1.2,	0.0460,		0.062,	   	0.285,		0.08,	2.94,	17.0,	1.00 	},		
				{1.3,	0.0470,		0.06,	   	0.29,		0.10,	2.10,	16.0,	0.92 	},				
				{1.4,	0.0470,		0.056,	   	0.3,		0.136,	1.80,	15.0,	0.80 	},					
				{1.6,	0.0470,		0.052,	   	0.34,		0.21,	1.08,	13.0,	0.7 	},					
				{1.8,	0.0460,		0.042,	   	0.34,		2.43,	0.96,	12.0,	0.55 	},		
				{2.2,	0.0420,		0.037,	   	0.49,		3.5,	0.84,	 10.0,	0.37 	},					
				{2.5,	0.0420,		0.033,		0.6,		4.7,	0.84,	 9.0,	0.3 	},		
				{3.9,	0.0400,		0.023,		0.9,		6.0,	0.84,	 7.0,	0.2		},
			}, -- end of table_data
		}, -- end of aerodynamics
		engine = 
		{
			Nmg	=	67.5,
			MinRUD	=	0,
			MaxRUD	=	1,
			MaksRUD	=	0.85,
			ForsRUD	=	0.91,
			type	=	"TurboJet",
			hMaxEng	=	19.5,
			dcx_eng	=	0.0114,
			cemax	=	1.24,
			cefor	=	2.56,
			dpdh_m	=	3500,
			dpdh_f	=	6350.0,
			table_data = {
			--   M		Pmax		 Pfor
				{0, 41000, 71000},
				{0.2, 40000, 73710},
				{0.4, 41000, 76420},
				{0.6, 42000, 81130},
				{0.7, 45000, 86550},
				{0.8, 48000, 89550},
				{0.9, 60000, 94260},
				{1.0, 40000, 104000},
				{1.1, 37500, 105355},
				{1.2, 35000, 106710},
				{1.3, 32500, 109065},
				{1.4, 30000, 112420},
				{1.6, 25000, 118130},
				{1.8, 20000, 122840},
				{2.1, 12500, 130405},
				{2.3, 7500, 127260},
				{2.9, 5000, 122260},
			}, -- end of table_data
		}, -- end of engine
	},


	--damage , index meaning see in  Scripts\Aircrafts\_Common\Damage.lua
	
	--Damage = 
	--{
	
	Damage = verbose_to_dmg_properties(
	{
		["NOSE_CENTER"]				= {args = {146}, critical_damage = 3, deps_cells = {"NOSE_CENTER"}},-- NOSE_CENTER
		["NOSE_BOTTOM"]				= {args = {148}, critical_damage = 3},-- NOSE_BOTTOM
		["NOSE_LEFT_SIDE"]			= {args = {296}, critical_damage = 3},-- NOSE_LEFT_SIDE
		["NOSE_RIGHT_SIDE"]			= {args = {297}, critical_damage = 3},-- NOSE_RIGHT_SIDE
		
		["COCKPIT"]					= {args = {65},  critical_damage = 5},-- COCKPIT
		["CABIN_BOTTOM"]			= {args = {152}, critical_damage = 3},-- CABIN_BOTTOM
		["CABIN_LEFT_SIDE"]			= {args = {298}, critical_damage = 3},-- CABIN_LEFT_SIDE
		["CABIN_RIGHT_SIDE"]		= {args = {299}, critical_damage = 3},-- CABIN_RIGHT_SIDE
	
		["FRONT_GEAR_BOX"]			= {args = {265}, critical_damage = 2},-- FRONT_GEAR_BOX
		["WHEEL_F"]					= {args = {134}, critical_damage = 3},-- WHEEL_F

		["FUSELAGE_LEFT_SIDE"]		= {args = {154}, critical_damage = 3},-- FUSELAGE_LEFT_SIDE
		["FUSELAGE_RIGHT_SIDE"]		= {args = {153}, critical_damage = 3},-- FUSELAGE_RIGHT_SIDE
		["FUSELAGE_BOTTOM"]			= {args = {156}, critical_damage = 4},-- FUSELAGE_BOTTOM
		["FUSELAGE_BOTTOM_LEFT"]	= {args = {158}, critical_damage = 3},
		["FUSELAGE_BOTTOM_RIGHT"]	= {args = {157}, critical_damage = 3},
		["TAIL"]					= {args = {159}, critical_damage = 2},--,deps_cells = 	{40,	45,	46},},-- TAIL
		["AIR_BRAKE_L"]				= {args = {185}, critical_damage = 1},-- AIR_BRAKE_L
		["AIR_BRAKE_R"]				= {args = {183}, critical_damage = 1},-- AIR_BRAKE_R
		["PYLON_04"]				= {				 critical_damage = 2},

		["MTG_LEFT_SIDE"]			= {args = {166}, critical_damage = 3},
		["MTG_CENTER_L"]			= {args = {168}, critical_damage = 3},
		["MTG_BOTTOM_LEFT"]			= {args = {169}, critical_damage = 3},
		["TAIL_LEFT_SIDE"]			= {args = {167}, critical_damage = 3},-- TAIL_LEFT_SIDE
		["ENGINE_L"]				= {args = {272}, critical_damage = 2},-- ENGINE_L
		["L_GEAR_BOX"]				= {args = {267}, critical_damage = 3},
		["WHEEL_L"]					= {args = {136}, critical_damage = 3},-- WHEEL_L

		["MTG_RIGHT_SIDE"]			= {args = {160}, critical_damage = 3},
		["MTG_CENTER_R"]			= {args = {162}, critical_damage = 3},
		["MTG_BOTTOM_RIGHT"]		= {args = {163}, critical_damage = 3},
		["TAIL_RIGHT_SIDE"]			= {args = {161}, critical_damage = 3},-- TAIL_RIGHT_SIDE
		["ENGINE_R"]				= {args = {270}, critical_damage = 2},-- ENGINE_R
		["R_GEAR_BOX"]				= {args = {266}, critical_damage = 3},
		["WHEEL_R"]					= {args = {135}, critical_damage = 3},-- WHEEL_R

		["WING_L_IN"]				= {args = {225}, critical_damage = 5, deps_cells = {"WING_L_CENTER", "FLAP_L_IN", "PYLON_03"}},-- WING_L_IN
		["WING_L_CENTER"]			= {args = {224}, critical_damage = 4, deps_cells = {"WING_L_OUT", "ELERON_L", "WING_L_PART_CENTER", "PYLON_02"}},-- WING_L_CENTER
		["WING_L_OUT"]				= {args = {223}, critical_damage = 3},-- WING_L_OUT
		["WING_L_PART_CENTER"]		= {args = {230}, critical_damage = 1.5},-- WING_L_PART_CENTER -- slat
		["FLAP_L_IN"]				= {args = {227}, critical_damage = 2},-- FLAP_L_IN -- flap
		["ELERON_L"]				= {args = {226}, critical_damage = 1},-- ELERON_L
		["PYLON_02"]				= {				 critical_damage = 2},
		["PYLON_03"]				= {				 critical_damage = 2},

		["WING_R_IN"]				= {args = {215}, critical_damage = 5,deps_cells = {"WING_R_CENTER", "FLAP_R_IN", "PYLON_05"}},-- WING_R_IN
		["WING_R_CENTER"]			= {args = {214}, critical_damage = 4,deps_cells = {"WING_R_OUT", "ELERON_R", "WING_R_PART_CENTER", "PYLON_06"}},-- WING_R_CENTER
		["WING_R_OUT"]				= {args = {213}, critical_damage = 3},-- WING_R_OUT
		["WING_R_PART_CENTER"]		= {args = {220}, critical_damage = 1.5},-- WING_R_PART_CENTER -- slat
		["FLAP_R_IN"]				= {args = {217}, critical_damage = 2},-- FLAP_R_IN -- flap
		["ELERON_R"]				= {args = {216}, critical_damage = 1},-- ELERON_R
		["PYLON_05"]				= {				 critical_damage = 2},
		["PYLON_06"]				= {				 critical_damage = 2},

		["FIN_L_TOP"]				= {args = {242}, critical_damage = 4},
		["RUDDER"]					= {args = {247}, critical_damage = 1},-- RUDDER

		["STABILIZER_L_IN"]			= {args = {240}, critical_damage = 2},-- STABILIZER_L_IN
		["STABILIZER_R_IN"]			= {args = {238}, critical_damage = 2},-- STABILIZER_R_IN
		["HOOK"]					= {critical_damage = 2},
	}),-- end of Damage
	--},-- end of Damage
	
	DamageParts = 
	{  
		[1] = "f-5e_oblomok_wing_l", -- wing R
		[2] = "f-5e_oblomok_wing_r", -- wing L
--		[3] = "F-5E3-oblomok-noise", -- nose
--		[4] = "F-5E3-oblomok-tail-r", -- tail
--		[5] = "F-5E3-oblomok-tail-l", -- tail
	},
	
	lights_data =
	{
		typename =	"collection",
		lights 	 = 
		{
			[WOLALIGHT_STROBES]	= {
				typename	=	"collection",
				lights 		= {
					{ typename = "argnatostrobelight", argument = 193, period = 1.2, flash_time = 0.77},		-- beacon lights
				},
			},--must be collection
			[WOLALIGHT_LANDING_LIGHTS]	= {
				typename	= 	"collection",
				lights		= {
							{
								typename  = "argumentlight",	argument  = 51,
							},
							{
								typename = "Spot", connector = "MAIN_SPOT_L", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 2.1, angle_max = math.rad(180.0), angle_min = math.rad(170.0),
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Omni", connector = "MAIN_SPOT_L", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 3.8,
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Spot", connector = "MAIN_SPOT_R", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 2.1, angle_max = math.rad(180.0), angle_min = math.rad(170.0),
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Omni", connector = "MAIN_SPOT_R", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 3.8,
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
				},
			},--must be collection
			[WOLALIGHT_TAXI_LIGHTS]	= {
				typename	= 	"collection",
				lights		= {
                        {
								typename = "Spot", connector = "MAIN_SPOT_L", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 2.1, angle_max = math.rad(180.0), angle_min = math.rad(170.0),
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Omni", connector = "MAIN_SPOT_L", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 3.8,
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Spot", connector = "MAIN_SPOT_R", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 2.1, angle_max = math.rad(180.0), angle_min = math.rad(170.0),
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
							{
								typename = "Omni", connector = "MAIN_SPOT_R", pos_correction = {-0.3, 0.0, 0.0},
								color = {255, 255, 255, 0.25}, range = 3.8,
								exposure = {{51, 0.81, 0.82}}, movable = true,
							},
				},
			},--must be collection
			[WOLALIGHT_NAVLIGHTS]	= {
				typename 	= "collection",
				lights 		= {
					{ typename  = "argumentlight", argument  = 191, },				-- red
					{ typename  = "argumentlight", argument  = 192, },				-- green
					{ typename  = "argumentlight", argument  = 194, },				-- white
				},
			},--must be collection
			[WOLALIGHT_FORMATION_LIGHTS] = {
				typename	= "collection",
				lights		= {
					{ typename  = "argumentlight",	argument  = 88, },
					{ typename  = "argumentlight",	argument  = 190, },
				},		-- green bars
			},--must be collection
		}, -- end of lights
	},-- end of lights_data
}

add_aircraft(MIG21BISON) --AG