#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 	= "2A70 100mm Cannon",
			weaponType 				= "cannon",
			caliber 				= 100,
			default = "3OF70 100mm HE",
			magazines 					= {
				[1] = {
					name = "3OF32 100mm HE",
					caliber 				= 100,
					velocity				= 200,
					explosionSize			= 0.8,
					maxPenDepth 			= 0.1,
					timeToLive 				= 7,
					gravityCoef 			= 0.5,--0.3,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.6,
					shellHeight				= 1.5,
					r						= 1.7,
					g						= 8.7, 
					b						= 1.7, 
					shellSpriteName			= "MOD/gfx/sabot.png",
					shellSpriteRearName		= "MOD/gfx/sabotRear.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 48,
				},
				[2] = {
					name = "3OF70 100mm HE",
					caliber 				= 100,
					velocity				= 200,
					explosionSize			= 1.0,
					maxPenDepth 			= 0.3,
					timeToLive 				= 7,
					gravityCoef 			= 0.5,--0.3,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.7,
					shellHeight				= 1.5,
					r						= 1.7,
					g						= 8.7, 
					b						= 1.7, 
					shellSpriteName			= "MOD/gfx/sabot.png",
					shellSpriteRearName		= "MOD/gfx/sabotRear.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 48,
					},
					[3] = {
						name = "9M133 (tandem) (1,200mm pen)",
						magazineCapacity = 1,
						ammoCount = 0,
						magazineCount = 20,
						caliber 				= 100,
						velocity				= 40,
						gravityCoef 			= 0,
						dispersionCoef 			= 10,
						explosionSize			= 2.2,
						maxPenDepth 			= 5.8,
						timeToLive 				= 12,
						launcher				= "guided",
						payload					= "APHE",
						shellWidth				= 0.8,
						shellHeight				= 1.5,
						r						= 0.9,
						g						= 0.3, 
						b						= 0.3, 
						shellSpriteName			= "MOD/gfx/rocketModel.png",
						shellSpriteRearName		= "MOD/gfx/rocketRear.png",
						flightLoop				= "MOD/sounds/rocketFlightLoop0",
						},
				},
				coax = 	{
					name="2A42 30mm AutoCannon",
					sight					= {
												[1] = {
												x=2.5,
												y=2.2,
												z=0.6,
													},
												},
					barrels		= {
									[1] = {
										x = -0.0,
										y = 0.0,
										z = 0.0,
										}
									},
					scope_offset 			= {
										[1] = {
											x = 0.0,
											y = -0.04
											},
									},

					RPM 					= 360,
					elevationSpeed			= .4,
					zoomSight 				= "MOD/gfx/zsuDUBLAR1.png",
					fireControlComputer		= "MOD/gfx/TEDAC1.png",
					canZoom					= true,
					soundFile   = "MOD/sounds/excalibur-howitzer-shot.ogg",
					mouseDownSoundFile 			=	"MOD/sounds/excalibur-howitzer-shot.ogg",
					reloadSound                = "MOD/sounds/alt_reload_reject",

					-- 				},
					
					magazines = {
						[1] = {
							name = "30 mm APDS-T",
							caliber 				= 30,
							velocity				= 290,
							explosionSize			= 1.2,
							maxPenDepth 			= 2.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				= 290,
							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 HEF-I",
							caliber 				= 30,
							velocity				= 270,
							explosionSize			= 0.5,
							maxPenDepth 			= 0.01,
							timeToLive 				= 7,
							gravityCoef 			= 0.9,--0.3,
							launcher				= "cannon",
							payload					= "HE",
							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,
						},
						},
				},
			loadedMagazine 			= 1,
			barrels 				= 
										{
											[1] = {x=0.3,y=0.03,z=-0.9}
										},
			sight					= {
										[1] = {
										x=2.5,
										y=2.2,
										z=0.6,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.0,
											y = -0.04
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/zsuDUBLAR1.png",
									fireControlComputer		= "MOD/gfx/TEDAC1.png",
									highVelocityShells        = true,
									cannonBlast             = 50,
									RPM                     = 40,
									reload                     = 70,
									recoil                     = 0.5,
									dispersion                 = 5,
									gunRange                = 500,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 0.5,
									smokeMulti                = 1,
									soundFile   = "MOD/sounds/tank/tank_fire_10.ogg",
									reloadSound                = "MOD/sounds/tank/reload_short_01.ogg",

					},
					
	},
}
	

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

vehicle = {

}

