#include "../../scripts/avf_custom.lua"


--[[

	use this file to config the parameters for your tank

	Feel free to rename this to the name of your tank



]]

vehicleParts = {
	chassis = {
		
	},
	turrets = {

	},
	guns = {
		["2A42btrs"]  = {
			name 	= "47 F2 MECA 105mm",
			weaponType 				= "cannon",
			caliber 				= 105,
			default = "47 F2 MECA 105 mm HEATFS",
			magazines 					= {
				[1] = {
					name = "47 F2 MECA 105 mm HEATFS",
					caliber 				= 105,
					velocity				= 480,
					explosionSize			= 1.7,
					maxPenDepth 			= 4.5,
					timeToLive 				= 7,
					gravityCoef 			= 0.9,--0.3,
					launcher				= "cannon",
					payload					= "HEAT",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 0.3,
					g						= 9.6, 
					b						= 0.3, 
					shellSpriteName			= "MOD/gfx/shellModel2.png",
					shellSpriteRearName		= "MOD/gfx/shellRear2.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 500,

				},
			[2] = {
					name = "47 F2 MECA 105 mm APFSDS",
					caliber 				= 105,
					velocity				= 599,
					explosionSize			= 4.0,
					maxPenDepth 			= 5.85,
					timeToLive 				= 7,
					gravityCoef 			= 1,
					launcher				= "cannon",
					payload					= "kinetic",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 9.7,
					g						= 1.7, 
					b						= 1.7,
					shellSpriteName			= "MOD/gfx/sabot.png",
					shellSpriteRearName		= "MOD/gfx/sabot.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 500,
				}, 
				[3] = {
					name = "47 F2 MECA 105 mm HE",
					caliber 				= 105,
					velocity				= 160,
					explosionSize			= 3.12,
					maxPenDepth 			= 0.1,
					timeToLive 				= 7,
					gravityCoef 			= 1,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 9.7,
					g						= 1.7, 
					b						= 1.7,
					shellSpriteName			= "MOD/gfx/shellModel2.png",
					shellSpriteRearName		= "MOD/gfx/shellRear2.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 500,
				}, 
				},
				coax = 	{
					name="M240 7.62mm coaxial machine gun",
					sight					= {
						[1] = {
							x=1.3,
							y=2.4,
							z=1.2,
								},
												},
					barrels		= {
									[1] = {
										x = 0.25,
										y = 0.35,
										z = -0.9,
										}
									},
									scope_offset             = {
										[1] = {
											x = -0.0,
											y = -0.03
											},
													},
					RPM 					= 941,
					elevationSpeed			= .4,
					zoomSight                 = "MOD/gfx/t72ScopeInner.png",
					fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
					canZoom					= true,
					soundFile   = "MOD/sounds/machine_gun/gpmg_single_02.ogg",
					mouseDownSoundFile 			=	"MOD/sounds/machine_gun/m2_single_01.ogg",
					reloadSound                = "MOD/sounds/alt_reload_reject",
	
					-- 				},
					
					magazines = {
						[1] = {
							name = "7.62×54mmR",
							caliber 				= 7.62,
							velocity				= 825,
							explosionSize			= 0.2,
							maxPenDepth 			= 0.6,
							timeToLive 				= 7,
							gravityCoef 			= 0.5,--0.3,
							launcher				= "cannon",
							payload					= "AP",
							shellWidth				= 0.1,
							shellHeight				= 1.5,
							r						= 1.7,
							g						= 8.7, 
							b						= 1.7, 
							shellSpriteName			= "MOD/gfx/sabot.png",
							shellSpriteRearName		= "MOD/gfx/sabotRear.png",
							magazineCapacity = 500,
							ammoCount = 0,
							magazineCount = 2,
						},
						[2] = {
							name = "7.62×54mmS",
							caliber 				= 7.62,
							velocity				= 825,
							explosionSize			= 0.6,
							maxPenDepth 			= 0.4,
							timeToLive 				= 7,
							gravityCoef 			= 0.9,--0.3,
							launcher				= "cannon",
							payload					= "AP",
							shellWidth				= 0.1,
							shellHeight				= 1.5,
							r						= 1.7,
							g						= 8.7, 
							b						= 1.7, 
							shellSpriteName			= "MOD/gfx/sabot.png",
							shellSpriteRearName		= "MOD/gfx/sabotRear.png",
							magazineCapacity = 500,
							ammoCount = 0,
							magazineCount = 2,
						},
						},
					},
			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.4,y=0.25,z=-6.9}
										},
			sight					= {
										[1] = {
										x=1.3,
										y=2.4,
										z=1.2,
											},
										},

			scope_offset 			= {
										[1] = {
											x = -0.0,
											y = -0.03
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/t72ScopeInner.png",
									fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
									highVelocityShells        = true,
									cannonBlast             = 8,
									RPM                     = 25,
									reload                     = 15,
									recoil                     = 2,
									dispersion                 = 10,
									gunRange                = 500,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 100,
									smokeMulti                = 10,
									soundFile   = "MOD/sounds/Relic_700_KV2Fire.ogg",
									reloadSound                = "MOD/sounds/alt_reload_reject",
		},
	["KPVT"]		= {
		-- 14.5 × 114 mm KPVT coaxial machine gun

					name 	= "M2 Browning",
					caliber 				= 14.5,
					weaponType 				= "MGun",
					loadedMagazine 			= 1,
					magazines 					= {
											[1] = {
												name = "50.Caliber",
												caliber 				= 12.7,
												velocity				= 590,
												explosionSize			= 0.6,
												maxPenDepth 			= 0.4,
												timeToLive 				= 7,
												gravityCoef 			= 0.9,--0.3,
												launcher				= "MGun",
												payload					= "AP",
												shellWidth				= 0.2,
												shellHeight				= 0.2,
												r						= 0.8,
												g						= 9.3, 
												b						= 0.3, 
												shellSpriteName			= "MOD/gfx/shellModel2.png",
												shellSpriteRearName		= "MOD/gfx/shellRear2.png",
												magazineCapacity = 100,
												ammoCount = 0,
												magazineCount = 5,
												},
											},

				barrels 				= 
											{
												[1] = {x=0.15,y=0.3,z=-2.0},
											},
				multiBarrel 			= 1,

				sight					= {
												[1] = {
											x = 1.5,
											y = 3.5,
											z = 2.6,
												},


											},
				canZoom					= false,
				aimForwards				= true,
				RPM 					= 400,
				reload 					= 15,
				magazineCapacity 		= 100,
				recoil 					= 0.2,
				dispersion 				= 17,
				gunRange				= 1800,
				elevationSpeed			= 0.8,
				smokeFactor 			= 0.05,
				smokeMulti				= 1,
				soundFile 				=	"MOD/sounds/machine_gun/m2_single_01.ogg",
				mouseDownSoundFile 		=	"MOD/sounds/machine_gun/HeavyAutoFire",
				loopSoundFile			= 	"MOD/sounds/machine_gun/m2_loop_02.ogg",
				tailOffSound	 		=	"MOD/sounds/machine_gun/m2_single_01.ogg",				
				},

	},
}
	

	---- magazine num _ val
	---- barrels num value

vehicle = {

}

