-- HMS_Victorious (Transpose for 2.1.1 by Eric et Patrick Cuesta) MD3D Markindel
-- Dati armi dalla Iowa
mount_vfs_model_path	(current_mod_path.."/Shapes")
mount_vfs_texture_path  (current_mod_path.."/Textures/HMS_Victorious.zip")
mount_vfs_texture_path  (current_mod_path.."/Textures/SpitfireIXc.zip")
mount_vfs_texture_path  (current_mod_path.."/Textures")


GT = {};
GT_t.ws = 0;

set_recursive_metatable(GT, GT_t.generic_ship)

GT.visual = {}
GT.visual.shape = "HMS_Victorious"
GT.visual.shape_dstr = ""

GT.animation_arguments.radar1_rotation = 11; -- вращение радара 1
GT.radar1_period = 3;
GT.animation_arguments.radar2_rotation = 1; -- вращение радара 2 отсутствует
GT.animation_arguments.radar3_rotation = -1; -- вращение радара 3 отсутствует
GT.animation_arguments.luna_lights = -1;
--GT.animation_arguments.luna_lights = 100;

GT.life = 7000
GT.mass = 7.05e+007
GT.max_velocity = 16.4622
GT.race_velocity = 15.4333
GT.economy_velocity = 9.26
GT.economy_distance = 1.4816e+007
GT.race_distance = 4.63e+006
GT.shipLength = 304.5
GT.Width = 42
GT.Height = 53.1
GT.Length = 304.5
GT.DeckLevel = 16.257
----- Scia di Prua
GT.X_nose =  112.771
----- scia di poppa
GT.X_tail = -85
GT.Tail_Width = 15
GT.Gamma_max = 0.35
GT.Om = 0.05
GT.speedup = 0.148333
GT.R_min = 609
GT.distFindObstacles = 963.5

GT.numParking = 4;
GT.Plane_Num_ = 72;
GT.Helicopter_Num_ = 6;

-- dalla portaerei Bush ----------------------
--GT.animation_arguments.water_propeller = -1;


GT.airWeaponDist = 15000;
GT.airFindDist = 30000;

GT.exhaust = 
{
	[1] = { size = 0.40, pos = {15.0 ,30, 10 } },
	[2] = { size = 0.40 , pos = {17.0 ,30, 10 } },
	[3] = { size = 0.40 , pos = {13.0 ,30, 10 } },
	
 }

---- Primo valore    : avanti/indietro
---- Secondo valore: alto/basso
---- Terzo Valore    : destra/sinistra
				
GT.ArrestingGears = {
	{
		Left = {	pos = {-30.105,   12.992, -9.99} },
		Right = {	pos = {-30.105,   12.992,  9.99} }
	},
	{
		Left = {	pos = {-52.65,   12.992, -9.99} },
		Right = {	pos = {-52.65,   12.992,  9.99} }
	},
	{
		Left = {	pos = {-59.726,   12.992, -9.99} },
		Right = {	pos = {-59.726,   12.992,  9.99} }
	},
	{
		Left = {	pos = {-66.678,   12.992, -9.99} },
		Right = {	pos = {-66.678,   12.992,  9.99} }
	}
}
GT.ArrestingGears.ArrestingGearsNumber = #GT.ArrestingGears

                
GT.Landing_Point = {-59.065, 12.992, 0.0} --{71.0, 16.26,-30.0}
--GT.Landing_Point   = {-101.138, 15.944,  -6.551} --{71.0, 16.26,-30.0}   

GT.LSOPosition = {0.0, 17.0, 12.992, 0.8, 0.0} --{81.236, 24.0, 28.497, 10.0, 0.0} 

GT.DM = {
----- Hull Right side.
	{ area_name = "Scafo_Prua_Dx",			area_arg = 76,	area_life = 100, area_fire = { pos = {75.0, 4.0, 8.0}, size = 1.5}},
	{ area_name = "Scafo_Centrale_Dx",		area_arg = 71,	area_life = 100, area_fire = { pos = {20.0,  2.0, 13.0}, size = 1.5}},
	{ area_name = "Scafo_Poppa_Dx", 		area_arg = 72,	area_life = 100, area_fire = { pos = {-70.0, 2.0, 8.0}, size = 1.5}},
----- Hull Left side.	
	{ area_name = "Scafo_Prua_Sx", 		    area_arg = 73,	area_life = 100, area_fire = { pos = {90.0, 4.0, -10.0}, size = 1.5}},
	{ area_name = "Scafo_Centrale_Sx", 		area_arg = 74,	area_life = 100, area_fire = { pos = {0.0,  2.0, -13.0}, size = 1.5}},
	{ area_name = "Scafo_Poppa_Sx", 		area_arg = 75,	area_life = 100, area_fire = { pos = {-100.0, 2.0, -10.5}, size = 1.5}},
-------- Sovrastrutture	
	{ area_name = "Isola_Ponte",        	area_arg = 82,	area_life = 200, area_fire = { pos = {-23.0, 12.0, 0.0}, size = 1.5}},

-------- Flight Deck
	{ area_name = "Ponte_Prua",	           	area_arg = 84,	area_life = 100, area_fire = { pos = {67.0, 11.0, 0.0}, size =  1.5}},
    { area_name = "Ponte_Poppa",		    area_arg = 85,	area_life = 100, area_fire = { pos = {-95.0, 11.0, 0.0}, size = 1.5}}, 

}

