--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: M38_z
if not versionDCE then versionDCE = {} end
versionDCE["UTIL_ConfModCheck.lua"] = "1.37.114"
------------------------------------------------------------------------------------------------------- 		
-- SomethingSimple_a		(a add randomizeSkills)
-- cleanCode_b		
-- Reglage_n				(n CVN to CV)(m remove jettison line)(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)
-- modification M72_a		alignment_Mode
-- modification M66_d		bombOnRunway and ActivateBaseAndItsUnits (d add RepairBaseMinimumDestroyed)
-- modification M60_c		add CTLD (c load_CTLD option)(b bug vehicul)(a JTAC)
-- modification M53_b		automatic update of the conf_mod file (b conf_mod reconfiguration)
-- modification M47_b		keeps the history of the campaign files
-- modification M41			Scratchpad written in the Sratchpad file, if this modul is installed
-- modification M38_z		Check and Help CampaignMaker (z new file name: UTIL_ConfModCheck)(f: chapter ATO_Generator spy)(e: spy squad)  (c: Check conf_mod) 
-- modification M18_e		despawn (e: option confMod)
-- modification M17_f		Option F-14B & All AddPropAircraft
-- modification M11A_z		Multiplayer (z nbrecovery)
-- modification M08_b		Hotstart  
------------------------------------------------------------------------------------------------------- 


