mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-25 21:02:48 +00:00
Only guide last fired missile
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user