
-- Reference information for this code was taken from Currenthill's mods, JSN64's mods and stock game files =====================================================================================================================

GT_t.CH_t.MAZforDPRK = {
	life = 2,
	mass = 72300,
	length = 18.7,
	width = 3.5,
	max_road_velocity = 15.44,
	max_slope = 0.26,
	engine_power = 500,
	engineMinRPM = 600,
	engineMaxPowerRPM = 1900,
	engineMaxRPM = 2200,
	gearRatios = { -11.95, -14.74, 0.0, 11.38, 9.23, 7.17, 5.81, 4.62, 3.75, 3.03, 2.46, 1.91, 1.55, 1.23, 1.00},
	mainGearRatio = 7.0,
	automaticTransmission = true,
	fordingDepth = 1.2,
	max_vert_obstacle = 0.4,
	max_acceleration = 1.1,
	min_turn_radius = 23.0,
	X_gear_1 = 4.6,
	Y_gear_1 = 0,
	Z_gear_1 = 1.15,
	X_gear_2 = -4.6,
	Y_gear_2 = 0,
	Z_gear_2 = -1.20,
	gear_type = GT_t.GEAR_TYPES.WHEELS,
	r_max = 0.72,
	armour_thickness = 0.004,	
}

GT = {};
GT_t.ws = 0;
set_recursive_metatable(GT, GT_t.generic_wheel_vehicle);
set_recursive_metatable(GT.chassis, GT_t.CH_t.MAZforDPRK);
set_recursive_metatable(GT.armour_scheme, GT_t.unarmed_armour_scheme);
GT.chassis.life = 2

GT.visual.shape = "Musudan";
GT.visual.shape_dstr = "MusudanD";

GT.toggle_alarm_state_interval = 21.0;

GT.IR_emission_coeff = 0.2
GT.swing_on_run = false;

GT.sensor = {};
set_recursive_metatable(GT.sensor, GT_t.SN_visual);
GT.sensor.height = 3.5;

GT.driverViewConnectorName = {"POINT_DRIVER_01", offset = {0.0, 0.0, 0.0}}
GT.driverCockpit = "DriverCockpit/DriverCockpitWithLLTV"

--Burning after hit
GT.visual.fire_size = 1.7; --relative burning size
GT.visual.fire_pos[1] = 2.64; -- center of burn at long axis shift(meters)
GT.visual.fire_pos[2] = 1.6; -- center of burn shift at vertical shift(meters)
GT.visual.fire_pos[3] = 0; -- center of burn at transverse axis shift(meters)
GT.visual.fire_time = 600; --burning time (seconds)

GT.visual.dust_pos    = {4.6, 0.2, 0.0}
GT.visual.dirt_pos    = {-4,6, 0.6, 0.0}


GT.WS = {};
GT.WS.maxTargetDetectionRange = 150;
GT.WS.fire_on_march = false;



ws = GT_t.inc_ws();
GT.WS[ws] = {}
set_recursive_metatable(GT.WS[ws], GT_t.WS_t.MISSILE_MUSUDAN) 
GT.WS[ws].mount_before_move = true; 
GT.WS[ws].LN[1].BR = {
    {connector_name = 'POINT_MISSILE_01', drawArgument = 110},
	}



GT.Name = "Musudan_MRBM_Launcher";
GT.DisplayName = _("Musudan SSM");
GT.DisplayNameShort = _("Musudan SSM");
GT.Rate = 10;

GT.EPLRS = true

GT.DetectionRange  = 150; 
GT.ThreatRange = 900000;
GT.ThreatRangeMin = 150000;
GT.mapclasskey = "P0091000208";
GT.attribute = {wsType_Ground,wsType_SAM,wsType_Miss,wsType_GenericMLRS,
				"SS_missile", "Artillery", "Datalink",
				};
GT.category = "MissilesSS";
GT.tags  =
{
    "MissilesSS",
	"SSM",
}
GT.Countries = {"Iran", "North Korea", "China"}

add_surface_unit(GT)
