mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Fix Special Mission spawning and fix AI distance check
This commit is contained in:
@ -84,8 +84,8 @@ if (diag_fps >= DMS_MinServerFPS && {_playerCount >= DMS_MinPlayerCount}) then
|
||||
|
||||
if
|
||||
(
|
||||
(_playerCount > _minPlayers) &&
|
||||
{_playerCount < _maxPlayers} &&
|
||||
(_playerCount >= _minPlayers) &&
|
||||
{_playerCount <= _maxPlayers} &&
|
||||
{_maxTimesPerRestart > _timesSpawned} &&
|
||||
{(_time - (missionNamespace getVariable format["DMS_SpecialMissionLastSpawn_%1",_mission])) > _timeBetween}
|
||||
) then
|
||||
|
@ -33,7 +33,10 @@ try
|
||||
}
|
||||
else
|
||||
{
|
||||
_x setVariable ["DMS_LastAIDistanceCheck",time];
|
||||
if ((time - _lastDistanceCheckTime)>=DMS_AIDistanceCheckFrequency) then
|
||||
{
|
||||
_x setVariable ["DMS_LastAIDistanceCheck",time];
|
||||
};
|
||||
throw _x;
|
||||
};
|
||||
} forEach (_this call DMS_fnc_GetAllUnits); // DMS_fnc_GetAllUnits will return living AI unit objects only, so we only need to check for runaway units
|
||||
|
Reference in New Issue
Block a user