mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Allow Skipping LOS Check (Because of doors)
This commit is contained in:
@ -83,7 +83,7 @@ _recurseFnc = {
|
|||||||
[],
|
[],
|
||||||
_position,
|
_position,
|
||||||
_distance,
|
_distance,
|
||||||
[_showDisabled,_enableInside,_canCollapse,_runOnHover],
|
[_showDisabled,_enableInside,_canCollapse,_runOnHover, false],
|
||||||
_modifierFunction
|
_modifierFunction
|
||||||
],
|
],
|
||||||
_children
|
_children
|
||||||
|
@ -67,7 +67,7 @@ _recurseFnc = {
|
|||||||
{},
|
{},
|
||||||
[0,0,0],
|
[0,0,0],
|
||||||
10, //distace
|
10, //distace
|
||||||
[_showDisabled,_enableInside,_canCollapse,_runOnHover],
|
[_showDisabled,_enableInside,_canCollapse,_runOnHover, true],
|
||||||
_modifierFunction
|
_modifierFunction
|
||||||
],
|
],
|
||||||
_children
|
_children
|
||||||
|
@ -68,7 +68,7 @@ _distance = if (count _this > 8) then {
|
|||||||
_params = if (count _this > 9) then {
|
_params = if (count _this > 9) then {
|
||||||
_this select 9
|
_this select 9
|
||||||
} else {
|
} else {
|
||||||
[false,false,false,false]
|
[false,false,false,false,false]
|
||||||
};
|
};
|
||||||
|
|
||||||
_modifierFunction = if (count _this > 10) then {
|
_modifierFunction = if (count _this > 10) then {
|
||||||
|
@ -44,7 +44,7 @@ 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.0) && {!((_actionData select 9) select 4)}) exitWith {
|
||||||
// If distance to action is greater than 1.0 m, check LOS
|
// If distance to action is greater than 1.0 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
|
||||||
|
Reference in New Issue
Block a user