-- references have been taken from HawEye60's USS Los Angeles SSN-688i sub and Currenthill's Type 055 destroyer code


GT = {};
GT_t.ws = 0;

set_recursive_metatable(GT, GT_t.generic_ship)

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

GT.animation_arguments.water_propeller = 30;


GT.life = 5;
GT.mass = 0.86e+006;
GT.max_velocity = 9.4 
GT.race_velocity = 12.4
GT.economy_velocity = 7.202
GT.economy_distance = 9.3e+006
GT.race_distance = 4.6e+006
GT.shipLength = 70.0
GT.Width = 4
GT.Height = 18.0
GT.Length = 70.0
GT.DeckLevel = 8
GT.X_nose = 32.0
GT.X_tail = -30.0
GT.Tail_Width = 7
GT.Gamma_max = 0.35
GT.Om = 0.05
GT.speedup = 0.24
GT.R_min = 345.6
GT.distFindObstacles = 568.4
GT.RCS = 15000 

GT.numParking = 0
GT.Plane_Num_ = 0
GT.Helicopter_Num_ = 0



GT.airWeaponDist = 10000
GT.airFindDist = 20000

GT.DM = {
  
    { area_name = "SILO", 	   			area_arg = 55,	area_life = 2, area_fire = { pos = {0.0, 2.0, 7.7}, size = 15.8}},
	
	}


GT.WS = {}
local ws;
GT.WS.maxTargetDetectionRange = 540;
GT.WS.radar_type = 102
GT.WS.searchRadarMaxElevation = math.rad(80);
GT.WS.searchRadarFrequencies = {{50.0e6, 54.0e6}, {2.0e9, 2.2e9}}




ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.SINPO_KN11 )
GT.WS[ws].area = 'SILO'
GT.WS[ws].center = 'Rocket_Point_01'
GT.WS[ws].LN[1].PL[1].ammo_capacity = 1;
GT.WS[ws].LN[1].BR = {																
															
	
	{connector_name = 'Rocket_Point_01', recoilArgument = 100, recoilT0 = -2, recoilT1 = -1, recoilT2 = 1.0, recoilTime = 2},

}

	




----------------------------------------------------------------------------------------------------------------------------------

GT.Name = "SinpoB"
GT.DisplayName = _("Sinpo Class Submarine")
GT.DisplayNameShort = _("Sinpo Class")
GT.Rate = 3500

GT.Sensors = {  OPTIC = {"long-range naval optics", "long-range naval LLTV", "long-range naval FLIR",},
                RADAR = {
                    "Type 346B surface",
                                    }
            };

GT.DetectionRange  = GT.airFindDist;
GT.ThreatRange = GT.airWeaponDist;
GT.Singleton   ="no";
GT.mapclasskey = "P0091000038";
GT.attribute = {
        wsType_Navy, wsType_Ship, wsType_Submarine, WSTYPE_PLACEHOLDER,
                   "Submarines",
        "RADAR_BAND1_FOR_ARM",
        "DetectionByAWACS",
					"Datalink",
				};
GT.Categories = {
					{name = "Armed Ship"},
										
				};
				
GT.Countries = {'North Korea'}	
				
add_surface_unit(GT)	
			