whoops, forgot to sync these 2 changes...

This commit is contained in:
eraser1 2016-07-26 21:19:04 -05:00
parent 9060d8644c
commit 963274813b
2 changed files with 17 additions and 10 deletions

View File

@ -4,7 +4,7 @@ class CfgPatches
{
units[] = {};
weapons[] = {};
a3_DMS_version = "July 18, 2016 v2";
a3_DMS_version = "July 26, 2016";
requiredVersion = 1.36;
requiredAddons[] = {"exile_client","exile_server_config"};
};

View File

@ -49,7 +49,13 @@ if (DMS_ai_allowFreezing) then
private _leader = leader _x;
private _group = _x;
if (!(isPlayer _leader) && {!([_leader,DMS_ai_freezingDistance] call DMS_fnc_IsPlayerNearby)}) then
if !(isPlayer _leader) then
{
// Ignore Exile flyovers.
if (((side _group) isEqualTo independent) && {(count (units _group)) isEqualTo 1}) exitWith {};
if !([_leader,DMS_ai_freezingDistance] call DMS_fnc_IsPlayerNearby) then
{
[_group,true] call DMS_fnc_FreezeToggle;
@ -62,6 +68,7 @@ if (DMS_ai_allowFreezing) then
_group setVariable ["DMS_AllowFreezing",false];
};
};
};
} forEach allGroups;
};