mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
44955afb0c
* NEW CONFIG VALUE: "DMS_ai_offload_Only_DMS_AI" * You can use "DMS_ai_offload_Only_DMS_AI" to offload only AI spawned by DMS. This should resolve any issues with other mission systems from DMS. * Increased "DMS_playerNearRadius" from 75 meters to 100 meters. * You can now define "absolute" mission conditions. If this mission condition is met, it immediately counts the mission as completed. Add "true" after the completion argument to turn it into an "absolute" win condition. * Added compatibility with RS_VLS by [Rod Serling](https://github.com/Rod-Serling).
31 lines
770 B
Plaintext
31 lines
770 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; |