mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2892 from acemod/TheHidden
Remove nametags and actions on hidden units
This commit is contained in:
commit
081106d6a3
@ -34,7 +34,7 @@ _fnc_renderNearbyActions = {
|
|||||||
|
|
||||||
// Quick oclussion test. Skip objects more than 1 m behind the camera plane
|
// Quick oclussion test. Skip objects more than 1 m behind the camera plane
|
||||||
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
|
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
|
||||||
if (_lambda > -1) then {
|
if ((_lambda > -1) && {!isObjectHidden _target}) then {
|
||||||
_numInteractions = 0;
|
_numInteractions = 0;
|
||||||
// Prevent interacting with yourself or your own vehicle
|
// Prevent interacting with yourself or your own vehicle
|
||||||
if (_target != ACE_player && {_target != vehicle ACE_player}) then {
|
if (_target != ACE_player && {_target != vehicle ACE_player}) then {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
params ["_player", "_target", "_alpha", "_heightOffset", "_iconType"];
|
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"];
|
private ["_position", "_color", "_name", "_size", "_icon", "_scale"];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user