dofile "flightcommander.lua"
function init()
-- Mission_setAutopilotEnabled(false);
-- Camera_setCameraType(CAMERA_COCKPIT)
alliancedead = 0;
networkdead = 0;
end
function onalliancedead(shipid)
alliancedead = alliancedead + 1;
if (alliancedead == 4) then
Objective_setState(0, OBJECTIVE_COMPLETE)
if (networkdead == 5) then
Comm_playVideo("sonicunderground_oneleft.wav", "midway_statusbad.avi", "Sonic Underground", IFF_FRIEND);
end
if (networkdead == 4) then
Comm_playVideo("sonicunderground_twoleft.wav", "midway_statusbad.avi", "Sonic Underground", IFF_FRIEND);
end
end
end
function onnetworkdead(shipid)
networkdead = networkdead + 1;
end
function ontransportdead(shipid)
-- Objective_setState(1, OBJECTIVE_COMPLETE) -- Gotta Fix
end
function Nav1Enter()
Comm_playVideo("sonicunderground_return.wav", "midway_landing_bad.avi", "Sonic Underground", IFF_FRIEND);
-- Objective_setName(0, "Destroy all Alliance fighters.");
-- Objective_setState(0, OBJECTIVE_INCOMPLETE)
-- Objective_setName(1, "Protect the Sonic Underground.");
-- Objective_setState(1, OBJECTIVE_INCOMPLETE)
-- Mission_setAutopilotEnabled(true);
end
function Nav2Enter()
Comm_playVideo("spite_wingattack.wav", "helmet.avi", "Spite", IFF_ENEMY);
Ship_setForceEject("$all1", true);
end
-- Friendly
-- Pale Moon Rise
-- Kirvee
-- Jarrah
-- Kool Kat
-- Rocky
-- Baddie
-- Lilix
-- Alliance Marine Transport
-- Mista
-- Soopaha
-- Spite
init();