--------------------------------------------------------------------------------------
---  Descrizioni Armamento 
--------------------------------------------------------------------------------------

-- Source for modifications: https://en.wikipedia.org/wiki/North_Carolina-class_battleship
-- Oerlikon (20 mm) naval AAA weapons. Source: https://en.wikipedia.org/wiki/Oerlikon_20_mm_cannon
-- Used default Mark 15 CIWS Phalanx Block 1 weapon system as template with alterations
GT_t.WS_t.ship_Oerlikon_20 = {name = "20 mm Oerlikon"};
GT_t.WS_t.ship_Oerlikon_20.angles = {
                    {math.rad(180), math.rad(-180), math.rad(-15), math.rad(90)},
                    };
GT_t.WS_t.ship_Oerlikon_20.omegaY = math.rad(115) -- Block 1B
GT_t.WS_t.ship_Oerlikon_20.omegaZ = math.rad(116) -- Block 1B
GT_t.WS_t.ship_Oerlikon_20.pidY = {p=300, i = 0.05, d = 10.0, inn = 1000};
GT_t.WS_t.ship_Oerlikon_20.pidZ = {p=300, i = 0.05, d = 10.0, inn = 1000};
GT_t.WS_t.ship_Oerlikon_20.reference_angle_Z = 0
GT_t.WS_t.ship_Oerlikon_20.LN = {}
GT_t.WS_t.ship_Oerlikon_20.LN[1] = {}
GT_t.WS_t.ship_Oerlikon_20.LN[1].type = 3
GT_t.WS_t.ship_Oerlikon_20.LN[1].distanceMin = 10
GT_t.WS_t.ship_Oerlikon_20.LN[1].distanceMax = 1500 -- effective shooting with 3600 meters
GT_t.WS_t.ship_Oerlikon_20.LN[1].max_trg_alt = 1000
GT_t.WS_t.ship_Oerlikon_20.LN[1].reactionTime = 1.8
GT_t.WS_t.ship_Oerlikon_20.LN[1].beamWidth = math.rad(1);
GT_t.WS_t.ship_Oerlikon_20.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_Oerlikon_20.LN[1].sensor, GT_t.WSN_t[3])
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL = {}
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1] = {}
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1].ammo_capacity = 1550;
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1].shell_name = {"Rh202_20_AP", "Rh202_20_HE"};
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1].shell_display_name = "20mm AP+HE";
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1].shot_delay = 60/450 -- 450 rounds per minute average
GT_t.WS_t.ship_Oerlikon_20.LN[1].PL[1].reload_time = 1000000; -- never during the mission (ship autogun)
GT_t.WS_t.ship_Oerlikon_20.LN[1].BR = { {pos = {3.478, 0, 0} }, }



-- Bofors Mk 12 (40 mm) naval AAA weapons. Source: https://en.wikipedia.org/wiki/Bofors_40_mm_gun
-- Used default Mark 15 CIWS Phalanx Block 1 weapon system as template with alterations
GT_t.WS_t.ship_Bofors_40_Mk_12 = {name = "40 mm Bofors Mk 12"};
GT_t.WS_t.ship_Bofors_40_Mk_12.angles = {
                    {math.rad(180), math.rad(-180), math.rad(-5), math.rad(90)},
                    };
GT_t.WS_t.ship_Bofors_40_Mk_12.omegaY = math.rad(115) -- Block 1B
GT_t.WS_t.ship_Bofors_40_Mk_12.omegaZ = math.rad(116) -- Block 1B
GT_t.WS_t.ship_Bofors_40_Mk_12.pidY = {p=300, i = 0.05, d = 10.0, inn = 1000};
GT_t.WS_t.ship_Bofors_40_Mk_12.pidZ = {p=300, i = 0.05, d = 10.0, inn = 1000};
GT_t.WS_t.ship_Bofors_40_Mk_12.reference_angle_Z = 0
GT_t.WS_t.ship_Bofors_40_Mk_12.LN = {}
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1] = {}
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].type = 3
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].distanceMin = 10
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].distanceMax = 7160 -- effective shooting
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].max_trg_alt = 3800
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].reactionTime = 1.8
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].beamWidth = math.rad(1);
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].sensor, GT_t.WSN_t[3])
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL = {}
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1] = {}
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1].ammo_capacity = 560;
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1].shell_name = {"Boforos_40_Mk12_HE"};
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1].shell_display_name = "40mm HE";
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1].shot_delay = 60/120 -- 120 rpm
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].PL[1].reload_time = 1000000; -- never during the mission (ship autogun)
GT_t.WS_t.ship_Bofors_40_Mk_12.LN[1].BR = { {pos = {3.478, 0, 0} }, }


