mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Increase the minimum distance required to perform LOS checks to 1.5m; should avoid LOS checks for medical bodyparts entirely, thus avoiding problems with weaponholders obstructing actions.
This commit is contained in:
parent
b8d8aeae5c
commit
d07b69aca4
@ -44,8 +44,8 @@ if (GVAR(openedMenuType) == 0 && vehicle ACE_player == ACE_player &&
|
|||||||
|
|
||||||
if (_actualDistance > _distance) exitWith {true};
|
if (_actualDistance > _distance) exitWith {true};
|
||||||
|
|
||||||
if (_actualDistance > 1.0) exitWith {
|
if (_actualDistance > 1.5) exitWith {
|
||||||
// If distance to action is greater than 1.0 m, check LOS
|
// If distance to action is greater than 1.5 m, check LOS
|
||||||
_line = [_headPos call EFUNC(common,positionToASL), _pos call EFUNC(common,positionToASL), _object, ACE_player];
|
_line = [_headPos call EFUNC(common,positionToASL), _pos call EFUNC(common,positionToASL), _object, ACE_player];
|
||||||
lineIntersects _line
|
lineIntersects _line
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user