<commit_before>/*
@file: destroyUrban.sqf
Author:

	Quiksilver 	(credit to Jester [AW] for initial build)
				(credit to chucky [allFPS] for initial help with addAction)	
				(credit to BangaBob [EOS] for EOS)
Last modified:

	29/04/2014
	
Description:

	Objective appears in urban area, with selection of OPFOR Uinfantry, and civilians.
	Inf and civs spawn in foot patrols and randomly placed in and around buildings.
	Vehicle spawning can be unstable and the veh can spawn into buildings.
	Good CQB mission and players seem to enjoy it.

_____________________________________________________________________*/


private ["_object","_briefing","_smPos","_c4Message"];

//-------------------- PREPARE MISSION. SELECT OBJECT, POSITION AND MESSAGES FROM ARRAYS

	_object = [crate1,crate2] call BIS_fnc_selectRandom;
	currentSM = ["sm1","sm2","sm3","sm4","sm5","sm6","sm7","sm8","sm9","sm10","sm11","sm12","sm13","sm14","sm15","sm16","sm17","sm18","sm19"] call BIS_fnc_selectRandom;
	_c4Message = ["Заряд установлен! 5 секунд до взрыва. В УКРЫТИЕ!","C-4 активирован! 5 секунд до детонации. ПРИГНИТЕСЬ!","Взрывчатка на месте! 5 секунд до взрыва. УХОДИМ!"] call BIS_fnc_selectRandom;

//-------------------- SPAWN OBJECTIVE (okay okay, setPos not spawn/create)

	_smPos = getMarkerPos currentSM;
	sleep 1;
	_object setPosATL _smPos;

//-------------------- SPAWN GUARDS and CIVILIANS
	
	[[currentSM],[6,1],[7,1],[0,0],[0],[0],[0,0],[5,1,1200,EAST,FALSE,FALSE]] call EOS_Spawn; //guards
	sleep 1;
	[[currentSM],[3,1],[4,1],[0,0],[0],[0],[0,0],[3,1,1100,EAST,FALSE,FALSE]] call EOS_Spawn; //civs

//-------------------- BRIEFING
	
	"sideMarker" setMarkerPos (getMarkerPos currentSM);
	"sideMarker" setMarkerText "Допзадание: Склад"; publicVariable "sideMarker";
	_briefing = "<t align='center'><t size='2.2'>Новое допзадание</t><br/><t size='1.5' color='#00B2EE'>Склад</t><br/>____________________<br/>Враг поставляет боевикам современное оружие и взрывчатые вещества. Экипируйтесь с расчётом на ближний бой!<br/><br/>Ваша задача - выдвинутся на вышеуказанную точкy и уничтожить складируемый боезапас противника.</t>";
	GlobalHint = _briefing; hint parseText GlobalHint; publicVariable "GlobalHint";
	showNotification = ["NewSideMission", "Склад"]; publicVariable "showNotification";
	sideMarkerText = "Склад"; publicVariable "sideMarkerText";
			
	sideMissionUp = true; publicVariable "sideMissionUp";
	SM_SUCCESS = false;	publicVariable "SM_SUCCESS";

//--------------------- WAIT UNTIL OBJECTIVE COMPLETE: Sent to sabotage.sqf to wait for SM_SUCCESS var.

	waitUntil { sleep 3; SM_SUCCESS };
	
//--------------------- BROADCAST BOMB PLANTED
	
	hqSideChat = _c4Message; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;
	
//-------------------- BOOM!
	
	sleep 15;									// ghetto bomb timer
	"M_NLAW_AT_F" createVehicle getPos _object; // default "Bo_Mk82"
	_object setPos [-10000,-10000,0];			// hide objective
	sleep 1;
	
//-------------------- DE-BRIEFING

	sideMissionUp = false; publicVariable "sideMissionUp";
	[] call QS_fnc_SMhintSUCCESS;
	"sideMarker" setMarkerPos [-10000,-10000,-10000]; publicVariable "sideMarker";
	
