local Coeff_MachSeaLevelAltitude = 340/295*340/295; --[(m/s a livello del mare)/(m/s @ 40.000 piedi)]al quadrato

local Seacat_V = { 

	category		= CAT_MISSILES,
	name			= "Seacat_V",
	user_name		= _("Seacat_V"),
	wsTypeOfWeapon = {wsType_Weapon, wsType_Missile, wsType_AS_Missile, WSTYPE_PLACEHOLDER},--{4, 4, 8, WSTYPE_PLACEHOLDER},
	NatoName		=	"(Seacat_V)",
	
	shape_table_data =
	{
		{
			name	 = "Seacat_V";
			file  = "Seacat_V";
			life  = 1;
			fire  = { 0, 1};
			username = "Seacat_V";
			index = WSTYPE_PLACEHOLDER,
		},
	},

	Escort = 3,
	Head_Type = 6, --/N/ 6 semi active radar, 4 laser /OR/ 7 semi auto, 5 Autonmous (INS+ Card, GPS,TV,IIR 8-SACLOS
		sigma = {50, 25, 25},
        M = 98.0,
        H_max = 3000.0,
        H_min = 30.0,
        Diam = 190.0,
        Cx_pil = 3,
        D_max = 5000.0,
        D_min = 500.0,
        Head_Form = 1,
        Life_Time = 25, -- Not usedLife_Time = 23.0,
        Nr_max = 8, --max G
        v_min = 170.0,
        v_mid = 272.0,
        Mach_max = 0.674*Coeff_MachSeaLevelAltitude, --Valore Mach_max riferito a 40.000 piedi, da moltiplicare per coefficente missile che lavorano a quota max sotto 5.000, Reale 0.9Mach
        t_b = 0.3,
        t_acc = 1.2,
        t_marsh = 13.5, --10.0, time in flight
        Range_max = 5485.0,
        H_min_t = 10.0,
        Fi_start = 3.14152,
        Fi_rak = 3.14152,
        Fi_excort = 1.0,
        Fi_search = 99.9,
        OmViz_max = 99.9,
        warhead = simple_aa_warhead(17.3), --kg di esplosivo
        exhaust = { 1, 1, 1, 1 },
        X_back = -0.922,
        Y_back = 0.0,
        Z_back = 0.0,
        Reflection = 0.0405,
        KillDistance = 15.0, --distanza spoletta di prossimità
    }


declare_weapon(Seacat_V)

------------------------------------------------------------------
--Stern
GT_t.WS_t.ship_Seacat_V_BR = {name = "GWS-21 Seacat_V launcher BR"};
--GT_t.WS_t.ship_Seacat_V_BR.moveable = false
GT_t.WS_t.ship_Seacat_V_BR.angles = {
					{math.rad(150), math.rad(-150), math.rad(0), math.rad(60)},
					};

--GT_t.WS_t.ship_Seacat_V_BR.angles_mech = GT_t.WS_t.ship_Seacat_V_BR.angles;
GT_t.WS_t.ship_Seacat_V_BR.omegaY = 1;
GT_t.WS_t.ship_Seacat_V_BR.omegaZ = 1;
GT_t.WS_t.ship_Seacat_V_BR.reference_angle_Z = 0;
GT_t.WS_t.ship_Seacat_V_BR.reference_angle_Y = 0;
GT_t.WS_t.ship_Seacat_V_BR.LN = {}
GT_t.WS_t.ship_Seacat_V_BR.LN[1] = {}
GT_t.WS_t.ship_Seacat_V_BR.LN[1].type = 4
GT_t.WS_t.ship_Seacat_V_BR.LN[1].distanceMin = 500
GT_t.WS_t.ship_Seacat_V_BR.LN[1].distanceMax = 5500
GT_t.WS_t.ship_Seacat_V_BR.LN[1].ECM_K = -1
GT_t.WS_t.ship_Seacat_V_BR.LN[1].show_external_missile = true;
GT_t.WS_t.ship_Seacat_V_BR.LN[1].reactionTime = 5;
GT_t.WS_t.ship_Seacat_V_BR.LN[1].launch_delay = 3;
GT_t.WS_t.ship_Seacat_V_BR.LN[1].maxShootingSpeed = 15; --nuove
GT_t.WS_t.ship_Seacat_V_BR.LN[1].reflection_limit = 0.1;
GT_t.WS_t.ship_Seacat_V_BR.LN[1].barrels_reload_type = 2; 	--['ORDINARY'] = 1, ['SIMULTANEOUSLY'] = 2, ['SEQUENTIALY'] = 3
GT_t.WS_t.ship_Seacat_V_BR.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_Seacat_V_BR.LN[1].sensor, GT_t.WSN_t[0])
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL = {}
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1] = {}
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1].ammo_capacity = 12
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1].type_ammunition = Seacat_V.wsTypeOfWeapon
--GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1].name_ammunition = _("Seacat_V")
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1].reload_time = 180; --secondi
GT_t.WS_t.ship_Seacat_V_BR.LN[1].PL[1].shot_delay = 11; --nuove
GT_t.WS_t.ship_Seacat_V_BR.LN[1].BR = { {pos = {0, 0, 0} } }
----------------------------------------------------------------