-------------------------------------------------------------------------------------------------
--   Descrizione Cannoni da 150mm
-------------------------------------------------------------------------------------------------
-- 38 Caliber Mark 12 (127 mm) naval artillery weapons. Source: https://en.wikipedia.org/wiki/5%22/38_caliber_gun
-- Used default FMC5 MK45 127mm Navy artillery weapon system as template with alterations
GT_t.WS_t.ship_38cal_Mk12 = {name = "127 mm Mark 12"}
GT_t.WS_t.ship_38cal_Mk12.angles = {
					{math.rad(164.25), math.rad(-164.25), math.rad(-15), math.rad(85)},
					};
GT_t.WS_t.ship_38cal_Mk12.omegaY = 0.6
GT_t.WS_t.ship_38cal_Mk12.omegaZ = 0.6
GT_t.WS_t.ship_38cal_Mk12.reference_angle_Z = 0
GT_t.WS_t.ship_38cal_Mk12.LN = {}
GT_t.WS_t.ship_38cal_Mk12.LN[1] = {}
GT_t.WS_t.ship_38cal_Mk12.LN[1].type = 6
GT_t.WS_t.ship_38cal_Mk12.LN[1].xc = 3
GT_t.WS_t.ship_38cal_Mk12.LN[1].distanceMin = 50
GT_t.WS_t.ship_38cal_Mk12.LN[1].max_trg_alt = 7500
GT_t.WS_t.ship_38cal_Mk12.LN[1].reactionTime = 15
GT_t.WS_t.ship_38cal_Mk12.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_38cal_Mk12.LN[1].sensor, GT_t.WSN_t[10])
GT_t.WS_t.ship_38cal_Mk12.LN[1].PL = {}
GT_t.WS_t.ship_38cal_Mk12.LN[1].PL[1] = {}
GT_t.WS_t.ship_38cal_Mk12.LN[1].PL[1].ammo_capacity = 240 -- Currently uses same ammo count as SK_C_38
GT_t.WS_t.ship_38cal_Mk12.LN[1].PL[1].shell_name = {"MK45_127"}; -- Currently uses MK45 127 mm shells (127 mm ammo is WIP)
GT_t.WS_t.ship_38cal_Mk12.LN[1].PL[1].shot_delay = 60/15 -- (15 rounds per minute per barrel - average)
GT_t.WS_t.ship_38cal_Mk12.LN[1].automaticLoader = false;
GT_t.WS_t.ship_38cal_Mk12.LN[1].reload_time = 240 * 20
GT_t.WS_t.ship_38cal_Mk12.LN[1].BR = { {pos = {8, 0, 0.1} }, {pos = {8, 0, -0.1} } }


-------------------------------------------------------------------------------------------------
--   Descrizione Cannoni da 406mm
-------------------------------------------------------------------------------------------------
-- 45 Caliber Mark 6 (406 mm) naval artillery weapons. Source: https://en.wikipedia.org/wiki/16%22/45_caliber_Mark_6_gun
-- Used default AK130 130mm Navy artillery weapon system as template with alterations
GT_t.WS_t.ship_45cal_Mk6 = {name = "406 mm Mark 6"}
GT_t.WS_t.ship_45cal_Mk6.angles = {
					{math.rad(150), math.rad(-150), math.rad(-2), math.rad(45)},
					};
GT_t.WS_t.ship_45cal_Mk6.omegaY = 0.6
GT_t.WS_t.ship_45cal_Mk6.omegaZ = 0.6
GT_t.WS_t.ship_45cal_Mk6.reference_angle_Z = 0
GT_t.WS_t.ship_45cal_Mk6.LN = {}
GT_t.WS_t.ship_45cal_Mk6.LN[1] = {}
GT_t.WS_t.ship_45cal_Mk6.LN[1].type = 6
GT_t.WS_t.ship_45cal_Mk6.LN[1].distanceMin = 50
GT_t.WS_t.ship_45cal_Mk6.LN[1].max_trg_alt = 20
GT_t.WS_t.ship_45cal_Mk6.LN[1].reactionTime = 15
GT_t.WS_t.ship_45cal_Mk6.LN[1].sensor = {}
set_recursive_metatable(GT_t.WS_t.ship_45cal_Mk6.LN[1].sensor, GT_t.WSN_t[10])
GT_t.WS_t.ship_45cal_Mk6.LN[1].PL = {}
GT_t.WS_t.ship_45cal_Mk6.LN[1].PL[1] = {}
GT_t.WS_t.ship_45cal_Mk6.LN[1].PL[1].ammo_capacity = 240
GT_t.WS_t.ship_45cal_Mk6.LN[1].PL[1].shell_name = {"A222_130"}; -- Currently uses A222 130 mm shells (406 mm ammo is WIP)
--GT_t.WS_t.ship_45cal_Mk6.LN[1].PL[1].shell_name = {"Shell_406mm"};

