Skip to content

Commit

Permalink
Merge pull request #1618 from Vdauphin/FIX-bomber_follow_enemies
Browse files Browse the repository at this point in the history
FIX: Bombers follow enemies
  • Loading branch information
Vdauphin authored May 26, 2024
2 parents c34896a + 00073e0 commit f789e88
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Author:
private _group = group _driver_drone;
if (alive _driver_drone && !isNull _driver_drone) then {
private _array = _driver_drone nearEntities [btc_player_type, 200];
_array = _array select {side group _x isEqualTo btc_player_side};
if (_array isEqualTo []) then {
if (waypoints _group isEqualTo []) then {
[_group, _rpos, _area, 4] call CBA_fnc_taskPatrol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ Author:
params ["_suicider"];

if (alive _suicider && !isNull _suicider) then {
if ((_suicider nearEntities [btc_player_type, 25]) isNotEqualTo []) exitWith {
private _array = _suicider nearEntities [btc_player_type, 25];
_array = _array select {side group _x isEqualTo btc_player_side};
if (_array isNotEqualTo []) exitWith {
_suicider call btc_ied_fnc_suicider_active;
};
_this call btc_ied_fnc_suiciderLoop;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ _trigger setVariable ["suicider", _suicider];
_trigger attachTo [_suicider, [0, 0, 0]];

private _array = getPos _suicider nearEntities [btc_player_type, 30];
_array = _array select {side group _x isEqualTo btc_player_side};

if (_array isEqualTo []) exitWith {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Author:

if (alive _suicider) then {
private _array = _suicider nearEntities [btc_player_type, 30];
_array = _array select {side group _x isEqualTo btc_player_side};
if (_array isNotEqualTo []) then {
_suicider doMove (position (_array select 0));
};
Expand Down

0 comments on commit f789e88

Please sign in to comment.