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,18 +49,25 @@ if (DMS_ai_allowFreezing) then
private _leader = leader _x;
private _group = _x;
if (!(isPlayer _leader) && {!([_leader,DMS_ai_freezingDistance] call DMS_fnc_IsPlayerNearby)}) then
{
[_group,true] call DMS_fnc_FreezeToggle;
if !(isPlayer _leader) then
{
// Ignore Exile flyovers.
if (((side _group) isEqualTo independent) && {(count (units _group)) isEqualTo 1}) exitWith {};
if (DMS_DEBUG) then
if !([_leader,DMS_ai_freezingDistance] call DMS_fnc_IsPlayerNearby) then
{
format["FreezeManager :: Froze AI Group: %1",_group] call DMS_fnc_DebugLog;
};
[_group,true] call DMS_fnc_FreezeToggle;
// So that we don't check this group for freezing later on.
_group setVariable ["DMS_AllowFreezing",false];
};
if (DMS_DEBUG) then
{
format["FreezeManager :: Froze AI Group: %1",_group] call DMS_fnc_DebugLog;
};
// So that we don't check this group for freezing later on.
_group setVariable ["DMS_AllowFreezing",false];
};
};
};
} forEach allGroups;
};