#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 	= "152mm 2A37",
			weaponType 				= "cannon",
			caliber 				= 125,
			default = "blessed 152mm HE",
			magazines 					= {
				[1] = {
					name = "blessed 152mm HE",
					caliber 				= 125,
					velocity				= 170,
					explosionSize			= 2.9,
					maxPenDepth 			= 0.3,
					timeToLive 				= 7,
					gravityCoef 			= 1,
					launcher				= "cannon",
					payload					= "HE",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 9.7,
					g						= 1.7, 
					b						= 1.7,
					shellSpriteName			= "MOD/gfx/shellModel2.png",
					shellSpriteRearName		= "MOD/gfx/shellRear2.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 45,
				}, 
				},
				coax = 	{
					name="PKT 7.62 Coax",
					sight					= {
						[1] = {
							x=2.5,
							y=2.2,
							z=0.0,
								},
												},
					barrels		= {
									[1] = {
										x = -0.05,
										y = 0.35,
										z = -0.5,
										}
									},
									scope_offset             = {
										[1] = {
											x = 0.00,
											y = -0.05
											},
													},
					RPM 					= 650,
					elevationSpeed			= .4,
					zoomSight                 = "MOD/gfx/monitor_for_t4.png",
					fireControlComputer		= "MOD/gfx/monitor_for_t4 edge.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.4,y=0.25,z=-6.9}
										},
			sight					= {
										[1] = {
											x=2.5,
											y=2.2,
											z=0.0,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.00,
											y = -0.05
											},
									},
									canZoom                    = true,
									zoomSight                 = "MOD/gfx/monitor_for_t4.png",
									fireControlComputer		= "MOD/gfx/monitor_for_t4 edge.png",
									highVelocityShells        = true,
									cannonBlast             = 15,
									RPM                     = 9,
									reload                     = 8,
									recoil                     = 0.5,
									dispersion                 = 5,
									gunRange                = 3500,
									gunBias                 = -1,
									elevationSpeed            = .5,
									smokeFactor             = 10,
									smokeMulti                = 10,
									soundFile   = "MOD/sounds/T-72cannon.ogg",
									reloadSound                = "MOD/sounds/T-72Autoloaderold.ogg",
		},["KORD"]  = {
			name 	= "KORD",
			weaponType 				= "cannon",
			caliber 				= 12.7,
			magazines 					= {
									[1] = {
										name = "12.7mm AP",
										magazineCapacity = 100,
										ammoCount = 0,
										magazineCount = 50,
										caliber 				= 12.7,
										velocity				= 220,
										explosionSize 			= 0.1,
										maxPenDepth 			= 0.005,
										timeToLive 				= 10,
										launcher				= "cannon",
										payload					= "kinetic",
										shellWidth				= 0.15,
										shellHeight				= 2.0,
										r						= 5.5,
										g						= 0.5, 
										b						= 0.5, 
										tracer 					= 50,
										tracerL					= 50,
										tracerW					= 2,
										tracerR					= 180.8,
										tracerG					= 1.0, 
										tracerB					= 1.0,
										shellSpriteName			= "MOD/gfx/shellModel2.png",
										shellSpriteRearName		= "MOD/gfx/shellRear2.png",
							
			},
			[2] = {
				name = "12.7mm API",
				magazineCapacity = 200,
				ammoCount = 0,
				magazineCount = 10,			
				caliber 				= 12.7,
				velocity				= 220,
				explosionSize 			= .6,
				maxPenDepth 			= 1.5,
				timeToLive 				= 10,
				launcher				= "cannon",
				payload					= "AP",
				shellWidth				= 0.15,
				shellHeight				= 2.5,
				r						= 5.5,
				g						= 0.5, 
				b						= 0.5, 
				tracer 					= 50,
				tracerL					= 50,
				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.15,y=0.35,z=-0.4}
										},
			sight					= {
										[1] = {
										x=0.9,
										y=3.1,
										z=2.7,
											},
										},

			scope_offset 			= {
										[1] = {
											x = 0.03,
											y = -0.025
											},
									},
									canZoom					= false,
									highVelocityShells		= true,
									RPM 					= 550,
									reload 					= 15,
									cannonBlast				= 0.1,
									recoil 					= 0.0,
									weapon_recoil 			= 0.1,
									dispersion 				= 5,
									gunRange				= 2000,
									gunBias 				= -1,
									elevationSpeed			= .4,
									smokeFactor 			= .1,
									smokeMulti				= 1,
									soundFile   = "MOD/sounds/machine_gun/HeavyMg1.ogg",
									mouseDownSoundFile 			=	"MOD/sounds/machine_gun/HeavyMg1.ogg",

					},

	},
}
	

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

vehicle = {

}

