Increase the tolerance to 2m

This commit is contained in:
esteldunedain 2015-04-14 23:12:48 -03:00
parent 7a606a2352
commit 53ce7d0be4
2 changed files with 5 additions and 3 deletions

View File

@ -29,9 +29,9 @@ _fnc_renderNearbyActions = {
{ {
_target = _x; _target = _x;
// Quick oclussion test. Exit for object more than 1 m behind the camera plane // Quick oclussion test. Exit for object more than 2 m behind the camera plane
_lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir; _lambda = ((getPosASL _x) vectorDiff _cameraPos) vectorDotProduct _cameraDir;
if (_lambda < -1) exitWith {}; if (_lambda < -2) exitWith {};
_numInteractions = 0; _numInteractions = 0;
// Prevent interacting with yourself or your own vehicle // Prevent interacting with yourself or your own vehicle

View File

@ -9,4 +9,6 @@
#define DEBUG_SETTINGS DEBUG_SETTINGS_INTERACT_MENU #define DEBUG_SETTINGS DEBUG_SETTINGS_INTERACT_MENU
#endif #endif
#include "\z\ace\addons\main\script_macros.hpp" #include "\z\ace\addons\main\script_macros.hpp"
#define ENABLE_PERFORMANCE_COUNTERS