#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 	= "2A28 Grom 73mm Cannon",
			weaponType 				= "rocket",
			caliber 				= 76,
			default = "PG-9 73mm HEAT 1,130kg of TNT",
			magazines 					= {
				[1] = {
						name = "PG-9 73mm HEAT 1,130kg of TNT",
						caliber 				= 73,
						velocity				= 225,
						explosionSize			= 0.4,
						maxPenDepth 			= 3.4,
						timeToLive 				= 7,
						gravityCoef 			= 1.0,--0.3,
						launcher				= "rocket",
						payload					= "HEAT",
						shellWidth				= 1.2,
						shellHeight				= 4.7,
						r						= 5.7,
						g						= 1.7, 
						b						= 1.7, 
						shellSpriteName			= "MOD/gfx/rocketModel2.png",
						shellSpriteRearName		= "MOD/gfx/rocketRear.png",
						magazineCapacity = 1,
						ammoCount = 0,
						magazineCount = 50,
					},
				[2] = {
						name = "OG-9 73mm HE 735kg of TNT",
						caliber 				= 73,
						velocity				= 190,
						explosionSize			= 2.0,
						maxPenDepth 			= 0.11,
						timeToLive 				= 7,
						gravityCoef 			= 0.9,--0.3,
						launcher				= "rocket",
						payload					= "HE",
						shellWidth				= 1.2,
						shellHeight				= 4.7,
						r						= 8.8,
						g						= 0.3, 
						b						= 0.3, 
						shellSpriteName			= "MOD/gfx/rocketModel2.png",
						shellSpriteRearName		= "MOD/gfx/rocketRear.png",
						magazineCapacity = 1,
						ammoCount = 5,
						magazineCount = 50,
					}, 
				},
				coax = 	{
					name="PKT 7.62 Coax",
					sight					= {
						[1] = {
							x=1.3,
							y=2.0,
							z=0.4,
								},
												},
					barrels		= {
									[1] = {
										x = -0.05,
										y = 0.35,
										z = -0.5,
										}
									},
									scope_offset             = {
										[1] = {
											x = -0.0,
											y = -0.05,
											},
													},
					RPM 					= 650,
					elevationSpeed			= .4,
					zoomSight 				= "MOD/gfx/spg9-sight.png",
					fireControlComputer		= "MOD/gfx/scopeOutside_3.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×54Rmm 2000belt",
							caliber 				= 7.62,
							velocity				= 825,
							explosionSize			= 0.2,
							maxPenDepth 			= 0.4,
							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 = 2000,
							ammoCount = 0,
							magazineCount = 1,
						},
						[2] = {
							name = "7.62×54Smm 2000belt",
							caliber 				= 7.62,
							velocity				= 825,
							explosionSize			= 0.6,
							maxPenDepth 			= 0.3,
							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 = 2000,
							ammoCount = 0,
							magazineCount = 1,
						},
						},
					},
			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.05,y=0.15,z=-2.9}
										},
			sight					= {
										[1] = {
										x=1.3,
										y=2.0,
										z=0.4,
											},
										},

			scope_offset 			= {
										[1] = {
											x = -0.0,
											y = -0.05,
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/spg9-sight.png",
									fireControlComputer		= "MOD/gfx/scopeOutside_3.png",
									highVelocityShells        = true,
									cannonBlast             = 50,
									RPM                     = 26,
									reload                     = 15,
									recoil                     = 1.0,
									weapon_recoil 			= 12,
									dispersion                 = 5,
									gunRange                = 900,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 0.5,
									smokeMulti                = 0.9,
									soundFile   = "MOD/sounds/tank/tank_fire_06.ogg",
									reloadSound                = "MOD/sounds/refillingAmmo.ogg",
		},
		["KPVT"]		= {
			name 	= "9M14 ATGM",
			weaponType 				= "atgm",
			caliber 				= 73,
			magazines 					= {
									[1] = {
								name = "9M14 ATGM",
								magazineCapacity = 1,
								ammoCount = 0,
								magazineCount = 20,
								caliber 				= 152,
								velocity				= 40,
								gravityCoef 			= 0,
								dispersionCoef 			= 10,
								explosionSize			= 1.5,
								maxPenDepth 			= 2.0,
								timeToLive 				= 32,
								launcher				= "guided",
								payload					= "HEAT",
								shellWidth				= 1.2,
								shellHeight				= 1.5,
								r						= 0.9,
								g						= 0.3, 
								b						= 0.3, 
								shellSpriteName			= "MOD/gfx/rocketModel2.png",
								shellSpriteRearName		= "MOD/gfx/rocketRear.png",
								flightLoop				= "MOD/sounds/rocketFlightLoop0",

										},
									},
			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.1,y=0.3,z=-0.6},
										},
			multiBarrel 			= 1,
			sight					= {
										[1] = {
											x=1.3,
											y=2.0,
											z=0.4,
											},


										},
			backBlast				= 
										{
											[1] = {z=1.3,force=0},
										},
			canZoom					= true,
			aimForwards				= true,
			zoomSight 				= "MOD/gfx/spg9-sight.png",
			fireControlComputer		= "MOD/gfx/scopeOutside_3.png",
			highVelocityShells		= true,
			RPM 					= 10,
			reload 					= 10,
			recoil 					= 0,
			weapon_recoil 			= 0,
			dispersion 				= 40,
			gunRange				= 1500,
			gunBias 				= -15,
			elevationSpeed			= 0.4,
			smokeFactor 			= 1,
			smokeMulti				= 1,
			soundFile				= "MOD/sounds/atgm00",
				},
				
    },
}


	

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

vehicle = {

}

