More Fixes
turned off debug settings. Redid some code controlling the number of dynamic UMS spawned. Commented out the Static UMS to provide a new default.
This commit is contained in:
parent
5a50e5e02a
commit
51dcc80e7e
@ -55,13 +55,14 @@ while {true} do
|
||||
//diag_log format["_fnc_mainThread: 60 second events run at %1",diag_tickTime];
|
||||
_timer1min = diag_tickTime;
|
||||
[] call blck_fnc_spawnPendingMissions;
|
||||
//diag_log format["_fnc_spawnPendingMissions: blck_numberUnderwaterDynamicMissions = %1 |
|
||||
diag_log format["_fnc_mainThrea: blck_numberUnderwaterDynamicMissions = %1 | blck_dynamicUMS_MissionsRuning = %2",blck_numberUnderwaterDynamicMissions,blck_dynamicUMS_MissionsRuning];
|
||||
if (blck_dynamicUMS_MissionsRuning < blck_numberUnderwaterDynamicMissions) then
|
||||
{
|
||||
//diag_log "Adding dyanamic UMS Mission";
|
||||
private ["_spawnPos"];
|
||||
_spawnPos = call blck_fnc_findShoreLocation;
|
||||
[_spawnPos] spawn blck_fnc_addDyanamicUMS_Mission;
|
||||
//diag_log "Adding dynamic UMS Mission";
|
||||
//private ["_spawnPos"];
|
||||
//_spawnPos = call blck_fnc_findShoreLocation;
|
||||
//[_spawnPos] spawn blck_fnc_addDyanamicUMS_Mission;
|
||||
[] spawn blck_fnc_addDyanamicUMS_Mission;
|
||||
//_spawnPos call compileFinal preprocessFileLineNumbers format["q\addons\custom_server\Missions\UMS\dynamicMissiones\%1.sqf";
|
||||
};
|
||||
//diag_log format["_fnc_mainThread: control returned to _fnc_mainThread from _fnc_addDynamicUMS_Mission at %1",diag_tickTime];
|
||||
|
@ -12,8 +12,8 @@
|
||||
*/
|
||||
#include"\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||
|
||||
blck_debugON = true;
|
||||
blck_debugLevel = 2; // Sets level of detail for debugging info - WIP.
|
||||
blck_debugON = false;
|
||||
blck_debugLevel = 0; // Sets level of detail for debugging info - WIP.
|
||||
blck_minFPS = 8;
|
||||
|
||||
////////////////////////////////////////////////
|
||||
|
@ -69,7 +69,7 @@
|
||||
// When set to true,"dot", ext will be to the right of a black dot at the center the mission marker.
|
||||
blck_labelMapMarkers = [true,"center"];
|
||||
blck_preciseMapMarkers = true; // Map markers are/are not centered at the loot crate
|
||||
blck_showCountAliveAI = false;
|
||||
blck_showCountAliveAI = true;
|
||||
|
||||
//Minimum distance between missions
|
||||
blck_MinDistanceFromMission = 1500;
|
||||
@ -181,13 +181,14 @@
|
||||
////////////////////
|
||||
|
||||
// Maximum number of missions shown on the map at any one time.
|
||||
blck_maxSpawnedMissions = 9;
|
||||
blck_maxSpawnedMissions = 9; // This determins the total number of missions spawned of all types. set this to the total of missions to be spawned to be sure all are always spawned. set this to less than that total
|
||||
// to force spawning more limited missions like having only 2 on th emap at any one time.
|
||||
//Set to -1 to disable. Values of 2 or more force the mission spawner to spawn copies of that mission - this feature is not recommended because you may run out of available groups.
|
||||
blck_enableOrangeMissions = 1;
|
||||
blck_enableGreenMissions = 1;
|
||||
blck_enableRedMissions = 2;
|
||||
blck_enableBlueMissions = 2;
|
||||
blck_numberUnderwaterDynamicMissions = 0; // Values from 0 (no UMS) to N (N Underwater missions will be spawned; static UMS units and subs will be spawned.
|
||||
blck_enableRedMissions = 1;
|
||||
blck_enableBlueMissions = 1;
|
||||
blck_numberUnderwaterDynamicMissions = 1; // Values from 0 (no UMS) to N (N Underwater missions will be spawned; static UMS units and subs will be spawned.
|
||||
|
||||
////////////////////
|
||||
// MISSION TIMERS
|
||||
@ -256,7 +257,7 @@
|
||||
blck_chanceBackpack = 0.3; // Chance AI will be spawned with a backpack
|
||||
blck_useNVG = true; // When true, AI will be spawned with NVG if is dark
|
||||
blck_removeNVG = false; // When true, NVG will be removed from AI when they are killed.
|
||||
blck_useLaunchers = true; // When true, some AI will be spawned with RPGs; they do not however fire on vehicles for some reason so I recommend this be set to false for now
|
||||
blck_useLaunchers = false; // When true, some AI will be spawned with RPGs; they do not however fire on vehicles for some reason so I recommend this be set to false for now
|
||||
//blck_launcherTypes = ["launch_NLAW_F","launch_RPG32_F","launch_B_Titan_F","launch_I_Titan_F","launch_O_Titan_F","launch_B_Titan_short_F","launch_I_Titan_short_F","launch_O_Titan_short_F"];
|
||||
blck_launcherTypes = ["launch_RPG32_F"];
|
||||
blck_launchersPerGroup = 1; // Defines the number of AI per group spawned with a launcher
|
||||
|
@ -124,7 +124,7 @@ if (blck_debugON || (blck_debugLevel > 0)) then // These variables are found in
|
||||
blck_enableGreenMissions = 1;
|
||||
blck_enableRedMissions = -2;
|
||||
blck_enableBlueMissions = -2;
|
||||
blck_numberUnderwaterDynamicMissions = -3;
|
||||
blck_numberUnderwaterDynamicMissions = 3;
|
||||
blck_enableHunterMissions = -1;
|
||||
blck_enableScoutsMissions = -1;
|
||||
blck_maxCrashSites = 0;
|
||||
|
@ -10,17 +10,17 @@
|
||||
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
*/
|
||||
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||
params["_pos"];
|
||||
diag_log format["_fnc_addDynamicUMS_Mission: _pos = %1",_pos];
|
||||
private["_UMS_mission","_waitTime","_mission"];
|
||||
//params["_pos"];
|
||||
private["_UMS_mission","_waitTime","_mission","_pos"];
|
||||
_UMS_mission = selectRandom blck_dynamicUMS_MissionList;
|
||||
_waitTime = (blck_TMin_UMS) + random(blck_TMax_UMS - blck_TMin_UMS);
|
||||
_mission = format["%1%2","Mafia Pirates",floor(random(1000000))];
|
||||
//_pos = call blck_fnc_findShoreLocation;
|
||||
_pos = call blck_fnc_findShoreLocation;
|
||||
diag_log format["_fnc_addDynamicUMS_Mission: blck_dynamicUMS_MissionsRuning = %1 | blck_missionsRunning = %2 | blck_UMS_ActiveDynamicMissions = %3",blck_dynamicUMS_MissionsRuning,blck_missionsRunning,blck_UMS_ActiveDynamicMissions];
|
||||
blck_UMS_ActiveDynamicMissions pushBack _pos;
|
||||
blck_missionsRunning = blck_missionsRunning + 1;
|
||||
blck_dynamicUMS_MissionsRuning = blck_dynamicUMS_MissionsRuning + 1;
|
||||
//diag_log format["[blckeagls] UMS Spawner:-> waiting for %1",_waitTime];
|
||||
uiSleep _waitTime;
|
||||
//diag_log format["[blckeagls] UMS Spawner:-> spawning mission %1",_UMS_mission];
|
||||
[_pos,_mission] spawn compileFinal preprocessFileLineNumbers format["q\addons\custom_server\Missions\UMS\dynamicMissions\%1",_UMS_mission];
|
||||
[_pos,_mission] call compileFinal preprocessFileLineNumbers format["q\addons\custom_server\Missions\UMS\dynamicMissions\%1",_UMS_mission];
|
Loading…
Reference in New Issue
Block a user