#include "../../../vehicle_init.lua"

Vehicle = {
	Ammunition_Fire_Threshold = 80,
	Ammunition_Detonation_Threshold = 30,

	Language = "english-us",

}

Weapons = {
	["om1"]={

		Name = "AK-630",
		Caliber = 30, -- mm
		Accuracy = 0.00005, -- from 0 to 1
		Fire_Rate = 5000, -- rounds/min
		Reload_Time = 5, -- s
		Weapon_Sound = "autocannons/autocannon_interior_shared_0",
		Reload_Sound = "m256_load",
           Muzzle_Type = "autocannon",
		Recoiling_Barrel = false,
		Recoil_Distance = .5,
		
		Shell_Presets = {
			["30x165mm AP"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 5000,
				Reserve_Ammo = 0,
           Type = "apcbc",
		Name = "30x165mm APHE",

		Velocity = 900, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 0.2, -- mass of projectile in kg
		Momentum = 150, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 30, --projectile caliber in mm
		Shell_Caliber = 30, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 800,

		Spall_Amount = 10,
		Spall_Angle = 0.1, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 5, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 0.008, --(kg) used for HE shell

			},

			["30x165mm HE"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 5000,
				Reserve_Ammo = 0,
           Type = "he",
		Name = "30x165mm HE",

		Velocity = 800, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 0.2, -- mass of projectile in kg
		Momentum = 20, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 30, --projectile caliber in mm
		Shell_Caliber = 30, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 800,

		Spall_Amount = 10,
		Spall_Angle = 1, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 50, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 0.08, --(kg) used for HE shell

			},
		},

	},

	["asml"]={

		Name = "RBS-15",
		Caliber = 460, -- mm
		Accuracy = 0.0005, -- from 0 to 1
		Fire_Rate = 60, -- rounds/min
		Reload_Time = 6, -- s
Muzzle_Type = "sphere",
		Weapon_Sound = "atgm_launch",
		Reload_Sound = "t72_autoloader",
		Autoloader = true,

		Shell_Presets = {
			["rbs15"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 1,
				Reserve_Ammo = 0, --5
				
		Type = "t-heat",
		Name = "RBS15A",
		sound = "atgm_launch", -- used to override cannon sound file

		Velocity = 60, --m/s
		Propulsion_Type = "guided", -- propulsion type
		Terminal_Velocity = 310, -- propulsion force in N
		Max_Range = 5000, -- max range in m
		Mass = 200, -- mass of projectile in kg
		Momentum = 500, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 460, --projectile caliber in mm
		Shell_Caliber = 460, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 1,
		Tracer_Color_G = .4,
		Tracer_Color_B = .3,
		Recoil = 5000,

		Spall_Amount = 200,
		Spall_Angle = 0.2, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 700, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 75, --(kg) used for HE shells
		},
	},
	},

	["ng1m76"]={

		Name = "AK176",
		Caliber = 76, -- mm
		Accuracy = 0.00005, -- from 0 to 1
		Fire_Rate = 100, -- rounds/min
		Reload_Time = 10, -- s
Muzzle_Type = "sphere",
		Weapon_Sound = "cannons/120mm_shared_close_0",
		Reload_Sound = "m256_load",
		Recoiling_Barrel = true,
		Recoil_Distance = .5,

		Shell_Presets = {
			["ng176nap"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 20,
				Reserve_Ammo = 100,
Type = "apcbc",
		Name = "NG1M76 APHE",

		Velocity = 1100, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 15, -- mass of projectile in kg
		Momentum = 250, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 76, --projectile caliber in mm
		Shell_Caliber = 76, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 0.1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 1000,

		Spall_Amount = 120,
		Spall_Angle = 0.5, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 100, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 0.5, --(kg) used for HE shell
           Fuze_Delay = 0.5,
			
}, 
			["ng176mhe"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 20,
				Reserve_Ammo = 100,
Type = "he",
		Name = "NG1M76 HE",

		Velocity = 900, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 20, -- mass of projectile in kg
		Momentum = 70, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 76, --projectile caliber in mm
		Shell_Caliber = 76, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 0.1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 1000,

		Spall_Amount = 500,
		Spall_Angle = 1, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 500, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 5, --(kg) used for HE shell
			
            }, 
		},
	},

["rlg1"]={

		Name = "GARL",
		Caliber = 235, -- mm
		Accuracy = 0.00005, -- from 0 to 1
		Fire_Rate = 10, -- rounds/min
		Reload_Time = 6, -- s
Muzzle_Type = "sphere",
		Trigger_Delay = 0.1, -- s
		Weapon_Sound = "cannons/large_cannon_shared_close_0",
		Reload_Sound = "m256_load",
		Recoiling_Barrel = true,
		Recoil_Distance = 1,

		Shell_Presets = {
			["rglom"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 1,
				Reserve_Ammo = 50,
Type = "apfsds",
		Name = "XM251",

		Velocity = 3000, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 30, -- mass of projectile in kg
		Momentum = 2500, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 40, --projectile caliber in mm
		Shell_Caliber = 235, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 0.1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 1000,

		Spall_Amount = 200,
		Spall_Angle = 0.3, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 200, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 0, --(kg) used for HE shell
           Fuze_Delay = 0,
			
}, 
			["XM252"]={
				Custom = true, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 1,
				Reserve_Ammo = 50,
Type = "he",
		Name = "XM252",

		Velocity = 2500, --m/s
		Propulsion_Type = "ballistic", -- propulsion type
		Mass = 40, -- mass of projectile in kg
		Momentum = 100, --mm of RHA (rolled homogeneous armor)
		Projectile_Caliber = 235, --projectile caliber in mm
		Shell_Caliber = 235, --shell caliber in mm

		Tracer = true,
		Tracer_Color_R = 0.1,
		Tracer_Color_G = 0,
		Tracer_Color_B = 0,
		Recoil = 1000,

		Spall_Amount = 500,
		Spall_Angle = 1, --cone area of spall from 0 to 1 (0 being no deviation from projectile direction, 1 being sphere)
		Shrapnel_Amount = 500, --number of shrapnel pieces (used for HE shells)
		Explosive_Payload = 10, --(kg) used for HE shell
			
            }, 
		},
	},

["or2"]={

		Name = "Observation",
		Caliber = 0, -- mm
		Accuracy = 0, -- from 0 to 1
		Fire_Rate = 0, -- rounds/min
		Reload_Time = 0, -- s
		Weapon_Sound = "atgm_launch",
		Reload_Sound = "t72_autoloader",
		Autoloader = true,

		Shell_Presets = {
			["rbs15"]={
				Custom = false, -- If this is true, info about the ammo type will be given to the main script

				Mag_Size = 1,
				Reserve_Ammo = 0, --5
				},
	},
	},

}

function init()
	local v = FindVehicle("TABS")

	VehicleInit(v,Vehicle,Weapons)

	SetTag(v, "TABSINIT")
end