mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
e8eedfa538
* NEW CONFIG VALUES: ```DMS_MarkerPosRandomization```, ```DMS_MarkerPosRandomRadius```, and ```DMS_RandomMarkerBrush``` * With the above configs, you can randomize the marker positions in a random position around the actual mission center. * You can also "force" DMS_fnc_CreateMarker to randomize (or not randomize) the marker position with optional boolean parameter of index 3. * Changed the default (non-randomized) circle marker "brush". It should be a solid circle. * Created new functions ```DMS_fnc_SelectOffsetPos``` and ```DMS_fnc_SelectRandomVal``` * Adjusted a couple functions to use them. * Fixed ```DMS_fnc_IsNearWater```.
30 lines
769 B
Plaintext
30 lines
769 B
Plaintext
/*
|
|
DMS: mission_init.sqf
|
|
Created by eraser1
|
|
|
|
Initializes variables for DMS
|
|
*/
|
|
|
|
diag_log "DMS :: Initializing Mission Variables";
|
|
|
|
// Initialize Variables
|
|
DMS_Mission_Arr = [];
|
|
DMS_CleanUpList = [];
|
|
DMS_MissionCount = 0;
|
|
DMS_RunningBMissionCount = 0;
|
|
DMS_BMissionLastStart = diag_tickTime;
|
|
DMS_BMissionDelay = DMS_TimeBetweenMissions call DMS_fnc_SelectRandomVal;
|
|
|
|
|
|
if (DMS_DEBUG) then
|
|
{
|
|
diag_log format ["DMS_DEBUG mission_init :: Random time between missions is initially set to %1s | DMS_BMissionLastStart: %2",DMS_BMissionDelay,DMS_BMissionLastStart];
|
|
};
|
|
|
|
// Set mission frequencies from config
|
|
DMS_MissionTypesArray = [];
|
|
{
|
|
for "_i" from 1 to (_x select 1) do {
|
|
DMS_MissionTypesArray pushBack (_x select 0);
|
|
};
|
|
} forEach DMS_MissionTypes; |