
local KN_11_warhead = {
    mass                 = 8500,
    caliber              = 8000,
    expl_mass            = 8700,
    piercing_mass        = 0.0,
    other_factors        = { 1.0, 2.0, 1.0 },
    concrete_factors     = { 3.0, 2.0, 1.0 },
    concrete_obj_factor  = 2.0,
    obj_factors          = { 3.0, 2.0 },
    cumulative_factor    = 2.0,
    cumulative_thickness = 0.0,
}

local SINPO_KN_11 = {
	category		= CAT_MISSILES,
	name			= "SINPO_KN11",
	user_name	 	= _("KN-11"),
	mass			= 4900,
	model			= 'KN11',
	wsTypeOfWeapon  = {wsType_Weapon,wsType_Missile,wsType_AS_Missile,WSTYPE_PLACEHOLDER},
        Escort = 0,
        Head_Type = 5,
		sigma = {10, 10, 10},
        M = 4900.0,
        H_max = 90000.0,
        H_min = 1000.0,
        Diam = 920.0,
        Cx_pil = 4,
        D_max = 900000.0,
        D_min = 275000.0,
        Head_Form = 1,
        Life_Time = 1800.0,
        Nr_max = 5.0, -- 14
        v_min = 400.0,
        v_mid = 6500.0,
        Mach_max = 14.0,
        t_b = 0.0,
        t_acc = 23.0, -- 22
        t_marsh = 45.0,
        Range_max = 900000.0,
        H_min_t = 0.0,
        Fi_start = 3.14152,
        Fi_rak = 3.14152,
        Fi_excort = 3.14152,
        Fi_search = 99.9,
        OmViz_max = 99.9,
		exhaust1 = {1.0, 1.0, 1.0, 1.0},
        X_back = 5.8,
        Y_back = 0.0,
        Z_back = 0.0,
		exhaust2 = {1.0, 1.0, 1.0, 1.0},
		X_back_acc = -0.0,
		Y_back_acc = 0.0,
		Z_back_acc = 0.0,		
		tail_scale = 55.2,			
        Reflection = 0.6,
        KillDistance = 0.0,
		add_attributes = {"Cruise missiles"},

	warhead	= KN_11_warhead,
	warhead_air = KN_11_warhead,

	shape_table_data = 
	{
		{

			name	 = "SINPO_KN11";
			file  	 = "KN11";   		
			life  	 = 1;
			fire  	 = { 0, 1};
			username = _("KN-11");
			index = WSTYPE_PLACEHOLDER;
		},
	},
 	
}

declare_weapon(SINPO_KN_11)

GT_t.WS_t.SINPO_KN11 = {} 
GT_t.WS_t.SINPO_KN11.angles = {
					{math.rad(180), math.rad(-180), math.rad(-90), math.rad(90)},
					};
GT_t.WS_t.SINPO_KN11.moveable = false
GT_t.WS_t.SINPO_KN11.LN = {}
GT_t.WS_t.SINPO_KN11.LN[1] = {}
GT_t.WS_t.SINPO_KN11.LN[1].type = 8
GT_t.WS_t.SINPO_KN11.LN[1].distanceMin = 275000
GT_t.WS_t.SINPO_KN11.LN[1].distanceMax = 900000
GT_t.WS_t.SINPO_KN11.LN[1].reactionTime = 1;
GT_t.WS_t.SINPO_KN11.LN[1].launch_delay = 1;
GT_t.WS_t.SINPO_KN11.LN[1].max_number_of_missiles_channels = 3
GT_t.WS_t.SINPO_KN11.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.SINPO_KN11.LN[1].sensor, GT_t.WSN_t[0])
GT_t.WS_t.SINPO_KN11.LN[1].external_tracking_awacs = true
GT_t.WS_t.SINPO_KN11.LN[1].show_external_missile = true
GT_t.WS_t.SINPO_KN11.LN[1].PL = {}
GT_t.WS_t.SINPO_KN11.LN[1].PL[1] = {}
GT_t.WS_t.SINPO_KN11.LN[1].PL[1].ammo_capacity = 3
GT_t.WS_t.SINPO_KN11.LN[1].PL[1].type_ammunition = SINPO_KN_11.wsTypeOfWeapon
GT_t.WS_t.SINPO_KN11.LN[1].PL[1].reload_time = 1000000; 
GT_t.WS_t.SINPO_KN11.LN[1].PL[1].shot_delay = 0.1;
GT_t.WS_t.SINPO_KN11.LN[1].BR = { {pos = {0, 0, 0} } }
