local ITA_Vedetta = ArmedBoat:New{
	name					= "Classe Vedetta",
	description				= "Patrol Gunboat",
	movementClass			= "BOAT_RiverMedium",
	acceleration			= 0.075,
	brakeRate				= 0.05,
	buildCostMetal			= 2200,
	collisionVolumeOffsets	= [[0.0 -12.5 0.0]],
	collisionVolumeScales	= [[24.0 11.0 150.0]],
	maxDamage				= 7000,
	maxReverseVelocity		= 0.7,
	maxVelocity				= 1.56,
	transportCapacity		= 4, -- 4 x 1fpu turrets
	turnRate				= 140,	
	weapons = {	
		[1] = { -- give primary weapon for ranging
			name				= "Ansaldo76mmL40HE",
		},
	},
	customparams = {
		children = {
			"ITAVedetta_Turret_76mm", 
			"ITAVedetta_Turret_MG", 
			"ITAVedetta_Turret_MG", 
			"ITAVedetta_Turret_MG", 
		},
		--[[deathanim = {
			["z"] = {angle = -30, speed = 10},
		},]]

		normaltex			= "unittextures/ITAVedetta_normals.png",
	},
}

local ITA_Vedetta_Turret_76mm = OpenBoatTurret:New{
	name					= "76mm Turret",
	description				= "Primary Turret",
	weapons = {	
		[1] = {
			name				= "Ansaldo76mmL40HE",
		},
	},
	customparams = {
		maxammo					= 16,

		barrelrecoildist		= 7,
		barrelrecoilspeed		= 10,
		turretturnspeed			= 15,
		elevationspeed			= 15,

		normaltex			= "unittextures/ITAVedetta_normals.png",
	},
}

local ITA_Vedetta_Turret_MG = OpenBoatTurret:New{
	name					= "MG Turret",
	description				= "Heavy Machinegun Turret",
	weapons = {	
		[1] = {
			name				= "BredaM1931AA",
			maxAngleDif			= 200,
			mainDir		= [[0 0 -1]],
		},
		[2] = {
			name				= "BredaM1931",
			maxAngleDif			= 200,
			mainDir		= [[0 0 -1]],
		},
	},
	customparams = {
		--barrelrecoildist		= 1,
		--barrelrecoilspeed		= 10,
		turretturnspeed			= 60,
		elevationspeed			= 60,
		facing					= 2,
		defaultheading1		= math.rad(180),
		aaweapon				= 1,

		normaltex			= "unittextures/ITAVedetta_normals.png",
	},
}


return lowerkeys({
	["ITAVedetta"] = ITA_Vedetta,
	["ITAVedetta_Turret_76mm"] = ITA_Vedetta_Turret_76mm,
	["ITAVedetta_Turret_MG"] = ITA_Vedetta_Turret_MG,
})
