#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 30x165mm AutoCannon",
			weaponType 				= "cannon",
			caliber 				= 30,
			default = "30mm AP-T",
			magazines 					= {
				[1] = {
					name = "3UOF8 (OFZ) HEFI 30x165mm",
					caliber 				= 30,
					velocity				= 290,
					explosionSize			= 0.5,
					maxPenDepth 			= 0.3,
					timeToLive 				= 7,
					gravityCoef 			= 0.7,--0.3,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.2,
					shellHeight				= 4.0,
					r						= 900.7,
					g						= 0.0, 
					b						= 0.0, 
					shellSpriteName			= "MOD/gfx/shellModel.png",
					shellSpriteRearName		= "MOD/gfx/shellRear.png",
					magazineCapacity = 500,
					ammoCount = 0,
					magazineCount = 2,
				},
				[2] = {
					name = "3UOR6 (OT) F-T 30x165mm",
					caliber 				= 30,
					velocity				= 290,
					explosionSize			= 0.5,
					maxPenDepth 			= 0.7,
					timeToLive 				= 7,
					gravityCoef 			= 0.6,--0.3,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.2,
					shellHeight				= 3.5,
					r						= 1.0,
					g						= 1.0, 
					b						= 1.0, 
					shellSpriteName			= "MOD/gfx/shellModel.png",
					shellSpriteRearName		= "MOD/gfx/shellRear.png",
					magazineCapacity = 500,
					ammoCount = 0,
					magazineCount = 2,
				},
				[3] = {
					name = "3UBR6 (BT) APDS-T 30x165mm",
					caliber 				= 30,
					velocity				= 290,
					explosionSize			= 0.1,
					maxPenDepth 			= 0.8,
					timeToLive 				= 7,
					gravityCoef 			= 0.5,--0.3,
					launcher				= "cannon",
					payload					= "AP",
					shellWidth				= 0.2,
					shellHeight				= 3.5,
					r						= 9.7,
					g						= 8.7, 
					b						= 1.7, 
					shellSpriteName			= "MOD/gfx/shellModel.png",
					shellSpriteRearName		= "MOD/gfx/shellRear.png",
					magazineCapacity = 500,
					ammoCount = 0,
					magazineCount = 2,
				},
				[4] = {
					name = "3UBR8 (BPS) APDS 30x165mm",
					caliber 				= 30,
					velocity				= 290,
					explosionSize			= 6.4,
					maxPenDepth 			= 1.5,
					timeToLive 				= 7,
					gravityCoef 			= 0.3,--0.3,
					launcher				= "cannon",
					payload					= "AP",
					shellWidth				= 0.2,
					shellHeight				= 1.5,
					r						= 1.7,
					g						= 18.7, 
					b						= 1.7, 
					shellSpriteName			= "MOD/gfx/shellModel.png",
					shellSpriteRearName		= "MOD/gfx/shellRear.png",
					magazineCapacity = 500,
					ammoCount = 0,
					magazineCount = 2,
				},
			},
			coax = 	{
				name="PKT 7.62 Coax",
				sight					= {
					[1] = {
						x=1.8,
						y=2.0,
						z=0.4,
							},
											},
				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/BPK-2-42.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=1.8,
										y=2.0,
										z=0.4,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.0,
											y = -0.04,
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/BPK-2-42.png",
									fireControlComputer		= "MOD/gfx/scopeOutside_2.png",
									highVelocityShells        = true,
									cannonBlast             = 8,
									RPM                     = 550,
									reload                     = 15,
									recoil                     = 0.2,
									weapon_recoil 			= 60,
									dispersion                 = 2,
									gunRange                = 500,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 45.5,
									smokeMulti                = 1,
									soundFile   = "MOD/sounds/2A42Tailoff.ogg",
									mouseDownSoundFile         =    "MOD/sounds/BMP22A42550rpmburst.ogg",
									loopSoundFile             =    "MOD/sounds/BMP22A42550rpmburst.ogg",
									tailOffSound             =    "MOD/sounds/2A42Tailoff.ogg",
									reloadSound                = "MOD/sounds/AltTankReload",
		},
		["KPVT"]		= {
				name 	= "9M133 Kornet",
				weaponType 				= "atgm",
				caliber 				= 73,
				magazines 					= {
										[1] = {
									name = "9M133M-2",
									magazineCapacity = 1,
									ammoCount = 0,
									magazineCount = 20,
									caliber 				= 73,
									velocity				= 40,
									gravityCoef 			= 0,
									dispersionCoef 			= 10,
									explosionSize			= 3.2,
									maxPenDepth 			= 3.0,
									timeToLive 				= 22,
									launcher				= "guided",
									payload					= "HEAT",
									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.05,y=0.3,z=-0.5},
											},
				multiBarrel 			= 1,
				sight					= {
											[1] = {
												x=1.8,
												y=2.0,
												z=0.4,
												},


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

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

vehicle = {

}