GT_t.WS_t.ship_45cal_Mk6.LN[1].PL[1].shot_delay = 60/2 -- (2 rounds per minute per barrel - average)
GT_t.WS_t.ship_45cal_Mk6.LN[1].automaticLoader = false;
GT_t.WS_t.ship_45cal_Mk6.LN[1].reload_time = 240 * 20
GT_t.WS_t.ship_45cal_Mk6.LN[1].BR = { {pos = {8, 0, 0.1} }, {pos = {8, 0, 0.0} }, {pos = {8, 0, -0.1} } }


-------------------------------------------------------------------------------------
--  Start Weapons systems
-------------------------------------------------------------------------------------
-- weapon systems
GT.WS = {}
local ws;
GT.WS.maxTargetDetectionRange = 450000;
GT.WS.radar_type = 102

--[[
------------------------------------------------------------------------------------------------
-- Cannoni da 127MM                                                               --  
------------------------------------------------------------------------------------------------
-- Note: Currently can fire up to about 23 km in range with 130 mm shells from default AK130 weapons system.
-- 1 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Sx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_1'
GT.WS[ws].drawArgument1 = 199
GT.WS[ws].drawArgument2 = 200
GT.WS[ws].angles[1][1] = math.rad(140);
GT.WS[ws].angles[1][2] = math.rad(10);
GT.WS[ws].reference_angle_Y = math.rad(0);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_1',
		recoilArgument = 201,
	}
}

-- 2 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Dx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_2'
GT.WS[ws].drawArgument1 = 13
GT.WS[ws].drawArgument2 = 14
GT.WS[ws].angles[1][1] = math.rad(-10);
GT.WS[ws].angles[1][2] = math.rad(-140);
GT.WS[ws].reference_angle_Y = math.rad(-90);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_2',
		recoilArgument = 34,
	}
}

-- 3 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Dx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_3'
GT.WS[ws].drawArgument1 = 17
GT.WS[ws].drawArgument2 = 18
GT.WS[ws].angles[1][1] = math.rad(140);
GT.WS[ws].angles[1][2] = math.rad(10);
GT.WS[ws].reference_angle_Y = math.rad(90);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_3',
		recoilArgument = 135,
	}
}

-- 4 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Sx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_4'
GT.WS[ws].drawArgument1 = 55
GT.WS[ws].drawArgument2 = 56
GT.WS[ws].angles[1][1] = math.rad(150);
GT.WS[ws].angles[1][2] = math.rad(10);
GT.WS[ws].reference_angle_Y = math.rad(90);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_4',
		recoilArgument = 57,
	}
}

-- 5 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Dx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_5'
GT.WS[ws].drawArgument1 = 58
GT.WS[ws].drawArgument2 = 59
GT.WS[ws].angles[1][1] = math.rad(-10);
GT.WS[ws].angles[1][2] = math.rad(-140);
GT.WS[ws].reference_angle_Y = math.rad(-90);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_5',
		recoilArgument = 61,
	}
}

-- 6 Cannone 127MM
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_38cal_Mk12 )
GT.WS[ws].area = 'Scafo_Prua_Dx' 
GT.WS[ws].center = 'CENTER_TOWER_127MM_6'
GT.WS[ws].drawArgument1 = 217
GT.WS[ws].drawArgument2 = 218
GT.WS[ws].angles[1][1] = math.rad(-10);
GT.WS[ws].angles[1][2] = math.rad(-150);
GT.WS[ws].reference_angle_Y = math.rad(-90);	
GT.WS[ws].LN[1].BR[1].recoilTime = 1.5;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_127MM_6',
		recoilArgument = 219,
	}
}
-------------------------------------------------------------------------------
--           7   Mitragliatrici Binate Bofors 40mm        			-----------
--- Mitragliatrice Binata di Sx 1 - twin machine gun left           -----------
--- GT_t.WS_t.ship_Bofors_40_Mk_12 = 40 MM
-------------------------------------------------------------------------------
--1 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Centrale_Sx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_1'
GT.WS[ws].drawArgument1 = 19
GT.WS[ws].drawArgument2 = 20
GT.WS[ws].angles[1][1] = math.rad(75);
GT.WS[ws].angles[1][2] = math.rad(-75);
GT.WS[ws].reference_angle_Y = math.rad(0);  
GT.WS[ws].LN[1].fireAnimationArgument = 36;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_1_2',
		recoilArgument = 36,
	},
	{
		connector_name = 'POINT_GunBin_1_2',
		recoilArgument = 36,
	}
}



--2 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Centrale_Dx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_2'
GT.WS[ws].drawArgument1 = 21  ------------ Rotazione
GT.WS[ws].drawArgument2 = 22  ------------ Alzo
GT.WS[ws].angles[1][1] = math.rad(-10);
GT.WS[ws].angles[1][2] = math.rad(-150);
GT.WS[ws].reference_angle_Y = math.rad(-0);  
GT.WS[ws].LN[1].fireAnimationArgument = 37;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_2_1',
		recoilArgument = 37,
	},
	{
		connector_name = 'POINT_GunBin_2_2',
		recoilArgument = 37,
	}
}



