Fix the fov test. Issue not fixed

This commit is contained in:
esteldunedain 2015-04-14 23:22:08 -03:00
parent 53ce7d0be4
commit c397246534

View File

@ -29,10 +29,9 @@ _fnc_renderNearbyActions = {
{
_target = _x;
// Quick oclussion test. Exit for object more than 2 m behind the camera plane
// Quick oclussion test. Exit for object more than 1 m behind the camera plane
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
if (_lambda < -2) exitWith {};
if (_lambda > -1) then {
_numInteractions = 0;
// Prevent interacting with yourself or your own vehicle
if (_target != ACE_player && {_target != vehicle ACE_player}) then {
@ -67,6 +66,7 @@ _fnc_renderNearbyActions = {
};
};
if (_numInteractObjects >= MAXINTERACTOBJECTS) exitWith {};
};
} forEach _nearestObjects;
};