#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 	= "ZU-23 23mm AA (2000RPM)",
			weaponType 				= "cannon",
			caliber 				= 122,
			magazines 					= {
									[1] = {
										name = "OFZ 23mm (HE)",
										magazineCapacity = 100,
										ammoCount = 0,
										magazineCount = 50,
										caliber 				= 23,
										velocity				= 220,
										explosionSize 			= .8,
										maxPenDepth 			= 0.1,
										timeToLive 				= 10,
										launcher				= "cannon",
										payload					= "HE",
										shellWidth				= 0.15,
										shellHeight				= 1.5,
										r						= 5.5,
										g						= 0.5, 
										b						= 0.5, 
										tracer 					= 1,
										tracerL					= 5,
										tracerW					= 2,
										tracerR					= 180.8,
										tracerG					= 1.0, 
										tracerB					= 1.0,
										shellSpriteName			= "MOD/gfx/shellModel2.png",
										shellSpriteRearName		= "MOD/gfx/shellRear2.png",
							
			},
			[2] = {
				name = "BZT 23mm (API)",
				magazineCapacity = 200,
				ammoCount = 0,
				magazineCount = 10,			
				caliber 				= 23,
				velocity				= 220,
				explosionSize 			= .6,
				maxPenDepth 			= 1.5,
				timeToLive 				= 10,
				launcher				= "cannon",
				payload					= "AP",
				shellWidth				= 0.15,
				shellHeight				= 1.5,
				r						= 5.5,
				g						= 0.5, 
				b						= 0.5, 
				tracer 					= 1,
				tracerL					= 5,
				tracerW					= 2,
				tracerR					= 180.8,
				tracerG					= 1.0, 
				tracerB					= 1.0,
				shellSpriteName			= "MOD/gfx/shellModel2.png",
				shellSpriteRearName		= "MOD/gfx/shellRear2.png",
           },
		   [3] = {
			name = "OFZT 23mm (AA/OFFENSIVE)",
			magazineCapacity = 200,
			ammoCount = 0,
			magazineCount = 10,			
			caliber 				= 23,
			velocity				= 220,
			explosionSize 			= 0.5,
			maxPenDepth 			= 1.5,
			timeToLive 				= 10,
			launcher				= "cannon",
			payload					= "APHE",
			shellWidth				= 0.15,
			shellHeight				= 1.5,
			r						= 5.5,
			g						= 0.5, 
			b						= 0.5, 
			tracer 					= 1,
			tracerL					= 5,
			tracerW					= 2,
			tracerR					= 180.8,
			tracerG					= 1.0, 
			tracerB					= 1.0, 
			shellSpriteName			= "MOD/gfx/shellModel2.png",
			shellSpriteRearName		= "MOD/gfx/shellRear2.png",
		},
				},
				coax = 	{
					name="ZU-23 23mm AA (400RPM)",
					sight					= {
												[1] = {
													x=1.2,
													y=1.2,
													z=1.3,
													},
												},
					barrels		= {
									[1] = {
										x = -0.0,
										y = 0.0,
										z = 0.0,
										}
									},
					scope_offset 			= {
										[1] = {
											x = 0.0,
											y = -0.04
											},
									},

									canZoom					= false,
									highVelocityShells		= true,
									RPM 					= 400,
									reload 					= 4,
									cannonBlast				= 0.1,
									recoil 					= 0.02,
									weapon_recoil 			= 200,
									dispersion 				= 20,
									gunRange				= 500,
									gunBias 				= -1,
									elevationSpeed			= .5,
									smokeFactor 			= .1,
									smokeMulti				= 1,
									soundFile   = "MOD/sounds/autocannons/zsu_23_2_single",
									mouseDownSoundFile 			=	"MOD/sounds/autocannons/zsu_23_2_sub_burst_02",

					-- 				},
					
					magazines = {
						[1] = {
							name = "OFZ 23mm (HE)",
							magazineCapacity = 100,
							ammoCount = 0,
							magazineCount = 50,
							caliber 				= 23,
							velocity				= 220,
							explosionSize 			= .8,
							maxPenDepth 			= 0.1,
							timeToLive 				= 10,
							launcher				= "cannon",
							payload					= "HE",
							shellWidth				= 0.15,
							shellHeight				= 1.5,
							r						= 5.5,
							g						= 0.5, 
							b						= 0.5, 
							tracer 					= 1,
							tracerL					= 5,
							tracerW					= 2,
							tracerR					= 180.8,
							tracerG					= 1.0, 
							tracerB					= 1.0,
							shellSpriteName			= "MOD/gfx/shellModel2.png",
							shellSpriteRearName		= "MOD/gfx/shellRear2.png",
				
},
[2] = {
	name = "BZT 23mm (API)",
	magazineCapacity = 200,
	ammoCount = 0,
	magazineCount = 10,			
	caliber 				= 23,
	velocity				= 220,
	explosionSize 			= .6,
	maxPenDepth 			= 1.5,
	timeToLive 				= 10,
	launcher				= "cannon",
	payload					= "AP",
	shellWidth				= 0.15,
	shellHeight				= 1.5,
	r						= 5.5,
	g						= 0.5, 
	b						= 0.5, 
	tracer 					= 1,
	tracerL					= 5,
	tracerW					= 2,
	tracerR					= 180.8,
	tracerG					= 1.0, 
	tracerB					= 1.0,
	shellSpriteName			= "MOD/gfx/shellModel2.png",
	shellSpriteRearName		= "MOD/gfx/shellRear2.png",
},
[3] = {
name = "OFZT 23mm (AA/OFFENSIVE)",
magazineCapacity = 200,
ammoCount = 0,
magazineCount = 10,			
caliber 				= 23,
velocity				= 220,
explosionSize 			= 0.5,
maxPenDepth 			= 1.5,
timeToLive 				= 10,
launcher				= "cannon",
payload					= "APHE",
shellWidth				= 0.15,
shellHeight				= 1.5,
r						= 5.5,
g						= 0.5, 
b						= 0.5, 
tracer 					= 1,
tracerL					= 5,
tracerW					= 2,
tracerR					= 180.8,
tracerG					= 1.0, 
tracerB					= 1.0, 
shellSpriteName			= "MOD/gfx/shellModel2.png",
shellSpriteRearName		= "MOD/gfx/shellRear2.png",
},
						},
				},
			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.3,y=0.03,z=-0.9}
										},
			sight					= {
										[1] = {
										x=1.2,
										y=1.2,
										z=1.3,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.03,
											y = -0.025
											},
									},
									canZoom					= false,
									highVelocityShells		= true,
									RPM 					= 2000,
									reload 					= 4,
									cannonBlast				= 0.1,
									recoil 					= 0.02,
									weapon_recoil 			= 1200,
									dispersion 				= 20,
									gunRange				= 500,
									gunBias 				= -1,
									elevationSpeed			= .5,
									smokeFactor 			= .1,
									smokeMulti				= 1,
									soundFile   = "MOD/sounds/autocannons/zsu_23_2_single",
									mouseDownSoundFile 			=	"MOD/sounds/autocannons/zsu_23_2_sub_burst_01.ogg",
									tailOffSound	 		= "MOD/sounds/autocannons/zsu_23_2_tail_off",

					},
					
	},
}
	

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

vehicle = {

}