--3 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_3'
GT.WS[ws].drawArgument1 = 67
GT.WS[ws].drawArgument2 = 68
GT.WS[ws].angles[1][1] = math.rad(150);
GT.WS[ws].angles[1][2] = math.rad(0);
GT.WS[ws].reference_angle_Y = math.rad(0);  
GT.WS[ws].LN[1].fireAnimationArgument = 157;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_3_1',
		recoilArgument = 157,
	},
	{
		connector_name = 'POINT_GunBin_3_2',
		recoilArgument = 157,
	},
}

--4 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_4'
GT.WS[ws].drawArgument1 = 46
GT.WS[ws].drawArgument2 = 47
GT.WS[ws].angles[1][1] = math.rad(-3);
GT.WS[ws].angles[1][2] = math.rad(-150);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 48;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_4_1',
		recoilArgument = 48,
	},
	{
		connector_name = 'POINT_GunBin_4_1',
		recoilArgument = 48,
	}
}

--5 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_5'
GT.WS[ws].drawArgument1 = 23
GT.WS[ws].drawArgument2 = 24
GT.WS[ws].angles[1][1] = math.rad(170);
GT.WS[ws].angles[1][2] = math.rad(10);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 38;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_5_1',
		recoilArgument = 38,
	},
	{
		connector_name = 'POINT_GunBin_5_2',
		recoilArgument = 38,
	},
}


--6 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_6'
GT.WS[ws].drawArgument1 = 27
GT.WS[ws].drawArgument2 = 28
GT.WS[ws].angles[1][1] = math.rad(175);
GT.WS[ws].angles[1][2] = math.rad(10);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 40;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_6_1',
		recoilArgument = 40,
	},
	{
		connector_name = 'POINT_GunBin_6_2',
		recoilArgument = 40,
	}
}

--7 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_7'
GT.WS[ws].drawArgument1 = 25
GT.WS[ws].drawArgument2 = 26
GT.WS[ws].angles[1][1] = math.rad(-3);
GT.WS[ws].angles[1][2] = math.rad(-170);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 39;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_7_1',
		recoilArgument = 39,
	},
	{
		connector_name = 'POINT_GunBin_7_2',
		recoilArgument = 39,
	}
}

--8 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_40MM_8'
GT.WS[ws].drawArgument1 = 196
GT.WS[ws].drawArgument2 = 197
GT.WS[ws].angles[1][1] = math.rad(-3);
GT.WS[ws].angles[1][2] = math.rad(-170);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 198;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_GunBin_8_1',
		recoilArgument = 198,
	},
	{
		connector_name = 'POINT_GunBin_8_2',
		recoilArgument = 198,
	}
}

-------------------------------------------------------------------------------
--           5   Mitragliatrici a 4 canne  Bofors 40mm        			-----------
--- Mitragliatrice Binata di Sx 1 - twin machine gun left           -----------
-------------------------------------------------------------------------------

--1 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Bofors_40_Mk_12 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_7'
GT.WS[ws].drawArgument1 = 49
GT.WS[ws].drawArgument2 = 50
GT.WS[ws].angles[1][1] = math.rad(125);
GT.WS[ws].angles[1][2] = math.rad(-125);
GT.WS[ws].reference_angle_Y = math.rad(0);  
GT.WS[ws].LN[1].fireAnimationArgument = 51;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_40m_1_1',
		recoilArgument = 51,
	},
	{
		connector_name = 'POINT_Iowa_40m_1_2',
		recoilArgument = 51,
	},
	{
		connector_name = 'POINT_Iowa_40m_1_3',
		recoilArgument = 51,
	},
	{
		connector_name = 'POINT_Iowa_40m_1_4',
		recoilArgument = 51,
	}
}


--2 
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Breda_37_54 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_8'
GT.WS[ws].drawArgument1 = 29
GT.WS[ws].drawArgument2 = 30
GT.WS[ws].angles[1][1] = math.rad(125);
GT.WS[ws].angles[1][2] = math.rad(-125);
GT.WS[ws].reference_angle_Y = math.rad(0);  
GT.WS[ws].LN[1].fireAnimationArgument = 41;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_40m_2_1',
		recoilArgument = 40,
	},
	{
		connector_name = 'POINT_Iowa_40m_2_2',
		recoilArgument = 40,
	},
	{
		connector_name = 'POINT_Iowa_40m_2_3',
		recoilArgument = 40,
	},
	{
		connector_name = 'POINT_Iowa_40m_2_4',
		recoilArgument = 40,
	}
}

--3 
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Breda_37_54 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_9'
GT.WS[ws].drawArgument1 = 52
GT.WS[ws].drawArgument2 = 53
GT.WS[ws].angles[1][1] = math.rad(-45);
GT.WS[ws].angles[1][2] = math.rad(45);
GT.WS[ws].reference_angle_Y = math.rad(-180);  
GT.WS[ws].LN[1].fireAnimationArgument = 41;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_40m_3_1',
		recoilArgument = 54,
	},
	{
		connector_name = 'POINT_Iowa_40m_3_2',
		recoilArgument = 54,
	},
	{
		connector_name = 'POINT_Iowa_40m_3_3',
		recoilArgument = 54,
	},
	{
		connector_name = 'POINT_Iowa_40m_3_4',
		recoilArgument = 54,
	}
}