------------------------------------------------------------------
--Bow
GT_t.WS_t.ship_Seacat_V_BL = {name = "GWS-21 Seacat_V launcher BL"};
--GT_t.WS_t.ship_Seacat_V_BL.moveable = false
GT_t.WS_t.ship_Seacat_V_BL.angles = {
					{math.rad(150), math.rad(-150), math.rad(0), math.rad(60)},
					};

--GT_t.WS_t.ship_Seacat_V_BL.angles_mech = GT_t.WS_t.ship_Seacat_V_BL.angles;
GT_t.WS_t.ship_Seacat_V_BL.omegaY = 1;
GT_t.WS_t.ship_Seacat_V_BL.omegaZ = 1;
GT_t.WS_t.ship_Seacat_V_BL.reference_angle_Z = 0;
GT_t.WS_t.ship_Seacat_V_BL.reference_angle_Y = 0;
GT_t.WS_t.ship_Seacat_V_BL.LN = {}
GT_t.WS_t.ship_Seacat_V_BL.LN[1] = {}
GT_t.WS_t.ship_Seacat_V_BL.LN[1].type = 4
GT_t.WS_t.ship_Seacat_V_BL.LN[1].distanceMin = 500
GT_t.WS_t.ship_Seacat_V_BL.LN[1].distanceMax = 5500
GT_t.WS_t.ship_Seacat_V_BL.LN[1].ECM_K = -1
GT_t.WS_t.ship_Seacat_V_BL.LN[1].show_external_missile = true;
GT_t.WS_t.ship_Seacat_V_BL.LN[1].reactionTime = 5;
GT_t.WS_t.ship_Seacat_V_BL.LN[1].launch_delay = 3;
GT_t.WS_t.ship_Seacat_V_BL.LN[1].maxShootingSpeed = 15; --nuove
GT_t.WS_t.ship_Seacat_V_BL.LN[1].reflection_limit = 0.1;
GT_t.WS_t.ship_Seacat_V_BL.LN[1].barrels_reload_type = 2; 	--['ORDINARY'] = 1, ['SIMULTANEOUSLY'] = 2, ['SEQUENTIALY'] = 3
GT_t.WS_t.ship_Seacat_V_BL.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_Seacat_V_BL.LN[1].sensor, GT_t.WSN_t[0])
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL = {}
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1] = {}
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1].ammo_capacity = 12 --NUOVE
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1].type_ammunition = Seacat_V.wsTypeOfWeapon
--GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1].name_ammunition = _("Seacat_V")
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1].reload_time = 180; --secondi
GT_t.WS_t.ship_Seacat_V_BL.LN[1].PL[1].shot_delay = 11; --nuove
GT_t.WS_t.ship_Seacat_V_BL.LN[1].BR = { {pos = {0, 0, 0} } }
----------------------------------------------------------------