From d4d68bd597f30e00ae81712fe7d8c9b2364fb456 Mon Sep 17 00:00:00 2001 From: "Anthony \"Zanven\" Poschen" Date: Sat, 19 Oct 2019 15:43:10 +1100 Subject: [PATCH 1/2] Attack Module Override enables AI pathing Issue: when a group is set to defend with a high percentage of "hold" and a trigger activates a sync'd attack module which wants all units on defend to attack a location the behaviour currently is that all units will have the new waypoint and all units with pathing disabled because of "holding" will stand still which presents a inflexible scenario without custom logic elements to enable good timing of releasing "waves" of units as a Zeus. Proposal: Enable the override parameter to re enable pathing so it can override any blocking previous command given to the unit such as the "defend module's hold". This should make that option act more as expected by overriding previous orders and allow more dynamic options for mission makers. --- addons/ai/fnc_taskAttack.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/ai/fnc_taskAttack.sqf b/addons/ai/fnc_taskAttack.sqf index c966eba0d..7b204e931 100644 --- a/addons/ai/fnc_taskAttack.sqf +++ b/addons/ai/fnc_taskAttack.sqf @@ -34,6 +34,7 @@ if !(local _group) exitWith {}; // Don't create waypoints on each machine // Allow TaskAttack to override other set waypoints if (_override) then { [_group] call CBA_fnc_clearWaypoints; + { _x enableAI "PATH"; } foreach (units _group); }; [_group, _position, _radius, "SAD", "COMBAT", "RED"] call CBA_fnc_addWaypoint; From 7e1d0fc6e1972e22c904a2b8f13f572c88410c1e Mon Sep 17 00:00:00 2001 From: "Anthony \"Zanven\" Poschen" Date: Sat, 19 Oct 2019 19:15:14 +1100 Subject: [PATCH 2/2] Update addons/ai/fnc_taskAttack.sqf Co-Authored-By: commy2 --- addons/ai/fnc_taskAttack.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/ai/fnc_taskAttack.sqf b/addons/ai/fnc_taskAttack.sqf index 7b204e931..14724bb94 100644 --- a/addons/ai/fnc_taskAttack.sqf +++ b/addons/ai/fnc_taskAttack.sqf @@ -34,7 +34,9 @@ if !(local _group) exitWith {}; // Don't create waypoints on each machine // Allow TaskAttack to override other set waypoints if (_override) then { [_group] call CBA_fnc_clearWaypoints; - { _x enableAI "PATH"; } foreach (units _group); + { + _x enableAI "PATH"; + } forEach units _group; }; [_group, _position, _radius, "SAD", "COMBAT", "RED"] call CBA_fnc_addWaypoint;