--9  eliminato
--10 eliminato
--11 eliminato
--12 eliminato


------------------------------------------------------------------------
--  21 Mitragliatrici Singole Oerlikon
------------------------------------------------------------------------
--1 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_01'
GT.WS[ws].drawArgument1 = 171
GT.WS[ws].drawArgument2 = 172
GT.WS[ws].angles[1][1] = math.rad(150);
GT.WS[ws].angles[1][2] = math.rad(0);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 72;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_01',
		recoilArgument = 72,
	}
}



--2 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_02'
GT.WS[ws].drawArgument1 = 173
GT.WS[ws].drawArgument2 = 174
GT.WS[ws].angles[1][1] = math.rad(-0);
GT.WS[ws].angles[1][2] = math.rad(-150);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 74;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_02',
		recoilArgument = 74,
	}
}



--3 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_03'
GT.WS[ws].drawArgument1 = 175
GT.WS[ws].drawArgument2 = 176
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 76;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_03',
		recoilArgument = 76,
	}
}


--4 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_04'
GT.WS[ws].drawArgument1 = 177
GT.WS[ws].drawArgument2 = 178
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-130);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 78;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_04',
		recoilArgument = 78,
	}
}


--5 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_05'
GT.WS[ws].drawArgument1 = 179
GT.WS[ws].drawArgument2 = 180
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 80;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_05',
		recoilArgument = 80,
	}
}

--6 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_06'
GT.WS[ws].drawArgument1 = 181
GT.WS[ws].drawArgument2 = 182
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-130);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 82;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_06',
		recoilArgument = 82,
	}
}



--7 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_07'
GT.WS[ws].drawArgument1 = 183
GT.WS[ws].drawArgument2 = 184
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(35);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 84;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_07',
		recoilArgument = 84,
	}
}


--8 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_08'
GT.WS[ws].drawArgument1 = 185
GT.WS[ws].drawArgument2 = 186
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-130);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 86;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_08',
		recoilArgument = 86,
	}
}



--9 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_18'
GT.WS[ws].drawArgument1 = 187
GT.WS[ws].drawArgument2 = 188
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 88;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_09',
		recoilArgument = 88,
	}
}



--10 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_10'
GT.WS[ws].drawArgument1 = 189
GT.WS[ws].drawArgument2 = 190
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-130);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 89;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_10',
		recoilArgument = 89,
	}
}



--11 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_11'
GT.WS[ws].drawArgument1 = 191
GT.WS[ws].drawArgument2 = 192
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 91;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_11',
		recoilArgument = 91,
	}
}


--12 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_12'
GT.WS[ws].drawArgument1 = 193
GT.WS[ws].drawArgument2 = 194
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-130);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 93;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_12',
		recoilArgument = 93,
	}
}


--13  --- Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_13'
GT.WS[ws].drawArgument1 = 220
GT.WS[ws].drawArgument2 = 221
GT.WS[ws].angles[1][1] = math.rad(135);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 222;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_13',
		recoilArgument = 222,
	}
}

--14  --- Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_14'
GT.WS[ws].drawArgument1 = 223
GT.WS[ws].drawArgument2 = 224
GT.WS[ws].angles[1][1] = math.rad(135);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 225;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_14',
		recoilArgument = 225,
	}
}



--15  --- yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_15'
GT.WS[ws].drawArgument1 = 226
GT.WS[ws].drawArgument2 = 227
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(-135);
GT.WS[ws].reference_angle_Y = math.rad(-90);  
GT.WS[ws].LN[1].fireAnimationArgument = 228;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_15',
		recoilArgument = 228,
	}
}

--16  --- yorktown poppa destra
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_16'
GT.WS[ws].drawArgument1 = 31
GT.WS[ws].drawArgument2 = 32
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(-180);  
GT.WS[ws].LN[1].fireAnimationArgument = 42;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_16',
		recoilArgument = 42,
	}
}

--17  --- yorktown poppa sinistra
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Dx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_17'
GT.WS[ws].drawArgument1 = 43
GT.WS[ws].drawArgument2 = 44
GT.WS[ws].angles[1][1] = math.rad(-30);
GT.WS[ws].angles[1][2] = math.rad(30);
GT.WS[ws].reference_angle_Y = math.rad(-180);  
GT.WS[ws].LN[1].fireAnimationArgument = 45;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_17',
		recoilArgument = 45,
	}
}

