2017-08-04 11:21:03 +00:00
|
|
|
/*
|
|
|
|
AI Mission for Epoch Mod for Arma 3
|
|
|
|
For the Mission System originally coded by blckeagls
|
|
|
|
By Ghostrider
|
|
|
|
Functions and global variables used by the mission system.
|
|
|
|
--------------------------
|
|
|
|
License
|
|
|
|
--------------------------
|
|
|
|
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
|
|
|
|
|
|
|
|
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
|
|
*/
|
|
|
|
#include"\q\addons\custom_server\Configs\blck_defines.hpp";
|
|
|
|
|
2020-01-29 23:32:43 +00:00
|
|
|
if (blck_debugOn) then {diag_log "[blckeagls] loading variables"};
|
2018-10-21 11:56:34 +00:00
|
|
|
|
2017-10-19 02:31:53 +00:00
|
|
|
blck_minFPS = 8;
|
2017-08-04 11:21:03 +00:00
|
|
|
|
2018-11-18 19:29:07 +00:00
|
|
|
// radius within whih missions are triggered. The trigger causes the crate and AI to spawn.
|
|
|
|
#ifdef blck_milServer
|
|
|
|
blck_TriggerDistance = 1500;
|
|
|
|
#else
|
|
|
|
blck_TriggerDistance = 1500;
|
|
|
|
#endif
|
|
|
|
|
2017-08-04 11:21:03 +00:00
|
|
|
////////////////////////////////////////////////
|
|
|
|
// Do Not Touch Anything Below This Line
|
|
|
|
///////////////////////////////////////////////
|
2020-10-04 16:30:49 +00:00
|
|
|
|
2017-08-04 11:21:03 +00:00
|
|
|
blck_townLocations = []; //nearestLocations [blck_mapCenter, ["NameCity","NameCityCapital"], 30000];
|
|
|
|
blck_ActiveMissionCoords = [];
|
|
|
|
blck_recentMissionCoords = [];
|
|
|
|
blck_monitoredVehicles = [];
|
|
|
|
blck_livemissionai = [];
|
|
|
|
blck_monitoredMissionAIGroups = []; // Used to track groups in active missions for whatever purpose
|
|
|
|
blck_oldMissionObjects = [];
|
2020-09-12 13:41:37 +00:00
|
|
|
blck_hiddenTerrainObjects = [];
|
2017-08-04 11:21:03 +00:00
|
|
|
blck_pendingMissions = [];
|
|
|
|
blck_missionsRunning = 0;
|
2018-04-28 12:10:19 +00:00
|
|
|
blck_missionsRun = 0;
|
2017-08-04 11:21:03 +00:00
|
|
|
blck_activeMissions = [];
|
2017-10-19 02:31:53 +00:00
|
|
|
blck_connectedHCs = [];
|
2020-05-09 15:59:39 +00:00
|
|
|
blck_missionMarkerRootName = "blckeagls_marker";
|
2020-05-11 02:46:43 +00:00
|
|
|
DMS_missionMarkerRootName = "DMS_MissionMarker";
|
2020-05-27 13:04:49 +00:00
|
|
|
blck_missionLabelMarkers = [];
|
2019-05-18 18:05:16 +00:00
|
|
|
blck_temporaryMarkers = [];
|
|
|
|
blck_illuminatedCrates = []; // [crate,duration,freq of replacement]
|
2017-08-04 11:21:03 +00:00
|
|
|
blck_mainThreadUpdateInterval = 60;
|
2018-10-21 11:56:34 +00:00
|
|
|
blck_revealMode = "detailed"; //""basic" /*group or vehicle level reveals*/,detailed /*unit by unit reveals*/";
|
2020-09-30 03:29:35 +00:00
|
|
|
blck_dynamicMissionsSpawned = 0;
|
2020-01-29 23:32:43 +00:00
|
|
|
blck_spawnerMode = 1;
|
|
|
|
blck_missionData = [];
|
|
|
|
blck_activeMissionsList = [];
|
|
|
|
blck_initializedMissionsList = [];
|
|
|
|
blck_blackListedLocations = []; // [ [marker, time]]
|
2020-10-01 12:03:23 +00:00
|
|
|
blck_activeMonitorThreads = 0;
|
2020-08-29 18:34:02 +00:00
|
|
|
blck_validEndStates = ["allUnitsKilled", "playerNear", "allKilledOrPlayerNear","assetSecured"];
|
|
|
|
blck_validLootSpawnTimings = ["atMissionSpawnGround","atMissionSpawnAir","atMissionEndGround","atMissionEndAir"];
|
|
|
|
blck_validLootLoadTimings = ["atMissionCompletion", "atMissionSpawn"];
|
|
|
|
|
2020-01-29 23:32:43 +00:00
|
|
|
if (blck_debugOn) then {diag_log "[blckeagls] Variables Loaded"};
|
2018-11-19 20:33:20 +00:00
|
|
|
|