#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 AP-T",
			magazines 					= {
				[1] = {
					name = "30mm APDS-FS",
					caliber 				= 30,
					velocity				= 290,
					explosionSize			= 0.1,
					maxPenDepth 			= 5.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 = "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,
				},
				[3] = {
						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,
					},
				[4] = {
						name = "30mm HE",
						caliber 				= 30,
						velocity				= 270,
						explosionSize			= 0.6,
						maxPenDepth 			= 0.1,
						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,
					},
					[5] = {
						name = "30mm HEF-T",
						caliber 				= 30,
						velocity				= 270,
						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,
					},
					[6] = {
						name = "30mm HEF-I",
						caliber 				= 30,
						velocity				= 270,
						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=2.5,
							y=2.2,
							z=0.6,
								},
												},
					barrels		= {
									[1] = {
										x = -0.05,
										y = -0.05,
										z = 2.5,
										}
									},
									scope_offset             = {
										[1] = {
											x = 0.0,
											y = -0.03,
											},
													},
					RPM 					= 750,
					elevationSpeed			= .4,
					zoomSight 				= "MOD/gfx/KORNETsight.png",
					fireControlComputer		= "MOD/gfx/scopeOutside_2.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×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=0.1,y=0.03,z=-0.5}
										},
			sight					= {
										[1] = {
										x=2.5,
										y=2.2,
										z=0.6,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.0,
											y = -0.03,
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/BPK-2-42.png",
									fireControlComputer		= "MOD/gfx/TEDAC1.png",
									highVelocityShells        = true,
									cannonBlast             = 4,
									RPM                     = 550,
									reload                     = 15,
									recoil                     = 0.1,
									dispersion                 = 5,
									gunRange                = 500,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 0.5,
									smokeMulti                = 1,
									soundFile   = "MOD/sounds/BMPsingle",
									mouseDownSoundFile         =    "MOD/sounds/bmpAutoFire",
									loopSoundFile             =    "MOD/sounds/bmpAutoFire.ogg",
									tailOffSound             =    "MOD/sounds/altFirealt_TailOff_2",
									reloadSound                = "MOD/sounds/AltTankReload",
		},
		["KPVT"]		= {
				name 	= "9M133 Kornet",
				weaponType 				= "atgm",
				caliber 				= 152,
				magazines 					= {
										[1] = {
									name = "9M133 (tandem) (1,200mm pen)",
									magazineCapacity = 4,
									ammoCount = 0,
									magazineCount = 20,
									caliber 				= 152,
									velocity				= 40,
									gravityCoef 			= 0,
									dispersionCoef 			= 10,
									explosionSize			= 4.9,
									maxPenDepth 			= 4.9,
									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",

											},
										},
				loadedMagazine 			= 1,
				barrels 				= 
											{
												[1] = {x=0.3,y=0.3,z=-0.3},
												[2] = {x=3.3,y=0.3,z=-0.3},
											},
				multiBarrel 			= 1,
				sight					= {
											[1] = {
											x = 0.6,
											y = 2.7,
											z = 2.1,
												},


											},
				backBlast				= 
											{
												[1] = {z=1.3,force=0},
											},
				canZoom					= true,
				aimForwards				= true,
				zoomSight 				= "MOD/gfx/KORNETsight.png",
				fireControlComputer		= "MOD/gfx/TEDAC1.png",
				highVelocityShells		= true,
				RPM 					= 190,
				reload 					= 2,
				recoil 					= 0,
				dispersion 				= 40,
				gunRange				= 1500,
				gunBias 				= -1,
				elevationSpeed			= 0.4,
				smokeFactor 			= 1,
				smokeMulti				= 5,
				soundFile				= "MOD/sounds/rockets/rocket_launcher_06.ogg",
					},
					
	},
}
	

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

vehicle = {

}

