#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 	= "14.5 mm KPVT machine gun",
			weaponType 				= "cannon",
			caliber 				= 14.5,
			default = "14.5mm AP",
			magazines 					= {
				[1] = {
					name = "14.5mm AP",
					caliber 				= 14.5,
					velocity				= 280,
					explosionSize			= 0.1,
					maxPenDepth 			= 0.4,
					timeToLive 				= 7,
					gravityCoef 			= 0.5,--0.3,
					launcher				= "cannon",
					payload					= "AP",
					shellWidth				= 0.3,
					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 = "14.5mm API",
						caliber 				= 14.5,
						velocity				= 280,
						explosionSize			= 1.6,
						maxPenDepth 			= 0.3,
						timeToLive 				= 7,
						gravityCoef 			= 0.9,--0.3,
						launcher				= "cannon",
						payload					= "AP",
						shellWidth				= 0.3,
						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,
					},
				},
				coax = 	{
					name="PKT 7.62 Coax",
					sight					= {
						[1] = {
							x=1.2,
							y=1.4,
							z=0.1,
								},
												},
					barrels		= {
									[1] = {
										x = 0.05,
										y = 0.15,
										z = 0.9,
										}
									},
									scope_offset             = {
										[1] = {
											x = -0.02,
											y = -0.1,
											},
													},
					RPM 					= 650,
					elevationSpeed			= .4,
					zoomSight 				= "MOD/gfx/no_48_mkII.png",
					fireControlComputer		= "MOD/gfx/scope_outer_faded_02.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.35,y=0.15,z=-0.2}
											},
				sight					= {
											[1] = {
												x=1.2,
												y=1.4,
												z=0.1,
												},
											},
	
				scope_offset 			= {
											[1] = {
												x = -0.02,
												y = -0.1,
												},
										},
										canZoom                    = true,
										zoomSight 				= "MOD/gfx/no_48_mkII.png",
										fireControlComputer		= "MOD/gfx/scope_outer_faded_02.png",
										highVelocityShells        = true,
										cannonBlast             = 2,
										RPM                     = 600,
										reload                     = 15,
										recoil 					= 0.1,
										weapon_recoil 			= 4000,
										dispersion                 = 5,
										gunRange                = 500,
										gunBias                 = -1,
										elevationSpeed            = .5,
										smokeFactor             = 0.2,
										smokeMulti                = 1.0,
										soundFile   = "MOD/sounds/autocannons/zsu_23_2_single.ogg",
										loopSoundFile             =    "MOD/sounds/autocannons/zsu_23_2_single.ogg",
										reloadSound                = "MOD/sounds/AltTankReload",

					},
					
	},
}
	

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

vehicle = {

}