mission_ini = {
	--***number of ground elements (FPS like)***
	PruneScriptConf = {
		PruneScript  = true,									-- (true/false)				[default: true]		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  = 2,								-- (0 to 3)					[default: 1.8]		How aggressive should the pruning be [0 to 3], larger numbers will remove more units 0 : no pruning at all
		PruneStatic  = true,									-- (true/false)				[default: true]		Should ALL parked (static) aircraft be pruned [MP: recommend: true]
		ForcedPruneSam  = false,								-- (true/false)				[default: false]	PBO_CEF wanted to keep some actives SAMs, this option desactivates them too. 	
	},

	--***aircraft/helicopter option player/client***
	parking_hotstart  = false,								-- (true/false)				[default: false]	player flights starts with engines running on parking
	intercept_hotstart  = 2,								-- (true/false/0/1/2)		[default: false]	(1 or true: on parking)(2: on runway)(0 or false: cold start) player flights with intercept task starts with engines running 
	alignment_Mode  = "fast",								-- ("fast"/"slow")			[default: "fast"]	inertial unit alignment speed, if available for mission player/client modules
	
	--***in-flight failures***
	failure  = false,										-- (true/false)				[default: false]	true : aircraft failures activated, works in SOLO, bug in MP
	failureProbMax  = 10,									-- (1 to 100 [%])			[default: 5]		probability of this failure 
	failureNbMax  = 5,										-- (1 to ...57?)			[default: 2]		Max failures number in one mission 

	--***time options***
	onlyDayMission  = false,								-- (true/false)				[default: false]	true: Force all missions to be played in daylight (Mod M25)
	hourlyTolerance  = 2,									-- (1 to 100 [%]) 			[default: 5]		%, When activating OnlyDayMission, allows you to play a little before or a little after the day. In percentage terms	
	startup_time_player  = 1200,							-- (number [s])				[default: 600]		time in seconds allocated for startup, taxi and take off for player flight	
	mission_duration  = 5400,								-- (number [s])				[default: 5400]		duration of a mission in seconds
	idle_time_min  = 10800,									-- (number [s])				[default: 10800]	minimum time between missions in seconds
	idle_time_max  = 14400,									-- (number [s])				[default: 14400]	maximum time between missions in seconds
	dawn  = 21600,											-- (number [s])				[default: 21600]	time of dawn in seconds
	dusk  = 65700,											-- (number [s])				[default: 65700]	time of dusk in seconds
	
	--***weather options***
	weather = {
		pHigh  = 80,											--(1 to 100 [%])			[default: 50]		probability of high pressure weather system
		pLow  = 20,											--(1 to 100 [%])			[default: 50]		probability of low pressure weather system
		refTemp  = 27,											--(1 to 100 [T°])			[default: 20]		average day max temperature
	},

	--***difficulty option***
	slider_CampaignDuration   = false,						-- (false/1/2/3/4)			[default: false]	(false: no change)(1: fast)(2: medium)(3: long/recommended)(4: very long)			influences the length of the campaign
	slider_EnemyLevel  = false,								-- (false/1/2/3/4)			[default: false]	(false: no change)(1: easy)(2: medium)(3: difficult/recommended)(4: very difficult)	changes the level of pilots, number of planes etc...
	randomizeSkills  = true,								-- (true/false)				[default: true]		(true: random but logical Skill or if the skills configured in Air OOB are to be respected. (@SomethingSimple)
	slider_PercentPlane  = false,							-- (false/1 to 100 [%])		[default: false]	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.
	strikeOnlyWithEscorte  = false,							-- (true/false) 			[default: false]	strikes are possible with only one escort

	--***miscellaneous options***
	movedBullseye  = true,									-- (true/false)				[default: true]		Moves the bullseye to each mission	
	CV_CleanDeck  = false,									-- (true/false)				[default: false]	true: Remove all static aircraft from the deck.
	SC_CarrierIntoWind  = "man",							-- ("auto"/"man")			[defaut: "auto"]	"auto": Original Mbot code: the CV rotates according to the air operations. "man": the CV runs only once via the commands in the radio menu F10 		
	MP_PlaneRecovery  = 2,									-- (false/1/2/3 etc)		[defaut: 2]			In multiplayer, this allows you to control an aircraft already in flight in case of a crash.
	backupAllMissionFiles  = true,							-- (true/false)				[default: false]	true: save all missions in the Debriefing directory. false: only the last mission is saved
	cheat_Mod_Eye  = false,									-- (true/false)				[default: false]	allows you to see all friend and foe planes

	--***third-party mod option***
	silenceATC  = "auto",									-- ("auto"/false/true)		[default: "auto"]	auto: silence only MP silences the ATC | useful for many multiplayer flights where the ATC talks and blocks repeatedly (except CV)
	load_CTLD  = false,										-- (true/false)				[default: false]	loads the CTLD script
	load_mist  = false,										-- (true/false)				[default: false]	loads the mist script

}

-- 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,								-- (true/false)			[default: true]		turbulence  [MP: recommend: false]
	["labels"]  = 0,										-- (0/1/2/3)			[default: 0]		( 0 : no label )  ( 1 :full label )  ( 2 : label repealed ) ( 3 : flat label )
	["optionsView"]  = "optview_all",						-- ("optview_onlymap"/"optview_myaircraft"/"optview_allies"/"optview_onlyallies"/"optview_all" )		F10 map view: ( "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,								-- (true/false)			[default: true]		External view
	["permitCrash"]  = true,								-- (true/false)			[default: true]		crash recovery
	["miniHUD"]  = false,									-- (true/false)			[default: false]	Mini HUD
	["cockpitVisualRM"]  = true,							-- (true/false)			[default: true]		Mod Visual recognition in the cockpit
	["userMarks"]  = true,									-- (true/false)			[default: true]		enables markers in MAP view F10
	["civTraffic"]  = "",									-- (""/ "low" / "medium" / "high")	Civil road traffic  ( "" : OFF )  [MP: recommend: ""]
	["birds"]  = 0,											-- (0 to 100 [%])		[default: 100]		volatile collision probability [MP: recommend: 0]
	["cockpitStatusBarAllowed"]  = false,					-- (true/false)			[default: false]	cockpit status bar
	["RBDAI"]  = true,										-- (true/false)			[default: true]		Combat damage assessment
}

















-- 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,											-- (true/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,								-- (true/false) popup the lua/DCS bug window in game, be careful, it blocks the game

	AfficheFailure  = false,								-- (true/false) displays Random failure info
	AfficheFlight  = false,									-- (true/false) displays generated package/flight info
	AfficheSol  = false,									-- (true/false) affiche les infos des cibles encore intactes
	Generator = {
		affiche  = false,										-- (true/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,								-- (true/false)	[default: false]	checks whether the target exists in oob_ground or in a template
	checkTargetName2Space  = true,							-- (true/false)	[default: false]	FirsMission Alert if target names contain 2 consecutive spaces		
}


campMod = {
	
	--***loadout options***
	selectLoadout  = "central",								-- ("central"/"init")		[default: "central"] (init: for old campaigns, if the loadout file is located in the /Init folder)

	--***repair option***
	airReinforceDelay  = 12,								-- (number [hours])	[default: 12]	delays between aircraft transfers to reinforce Air units
	groundReinforceDelay  = 12,								-- (number [hours])	[default: 12]	delays between ground unit repairs
	
	RepairBaseMinimumDestroyed  = 20,						-- (1 to 100 [%])	[default: 20]	does not repair if Base % life is less than 
	RepairMinimumDestroyed  = 25,							-- (1 to 100 [%])	[default: 25]	does not repair if target % life is less than 
	
	RepairSAM  = 15,										-- (1 to 100 [%])	[default: 15]	% chance of unit being repaired/replaced
	RepairAirbase  = 25,									-- (1 to 100 [%])	[default: 12]	% chance of unit being repaired/replaced
	RepairStation  = 8,										-- (1 to 100 [%])	[default: 8]	% chance of unit being repaired/replaced
	RepairBridge  = 8,										-- (1 to 100 [%])	[default: 8]	% chance of unit being repaired/replaced
	Repair  = 2,											-- (1 to 100 [%])	[default: 2]	% chance of unit being repaired/replaced	
	
	KillTargetValue  = 20,									-- (1 to 100 [%])	[default: 30] si la vie du Target est < 20%, on d�clare les survivants mort, pour �viter d'y retourner.
	
	--***other repair options with a different logic***
	RepairRunwayPerDay  = 25,								-- (1 to 100 [%])	[default: 25]	% per day for runway repairs

	----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  = 64800.714844,									-- Qeshm Island
				y  = -33383.481445,									-- Qeshm Island
			},
			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
	-- },

}

-- modif 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",
	},
}
