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;
|
_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;
|
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
|
||||||
if (_lambda < -2) exitWith {};
|
if (_lambda > -1) 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 {
|
||||||
@ -67,6 +66,7 @@ _fnc_renderNearbyActions = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
if (_numInteractObjects >= MAXINTERACTOBJECTS) exitWith {};
|
if (_numInteractObjects >= MAXINTERACTOBJECTS) exitWith {};
|
||||||
|
};
|
||||||
|
|
||||||
} forEach _nearestObjects;
|
} forEach _nearestObjects;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user