Code cleanup of Finger module is Incomming(Part 2).

This commit is contained in:
jokoho48 2015-08-13 22:04:35 +02:00
parent f3fbf0c5ff
commit acb4e44c19

View File

@ -38,7 +38,7 @@ _sendFingerToPlayers = [];
_nearbyMen = (ACE_player nearObjects ["CAManBase", (GVAR(maxRange) + 2)]);
{
_nearbyMen append (crew _x);
} forEach (ACE_player nearObjects ["StaticWeapon", (GVAR(maxRange) + 2)]);
} count (ACE_player nearObjects ["StaticWeapon", (GVAR(maxRange) + 2)]);
{
if ((((eyePos _x) vectorDistance _playerEyePos) < GVAR(maxRange)) &&
@ -50,6 +50,7 @@ _nearbyMen = (ACE_player nearObjects ["CAManBase", (GVAR(maxRange) + 2)]);
_sendFingerToPlayers pushBack _x;
};
true
} count _nearbyMen;
TRACE_1("sending finger to",_sendFingerToPlayers);