Only guide last fired missile

This commit is contained in:
BaerMitUmlaut 2019-05-22 01:38:04 +02:00
parent d0272d8e17
commit 6e3bd3a55e

View File

@ -27,6 +27,9 @@ if (isNil "_initialized") then {
_seekerState pushBack true;
};
// Another missile was fired after this one, fly straight
if (GVAR(mclosMissile) != _projectile) exitWith {[0, 1, 0]};
private _vx = GVAR(mclosInput)#MCLOS_RIGHT - GVAR(mclosInput)#MCLOS_LEFT;
private _vz = GVAR(mclosInput)#MCLOS_UP - GVAR(mclosInput)#MCLOS_DOWN;
private _steerVector = vectorNormalized [_vx, 1, _vz];