Fix Pointing Problems with Static Weapons (#6377)

* Update fnc_keyPress.sqf

* Update fnc_keyPress.sqf
This commit is contained in:
Dmitry-Yuri 2018-05-29 21:04:32 +01:00 committed by BaerMitUmlaut
parent 0199ba9b4c
commit 9c60ec06e4

View File

@ -48,7 +48,7 @@ private _nearbyMen = (ACE_player nearObjects ["CAManBase", (GVAR(maxRange) + 2)]
{alive _x} &&
{(_x == (vehicle _x)) || {(vehicle _x) isKindOf "StaticWeapon"}} &&
{GVAR(indicatorForSelf) || {_x != ACE_player}} &&
{!(lineIntersects [(eyePos _x), _playerEyePosASL, ACE_player, _x])} &&
{!(lineIntersects [(eyePos _x), _playerEyePosASL, vehicle ACE_player, vehicle _x])} &&
{[_x] call EFUNC(common,isPlayer)}) then {
_sendFingerToPlayers pushBack _x;