Update fnc_seekerType_Doppler.sqf

This commit is contained in:
johnb432 2024-08-30 10:33:54 +02:00
parent 347c6cd793
commit 606267fd64

View File

@ -71,7 +71,7 @@ if (_isActive || { CBA_missionTime >= _timeWhenActive }) then {
private _nearestObjects = nearestObjects [ASLtoAGL _searchPos, _lockTypes, _seekerBaseRadiusAdjusted, false];
_nearestObjects = _nearestObjects select {
// If target within angle AND we can see target AND we shouldn't filter target, then target is a candidate
([_projectile, getPosASL _x, _seekerAngle] call FUNC(checkSeekerAngle) && {
[_projectile, getPosASL _x, _seekerAngle] call FUNC(checkSeekerAngle) && {
// I check both Line of Sight versions to make sure that a single bush doesnt make the target lock dissapear but at the same
// time ensure that this can see through smoke
([_projectile, _x, true] call FUNC(checkLos)) || { ([_projectile, _x, false] call FUNC(checkLos)) }
@ -157,4 +157,3 @@ _targetData set [0, (getPosASLVisual _projectile) vectorFromTo _expectedTargetPo
_seekerStateParams set [3, _expectedTargetPos];
_launchParams set [0, _target];
_expectedTargetPos