local ITA_Gabbiano = ArmedBoat:New{
	name					= "Classe Gabbiano",
	description				= "Corvette",
	movementClass			= "BOAT_RiverLarge",
	acceleration			= 0.15,
	brakeRate				= 0.14,
	buildCostMetal			= 15000,
	category				= "LARGESHIP SHIP MINETRIGGER",
	collisionVolumeOffsets	= [[0.0 -12.5 0.0]],
	collisionVolumeScales	= [[24.0 11.0 150.0]],
	maxDamage				= 67000,
	maxVelocity				= 2.2, -- 18.5kn
	transportCapacity		= 6, -- 6 x 1fpu turrets
	turnRate				= 35,	
	weapons = {	
		[1] = {
			name				= "OTO100mmL47AP",
			maxAngleDif			= 270,
			onlyTargetCategory	= "BUILDING INFANTRY SOFTVEH OPENVEH HARDVEH SHIP LARGESHIP DEPLOYED TURRET",
		},
	},
	customparams = {
		soundcategory		= "ITA/Boat",
		children = {
			"ITAGabbiano_Turret_100mm", 
			"ITAGabbiano_Turret_20mm", 
			"ITAGabbiano_Turret_20mm", 
			"ITAGabbiano_Turret_20mm", 
			"ITAGabbiano_Turret_Twin20mm",
			"ITAGabbiano_Turret_Twin20mm",
		},
		deathanim = {
			["z"] = {angle = -45, speed = 10},
		},
		smokegenerator		=	1,
		smokeradius		=	300,
		smokeduration		=	40,
		smokecooldown		=	30,
		smokeceg		=	"SMOKESHELL_Medium",
		normaltex			= "unittextures/ITAGabbiano_normals.png",
	},
}

local ITA_Gabbiano_Turret_100mm = PartiallyEnclosedBoatTurret:New{
	name					= "100mm Turret",
	description				= "Primary Turret",
	weapons = {	
		[1] = {
			name				= "OTO100mmL47AP",
			maxAngleDif			= 270,		},
	},
		[2] = {
			name				= "OTO100mmL47HE",
			maxAngleDif			= 270,
		},

	customparams = {
		maxammo					= 18,

		barrelrecoildist		= 7,
		barrelrecoilspeed		= 10,
		turretturnspeed			= 28,
		elevationspeed			= 28,
		normaltex			= "unittextures/ITAGabbiano_normals.png",
	},
}

local ITA_Gabbiano_Turret_20mm = OpenBoatTurret:New{
	name					= "20mm Turret",
	description				= "AA Turret",
	weapons = {	
		[1] = {
			name				= "BredaM3520mmAA",
			maxAngleDif			= 270,
			onlyTargetCategory	= "AIR",
		},
		[2] = {
			name				= "BredaM3520mmHE",
			maxAngleDif			= 270,
		},
	},
	customparams = {
		maxammo					= 14,

		barrelrecoildist		= 3,
		barrelrecoilspeed		= 20,
		turretturnspeed			= 45,
		elevationspeed			= 45,
		aaweapon				= 1,
		normaltex			= "unittextures/ITAGabbiano_normals.png",
    },
}

local ITA_Gabbiano_Turret_Twin20mm = OpenBoatTurret:New{
	name					= "Twin 20mm Turret",
	description				= "AA Turret",
	weapons = {	
		[1] = {
			name				= "BredaM3520mmAA",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
		},
		[2] = {
			name				= "BredaM3520mmAA",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
			slaveTo				= 1,
		},
	},
	customparams = {
		maxammo					= 14,

		barrelrecoildist		= 3,
		barrelrecoilspeed		= 20,
		turretturnspeed			= 30,
		elevationspeed			= 45,
		facing					= 2,
		defaultheading1			= math.rad(180),
		aaweapon				= 1,
		normaltex			= "unittextures/ITAGabbiano_normals.png",
    },
}

return lowerkeys({
	["ITAGabbiano"] = ITA_Gabbiano,
	["ITAGabbiano_Turret_100mm"] = ITA_Gabbiano_Turret_100mm,
	["ITAGabbiano_Turret_20mm"] = ITA_Gabbiano_Turret_20mm,
	["ITAGabbiano_Turret_Twin20mm"] = ITA_Gabbiano_Turret_Twin20mm,
})
