-- MOD per DCS WORLD 
-- Nave francese Classe Durance  by Markindel  (only private use)

-----             Cartella Shapes --------------------------------------------------
mount_vfs_model_path	(current_mod_path.."/Shapes/")

-----             Cartella Textures ---------------------------------------------------
mount_vfs_texture_path  (current_mod_path.."/Textures/")
mount_vfs_texture_path  (current_mod_path.."/Textures/Classe_Durance.zip")




GT = {};
GT_t.ws = 0;

set_recursive_metatable(GT, GT_t.generic_ship)

GT.visual = {}
GT.visual.shape = "Classe_Durance"
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.life = 2700;
GT.mass = 9.59e+006;
GT.max_velocity = 15.4333
GT.race_velocity = 15.4333
GT.economy_velocity = 10.2889
GT.economy_distance = 1.1112e+007
GT.race_distance = 2.778e+006
GT.shipLength = 172.8
GT.Width = 15
GT.Height = 37.2
GT.Length = 172.8
GT.DeckLevel = 8
---GT.X_nose = 99.5
GT.X_nose = 75
---GT.X_tail = -105
GT.X_tail = -80
GT.Tail_Width = 15
GT.Gamma_max = 0.35
GT.Om = 0.05
GT.speedup = 0.229734
GT.R_min = 345.6
GT.distFindObstacles = 568.4

GT.numParking = 1
GT.Plane_Num_ = 0
GT.Helicopter_Num_ = 2

GT.airWeaponDist = 100000
GT.airFindDist = 150000

---- Primo valore    : avanti/indietro
---- Secondo valore: alto/basso
---- Terzo Valore    : destra/sinistra

---GT.Landing_Point = {-44.0, 9.93, 0.0}  
GT.Landing_Point = {-88.5, 7.62, 0.0}  



GT.DM = {
    { area_name = "NOSE_R",			                area_arg = 70,	area_life = 110, area_fire = { pos = {50.0, 4.0, 5.0}, size = 0.8}},
    { area_name = "BORT_R",			                area_arg = 71,	area_life = 110, area_fire = { pos = {-12.7,  1.0, -5.7}, size = 0.8}},
    { area_name = "KORMA_R", 		                area_arg = 72,	area_life = 110, area_fire = { pos = {-70.0, 2.0, 7.7}, size = 0.8}},
    { area_name = "NOSE_L", 		                    area_arg = 73,	area_life = 110, area_fire = { pos = {50.0, 4.0, -5.0}, size = 0.8}},
    { area_name = "BORT_L", 		                    area_arg = 74,	area_life = 110, area_fire = { pos = {0.0,  2.0, -8.0}, size = 0.8}},
    { area_name = "KORMA_L", 		                area_arg = 75,	area_life = 110, area_fire = { pos = {-70.0, 2.0, -7.7}, size = 0.8}},
    { area_name = "KORMA_L", 		                area_arg = 75,	area_life = 110, area_fire = { pos = {-72.0, 2.0, 0.0}, size = 0.8}},
	{ area_name = "KORMA_L", 		                area_arg = 75,	area_life = 110, area_fire = { pos = {-60.0, 2.0, 0.0}, size = 0.8}},
	{ area_name = "NOSE_TOP",		                area_arg = 76,	area_life = 80,  area_fire = { pos = {41.5, 7.5, 0.0}, size = 0.5}},
    { area_name = "RUBKA_TOP",		            area_arg = 77,	area_life = 100,},
	{ area_name = "HP",				                    area_arg = 78,	area_life = 80,  area_fire = { pos = {-40.0, 7.6, 0.0}, size = 0.5}},
	{ area_name = "KORMA_BACK", 	            area_arg = 79,	area_life = 110, area_fire = { pos = {-85.7, 2.0, 0.0}, size = 0.5}},
	{ area_name = "KABINA",			                area_arg = 80,	area_life = 220, area_fire = { pos = {28.8, 10.2, 0.0}, size = 1.5}},
	{ area_name = "BORT_TOP_Back", 	        area_arg = 81,	area_life = 80,  area_fire = { pos = {-61.7, 5.9, 0.0}, size = 0.5}},
	{ area_name = "NADSTROYKA",		        area_arg = 82,	area_life = 220, area_fire = { pos = {-23.0, 12.0, 0.0}, size = 1.5}},
	{ area_name = "SUPERSTRUCTURE_Mid",	area_arg = 83,	area_life = 320, area_fire = { pos = {5.6, 9.8, 0.0}, size = 1.5}},
	{ area_name = "KORMA_TOP", 		            area_arg = 84,	area_life = 40, area_fire = { pos = {-76.7, 3.4, 0.0}, size = 1.0}},
    { area_name = "TOWER_NOSE",		        area_arg = 97,	area_life = 60, area_fire = { pos = {55.2, 8.2, 0.0}, size = 0.5}},
	{ area_name = "TOWER_KORMA",          	area_arg = 98,	area_life = 60, area_fire = { pos = {-73.5, 3.5, 0.0}, size = 0.5}},
    { area_name = "ZA_R",			                    area_arg = 99,	area_life = 27, area_fire = { pos = {3.7, 17.15, 6.25}, size = 0.5}},
    { area_name = "ZA_L",			                    area_arg = 100,	area_life = 27, area_fire = { pos = {3.7, 17.15, -6.25}, size = 0.5}},
}

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



GT.Name = "Classe_Durance"
GT.DisplayName = _("Classe Durance")
GT.Rate = 4000

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

GT.DetectionRange  = GT.airFindDist;
GT.ThreatRange = GT.airWeaponDist;
GT.Singleton   ="no";
GT.mapclasskey = "P0091000067";
---GT.attribute = {wsType_Navy,wsType_Ship,wsType_ArmedShip, TICONDEROGA,  --------- PERRY
--GT.attribute = {wsType_Navy,wsType_Ship,wsType_ArmedShip, PERRY,  --------- TICONDEROGA
GT.attribute = {wsType_Navy,wsType_Ship,wsType_ArmedShip,wsType_GenericLightArmoredShip,

                    "Cruisers",
                    "RADAR_BAND1_FOR_ARM",
                    "DetectionByAWACS",
				};
GT.Categories = {
					{name = "Armed Ship"},
					{name = "HelicopterCarrier"}
				};
				
----GT.Countries = { "France",};
---------------------------------------------------------------------------------------------				
				
add_surface_unit(GT)				