--configuration file, for the player and for the campainmaker
--Requires only a skipmission after a change
--This file is updated automatically if new items are added, keeping the old player options
------------------------------------------------------------------------------------------------------- 
------------------------------------------------------------------------------------------------------- 
-- last modification:  SomethingSimple_a
if not versionDCE then versionDCE = {} end
versionDCE["conf_mod_check.lua"] = "1.35.86"
------------------------------------------------------------------------------------------------------- 		
-- SomethingSimple_a					(a add RandomizeSkills)
-- cleanCode_b		
-- Reglage_l							(l Add spyTarget)(j: new Slider_PercentPlane)(i TheChannel)(h StrikeOnlyWithEscorte = false)(g: PruneScriptConf)(f: Init/loadout selection)(e: remet WestCallsign dans ATO_FlightPlan)(d: delete DeltaMn table)(c: fire playable_m from conf_mod)(b: CJTF Blue)(a: United Arab Emirates)
-- miguel21 modification M60_c			add CTLD (c load_CTLD option)(b bug vehicul)(a JTAC)
-- miguel21 modification M53_a			automatic update of the conf_mod file
-- miguel21 modification M47_b			keeps the history of the campaign files
-- Miguel21 modification M41			Scratchpad written in the Sratchpad file, if this modul is installed
-- miguel21 modification M38_f			Check and Help CampaignMaker (f: chapter ATO_Generator spy)(e: spy squad)  (c: Check conf_mod) 
-- Miguel21 modification M18_e			despawn (e: option confMod)
-- Miguel21 modification M17_f			Option F-14B & All AddPropAircraft
-- Miguel21 modification M11A_z			Multiplayer (z nbrecovery)
-- Miguel21 modification M08_b			Hotstart  --||initialement ((d�part de la piste + debug hotstart + intercepteur CVN))
------------------------------------------------------------------------------------------------------- 


