Merge branch 'Development' into Experimental
This commit is contained in:
commit
3e06a0d2fd
@ -11,7 +11,7 @@
|
||||
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||
|
||||
private["_timer1sec","_timer5sec","_timer10Sec","_timer20sec","_timer5min","_timer5min"];
|
||||
_timer1sec = diag_tickTime;
|
||||
_timer2sec = diag_tickTime;
|
||||
_timer5sec = diag_tickTime;
|
||||
_timer10Sec = diag_tickTime;
|
||||
_timer20sec = diag_tickTime;
|
||||
@ -21,17 +21,22 @@ _timer5min = diag_tickTime;
|
||||
while {true} do
|
||||
{
|
||||
uiSleep 1;
|
||||
if (diag_tickTime > _timer1sec) then
|
||||
|
||||
if (diag_tickTime > _timer2sec) then
|
||||
{
|
||||
[] spawn blck_fnc_monitorInitializedMissions;
|
||||
//if !(blck_initializationInProgress) then
|
||||
|
||||
[] spawn blck_fnc_monitorInitializedMissions;
|
||||
|
||||
if (blck_showCountAliveAI) then
|
||||
{
|
||||
{
|
||||
_x call blck_fnc_updateMarkerAliveCount;
|
||||
} forEach blck_missionLabelMarkers;
|
||||
};
|
||||
_timer1sec = diag_tickTime + 1;
|
||||
_timer2sec = diag_tickTime + 2;
|
||||
};
|
||||
|
||||
if (diag_tickTime > _timer5sec) then
|
||||
{
|
||||
_timer5sec = diag_tickTime + 5;
|
||||
@ -47,6 +52,7 @@ while {true} do
|
||||
[] call blck_fnc_spawnPendingMissions;
|
||||
_timer10Sec = diag_tickTime;
|
||||
};
|
||||
|
||||
if (diag_tickTime > _timer20sec) then
|
||||
{
|
||||
[] call blck_fnc_scanForPlayersNearVehicles;
|
||||
@ -54,6 +60,7 @@ while {true} do
|
||||
[] call GMS_fnc_updateCrateSignals;
|
||||
_timer20sec = diag_tickTime + 20;
|
||||
};
|
||||
|
||||
if ((diag_tickTime > _timer1min)) then
|
||||
{
|
||||
_timer1min = diag_tickTime + 60;
|
||||
@ -82,6 +89,7 @@ while {true} do
|
||||
_activeScripts select 1
|
||||
]
|
||||
] call blck_fnc_log;
|
||||
|
||||
[] call blck_fnc_cleanEmptyGroups;
|
||||
_timer5min = diag_tickTime + 300;
|
||||
};
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||
|
||||
private ["_coords","_coordArray","_return"];
|
||||
params["_missionCategoryDescriptors","_missionParameters"];
|
||||
params["_missionCategoryDescriptors","_missionParameters","_missionCount"];
|
||||
_missionCategoryDescriptors params [
|
||||
"_difficulty",
|
||||
"_noMissions", // Max no missions of this category
|
||||
@ -162,7 +162,7 @@ if !(isClass(configFile >> "CfgMarkerColors" >> _markerColor)) then
|
||||
_missionParameters set [1,_markerMissionName];
|
||||
};
|
||||
|
||||
private _markers = [_markerName,_markerPos,_markerMissionName,_markerColor,_markerType,_markerSize,_markerBrush] call blck_fnc_createMissionMarkers;
|
||||
private _markers = [format["%1:%2",_markerName,_missionCount],_markerPos,_markerMissionName,_markerColor,_markerType,_markerSize,_markerBrush] call blck_fnc_createMissionMarkers;
|
||||
|
||||
/*
|
||||
Send a message to players.
|
||||
|
@ -17,10 +17,10 @@ if (blck_missionsRunning >= blck_maxSpawnedMissions) exitWith {};
|
||||
|
||||
if (_noActiveMissions < _maxNoMissions && diag_tickTime > _waitTime && blck_missionsRunning < blck_maxSpawnedMissions) then
|
||||
{
|
||||
|
||||
blck_dynamicMissionsSpawned = blck_dynamicMissionsSpawned + 1;
|
||||
// time to reset timers and spawn something.
|
||||
private _wt = diag_tickTime + _tmin + (random(_tMax - _tMin));
|
||||
private _missionInitialized = [_x,selectRandom _missionsData] call blck_fnc_initializeMission;
|
||||
private _missionInitialized = [_x,selectRandom _missionsData,blck_dynamicMissionsSpawned] call blck_fnc_initializeMission;
|
||||
if (blck_debugLevel >= 3) then
|
||||
{
|
||||
if !(_missionInitialized) then
|
||||
|
@ -63,7 +63,13 @@ if (_scuba) then
|
||||
_skin = "";
|
||||
_counter = 1;
|
||||
|
||||
_unit forceAddUniform (selectRandom _uniforms);
|
||||
if (surfaceIsWater (getPos _unit)) then
|
||||
{
|
||||
_uniforms = blck_UMS_uniforms;
|
||||
_headGear = blck_UMS_headgear;
|
||||
_weaponList = blck_UMS_weapons;
|
||||
_vests = blck_UMS_vests;
|
||||
};
|
||||
|
||||
//Sets AI Tactics
|
||||
_unit enableAI "ALL";
|
||||
|
@ -46,7 +46,7 @@ blck_temporaryMarkers = [];
|
||||
blck_illuminatedCrates = []; // [crate,duration,freq of replacement]
|
||||
blck_mainThreadUpdateInterval = 60;
|
||||
blck_revealMode = "detailed"; //""basic" /*group or vehicle level reveals*/,detailed /*unit by unit reveals*/";
|
||||
|
||||
blck_dynamicMissionsSpawned = 0;
|
||||
blck_spawnerMode = 1;
|
||||
blck_missionData = [];
|
||||
blck_activeMissionsList = [];
|
||||
|
Loading…
Reference in New Issue
Block a user