--18 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_19'
GT.WS[ws].drawArgument1 = 202
GT.WS[ws].drawArgument2 = 203
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(35);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 204;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_18',
		recoilArgument = 204,
	}
}
--18 Yorktown
ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.ship_Oerlikon_20 )
GT.WS[ws].area = 'Scafo_Poppa_Sx'
GT.WS[ws].center = 'CENTER_TOWER_Oerlikon_20'
GT.WS[ws].drawArgument1 = 205
GT.WS[ws].drawArgument2 = 206
GT.WS[ws].angles[1][1] = math.rad(130);
GT.WS[ws].angles[1][2] = math.rad(35);
GT.WS[ws].reference_angle_Y = math.rad(90);  
GT.WS[ws].LN[1].fireAnimationArgument = 207;
GT.WS[ws].LN[1].BR[1].recoilTime = 1;
GT.WS[ws].LN[1].BR = 
{
	{
		connector_name = 'POINT_Iowa_20m_20',
		recoilArgument = 207,
	}
}

--]]


------------------------------------------------------------------------------------------------------
--      Parte Finale                                                                                --
------------------------------------------------------------------------------------------------------

GT.Name = "WS_HMS_Victorious" 
GT.DisplayName = _("HMS_Victorious 38")
GT.Rate = 5500

GT.Sensors = {  OPTIC = {"long-range naval optics", "long-range naval LLTV"},
                RADAR = {
                    "seasparrow tr",
                    "carrier search radar",
                },
            };

GT.DetectionRange  = GT.airFindDist;
GT.ThreatRange = GT.airWeaponDist;
GT.Singleton   ="yes";
GT.mapclasskey = "P0091000065";
GT.attribute = {wsType_Navy,wsType_Ship,wsType_AirCarrier,
                    "Aircraft Carriers",
				    "Arresting Gear",
                    "ski_jump",
                    "RADAR_BAND1_FOR_ARM",
				};
--[[GT.attribute = {wsType_Navy,wsType_Ship,wsType_AirCarrier,Kuznecow,
                    "Aircraft Carriers",
                    "cord",
                    "ski_jump",
                    "RADAR_BAND1_FOR_ARM",
				};	]]			
GT.Categories = {
					{name = "AircraftCarrier"},
					
					{name = "AircraftCarrier With Catapult"},
					{name = "Armed Ship"},
				};

local deck_crew_names = {        
 
                            
                           "VP-MAN_2_Check",-- chef
                                 
                            "pilot_raf",  
                             "Spitfire",              
                            "pilot_raf","pilot_raf","pilot_raf","pilot_raf", "pilot_raf", "pilot_raf", "pilot_raf",    
                            "Spitfire",     
                            "pilot_raf","pilot_raf","pilot_raf","pilot_raf", "pilot_raf", "pilot_raf", "pilot_raf",                  
                             "Spitfire",     
                             "Spitfire",  
                             "Spitfire", 
                            "pilot_raf","pilot_raf", "pilot_raf", "pilot_raf", "pilot_raf",      
                             "Spitfire",     
                            "Spitfire",     
                              "pilot_raf",     
                             "pilot_raf",
                              "pilot_raf",
                             "VP-MAN_2_Idle",-- mecano
                              "VP-MAN_2_Idle",-- mecano
                             "VP-MAN_2_Check",-- chef
                              "VP-MAN_1_Idle",-- 
                                "VP-MAN_2_Check",-- chef
                                  "pilot_raf",  
                               "VP-MAN_1_Idle",--mecano2
                               "VP-MAN_1_Idle",--mecano2

							 }
         
local deck_crew_points = {

{-21.0, 14.20, 10.00},--pilot
   {71.0, 14.95,  9.00},--seafire
{68.0, 14.40,  7.00},--pilot
{66.0, 14.40,  7.00},
{63.0, 14.40,  7.00},
{85.0, 14.60,  7.00},
{82.0, 14.60,  7.00},
{78.0, 14.50,  7.00},
{-25.0, 14.20,  9.00},
   {59.0, 14.95,  9.00},--seafire
{56.0, 14.40,  7.00},
{53.0, 14.40,  7.00},
{51.0, 14.40,  7.00},
{-14.0, 14.20,  9.00},
{-16.0, 14.20,  10.00},
{-13.0, 14.20,  9.00},
{-48.0, 14.20, 10.00},
   {45.0,  14.95,  9.00},--seafire
  {-46.0, 14.95,  11.00},--seafire
  {-32.0, 14.95,  11.00},--seafire
{-20.0, 14.20,  11.00},--pilot
{38.0, 14.40,  7.00},
{41.0, 14.40,  7.00},
{42.0, 14.40,  7.00},
{32.0, 14.40,  7.00},
    {84.0, 14.95,  9.00},--seafire
   {-11.0,  14.95,12.00},--seafire
{-49.0, 14.20, 11.00}, --pilot
{-51.0, 14.20, 11.00},   
{-36.0, 14.20,  10.00}, --pilot
{10.0, 20.20,  14.00},--mecano
{12.0, 20.20,  12.00},--mecano
{03.00, 13.20,  10.00},--chef
{38.0, 18.20,  9.10},--mecano2
{-24.00, 13.20,  9.20},--chef
{9.0, 21.20,  11.00},--pilot
{33.0, 18.20,  8.40},--mecano2
{33.0, 20.40,  8.40},--mecano2
{37.50, 23.40,  12.00},--chef




}


GT.deck_crew = {}

local shapes_size = #deck_crew_names

