mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix the fov test. Issue not fixed
This commit is contained in:
parent
53ce7d0be4
commit
c397246534
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user