#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 	= "SPG-9",
			weaponType 				= "cannon",
			caliber 				= 73,
			magazines 					= {
									[1] = {
										name = "PG-9VNT 73mm (HEAT-FS)",
										magazineCapacity = 1,
										ammoCount = 0,
										magazineCount = 50,
										caliber 				= 73,
										velocity				= 190,
										explosionSize 			= 2.2,
										maxPenDepth 			= 3.2,
										timeToLive 				= 70,
										launcher				= "rocket",
										payload					= "HEAT",
										shellWidth				= 0.25,
										shellHeight				= 0.5,
										r						= 0.5,
										g						= 0.5, 
										b						= 0.5, 
										tracer 					= 50,
										tracerL					= 50,
										tracerW					= 60,
										tracerR					= 0.8,
										tracerG					= 1.0, 
										tracerB					= 1.0,
										shellSpriteName			= "MOD/gfx/rocketModel.png",
										shellSpriteRearName		= "MOD/gfx/shellRear2.png",
							
			},
			[2] = {
				name = "OG-9BG1 73mm (FRAG-HE)",
				magazineCapacity = 1,
				ammoCount = 0,
				magazineCount = 50,
				caliber 				= 73,
				velocity				= 190,
				explosionSize 			= 1.5,
				maxPenDepth 			= -1.0,
				timeToLive 				= 70,
				launcher				= "rocket",
				payload					= "APHE",
				shellWidth				= 0.25,
				shellHeight				= 0.5,
				r						= 0.5,
				g						= 0.5, 
				b						= 0.5, 
				tracer 					= 50,
				tracerL					= 50,
				tracerW					= 60,
				tracerR					= 0.8,
				tracerG					= 1.0, 
				tracerB					= 1.0,
				shellSpriteName			= "MOD/gfx/rocketModel.png",
				shellSpriteRearName		= "MOD/gfx/shellRear2.png",
           },
		   [3] = {
			name = "OG-9VM1 73mm (Anti-personnel)",
			magazineCapacity = 1,
			ammoCount = 0,
			magazineCount = 50,
			caliber 				= 73,
			velocity				= 190,
			explosionSize 			= 2.5,
			maxPenDepth 			= -1.0,
			timeToLive 				= 70,
			launcher				= "rocket",
			payload					= "HE",
			shellWidth				= 0.25,
			shellHeight				= 0.5,
			r						= 0.5,
			g						= 0.5, 
			b						= 0.5, 
			tracer 					= 50,
			tracerL					= 50,
			tracerW					= 60,
			tracerR					= 0.8,
			tracerG					= 1.0, 
			tracerB					= 1.0,
			shellSpriteName			= "MOD/gfx/rocketModel.png",
			shellSpriteRearName		= "MOD/gfx/shellRear2.png",
		},
		avf_barrel_coords_true = true
				},

			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.05,y=0.03,z=-0.5}
										},
										backBlast				= 
										{
											[1] = {z=4.0,force=5},
										},
			sight					= {
										[1] = {
										x=0.8,
										y=0.8,
										z=1.3,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.00,
											y = -0.02
											},
									},
									canZoom					= true,
									zoomSight                 = "MOD/gfx/spg9-sight.png",
									fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
									highVelocityShells		= true,
									RPM 					= 20,
									reload 					= 20,
									cannonBlast				= 1.5,
									recoil 					= 0.01,
									weapon_recoil 			= 300,
									dispersion 				= 5,
									gunRange				= 450,
									gunBias 				= -1,
									elevationSpeed			= .5,
									smokeFactor 			= .2,
									smokeMulti				= 3,
									soundFile   = "MOD/sounds/recoilessRifle2.ogg",

					},
					
	},
}
	

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

vehicle = {

}

