#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 	= "PKM 7.62×54mm",
			weaponType 				= "cannon",
			caliber 				= 7.62,
			magazines 					= {
									[1] = {
										name = "7.62×54mmR",
										caliber 				= 7.62,
										velocity				= 825,
										explosionSize			= 0.2,
										maxPenDepth 			= 0.5,
										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.15,y=0.35,z=-0.4}
										},
			sight					= {
										[1] = {
										x=0.2,
										y=0.7,
										z=0.6,
											},
										},

			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 = {

}

