DMS_Exile/@ExileServer/addons/a3_dms/missions/mission_init.sqf
eraser1 7a074042b1 Important restructuring, minor fix(es)
* CONFIG VALUES: Changed "DMS_MissionTypes" to "DMS_BanditMissionTypes"
* Renamed some variables to "future-proof" them
* Placed all current missions under "bandit" subfolder to for easier
future integration.
* Created function "DMS_fnc_SpawnBanditMission" to handle bandit mission
spawning (makes it easier to spawn missions via admin console).
* Attached vehicle eventhandlers to DMS-spawned non-persistent vehicles.
* Fixed the "lock" option appearing on DMS-spawned vehicles.
2015-09-20 23:42:33 -05:00

31 lines
788 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_BanditMissionTypesArray = [];
{
for "_i" from 1 to (_x select 1) do
{
DMS_BanditMissionTypesArray pushBack (_x select 0);
};
} forEach DMS_BanditMissionTypes;