local SWE_T21 = ArmedBoat:New{
	name					= "T-21 torpedo boat",
	description				= "Motor Torpedo boat",
	movementClass			= "BOAT_MotorTorpedo",
	acceleration			= 0.3,
	brakeRate				= 0.3,
	buildCostMetal			= 1100,
	collisionVolumeOffsets	= [[0.0 -16.0 -15.0]],
	collisionVolumeScales	= [[40.0 20.0 260.0]],
	maxDamage				= 2700,
	maxVelocity				= 5.88, -- 49 knots
	transportCapacity		= 1, -- 1 x 1fpu turrets
	turnRate				= 75,
	weapons = {	
		[1] = {
			name				= "boforsm40_20mmhe",
			mainDir		= [[0 0 -1]],
		},
	},
	customparams = {
		soundcategory		= "SWE/Boat",
		children = {
			"SWET21_Turret_20mm_Rear", 
		},
		deathanim = {
			["z"] = {angle = -20, speed = -10},
		},
		smokegenerator		=	1,
		smokeradius		=	300,
		smokeduration		=	40,
		smokecooldown		=	30,
		smokeceg		=	"SMOKESHELL_Medium",
		normaltex			= "unittextures/SWET21_normals.png",
	},
}

local SWE_T21_Turret_20mm_Rear = OpenBoatTurret:New{
	name					= "20mm Turret",
	description				= "AA Turret",
	objectName				= "<SIDE>/SWET21_Turret_20mm.s3o",
  	weapons = {	
		[1] = {
			name				= "boforsm40_20mmaa",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
		},
		[2] = {
			name				= "boforsm40_20mmhe",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
		},
	},
	customparams = {
		facing					= 2,
		defaultheading1			= math.rad(180),
		maxammo					= 14,

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

return lowerkeys({
	["SWET21"] = SWE_T21,
	["SWET21_Turret_20mm_Rear"] = SWE_T21_Turret_20mm_Rear,
})
