mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Slightly reduce the distance for which the LOS check is skipped. Fix #3270
This commit is contained in:
@ -41,8 +41,8 @@ if ((GVAR(openedMenuType) == 0) && {vehicle ACE_player == ACE_player} && {isNull
|
|||||||
|
|
||||||
if (_distanceToBasePoint > _distance) exitWith {true};
|
if (_distanceToBasePoint > _distance) exitWith {true};
|
||||||
|
|
||||||
if ((_distanceToBasePoint > 1.5) && {!(_params select 4)}) exitWith {
|
if ((_distanceToBasePoint > 1.2) && {!(_params select 4)}) exitWith {
|
||||||
// If distance to action is greater than 1.5 m and check isn't disabled in params, check LOS
|
// If distance to action is greater than 1.2 m and check isn't disabled in params, check LOS
|
||||||
lineIntersects [AGLtoASL _headPos, AGLtoASL _pos, _object, ACE_player]
|
lineIntersects [AGLtoASL _headPos, AGLtoASL _pos, _object, ACE_player]
|
||||||
};
|
};
|
||||||
false
|
false
|
||||||
|
Reference in New Issue
Block a user