for i,pnt in ipairs(deck_crew_points) do
	GT.deck_crew[i] = 
	{
		pos   = pnt,
		shape = deck_crew_names[math.fmod (i,shapes_size) + 1]
	}
	

end
				
	add_surface_unit(GT)

GT.RunWays =
{     
-- landing strip definition (first in table)
--	VppStartPoint; 					azimuth (degree} 	Length_Vpp; 	Width_Vpp;
	{{-44.54,	12.992, -2.0}, 		360.8641, 			240.0, 			08.0, 		
-- alsArgument, lowGlidePath, slightlyLowGlidePath, onLowerGlidePath, onUpperGlidePath, slightlyHighGlidePath, highGlidePath
	0, 			0.5, 		  		2.8, 					3.0, 			  3.0, 				3.2, 				3.5},
-- runways
	{{-60.48,	12.992, -1.0}, 		360.0186, 			113.0, 			25.0, 		0, 2.5, 2.8, 3.0, 3.0, 3.2, 3.5}, --1
	{{-72.30,	12.992, -5.79}, 		0.0, 			132.52, 		25.0, 		0, 2.5, 2.8, 3.0, 3.0, 3.2, 3.5}, --2
	{{-83.13,	12.992, -1.0}, 		360.589, 			137.0, 			25.0, 		0, 2.5, 2.8, 3.0, 3.0, 3.2, 3.5}, --3
	{{-93.87,	12.992, -5.27}, 		360.895, 		117.4, 			25.0, 		0, 2.5, 2.8, 3.0, 3.0, 3.2, 3.5}, --4
			
};
GT.RunWays.RunwaysNumber = #GT.RunWays

GT.TaxiRoutes = 
	-- taxi routes and parking spots in LCS
	--    x				y        z			V_target
{					
	{ -- 1 parking spot
		{{105.0, 	12.992,		2.0},		3.0},
		{{105.10,	12.992,		2.0},		2.0}
	},
	{ -- 2 parking spot
		{{85.0, 	12.992,		2.0},		3.0},
		{{ 85.10,	12.992,		 2.0},  	2.0},
		--{{-40.0,	16.26,		 -5.0},  	2.0},
		--{{-45.0,	16.26,		 -7.0}, 	2.0}
	},
	{ -- 3 parking spot
		{{ 65.0,	12.992,		2.0},  	    3.0},
		{{ 65.10,	12.992,		 2.0},  	2.0},
		--{{ 93.0,	16.26,		 15.0},  	2.0},
		--{{-110.0,	16.26,		 25.0}, 	2.0}
	},
	{ -- 4 parking spot
		{{ 65.0,	12.992,		2.0},  	    3.0},
		{{ 65.10,	12.992,		 2.0},  	2.0},
		--{{-60.0,	16.26,		 15.0},		2.0},
		--{{-90.0,	16.26,		 20.0},		2.0}
	},
	{ -- 5 parking spot
		{{ 45.0,	12.992,		3.0},  	    3.0},
		{{ 45.10,	12.992,		 3.0},  	2.0},
		--{{-70.0,	16.26,		 16.0}, 	2.0}
	},
	{ -- 6 parking spot
		{{25.0,		12.992,		-6.0},  	3.0},
		{{25.0,		12.992,		-6.0},  	2.0},
		--{{-50.0,	16.26,		 14.0}, 	2.0}
	},
	{ -- 7 parking spot
		{{05.0,		12.992,		-6.0},		3.0},
		{{05.0,		12.992,		 -6.0},		2.0},
		--{{-25.0,	16.26,		  8.0},		2.0},
		--{{-30.0,	16.26,		 25.0},		2.0}
	},
	{ -- 8 parking spot
		{{-15.0,		12.992,		-6.0},		3.0},
		{{-15.0,		12.992,		 -6.0},		2.0},
		--{{-30.0,	16.26,		  8.0},		2.0}
	},
	{ -- 9 parking spot
		{{-35.0,		12.992,		-6.0},		3.0},
		{{-35.0,		12.992,		 -6.0},		2.0},
		--{{-10.0,	16.26,		  6.0},		2.0},
		--{{-10.0,	16.26,		 25.0},		2.0}
	},
	{ -- 10 parking spot
		--{{-15.0,		16.16,		-6.0},		3.0},
		--{{-15.0,		16.16,		 -6.0},		2.0},
		--{{-10.0,	16.26,		  6.0},		2.0}
	},
	{ -- 11 parking spot
		--{{23.0,		16.26,		-20.0},		3.0},
		--{{10.0,		16.26,		  8.0},		2.0},
		--{{10.0,		16.26,		 25.0},		2.0}
	},
	{ -- 12 parking spot
		--{{23.0,		16.26,		-20.0},		3.0},
		--{{10.0,		16.26,		 10.0},		2.0}
	},
	{ -- 13 parking spot
		--{{23.0,		16.26,		-20.0},		3.0},
		--{{30.0,		16.26,		 10.0},		2.0}
	};
}
GT.TaxiRoutes.RoutesNumber = #GT.TaxiRoutes


				