Merge pull request #2892 from acemod/TheHidden

Remove nametags and actions on hidden units
This commit is contained in:
Thomas Kooi 2015-11-29 12:38:27 +01:00
commit 081106d6a3
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ _fnc_renderNearbyActions = {
// Quick oclussion test. Skip objects more than 1 m behind the camera plane
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
if (_lambda > -1) then {
if ((_lambda > -1) && {!isObjectHidden _target}) then {
_numInteractions = 0;
// Prevent interacting with yourself or your own vehicle
if (_target != ACE_player && {_target != vehicle ACE_player}) then {

View File

@ -22,7 +22,7 @@
params ["_player", "_target", "_alpha", "_heightOffset", "_iconType"];
if (_iconType == ICON_NONE) exitWith {}; //Don't waste time if not visable
if ((_iconType == ICON_NONE) || {isObjectHidden _target}) exitWith {}; //Don't waste time if not visable
private ["_position", "_color", "_name", "_size", "_icon", "_scale"];