//--------------------- DELETE, DESPAWN, HIDE and RESET
	
	SM_SUCCESS = false; publicVariable "SM_SUCCESS"				// reset var for next cycle
	sleep 120;													// sleep to hide despawns from players. default 120, 1 for testing	
	[[currentSM]] call EOS_deactivate;							// despawn enemies and civs<commit_msg>Склад #344<commit_after>/*
  Author:
  Quiksilver

 Credit to:
  Jester [AW] for initial build
  chucky [allFPS] for initial help with addAction
  BangaBob [EOS] for EOS

  Last modified:
  29/04/2014

  Description:
  Objective appears in urban area, with selection of OPFOR Uinfantry, and civilians.
  Inf and civs spawn in foot patrols and randomly placed in and around buildings.
  Vehicle spawning can be unstable and the veh can spawn into buildings.
  Good CQB mission and players seem to enjoy it.
*/

private ["_object","_briefing","_smPos","_c4Message"];

//PREPARE MISSION. SELECT OBJECT, POSITION AND MESSAGES FROM ARRAYS
  _object = [crate1,crate2] call BIS_fnc_selectRandom;
  currentSM = ["sm1","sm2","sm3","sm4","sm5","sm6","sm7","sm8","sm9","sm10","sm11","sm12","sm13","sm14","sm15","sm16","sm17","sm18","sm19"] call BIS_fnc_selectRandom;
  _c4Message = ["Заряд установлен! 5 секунд до взрыва. В укрытие!","C-4 активирован! 5 секунд до детонации. Пригнитесь!","Взрывчатка на месте! 5 секунд до взрыва. Уходим!"] call BIS_fnc_selectRandom;

//SPAWN OBJECTIVE (okay okay, setPos not spawn/create)
  _smPos = getMarkerPos currentSM;
  sleep 1;
  _object setPosATL _smPos;

//SPAWN GUARDS and CIVILIANS
  [[currentSM],[6,1],[7,1],[0,0],[0],[0],[0,0],[5,1,1200,EAST,FALSE,FALSE]] call EOS_Spawn; //guards
  sleep 1;
  [[currentSM],[3,1],[4,1],[0,0],[0],[0],[0,0],[3,1,1100,EAST,FALSE,FALSE]] call EOS_Spawn; //civs

//BRIEFING
  "sideMarker" setMarkerPos (getMarkerPos currentSM);
  "sideMarker" setMarkerText "Допка: Склад"; publicVariable "sideMarker";
  _briefing = "<t align='center'><t size='2.2'>Допзадание</t><br/><t size='1.5' color='#00B2EE'>Склад</t><br/>____________________<br/>Враг поставляет боевикам современное оружие и взрывчатые вещества. Экипируйтесь с расчётом на ближний бой!<br/><br/>Ваша задача — выдвинутся в указанный район и уничтожить складируемый боезапас противника.</t>";
  GlobalHint = _briefing; hint parseText GlobalHint; publicVariable "GlobalHint";
  showNotification = ["NewSideMission", "Склад"]; publicVariable "showNotification";
  sideMarkerText = "Склад"; publicVariable "sideMarkerText";

  sideMissionUp = true; publicVariable "sideMissionUp";
  SM_SUCCESS = false;	publicVariable "SM_SUCCESS";

//WAIT UNTIL OBJECTIVE COMPLETE: Sent to sabotage.sqf to wait for SM_SUCCESS var.
  waitUntil { sleep 3; SM_SUCCESS };

//BROADCAST BOMB PLANTED
  hqSideChat = _c4Message; publicVariable "hqSideChat"; [WEST,"HQ"] sideChat hqSideChat;

//BOOM!
  sleep 15;                                   //Ghetto bomb timer
  "M_NLAW_AT_F" createVehicle getPos _object; //Default "Bo_Mk82"
  _object setPos [-10000,-10000,0];           //Hide objective
  sleep 1;

//DE-BRIEFING
  sideMissionUp = false; publicVariable "sideMissionUp";
  [] call QS_fnc_SMhintSUCCESS;
  "sideMarker" setMarkerPos [-10000,-10000,-10000]; publicVariable "sideMarker";

//DELETE, DESPAWN, HIDE and RESET
  SM_SUCCESS = false; publicVariable "SM_SUCCESS" //Reset var for next cycle
  sleep 120;                                      //To hide despawns from players. default 120, 1 for testing
  [[currentSM]] call EOS_deactivate;              //Despawn enemies and civs
{'fraction_non_alphanumeric': 0.15319662243667068, 'fraction_numerical': 0.03844993968636912, 'mean_word_length': 4.161867704280156, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '530444', 'n_tokens_mistral': 2574, 'n_tokens_neox': 2432, 'n_words': 605}