-------------------------------Patrick et Eric







samp_mk_82 = {
	category  = CAT_BOMBS,
	name      = "samp_mk_82",
	model     = "samp_mk_82",
	user_name = _("samp_mk_82"),
	wsTypeOfWeapon = {wsType_Weapon, wsType_Bomb, wsType_Bomb_A, WSTYPE_PLACEHOLDER},
	scheme    = "bomb-common",
        type    = 0,
        mass    = 250,
        hMin    = 100.0,
        hMax    = 12000.0,
        Cx      = 0.00025,
        VyHold  = -100.0,
        Ag      = -1.23,

	fm = {
            mass            = 250,
            caliber         = 0.273000,
            cx_coeff        = {1.000000, 0.290000, 0.710000, 0.140000, 1.280000},
            L               = 2.210000,
            I               = 94.425933,
            Ma              = 2.746331,
            Mw              = 2.146083,
            wind_time       = 1000.000000,
            wind_sigma      = 80.000000,
    },
  
	warhead = {
		mass                 = 25,
		expl_mass            = 25,
		other_factors        = {1, 1, 1},
		obj_factors          = {1, 1},
		concrete_factors     = {1, 1, 1},
		cumulative_factor    = 0,
		concrete_obj_factor  = 0,
		cumulative_thickness = 0,
		piercing_mass        = 5,
		caliber              = 200,
	},

	-- velK is calibrated to get arming time of 0.8 seconds at initial bomb speed of 150 m/s (540 km/h)
	arming_vane = {enabled = true, velK = 0.00834},
	-- overriding default setting (delay is enabled for all bombs by default)
	arming_delay = {enabled = false, delay_time = 0},
	
	shape_table_data = {
		{
			name     = "samp_mk_82",
			file     = "samp_mk_82",
			life     = 1,
			fire     = {0, 1},
			username = "samp_mk_82",
			index    = WSTYPE_PLACEHOLDER,
		},
	},
 
	targeting_data = {
		char_time = 20.87, -- characteristic time for sights 
	},
}
declare_weapon(samp_mk_82)

declare_loadout(
{
	category 		= CAT_BOMBS,
	CLSID	 		= "{samp_mk_82}",
	attribute		= samp_mk_82.wsTypeOfWeapon,
	Count 			= 1,
	Cx_pil			= samp_mk_82.Cx,
	Picture			= "br250.png",		-- TODO: "FAB50.png",
	displayName		= samp_mk_82.user_name,
	Weight			=samp_mk_82.mass,
	Elements  = {
		{
			ShapeName = "samp_mk_82",
		}, 
	},
}
)



samp_type21 = {
	category  = CAT_BOMBS,
	name      = "samp_type21",
	model     = "samp_type21",
	user_name = _("samp_type21"),
	wsTypeOfWeapon = {wsType_Weapon, wsType_Bomb, wsType_Bomb_A, WSTYPE_PLACEHOLDER},
	scheme    = "bomb-common",
        type    = 0,
        mass    = 400,
        hMin    = 200.0,
        hMax    = 12000.0,
        Cx      = 0.00035,
        VyHold  = -100.0,
        Ag      = -1.23,

	fm = {
            mass            = 400,
            caliber         = 0.356000,
            cx_coeff        = {1.000000, 0.290000, 0.710000, 0.130000, 1.280000},
            L               = 3.000000,
            I               = 340.500000,
            Ma              = 2.746331,
            Mw              = 2.146083,
            wind_time       = 1000.000000,
            wind_sigma      = 150.000000,
    },
  
	warhead = {
		mass                 = 51,
		expl_mass            = 51,
		other_factors        = {1, 1, 1},
		obj_factors          = {1, 1},
		concrete_factors     = {1, 1, 1},
		cumulative_factor    = 0,
		concrete_obj_factor  = 0,
		cumulative_thickness = 0,
		piercing_mass        = 5,
		caliber              = 200,
	},

	-- velK is calibrated to get arming time of 0.8 seconds at initial bomb speed of 150 m/s (540 km/h)
	arming_vane = {enabled = true, velK = 0.00834},
	-- overriding default setting (delay is enabled for all bombs by default)
	arming_delay = {enabled = false, delay_time = 0},
	
	shape_table_data = {
		{
			name     = "samp_type21",
			file     = "samp_type21",
			life     = 1,
			fire     = {0, 1},
			username = "samp_type21",
			index    = WSTYPE_PLACEHOLDER,
		},
	},
 
	targeting_data = {
		char_time = 20.87, -- characteristic time for sights 
	},
}
declare_weapon(samp_type21)

declare_loadout(
{
	category 		= CAT_BOMBS,
	CLSID	 		= "{samp_type21}",
	attribute		= samp_type21.wsTypeOfWeapon,
	Count 			= 1,
	Cx_pil			= samp_type21.Cx,
	Picture			= "br500.png",		-- TODO: "FAB50.png",
	displayName		= samp_type21.user_name,
	Weight			= samp_type21.mass,
	Elements  = {
		{
			ShapeName = "samp_type21",
		}, 
	},
}
)



























