Skip to content

Commit

Permalink
Merge pull request #1634 from bagigi-arma/feature/kjw-imposters-compat
Browse files Browse the repository at this point in the history
FIX: Suicide/Drone bomber compatibility with KJW_Imposters
  • Loading branch information
Vdauphin authored Aug 2, 2024
2 parents f17329b + c734dcd commit 7c3c5c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +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};
_array = _array select {side group _x isEqualTo btc_player_side && {!captive _x}};
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 @@ -25,7 +25,7 @@ Author:

if (alive _suicider && !isNull _suicider) then {
private _array = _suicider nearEntities [btc_player_type, 25];
_array = _array select {side group _x isEqualTo btc_player_side};
_array = _array select {side group _x isEqualTo btc_player_side && {!captive _x}};
if (_array isNotEqualTo []) exitWith {
_suicider call btc_ied_fnc_suicider_active;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +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};
_array = _array select {side group _x isEqualTo btc_player_side && {!captive _x}};

if (_array isEqualTo []) exitWith {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +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};
_array = _array select {side group _x isEqualTo btc_player_side && {!captive _x}};
if (_array isNotEqualTo []) then {
_suicider doMove (position (_array select 0));
};
Expand Down

0 comments on commit 7c3c5c9

Please sign in to comment.