-- Carl Vinson CVN-70 (NIMITZ Class Carrier)
mount_vfs_model_path	(current_mod_path.."/Shapes")
mount_vfs_texture_path  (current_mod_path.."/Textures/Arromanches")
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 = "Arromanches"
GT.visual.shape_dstr = ""


GT.life = 7300;
GT.mass = 7.2916e+007;
GT.max_velocity = 15.4333;
GT.race_velocity = 15.4333;
GT.economy_velocity = 15.4333;
GT.economy_distance = 7.408e+007;
GT.race_distance = 7.408e+007;
GT.shipLength = 332.9;
GT.Width = 32;
GT.Height = 57.8;
GT.Length = 332.9;
GT.DeckLevel = 19.6;
GT.X_nose = 150.7;
GT.X_tail = -159.6;
GT.Tail_Width = 18;
GT.Gamma_max = 0.35;
GT.Om = 0.05;
GT.speedup = 0.119249;
GT.R_min = 665.8;
GT.distFindObstacles = 1048.7;

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

GT.airWeaponDist = 15000;
GT.airFindDist = 30000;
GT.exhaust =
{
	[1] = { size = 0.75 , pos = { -63 ,39, 28 } },
 }

-- weapon systems

GT.cord_points = {
        {-110.701,  19.874, -17.033}, {-105.19,   19.874, 17.574},
        {-98.849,   19.874, -19.022}, {-93.338,   19.874, 15.585},
        {-86.718,   19.874, -20.494}, {-81.207,   19.874, 14.113},
        {-74.601,   19.874, -22.845}, {-69.09,    19.874, 11.762},
                }

GT.LSOPosition = {88.0, 28.0, 31.0, 0.0, 0.0} 

GT.Landing_Point = {-62.0, 19.68, -30.0}

GT.WS = {}
GT.WS.maxTargetDetectionRange = 30000;
GT.WS.radar_type = 104
GT.WS.searchRadarMaxElevation = math.rad(50);

local ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.phalanx )
GT.WS[ws].angles_mech = {
							{math.rad(95), math.rad(-95), math.rad(-5), math.rad(90)}
}
GT.WS[ws].angles[1][1] = math.rad(70);
GT.WS[ws].angles[1][2] = math.rad(-95);
GT.WS[ws].angles[2] = {math.rad(95), math.rad(70), math.rad(10), math.rad(85)};
GT.WS[ws].board = 3
GT.WS[ws].pos = {101.963,17.463,-21.153}
--GT.WS[ws].drawArgument1 = 23
--GT.WS[ws].drawArgument2 = 24

ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.phalanx )
GT.WS[ws].angles_mech = {
							{math.rad(85), math.rad(-70), math.rad(-5), math.rad(90)}
}
GT.WS[ws].angles[1][1] = math.rad(85);
GT.WS[ws].angles[1][2] = math.rad(-45);
GT.WS[ws].angles[2] = {math.rad(-45), math.rad(-70), math.rad(10), math.rad(85)};
GT.WS[ws].board = 4
GT.WS[ws].pos = {90.953,16.097,23.294}
--GT.WS[ws].drawArgument1 = 25
--GT.WS[ws].drawArgument2 = 26

ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.phalanx )
GT.WS[ws].angles[1][1] = math.rad(100);
GT.WS[ws].angles[1][2] = math.rad(-100);
GT.WS[ws].board = 2
GT.WS[ws].pos = {-163.792,10.061,14.483}
--GT.WS[ws].drawArgument1 = 29
--GT.WS[ws].drawArgument2 = 30

ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.phalanx )
GT.WS[ws].angles[1][1] = math.rad(95);
GT.WS[ws].angles[1][2] =  math.rad(-70);
GT.WS[ws].board = 3
GT.WS[ws].pos = {-158.042,10.061,-17.74};
--GT.WS[ws].drawArgument1 = 27
--GT.WS[ws].drawArgument2 = 28

--forward

GT.Name = "Arromanches"
GT.DisplayName = _("Arromanches")
GT.Rate = 5500.000000

GT.Sensors = {  OPTIC = {"long-range naval optics", "long-range naval LLTV"},
                RADAR = {
                    
                    "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,
GT.attribute = {wsType_Navy,wsType_Ship,wsType_AirCarrier,VINSON,
                    "Aircraft Carriers",
                    "cord","catapult",
                    "RADAR_BAND1_FOR_ARM",
                    "RADAR_BAND2_FOR_ARM",
				};
GT.Categories = {
					{name = "AircraftCarrier"},
					{name = "AircraftCarrier With Catapult"},
					{name = "Armed Ship"},
                                        {name = "HelicopterCarrier"}
					};

local deck_crew_names = {        
                              
                                 "ch-47d",--chinook

                                
                                "pilot_raf", 
                                 "MS_500",
                                 "F4U",--1
                                 "an-2m",--2
                                  "DHC-6", --3
                                  "pilot_raf",--1
                                  "pilot_raf",--2
                                  "pilot_raf",--3   
                                   "STOLB-FERMA-SMALL",-- grue
                                    "an-2m", --3
                                    "ab-212_cargo",-- caisse
                                    "konteiner_red1", 
                                     "USJEEPWW2",  --
                                    "STOLB",--palan
                                     "pilot_raf",
                                     "DHC-6",
                                     "MS_500",
                                     "USJEEPWW2",               
                                      "MS_500",
}
         
local deck_crew_points = {
{-107.0, 20.52, -28.0}, --pilot_fw190
{-104.0, 21.42, 28.0}, --MS 500
{-18.0, 25.50, 29.0},-- F4U
{05.0, 19.50, 30.0},--  an-2m 2
{65.0, 21.42, 28.0},--  DHC6
{-18.0, 20.52, 23.0},--  pilote an-2m 1
{05.0, 20.52, 23.0},--  pilote an-2m 2
{30.0, 20.52, 23.0},-- pilote   an-2m 3
{-19.0, 19.52, 28.0},-- portique
{30.0, 19.50, 30.0},--  an-2m 3
{-18.0, 19.50, 27.0},--caisse
{-34.0, 19.50, 29.0},--konteiner_red1
{-24.0, 19.50, 29.0},--JEEP
{-17.50, 19.50, 27.0},--palan
{-89.0, 20.52, 26.0},--pilote
{-107.0, 21.42, -30.0},--DHC6
{-80.0, 21.42, 27.0},--MS 500
{-75.0, 19.50, 27.0},--jeep
{-125.0, 21.42, 25.0},--MS 500
{-015.0, 21.90, -30.0},--chinook

}


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




GT.Countries = { "France", "USA",};				
add_surface_unit(GT)			