local JPN_Seta = ArmedBoat:New{
	name					= "Seta-class Gunboat",
	description				= "Large river gunboat",
	movementClass			= "BOAT_RiverLarge",
	acceleration			= 0.05,
	brakeRate				= 0.025,
	buildCostMetal			= 7290,
	collisionVolumeOffsets	= [[0.0 -8.0 0.0]],
	collisionVolumeScales	= [[24.0 12.0 160.0]],
	maxDamage				= 30800,
	maxReverseVelocity		= 0.7,
	maxVelocity				= 1.6,
	transportCapacity		= 4, -- 4 x 1fpu turrets
	turnRate				= 50,	
	
	weapons = {	
		[1] = { -- give primary weapon for ranging
			name				= "Type376mmL40HE",
		},
	},
	customparams = {
		children = {
			"JPNSeta_turret_76mm_front",
			"JPNSeta_turret_25mm",
			"JPNSeta_turret_25mm",
			"JPNSeta_turret_76mm_rear",
		},
		piecehitvols = {
			tower = {
				offset = { 0, 0, 10 },
				scale = { 1, 1, 0.65 }
			}
		},
		--[[deathanim = {
			["z"] = {angle = -10, speed = 45},
		},]]
		normaltex			= "unittextures/JPNSeta_normals.png",
	},
}

local JPN_Seta_Turret_76mm_Front = PartiallyEnclosedBoatTurret:New{
	name					= "Seta 76mm Turret",
	description				= "Primary Turret",
	objectName				= "<SIDE>/JPNSeta_turret_76mm.s3o",
  	weapons = {	
		[1] = {
			name				= "Type376mmL40HE",
			maxAngleDif			= 270,
		},
	},
	customparams = {
		maxammo					= 16,

		barrelrecoildist		= 7,
		barrelrecoilspeed		= 10,
		turretturnspeed			= 15,
		elevationspeed			= 15,
		normaltex			= "unittextures/JPNSeta_normals.png",
    },
}

local JPN_Seta_Turret_76mm_Rear = JPN_Seta_Turret_76mm_Front:New{
	weapons = {
		[1] = {
			mainDir		= [[0 0 -1]],
		},
	},
	customparams = {
		facing = 2,
		defaultheading1		= math.rad(180),
	},
}

local JPN_Seta_Turret_25mm = OpenBoatTurret:New{
	name					= "Seta 25mm Turret",
	description				= "AA Turret",
  	weapons = {	
		[1] = {
			name				= "TwinType9625mmAA",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
		},
		[2] = {
			name				= "TwinType9625mmAA",
			maxAngleDif			= 270,
			mainDir		= [[0 0 -1]],
			slaveTo				= 1,
		},
		[3] = {
			name				= "TwinType9625mmHE",
			mainDir		= [[0 0 -1]],
			maxAngleDif			= 270,
		},
		[4] = {
			name				= "TwinType9625mmHE",
			mainDir		= [[0 0 -1]],
			maxAngleDif			= 270,
			slaveTo				= 3,
		},
	},
	customparams = {
		maxammo					= 14,

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


return lowerkeys({
	["JPNSeta"] = JPN_Seta,
	["JPNSeta_Turret_76mm_Front"] = JPN_Seta_Turret_76mm_Front,
	["JPNSeta_Turret_76mm_Rear"] = JPN_Seta_Turret_76mm_Rear,
	["JPNSeta_Turret_25mm"] = JPN_Seta_Turret_25mm,
})
