From 0f41c5bf135adac021affcbb55711d58ffce433a Mon Sep 17 00:00:00 2001 From: esteldunedain Date: Tue, 9 Feb 2016 00:01:51 -0300 Subject: [PATCH] Only test the GEOM LOD for visibility --- addons/nametags/functions/fnc_onDraw3d.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/nametags/functions/fnc_onDraw3d.sqf b/addons/nametags/functions/fnc_onDraw3d.sqf index cf3484a885..bcbf44c36b 100644 --- a/addons/nametags/functions/fnc_onDraw3d.sqf +++ b/addons/nametags/functions/fnc_onDraw3d.sqf @@ -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);