local ROCKETS_TDA_warhead =
{
    mass                 = 5, 
   caliber              = 90,
    expl_mass            = 5,
    piercing_mass        = 0.0,					
    other_factors        = { 0.5, 0.5, 0.5 },	
    concrete_factors     = { 1.0, 1.0, 1.0 },
    concrete_obj_factor  = 2.0,
    obj_factors          = { 1.0, 1.0 },
    cumulative_factor    = 1.5,
   cumulative_thickness = 0.25, 
}

local ROCKETS_TDA_name = 'ROCKETS_TDA'
local ROCKETS_TDA_mass = 20.0



ROCKETS_TDA = 
{
    category        = CAT_MISSILES,
    name            = ROCKETS_TDA_name,
    user_name       = _(ROCKETS_TDA_name),
    scheme          = "command_guided_spin_missile",                     
    class_name      = "wAmmunitionVikhr",
    model           = "ROCKETS_TDA",
    mass            = ROCKETS_TDA_mass,
    
    wsTypeOfWeapon  = {wsType_Weapon,wsType_Missile,wsType_AS_Missile,WSTYPE_PLACEHOLDER},

  	Escort 			= 1,
	Head_Type 		= 4,
	sigma = {3, 3, 3},
        M = ROCKETS_TDA_mass,
        H_max = 28000.0,
        H_min = -1,
        Diam = 90.0,
        Cx_pil = 0.08,
        D_max = 8000.0,
        D_min = 600.0,
        Head_Form = 1,
        Life_Time = 30.0,
        Nr_max = 2,
        v_min = 170.0,
        v_mid = 461.0,
        Mach_max = 2.2,
        t_b = 0.0,
        t_acc = 5.0,
        t_marsh = 0.0,
        Range_max = 8000.0,          
    H_min_t      = 0.0,
    Fi_start     = 0.698,
    Fi_rak       = 3.14152,
    Fi_excort    = 0.698,
    Fi_search    = 99.9,
    OmViz_max    = 99.9,
    exhaust      = {0.63, 0.67, 0.75, 0.1},
    X_back       = 0.208,
    Y_back       = 0.0,
    Z_back       = 0.0,
    Reflection   = 0.015,
    KillDistance = 0.0,
	

	
	
	
	
	
    
    shape_table_data =
    {
        {
            name     = ROCKETS_TDA_name,
            file     = "ROCKETS_TDA",
            life     = 1,
            fire     = {0, 1},
            username = ROCKETS_TDA_name,
            index    = WSTYPE_PLACEHOLDER,
        },
    },
    
     warhead     = ROCKETS_TDA_warhead,
    warhead_air = ROCKETS_TDA_warhead,
	
	
    
    controller = {
        boost_start = 0.001,
        march_start = 0.500,
    },
    
    booster = {
        impulse                         = 200,
        fuel_mass                       = 1.0,
        work_time                       = 0.3,
        nozzle_position                 = {{-0.65, 0, 0}},
        nozzle_orientationXYZ           = {{0.0, 0.0, 0.0}},
        tail_width                      = 0.2,
        smoke_color                     = {1.0, 1.0, 1.0},
        smoke_transparency              = 0.8,
        custom_smoke_dissipation_factor = 0.0,                
    },
    
    march = {
        impulse                         = 190,
        fuel_mass                       = 4.0,
        work_time                       = 0.8,
        nozzle_position                 = {{-0.65, 0, 0}},
        nozzle_orientationXYZ           = {{0.0, 0.0, 0.0}},
        tail_width                      = 0.05,
        smoke_color                     = {1.0, 1.0, 1.0},
        smoke_transparency              = 0.1,
        custom_smoke_dissipation_factor = 0.2,
    },
    
    spiral_nav = {
        t_cone_near_rad         = 1000,
        def_cone_max_dist       = 10000,
        def_cone_near_rad       = 15,
        def_cone_near_rad_st    = 500,
        def_cone_time_stab_rad  = 5,
        gb_angle                = 0.0,
        gb_min_dist             = 0.0,
        gb_use_time             = 0.0,
        gb_max_retW             = 0.0,
        gb_ret_Kp               = 0.0,
    },
    
    autopilot = {
        Kp                    = 0.078,
        Ki                    = 0.058,
        Kd                    = 0.038,
        max_ctrl_angle        = 0.8,
        delay                 = 0.2,
        op_time               = 24.0,
        fins_discreet         = 0.04,
        no_ctrl_center_ang    = 0.00004,
    },

    fm = {
        mass        = ROCKETS_TDA_mass,
        caliber     = 0.09,
        L           = 2,
        I           = 1 / 12 * ROCKETS_TDA_mass * 2 * 2,
        Ma          = 1.5,
        Mw          = 6.0,
        cx_coeff    = {1,0.91,0.67,0.3248,2.08},
        Sw          = 0.11,
        dCydA       = {0.024, 0.018},
        A           = 0.6,
        maxAoa      = 0.2,
        finsTau     = 0.05,
        freq        = 8.0,
    },
    
    eng_err = {
        y_error = 0.0,
        z_error = 0.0,
        min_time_interval = 0.1,
        max_time_interval = 1.0,
    },
}

declare_weapon(ROCKETS_TDA)


declare_loadout({
    category        = CAT_ROCKETS,
    CLSID           = "ROCKETS_TDA",
    wsTypeOfWeapon  = ROCKETS_TDA.wsTypeOfWeapon,
	
    attribute       = {4, 4, 32,  WSTYPE_PLACEHOLDER},
    Count           = 22,
    Cx_pil          = 0.002,
    Picture         = "ROCKETS_LASER_pod.png",
    displayName     = _(ROCKETS_TDA_name),
    Weight          = 97.5 + 22 * ROCKETS_TDA.mass,

   
	   
  
	
Elements	=	
				{
					[1]	=	
					{
						--Position	=	{0,	-0.15,	-0.20},
						--ShapeName	=	"ROCKETS_TDA",
					}, 
				--	[1]	=	
				--	{
				--		DrawArgs	=	
					--	{
					--		[1]	=	{1,	1},
					--		[2]	=	{2,	1},
					--	}, -- end of DrawArgs
					--	Position	=	{0,	-0.15,	0.20},
					--	ShapeName	=	"ROCKETS_TDA",
					--}, 
				}, -- end of Elements


})