#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 	= "2A42 30mm AutoCannon",
			weaponType 				= "cannon",
			caliber 				= 30,
			default = "30mm APDS-FS",
			magazines 					= {
				[1] = {
					name = "30mm APDS-FS",
					caliber 				= 30,
					velocity				= 500,
					explosionSize			= 0.1,
					maxPenDepth 			= 3.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 = "30mm AP-T",
						caliber 				= 30,
						velocity				= 500,
						explosionSize			= 1.6,
						maxPenDepth 			= 2.4,
						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,
					},
				[3] = {
						name = "30mm APDS",
						caliber 				= 30,
						velocity				= 500,
						explosionSize			= 0.1,
						maxPenDepth 			= 1.0,
						timeToLive 				= 7,
						gravityCoef 			= 0.9,--0.3,
						launcher				= "cannon",
						payload					= "HEAT",
						shellWidth				= 0.3,
						shellHeight				= 1.5,
						r						= 8.8,
						g						= 0.3, 
						b						= 0.3, 
						shellSpriteName			= "MOD/gfx/shellModel2.png",
						shellSpriteRearName		= "MOD/gfx/shellRear2.png",
						magazineCapacity = 500,
						ammoCount = 0,
						magazineCount = 1,
					},
					[4] = {
						name = "30mm HEF-T",
						caliber 				= 30,
						velocity				= 500,
						explosionSize			= 0.7,
						maxPenDepth 			= 0.01,
						timeToLive 				= 7,
						gravityCoef 			= 0.9,--0.3,
						launcher				= "cannon",
						payload					= "explosive",
						shellWidth				= 0.3,
						shellHeight				= 1.5,
						r						= 8.8,
						g						= 0.3, 
						b						= 0.3, 
						shellSpriteName			= "MOD/gfx/shellModel2.png",
						shellSpriteRearName		= "MOD/gfx/shellRear2.png",
						magazineCapacity = 500,
						ammoCount = 0,
						magazineCount = 1,
					},
					[5] = {
						name = "30mm HEF-I",
						caliber 				= 30,
						velocity				= 500,
						explosionSize			= 0.9,
						maxPenDepth 			= 0.01,
						timeToLive 				= 7,
						gravityCoef 			= 0.9,--0.3,
						launcher				= "cannon",
						payload					= "explosive",
						shellWidth				= 0.3,
						shellHeight				= 1.5,
						r						= 8.8,
						g						= 0.3, 
						b						= 0.3, 
						shellSpriteName			= "MOD/gfx/shellModel2.png",
						shellSpriteRearName		= "MOD/gfx/shellRear2.png",
						magazineCapacity = 500,
						ammoCount = 0,
						magazineCount = 1,
					},
				},
				coax = 	{
					name="PKT 7.62 Coax",
					sight					= {
						[1] = {
							x=1.6,
							y=2.1,
							z=0.5,
								},
												},
					barrels		= {
									[1] = {
										x = 0.15,
										y = 0.55,
										z = 2.7,
										}
									},
									scope_offset             = {
										[1] = {
											x = -0.02,
											y = -0.1,
											},
													},
					RPM 					= 650,
					elevationSpeed			= .4,
					zoomSight 				= "MOD/gfx/no_48_mkII.png",
					fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
					canZoom					= true,
					soundFile   = "MOD/sounds/machine_gun/gpmg_single_02.ogg",
					mouseDownSoundFile 			=	"MOD/sounds/machine_gun/gpgm_single_02.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=1.15,y=0.25,z=-0.7}
											},
				sight					= {
											[1] = {
												x=1.6,
												y=2.1,
												z=0.5,
												},
											},
	
				scope_offset 			= {
											[1] = {
												x = -0.02,
												y = -0.1,
												},
										},
										canZoom                    = true,
										zoomSight 				= "MOD/gfx/no_48_mkII.png",
										fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
										highVelocityShells        = true,
										cannonBlast             = 2,
										RPM                     = 400,
										reload                     = 15,
										recoil 					= 0.1,
										weapon_recoil 			= 12000,
										dispersion                 = 5,
										gunRange                = 500,
										gunBias                 = -1,
										elevationSpeed            = .5,
										smokeFactor             = 20.2,
										smokeMulti                = 1,
										soundFile   = "MOD/sounds/tank/tank_fire_11.ogg",
										loopSoundFile             =    "MOD/sounds/tank/tank_fire_11.ogg",
										reloadSound                = "MOD/sounds/AltTankReload",

					},
					
	},
}
	

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

vehicle = {

}


