Skip to content

Commit 600fab1

Browse files
committed
v1.1.1
1 parent 1a2a1e6 commit 600fab1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

@AIO_SPPack/addons/AIO_AIMENU.pbo

212 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
private ["_allUnits", "_units"];
22
_allUnits = nearestObjects [player, ["Man"], 100];
3-
_units = _allUnits select {!(_x isKindOf "Animal") && {(vehicle _x == _x) && !(_x in (units group player))}};
3+
_units = _allUnits select {!(_x isKindOf "Animal") && {(vehicle _x == _x) && !(_x in (units group player)) && ([side group _x, side group player] call BIS_fnc_sideIsFriendly)}};
44
_units = _units apply {[_x, group _x]};
55
_units
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
params ["_unit"];
22
private _cond = (_unit isKindOf "Land" || _unit isKindOf "Air" || _unit isKindOf "Ship");
3-
if (_cond && !(_unit in (units group player)) && !(_unit isKindOf "Animal") && (_unit distance player < 35)) then {
3+
if (_cond && !(_unit in (units group player)) && !(_unit isKindOf "Animal") && (_unit distance player < 35) && ([side group _unit, side group player] call BIS_fnc_sideIsFriendly)) then {
44
private _units = crew (vehicle _unit);
55
{
6-
AIO_recruitedUnits pushback [_x, group _x];
6+
AIO_recruitedUnits pushback [_x, group _x];
77
} forEach _units;
88
_units join group player;
99
};
10-
player doFollow player;
10+
if (player == leader player) then {player doFollow player};

@AIO_SPPack/addons/AIO_AIMENU/functions/highCommand/fn_recruitAlt.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ if (_cond && !(_unit in (units group player)) && !(_unit isKindOf "Animal")) the
55
AIO_recruitedUnits pushback [[_unit, group _unit]];
66
[_unit] join group player;
77
};
8-
player doFollow player;
8+
if (player == leader player) then {player doFollow player};

@AIO_SPPack/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.0-Beta
1+
v1.1.1-Beta

0 commit comments

Comments
 (0)