mission_ini = {
	PruneScriptConf = {
		PruneScript  = true,									-- (true/false)	activate or not the script (and the associated options) allowing to prune the number of units on the ground to improve the FPS (mod Tomsk M09)
		PruneAggressiveness  = 0,								-- (0 to 2)		How aggressive should the pruning be [0 to 2], larger numbers will remove more units 0 : no pruning at all
		PruneStatic  = true,									-- (true/false)	true: Should ALL parked (static) aircraft be pruned [MP: recommend: true]
		ForcedPruneSam  = false,								-- (true/false)	true: PBO_CEF wanted to keep some actives SAMs, this option desactivates them too. 	
	},
	AIemergencyLaunch  = true,								-- (default : false), Tanks and Bombs emergency In Task Strike: autorise ou non aux AI � larguer leur emport sous la menace pendant un strike	
	
	parking_hotstart  = false,								-- (default : false), true: player flights starts with engines running on parking
	intercept_hotstart  = 2,								-- (1 or true: on parking/default)(2: on runway)(0 or false: cold start) player flights with intercept task starts with engines running 
	startup_time_player  = 600,								-- (default : 600), time in seconds allocated for startup, taxi and take off for player flight	
	
	failure  = false,										-- (default : false), true : aircraft failures activated, works in SOLO, bug in MP, M20
	failureProbMax  = 10,									-- (1 to 100) probabilit� maximum sur une panne _ Miguel21 modification M20
	failureNbMax  = 5,										-- ( 1 to ...57?) Max failures number in one mission _Miguel21 modification M20	
	
	Keep_USNdeckCrew  = false,								-- (default : false), false : supprime US Navy deck crew dans la g�n�ration de mission (Ceci n'installe/desinstalle pas le MOD USN) Miguel Modification M23	
	
	OnlyDayMission  = true,									-- (default : false), true: Force all missions to be played in daylight (Mod M25)
	HourlyTolerance  = 2,									-- %, When activating OnlyDayMission, allows you to play a little before or a little after the day. In percentage terms	
	
	MovedBullseye  = true,									-- (default : true), true : Moves the bullseye to each mission	
	TriggerStart  = true,									-- (default : true), true: All planes appear at mission start (No freeze), but problems with using Mission Planner (Attack planes often don't attack target). false: some Planes appear during the mission so some freezes could occur but Mission Planner can be used without bugs ( M30 )	
	
	CVN_CleanDeck  = false,									-- (default : false), true: Remove all static aircraft from the deck. ( M31 )
	CVN_TimeBtwPlane  = 45,									-- (default : false), Time between each aircraft for catapulting
	CVN_Vmax  = 10,											-- (default : 15.4333( m/s):30kts), can have bp with F14, go down to 10 m/s
	CVN_windDeck  = 9,										-- (default : 13.89( m/s):27kts), can have bp with F14, go down to 9 m/s
	CVN_despawnAfterLanding  = true,						-- (default : true) despawn aircraft landing on CVN and LHA ,this avoids collisions between taxxing and landing aircraft
	SC_SpawnOn = {
		["F-14B"]  = "deck",									-- (default: "deck"), "catapult", "air"
		["E-2C"]  = "deck",									--
		["S-3B Tanker"]  = "deck",								--
		["Pedro"]  = "deck",									--
	},
	SC_CarrierIntoWind  = "man",							-- (defaut: "auto")("man"), "auto": Original Mbot code: the CVN rotates according to the air operations. "man": the CVN runs only once via the commands in the radio menu F10 		
	
	MP_PlaneRecovery  = 2,									-- (defaut: false)(1 or 2 or 3 or 4 plane per flight or true) In multiplayer, this allows you to control an aircraft already in flight in case of a crash. M11.q
	WrittenOnScratchpadMod  = true,							--fills the scratchpad MOD sheet, for the moment, only works if DCS is not launched.
	backupAllMissionFiles  = true,							-- (defaut: false) only the last mission is saved //true: save all missions in the Debriefing directory,
	
	Slider_CampaignDuration   = false,						-- (false/default: no change)(1: fast)(2: medium)(3: long/recommended)(4: very long)			influences the length of the campaign
	Slider_EnemyLevel  = false,								-- (false/default: no change)(1: easy)(2: medium)(3: difficult/recommended)(4: very difficult)	changes the level of pilots, number of planes etc...
	RandomizeSkills  = true,								-- (true/default) random but logical Skill or if the skills configured in Air OOB are to be respected. (@SomethingSimple)
	Slider_PercentPlane  = 100,								-- (false/default: 100) % percentage of the number of aircraft proposed in the campaign. 100% is the CampaignMaker's choice, to gain FPS you can try 80% or less.
	
	SelectLoadout  = "central",								--(central/default) (init: for old campaigns, if the loadout file is located in the /Init folder)
	SilenceATC  = "auto",									--("auto": silence only MP)(false)(true) silences the ATC | useful for many multiplayer flights where the ATC talks and blocks repeatedly (except CVN)
 
	load_CTLD  = false,										--loads the CTLD script
	load_mist  = false,										--loads the mist script

	cheat_Mode_Eye  = false,								--allows you to see all friend and foe planes
}

-- Force your own options rather than those of base_ini.miz, which correspond to those of PBO-CEF ^^
-- Force vos propres options plutot que ceux de base_ini.miz, qui correspondent � ceux de PBO-CEF ^^
mission_forcedOptions = {
	["wakeTurbulence"]  = true,								-- False / true : turbulence  [MP: recommend: false]
	["labels"]  = 0,										-- etiquette : ( 0 : aucune �tiquette ) || ( 1 : �tiquette PLEINE ) || ( 2 : �tiquette abr�g�e )|| ( 3 : �tiquette Plate )
	["optionsView"]  = "optview_all",						-- Vue de la Map F10: ( "optview_onlymap": ONLY the MAP) || ( "optview_myaircraft": only my plane on map) || ( "optview_allies": fog of war) || ( "optview_onlyallies" : Allied only  ) || ( "optview_all" : every visible targets and planes on map allowed by campaign maker : usefull to program JDAM or JSAW | non target units will stay invisible to player )
	["externalViews"]  = true,								-- False / true : Vue externe
	["permitCrash"]  = true,								-- False / true : R�cup�ration de crash
	["miniHUD"]  = false,									-- False / true : Mini HUD
	["cockpitVisualRM"]  = true,							-- False / true : Mod reconnaissance Visuel dans le cockoit
	["userMarks"]  = true,									-- False / true : autorise les marqueurs sur la vue MAP F10
	["civTraffic"]  = "",									-- Traffic civil routier : ( "" : OFF ) || ( "low" : BAS ) || ( "medium" : MOYEN )|| ( "high" : ELEVE )  [MP: recommend: ""]
	["birds"]  = 0,											-- Collision volatile (probabilit�) ( 0 � 1000 )  [MP: recommend: 0]
	["cockpitStatusBarAllowed"]  = false,					-- False / true : Barre d'�tat cockpit
	["RBDAI"]  = true,										-- False / true : Evaluation des dommages au combat
}

TargetPointF14_BullsToFP = true							-- assigns the BullsEye position to the NavPoint FP of the F-14
			
-- limit the number of F-14s (in the same Flight as the player) on the CVN to avoid taxiing collisions
limiteNbF14CVN = 4										-- advice 3 max is a good value






















-- 2 ############################################################################################################################################################
-- 2 ############################################################################################################################################################
--The options in this second part are exclusively reserved for the campaign editor. Players must not modify them.
-- 2 ############################################################################################################################################################	
-- 2 ############################################################################################################################################################


Debug = {
	debug  = false,											--(replaces the variable Init/camp/debug), when the mission was created and creates some files in the /debug folder During the DCE/DCS game, enter information in the DCS log and/or in the /Debug folder of the campaign.								
	debugInGamePopup  = false,								--popup the lua/DCS bug window in game, be careful, it blocks the game

	AfficheFailure  = false,								-- affiche les infos Pannes Al�atoires
	AfficheFlight  = false,									-- affiche les infos des packages cr��s dans ATO_FlightPlan
	AfficheSol  = false,									-- affiche les infos des cibles encore intactes
	KillGround = {
		flag  = false,											-- Active la destruction al�atoires des cibles, via les options plus bas
		sideGround  = "red",									-- le camp o� l'on veut d�truire les unit�s
		sideTarget  = "blue",									-- les targets de notre camp
		pourcent  = 50,										-- pourcentage de chance que l'unit� soit d�truite (juste l'unit�, pas le groupe)
	},
	Generator = {
		affiche  = false,										-- affiche les infos des premiers vols cr��s dans ATO_Generator
		chapter   = "ABC",										-- affiche les infos des 3 parties de ATO_Generator (ABC)
		nb  = 10,												-- nb de vol � afficher
		SpySquad  = "1052 Squadron",							-- affiche le passage de ce squad dans ATO_Generator
		SpyTask  = "Strike",									-- affiche le passage de ce squad ET de son Task dans ATO_Generator
		SpyTarget  = "HawkSiteNorthWest",						-- affiche le passage de ce Target dans ATO_Generator
	},
	checkTargetName  = true,								-- FirsMission Alerte si les noms des targets possede 1 espace en premier ou en dernier
	checkTargetName2Space  = true,							-- FirsMission Alerte si les noms des targets possede 2 espaces cons�cutif			
}

-- soit avec une valeur par caterorie RepairSAM RepairAirbase etc
campMod = {
	RepairMinimumDestroyed  = 25,							-- ne r�pare pas si le target.alive est inf�rieur �
	RepairSAM  = 15,										-- en %, Only CampaignMaker please
	RepairAirbase  = 12,									-- en %, Only CampaignMaker please
	RepairStation  = 8,										-- en %, Only CampaignMaker please
	RepairBridge  = 8,										-- en %, Only CampaignMaker please
	Repair  = 2,											-- en %, Only CampaignMaker please	
	
	KillTargetValue  = 20,									-- en %, si la vie du Target est < 20%, on d�clare les survivants mort, pour �viter d'y retourner.
	
	----attention, name of the map in lower case 
	MovedBullseye = {
		caucasus = {
			pos = {
				x  = -281713,										--Kolkhi']
				y  = 647369,											--Kolkhi']
			},
			rayon  = 200,											-- distance en Km autour de laquelle on peut placer le bullsEye
		},
		persiangulf = {
			pos = {
				x =	282607.962896,
				y = 141685.262108,									-- Jiroft airport
			},
			rayon  = 200,											-- distance en Km autour de laquelle on peut placer le bullsEye
		},
		syria = {
			pos = {
				x  = -22163,											-- Israel Line 974
				y  = -11800,											-- Israel Line 974
			},
			rayon  = 200,											-- distance en Km autour de laquelle on peut placer le bullsEye
		},
		normandy = {
			pos = {
				x  = -26144.085385954,								--26144.085385954,	
				y  = -41381.855008994,								--41381.855008994,		
				},
			rayon  = 200,											-- distance en Km autour de laquelle on peut placer le bullsEye
		},
		TheChannel = {
			pos = {
				y  = -15831.502170023,								--Manston
				x  = 52281.058730041,								--Manston		
				},
			rayon  = 200,											-- distance en Km autour de laquelle on peut placer le bullsEye
		},
		falklands = {
			pos = {
				x   = 72705,											--Falklands	
				y   = -31294,										--Falklands		
				},
			rayon   = 200,										-- distance en Km autour de laquelle on peut placer le bullsEye
		},
	},
	
	-- reglage composition Package
	Setting_Generation = {
		["limit_escort"]  = 8,									-- (default : 99)(recommended : 8), limit escort number to
	},
	
	StrikeOnlyWithEscorte  = false,							-- (default : true) strikes are possible with only one escort
}

-- modif Miguel21 M05.b : ajout picture Briefing + pictures Target

		 -- "FrontlineGulf.png",
		 -- "TF-Infos.png",
		 -- "TF-71.png",
	-- },
		 -- "FrontlineGulf.png",
		 -- "TF-71.png",
	-- },
-- }
pictureBrief = {
	['blue'] = {
		[1] = 'Frontline.png',
	},
	['red'] = {
		[1] = 'Frontline.png',
	},
}
