mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Only guide last fired missile
This commit is contained in:
parent
d0272d8e17
commit
6e3bd3a55e
@ -27,6 +27,9 @@ if (isNil "_initialized") then {
|
|||||||
_seekerState pushBack true;
|
_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 _vx = GVAR(mclosInput)#MCLOS_RIGHT - GVAR(mclosInput)#MCLOS_LEFT;
|
||||||
private _vz = GVAR(mclosInput)#MCLOS_UP - GVAR(mclosInput)#MCLOS_DOWN;
|
private _vz = GVAR(mclosInput)#MCLOS_UP - GVAR(mclosInput)#MCLOS_DOWN;
|
||||||
private _steerVector = vectorNormalized [_vx, 1, _vz];
|
private _steerVector = vectorNormalized [_vx, 1, _vz];
|
||||||
|
Loading…
Reference in New Issue
Block a user