








return helicopter( "Ka-50", _("EC665-TIGRE"),         --("Ka-50"),
    {
        
        EmptyWeight = "8030",
        LandRWCategories = 
        {
            [1] = 
            {
                Name = "AircraftCarrier",
            }, -- end of [1]
            [2] = 
            {
                Name = "HelicopterCarrier",
            }, -- end of [2]
        }, -- end of LandRWCategories
        MaxFuelWeight = "1450",
        MaxHeight = "6600",
        MaxSpeed = "300",
        MaxTakeOffWeight = "11900",
        Picture = "Ka-50.png",
        Rate = "50",
        Shape = "KA-50",
        TakeOffRWCategories = 
        {
            [1] = 
            {
                Name = "AircraftCarrier",
            }, -- end of [1]
            [2] = 
            {
                Name = "HelicopterCarrier",
            }, -- end of [2]
        }, -- end of TakeOffRWCategories
        WorldID = 155,
		country_of_origin = "RUS",
  




        Navpoint_Panel = true,
		Fixpoint_Panel = true,
        
		-- Countermeasures
		passivCounterm = {
			CMDS_Edit = true,
			ChaffNoEdit = true,
			SingleChargeTotal = 128,
			chaff = {default = 0, increment = 0, chargeSz = 0},
			flare = {default = 128, increment = 32, chargeSz = 1}
		},
        
        attribute = {wsType_Air, wsType_Helicopter, wsType_Battleplane, KA_50,
        "Attack helicopters",
        },
        Categories = {
        },
        CanopyGeometry = makeHelicopterCanopyGeometry(LOOK_BAD, LOOK_GOOD, LOOK_BAD),
        Sensors = {
            OPTIC = "Shkval",
        },
        Countermeasures = {
            DISPENSER = "UV-26"
        },
		HumanRadio = {
			frequency = 124.0,
			editable = true,
			minFrequency = 100,
			maxFrequency = 400,
			modulation = MODULATION_AM
		},
		panelRadio = {
			[1] = {  
				name = _("R-828"),
				range = {min = 20.0, max = 59.9},
				channels = {
					[1] = { name = _("Channel 1"),		default = 21.5, modulation = _("FM")},
					[2] = { name = _("Channel 2"),		default = 25.7, modulation = _("FM")},
					[3] = { name = _("Channel 3"),		default = 27.0, modulation = _("FM")},
					[4] = { name = _("Channel 4"),		default = 28.0, modulation = _("FM")},
					[5] = { name = _("Channel 5"),		default = 30.0, modulation = _("FM")},
					[6] = { name = _("Channel 6"),		default = 32.0, modulation = _("FM")},
					[7] = { name = _("Channel 7"),		default = 40.0, modulation = _("FM")},
					[8] = { name = _("Channel 8"),		default = 50.0, modulation = _("FM")},
					[9] = { name = _("Channel 9"),		default = 55.5, modulation = _("FM")},
					[10] = { name = _("Channel 10"),	default = 59.9, modulation = _("FM")},
				}
			},--[1]
			[2] = {
				name = _("ARK-22"),                
                displayUnits = "kHz", --отображаемые единицы в МЕ-- задавать ниже в MHz все
				range = {min = 0.150, max = 1.750},
				channels = {
					[1] = { name = _("Channel 1, Outer"),		default	= 0.625,	modulation = _("AM")},	-- Krasnodar-Center
					[2] = { name = _("Channel 1, Inner"),		default = 0.303,	modulation = _("AM")},	-- Krasnodar-Center
					[3] = { name = _("Channel 2, Outer"),		default = 0.289,	modulation = _("AM")},	-- Maykop
					[4] = { name = _("Channel 2, Inner"),		default = 0.591,	modulation = _("AM")},	-- Maykop
					[5] = { name = _("Channel 3, Outer"),		default = 0.408,	modulation = _("AM")},	-- Krymsk
					[6] = { name = _("Channel 3, Inner"),		default = 0.803,	modulation = _("AM")},	-- Krymsk
					[7] = { name = _("Channel 4, Outer"),		default = 0.443,	modulation = _("AM")},	-- Anapa
					[8] = { name = _("Channel 4, Inner"),		default = 0.215,	modulation = _("AM")},	-- Anapa
					[9] = { name = _("Channel 5, Outer"),		default = 0.525,	modulation = _("AM")},	-- Mozdok
					[10] = { name = _("Channel 5, Inner"),		default = 1.065,	modulation = _("AM")},	-- Mozdok
					[11] = { name = _("Channel 6, Outer"),		default = 0.718,	modulation = _("AM")},	-- Nalchik
					[12] = { name = _("Channel 6, Inner"),		default = 0.350,	modulation = _("AM")},	-- Nalchik
					[13] = { name = _("Channel 7, Outer"),		default = 0.583,	modulation = _("AM")},	-- Min.Vody
					[14] = { name = _("Channel 7, Inner"),		default = 0.283,	modulation = _("AM")},	-- Min.Vody
					[15] = { name = _("Channel 8, Outer"),		default = 0.995,	modulation = _("AM")},	-- NDB Kislovodsk
					[16] = { name = _("Channel 8, Inner"),		default = 1.210,	modulation = _("AM")},	-- NDB Peredovaya
				}
			},--[2]
		},
        Failures = {
            { id = 'hydro_main',  label = _('HYDRO MAIN'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
            { id = 'hydro_common',  label = _('HYDRO COMMON'), 	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 = 'asc_p',  	label = _('ASC PITCH'), 	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
            { id = 'asc_r',  	label = _('ASC ROLL'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
            { id = 'asc_y',  	label = _('ASC YAW'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
            { id = 'asc_a',  	label = _('ASC ALT'), 		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'abris_software',  	label = _('ABRIS SOFTWARE'),	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
 			{ id = 'abris_hardware',  	label = _('ABRIS HARDWARE'),	enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'laser_failure' ,  	label = _('LASER FAILURE'),		enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
			{ id = 'RADAR_ALT_TOTAL_FAILURE', 	label = _("RALT FAILURE"), enable = false, hh = 0, mm = 0, mmint = 1, prob = 100 },
       },
        mapclasskey = "P0091000021",
		sounderName = "Aircraft/Helicopters/Ka-50",
    },
    {
          pylon(1, 0, 0.588000, 0.606000, -2.50000, 
            {
                FiZ = 3.0,--arg = 308,
				
            },
            {
			  
                { CLSID = "{F3EFE0AB-E91A-42D8-9CA2-B63C91ED570A}",arg = 312,arg_value = 0.8,attach_point_position = {0.20,  -0.6000,  0.45 }  }, -- LAU-10\LRF3 lance Roquette 4*100mm
                { CLSID = "{FD90A1DC-9147-49FA-BF56-CB83EF0BD32B}" ,arg = 312,arg_value = 0.8, attach_point_position = {0.20,  -0.6000,  0.45 }}, -- LAU-61\LRF4 lance Roquette 18*68mm
                { CLSID = "{637334E4-AB5A-47C0-83A6-51B7F1DF3CD5}" ,arg = 312,arg_value = 0.8, attach_point_position = {0.20,  -0.4000,  0.45}}, -- UB-32A\LRF1 lance Roquette 36(32)*68mm
			    { CLSID = "{Matra155RocketPod}", arg = 310,arg_value = 0.35,attach_point_position = {0.20,  -0.4000,  0.45 }}, -- Matra Type 155 Rocket pod
                { CLSID = "M260_HYDRA" ,arg_value = 0.0, attach_point_position = {0.20,  -0.3500,  0.450}},--M260_HYDRA X 7
                { CLSID = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}",arg_value = 0.0, attach_point_position = {0.20,  -0.4000,  0.450}}, --AGM-114K * 4
               
                      }
        ),
        pylon(2, 0, 0.688000, 0.706000, -1.785000,
            {
                FiZ = 3.0,
				--arg = 309,
				 use_full_connector_position=true, connector = "Dummy_Objat_L", arg = 189 , arg_value = -0.30,
            },
            {
                { CLSID = "{F3EFE0AB-E91A-42D8-9CA2-B63C91ED570A}",arg = 189,arg_value = -0.40,attach_point_position = {0, -0.60 ,0.35 }  }, -- LAU-10\LRF3 lance Roquette 4*100mm
                { CLSID = "{FD90A1DC-9147-49FA-BF56-CB83EF0BD32B}" ,arg = 189,arg_value = -0.40, attach_point_position = {0, -0.60 ,0.35 }}, -- LAU-61\LRF4 lance Roquette 18*68mm
                { CLSID = "{637334E4-AB5A-47C0-83A6-51B7F1DF3CD5}" ,arg = 189,arg_value = -0.40, attach_point_position = {0, -0.40 ,0.35 }}, -- UB-32A\LRF1 lance Roquette 36(32)*68mm
			    { CLSID = "{Matra155RocketPod}", arg = 189,arg_value = -0.40,attach_point_position = {0, -0.40 ,0.45 }}, -- Matra Type 155 Rocket pod 
                
               
                { CLSID = "{3DFB7321-AB0E-11d7-9897-000476191836}", arg_value = -0.40, attach_point_position = {0, -0.60 ,0.35}},--LAU-61 - 19 2.75' rockets MK156 WP
                
              
               	
                { CLSID = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}" ,arg_value = -0.40, attach_point_position = {0, -0.40 ,0.35}},--AGM-114K * 4
				{ CLSID = "ROCKETS_TDA", arg_value = 0.10 ,attach_point_position = {0, -0.40 ,0.35}},	--guided LASER rocket/ Roquette guidee LASER
				}
        ),
        pylon(3, 0, 0.688000, 0.706000, 1.785000,
            {
                FiZ = 3.0,
				 use_full_connector_position=true, connector = "Dummy_Objat_L", arg = 188 , arg_value = -0.30,
            },
            {
                { CLSID = "{F3EFE0AB-E91A-42D8-9CA2-B63C91ED570A}",arg = 188,arg_value = -0.40,attach_point_position = {0, -0.60 ,-0.35 }  }, -- LAU-10\LRF3 lance Roquette 4*100mm
                { CLSID = "{FD90A1DC-9147-49FA-BF56-CB83EF0BD32B}" ,arg = 188,arg_value = -0.40, attach_point_position = {0, -0.60 ,-0.35 }}, -- LAU-61\LRF4 lance Roquette 18*68mm
                { CLSID = "{637334E4-AB5A-47C0-83A6-51B7F1DF3CD5}" ,arg = 188,arg_value = -0.40, attach_point_position = {0, -0.40 ,-0.35 }}, -- UB-32A\LRF1 lance Roquette 36(32)*68mm
			    { CLSID = "{Matra155RocketPod}", arg = 188,arg_value = -0.40,attach_point_position = {0, -0.40 ,-0.35 }}, -- Matra Type 155 Rocket pod 
                
              
                { CLSID = "{3DFB7321-AB0E-11d7-9897-000476191836}",arg = 188, arg_value = -0.40, attach_point_position = {0, -0.60 ,-0.35 }},--LAU-61 - 19 2.75' rockets MK156 WP
               
               
               
                { CLSID = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}" ,arg_value = -0.40, attach_point_position = {0, -0.40 ,-0.35}},--AGM-114K * 4
				{ CLSID = "ROCKETS_TDA", arg_value = 0.10 ,attach_point_position = {0, -0.40 ,-0.35 }},	--guided LASER rocket/ Roquette guidee LASER
				}
        ),
        pylon(4, 0, 0.588000, 0.606000, 2.50000,
            {
                FiZ = 3.0,--arg = 311,
				
            },
            {
               
                { CLSID = "{F3EFE0AB-E91A-42D8-9CA2-B63C91ED570A}",arg = 312,arg_value = 0.8,attach_point_position = {0.20,  -0.60,  -0.45 }  }, -- LAU-10\LRF3 lance Roquette 4*100mm
                { CLSID = "{FD90A1DC-9147-49FA-BF56-CB83EF0BD32B}" ,arg = 312,arg_value = 0.8, attach_point_position = {0.20,  -0.60,  -0.45 }}, -- LAU-61\LRF4 lance Roquette 18*68mm
                { CLSID = "{637334E4-AB5A-47C0-83A6-51B7F1DF3CD5}" ,arg = 312,arg_value = 0.8, attach_point_position = {0.20,  -0.40,  -0.45 }}, -- UB-32A\LRF1 lance Roquette 36(32)*68mm
			    { CLSID = "{Matra155RocketPod}", arg = 310,arg_value = 0.35,attach_point_position = {0.20,  -0.40,  -0.45 }}, -- Matra Type 155 Rocket pod
                { CLSID = "M260_HYDRA" ,arg_value = 0.40, attach_point_position = {0.20,  -0.35,  -0.45}},--M260_HYDRA X 7
                { CLSID = "{88D18A5E-99C8-4B04-B40B-1C02F2018B6E}",arg_value = 0.0, attach_point_position = {0.20,  -0.40,  -0.45}}, --AGM-114K * 4
            }
        ),
    },
    {
        aircraft_task(CAS),
        aircraft_task(GroundAttack),
		aircraft_task(Escort),
        aircraft_task(AFAC),
        aircraft_task(AntishipStrike)
    },
	aircraft_task(CAS)
);

