Fix #4007 - Handle bad target when using apex titans

This commit is contained in:
PabstMirror 2016-06-27 13:43:05 -05:00
parent 419b525458
commit 20376385ca
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,8 @@ private["_seeker", "_seekerPos", "_target", "_targetPos", "_return", "_vectorTo"
_seeker = _this select 0;
_target = _this select 1;
if ((isNil "_seeker") || {isNil "_target"}) exitWith {false};
_targetPos = getPosASL _target;
_seekerPos = getPosASL _seeker;
_return = true;

View File

@ -70,6 +70,12 @@ if(isNil "_target") then {
};
};
//ToDo: Add correct configs for new apex titans (in ace_javelin)
if ((isNil "_target") && {(_weapon == "launch_B_Titan_short_tna_F") || {_weapon == "launch_O_Titan_short_ghex_F"}}) then {
ACE_LOGWARNING_1("APEX Launcher [%1] not supported - Wait for ACE 3.6.1",_weapon);
if (!isNull cursorObject) then {_target = cursorObject;}; //Attempt to give some kind of target or it will
};
TRACE_4("Beginning ACE guidance system",_target,_ammo,_seekerType,_attackProfile);
_args = [_this,
[_shooter,