<commit_before>/*
Author:

	Quiksilver

Last modified:

	1/05/2014

Description:

	Mission control

To do:

	Rescue/capture/HVT missions
______________________________________________*/

private ["_mission", "_missionList", "_currentMission", "_nextMission", "_delay", "_loopTimeout"];

_delay = 300 + (random 600);
_loopTimeout = 10 + (random 10);

_missionList = [
	"destroyUrban",
/*	
	"HQcoast",
	"HQfia",
	"secureRadar",
*/
	"HQresearch",
	"HQind",
	"priorityAA",
	"priorityARTY",
	"secureChopper",
	"heliCrash",
	"destroyUrban",
	"rescueHostages",
	"convoy",
	"snatch",
	"swordfish",
	"yellowfog",
	"grapeswrath"
];

SM_SWITCH = true; publicVariable "SM_SWITCH";

while { true } do {

	if (SM_SWITCH) then {

		hqSideChat = "Вторичная цель выявлена, ждите указаний!"; publicVariable "hqSideChat"; [WEST, "HQ"] sideChat hqSideChat;

		sleep 3;

		_mission = _missionList call BIS_fnc_selectRandom;
		_currentMission = execVM format ["mission\side\missions\%1.sqf", _mission];

		waitUntil {
			sleep 3;
			scriptDone _currentMission
		};

		sleep _delay;

		SM_SWITCH = true; publicVariable "SM_SWITCH";
	};
	sleep _loopTimeout;
};<commit_msg>Теперь допзадания не будут появляться 2 раза подряд. #454<commit_after>private ["_mission", "_missionList", "_currentMission", "_delay", "_loopTimeout"];

_delay = 300; + (random 600);
_loopTimeout = 10 + (random 10);

_missionList = [
	"destroyUrban",
/*	
	"HQcoast",
	"HQfia",
	"secureRadar",
*/
	"HQresearch",
	"HQind",
	"priorityAA",
	"priorityARTY",
	"secureChopper",
	"heliCrash",
	"destroyUrban",
	"rescueHostages",
	"convoy",
	"snatch",
	"swordfish",
	"yellowfog",
	"grapeswrath"
];

SM_SWITCH = true; publicVariable "SM_SWITCH";

while { true } do {

	if (SM_SWITCH) then {

		hqSideChat = "Вторичная цель выявлена, ждите указаний!"; publicVariable "hqSideChat"; [WEST, "HQ"] sideChat hqSideChat;

		sleep 3;

		_mission = _missionList call BIS_fnc_selectRandom;

			if !(isNil "LAST_SIDE_MISSION") then {           
				while {_mission == LAST_SIDE_MISSION} do {
					_mission = _missionList call BIS_fnc_selectRandom;
				};
			};
	    LAST_SIDE_MISSION = _mission;
	    publicVariable "LAST_SIDE_MISSION";
		
		_currentMission = execVM format ["mission\side\missions\%1.sqf", _mission];
		
		waitUntil {
			sleep 3;
			scriptDone _currentMission
		};
		
		sleep _delay;

		SM_SWITCH = true; publicVariable "SM_SWITCH";
	};
	sleep _loopTimeout;
};
{'fraction_non_alphanumeric': 0.13632585203657524, 'fraction_numerical': 0.015378221113881962, 'mean_word_length': 4.5717592592592595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933718', 'n_tokens_mistral': 1041, 'n_tokens_neox': 920, 'n_words': 194}