Only test the GEOM LOD for visibility

This commit is contained in:
esteldunedain 2016-02-09 00:01:51 -03:00
parent d4eda6d4ec
commit 0f41c5bf13

View File

@ -113,7 +113,7 @@ if (_enabledTagsNearby) then {
_x != ACE_player &&
{(side group _x) == (side group ACE_player)} &&
{GVAR(showNamesForAI) || {[_x] call EFUNC(common,isPlayer)}} &&
{lineIntersectsSurfaces [_camPosASL, eyePos _x, ACE_player, vehicle _x] isEqualTo []} &&
{lineIntersectsSurfaces [_camPosASL, eyePos _x, ACE_player, _x, true, 1, "GEOM", "NONE"] isEqualTo []} &&
{!isObjectHidden _x}
}
}, missionNamespace, QGVAR(nearMen), 0.5] call EFUNC(common,cachedCall);