<commit_before>/*
Author: 

	Jester [AW] & Quiksilver

Last modified: 

	16/04/2014 by QS
	
Description:

	When AO is complete, a chance that OPFOR will counterattack.
	
	Create AO detection trigger
	At end of sequence, count EAST.
	if (EAST < 1) exitWith {lost};
	if (EAST > 0) exitWith (held);
	
	Also, APCs spawned with EOS do not engage for whatever reason
_______________________________________________________*/

sleep 5;

if(random 1 >= 0.5) then {

	_defendMessages = [
		"Враг контратакует! Займите круговую оборону для защиты захваченной территории.",
		"Противник вызвал подкрепление!"
	];

	_targetStartText = format [
		"<t align='center' size='2.2'>Оборона</t><br/><t size='1.5' align='center' color='#0d4e8f'>%1</t><br/>____________________<br/>Враг контратакует! Займите оборонительные позиции!",
		currentAO
	];

	GlobalHint = _targetStartText; publicVariable "GlobalHint"; hint parseText GlobalHint;
	showNotification = ["NewMainDefend", currentAO]; publicVariable "showNotification";

	{_x setMarkerPos (getMarkerPos currentAO);} forEach ["aoCircle_2", "aoMarker_2"];
	"aoMarker_2" setMarkerText format["Оборона: %1", currentAO];

	sleep 10;
	//publicVariable "refreshMarkers";
	publicVariable "currentAO";
	currentAOUp = true; publicVariable "currentAOUp";
	radioTowerAlive = false; publicVariable "radioTowerAlive";

	_playersOnlineHint = format [
		"<t size='1.5' align='left' color='#C92626'>Контратака</t><br/><br/>____________________<br/>Противник перегруппировал часть своих сил на контратаку захваченной нами точки.",
		currentAO
	];

	_defendTimer1 = 600;
	_defendTimer2 = random 120;

	GlobalHint = _playersOnlineHint; publicVariable "GlobalHint"; hint parseText GlobalHint;

	sleep 10;

	hqSideChat = _defendMessages call BIS_fnc_selectRandom; publicVariable "hqSideChat"; [WEST, "HQ"] sideChat hqSideChat;

	_type = [1, 2, 3, 4];
	_selectedType = _type select (floor (random (count _type)));

	if (_selectedType == 1) then {
		null = [["aoCircle_2"], [6, 2], [4, 4], [0], [1, 0], [1, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 2) then {
		null = [["aoCircle_2"], [6, 2], [2, 4], [1], [4, 4], [1, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 3) then {
		null = [["aoCircle_2"], [6, 2], [3, 4], [2], [1, 0], [1, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 4) then {
		null = [["aoCircle_2"], [6, 2], [2, 4], [3], [2, 4], [1, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};

	hint "В близи захваченной территории, обнаружены вражеские силы.";

	sleep 5;

	hqSideChat = "Обороняйтесь, противник начинает штурм!"; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;

	sleep _defendTimer1;

	hqSideChat = "Атака врага отбита, противник отступает!"; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;

	sleep _defendTimer2;

	[["aoCircle_2"]] call EOS_deactivate;
};<commit_msg>Изменен юнитпул ботов на обороне с Синего на Красных.<commit_after>/*
Author:

	Jester [AW] & Quiksilver

Last modified:

	16/04/2014 by QS

Description:

	When AO is complete, a chance that OPFOR will counterattack.

	Create AO detection trigger
	At end of sequence, count EAST.
	if (EAST < 1) exitWith {lost};
	if (EAST > 0) exitWith (held);

	Also, APCs spawned with EOS do not engage for whatever reason
_______________________________________________________*/

sleep 5;

if(random 1 >= 0.5) then {

	_defendMessages = [
		"Враг контратакует! Займите круговую оборону для защиты захваченной территории.",
		"Противник вызвал подкрепление!"
	];

	_targetStartText = format [
		"<t align='center' size='2.2'>Оборона</t><br/><t size='1.5' align='center' color='#0d4e8f'>%1</t><br/>____________________<br/>Враг контратакует! Займите оборонительные позиции!",
		currentAO
	];

	GlobalHint = _targetStartText; publicVariable "GlobalHint"; hint parseText GlobalHint;
	showNotification = ["NewMainDefend", currentAO]; publicVariable "showNotification";

	{_x setMarkerPos (getMarkerPos currentAO);} forEach ["aoCircle_2", "aoMarker_2"];
	"aoMarker_2" setMarkerText format["Оборона: %1", currentAO];

	sleep 10;
	//publicVariable "refreshMarkers";
	publicVariable "currentAO";
	currentAOUp = true; publicVariable "currentAOUp";
	radioTowerAlive = false; publicVariable "radioTowerAlive";

	_playersOnlineHint = format [
		"<t size='1.5' align='left' color='#C92626'>Контратака</t><br/><br/>____________________<br/>Противник перегруппировал часть своих сил на контратаку захваченной нами точки.",
		currentAO
	];

	_defendTimer1 = 600;
	_defendTimer2 = random 120;

	GlobalHint = _playersOnlineHint; publicVariable "GlobalHint"; hint parseText GlobalHint;

	sleep 10;

	hqSideChat = _defendMessages call BIS_fnc_selectRandom; publicVariable "hqSideChat"; [WEST, "HQ"] sideChat hqSideChat;

	_type = [1, 2, 3, 4];
	_selectedType = _type select (floor (random (count _type)));

	if (_selectedType == 1) then {
		null = [["aoCircle_2"], [6, 2], [4, 4], [0], [1, 0], [0, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 2) then {
		null = [["aoCircle_2"], [6, 2], [2, 4], [1], [4, 4], [0, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 3) then {
		null = [["aoCircle_2"], [6, 2], [3, 4], [2], [1, 0], [0, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};
	if (_selectedType == 4) then {
		null = [["aoCircle_2"], [6, 2], [2, 4], [3], [2, 4], [0, 0, EAST], [0, 1, 120, FALSE, true]] call Bastion_Spawn;
	};

	hint "В близи захваченной территории, обнаружены вражеские силы.";

	sleep 5;

	hqSideChat = "Обороняйтесь, противник начинает штурм!"; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;

	sleep _defendTimer1;

	hqSideChat = "<NAME>, противник отступает!"; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;

	sleep _defendTimer2;

	[["aoCircle_2"]] call EOS_deactivate;
};
{'fraction_non_alphanumeric': 0.14936708860759493, 'fraction_numerical': 0.03949367088607595, 'mean_word_length': 5.297555791710946, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 32, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '820854', 'n_tokens_mistral': 2465, 'n_tokens_neox': 2345, 'n_words': 614}