#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 	= "125mm 2A46M",
			weaponType 				= "cannon",
			caliber 				= 125,
			default = "3BK18M 125mm HEATFS",
			magazines 					= {
				[1] = {
					name = "3BK18M 125mm HEATFS",
					caliber 				= 125,
					velocity				= 240,
					explosionSize			= 1.3,
					maxPenDepth 			= 8.4,
					timeToLive 				= 7,
					gravityCoef 			= 0.9,--0.3,
					launcher				= "cannon",
					payload					= "HEAT",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 0.3,
					g						= 9.6, 
					b						= 0.3, 
					shellSpriteName			= "MOD/gfx/shellModel2.png",
					shellSpriteRearName		= "MOD/gfx/shellRear2.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 45,

				},
			[2] = {
				name = "3BM60 125mm APFSDS",
				caliber 				= 125,
				velocity				= 330,
				explosionSize			= 5.5,
				maxPenDepth 			= 2.5,
				timeToLive 				= 7,
				gravityCoef 			= 0.5,
				launcher				= "cannon",
				payload					= "kinetic",
				shellWidth				= 0.5,
				shellHeight				= 1.5,
				r						= 13.8,
				g						= 9.3, 
				b						= 2.3, 
				shellSpriteName			= "MOD/gfx/sabot.png",
				shellSpriteRearName		= "MOD/gfx/sabotRear.png",
				magazineCapacity = 1,
				ammoCount = 0,
				magazineCount = 45,
				},
			[3] = {
					name = "3BM42 125mm APFSDS",
					caliber 				= 125,
					velocity				= 330,
					explosionSize			= 5.5,
					maxPenDepth 			= 2.3,
					timeToLive 				= 7,
					gravityCoef 			= 0.5,
					launcher				= "cannon",
					payload					= "kinetic",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 13.8,
					g						= 9.3, 
					b						= 2.3, 
					shellSpriteName			= "MOD/gfx/sabot.png",
					shellSpriteRearName		= "MOD/gfx/sabotRear.png",
					magazineCapacity = 1,
					ammoCount = 0,
					magazineCount = 45,
				},
				[4] = {
					name = "3OF26 EDKV 125mm HE-TF",
					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,
				}, 
				[5] = {
					name = "9M119 Svir/Refleks (AGTM)",
					caliber 				= 125,
					velocity				= 60,
					explosionSize			= 2.9,
					maxPenDepth 			= 10.4,
					timeToLive 				= 7,
					gravityCoef 			= 1,
					launcher				= "guided",
					payload					= "HEAT",
					shellWidth				= 0.5,
					shellHeight				= 1.5,
					r						= 3.7,
					g						= 3.7, 
					b						= 3.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                     = 12,
								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.15,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 = {

}

