Skip to content

Commit

Permalink
Merge pull request #3151 from jaj22/remove-artySupport-forcedspawn
Browse files Browse the repository at this point in the history
Disable forced marker spawn in artySupport
  • Loading branch information
Bob-Murphy authored Feb 18, 2024
2 parents bdfd7ed + 08ea558 commit 6517087
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions A3A/addons/core/functions/AI/fn_artySupport.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ else
_roundsMax = _rounds;
};

_markerX = [markersX,_positionTel] call BIS_fnc_nearestPosition;
/*_markerX = [markersX,_positionTel] call BIS_fnc_nearestPosition;
_size = [_markerX] call A3A_fnc_sizeMarker;
_forcedX = false;
Expand All @@ -194,6 +194,7 @@ if ((not(_markerX in forcedSpawn)) and (_positionTel distance (getMarkerPos _mar
forcedSpawn pushBack _markerX;
publicVariable "forcedSpawn";
};
*/

_roundPlural = if (round _rounds == 1) then {localize "STR_A3A_fn_ai_artySupport_singleRound"} else {localize "STR_A3A_fn_ai_artySupport_multiRound"};
_textX = format [localize "STR_A3A_fn_ai_artySupport_fireMission", mapGridPosition _positionTel, round _rounds, _roundPlural];
Expand Down Expand Up @@ -290,7 +291,7 @@ sleep 10;
deleteMarkerLocal _mrkFinal;
if (_typeArty == "BARRAGE") then {deleteMarkerLocal _mrkFinal2};

if (_forcedX) then
/*if (_forcedX) then
{
sleep 20;
if (_markerX in forcedSpawn) then
Expand All @@ -299,3 +300,4 @@ if (_forcedX) then
publicVariable "forcedSpawn";
};
};
*/

0 comments on commit 6517087

Please sign in to comment.