mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Fix static mission spawn limit
can't believe I didn't notice this for so long
This commit is contained in:
parent
55df8bb3f8
commit
254e03a009
@ -4,7 +4,7 @@ class CfgPatches
|
|||||||
{
|
{
|
||||||
units[] = {};
|
units[] = {};
|
||||||
weapons[] = {};
|
weapons[] = {};
|
||||||
a3_DMS_version = "September 2, 2017";
|
a3_DMS_version = "September 7, 2017";
|
||||||
requiredVersion = 1.68;
|
requiredVersion = 1.68;
|
||||||
requiredAddons[] = {"exile_client","exile_server_config"};
|
requiredAddons[] = {"exile_client","exile_server_config"};
|
||||||
};
|
};
|
||||||
|
@ -43,7 +43,7 @@ try
|
|||||||
|
|
||||||
private _return = _parameters call _mission;
|
private _return = _parameters call _mission;
|
||||||
|
|
||||||
if ((!isNil "_return") && {_return isEqualTo "delay"}) exitWith
|
if ((!isNil "_return") && {_return isEqualTo "delay"}) then
|
||||||
{
|
{
|
||||||
DMS_MissionCount = DMS_MissionCount - 1;
|
DMS_MissionCount = DMS_MissionCount - 1;
|
||||||
|
|
||||||
@ -60,15 +60,17 @@ try
|
|||||||
{
|
{
|
||||||
(format ["SpawnStaticMission :: Mission ""%1"" requested delay",_missionType]) call DMS_fnc_DebugLog;
|
(format ["SpawnStaticMission :: Mission ""%1"" requested delay",_missionType]) call DMS_fnc_DebugLog;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
else
|
||||||
DMS_StaticMissionDelay = DMS_TimeBetweenStaticMissions call DMS_fnc_SelectRandomVal;
|
|
||||||
DMS_StaticMissionLastStart = diag_tickTime;
|
|
||||||
DMS_RunningStaticMissions pushBack _missionType;
|
|
||||||
|
|
||||||
if (DMS_DEBUG) then
|
|
||||||
{
|
{
|
||||||
(format ["SpawnStaticMission :: Spawned mission %1 with parameters (%2) | DMS_StaticMissionDelay set to %3 seconds", _missionType, _parameters, DMS_StaticMissionDelay]) call DMS_fnc_DebugLog;
|
DMS_StaticMissionDelay = DMS_TimeBetweenStaticMissions call DMS_fnc_SelectRandomVal;
|
||||||
|
DMS_StaticMissionLastStart = diag_tickTime;
|
||||||
|
DMS_RunningStaticMissions pushBack _missionType;
|
||||||
|
|
||||||
|
if (DMS_DEBUG) then
|
||||||
|
{
|
||||||
|
(format ["SpawnStaticMission :: Spawned mission %1 with parameters (%2) | DMS_StaticMissionDelay set to %3 seconds", _missionType, _parameters, DMS_StaticMissionDelay]) call DMS_fnc_DebugLog;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
![ArmA 1.68](https://img.shields.io/badge/Arma-1.68-blue.svg) ![Exile 1.0.3 "Lemon"](https://img.shields.io/badge/Exile-1.0.3%20Lemon-C72651.svg) ![DMS Version](https://img.shields.io/badge/DMS%20Version-2017--09--02-blue.svg)
|
![ArmA 1.68](https://img.shields.io/badge/Arma-1.68-blue.svg) ![Exile 1.0.3 "Lemon"](https://img.shields.io/badge/Exile-1.0.3%20Lemon-C72651.svg) ![DMS Version](https://img.shields.io/badge/DMS%20Version-2017--09--07-blue.svg)
|
||||||
|
|
||||||
|
|
||||||
# To the User:
|
# To the User:
|
||||||
|
Loading…
Reference in New Issue
Block a user