-- by Eric et Patrick Cuesta

local gbu12_mq9 =                     --tir et oubli

{
	category		=  CAT_MISSILES,
	name			= "gbu12_mq9",
	user_name		= _("gbu12_mq9"),
	wsTypeOfWeapon	= {wsType_Weapon,  wsType_Missile, wsType_AS_Missile, WSTYPE_PLACEHOLDER},
	
	class_name		= "wAmmunitionSelfHoming",                         
	model			= "gbu12_mq9",
	 mass = 250,  --770 292
	
	
	
	    Escort = 0,       
        Head_Type = 4,     
		sigma = {5, 5, 5},
        M = 286.0,
        H_max = 10000.0,
        H_min = -1,
        Diam = 305.0,
        Cx_pil = 4,
        D_max = 11112.0,
        D_min = 1000.0,
        Head_Form = 0,
        Life_Time = 100.0,
        Nr_max = 16,
        v_min = 50.0,
        v_mid = 290.0,
        Mach_max = 0.50,
        t_b = 0.1,    
        t_acc = 4.0,
        t_marsh = 0.0,   --40
        Range_max = 46000.1,          
        H_min_t = 0.0,
        Fi_start = 0.55,    
        Fi_rak = 3.14152,
        Fi_excort = 1.05,
        Fi_search = 99.9,
        OmViz_max = 99.9,
       
     -- exhaust  = { 0.5, 0.5, 0.5, 0.1 };
        X_back           = -2.7,                  -- -1.7,
        Y_back           = -0.2,
        Z_back           = 0.0,
        Reflection       = 0.121,        
        KillDistance     = 5.5,         
        
	 
	shape_table_data =
	{
		{
			name	 = "gbu12_mq9",
			file	 = "gbu12_mq9",
			life	 = 1,
			fire	 = { 0, 1},
			username = _("gbu12_mq9"),
			index	 = WSTYPE_PLACEHOLDER,
				
			
		},
	},
	
	
	fm = {
		mass        = 250,  
		caliber     = 0.305,  
		cx_coeff    = {1,0.39,0.38,0.236,1.31},
		L           = 2.49,
		I           = 1 / 12 * 209 * 2.49 * 2.49,
		Ma          = 0.68,
		Mw          = 1.116,
		wind_sigma	= 80.0,
		wind_time	= 1000.0,
		Sw			= 0.55,
		dCydA		= {0.07, 0.036},
		A			= 0.36,
		maxAoa		= 0.23,           
		finsTau		= 0.1,
		Ma_x		= 3,
		Kw_x		= 0.03,       
		I_x			= 40,
	},
	
	laser_spot_seeker = {
		FOV					= 0.558,
		max_seeker_range	= 26000.2,     
	},

		PN_autopilot = {
	    K		    =  0.014,       
		Ki			= 0.001,        
		Kg			= 2.5,          
		Kx			= 0.02,        
		fins_limit	=  0.3,     
		K_GBias		= 9.26,       
	},
	
	
	march = {
	  
		smoke_color			= {0.2, 0.2, 0.2},
		smoke_transparency	= 0.9,        
		
	},
		
	warhead			= predefined_warhead("Mk_83"),
	 
   
}

declare_weapon(gbu12_mq9)


declare_loadout({
	category 		= CAT_BOMBS,
	CLSID	 		= "{gbu12_mq9}",
	attribute		= gbu12_mq9.wsTypeOfWeapon,
	Count 			= 1,
	Cx_pil			= gbu12_mq9.Cx,
	Picture			= "gbu12_mq9.png",
	displayName		= gbu12_mq9.user_name,
	Weight			= gbu12_mq9.mass,
	Elements  		= {{ShapeName = gbu12_mq9.model}},
	
			
})








