Frame 1
function GenerateRandomMission(obj) {
if ((Math.random() > 0.6) && (_root.Rank > 1)) {
GenerateAreaClearanceMission(obj);
} else if (Math.random() > 0.5) {
GenerateAssasinationMission(obj);
} else {
GenerateCourierMission(obj);
}
}
function InEnemySpace(Row) {
if (MyTeam == "Human") {
return(Row < 10);
}
return(Row >= 10);
}
function GenerateAreaClearanceMission(obj) {
obj.MissionSteps = new Array();
s = 0;
tdist = 0;
tor = QuadrantRow;
toc = QuadrantCol;
if ((_root.Rank > 4) && (Math.random() > 0.9)) {
blnSecret = true;
obj.missiontype = "Top Secret";
RandomDestination(tor, toc, 5, false, false);
tor = _root.RandomRow;
toc = _root.RandomCol;
tdist = tdist + _root.RandomDist;
obj.MissionSteps[s] = (((("AwaitOrders|" + tor) + "|") + toc) + "|") + (random(300) + 100);
s++;
obj.shortdesc = ((("Proceed to sector S-" + tor) + "-") + toc) + " and await further instructions.";
} else {
blnSecret = false;
obj.missiontype = "Clearance";
}
if (_root.Rank > 5) {
steps = random(_root.Rank - 5) + 1;
} else {
steps = 1;
}
rnd = random(2);
if (blnSecret == true) {
multiply = 2.5;
} else {
multiply = 1.8;
}
if ((rnd == 0) && (_root.Rank > 3)) {
type = "turret";
amount = 1 + random(_root.Rank - 3);
obj.reward = Math.round(((((amount * 1300) + (GetThreatRating(tor) * 400)) + (GetThreatRating(returnr) * 200)) + random(200)) * (steps * multiply));
if (isNaN(obj.reward)) {
obj.reward = Math.round(((((amount * 1300) + (GetThreatRating(tor) * 400)) + (GetThreatRating(returnr) * 200)) + random(200)) * (steps * multiply));
}
} else if (_root.Rank > 2) {
type = "enemy ship";
amount = 2 + Math.round(random(_root.Rank) / 2);
obj.reward = Math.round(((((amount * 500) + random(50)) + (GetThreatRating(tor) * 600)) + (GetThreatRating(returnr) * 200)) * (steps * multiply));
} else {
type = "drone";
amount = 4 + random(4);
obj.reward = Math.round(((((amount * 150) + random(50)) + (GetThreatRating(tor) * 600)) + (GetThreatRating(returnr) * 200)) * (steps * multiply));
}
if (isNaN(obj.reward)) {
obj.reward = random(300 + random(2000));
}
i = 1;
while (i <= steps) {
RandomDestination(tor, toc, 2, false, false);
tor = _root.RandomRow;
toc = _root.RandomCol;
tdist = tdist + _root.RandomDist;
obj.MissionSteps[s] = (((((("ClearArea|" + tor) + "|") + toc) + "|") + type) + "|") + amount;
s++;
i++;
}
RandomDestination(tor, toc, tdist + 1, true, true);
returnr = _root.RandomRow;
returnc = _root.RandomCol;
obj.MissionSteps[s] = (("ReportToStation|" + returnr) + "|") + returnc;
dist = Math.abs(tor - QuadrantRow) + Math.abs(toc - QuadrantCol);
dist2 = Math.abs(returnr - tor) + Math.abs(returnc - toc);
if (blnSecret != true) {
if ((rnd == 0) && (_root.Rank > 2)) {
if (steps > 1) {
obj.shortdesc = (((((((((("Proceed to " + steps) + " different sectors and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " the ") + amount) + " defence turrets in each. Also ") + arrDestroyWords[random(arrDestroyWords.length)]) + " any other targets in each sector. Then report to station in S-") + returnr) + "-") + returnc;
} else {
obj.shortdesc = ((((((((((((((("Proceed to sector S-" + tor) + "-") + toc) + " (") + dist) + " sectors) and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " ") + amount) + " enemy defence turrets and any other targets in the area. Then report to station in S-") + returnr) + "-") + returnc) + " (") + dist2) + " sectors)";
}
} else if (_root.Rank > 2) {
if (steps > 1) {
obj.shortdesc = (((((((((("Proceed to " + steps) + " different sectors and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " the ") + amount) + " enemy ships in each. Also ") + arrDestroyWords[random(arrDestroyWords.length)]) + " any other targets in the area. Then report to station in S-") + returnr) + "-") + returnc;
} else {
obj.shortdesc = ((((((((((((((("Proceed to sector S-" + tor) + "-") + toc) + " (") + dist) + " sectors) and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " ") + amount) + " enemy ships and any other targets in the area. Then report to station in S-") + returnr) + "-") + returnc) + " (") + dist2) + " sectors)";
}
} else if (steps > 1) {
obj.shortdesc = (((((((((("Proceed to " + steps) + " different sectors and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " the ") + amount) + " enemy drones in each. Also ") + arrDestroyWords[random(arrDestroyWords.length)]) + " any other targets in the area. Then report to station in S-") + returnr) + "-") + returnc;
} else {
obj.shortdesc = ((((((((((((((("Proceed to sector S-" + tor) + "-") + toc) + " (") + dist) + " sectors) and ") + arrDestroyWords[random(arrDestroyWords.length)]) + " ") + amount) + " enemy drones and any other targets in the area. Then report to station in S-") + returnr) + "-") + returnc) + " (") + dist2) + " sectors)";
}
}
}
function RandomDestination(fromrow, fromcol, maxdistance, withstation, friendlyonly) {
destr = undefined;
do {
rc = random(20) + 1;
rr = random(20);
if (((_root[(("S_" + rr) + "_") + rc] == "") && (withstation != true)) || ((withstation == true) && ((_root[(("S_" + rr) + "_") + rc] == "Station") || (_root[(("S_" + rr) + "_") + rc] == "SubStation")))) {
destr = rr;
destc = rc;
}
} while (((destr == undefined) || ((Math.abs(destr - fromrow) + Math.abs(destc - fromcol)) > maxdistance)) || ((InEnemySpace(destr) == true) && (friendlyonly == true)));
_root.RandomRow = destr;
_root.RandomCol = destc;
_root.RandomDist = Math.abs(destr - fromrow) + Math.abs(destc - fromcol);
}
function GenerateAssasinationMission(obj) {
if (_root.Rank < 4) {
minus = 4 - _root.Rank;
} else {
minus = 0;
}
if (MyTeam != "Human") {
targetshipnum = arrHumanShips[random((arrHumanShips.length - 3) - minus) + 2];
guardshipnum = arrHumanShips[random((arrHumanShips.length - 3) - minus) + 2];
} else {
targetshipnum = arrAlienShips[random((arrAlienShips.length - 3) - minus) + 2];
guardshipnum = arrAlienShips[random((arrAlienShips.length - 3) - minus) + 2];
}
if (_root.Rank > 3) {
steps = random(_root.Rank - 3) + 1;
} else {
steps = 1;
}
guards = random(3) + 3;
obj.MissionSteps = new Array();
s = 0;
tdist = 0;
tor = QuadrantRow;
toc = QuadrantCol;
if ((_root.Rank > 4) && (Math.random() > 0.9)) {
blnSecret = true;
obj.missiontype = "Top Secret";
RandomDestination(tor, toc, 5, false, false);
tor = _root.RandomRow;
toc = _root.RandomCol;
tdist = tdist + _root.RandomDist;
obj.MissionSteps[s] = (((("AwaitOrders|" + tor) + "|") + toc) + "|") + (random(300) + 100);
s++;
obj.shortdesc = ((("Proceed to sector S-" + tor) + "-") + toc) + " and await further instructions.";
} else {
blnSecret = false;
obj.missiontype = "Assassinate";
}
arrTargetData = arrShipData[targetshipnum - 1].split("|");
thereward = 0;
i = 1;
while (i <= steps) {
RandomDestination(tor, toc, 2, false, false);
tor = _root.RandomRow;
toc = _root.RandomCol;
tdist = tdist + _root.RandomDist;
targetvalue = Math.round(Number(arrTargetData[7]) / 2);
journeyvalue = ((tdist * 100) * _root.GetThreatRating(tor)) * (s + 1);
thereward = thereward + (targetvalue + journeyvalue);
dist = _root.RandomDist;
obj.MissionSteps[s] = (((((((("DestroyTarget|" + tor) + "|") + toc) + "|") + targetshipnum) + "|") + guardshipnum) + "|") + guards;
s++;
i++;
}
if (blnSecret == true) {
thereward = thereward * 1.5;
}
obj.reward = Math.round(thereward);
RandomDestination(tor, toc, tdist + 1, true, true);
tdist = tdist + _root.RandomDist;
returnr = _root.RandomRow;
returnc = _root.RandomCol;
dist2 = Math.abs(returnr - tor) + Math.abs(returnc - toc);
if (blnSecret != true) {
if (steps == 1) {
obj.shortdesc = ((((((((((((((arrDestroyWords[random(arrDestroyWords.length)] + " enemy ") + arrTargetData[0]) + " in sector S-") + tor) + "-") + toc) + " (") + dist) + " sectors away) and report to station in S-") + returnr) + "-") + returnc) + " (") + dist2) + " sectors)";
} else {
obj.shortdesc = ((((((((((((arrDestroyWords[random(arrDestroyWords.length)] + " ") + steps) + " enemy ") + arrTargetData[0]) + "s in ") + steps) + " different sectors and report to station in S-") + returnr) + "-") + returnc) + " (Total distance ") + tdist) + " sectors)";
}
}
obj.MissionSteps[s] = (("ReportToStation|" + returnr) + "|") + returnc;
}
function GenerateCourierMission(obj) {
if (MyTeam == "Human") {
startrow = 10;
} else {
startrow = 0;
}
fromr = undefined;
do {
rc = random(20) + 1;
rr = random(10) + startrow;
if ((_root[(("S_" + rr) + "_") + rc] == "Station") || (_root[(("S_" + rr) + "_") + rc] == "SubStation")) {
fromr = rr;
fromc = rc;
}
} while (((fromr == undefined) || ((Math.abs(fromr - QuadrantRow) + Math.abs(fromc - QuadrantCol)) > 4)) || (InEnemySpace(fromr)));
tor = undefined;
do {
rc = random(20) + 1;
rr = random(10) + startrow;
if ((_root[(("S_" + rr) + "_") + rc] == "Station") || (_root[(("S_" + rr) + "_") + rc] == "SubStation")) {
tor = rr;
toc = rc;
}
} while ((((tor == undefined) || ((tor == fromr) && (toc == fromc))) || ((Math.abs(fromr - tor) + Math.abs(fromc - toc)) > 6)) || (InEnemySpace(tor)));
obj.missiontype = "Courier";
obj.reward = Math.round(((Math.abs(tor - fromr) + Math.abs(toc - fromc)) * (_root.GetThreatRating(tor) * 1000)) + (((Math.abs(fromr - QuadrantRow) + Math.abs(fromc - QuadrantCol)) * 50) * ((Math.random() * 5) + 0.5)));
obj.shortdesc = ((((((((((((((arrTransportWords[random(arrTransportWords.length)] + " ") + arrDeliveryItems[random(arrDeliveryItems.length)]) + " from Sector S_") + fromr) + "_") + fromc) + " (") + (Math.abs(fromr - QuadrantRow) + Math.abs(fromc - QuadrantCol))) + " sectors away) to Sector S_") + tor) + "_") + toc) + " (") + (Math.abs(tor - fromr) + Math.abs(toc - fromc))) + " sectors journey from pickup)";
obj.MissionSteps = new Array();
obj.MissionSteps[0] = (("GoToStation|" + fromr) + "|") + fromc;
obj.MissionSteps[1] = (("DeliverToStation|" + tor) + "|") + toc;
}
function PlotCourse(Row, Col) {
if (_root.MissionActive == true) {
addinfo("You cannot plot a course when another course/mission is active", "#66FFFF");
} else {
intMissionReward = 0;
intMissionStep = 0;
arrMissionSteps = new Array();
arrMissionSteps[0] = (("GoTo|" + Row) + "|") + Col;
MissionActive = true;
}
}
function ClearMission() {
MissionAngle = undefined;
intMissionReward = undefined;
intMissionStep = undefined;
arrMissionSteps = undefined;
DestRow = undefined;
DestCol = undefined;
MissionActive = false;
MissionSetup = false;
}
function PlayMusic(thesound) {
if ((blnMusicStarted != true) && (_root.OptionMusic == true)) {
stopAllSounds();
blnMusicStarted = true;
_root.musicsounds.gotoAndStop(thesound);
}
}
function MissionStep() {
if (inSector == true) {
if (MissionActive == true) {
arrStepDetails = arrMissionSteps[intMissionStep].split("|");
StepType = arrStepDetails[0];
DestRow = Number(arrStepDetails[1]);
DestCol = Number(arrStepDetails[2]);
dist = Math.abs(QuadrantRow - DestRow) + Math.abs(QuadrantCol - DestCol);
objective = "Mission Objective: ";
if ((QuadrantRow == DestRow) && (QuadrantCol == DestCol)) {
if (((StepType == "DeliverToStation") || (StepType == "GoToStation")) || (StepType == "ReportToStation")) {
if (_root.camerafocus.hitTest(_root.SpaceStation)) {
if (StepType == "GoToStation") {
addinfo("Cargo collected, proceed to destination", "#66FFFF");
} else if (StepType == "ReportToStation") {
_root.addtonews((((_root.MyName + " completed a ") + _root.MissionType.toLowerCase()) + " mission and was rewarded ") + intMissionReward, "", _root.GangID);
addinfo("Mission complete. Reward: " + intMissionReward, "#66FFFF");
SetMoney(_root.money + intMissionReward);
_root.SaveData(camerafocus);
ClearMission();
} else {
addinfo("Delivery complete. Mission Success. Reward: " + intMissionReward, "#66FFFF");
SetMoney(_root.money + intMissionReward);
_root.SaveData(camerafocus);
ClearMission();
}
intMissionStep++;
_root.hud.lockedscreen.gotoAndPlay("reset");
}
objective = objective + "Approach space station";
MissionAngle = GetAngle(_root.camerafocus, _root.SpaceStation);
MissionDistance = GetDistance(_root.camerafocus, _root.SpaceStation);
PlayMusic("main");
} else if (StepType == "AwaitOrders") {
MissionAngle = undefined;
if (intMissionTimer == undefined) {
intMissionTimer = 0;
}
intMissionTimer++;
if (intMissionTimer > Number(arrStepDetails[3])) {
intMissionStep++;
_root.hud.lockedscreen.gotoAndPlay("reset");
} else {
objective = objective + "Await further instructions.";
PlayMusic("planet");
}
} else if (StepType == "ClearArea") {
MissionAngle = undefined;
PlayMusic("action" + (random(5) + 1));
if (MissionSetup != true) {
intMissionSectorTimer = 0;
if (arrStepDetails[3] == "drone") {
if (MyTeam != "Human") {
type = arrHumanShips[1];
} else {
type = arrAlienShips[1];
}
} else if (arrStepDetails[3] == "turret") {
if (MyTeam != "Human") {
type = arrHumanShips[0];
} else {
type = arrAlienShips[0];
}
}
e = 0;
while (e < Number(arrStepDetails[4])) {
if (arrStepDetails[3] == "enemy ship") {
if (MyTeam != "Human") {
type = arrHumanShips[random(arrHumanShips.length - 3) + 2];
} else {
type = arrAlienShips[random(arrAlienShips.length - 3) + 2];
}
CreateAIShip(MyEnemy, (_root.QuadrantCentreX + random(5000)) - random(5000), (_root.QuadrantCentreY + random(5000)) - random(5000), type);
} else {
CreateAIShip(MyEnemy, (_root.QuadrantCentreX + random(5000)) - random(5000), (_root.QuadrantCentreY + random(5000)) - random(5000), type);
}
e++;
}
MissionSetup = true;
} else {
objective = objective + (("Destroy all enemies in sector \n(" + _root.EnemyCount) + " left)");
if ((Number(_root.EnemyCount) <= 0) && (intMissionSectorTimer > 100)) {
trace("Timer" + String(intMissionSectorTimer));
MissionSetup = false;
intMissionStep++;
blnMusicStarted = false;
PlayMusic("enemystation");
_root.hud.lockedscreen.gotoAndPlay("reset");
}
}
} else if (StepType == "DestroyTarget") {
PlayMusic("action" + (random(5) + 1));
objective = objective + "Destroy target";
if (_root.PrimaryCreated != true) {
_root.PrimaryTarget = CreateAIShip(MyEnemy, (_root.QuadrantCentreX + random(500)) - random(500), (_root.QuadrantCentreY + random(500)) - random(500), Number(arrStepDetails[3]));
i = 0;
while (i <= Number(arrStepDetails[5])) {
CreateAIShip(MyEnemy, (_root.QuadrantCentreX + random(500)) - random(500), (_root.QuadrantCentreY + random(500)) - random(500), Number(arrStepDetails[4]));
i++;
}
_root.PrimaryCreated = true;
}
MissionAngle = GetAngle(_root.camerafocus, _root.PrimaryTarget);
MissionDistance = GetDistance(_root.camerafocus, _root.PrimaryTarget);
} else if (StepType == "GoTo") {
addinfo("You have arrived at your selected destination", "#66FFFF");
ClearMission();
} else {
MissionAngle = undefined;
objective = objective + "Unknown Mission Type!";
}
} else {
MissionSetup = false;
if (StepType == "DeliverToStation") {
objective = objective + ((("Deliver cargo to Sector S-" + DestRow) + "-") + DestCol);
} else if (StepType == "DestroyTarget") {
objective = objective + ((("Locate target in Sector S-" + DestRow) + "-") + DestCol);
} else {
objective = objective + ((("Go to Sector S-" + DestRow) + "-") + DestCol);
}
MissionAngle = -Math.round((Math.atan((_root.QuadrantRow - DestRow) / (DestCol - _root.QuadrantCol)) * 57.2957795130823) - 90);
if ((DestCol - _root.QuadrantCol) < 0) {
MissionAngle = MissionAngle + 180;
}
if (MissionAngle < 0) {
MissionAngle = MissionAngle + 360;
}
MissionDistance = "";
defaultmusic();
}
if (dist > 0) {
objective = objective + ((newline + dist) + " sectors away");
}
} else {
objective = "";
defaultmusic();
}
intMissionSectorTimer++;
} else {
intMissionSectorTimer = 0;
_root.PrimaryCreated = false;
}
}
function defaultmusic() {
vari = _root[(("P_" + _root.QuadrantRow) + "_") + _root.QuadrantCol];
if ((justleft != true) && false) {
PlayMusic("main");
justleft = true;
} else if (vari.indexOf("|") > 0) {
PlayMusic("planet");
} else {
PlayMusic("enemystation");
}
}
arrDeliveryItems = new Array("xandeleviem", "plutonium", "photon compressors", "medical supplies", "construction drones");
arrTransportWords = new Array("Transport some", "Deliver a shipment of", "Pick up and deliver some ", "Ship a load of", "Collect and fly some");
arrDestroyWords = new Array("Terminate", "Destroy", "Eliminate", "Take out", "Neutralise");
P_1_2 = "Darkus Alpha|240|240|240|410";
P_1_5 = "Amiliris Prime|18|192|104|355";
P_3_4 = "Evilon|166|26|77|185";
P_5_16 = "Nostrilamus|43|52|42|346";
P_6_4 = "Zenon|26|12|114|208";
P_8_2 = "Humphries|24|92|10|388";
P_3_18 = "Joseph|12|1|104|125";
P_8_17 = "Werd V|31|199|92|333";
P_12_18 = "Thorpia|200|127|114|227";
P_13_11 = "Aether Delta|52|202|133|259";
P_14_5 = "JLB|201|223|154|350";
P_14_18 = "Lexiastra|159|81|17|185";
P_15_18 = "Benonian|100|0|12|400";
P_16_11 = "Jonathernia|97|208|193|284";
P_17_1 = "Mogzilliris|62|47|50|401";
P_18_12 = "Nightsaberi|147|229|41|161";
P_5_10 = "Kirk|89|128|166|283";
P_4_12 = "Victimum|52|18|37|330";
P_0_16 = "Pinoy|110|112|152|377";
P_7_13 = "Kain|109|154|42|172";
P_14_13 = "Pendo|105|200|218|358";
P_6_20 = "Dharok|96|69|147|213";
P_8_8 = "Flanker|163|236|48|172";
P_19_4 = "Draco|74|223|178|267";
P_19_20 = "Vijin|159|12|226|391";
P_1_20 = "Lanacter|212|190|134|128";
S_0_1 = "SubStation";
S_0_2 = "";
S_0_3 = "";
S_0_4 = "";
S_0_5 = "";
S_0_6 = "Mining";
S_0_7 = "";
S_0_8 = "";
S_0_9 = "";
S_0_10 = "";
S_0_11 = "";
S_0_12 = "";
S_0_13 = "SubStation";
S_0_14 = "";
S_0_15 = "";
S_0_16 = "";
S_0_17 = "";
S_0_18 = "";
S_0_19 = "";
S_0_20 = "Mining";
S_1_1 = "";
S_1_2 = "";
S_1_3 = "";
S_1_4 = "";
S_1_5 = "";
S_1_6 = "";
S_1_7 = "";
S_1_8 = "";
S_1_9 = "";
S_1_10 = "";
S_1_11 = "BlackHole";
S_1_12 = "";
S_1_13 = "";
S_1_14 = "";
S_1_15 = "";
S_1_16 = "";
S_1_17 = "";
S_1_18 = "";
S_1_19 = "Station";
S_1_20 = "";
S_2_1 = "WormHole";
S_2_2 = "";
S_2_3 = "";
S_2_4 = "Mining";
S_2_5 = "";
S_2_6 = "SubStation";
S_2_7 = "";
S_2_8 = "";
S_2_9 = "";
S_2_10 = "";
S_2_11 = "";
S_2_12 = "";
S_2_13 = "";
S_2_14 = "";
S_2_15 = "Mining";
S_2_16 = "";
S_2_17 = "";
S_2_18 = "";
S_2_19 = "";
S_2_20 = "";
S_3_1 = "";
S_3_2 = "";
S_3_3 = "";
S_3_4 = "";
S_3_5 = "";
S_3_6 = "";
S_3_7 = "";
S_3_8 = "";
S_3_9 = "";
S_3_10 = "Station";
S_3_11 = "";
S_3_12 = "";
S_3_13 = "SubStation";
S_3_14 = "";
S_3_15 = "";
S_3_16 = "";
S_3_17 = "";
S_3_18 = "";
S_3_19 = "";
S_3_20 = "";
S_4_1 = "";
S_4_2 = "";
S_4_3 = "Station";
S_4_4 = "";
S_4_5 = "";
S_4_6 = "BlackHole";
S_4_7 = "";
S_4_8 = "";
S_4_9 = "";
S_4_10 = "";
S_4_11 = "";
S_4_12 = "";
S_4_13 = "";
S_4_14 = "";
S_4_15 = "Mining";
S_4_16 = "WormHole";
S_4_17 = "";
S_4_18 = "Station";
S_4_19 = "";
S_4_20 = "";
S_5_1 = "";
S_5_2 = "";
S_5_3 = "";
S_5_4 = "";
S_5_5 = "WhiteHole";
S_5_6 = "";
S_5_7 = "";
S_5_8 = "";
S_5_9 = "";
S_5_10 = "";
S_5_11 = "";
S_5_12 = "";
S_5_13 = "PvP-13";
S_5_14 = "";
S_5_15 = "";
S_5_16 = "";
S_5_17 = "";
S_5_18 = "";
S_5_19 = "";
S_5_20 = "Mining";
S_6_1 = "SubStation";
S_6_2 = "";
S_6_3 = "";
S_6_4 = "";
S_6_5 = "";
S_6_6 = "";
S_6_7 = "";
S_6_8 = "Station";
S_6_9 = "";
S_6_10 = "";
S_6_11 = "";
S_6_12 = "";
S_6_13 = "";
S_6_14 = "Mining";
S_6_15 = "";
S_6_16 = "BlackHole";
S_6_17 = "";
S_6_18 = "";
S_6_19 = "";
S_6_20 = "";
S_7_1 = "";
S_7_2 = "";
S_7_3 = "Coop-15";
S_7_4 = "";
S_7_5 = "SubStation";
S_7_6 = "";
S_7_7 = "";
S_7_8 = "";
S_7_9 = "";
S_7_10 = "";
S_7_11 = "SubStation";
S_7_12 = "";
S_7_13 = "Coop-17";
S_7_14 = "";
S_7_15 = "";
S_7_16 = "SubStation";
S_7_17 = "";
S_7_18 = "Mining";
S_7_19 = "";
S_7_20 = "";
S_8_1 = "";
S_8_2 = "";
S_8_3 = "";
S_8_4 = "";
S_8_5 = "";
S_8_6 = "PvP-2";
S_8_7 = "";
S_8_8 = "";
S_8_9 = "Coop-16";
S_8_10 = "";
S_8_11 = "PvP-12";
S_8_12 = "";
S_8_13 = "";
S_8_14 = "";
S_8_15 = "Mining";
S_8_16 = "";
S_8_17 = "";
S_8_18 = "";
S_8_19 = "Coop-18";
S_8_20 = "SubStation";
S_9_1 = "";
S_9_2 = "";
S_9_3 = "";
S_9_4 = "PvP-1";
S_9_5 = "SubStation";
S_9_6 = "";
S_9_7 = "SubStation";
S_9_8 = "PvP-3";
S_9_9 = "";
S_9_10 = "BlackHole";
S_9_11 = "";
S_9_12 = "";
S_9_13 = "Station";
S_9_14 = "PvP-4";
S_9_15 = "SubStation";
S_9_16 = "PvP-5";
S_9_17 = "SubStation";
S_9_18 = "Mining";
S_9_19 = "";
S_9_20 = "Station";
S_10_1 = "Mining";
S_10_2 = "";
S_10_3 = "";
S_10_4 = "Station";
S_10_5 = "PvP-6";
S_10_6 = "SubStation";
S_10_7 = "PvP-7";
S_10_8 = "SubStation";
S_10_9 = "";
S_10_10 = "";
S_10_11 = "BlackHole";
S_10_12 = "";
S_10_13 = "PvP-8";
S_10_14 = "SubStation";
S_10_15 = "";
S_10_16 = "SubStation";
S_10_17 = "PvP-10";
S_10_18 = "Mining";
S_10_19 = "";
S_10_20 = "Coop-20";
S_11_1 = "";
S_11_2 = "";
S_11_3 = "Coop-19";
S_11_4 = "";
S_11_5 = "";
S_11_6 = "BlackHole";
S_11_7 = "";
S_11_8 = "";
S_11_9 = "Station";
S_11_10 = "PvP-11";
S_11_11 = "";
S_11_12 = "";
S_11_13 = "";
S_11_14 = "";
S_11_15 = "PvP-9";
S_11_16 = "";
S_11_17 = "Station";
S_11_18 = "";
S_11_19 = "SubStation";
S_11_20 = "";
S_12_1 = "";
S_12_2 = "Mining";
S_12_3 = "";
S_12_4 = "";
S_12_5 = "";
S_12_6 = "";
S_12_7 = "";
S_12_8 = "Coop-22";
S_12_9 = "";
S_12_10 = "";
S_12_11 = "";
S_12_12 = "SubStation";
S_12_13 = "Mining";
S_12_14 = "";
S_12_15 = "";
S_12_16 = "";
S_12_17 = "";
S_12_18 = "";
S_12_19 = "";
S_12_20 = "";
S_13_1 = "";
S_13_2 = "";
S_13_3 = "";
S_13_4 = "Mining";
S_13_5 = "";
S_13_6 = "SubStation";
S_13_7 = "";
S_13_8 = "";
S_13_9 = "";
S_13_10 = "";
S_13_11 = "";
S_13_12 = "";
S_13_13 = "";
S_13_14 = "Coop-21";
S_13_15 = "";
S_13_16 = "Mining";
S_13_17 = "";
S_13_18 = "";
S_13_19 = "";
S_13_20 = "WormHole";
S_14_1 = "";
S_14_2 = "";
S_14_3 = "";
S_14_4 = "";
S_14_5 = "";
S_14_6 = "";
S_14_7 = "";
S_14_8 = "";
S_14_9 = "Station";
S_14_10 = "";
S_14_11 = "";
S_14_12 = "";
S_14_13 = "Mining";
S_14_14 = "";
S_14_15 = "";
S_14_16 = "";
S_14_17 = "";
S_14_18 = "";
S_14_19 = "";
S_14_20 = "";
S_15_1 = "";
S_15_2 = "Mining";
S_15_3 = "";
S_15_4 = "";
S_15_5 = "";
S_15_6 = "";
S_15_7 = "PvP-14";
S_15_8 = "Mining";
S_15_9 = "";
S_15_10 = "";
S_15_11 = "BlackHole";
S_15_12 = "";
S_15_13 = "";
S_15_14 = "";
S_15_15 = "SubStation";
S_15_16 = "";
S_15_17 = "";
S_15_18 = "";
S_15_19 = "Station";
S_15_20 = "";
S_16_1 = "";
S_16_2 = "";
S_16_3 = "";
S_16_4 = "";
S_16_5 = "";
S_16_6 = "Mining";
S_16_7 = "";
S_16_8 = "";
S_16_9 = "";
S_16_10 = "";
S_16_11 = "";
S_16_12 = "";
S_16_13 = "";
S_16_14 = "";
S_16_15 = "";
S_16_16 = "";
S_16_17 = "WhiteHole";
S_16_18 = "";
S_16_19 = "";
S_16_20 = "";
S_17_1 = "";
S_17_2 = "";
S_17_3 = "";
S_17_4 = "";
S_17_5 = "Station";
S_17_6 = "";
S_17_7 = "";
S_17_8 = "";
S_17_9 = "";
S_17_10 = "SubStation";
S_17_11 = "";
S_17_12 = "";
S_17_13 = "SubStation";
S_17_14 = "";
S_17_15 = "Mining";
S_17_16 = "";
S_17_17 = "";
S_17_18 = "";
S_17_19 = "";
S_17_20 = "";
S_18_1 = "Mining";
S_18_2 = "";
S_18_3 = "";
S_18_4 = "";
S_18_5 = "";
S_18_6 = "";
S_18_7 = "WormHole";
S_18_8 = "";
S_18_9 = "";
S_18_10 = "";
S_18_11 = "";
S_18_12 = "";
S_18_13 = "";
S_18_14 = "";
S_18_15 = "";
S_18_16 = "";
S_18_17 = "";
S_18_18 = "Mining";
S_18_19 = "SubStation";
S_18_20 = "";
S_19_1 = "";
S_19_2 = "Station";
S_19_3 = "";
S_19_4 = "";
S_19_5 = "";
S_19_6 = "";
S_19_7 = "";
S_19_8 = "SubStation";
S_19_9 = "";
S_19_10 = "Mining";
S_19_11 = "";
S_19_12 = "";
S_19_13 = "";
S_19_14 = "";
S_19_15 = "";
S_19_16 = "BlackHole";
S_19_17 = "";
S_19_18 = "";
S_19_19 = "";
S_19_20 = "";
_quality = "HIGH";
function quitHandler(obj, item) {
if (_root._framesloaded > 3) {
gotoAndStop (3);
}
}
function dgHandler() {
getURL ("http://www.starfighterinfinity.com/", "_blank");
}
function mgHandler() {
getURL ("http://www.benoldinggames.co.uk", "_blank");
}
stopAllSounds();
_root.kongregateServices.connect();
_root.gameversion = "v1.3.0";
_root.SavePlayerData = true;
intMissionSectorTimer = 0;
HyperSpaceTime = 0;
_root.GangID = 0;
_root.GangName = undefined;
_root.shipcolour = undefined;
_root.infoscreen = "";
_root.Deaths = 0;
_root.killmoney = 0;
_root.Mined = 0;
_root.Lives = 10;
_root.hyperspace = "No";
_root.engine = 0;
_root.arrMyWeapons = Array(9);
_root.arrMyWeapons[0] = 11;
_root.Rank = 1;
_root.MyTeam = "";
_root.sectorchat = "";
_root.teamchat = "";
_root.gangchat = "";
_root.prevrank = undefined;
Kills = 0;
strWeapons = "";
strWeapons = strWeapons + "Missle1|Type 1 Stinger Torpedo|20|2000|true|true|250|Regular Weapons|Human|1\n";
strWeapons = strWeapons + "Missle2|Type 2 Stinger Torpedo|15|5000|true|true|300|Regular Weapons|Human|1\n";
strWeapons = strWeapons + "Photon|Photon Bomb|-14|1000|true|false|1000|Regular Weapons|Neutral|2\n";
strWeapons = strWeapons + "Plasma|Plasma Cannon|-25|500|false|true|2000|Regular Weapons|Neutral|4\n";
strWeapons = strWeapons + "Mine|HE Proximity Mine|8|400|false|false|500|Mines|Neutral|1\n";
strWeapons = strWeapons + "Beam|Laser Beam|-30|500|true|false|3000|Regular Weapons|Neutral|3\n";
strWeapons = strWeapons + "EnergyBeam|Energy Extraction Beam|-1|1000|true|false|1200|Utilities|Human|2\n";
strWeapons = strWeapons + "ElectroField|Electrostatic Field Disruptor|-25|150|false|false|500|Proximity Weapons|Neutral|1\n";
strWeapons = strWeapons + "Thunder|Thunder Bolt|1|800|false|false|6100|Proximity Weapons|Neutral|5\n";
strWeapons = strWeapons + "TractorBeam|Tractor Beam|-15|1000|true|false|700|Utilities|Neutral|4\n";
strWeapons = strWeapons + "ElectroMine|Electro Mine|20|400|false|false|300|Mines|Human|1\n";
strWeapons = strWeapons + "MiningBeam|Basic Mining Laser|-5|500|true|false|0|Mining|Neutral|1\n";
strWeapons = strWeapons + "Needle|Needle Torpedo|20|2500|true|true|100|Utilities|Alien|1\n";
strWeapons = strWeapons + "Missle3|Type 3 Stinger Torpedo|15|10000|true|true|500|Regular Weapons|Human|1\n";
strWeapons = strWeapons + "Magnetic Mine|Magnetic Mine|5|2300|true|false|300|Utilities|Human|2\n";
strWeapons = strWeapons + "HeatDisc|Xandelevium Heat Disc|15|1000|true|true|900|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "ThunderMine|Thunder Bolt Mine|2|800|false|false|2500|Mines|Neutral|3\n";
strWeapons = strWeapons + "BlackholeBomb|Vortex Bomb|1|3000|false|false|3000|Large Weapons|Alien|1\n";
strWeapons = strWeapons + "StealthMine|LBSS Area Stealth|1|3000|false|false|800|Utilities|Human|2\n";
strWeapons = strWeapons + "Stealth|LBSS Stealth System|1|3000|false|false|1200|Utilities|Neutral|3\n";
strWeapons = strWeapons + "Shield|Shield Bubble|1|5000|false|false|1000|Utilities|Neutral|2\n";
strWeapons = strWeapons + "EnergyCell|Energy Cell|2|1000|false|false|1000|Utilities|Neutral|1\n";
strWeapons = strWeapons + "Orb|Electrostatic Orb|10|2000|true|false|300|Regular Weapons|Human|2\n";
strWeapons = strWeapons + "Disc|Positronic Convergence Disc|10|5000|true|true|1100|Regular Weapons|Human|2\n";
strWeapons = strWeapons + "CompressionBomb|Photon Compression Bomb|1|3000|false|false|13000|Large Weapons|Human|1\n";
strWeapons = strWeapons + "Javelin|Javelin Torpedo|15|2000|false|true|100|Regular Weapons|Neutral|1\n";
strWeapons = strWeapons + "Teleport|Teleport Disc|3|2000|false|false|500|Utilities|Neutral|2\n";
strWeapons = strWeapons + "ThunderTorpedo|Thunder Bolt Torpedo|1|1500|true|false|1400|Regular Weapons|Neutral|5\n";
strWeapons = strWeapons + "Hologram|Holographic Disguise|1|5000|false|false|2000|Utilities|Neutral|6\n";
strWeapons = strWeapons + "MiningBeam2|Level 2 Mining Laser|-3|500|true|true|1000|Mining|Neutral|1\n";
strWeapons = strWeapons + "MiningBeam3|Level 3 Mining Laser|-2|500|true|true|3000|Mining|Neutral|1\n";
strWeapons = strWeapons + "HiddenMine|Stealth Mine|5|400|false|false|700|Mines|Neutral|2\n";
strWeapons = strWeapons + "PlasmaMine|Plasma Mine|-20|600|false|false|600|Mines|Alien|1\n";
strWeapons = strWeapons + "ThunderBomb|Thunder Bomb|1|1500|false|false|1500|Large Weapons|Human|1\n";
strWeapons = strWeapons + "TimedMine|XHE Time Mine|7|400|false|false|500|Mines|Neutral|1\n";
strWeapons = strWeapons + "ShieldRecharger|Rapid Shield Recharger|1|2000|false|false|600|Utilities|Neutral|3\n";
strWeapons = strWeapons + "EMPBomb|Electro Magnetic Pulse Bomb|10|400|false|false|500|Mines|Neutral|2\n";
strWeapons = strWeapons + "Stealth2|LASS Stealth System|1|5000|false|false|3400|Utilities|Neutral|5\n";
strWeapons = strWeapons + "Damage Bubble|Damage Bubble|1|2000|false|false|1000|Proximity Weapons|Neutral|2\n";
strWeapons = strWeapons + "EMPBlast|EMP Blast|-50|150|false|false|2750|Proximity Weapons|Neutral|3\n";
strWeapons = strWeapons + "EMPTorpedo|EMP Torpedo|1|2500|true|true|1300|Regular Weapons|Neutral|4\n";
strWeapons = strWeapons + "UltraEMPBomb|Ultra EMP Bomb|1|3000|false|false|1000|Large Weapons|Neutral|1\n";
strWeapons = strWeapons + "XandeleviumBlast|Xandelevium Blaster|15|5000|true|true|1100|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "DrainingBeam|Performance Inhibitor Combo Beam|-10|1000|true|false|700|Utilities|Alien|2\n";
strWeapons = strWeapons + "DamagingBeam|Damaging Combo Beam|-10|700|true|false|700|Regular Weapons|Alien|2\n";
strWeapons = strWeapons + "ShieldSapBeam|Shield Extraction Beam|-7|800|true|false|1500|Regular Weapons|Neutral|3\n";
strWeapons = strWeapons + "InverseGravityField|Inverse Gravity Field Generator|1|5000|false|false|1000|Utilities|Neutral|3\n";
strWeapons = strWeapons + "Carnivore1|Type 1 Carnivore Torpedo|20|2000|true|true|250|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "Carnivore2|Type 2 Carnivore Torpedo|15|5000|true|true|300|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "Carnivore3|Type 3 Carnivore Torpedo|15|10000|true|true|500|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "Disruptor|Disruptor|-12|2000|true|false|1000|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "ConcentratedPhotonTorpedo|High Density Photon Bomb|-30|1000|true|false|1500|Regular Weapons|Human|3\n";
strWeapons = strWeapons + "TeleportingCarnivore|Type 4 (Teleporting) Carnivore Torpedo|15|3000|true|true|750|Regular Weapons|Alien|2\n";
strWeapons = strWeapons + "GravityMine|Gravity Mine|5|600|false|false|1400|Mines|Neutral|3\n";
strWeapons = strWeapons + "Missle4|Type 4 (Stealth) Stinger Torpedo|15|4000|true|true|1000|Regular Weapons|Human|2\n";
strWeapons = strWeapons + "PlasmaRelay|Plasma Relay|1|3000|false|true|1500|Large Weapons|Neutral|1\n";
strWeapons = strWeapons + "ProximityBlaster|Proximity Blaster|3|125|false|false|1000|Proximity Weapons|Neutral|1\n";
strWeapons = strWeapons + "LargeBlackholeBomb|Ultra Vortex Bomb|1|4000|false|false|15000|Large Weapons|Alien|1\n";
strWeapons = strWeapons + "minipcb|Micro Photon Compression Bomb|1|400|false|false|4000|Mines|Neutral|2\n";
strWeapons = strWeapons + "FieldHop|Field Hopper|-20|2000|false|false|900|Utilities|Neutral|3\n";
strWeapons = strWeapons + "ReverseThrust|Reverse Power Thrust|-10|400|false|false|200|Utilities|Neutral|3\n";
strWeapons = strWeapons + "EngineOverdrive|Engine Overdrive|1|10000|false|true|2000|Utilities|Neutral|4\n";
strWeapons = strWeapons + "HomingMine|Heat Seeking Mine|5|400|false|false|1500|Mines|Neutral|5\n";
strWeapons = strWeapons + "LongrangeLaser|Long Ranger Laser Cannon|-6|1500|false|true|1000|Regular Weapons|Neutral|2\n";
strWeapons = strWeapons + "Hornet|Hornet Torpedo|10|1500|true|true|250|Regular Weapons|Alien|4\n";
strWeapons = strWeapons + "ATTorpedo|AT Torpedo|20|2000|true|true|250|Regular Weapons|Human|4\n";
strWeapons = strWeapons + "LRPhotonTorpedo|LR Photon Bomb|-10|9000|true|false|2500|Regular Weapons|Human|4\n";
arrWeapons = strWeapons.split(newline);
arrHumanShips = Array(9, 6, 10, 1, 20, 32, 19, 36, 35, 14, 4, 37, 24, 26, 12, 28, 22, 16, 41, 42, 29);
arrAlienShips = Array(8, 7, 11, 5, 27, 18, 38, 15, 3, 17, 34, 33, 13, 23, 39, 21, 31, 25, 40, 43, 30);
strShipData = "";
strShipData = strShipData + "Starfighter|100|10|1|5|30|2,1,0,0,0|500|500\n";
strShipData = strShipData + "Starfighter|100|10|1|5|30|2,1,0,0,0|500|500\n";
strShipData = strShipData + "Protector|200|10|0.1|3|50|2,2,1,0,0|1000|1000\n";
strShipData = strShipData + "Iris Armoured Support Ship|200|10|0.1|3|50|2,2,1,0,0|1000|1000\n";
strShipData = strShipData + "Fighter|100|10|1|5|30|2,1,0,0,0|500|500\n";
strShipData = strShipData + "Drone|10|10|1|1|20|1,0,0,0,0|150|100\n";
strShipData = strShipData + "Drone|10|10|1|1|20|1,0,0,0,0|150|100\n";
strShipData = strShipData + "Defence Turret|400|0|0|3|300|4,1,0,0,0|1000|0\n";
strShipData = strShipData + "Defence Turret|400|0|0|3|300|4,1,0,0,0|1000|0\n";
strShipData = strShipData + "Heavy Drone|50|10|1|1|30|2,0,0,0,0|200|100\n";
strShipData = strShipData + "Heavy Drone|50|10|1|1|30|2,0,0,0,0|200|100\n";
strShipData = strShipData + "Centaur Attack Ship|200|8|1|3|40|4,2,0,1,0|5000|1000\n";
strShipData = strShipData + "Shredder|200|10|1|3|40|2,2,1,1,0|5000|1000\n";
strShipData = strShipData + "Argonaut Bomber|150|12|1|4|40|2,1,2,0,0|4000|750\n";
strShipData = strShipData + "Marauder|150|12|1|4|40|2,1,2,0,0|4000|750\n";
strShipData = strShipData + "Warship|350|12|0.1|1|300|5,2,0,1,1|10000|2000\n";
strShipData = strShipData + "Conqueror|120|13|0.8|4|30|1,1,1,3,0|1500|800\n";
strShipData = strShipData + "Sprinter|50|20|1|5|30|2,1,0,0,0|1200|250\n";
strShipData = strShipData + "Astro Fighter Ship|100|8|1|7|30|2,2,0,0,0|3000|500\n";
strShipData = strShipData + "Triton Cargo Ship|300|13|0.1|1|100|0,2,1,1,0|1500|2000\n";
strShipData = strShipData + "Hunter|150|10|0.3|2|70|6,1,1,0,0|4000|750\n";
strShipData = strShipData + "Atlas Mining Vessel|400|8|0.1|1|70|2,4,1,1,0|5000|5000\n";
strShipData = strShipData + "Raider|150|20|0.2|2|50|4,1,1,0,0|5000|1000\n";
strShipData = strShipData + "Nymph Gun Platform|200|7|2|6|40|2,3,0,2,0|3000|500\n";
strShipData = strShipData + "Destroyer|350|12|0.1|1|300|5,2,0,1,1|10000|2000\n";
strShipData = strShipData + "Hawk Combat Vessel|200|10|1|3|40|2,2,1,1,0|5000|1000\n";
strShipData = strShipData + "Freighter|300|13|0.1|1|100|0,2,1,1,0|1500|2000\n";
strShipData = strShipData + "Minotaur Assault Ship|150|10|0.3|2|70|6,1,1,0,0|4000|750\n";
strShipData = strShipData + "Admiral Class Warship|350|12|0.1|2|300|4,2,0,1,2|20000|3000\n";
strShipData = strShipData + "Elite Destroyer|350|12|0.1|2|300|4,2,0,1,2|20000|3000\n";
strShipData = strShipData + "Gatherer|400|8|0.1|1|70|2,4,1,1,0|5000|5000\n";
strShipData = strShipData + "Pegasus Shuttle|50|20|1|5|30|2,1,0,0,0|1200|250\n";
strShipData = strShipData + "Defender|230|7|2|6|40|2,3,0,2,0|3000|500\n";
strShipData = strShipData + "Guardian|150|12|1|4|40|1,1,4,0,0|4000|750\n";
strShipData = strShipData + "Satyr Mine Layer|150|12|1|4|40|1,1,4,0,0|4000|750\n";
strShipData = strShipData + "Eos Proximity Defence Ship|120|13|0.8|4|30|1,1,1,3,0|1500|800\n";
strShipData = strShipData + "Chariot Fast Attack Ship|150|20|0.2|2|50|4,1,1,0,0|5000|1000\n";
strShipData = strShipData + "Weaver|100|8|1|7|30|2,2,0,0,0|3000|500\n";
strShipData = strShipData + "Striker|200|8|1|3|40|4,2,0,1,0|5000|1000\n";
strShipData = strShipData + "Oppressor|350|12|0.1|1|300|6,0,2,0,1|10000|2000\n";
strShipData = strShipData + "Medusa Battleship|350|12|0.1|1|300|6,0,2,0,1|10000|2000\n";
strShipData = strShipData + "Hydra Destroyer|300|12|1|3|60|2,4,1,1,1|5000|1000\n";
strShipData = strShipData + "Enforcer|300|12|1|3|60|2,4,1,1,1|5000|1000\n";
arrShipData = strShipData.split(newline);
arrHumanRanks = Array("Officer Cadet", "Midshipman", "Sub-Lieutenant", "Lieutenant", "Lieutenant-Commander", "Commander", "Captain", "Commodore", "Rear Admiral", "Vice Admiral", "Admiral", "Admiral of the Fleet");
arrAlienRanks = Array("Conscript", "Fighter", "Pathfinder", "Warrior", "Warrior-Commander", "Crusader", "Champion", "Warlord", "Vice-Overlord", "Overlord", "Supreme Overlord", "Emperor");
_root.QuadrantRow = random(20);
_root.QuadrantCol = random(20);
stop();
if (rightmenu != true) {
var newMenu = new ContextMenu();
newMenu.builtInItems.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("Quit to menu", quitHandler));
newMenu.customItems.push(new ContextMenuItem("Starfighter Infinity", dgHandler));
newMenu.customItems.push(new ContextMenuItem("More games...", mgHandler));
this.menu = newMenu;
}
Stage.showMenu = false;
function clearData() {
i = 0;
while (i < characters.length) {
var _local1 = SharedObject.getLocal("sfdg_" + characters[i]);
_local1.clear();
i++;
}
soGeneral.clear();
characters = [];
trace("Cleared");
gotoAndPlay (1);
}
function SaveData(returnobj) {
returnobj.executed = "";
weaponstring = "";
i = 0;
while (i <= 9) {
if (_root.arrMyWeapons[i] != undefined) {
if (isNaN(Number(_root.arrMyWeapons[i]))) {
weaponstring = weaponstring + "";
} else {
weaponstring = weaponstring + _root.arrMyWeapons[i];
}
}
if (i != 9) {
weaponstring = weaponstring + "|";
}
i++;
}
if (characters == null) {
characters = [];
}
trace(((("Index: " + characters.indexOf(_root.MyName)) + " (") + _root.MyName) + ")");
exists = false;
i = 0;
while (i < characters.length) {
if (characters[i] == _root.MyName) {
exists = true;
break;
}
i++;
}
if (!exists) {
characters.push(_root.MyName);
}
soGeneral.data.characters = characters.slice(0);
trace(((("Save " + soGeneral.data.characters) + " characters (") + characters.length) + ")");
soGeneral.flush();
var _local2 = SharedObject.getLocal("sfdg_" + _root.MyName);
_local2.data.name = _root.MyName;
_local2.data.money = _root.money;
_local2.data.MyShipType = _root.MyShipType;
_local2.data.weaponstring = _root.weaponstring;
_local2.data.engine = _root.engine;
_local2.data.HomeStationRow = _root.HomeStationRow;
_local2.data.HomeStationCol = _root.HomeStationCol;
_local2.data.Lives = _root.Lives;
_local2.data.Kills = _root.Kills;
_local2.data.Deaths = _root.Deaths;
_local2.data.hyperspace = _root.hyperspace;
_local2.data.MyTeam = _root.MyTeam;
_local2.data.QuadrantCol = _root.QuadrantCol;
_local2.data.QuadrantRow = _root.QuadrantRow;
_local2.data.GangName = _root.GangName;
_local2.data.GangID = _root.GangID;
_local2.data.shipcolour = _root.shipcolour;
_local2.flush();
trace((("Saved: " + _root.MyName) + " team: ") + _root.MyTeam);
returnobj.executed = "ok";
}
function loadCharacter(charName) {
var _local2 = SharedObject.getLocal("sfdg_" + charName);
_root.MyName = _local2.data.name;
_root.money = _local2.data.money;
_root.MyShipType = _local2.data.MyShipType;
_root.weaponstring = _local2.data.weaponstring;
_root.engine = _local2.data.engine;
_root.HomeStationRow = _local2.data.HomeStationRow;
_root.HomeStationCol = _local2.data.HomeStationCol;
_root.Lives = _local2.data.Lives;
_root.Kills = _local2.data.Kills;
if (Kills == undefined) {
Kills = 0;
}
_root.Deaths = _local2.data.Deaths;
_root.hyperspace = _local2.data.hyperspace;
_root.GangID = _local2.data.GangID;
_root.MyTeam = _local2.data.MyTeam;
_root.QuadrantCol = _local2.data.QuadrantCol;
_root.QuadrantRow = _local2.data.QuadrantRow;
_root.GangName = _local2.data.GangName;
_root.GangID = _local2.data.GangID;
_root.shipcolour = _local2.data.shipcolour;
trace((((("Load Character: " + charName) + " (") + _root.MyName) + ") ") + _root.MyTeam);
_root.arrMyWeapons = _root.weaponstring.split("|");
i = 0;
while (i <= 9) {
if (_root.arrMyWeapons[i] != "") {
_root.arrMyWeapons[i] = Number(_root.arrMyWeapons[i]);
}
i++;
}
_root.gotoAndStop(_root.MyTeam + "Shop");
}
function Replace(thetext, searchfor, replacement) {
strReturn = "";
if (thetext.toLowerCase().indexOf(searchfor.toLowerCase()) > -1) {
strReturn = strReturn + thetext.substring(0, thetext.toLowerCase().indexOf(searchfor.toLowerCase()));
strReturn = strReturn + replacement;
strReturn = strReturn + thetext.substring(thetext.toLowerCase().indexOf(searchfor.toLowerCase()) + searchfor.length, thetext.length);
} else {
strReturn = thetext;
}
if (thetext.toLowerCase().indexOf(searchfor.toLowerCase()) > -1) {
strReturn = Replace(strReturn, searchfor, replacement);
}
return(strReturn);
}
function ChatFilter(strChatText) {
strChatText = Replace(strChatText, "shit", "****");
strChatText = Replace(strChatText, "wank", "****");
strChatText = Replace(strChatText, "cunt", "****");
strChatText = Replace(strChatText, "fuck", "****");
strChatText = Replace(strChatText, "arse", "****");
strChatText = Replace(strChatText, "crap", "****");
strChatText = Replace(strChatText, "nigger", "******");
strChatText = Replace(strChatText, "nigga", "*****");
strChatText = Replace(strChatText, "retard", "******");
strChatText = Replace(strChatText, "cock", "****");
strChatText = Replace(strChatText, "<", "<");
strChatText = Replace(strChatText, ">", ">");
strChatText = Replace(strChatText, "|", " ");
strChatText = Replace(strChatText, ":", " ");
return(strChatText);
}
function IsOverStation(obj) {
dist = undefined;
if (_root[(("S_" + QuadrantRow) + "_") + QuadrantCol] == "Station") {
dist = 700;
}
if (_root[(("S_" + QuadrantRow) + "_") + QuadrantCol] == "SubStation") {
dist = 400;
}
if (dist == undefined) {
return(false);
}
return(GetDistance(obj, _root.SpaceStation) < dist);
}
function CalculateShipPrice(shipnum) {
arrTheShipData = arrShipData[shipnum - 1].split("|");
arrSlots = arrTheShipData[6].split(",");
numweapons = (((Number(arrSlots[0]) + Number(arrSlots[1])) + Number(arrSlots[2])) + Number(arrSlots[3])) + Number(arrSlots[4]);
shield = Number(arrTheShipData[1]);
speed = Number(arrTheShipData[2]);
accel = Number(arrTheShipData[3]);
turning = Number(arrTheShipData[4]);
intValue = Math.round(((((Number(arrTheShipData[2]) / Number(arrTheShipData[4])) * (Number(arrTheShipData[1]) * 2)) + (200 * numweapons)) + Number(arrTheShipData[1])) * (numweapons / 6));
if (intValue > 500) {
intValue = Math.round(intValue / 250) * 250;
} else {
intValue = Math.round(intValue / 50) * 50;
}
return(intValue);
}
function addtonews(news, colour, GangID) {
if (_root.Guest != true) {
if (colour == "") {
colour = "#FFFFFF";
if (MyTeam == "Human") {
colour = "0099FF";
}
if (MyTeam == "Alien") {
colour = "FF0000";
}
}
loadVariablesNum ((((("http://69.56.136.242/sf2/news.asp?action=addnews&n=" + escape(news)) + "&c=") + escape(colour)) + "&g=") + GangID, 1);
}
}
function GetRank(kills) {
s = 25;
rank = 1;
if (kills == undefined) {
kills = 0;
}
r = 2;
while (r <= 11) {
if (kills > s) {
rank = r;
}
s = s * 2;
r++;
}
return(rank);
}
function GetThreatRating(Row) {
if (_root.MyTeam == "Human") {
return((20 - Row) / 20);
}
return((Row / 20) + 0.05);
}
function Say(saytext, toteam) {
addinfo(((("<b>" + _root.MyName) + ": ") + saytext) + "</b>", "#FFFFFF", true);
}
function SetShipColour(obj, colour) {
if ((colour != "") && (colour != undefined)) {
obj._parent.myShipColor = new Color(obj);
obj._parent.myShipColor.setRGB("0x" + colour);
}
}
function SetColour(obj, row, col) {
rb = 40 - ((row - 1) * (row / 4));
gb = 10 - (col * 4);
bb = 40 - ((20 - (row - 1)) * ((20 - row) / 4));
myColorTransform = new Object();
myColorTransform = {rb:rb, gb:gb, bb:bb};
myColor = new Color(obj);
myColor.setTransform(myColorTransform);
}
function addMyWeapons(obj) {
i = 0;
while (i <= 9) {
if (arrMyWeapons[i] != undefined) {
AddWeapon(obj, i, arrMyWeapons[i]);
}
i++;
}
}
function hasStation(Row, Col) {
return(_root[(("S_" + Row) + "_") + Col] == "Station");
}
function WeaponsString(shipname, ship) {
strWeaponsString = shipname;
i = 0;
while (i <= 9) {
strWeaponsString = strWeaponsString + ("|" + String(ship.SecondaryWeaponNums[i]));
i++;
}
return(strWeaponsString);
}
function randomweapon(weapontype, team) {
q = 1;
while (q <= 50) {
rnd = random(arrWeapons.length - 1);
arrWeapon = arrWeapons[rnd].split("|");
if (((arrWeapon[7] == weapontype) && ((arrWeapon[8] == team) || (arrWeapon[8] == "Neutral"))) && (Number(arrWeapon[9]) <= _root.Rank)) {
return(rnd);
}
q++;
}
}
function GetShipWeaponsValue(obj) {
val = 0;
i = 0;
while (i <= 9) {
if (obj.SecondaryWeaponNums[i] != undefined) {
arrWeapon = arrWeapons[obj.SecondaryWeaponNums[i]].split("|");
if (arrWeapon[6] != undefined) {
val = val + Number(arrWeapon[6]);
}
}
i++;
}
return(val / 2);
}
function SelectNextWeapon() {
obj = _root.camerafocus;
sw = obj.SecondaryWeaponSelected + 1;
i = 0;
while (i <= 9) {
sl = i + sw;
if (sl > 9) {
sl = sl - 10;
}
if ((obj.SecondaryWeaponNums[sl] != undefined) && (obj.SecondaryWeaponNums[sl] != "")) {
if (obj.SecondaryWeaponsAmmo[sl] != 0) {
obj.SecondaryWeaponSelected = sl;
_root.hud.weaponselect._alpha = 100;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
_root.camerafocus.lockedtarget = undefined;
break;
}
}
i++;
}
}
function AddWeapon(obj, slot, weaponnum) {
arrWeapon = arrWeapons[weaponnum].split("|");
obj.SecondaryWeaponNums[slot] = weaponnum;
obj.SecondaryWeapons[slot] = arrWeapon[0];
obj.SecondaryWeaponNames[slot] = arrWeapon[1];
obj.SecondaryWeaponsAmmo[slot] = arrWeapon[2];
obj.SecondaryWeaponsRanges[slot] = arrWeapon[3];
obj.SecondaryWeaponsRequireLock[slot] = arrWeapon[4] == "true";
obj.SecondaryWeaponsAimBeforeFire[slot] = arrWeapon[5] == "true";
obj.SecondaryWeaponsTypes[slot] = arrWeapon[7];
}
function removeweapon(obj, slot) {
obj.SecondaryWeaponNums[slot] = undefined;
obj.SecondaryWeapons[slot] = undefined;
obj.SecondaryWeaponNames[slot] = undefined;
obj.SecondaryWeaponsAmmo[slot] = undefined;
obj.SecondaryWeaponsRanges[slot] = undefined;
obj.SecondaryWeaponsRequireLock[slot] = undefined;
obj.SecondaryWeaponsAimBeforeFire[slot] = undefined;
obj.SecondaryWeaponsTypes[slot] = undefined;
if (obj == camerafocus) {
arrMyWeapons[slot] = undefined;
}
}
function addinfo(info, colour, norepeat) {
if ((lastinfo != info) || (norepeat != true)) {
lastinfo = info;
_root.infoscreen = (((("<font color=\"" + colour) + "\">") + info) + "</font><br>") + _root.infoscreen;
_root.infoscreen = _root.infoscreen.substring(0, 1000);
game.info.activitynotify.gotoAndPlay(2);
}
hud.info.gotoAndPlay(1);
}
function enoughenergy(obj, needed, dontuse) {
if (obj.energy > needed) {
if (dontuse != true) {
obj.energy = obj.energy - needed;
}
return(true);
}
if (obj == camerafocus) {
addinfo("Energy Low", "#FF0000", true);
}
return(false);
}
function SetShipStats(obj, shiptype) {
arrSData = arrShipData[shiptype - 1].split("|");
obj.lockingangle = Number(arrSData[5]);
obj.shipname = arrSData[0];
obj.shieldlevel = Number(arrSData[1]);
obj.maxshield = obj.shieldlevel;
obj.turning = Number(arrSData[4]);
obj.maxspeed = Number(arrSData[2]);
if ((_root.engine == 4) && (obj == camerafocus)) {
obj.maxspeed = obj.maxspeed * 1.6;
}
obj.Acceleration = Number(arrSData[3]);
if ((_root.engine == 3) && (obj == camerafocus)) {
obj.Acceleration = obj.Acceleration * 1.5;
}
obj.slots = arrSData[6].split(",");
obj.shipvalue = CalculateShipPrice(shiptype);
obj.miningcapacity = Number(arrSData[8]);
obj.killmoney = 0;
if ((_root.engine == 5) || (_root.engine == 6)) {
_root.hyperspace = "Yes";
}
}
function SetupShip(obj, shiptype, defaultweapons) {
if (shiptype > 0) {
obj.shiptype = shiptype;
} else {
if (obj.Team == "Human") {
obj.colour = "0099FF";
if (((GetThreatRating(QuadrantRow) * 2) < 1) && (QuadrantRow >= 10)) {
maxr = random(Math.round((arrHumanShips.length - 1) * (GetThreatRating(QuadrantRow) * 2)));
} else {
maxr = random(Math.round(arrHumanShips.length - 1));
}
obj.shiptype = arrHumanShips[random(maxr) + 1];
}
if (obj.Team == "Alien") {
obj.colour = "FF0000";
if (((GetThreatRating(QuadrantRow) * 2) < 1) && (QuadrantRow < 10)) {
maxr = random(Math.round(arrAlienShips.length * (GetThreatRating(QuadrantRow) * 2)));
} else {
maxr = random(Math.round(arrAlienShips.length));
}
obj.shiptype = arrAlienShips[random(maxr) + 1];
}
}
SetShipStats(obj, obj.shiptype);
obj.Mined = 0;
obj.speed = 0;
obj.energy = 100;
obj.SecondaryWeaponNums = new Array(9);
obj.SecondaryWeapons = new Array(9);
obj.SecondaryWeaponNames = new Array(9);
obj.SecondaryWeaponsAmmo = new Array(9);
obj.SecondaryWeaponsRanges = new Array(9);
obj.SecondaryWeaponsRequireLock = new Array(9);
obj.SecondaryWeaponsAimBeforeFire = new Array(9);
obj.SecondaryWeaponsTypes = new Array(9);
if (defaultweapons == true) {
obj.GangID = 0;
obj.GangName = "";
if (shiptype == arrAlienShips[0]) {
AddWeapon(obj, 1, 47);
AddWeapon(obj, 2, 49);
AddWeapon(obj, 3, 50);
AddWeapon(obj, 4, 42);
AddWeapon(obj, 5, 9);
} else if (shiptype == arrHumanShips[0]) {
AddWeapon(obj, 1, 0);
AddWeapon(obj, 2, 13);
AddWeapon(obj, 3, 22);
AddWeapon(obj, 4, 23);
AddWeapon(obj, 5, 6);
} else {
ind = 0;
i = 0;
while (i < obj.slots.length) {
x = 0;
while (x < Number(obj.slots[i])) {
ind++;
if (i == 0) {
AddWeapon(obj, ind, randomweapon("Regular Weapons"));
}
if (i == 1) {
AddWeapon(obj, ind, randomweapon("Utilities"));
}
if (i == 2) {
AddWeapon(obj, ind, randomweapon("Mines"));
}
if (i == 3) {
AddWeapon(obj, ind, randomweapon("Proximity Weapons"));
}
if (i == 4) {
AddWeapon(obj, ind, randomweapon("Large Weapons"));
}
x++;
}
i++;
}
}
}
obj.shieldrechargerate = 10;
obj.energyrechargerate = 3;
obj.setup = true;
obj.Intellegence = 50 + random(50);
obj.Ping = 10000;
obj.pingtimer = 0;
obj.SecondaryWeaponSelected = 1;
}
function targetlock(obj, target) {
if (((((((target != undefined) && (target.Team != obj.Team)) && ((target.HologramTime <= 0) || (target.HologramTime == undefined))) && ((target.stealth2time <= 0) || (target.stealth2time == undefined))) && ((target.Team + "") != "")) && (obj.SecondaryWeapons[obj.SecondaryWeaponSelected].indexOf("MiningBeam") < 0)) || ((obj.SecondaryWeapons[obj.SecondaryWeaponSelected].indexOf("MiningBeam") > -1) && (target.Meteorite == true))) {
distance = GetDistance(obj, target);
Angle = GetAngle(obj, target);
if (obj._rotation < 0) {
ShipAngle = obj._rotation + 360;
} else {
ShipAngle = obj._rotation;
}
diffangle = ShipAngle - Angle;
if (((((Math.abs(diffangle) < obj.lockingangle) && (target != SpaceStation)) && (obj.SecondaryWeaponsRequireLock[obj.SecondaryWeaponSelected])) && (distance < obj.SecondaryWeaponsRanges[obj.SecondaryWeaponSelected])) && ((distance < GetDistance(obj, obj.lockedtarget)) || (obj.lockedtarget == undefined))) {
obj.lockedtarget = target;
}
}
}
function attempttargetlock(obj) {
if (GetDistance(obj, obj.lockedtarget) > obj.SecondaryWeaponsRanges[obj.SecondaryWeaponSelected]) {
obj.lockedtarget = undefined;
}
if (obj.lockedtarget.stealth2time > 0) {
obj.lockedtarget = undefined;
}
if (obj.lockedtarget.dead == true) {
obj.lockedtarget = undefined;
}
if (obj.lockedtarget.shield == undefined) {
obj.lockedtarget = undefined;
}
if (random(800) < 1) {
obj.lockedtarget = undefined;
}
if (random(20) < 1) {
targetlock(obj, _root.game.myship);
e = 0;
while (e <= highestsocket) {
targetlock(obj, _root.game["ship" + e]);
x = 0;
while (x < (_root.MaxAIShips + 1)) {
targetlock(obj, _root.game[(("AI_" + e) + "_") + x]);
x++;
}
e++;
}
e = 0;
while (e <= Meteorites) {
targetlock(obj, _root.game["Meteorite" + e]);
e++;
}
}
}
function CreateMeteorite(newname, xpos, ypos) {
IncrementObjectNum();
_root.game.attachMovie("Meteorite", newname, objectnum);
_root.game[newname]._x = xpos;
_root.game[newname]._y = ypos;
_root.game[newname]._rotation = random(360);
return(game[newname]);
}
function CreateAIShip(team, xpos, ypos, shiptype, shipmc) {
AIShipNumber = AIShipNumber + 1;
if (AIShipNumber >= MaxAIShips) {
AIShipNumber = 0;
}
if ((((shipmc != "Big Station") && (shipmc != "Alien Station")) && (shipmc != "AlienSubStation")) && (shipmc != "HumanSubStation")) {
newname = (("AI_" + myplayernumber) + "_") + AIShipNumber;
} else {
newname = "Station";
}
if (_root.game[newname] == undefined) {
if (shipmc == undefined) {
shipmc = "Ship";
}
IncrementObjectNum();
_root.game.attachMovie(shipmc, newname, objectnum);
if (newname != "Station") {
_root.game[newname]._rotation = random(360);
_root.game[newname].speed = 2 + random(5);
}
_root.game[newname].AIPlayer = AIShipNumber;
_root.game[newname].Team = team;
_root.game[newname].Controller = myplayernumber;
_root.game[newname].AI = true;
_root.game[newname].playername = "";
_root.SetupShip(_root.game[newname], shiptype, true);
if (xpos == undefined) {
_root.SpawnPosition(_root.game[newname]);
} else {
_root.game[newname]._x = xpos;
_root.game[newname]._y = ypos;
}
return(_root.game[newname]);
}
}
function CreateNetworkShip(player, AINum, shiptype) {
AIShipNumber = AIShipNumber + 1;
if (AIShipNumber > 10) {
AIShipNumber = 0;
}
if (AINum == -1) {
newname = "ship" + player;
} else {
newname = (("AI_" + player) + "_") + AINum;
}
IncrementObjectNum();
_root.game.attachMovie("Ship", newname, objectnum);
_root.SetupShip(_root.game[newname], shiptype, AINum != -1);
_root.game[newname].AIPlayer = AINum;
_root.game[newname].AI = false;
_root.game[newname].Controller = player;
_root.game[newname].playername = "";
_root.game[newname].m = m;
}
function ToggleAutoPilot() {
if (AutoPilotEngaged != true) {
if ((_root.MissionAngle == undefined) || ((DestRow == QuadrantRow) && (DestCol == QuadrantCol))) {
addinfo("No course plotted, Auto Pilot Disengaged.", "#66FFFF", true);
} else {
_root.AutoPilotEngaged = true;
addinfo("Auto Pilot Engaged. Press p to disengage", "#66FFFF", true);
}
} else {
_root.AutoPilotEngaged = false;
addinfo("Auto Pilot Disengaged.", "#66FFFF", true);
}
}
function playercontrol(obj) {
if (disablecontrols != true) {
if (Key.isDown(32)) {
_root.FireWeapon(obj, -1, _root.multiplayer);
}
if (Key.isDown(88)) {
if ((((_root.engine == 0) || (_root.engine == 3)) || (_root.engine == 4)) || (_root.engine == 5)) {
sb = 1.2;
}
if ((_root.engine == 1) || (_root.engine == 6)) {
sb = 1.5;
}
if (_root.engine == 2) {
sb = 2;
}
if ((obj.speed < ((obj.maxspeed * sb) - 1)) && (enoughenergy(obj, 35))) {
obj.speed = obj.maxspeed * sb;
}
}
if (IsOverStation(obj) && (InEnemySpace(QuadrantRow) != true)) {
if (_root.MissionActive != true) {
_root.messagetext = "Press Q to dock with station.";
}
if (_root.killmoney > 0) {
SetMoney(_root.money + _root.killmoney);
addinfo(_root.killmoney + " bounty deposited", "#FFFFFF");
SetBounty(0);
}
if (_root.Mined > 49) {
SetMoney(_root.money + _root.Mined);
addinfo(_root.Mined + " worth of mined ore deposited", "#FFFFFF", true);
SetMined(0);
}
if (Key.isDown(81)) {
if (_root.MissionActive == true) {
addinfo("You cannot dock during a mission. Complete or cancel the mission first", "#66FFFF", true);
} else {
_root.fromspacestation = true;
_root.gotoAndStop(_root.MyTeam + "Shop");
}
}
} else {
_root.messagetext = "";
}
if (Key.isDown(67)) {
if ((obj.energy > 0) && (obj.shieldlevel < obj.maxshield)) {
obj.shieldlevel++;
obj.energy--;
}
}
if (_root.AutoPilotEngaged == true) {
if ((_root.MissionAngle == undefined) || ((DestRow == QuadrantRow) && (DestCol == QuadrantCol))) {
_root.ToggleAutoPilot();
} else {
Angle = _root.MissionAngle;
if (obj._rotation < 0) {
ShipAngle = obj._rotation + 360;
} else {
ShipAngle = obj._rotation;
}
diffangle = ShipAngle - Angle;
if (Math.abs(diffangle) <= (obj.turning + 1)) {
obj._rotation = Angle;
obj.m = 1;
} else if (Math.abs(diffangle) > 180) {
if (ShipAngle < Angle) {
obj.m = 7;
} else {
obj.m = 3;
}
} else if (ShipAngle < Angle) {
obj.m = 3;
} else {
obj.m = 7;
}
}
} else if (Key.isDown(39) && (Key.isDown(38))) {
obj.m = 2;
} else if (Key.isDown(39) && (Key.isDown(40))) {
obj.m = 4;
} else if (Key.isDown(37) && (Key.isDown(40))) {
obj.m = 6;
} else if (Key.isDown(37) && (Key.isDown(38))) {
obj.m = 8;
} else if (Key.isDown(39)) {
obj.m = 3;
} else if (Key.isDown(37)) {
obj.m = 7;
} else if (Key.isDown(38)) {
obj.m = 1;
} else if (Key.isDown(40)) {
obj.m = 5;
} else {
obj.m = 0;
}
}
}
function SpawnPosition(obj) {
if ((_root.SpaceStation != undefined) && (_root.SpaceStation.Team == obj.Team)) {
obj._x = _root.SpaceStation._x;
obj._y = _root.SpaceStation._y;
obj._rotation = random(360);
} else if (obj.Team == "Alien") {
obj._x = (_root.QuadrantCentreX + random(7000)) - random(7000);
obj._y = (_root.QuadrantCentreY - 5000) - random(3000);
obj._rotation = 160 + random(40);
} else {
obj._x = (_root.QuadrantCentreX + random(7000)) - random(7000);
obj._y = (_root.QuadrantCentreY + 5000) + random(3000);
obj._rotation = -20 + random(40);
}
}
function Damage(obj, amount, by, weaponname) {
obj.shield._alpha = obj.shield._alpha + amount;
if (_root.multiplayer) {
amount = amount * 1.4;
}
obj.lasthitby = by;
obj.lasthitid = Number(0 & by.UserID);
obj.lasthitname = by.playername;
obj.lasthitteam = by.team;
obj.lasthitship = by.shiptype;
obj.lasthitweapon = weaponname;
if (obj.Controller == myplayernumber) {
obj.shieldlevel = obj.shieldlevel - Math.round(amount);
}
}
function CheckBlast(obj, amount, energy, ignorefirer) {
if (amount > 0) {
BlastDamage(obj, game.myship, amount, ignorefirer);
}
if (energy > 0) {
ElectroBlastDamage(obj, game.myship, energy, ignorefirer);
}
i = 0;
while (i <= highestsocket) {
if (amount > 0) {
BlastDamage(obj, game["ship" + i], amount);
}
if (energy > 0) {
ElectroBlastDamage(obj, game["ship" + i], energy, ignorefirer);
}
e = 0;
while (e < _root.MaxAIShips) {
totest = game[(("AI_" + i) + "_") + e];
if (amount > 0) {
BlastDamage(obj, totest, amount, ignorefirer);
}
if (energy > 0) {
ElectroBlastDamage(obj, totest, energy, ignorefirer);
}
e++;
}
i++;
}
}
function BlastDamage(obj, totest, amount, ignorefirer) {
if ((ignorefirer != true) || (totest != obj.Firer)) {
dist = GetDistance(obj, totest);
if (dist < (obj._width / 2)) {
Damage(totest, amount * (((obj._width / 2) - (dist / 2)) / (obj._width / 2)), obj.Firer, obj.weaponname);
}
}
}
function ElectroBlastDamage(obj, totest, amount, ignorefirer) {
if ((ignorefirer != true) || (totest != obj.Firer)) {
dist = GetDistance(obj, totest);
if (((dist < ((obj._width / 2) + (totest._width / 2))) && (obj.hitTest(totest))) && (totest.maxspeed > 0)) {
totest.state = "powerfail";
angle = GetAngle(obj, totest);
totest.yspeed = amount * Math.sin(angle / 57.2957795130823);
totest.xspeed = amount * Math.cos(angle / 57.2957795130823);
}
}
}
function Collision(proj, target) {
if (target.inner != undefined) {
twidth = target.inner._width;
theight = target.inner._height;
} else {
twidth = target._width;
theight = target._height;
}
if (twidth < 50) {
twidth = 50;
}
if (theight < 50) {
theight = 50;
}
if (target.dead != true) {
if ((((proj._x <= (target._x + (twidth / 2))) && (proj._x >= (target._x - (twidth / 2)))) && (proj._y >= (target._y - (theight / 2)))) && (proj._y <= (target._y + (theight / 2)))) {
return(proj.hitTest(target));
}
return(false);
}
}
function randomcrate() {
return(random(6) + 2);
}
function Exhaust(obj) {
if ((GetDistance(obj, camerafocus) < 700) && (_root.OptionExhaust == true)) {
IncrementObjectNum();
newname = "exhaust" + objectnum;
_root.game.attachMovie("Exhaust", newname, objectnum);
setProperty(game[newname], _x , (obj._x + random(5)) - random(5));
setProperty(game[newname], _y , (obj._y + random(5)) - random(5));
setProperty(game[newname], _rotation , obj._rotation);
}
}
function Explode(obj, cratetype, LHcontroller, LHAI, LHWeapon, LHName, LHUserID, LHTeam, LHShipType) {
arrSData = arrShipData[LHShipType - 1].split("|");
LHshipname = arrSData[0];
obj.dying = false;
if (obj.dead != true) {
if (obj == PrimaryTarget) {
_root.PrimaryCreated = false;
addinfo("Primary target destroyed.", "#66FFFF");
intMissionStep++;
PrimaryTarget = undefined;
givereward = false;
} else {
givereward = true;
}
obj.dead = true;
obj.lockedtarget = "";
obj.shieldbubble = 0;
obj.stealthtime = 0;
obj.stealth2time = 0;
obj.HologramTime = 0;
obj.powerouttime = 0;
cratevalue = random(obj.shipvalue - 10) + 10;
if (Number(LHAI) == -1) {
if (Number(LHcontroller) == myplayernumber) {
theship = game.myship;
} else {
theship = game["ship" + LHcontroller];
}
} else {
theship = game[(("AI_" + LHcontroller) + "_") + LHAI];
}
if (theship == obj) {
if (obj == _root.camerafocus) {
addinfo(("You destroyed yourself! (" + LHWeapon) + ")", "#FF3300");
} else if ((obj.playername + "") == "") {
} else {
addinfo(((obj.playername + " destroyed themself (") + LHWeapon) + ")", "#CCCCCC");
}
} else if (theship == camerafocus) {
if (obj.Team != camerafocus.Team) {
SetKills(Kills + 1);
t = "an enemy ";
} else {
t = "a friendly ";
SetKills(Kills - 1);
}
if (obj.UserID == undefined) {
obj.UserID = 0;
}
strURL = (((((((((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=kill&k=" + Kills) + "&uid=") + theship.UserID) + "&g=") + theship.GangID) + "&kid=") + obj.UserID) + "&ks=") + obj.shiptype) + "&w=") + escape(LHWeapon)) + "&qr=") + QuadrantRow) + "&qc=") + QuadrantCol) + "&sk=") + SaveDataKey()) + "&") + Math.random();
trace(strURL);
if (_root.SavePlayerData == true) {
loadVariablesNum (strURL, 0);
}
if (givereward == true) {
bounty = Math.round((obj.shipvalue / 5) + (GetShipWeaponsValue(obj) / 10));
if ((obj.playername + "") != "") {
bounty = bounty * 2;
}
if (obj.Team == theship.Team) {
bounty = -3 * bounty;
}
SetBounty(_root.killmoney + bounty);
if (_root.killmoney < 0) {
SetBounty(0);
}
if ((obj.playername + "") == "") {
if (obj.shipname != undefined) {
addinfo(((("Destroyed " + t) + obj.shipname) + ", reward: ") + bounty, "#FFFFFF");
}
} else {
addinfo((("Destroyed " + obj.playername) + ", reward: ") + bounty, "#FFFFFF");
}
}
} else if (obj == camerafocus) {
disablecontrols = true;
if ((LHName == "") || (LHName == undefined)) {
if (LHshipname != undefined) {
addinfo((("Destroyed by a " + LHshipname) + " with a ") + LHWeapon, "#FF3300");
} else {
addinfo("Destroyed by a " + LHWeapon, "#FF3300");
}
} else {
addinfo((("Destroyed by " + LHName) + "'s ") + LHWeapon, "#FF3300");
}
}
if (_root.OptionFragments == true) {
i = 0;
while (i <= 25) {
IncrementObjectNum();
newname = "scrap" + objectnum;
_root.game.attachMovie("Scrap", newname, objectnum);
setProperty(game[newname], _x , obj._x);
setProperty(game[newname], _y , obj._y);
game[newname].xspeed = random(20) - random(20);
game[newname].yspeed = random(20) - random(20);
game[newname].spin = random(100) - random(100);
i++;
}
}
IncrementObjectNum();
newname = "bang" + objectnum;
_root.game.attachMovie("Explosion", newname, objectnum);
setProperty(game[newname], _x , obj._x);
setProperty(game[newname], _y , obj._y);
setProperty(game[newname], _height , (obj._height + obj._width) / 2);
setProperty(game[newname], _width , (obj._height + obj._width) / 2);
IncrementObjectNum();
newname = "bang" + objectnum;
_root.game.attachMovie("Crate", newname, objectnum);
setProperty(game[newname], _x , obj._x);
setProperty(game[newname], _y , obj._y);
game[newname].cratetype = cratetype;
game[newname].cratevalue = cratevalue;
}
if (obj != game.myship) {
removeMovieClip(obj);
}
}
function Smoke(obj, amount) {
if ((GetDistance(obj, camerafocus) < 700) && (_root.OptionExhaust == true)) {
IncrementObjectNum();
newname = "smoke" + objectnum;
_root.game.attachMovie("Smoke", newname, objectnum);
setProperty(game[newname], _x , (obj._x + random(5)) - random(5));
setProperty(game[newname], _y , (obj._y + random(5)) - random(5));
setProperty(game[newname], _rotation , random(360));
setProperty(newname, _xscale , amount);
setProperty(newname, _yscale , amount);
}
}
function IncrementObjectNum() {
objectnum = objectnum + 1;
}
function FireWeapon(obj, selectedweapon, multiplayerfire) {
if (obj != undefined) {
if ((obj.reload >= reloadtime) && ((obj.SecondaryWeaponsRanges[selectedweapon] >= GetDistance(obj, obj.lockedtarget)) || (obj.SecondaryWeaponsRanges[selectedweapon] < 1))) {
if (selectedweapon == -1) {
if (obj.Team == "Human") {
weapon = "MainGun";
} else {
weapon = "AlienMainGun";
}
weaponname = "Laser Cannon";
intEnergyUsage = random(5) + 1;
bRequiresLock = false;
} else {
weapon = obj.SecondaryWeapons[selectedweapon];
weaponname = obj.SecondaryWeaponNames[selectedweapon];
bRequiresLock = obj.SecondaryWeaponsRequireLock[selectedweapon];
if (multiplayerfire != true) {
if (obj.SecondaryWeaponsAmmo[selectedweapon] < 0) {
intEnergyUsage = -obj.SecondaryWeaponsAmmo[selectedweapon];
} else {
intEnergyUsage = 1;
}
} else {
intEnergyUsage = 0;
}
}
if (((((bRequiresLock == true) && (obj.lockedtarget != undefined)) || (bRequiresLock != true)) && (obj.SecondaryWeaponsAmmo[selectedweapon] != 0)) && (enoughenergy(obj, intEnergyUsage, multiplayerfire))) {
if (multiplayerfire != true) {
obj.reload = 0;
}
if (obj.SecondaryWeaponsAmmo[selectedweapon] > 0) {
if (multiplayerfire != true) {
obj.SecondaryWeaponsAmmo[selectedweapon]--;
}
}
if (multiplayerfire != true) {
if (obj.SecondaryWeaponsTypes[selectedweapon] == "Large Weapons") {
removeweapon(obj, selectedweapon);
}
}
if (multiplayerfire != true) {
IncrementObjectNum();
}
newname = "laser" + objectnum;
if (((weapon == "MainGun") && (GetDistance(obj, _root.camerafocus) > 1000)) && (_root.multiplayer != true)) {
_root.Damage(obj.target, random(50), obj, "Laser Cannon");
} else if (multiplayerfire == true) {
sendcommand("Fire", (obj.AIPlayer + "|") + selectedweapon);
} else {
_root.game.attachMovie(weapon, newname, objectnum);
setProperty(game[newname], _x , obj._x);
setProperty(game[newname], _y , obj._y);
setProperty(game[newname], _rotation , obj._rotation);
game[newname].Firer = obj;
game[newname].target = obj.lockedtarget;
game[newname].Team = obj.Team;
game[newname].weaponname = weaponname;
}
} else if ((bRequiresLock == true) && (obj.lockedtarget == undefined)) {
if (obj == _root.camerafocus) {
addinfo("No Target Locked", "#FF0000", true);
}
} else if (obj.SecondaryWeaponsAmmo[selectedweapon] == 0) {
if (obj == _root.camerafocus) {
addinfo("Ammunition Depleted", "#FF0000", true);
}
}
}
}
}
function ShipMovement(obj, m) {
if (obj.inactivetimer == undefined) {
obj.inactivetimer = 0;
}
obj.inactivetimer++;
if (((obj.inactivetimer > 120) && (_root.multiplayer && (myplayernumber != obj.Controller))) && (obj.state != "warping")) {
obj.state = "warping";
obj.WarpAngle = random(360);
}
obj.shieldlevel = Math.ceil(obj.shieldlevel);
if (obj.shieldlevel <= 0) {
if (obj.dead != true) {
if (_root.multiplayer && (myplayernumber == obj.Controller)) {
if (obj.dying != true) {
obj.dying = true;
sendcommand("Explode", (((((((((((((((obj.AIPlayer + "|") + randomcrate()) + "|") + obj.lasthitby.Controller) + "|") + obj.lasthitby.AIPlayer) + "|") + obj.lasthitweapon) + "|") + obj.lasthitname) + "|") + obj.lasthitid) + "|") + obj.lasthitteam) + "|") + obj.lasthitship);
}
} else {
Explode(obj, randomcrate(), obj.lasthitby.Controller, obj.lasthitby.AIPlayer, obj.lasthitweapon, obj.lasthitname, obj.lasthitid, obj.lasthitteam, obj.lasthitship);
}
}
} else {
if ((obj.shieldrecharge == undefined) || (obj.shieldrecharge >= obj.shieldrechargerate)) {
if ((obj.shieldrecharge >= obj.shieldrechargerate) && (obj.shieldlevel < obj.maxshield)) {
obj.shieldlevel++;
}
obj.shieldrecharge = 0;
} else {
obj.shieldrecharge++;
}
if ((obj.shieldrecharge == undefined) || (obj.shieldrecharge >= obj.shieldrechargerate)) {
if (((obj.energyrecharge >= obj.energyrechargerate) && (obj.energy < 100)) && (obj.energy >= 0)) {
obj.energy++;
if (obj.energy > 100) {
obj.energy = 100;
}
}
obj.energyrecharge = 0;
} else {
obj.energyrecharge++;
}
}
_root.display_shield = camerafocus.shieldlevel;
if (obj.dead != true) {
if ((((obj._x > (_root.QuadrantCentreX + 10000)) || (obj._x < (_root.QuadrantCentreX - 10000))) || (obj._y > (_root.QuadrantCentreY + 10000))) || (obj._y < (_root.QuadrantCentreY - 10000))) {
if ((obj != camerafocus) && (obj != _root.PrimaryTarget)) {
removeMovieClip(obj);
} else if (obj.state != "warping") {
if ((obj._x > (_root.QuadrantCentreX + 10000)) && ((_root.QuadrantCol == 20) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = random(10) - random(10);
obj.xspeed = -(10 + random(20));
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._x < (_root.QuadrantCentreX - 10000)) && ((_root.QuadrantCol == 1) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = random(10) - random(10);
obj.xspeed = 10 + random(20);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._y > (_root.QuadrantCentreY + 10000)) && ((_root.QuadrantRow == 19) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = -(10 + random(20));
obj.xspeed = random(10) - random(10);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._y < (_root.QuadrantCentreY - 10000)) && ((_root.QuadrantRow == 0) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = 10 + random(20);
obj.xspeed = random(10) - random(10);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else {
_root.inSector = false;
sendcommand("Action", (((((((("sector|" + _root.MyTeam) + "|") + _root.QuadrantRow) + "|") + _root.QuadrantCol) + "|has left the sector|") + _root.MyName) + "|") + _root.UserID);
if (obj._x > (_root.QuadrantCentreX + 10000)) {
_root.QuadrantCol++;
_root.WarpSide = 4;
} else if (obj._x < (_root.QuadrantCentreX - 10000)) {
_root.QuadrantCol--;
_root.WarpSide = 2;
} else if (obj._y > (_root.QuadrantCentreY + 10000)) {
_root.QuadrantRow++;
_root.WarpSide = 1;
} else if (obj._y < (_root.QuadrantCentreY - 10000)) {
_root.QuadrantRow--;
_root.WarpSide = 3;
}
_root.WarpAngle = obj._rotation;
gotoAndPlay ("reload");
}
}
}
if (obj.state == "powerfail") {
if (obj.powerfailtimer == undefined) {
obj.powerfailtimer = 0;
}
if (((obj.xspeed + obj.yspeed) < 1) && (obj.powerfailtimer > 20)) {
obj.powerfailtimer = undefined;
obj.state = "";
} else {
obj.powerfailtimer++;
}
}
if ((obj.shieldbubble > 0) && (obj.shieldbubble != undefined)) {
obj.shieldbubble--;
}
if ((obj.stealthtime > 0) && (obj.stealthtime != undefined)) {
obj.stealthtime--;
}
if ((obj.stealth2time > 0) && (obj.stealth2time != undefined)) {
obj.stealth2time--;
}
if ((obj.HologramTime > 0) && (obj.HologramTime != undefined)) {
obj.HologramTime--;
}
if (obj.state == "gravity") {
if ((obj.gravityobject != undefined) && (GetDistance(obj, obj.gravityobject) < 2000)) {
if (obj.driftspin == undefined) {
obj.driftspin = random(20) - random(20);
}
setProperty(obj, _rotation , obj._rotation + obj.driftspin);
if (obj._x > obj.gravityobject._x) {
obj.xspeed = obj.xspeed - 1;
} else {
obj.xspeed = obj.xspeed + 1;
}
if (obj._y > obj.gravityobject._y) {
obj.yspeed = obj.yspeed - 1;
} else {
obj.yspeed = obj.yspeed + 1;
}
obj.speed = 0;
} else {
obj.state = "";
}
} else if (obj.state == "powerfail") {
if (obj.maxspeed > 0) {
obj.lockedtarget = undefined;
if (obj.driftspin == undefined) {
obj.driftspin = random(20) - random(20);
}
obj.speed = 0;
obj._rotation = obj._rotation + obj.driftspin;
obj.driftspin = obj.driftspin / 1.1;
obj.xspeed = obj.xspeed / 1.1;
obj.yspeed = obj.yspeed / 1.1;
if (((obj.xspeed + obj.yspeed) < 1) && (obj.energy < 0)) {
obj.energy = 0;
}
} else {
obj.powerfailtimer = undefined;
obj.state = "";
}
} else if ((obj.powerouttime != undefined) && (obj.powerouttime > 0)) {
obj.powerouttime--;
if (obj.driftspin == undefined) {
obj.driftspin = random(5) - random(5);
}
obj._rotation = obj._rotation + obj.driftspin;
obj.speed = 0;
} else if (obj.state == "warping") {
if (obj == camerafocus) {
disablecontrols = true;
}
if (obj.WarpAngle >= 180) {
obj.WarpAngle = obj.WarpAngle - 360;
}
obj._rotation = Math.round(obj._rotation);
if (((obj.WarpAngle - obj.turning) - 1) > obj._rotation) {
obj._rotation = obj._rotation + obj.turning;
} else if (((obj.WarpAngle + obj.turning) + 1) < obj._rotation) {
obj._rotation = obj._rotation - obj.turning;
} else if (obj.speed < 100) {
obj._rotation = obj.WarpAngle;
obj.speed++;
} else if (obj == camerafocus) {
sendcommand("Action", (((((((("sector|" + _root.MyTeam) + "|") + _root.QuadrantRow) + "|") + _root.QuadrantCol) + "|has left the sector|") + _root.MyName) + "|") + _root.UserID);
stopAllSounds();
gotoAndStop ("warp");
} else {
removeMovieClip(obj);
}
obj.yspeed = obj.speed * Math.sin((obj._rotation - 90) / 57.2957795130823);
obj.xspeed = obj.speed * Math.cos((obj._rotation - 90) / 57.2957795130823);
} else {
if (obj == camerafocus) {
_root.MissionStep();
}
obj.driftspin = undefined;
attempttargetlock(obj);
if (obj.reload == undefined) {
obj.reload = reloadtime;
} else if (obj.reload < reloadtime) {
obj.reload++;
}
if (m != obj.lastm) {
obj.lastm = m;
}
if (((m == 2) || (m == 3)) || (m == 4)) {
setProperty(obj, _rotation , obj._rotation + obj.turning);
}
if (((m == 6) || (m == 7)) || (m == 8)) {
setProperty(obj, _rotation , obj._rotation - obj.turning);
}
if (((m == 1) || (m == 2)) || (m == 8)) {
if (obj.speed < obj.maxspeed) {
obj.speed = obj.speed + obj.Acceleration;
}
}
if (((m == 4) || (m == 5)) || (m == 6)) {
if (obj.speed > (-(obj.maxspeed / 2))) {
obj.speed = obj.speed - obj.Acceleration;
}
}
obj.yspeed = obj.speed * Math.sin((obj._rotation - 90) / 57.2957795130823);
obj.xspeed = obj.speed * Math.cos((obj._rotation - 90) / 57.2957795130823);
if (((m != 1) && (m != 2)) && (m != 8)) {
obj.speed = obj.speed / 1.01;
}
}
setProperty(obj, _y , Math.round(obj._y + obj.yspeed));
setProperty(obj, _x , Math.round(obj._x + obj.xspeed));
}
}
function GetAngle(obj1, obj2) {
if (obj1._x > obj2._x) {
return(((Math.atan((obj1._y - obj2._y) / (obj1._x - obj2._x)) * 57.2957795130823) + 90) + 180);
}
return((Math.atan((obj1._y - obj2._y) / (obj1._x - obj2._x)) * 57.2957795130823) + 90);
}
function GetDistance(obj1, obj2) {
ydist = obj1._y - obj2._y;
xdist = obj1._x - obj2._x;
return(Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist))));
}
function OnSameTeam(obj1, obj2) {
if (obj1.Team == obj2.Team) {
r = true;
} else if ((obj2.Team + "") == "") {
r = true;
} else {
r = false;
}
return(r);
}
function ClosestTarget(obj) {
closest = "";
mindist = 10000;
if ((game.myship != undefined) && (game.myship.dead != true)) {
if ((OnSameTeam(obj, game.myship) == false) && (((game.myship.stealthtime <= 0) && (game.myship.stealth2time <= 0)) || (GetDistance(obj, game.myship) < 500))) {
n = GetDistance(obj, game.myship);
if (n < mindist) {
mindist = n;
closest = game.myship;
}
}
}
i = 0;
while (i <= highestsocket) {
if ((game["ship" + i] != undefined) && (game["ship" + i].dead != true)) {
if ((OnSameTeam(obj, game["ship" + i]) == false) && ((game["ship" + i].stealthtime <= 0) || (GetDistance(obj, game["ship" + i]) < 500))) {
n = GetDistance(obj, game["ship" + i]);
if (n < mindist) {
mindist = n;
closest = game["ship" + i];
}
}
}
e = 0;
while (e < _root.MaxAIShips) {
if ((game[(("AI_" + i) + "_") + e] != undefined) && (game[(("AI_" + i) + "_") + e].dead != true)) {
if ((OnSameTeam(obj, game[(("AI_" + i) + "_") + e]) == false) && ((game[(("AI_" + i) + "_") + e].stealthtime <= 0) || (GetDistance(obj, game[(("AI_" + i) + "_") + e]) < 500))) {
n = GetDistance(obj, game[(("AI_" + i) + "_") + e]);
if (n < mindist) {
mindist = n;
closest = game[(("AI_" + i) + "_") + e];
}
}
}
e++;
}
i++;
}
return(closest);
}
function guidedmovement(obj) {
obj.timer--;
distance = GetDistance(obj, obj.target);
if (obj.timer <= 0) {
obj.target = undefined;
obj.gotoAndPlay("explode");
}
Angle = GetAngle(obj, obj.target);
if (obj._rotation < 0) {
ShipAngle = obj._rotation + 360;
} else {
ShipAngle = obj._rotation;
}
diffangle = ShipAngle - Angle;
if ((((obj.target.speed == undefined) || (obj.target.dead == true)) || (obj.deactivated == true)) || (obj.stealth2time > 0)) {
obj.deactivated = true;
obj.speed / 1.01;
if (speed < 1) {
obj.gotoAndPlay("explode");
}
} else {
if ((obj.target.shieldbubble > 0) && (distance <= 150)) {
obj.gotoAndPlay("explode");
}
if (Math.abs(diffangle) > 180) {
if (ShipAngle < Angle) {
obj._rotation = obj._rotation - obj.turning;
} else {
obj._rotation = obj._rotation + obj.turning;
}
} else if (ShipAngle < Angle) {
obj._rotation = obj._rotation + obj.turning;
} else {
obj._rotation = obj._rotation - obj.turning;
}
if (obj.speed < obj.maxspeed) {
obj.speed = obj.speed + obj.accelleration;
}
if (obj.speed > obj.maxspeed) {
obj.speed / 1.01;
}
}
obj.yspeed = obj.speed * Math.sin((obj._rotation - 90) / 57.2957795130823);
obj.xspeed = obj.speed * Math.cos((obj._rotation - 90) / 57.2957795130823);
setProperty(obj, _y , obj._y + obj.yspeed);
setProperty(obj, _x , obj._x + obj.xspeed);
if (Collision(obj, obj.target) && (Math.round(obj.speed) == Math.round(obj.maxspeed))) {
obj.gotoAndPlay("explode");
}
}
function SetMoney(amount) {
_root.kongregateStats.submit("Money Earned", amount);
intRandomCheck = 96;
_root.money = amount;
_root.money_check = CheckVariableValue(amount);
}
function SetBounty(amount) {
_root.kongregateStats.submit("Bounty", amount);
intRandomCheck = 96;
_root.killmoney = amount;
_root.killmoney_check = CheckVariableValue(amount);
}
function SetMined(amount) {
intRandomCheck = 96;
_root.Mined = amount;
_root.Mined_check = CheckVariableValue(amount);
}
function SetKills(amount) {
_root.kongregateStats.submit("Highest Kills", amount);
if (amount > 12000) {
_root.kongregateStats.submit("Reached Highest Rank", amount);
}
intRandomCheck = 96;
_root.Kills = amount;
_root.Kills_check = CheckVariableValue(amount);
}
function SetName(thename) {
intRandomCheck = 240;
_root.MyName = thename;
_root.MyName_check = thename.charAt(0) + String(thename.length * 2);
}
function CheckVariableValue(amount) {
return((amount * 2) + 7.15);
}
function ReverseVariableValue(varvalue) {
return((varvalue - 7.15) / 2);
}
function ValidateVariables() {
trace("Validate variables");
if (((MyName.charAt(0) + String(MyName.length * 2)) != _root.MyName_check) && (MyName.length > 0)) {
trace("Name validate fail");
gotoAndPlay (1);
}
money = Number(ReverseVariableValue(money_check));
killmoney = Number(ReverseVariableValue(killmoney_check));
Mined = Number(ReverseVariableValue(Mined_check));
Kills = Number(ReverseVariableValue(Kills_check));
}
function SaveDataKey() {
rnd1 = random(100);
rnd2 = random(100);
rndkey = (rnd1 + rnd2) + 10;
strKey = "";
strKey = strKey + (rndkey + randomdivider());
strKey = strKey + (_root.Password.substr(_root.Password.length - 1, 1) + randomdivider());
strKey = strKey + (random(100) + randomdivider());
strKey = strKey + (rnd1 + randomdivider());
strKey = strKey + (Math.round(Kills * 1.4) + randomdivider());
strKey = strKey + (_root.Password.substr(0, 1) + randomdivider());
strKey = strKey + (((QuadrantRow + QuadrantCol) + randomdivider()) + randomdivider());
strKey = strKey + (rnd2 + randomdivider());
return(strKey);
}
function randomdivider() {
rnd = random(5);
if (rnd == 0) {
return("ae-");
}
if (rnd == 1) {
return("br-");
}
if (rnd == 2) {
return("ct-");
}
if (rnd == 3) {
return("dg-");
}
if (rnd == 4) {
return("eh-");
}
if (rnd == 5) {
return("fj-");
}
}
function AI(obj) {
if (obj.dead != true) {
if (((obj.target + "") == "") || (random(100) > 90)) {
obj.target = ClosestTarget(obj);
}
if (((_root.SpaceStation != undefined) && (_root.SpaceStation.Team == obj.Team)) && (((obj.target + "") == "") || (GetDistance(obj, _root.SpaceStation) > 4000))) {
obj.target = _root.SpaceStation;
}
target = obj.target;
if (target == _root.PrimaryTarget) {
target = "";
}
if ((target == "") || (target == undefined)) {
if ((((((_root.FriendlyCount == 0) || (_root.EnemyCount == 0)) && (obj.Team != MyEnemy)) && (Math.random() > 0.99)) && (obj.state != "warping")) && (obj.maxspeed > 0)) {
obj.state = "warping";
obj.WarpAngle = random(360);
}
obj.m = 0;
} else {
Angle = GetAngle(obj, target);
if (obj._rotation < 0) {
ShipAngle = obj._rotation + 360;
} else {
ShipAngle = obj._rotation;
}
diffangle = ShipAngle - Angle;
distance = GetDistance(obj, target) + ((target._width + target._height) / 2);
if (Math.random() > 0.97) {
r = random(10);
if (((obj.SecondaryWeapons[r] != undefined) && (obj.SecondaryWeaponsAmmo[r] != 0)) && (obj.SecondaryWeaponsRanges[r] >= distance)) {
if (obj == _root.camerafocus) {
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
obj.SecondaryWeaponSelected = r;
obj.lockedtarget = "";
}
}
strWeaponType = obj.SecondaryWeaponsTypes[obj.SecondaryWeaponSelected];
if (strWeaponType == "Mines") {
intStoppingDist = 0;
} else if (strWeaponType == "Proximity Weapons") {
intStoppingDist = 10;
} else {
if ((obj.stoppingdist == undefined) || (Math.random() > 0.98)) {
obj.stoppingdist = 10 + random(40);
}
intStoppingDist = obj.stoppingdist;
}
if ((distance < ((intStoppingDist * obj.maxspeed) / obj.Acceleration)) && ((obj.speed > 2) || (distance < 400))) {
if (Math.abs(diffangle) < 10) {
obj.m = 5;
} else if (Math.abs(diffangle) < 200) {
if (ShipAngle > Angle) {
obj.m = 6;
} else {
obj.m = 4;
}
} else if (ShipAngle < Angle) {
obj.m = 8;
} else {
obj.m = 2;
}
} else if (((distance < ((100 * obj.maxspeed) / obj.Acceleration)) && (target.speed < obj.speed)) && (obj.speed > 6)) {
if (Math.abs(diffangle) < 10) {
obj.m = 0;
} else if (ShipAngle < Angle) {
obj.m = 3;
} else {
obj.m = 7;
}
} else if (Math.abs(diffangle) < 10) {
obj.m = 1;
} else if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
obj.m = 8;
} else {
obj.m = 2;
}
} else if (ShipAngle > Angle) {
obj.m = 2;
} else {
obj.m = 8;
}
if (target.Team != obj.Team) {
if (((Math.abs(diffangle) < 10) && (distance < 600)) && (Math.random() > 0.8)) {
_root.FireWeapon(obj, -1, _root.multiplayer);
} else if (distance <= obj.SecondaryWeaponsRanges[obj.SecondaryWeaponSelected]) {
if ((Math.abs(diffangle) < 10) || (obj.SecondaryWeaponsAimBeforeFire[obj.SecondaryWeaponSelected] == false)) {
if (((obj.lockedtarget + "") != "") && (Math.random() > 0.9)) {
_root.FireWeapon(obj, obj.SecondaryWeaponSelected, _root.multiplayer);
}
}
} else if ((Math.abs(diffangle) < 10) && (distance < 600)) {
_root.FireWeapon(obj, -1, _root.multiplayer);
}
}
}
}
}
var characters = [];
var soGeneral = SharedObject.getLocal("sfdg");
if (soGeneral != null) {
characters = soGeneral.data.characters.slice(0);
trace("Got characters from file: " + soGeneral.data.characters);
if (characters == null) {
characters = [];
}
}
trace(("Loaded: " + characters.length) + " characters");
if (aaaaa == undefined) {
aaaaa = "sdaasd";
trace("Human Ships ---------------------------------------------------------------------");
i = 0;
while (i < arrHumanShips.length) {
arr = arrShipData[arrHumanShips[i] - 1].split("|");
trace((((arrHumanShips[i] + ": ") + arrShipData[arrHumanShips[i] - 1]) + "\t") + CalculateShipPrice(arrHumanShips[i]));
i++;
}
trace("Alien Ships ---------------------------------------------------------------------");
i = 0;
while (i < arrAlienShips.length) {
arr = arrShipData[arrAlienShips[i] - 1].split("|");
trace((((arrAlienShips[i] + ": ") + arrShipData[arrAlienShips[i] - 1]) + "\t") + CalculateShipPrice(arrAlienShips[i]));
i++;
}
}
meteoritenum = 0;
SetMoney(2500);
SetKills(0);
SetBounty(0);
SetMined(0);
failcount = 0;
Instance of Symbol 588 MovieClip "bg" in Frame 1
onClipEvent (load) {
_root.SetColour(this, _root.QuadrantRow, _root.QuadrantCol);
}
onClipEvent (enterFrame) {
if (_y > 0) {
setProperty(this, _y , _y - 1000);
}
if (_y < -1000) {
setProperty(this, _y , _y + 1000);
}
if (_x > 0) {
setProperty(this, _x , _x - 1000);
}
if (_x < -1000) {
setProperty(this, _x , _x + 1000);
}
}
Instance of Symbol 594 MovieClip "bstars" in Frame 1
onClipEvent (enterFrame) {
if (_y > 600) {
setProperty(this, _y , _y - 600);
}
if (_y < 0) {
setProperty(this, _y , _y + 600);
}
if (_x > 0) {
setProperty(this, _x , _x - 800);
}
if (_x < -800) {
setProperty(this, _x , _x + 800);
}
}
Instance of Symbol 597 MovieClip "stars" in Frame 1
onClipEvent (enterFrame) {
if (_y > 600) {
setProperty(this, _y , _y - 600);
}
if (_y < 0) {
setProperty(this, _y , _y + 600);
}
if (_x > 0) {
setProperty(this, _x , _x - 800);
}
if (_x < -800) {
setProperty(this, _x , _x + 800);
}
}
Instance of Symbol 615 MovieClip in Frame 1
onClipEvent (load) {
themessage = "Loading...";
gotoAndPlay (1);
}
Instance of Symbol 619 MovieClip in Frame 2
onClipEvent (enterFrame) {
if ((xscrollspeed == undefined) || (Math.random() > 0.98)) {
xscrollspeed = random(10) - random(10);
yscrollspeed = random(10) - random(10);
}
setProperty(_root.stars, _y , _root.stars._y - (yscrollspeed / 2));
setProperty(_root.stars, _x , _root.stars._x - (xscrollspeed / 2));
setProperty(_root.stars2, _y , _root.stars2._y - (yscrollspeed / 3.5));
setProperty(_root.stars2, _x , _root.stars2._x - (xscrollspeed / 3.5));
setProperty(_root.bstars, _y , _root.bstars._y - (yscrollspeed / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xscrollspeed / 5));
setProperty(_root.bg, _y , _root.bg._y - (yscrollspeed / 10));
setProperty(_root.bg, _x , _root.bg._x - (xscrollspeed / 10));
}
Frame 3
strTips = "Tip: Long Journey? Teleport discs and Engine Overdrives can get you across sectors quickly\n";
strTips = strTips + "Tip: Going exploring? Do a courier mission at the same time for some extra money\n";
strTips = strTips + "Tip: Always make sure you have enough lives to get home\n";
strTips = strTips + "Tip: Try to have a balance of ammo based and energy based weapons. So you always have something to fire\n";
strTips = strTips + "Tip: Taking on an ambush can quickly increase your kill count... or wipeout your lives\n";
strTips = strTips + "Tip: Go up the ranks to unlock more ships and missions\n";
strTips = strTips + "Tip: Finding it a bit easy? Travel to the centre of the galaxy for harder but more rewarding missions\n";
strTips = strTips + "Tip: Buying expensive ships and expensive weapons will make your lives more expensive, but engines will not\n";
strTips = strTips + "Tip: Do some mining while travelling back from a mission for some extra cash\n";
strTips = strTips + "Tip: Low on lives? Mining is a low risk way of getting some money back\n";
strTips = strTips + "Challenge: Feeling brave? Why not take a tour around enemy space?\n";
strTips = strTips + "Challenge: There are 28 planets in the galaxy, can you find them all?\n";
strTips = strTips + "Challenge: See if you can get a kill in every sector. Check the Galaxy Map in the stats to view your progress.\n";
strTips = strTips + "Tip: Never underestimate the Laser Cannon\n";
arrTips = strTips.split(newline);
TheTip = arrTips[random(arrTips.length - 1)];
stop();
Frame 4
gotoAndPlay (1);
Frame 5
disablemultiplayer = true;
_root.port = NaN;
_root.gamemode = 0;
_quality = _root.MenuQuality;
_root.myplayernumber = undefined;
_root.NumberOfPlayers = undefined;
if (MyTeam == "Human") {
MyEnemy = "Alien";
} else {
MyEnemy = "Human";
}
Sector = (("S-" + QuadrantRow) + "-") + QuadrantCol;
ThreatRating = GetThreatRating(_root.QuadrantRow);
disablecontrols = false;
blnMusicStarted = false;
Instance of Symbol 615 MovieClip in Frame 5
onClipEvent (load) {
themessage = (("Entering Sector S-" + _root.QuadrantRow) + "-") + _root.QuadrantCol;
gotoAndStop (1);
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_root.myplayernumber = 0;
_root.NumberOfPlayers = 1;
_root.gotoAndStop("play");
}
}
Frame 6
_quality = _root.InGameQuality;
stop();
objectnum = 0;
AIShipNumber = 0;
MaxAIShips = 20;
reloadtime = 15;
ships = 20;
camerafocus = game.myship;
highestsocket = 0;
Sector = (("S-" + QuadrantRow) + "-") + QuadrantCol;
_root.addinfo("Entered Sector: " + Sector, "#00FF00");
SectorType = _root[(("S_" + QuadrantRow) + "_") + QuadrantCol];
_root.inSector = true;
Instance of Symbol 769 MovieClip "game" in Frame 6
onClipEvent (enterFrame) {
thefocus = _root.camerafocus;
_root.gamewidth = 700;
_root.gameheight = 500;
xcameramiddle = thefocus._x;
ycameramiddle = thefocus._y;
dragSq = new Object();
dragSq.x = xcameramiddle;
dragSq.y = ycameramiddle;
this.localToGlobal(dragSq);
globalX = dragSq.x - ((_root.gamewidth - 100) / 2);
globalY = dragSq.y - (_root.gameheight / 2);
_root.globalX = globalX;
_root.globalY = globalY;
if (_root.camerafocus.state == "warping") {
xscrollspeed = globalX / 2;
yscrollspeed = globalY / 2;
} else {
xscrollspeed = (globalX / 2) + (thefocus.xspeed * 4);
yscrollspeed = (globalY / 2) + (thefocus.yspeed * 4);
}
setProperty(this, _x , _x - xscrollspeed);
setProperty(this, _y , _y - yscrollspeed);
setProperty(_root.stars, _y , _root.stars._y - (yscrollspeed / 2));
setProperty(_root.stars, _x , _root.stars._x - (xscrollspeed / 2));
setProperty(_root.stars2, _y , _root.stars2._y - (yscrollspeed / 3.5));
setProperty(_root.stars2, _x , _root.stars2._x - (xscrollspeed / 3.5));
setProperty(_root.bstars, _y , _root.bstars._y - (yscrollspeed / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xscrollspeed / 5));
setProperty(_root.bg, _y , _root.bg._y - (yscrollspeed / 10));
setProperty(_root.bg, _x , _root.bg._x - (xscrollspeed / 10));
if (intTimer == undefined) {
intTimer = 20;
}
if ((_root.planet.onscreen == true) && (intTimer < 0)) {
setProperty(_root.planet, _y , _root.planet._y - (yscrollspeed / 1.5));
setProperty(_root.planet, _x , _root.planet._x - (xscrollspeed / 1.5));
} else {
intTimer--;
_root.planet._x = ((_root.QuadrantCentreX - _root.game.myship._x) / 1.5) + 350;
_root.planet._y = ((_root.QuadrantCentreY - _root.game.myship._y) / 1.5) + 250;
}
}
Instance of Symbol 787 MovieClip "weaponsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 796 MovieClip "explosionsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 801 MovieClip "othersound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 817 MovieClip "scanners" in Frame 6
onClipEvent (enterFrame) {
setProperty(this, _x , _root.globalX + 300);
setProperty(this, _y , _root.globalY + 250);
if ((((_root.camerafocus.dead == true) || (_root.camerafocus.shieldlevel <= 0)) || (_root.camerafocus.powerouttime > 0)) || (_root.camerafocus.state == "warping")) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 1063 MovieClip "hud" in Frame 6
onClipEvent (enterFrame) {
if ((((_root.camerafocus.dead == true) || (_root.camerafocus.shieldlevel <= 0)) || (_root.camerafocus.powerouttime > 0)) || (_root.camerafocus.state == "warping")) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 754 MovieClip "howtoplay" in Frame 6
onClipEvent (load) {
function back() {
_visible = false;
_y = -10000;
}
back();
}
Instance of Symbol 615 MovieClip in Frame 6
onClipEvent (load) {
themessage = (("Entering Sector S-" + _root.QuadrantRow) + "-") + _root.QuadrantCol;
gotoAndPlay (1);
}
Frame 7
trace("Go back to menu!");
gotoAndPlay (1);
Frame 8
HyperSpaceTime = 1440;
Instance of Symbol 588 MovieClip "bg" in Frame 8
onClipEvent (enterFrame) {
_root.SetColour(this, random(20), random(20));
_y = (_y + (random(150) - random(150)));
_x = (_x + (random(150) - random(150)));
if (_y > 0) {
setProperty(this, _y , _y - 1000);
}
if (_y < -1000) {
setProperty(this, _y , _y + 1000);
}
if (_x > 0) {
setProperty(this, _x , _x - 1000);
}
if (_x < -1000) {
setProperty(this, _x , _x + 1000);
}
}
Instance of Symbol 569 MovieClip [Ship] "myship" in Frame 8
onClipEvent (load) {
_root.SetupShip(this, _root.MyShipType);
kills = _root.Kills;
colour = _root.shipcolour;
_root.addMyWeapons(this);
fordisplay = true;
startx = _x;
starty = _y;
_rotation = _root.WarpAngle;
speed = 50;
}
onClipEvent (enterFrame) {
_x = ((startx + random(5)) - random(5));
_y = ((starty + random(5)) - random(5));
}
Frame 9
_quality = _root.MenuQuality;
Instance of Symbol 588 MovieClip "bg" in Frame 9
onClipEvent (enterFrame) {
_root.SetColour(this, _root.QuadrantRow, _root.QuadrantCol);
}
onClipEvent (enterFrame) {
if (_y > 0) {
setProperty(this, _y , _y - 1000);
}
if (_y < -1000) {
setProperty(this, _y , _y + 1000);
}
if (_x > 0) {
setProperty(this, _x , _x - 1000);
}
if (_x < -1000) {
setProperty(this, _x , _x + 1000);
}
}
Instance of Symbol 597 MovieClip "stars" in Frame 9
onClipEvent (enterFrame) {
if (_y > 600) {
setProperty(this, _y , _y - 600);
}
if (_y < 0) {
setProperty(this, _y , _y + 600);
}
if (_x > 0) {
setProperty(this, _x , _x - 800);
}
if (_x < -800) {
setProperty(this, _x , _x + 800);
}
}
Instance of Symbol 1274 MovieClip in Frame 9
onClipEvent (load) {
_root.threatrating = _root.GetThreatRating(_root.QuadrantRow);
_root.justleft = false;
_root.loggedinas = "Logged in as " + _root.MyName;
if ((_root.GangName != undefined) && (_root.GangName != "")) {
_root.loggedinas = (_root.loggedinas + ", member of ") + _root.GangName;
}
if (_root.FirstMusic == undefined) {
_root.PlayMusic("Main");
_root.FirstMusic = true;
}
if ((_root.Kills == 0) && (_root.introseen != true)) {
_root.introseen = true;
_root.gotoAndStop(_root.MyTeam + "intro");
}
}
Instance of Symbol 615 MovieClip in Frame 9
onClipEvent (load) {
themessage = "";
gotoAndPlay (1);
}
Frame 10
_quality = _root.MenuQuality;
Frame 11
quitgame();
gotoAndStop ("game");
Instance of Symbol 588 MovieClip "bg" in Frame 11
onClipEvent (load) {
_root.SetColour(this, _root.QuadrantRow, _root.QuadrantCol);
}
onClipEvent (enterFrame) {
if (_y > 0) {
setProperty(this, _y , _y - 1000);
}
if (_y < -1000) {
setProperty(this, _y , _y + 1000);
}
if (_x > 0) {
setProperty(this, _x , _x - 1000);
}
if (_x < -1000) {
setProperty(this, _x , _x + 1000);
}
}
Instance of Symbol 594 MovieClip "bstars" in Frame 11
onClipEvent (enterFrame) {
if (_y > 600) {
setProperty(this, _y , _y - 600);
}
if (_y < 0) {
setProperty(this, _y , _y + 600);
}
if (_x > 0) {
setProperty(this, _x , _x - 800);
}
if (_x < -800) {
setProperty(this, _x , _x + 800);
}
}
Frame 12
quitgame();
_quality = _root.MenuQuality;
strURL = (((((((("http://69.56.136.242/sf2/sfdg.asp?action=reset&p=" + escape(_root.Password)) + "&uid=") + _root.UserID) + "&t=") + _root.MyTeam) + "&sk=") + SaveDataKey()) + "&") + Math.random();
trace(strURL);
loadVariables (strURL, this);
Instance of Symbol 619 MovieClip in Frame 13
onClipEvent (enterFrame) {
if ((xscrollspeed == undefined) || (Math.random() > 0.98)) {
xscrollspeed = random(10) - random(10);
yscrollspeed = random(10) - random(10);
}
setProperty(_root.stars, _y , _root.stars._y - (yscrollspeed / 2));
setProperty(_root.stars, _x , _root.stars._x - (xscrollspeed / 2));
setProperty(_root.stars2, _y , _root.stars2._y - (yscrollspeed / 3.5));
setProperty(_root.stars2, _x , _root.stars2._x - (xscrollspeed / 3.5));
setProperty(_root.bstars, _y , _root.bstars._y - (yscrollspeed / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xscrollspeed / 5));
setProperty(_root.bg, _y , _root.bg._y - (yscrollspeed / 10));
setProperty(_root.bg, _x , _root.bg._x - (xscrollspeed / 10));
}
Instance of Symbol 615 MovieClip in Frame 13
onClipEvent (load) {
themessage = "";
gotoAndPlay (1);
}
Symbol 4 MovieClip [WormHole] Frame 1
function CheckHit(obj) {
if ((((obj != undefined) && (obj.dead != true)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 100) {
if (obj == _root.camerafocus) {
_root.QuadrantCol = random(20) + 1;
_root.QuadrantRow = random(20);
_root.WarpAngle = random(360);
_root.gotoAndStop("warp");
} else {
removeMovieClip(obj);
}
}
s = (20000 - dist) / 5000;
a = _root.GetAngle(obj, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
shipname = "White hole";
checktargets();
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 4 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 4 MovieClip [WormHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 6 MovieClip [WhiteHole] Frame 1
function CheckHit(obj) {
if ((((obj != undefined) && (obj.dead != true)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 400) {
_root.Damage(obj, random(5), this, weaponname);
}
s = (20000 - dist) / 2000;
a = _root.GetAngle(obj, this);
ys = (-s) * Math.sin((a - 90) / 57.2957795130823);
xs = (-s) * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
shipname = "White hole";
checktargets();
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 6 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 6 MovieClip [WhiteHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 14 MovieClip [XandeleviumBlast] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 30;
maxspeed = 30;
accelleration = 0.1;
turning = 2;
timer = 300;
Instance of Symbol 11 MovieClip in Symbol 14 MovieClip [XandeleviumBlast] Frame 1
onClipEvent (load) {
_rotation = random(360);
gotoAndStop(random(4) + 1);
}
Symbol 14 MovieClip [XandeleviumBlast] Frame 2
_root.guidedmovement(this);
Symbol 14 MovieClip [XandeleviumBlast] Frame 3
gotoAndPlay (2);
Symbol 14 MovieClip [XandeleviumBlast] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 15 + random(25));
Symbol 14 MovieClip [XandeleviumBlast] Frame 15
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 19 MovieClip Frame 1
setProperty(this, _height , _parent._parent._parent.speed * 2);
Symbol 19 MovieClip Frame 2
call(1);
Symbol 19 MovieClip Frame 3
call(1);
Symbol 19 MovieClip Frame 4
call(1);
Symbol 23 MovieClip Frame 1
if (timer >= (_parent.timer / 3)) {
timer = 0;
gotoAndPlay ("beep");
}
timer = Number(0 + timer) + 1;
Symbol 23 MovieClip Frame 2
gotoAndPlay (1);
Symbol 23 MovieClip Frame 3
_root.othersound.gotoAndPlay("pcbbeep");
Symbol 23 MovieClip Frame 4
gotoAndPlay (1);
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 1
speed = 20;
timer = 200;
Instance of Symbol 19 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 2
speed = speed / 1.03;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
setProperty(this, _rotation , (_rotation + Math.random()) - Math.random());
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 4
function CheckHit(obj) {
if ((((obj != undefined) && (obj.dead != true)) && (obj != Firer)) && (obj.Meteorite != true)) {
dist = _root.GetDistance(this, obj);
if (dist < 300) {
_root.Damage(obj, random(300 - dist), Firer, weaponname);
} else if (dist < 10000) {
obj.powerouttime = 10;
s = (10000 - dist) / 200;
a = _root.GetAngle(obj, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
_root.weaponsound.gotoAndStop("vortex");
timer = 500;
Instance of Symbol 3 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 32 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 23
gotoAndPlay ("blackholeloop");
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 42
_root.CheckBlast(this, 500);
Symbol 32 MovieClip [LargeBlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 45 MovieClip [UltraEMPBomb] Frame 1
timer = 200;
Symbol 45 MovieClip [UltraEMPBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 45 MovieClip [UltraEMPBomb] Frame 51
gotoAndPlay ("start");
Symbol 45 MovieClip [UltraEMPBomb] Frame 52
function CheckHit(obj) {
if (((obj != undefined) && (obj.dead != true)) && (obj != Firer)) {
if (_root.GetDistance(this, obj) < 5000) {
secs = random(10) + 10;
if (obj == _root.camerafocus) {
_root.addinfo(("System power failure. Estimated repair time: " + secs) + " seconds", "#FF0000", true);
}
obj.powerouttime = 24 * secs;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
_width = 10000;
_height = 10000;
checktargets();
Symbol 45 MovieClip [UltraEMPBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 47 MovieClip [Trail] Frame 1
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
setProperty(this, _y , _y + (yspeed / 2));
setProperty(this, _x , _x + (xspeed / 2));
setProperty(this, _alpha , this._alpha - 20);
if (this._alpha < 1) {
removeMovieClip(this);
}
Symbol 47 MovieClip [Trail] Frame 2
gotoAndPlay (1);
Symbol 52 MovieClip [TimedMine] Frame 1
_root.weaponsound.gotoAndStop("mine");
setProperty(this, _rotation , random(360));
Symbol 52 MovieClip [TimedMine] Frame 28
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 50);
Symbol 52 MovieClip [TimedMine] Frame 32
removeMovieClip(this);
Symbol 58 MovieClip [ThunderTorpedo] Frame 1
function bolt(from, to) {
if ((((from._x != undefined) && (from.dead != true)) && (to._x != undefined)) && (to.dead != true)) {
ammo--;
i++;
strName = (_name + "bolt") + i;
_parent.createEmptyMovieClip(strName, _parent.getNextHighestDepth());
_parent[strName].lineStyle(random(3) + 2, 16777215);
_parent[strName].moveTo(from._x + from.xspeed, from._y + from.yspeed);
_parent[strName].curveTo((to._x + random(100)) - random(100), (to._y + random(100)) - random(100), to._x + to.xspeed, to._y + to.yspeed);
_parent[strName].onEnterFrame = function () {
this._alpha = this._alpha / 2;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
}
}
i = 0;
timer = 300;
ammo = 200;
_rotation = random(360);
speed = 0;
maxspeed = 10;
accelleration = 0.5;
turning = 4;
Symbol 58 MovieClip [ThunderTorpedo] Frame 10
if (_root.GetDistance(this, target) < 500) {
amount = random(2) + 1;
_root.Damage(target, amount, Firer, weaponname);
bolt(this, target);
}
_root.guidedmovement(this);
timer--;
Symbol 58 MovieClip [ThunderTorpedo] Frame 11
_root.guidedmovement(this);
Symbol 58 MovieClip [ThunderTorpedo] Frame 12
if ((timer < 0) || (ammo < 0)) {
gotoAndPlay ("fade");
} else {
gotoAndPlay ("explode");
}
Symbol 58 MovieClip [ThunderTorpedo] Frame 26
removeMovieClip(this);
stop();
Symbol 62 MovieClip [ThunderMine] Frame 1
function bolt(from, to) {
if ((((from._x != undefined) && (from.dead != true)) && (to._x != undefined)) && (to.dead != true)) {
ammo--;
i++;
strName = (_name + "bolt") + i;
_parent.createEmptyMovieClip(strName, _parent.getNextHighestDepth());
_parent[strName].lineStyle(random(3) + 2, 16777215);
_parent[strName].moveTo(from._x, from._y);
_parent[strName].curveTo((to._x + random(100)) - random(100), (to._y + random(100)) - random(100), to._x + to.xspeed, to._y + to.yspeed);
_parent[strName].onEnterFrame = function () {
this._alpha = this._alpha / 2;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
}
}
_root.weaponsound.gotoAndStop("mine");
i = 0;
timer = 300;
ammo = 100;
Symbol 62 MovieClip [ThunderMine] Frame 50
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if ((_root.GetDistance(last, obj) < 500) && (index < 5)) {
last = obj;
arrInRange[index] = obj;
index++;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
Symbol 62 MovieClip [ThunderMine] Frame 51
arrInRange = Array();
index = 0;
last = this;
checktargets();
i = 0;
while (i < arrInRange.length) {
amount = random(2) + 1;
_root.Damage(arrInRange[i], amount, Firer, weaponname);
bolt(this, arrInRange[i]);
bolt(this, arrInRange[i]);
i++;
}
timer--;
Symbol 62 MovieClip [ThunderMine] Frame 52
if ((timer < 0) || (ammo < 0)) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 62 MovieClip [ThunderMine] Frame 66
removeMovieClip(this);
stop();
Symbol 68 MovieClip [ThunderBomb] Frame 1
function bolt(from, to) {
if ((((from._x != undefined) && (from.dead != true)) && (to._x != undefined)) && (to.dead != true)) {
ammo--;
i++;
strName = (_name + "bolt") + i;
_parent.createEmptyMovieClip(strName, _parent.getNextHighestDepth());
_parent[strName].lineStyle(random(3) + 2, 16777215);
_parent[strName].moveTo(from._x, from._y);
_parent[strName].curveTo((to._x + random(100)) - random(100), (to._y + random(100)) - random(100), to._x + to.xspeed, to._y + to.yspeed);
_parent[strName].onEnterFrame = function () {
this._alpha = this._alpha / 2;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
}
}
i = 0;
timer = 300;
ammo = 100;
Symbol 68 MovieClip [ThunderBomb] Frame 50
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if (_root.GetDistance(this, obj) < 1500) {
amount = random(10) + 2;
_root.Damage(obj, amount, Firer, weaponname);
bolt(this, obj);
bolt(this, obj);
bolt(this, obj);
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
arrInRange = Array();
index = 0;
checktargets();
Symbol 68 MovieClip [ThunderBomb] Frame 51
if (arrInRange[0] != undefined) {
checktargets();
}
timer--;
_rotation = (_rotation - 1);
Symbol 68 MovieClip [ThunderBomb] Frame 52
if (timer < 0) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 68 MovieClip [ThunderBomb] Frame 80
removeMovieClip(this);
stop();
Symbol 69 MovieClip [Thunder] Frame 1
function bolt(from, to) {
if ((((from._x != undefined) && (from.dead != true)) && (to._x != undefined)) && (to.dead != true)) {
Firer.thunderammo--;
i++;
strName = (_name + "bolt") + i;
_parent.createEmptyMovieClip(strName, _parent.getNextHighestDepth());
_parent[strName].lineStyle(random(3) + 2, 16777215);
_parent[strName].moveTo(from._x, from._y);
_parent[strName].curveTo((to._x + random(100)) - random(100), (to._y + random(100)) - random(100), to._x + to.xspeed, to._y + to.yspeed);
_parent[strName].onEnterFrame = function () {
this._alpha = this._alpha / 2;
if (this._alpha < 1) {
removeMovieClip(this);
}
};
}
}
i = 0;
timer = 300;
Firer.thunderammo = 100;
Symbol 69 MovieClip [Thunder] Frame 2
function CheckHit(obj) {
if (((obj != undefined) && (obj.dead != true)) && (obj != Firer)) {
if (_root.GetDistance(last, obj) < 500) {
arrInRange[index] = obj;
index++;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
arrInRange = Array();
index = 0;
last = this;
checktargets();
Symbol 69 MovieClip [Thunder] Frame 3
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
index = 0;
checktargets();
if (arrInRange[0] != undefined) {
i = 0;
while (i < arrInRange.length) {
amount = random(2) + 1;
_root.Damage(arrInRange[i], amount, Firer, weaponname);
bolt(Firer, arrInRange[i]);
bolt(Firer, arrInRange[i]);
i++;
}
}
timer--;
Symbol 69 MovieClip [Thunder] Frame 4
if ((((timer < 0) || (Firer.thunderammo <= 0)) || (Firer.shield == undefined)) || (Firer.dead == true)) {
removeMovieClip(this);
} else {
gotoAndPlay ("zap");
}
Symbol 73 MovieClip [TeleportingCarnivore] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 73 MovieClip [TeleportingCarnivore] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
if (((timer == 150) || (timer == 100)) || (timer == 50)) {
_x = ((target._x + random(500)) - random(500));
_y = ((target._y + random(500)) - random(500));
_rotation = ((_root.GetAngle(this, target) + random(10)) - random(10));
_root.weaponsound.gotoAndStop("teleport");
}
Symbol 73 MovieClip [TeleportingCarnivore] Frame 3
gotoAndPlay (2);
Symbol 73 MovieClip [TeleportingCarnivore] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 73 MovieClip [TeleportingCarnivore] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 75 MovieClip [Teleport] Frame 1
speed = 45;
timer = 50;
Symbol 75 MovieClip [Teleport] Frame 2
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay ("explode");
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
Symbol 75 MovieClip [Teleport] Frame 3
gotoAndPlay (2);
Symbol 75 MovieClip [Teleport] Frame 4
_root.weaponsound.gotoAndStop("teleport");
Firer._x = _x;
Firer._y = _y;
Symbol 75 MovieClip [Teleport] Frame 5
removeMovieClip(this);
stop();
Symbol 79 MovieClip [Missle4] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 79 MovieClip [Missle4] Frame 2
_root.guidedmovement(this);
Symbol 79 MovieClip [Missle4] Frame 3
gotoAndPlay (2);
Symbol 79 MovieClip [Missle4] Frame 8
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 79 MovieClip [Missle4] Frame 13
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 82 MovieClip [Missle3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 82 MovieClip [Missle3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 82 MovieClip [Missle3] Frame 3
gotoAndPlay (2);
Symbol 82 MovieClip [Missle3] Frame 4
_root.CheckBlast(this, 10);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 82 MovieClip [Missle3] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 85 MovieClip [Missle2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 85 MovieClip [Missle2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 85 MovieClip [Missle2] Frame 3
gotoAndPlay (2);
Symbol 85 MovieClip [Missle2] Frame 4
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 85 MovieClip [Missle2] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 88 MovieClip [Missle1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 88 MovieClip [Missle1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 88 MovieClip [Missle1] Frame 3
gotoAndPlay (2);
Symbol 88 MovieClip [Missle1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 88 MovieClip [Missle1] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 92 MovieClip [ShieldRecharger] Frame 1
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
function CheckHit(obj) {
dist = _root.GetDistance(this, obj);
if ((dist <= 150) && (obj.shieldlevel < obj.maxshield)) {
obj.shieldlevel++;
}
}
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
if (energyleft == undefined) {
energyleft = 200;
}
if (energyleft <= 0) {
removeMovieClip(this);
}
checktargets();
_alpha = (energyleft / 2);
energyleft--;
};
Symbol 96 MovieClip [Shield] Frame 1
if (intloops == undefined) {
intloops = 0;
}
intloops++;
this.onEnterFrame = function () {
if (((intloops > 4) || (Firer.speed == undefined)) || (Firer.dead == true)) {
removeMovieClip(this);
}
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
Firer.shieldbubble = 3;
};
Symbol 96 MovieClip [Shield] Frame 201
gotoAndPlay (1);
Symbol 97 MovieClip [ReverseThrust] Frame 1
this.onEnterFrame = function () {
Firer.speed = -Firer.maxspeed;
};
Symbol 97 MovieClip [ReverseThrust] Frame 30
removeMovieClip(this);
stop();
Symbol 102 MovieClip [ProximityBlaster] Frame 1
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
_rotation = random(360);
};
Symbol 102 MovieClip [ProximityBlaster] Frame 11
_root.CheckBlast(this, 100, 0, true);
_root.explosionsound.gotoAndStop("plasma");
Symbol 102 MovieClip [ProximityBlaster] Frame 21
removeMovieClip(this);
Symbol 110 MovieClip [PlasmaRelay] Frame 1
setProperty(this, _x , Firer._x);
setProperty(this, _y , Firer._y);
setProperty(this, _rotation , Firer._rotation);
Symbol 110 MovieClip [PlasmaRelay] Frame 2
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 3
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 4
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 5
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 6
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 7
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 8
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 9
call("charging");
Symbol 110 MovieClip [PlasmaRelay] Frame 10
call("charging");
_root.weaponsound.gotoAndStop("plasmarelay");
Symbol 110 MovieClip [PlasmaRelay] Frame 11
function hit(obj) {
if (this.hitTest(obj) && (obj != Firer)) {
_root.Damage(obj, random(75), Firer, "Plasma Relay");
}
}
setProperty(this, _x , Firer._x);
setProperty(this, _y , Firer._y);
setProperty(this, _rotation , Firer._rotation);
hit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
hit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
hit(totest);
e++;
}
i++;
}
Symbol 110 MovieClip [PlasmaRelay] Frame 12
call("start");
Symbol 110 MovieClip [PlasmaRelay] Frame 13
call("start");
Symbol 110 MovieClip [PlasmaRelay] Frame 14
call("start");
Symbol 110 MovieClip [PlasmaRelay] Frame 15
call("start");
Symbol 110 MovieClip [PlasmaRelay] Frame 16
call("start");
Symbol 110 MovieClip [PlasmaRelay] Frame 17
stop();
removeMovieClip(this);
Symbol 115 MovieClip [PlasmaMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 115 MovieClip [PlasmaMine] Frame 25
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 200;
Symbol 115 MovieClip [PlasmaMine] Frame 26
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 115 MovieClip [PlasmaMine] Frame 27
gotoAndPlay ("start");
Symbol 115 MovieClip [PlasmaMine] Frame 28
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 115 MovieClip [PlasmaMine] Frame 32
removeMovieClip(this);
Symbol 120 MovieClip [Plasma] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("hit");
}
}
}
}
_root.weaponsound.gotoAndStop("plasma");
speed = 25;
timer = 100;
Symbol 120 MovieClip [Plasma] Frame 2
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay ("hit");
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 120 MovieClip [Plasma] Frame 3
gotoAndPlay (2);
Symbol 120 MovieClip [Plasma] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 120 MovieClip [Plasma] Frame 15
removeMovieClip(this);
Symbol 123 MovieClip [Photon] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 123 MovieClip [Photon] Frame 2
_root.guidedmovement(this);
Symbol 123 MovieClip [Photon] Frame 3
gotoAndPlay (2);
Symbol 123 MovieClip [Photon] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 25);
Symbol 123 MovieClip [Photon] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 132 MovieClip [CompressionBomb] Frame 1
timer = 200;
Symbol 132 MovieClip [CompressionBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 132 MovieClip [CompressionBomb] Frame 51
gotoAndPlay ("start");
Symbol 132 MovieClip [CompressionBomb] Frame 52
_width = 10000;
_height = 10000;
_root.CheckBlast(this, 750, 0, true);
_root.explosionsound.gotoAndStop("pcb");
Symbol 132 MovieClip [CompressionBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 136 MovieClip Frame 1
_root.explosionsound.gotoAndStop("electric");
Symbol 136 MovieClip Frame 2
_rotation = random(360);
Symbol 136 MovieClip Frame 3
gotoAndPlay (2);
Symbol 137 MovieClip [Orb] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Symbol 137 MovieClip [Orb] Frame 2
_root.guidedmovement(this);
Symbol 137 MovieClip [Orb] Frame 3
call("start");
Symbol 137 MovieClip [Orb] Frame 4
call("start");
Symbol 137 MovieClip [Orb] Frame 5
call("start");
Symbol 137 MovieClip [Orb] Frame 6
call("start");
Symbol 137 MovieClip [Orb] Frame 7
gotoAndPlay (2);
Symbol 137 MovieClip [Orb] Frame 8
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 137 MovieClip [Orb] Frame 13
removeMovieClip(this);
Symbol 139 MovieClip [Needle] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 139 MovieClip [Needle] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 139 MovieClip [Needle] Frame 3
gotoAndPlay (2);
Symbol 139 MovieClip [Needle] Frame 4
timer--;
_x = target._x;
_y = target._y;
target.speed = target.speed / 1.1;
if (target == _root.camerafocus) {
_root.addinfo("Movement Impaired", "#FF0000", true);
}
if ((timer < 0) || (target.speed == undefined)) {
removeMovieClip(this);
}
Symbol 139 MovieClip [Needle] Frame 5
gotoAndPlay ("explode");
Symbol 147 MovieClip [minipcb] Frame 1
timer = 300;
Symbol 147 MovieClip [minipcb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 147 MovieClip [minipcb] Frame 51
gotoAndPlay ("start");
Symbol 147 MovieClip [minipcb] Frame 52
_root.CheckBlast(this, 500, 0);
_root.explosionsound.gotoAndStop("pcb");
Symbol 147 MovieClip [minipcb] Frame 120
stop();
removeMovieClip(this);
Symbol 151 MovieClip [Mine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 151 MovieClip [Mine] Frame 12
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 151 MovieClip [Mine] Frame 13
gotoAndPlay ("start");
Symbol 151 MovieClip [Mine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 151 MovieClip [Mine] Frame 18
removeMovieClip(this);
Symbol 156 MovieClip [AlienMainGun] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
_root.Damage(totest, random(power), Firer, weaponname);
gotoAndPlay (5);
}
}
}
}
speed = 100 + Firer.speed;
power = 5;
Symbol 156 MovieClip [AlienMainGun] Frame 2
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
div = 15;
x = 0;
while (x <= div) {
setProperty(this, _y , _y + (yspeed / div));
setProperty(this, _x , _x + (xspeed / div));
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
if (tc == undefined) {
tc = -5;
}
if (tc >= 3) {
tc = 0;
_root.lasernum = _root.lasernum + 1;
newname = "trail" + _root.lasernum;
_parent.attachMovie("Trail", newname, _root.lasernum);
setProperty(_parent[newname], _x , this._x);
setProperty(_parent[newname], _y , this._y);
setProperty(_parent[newname], _rotation , this._rotation);
setProperty(_parent[newname], _alpha , this._alpha);
} else {
tc = tc + 1;
}
x++;
}
setProperty(this, _alpha , this._alpha - 10);
if (this._alpha < 1) {
removeMovieClip(this);
}
Symbol 156 MovieClip [AlienMainGun] Frame 3
call("actions");
Symbol 156 MovieClip [AlienMainGun] Frame 4
gotoAndPlay (3);
Symbol 156 MovieClip [AlienMainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 156 MovieClip [AlienMainGun] Frame 7
removeMovieClip(this);
Symbol 159 MovieClip [MainGun] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
_root.Damage(totest, random(power), Firer, weaponname);
gotoAndPlay (5);
}
}
}
}
speed = 100 + Firer.speed;
power = 5;
Symbol 159 MovieClip [MainGun] Frame 2
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
div = 15;
x = 0;
while (x <= div) {
setProperty(this, _y , _y + (yspeed / div));
setProperty(this, _x , _x + (xspeed / div));
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
if (tc == undefined) {
tc = -5;
}
if (tc >= 3) {
tc = 0;
_root.lasernum = _root.lasernum + 1;
newname = "trail" + _root.lasernum;
_parent.attachMovie("Trail", newname, _root.lasernum);
setProperty(_parent[newname], _x , this._x);
setProperty(_parent[newname], _y , this._y);
setProperty(_parent[newname], _rotation , this._rotation);
setProperty(_parent[newname], _alpha , this._alpha);
} else {
tc = tc + 1;
}
x++;
}
setProperty(this, _alpha , this._alpha - 10);
if (this._alpha < 1) {
removeMovieClip(this);
}
Symbol 159 MovieClip [MainGun] Frame 3
call("actions");
Symbol 159 MovieClip [MainGun] Frame 4
gotoAndPlay (3);
Symbol 159 MovieClip [MainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 159 MovieClip [MainGun] Frame 7
removeMovieClip(this);
Symbol 163 MovieClip [Magnetic Mine] Frame 1
speed = 0;
maxspeed = 15;
accelleration = 0.5;
turning = 20;
timer = 300;
_root.weaponsound.gotoAndStop("orb");
Instance of Symbol 161 MovieClip in Symbol 163 MovieClip [Magnetic Mine] Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.speed);
}
Symbol 163 MovieClip [Magnetic Mine] Frame 12
_root.guidedmovement(this);
Symbol 163 MovieClip [Magnetic Mine] Frame 13
gotoAndPlay ("start");
Symbol 163 MovieClip [Magnetic Mine] Frame 14
timer--;
if ((timer <= 0) || (target.speed == undefined)) {
gotoAndPlay ("fade");
}
if (target == _root.camerafocus) {
_root.addinfo("Movement Impaired", "#FF0000", true);
}
target.speed = target.speed / 1.5;
_x = target._x;
_y = target._y;
Symbol 163 MovieClip [Magnetic Mine] Frame 15
gotoAndPlay ("explode");
Symbol 163 MovieClip [Magnetic Mine] Frame 25
removeMovieClip(this);
Symbol 166 MovieClip [LRPhotonTorpedo] Frame 1
speed = 1;
maxspeed = 28;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 166 MovieClip [LRPhotonTorpedo] Frame 2
_root.guidedmovement(this);
Symbol 166 MovieClip [LRPhotonTorpedo] Frame 3
gotoAndPlay (2);
Symbol 166 MovieClip [LRPhotonTorpedo] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 15);
Symbol 166 MovieClip [LRPhotonTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 174 MovieClip [LongrangeLaser] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
_root.Damage(totest, random(15), Firer, weaponname);
_root.explosionsound.gotoAndStop("laserhit");
gotoAndPlay ("explode");
}
}
}
}
speed = 110;
timer = 40;
_root.weaponsound.gotoAndStop("disc");
Symbol 174 MovieClip [LongrangeLaser] Frame 2
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay ("explode");
}
div = 5;
x = 0;
while (x <= div) {
setProperty(this, _y , _y + (yspeed / div));
setProperty(this, _x , _x + (xspeed / div));
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
x++;
}
Symbol 174 MovieClip [LongrangeLaser] Frame 3
gotoAndPlay (2);
Symbol 174 MovieClip [LongrangeLaser] Frame 4
Symbol 174 MovieClip [LongrangeLaser] Frame 9
removeMovieClip(this);
Symbol 175 MovieClip [Stealth] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LBSS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealthtime = 960;
Symbol 181 MovieClip [StealthMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 200;
Symbol 181 MovieClip [StealthMine] Frame 14
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if (_root.GetDistance(this, obj) < 150) {
if (obj == _root.camerafocus) {
_root.addinfo("LBSS Stealth System Activated", "#00FFFF", true);
}
obj.stealthtime = 720;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
checktargets();
Symbol 181 MovieClip [StealthMine] Frame 18
removeMovieClip(this);
Symbol 182 MovieClip [Stealth2] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LASS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealth2time = 600;
Symbol 185 MovieClip [Javelin] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
}
speed = 10;
timer = 100;
shiftx = random(20) - random(20);
shifty = random(20) - random(20);
_root.weaponsound.gotoAndStop("javelin");
Symbol 185 MovieClip [Javelin] Frame 2
yspeed = (speed * Math.sin((_rotation - 90) / 57.2957795130823)) + shifty;
xspeed = (speed * Math.cos((_rotation - 90) / 57.2957795130823)) + shiftx;
_root.Exhaust(this);
shiftx = shiftx / 1.2;
shifty = shifty / 1.2;
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay ("explode");
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
if (speed < 35) {
speed = speed * 1.2;
}
Symbol 185 MovieClip [Javelin] Frame 3
gotoAndPlay (2);
Symbol 185 MovieClip [Javelin] Frame 4
_root.explosionsound.gotoAndStop("torpedo");
_root.CheckBlast(this, random(25) + 50);
Symbol 185 MovieClip [Javelin] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 187 MovieClip [InverseGravityField] Frame 1
function CheckHit(obj) {
if (((((obj != undefined) && (obj.dead != true)) && (obj != Firer)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 5000) {
s = (5000 - dist) / 300;
a = _root.GetAngle(obj, this);
ys = (-s) * Math.sin((a - 90) / 57.2957795130823);
xs = (-s) * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
_root.weaponsound.gotoAndStop("vortex");
speed = 20;
timer = 200;
this.onEnterFrame = function () {
_x = Firer._x;
_y = Firer._y;
};
Symbol 187 MovieClip [InverseGravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 187 MovieClip [InverseGravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 187 MovieClip [InverseGravityField] Frame 41
removeMovieClip(this);
Symbol 191 MovieClip [Hornet] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
yspeed = 0;
xspeed = 0;
_root.weaponsound.gotoAndStop("torpedo");
timer = 200;
setProperty(this, _rotation , random(360));
Symbol 191 MovieClip [Hornet] Frame 2
_rotation = _root.GetAngle(this, target);
yspeed = yspeed + (1 * Math.sin((_rotation - 90) / 57.2957795130823));
xspeed = xspeed + (1 * Math.cos((_rotation - 90) / 57.2957795130823));
if (timer <= 0) {
gotoAndPlay ("explode");
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
_root.Exhaust(this);
CheckHit(target);
Symbol 191 MovieClip [Hornet] Frame 3
gotoAndPlay ("start");
Symbol 191 MovieClip [Hornet] Frame 4
_root.CheckBlast(this, 35, 10);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 191 MovieClip [Hornet] Frame 11
removeMovieClip(this);
Symbol 195 MovieClip [HomingMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
dist = _root.GetDistance(this, totest);
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
} else if (dist < 200) {
s = 5;
a = _root.GetAngle(this, totest);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
_x = (_x + xs);
_y = (_y + ys);
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 195 MovieClip [HomingMine] Frame 25
function CheckHit(totest) {
if (totest != undefined) {
dist = _root.GetDistance(this, totest);
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
} else if (dist < 200) {
s = 5;
a = _root.GetAngle(this, totest);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
_x = (_x + xs);
_y = (_y + ys);
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 195 MovieClip [HomingMine] Frame 27
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 195 MovieClip [HomingMine] Frame 28
gotoAndPlay ("start");
Symbol 195 MovieClip [HomingMine] Frame 29
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 195 MovieClip [HomingMine] Frame 33
removeMovieClip(this);
Symbol 196 MovieClip [Hologram] Frame 1
Firer.HologramTime = 600;
Symbol 200 MovieClip [HiddenMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 350;
Symbol 200 MovieClip [HiddenMine] Frame 12
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 200 MovieClip [HiddenMine] Frame 13
gotoAndPlay ("start");
Symbol 200 MovieClip [HiddenMine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 200 MovieClip [HiddenMine] Frame 18
removeMovieClip(this);
Symbol 205 MovieClip [HeatDisc] Frame 1
_root.weaponsound.gotoAndStop("heatdisc");
_rotation = random(360);
speed = random(5);
maxspeed = 20 + random(5);
accelleration = 1;
turning = 14;
timer = 300;
Instance of Symbol 202 MovieClip in Symbol 205 MovieClip [HeatDisc] Frame 1
onClipEvent (load) {
setProperty(this, _rotation , random(360));
timer = 5;
}
onClipEvent (enterFrame) {
timer = timer + 1;
setProperty(this, _rotation , _rotation + timer);
}
Symbol 205 MovieClip [HeatDisc] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 205 MovieClip [HeatDisc] Frame 3
gotoAndPlay (2);
Symbol 205 MovieClip [HeatDisc] Frame 4
this.onEnterFrame = function () {
_x = target._x;
_y = target._y;
_root.Damage(target, random(3), Firer, weaponname);
};
Symbol 205 MovieClip [HeatDisc] Frame 22
stop();
removeMovieClip(this);
Symbol 210 MovieClip [GravityMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
} else {
dist = _root.GetDistance(this, totest);
if (((dist < 1000) && (totest.Meteorite != true)) && (totest.maxspeed > 0)) {
s = (1000 - dist) / 300;
a = _root.GetAngle(totest, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
totest._x = totest._x + xs;
totest._y = totest._y + ys;
}
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 210 MovieClip [GravityMine] Frame 19
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 210 MovieClip [GravityMine] Frame 20
gotoAndPlay ("start");
Symbol 210 MovieClip [GravityMine] Frame 21
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 60);
Symbol 210 MovieClip [GravityMine] Frame 25
removeMovieClip(this);
Symbol 212 MovieClip [GravityField] Frame 1
function CheckHit(obj) {
if (((((obj != undefined) && (obj.dead != true)) && (obj != Firer)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 100) {
} else if (dist < 5000) {
s = (5000 - dist) / 600;
a = _root.GetAngle(obj, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
_root.weaponsound.gotoAndStop("vortex");
speed = 20;
timer = 200;
this.onEnterFrame = function () {
_x = Firer._x;
_y = Firer._y;
};
Symbol 212 MovieClip [GravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 212 MovieClip [GravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 212 MovieClip [GravityField] Frame 41
removeMovieClip(this);
Symbol 213 MovieClip [FieldHop] Frame 1
_root.weaponsound.gotoAndStop("teleport");
Firer._x = (_x + random(2000)) - random(2000);
Firer._y = (_y + random(2000)) - random(2000);
Firer._rotation = random(360);
Symbol 213 MovieClip [FieldHop] Frame 2
removeMovieClip(this);
stop();
Symbol 214 MovieClip [EngineOverdrive] Frame 1
if (timer == undefined) {
timer = 300;
}
timer--;
if (timer < 0) {
removeMovieClip(this);
}
if (Firer.speed < 30) {
Firer.speed = Firer.speed + 2;
}
Symbol 214 MovieClip [EngineOverdrive] Frame 2
gotoAndPlay (1);
Symbol 215 MovieClip [EnergyCell] Frame 1
energyleft = 100;
Symbol 215 MovieClip [EnergyCell] Frame 2
if ((Firer.energy < 100) && (energyleft > 0)) {
Firer.energy++;
energyleft--;
} else {
removeMovieClip(this);
}
Symbol 215 MovieClip [EnergyCell] Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip [EMPTorpedo] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 218 MovieClip [EMPTorpedo] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 218 MovieClip [EMPTorpedo] Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip [EMPTorpedo] Frame 4
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if (_root.GetDistance(this, obj) < 150) {
secs = random(5) + 5;
if (obj == _root.camerafocus) {
_root.addinfo(("System power failure. Estimated repair time: " + secs) + " seconds", "#FF0000", true);
}
obj.powerouttime = 24 * secs;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
checktargets();
Symbol 218 MovieClip [EMPTorpedo] Frame 14
removeMovieClip(this);
Symbol 221 MovieClip [EMPBomb] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
timer = 330;
setProperty(this, _rotation , ranndom(360));
Symbol 221 MovieClip [EMPBomb] Frame 26
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 221 MovieClip [EMPBomb] Frame 27
gotoAndPlay ("start");
Symbol 221 MovieClip [EMPBomb] Frame 28
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if (_root.GetDistance(this, obj) < 150) {
secs = random(5) + 5;
if (obj == _root.camerafocus) {
_root.addinfo(("System power failure. Estimated repair time: " + secs) + " seconds", "#FF0000", true);
}
obj.powerouttime = 24 * secs;
obj.stealthtime = 0;
obj.stealth2time = 0;
obj.Hologramtime = 0;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
checktargets();
Symbol 221 MovieClip [EMPBomb] Frame 38
removeMovieClip(this);
Symbol 223 MovieClip [EMPBlast] Frame 1
function CheckHit(obj) {
if (((obj != undefined) && (obj.dead != true)) && (obj != Firer)) {
if (_root.GetDistance(this, obj) < 200) {
secs = random(5) + 5;
if (obj == _root.camerafocus) {
_root.addinfo(("System power failure. Estimated repair time: " + secs) + " seconds", "#FF0000", true);
}
obj.powerouttime = 24 * secs;
obj.stealthtime = 0;
obj.stealth2time = 0;
obj.Hologramtime = 0;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
checktargets();
Symbol 223 MovieClip [EMPBlast] Frame 11
removeMovieClip(this);
Symbol 226 MovieClip [ElectroField] Frame 1
_root.CheckBlast(this, 35, 100, true);
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
_rotation = random(360);
};
Symbol 226 MovieClip [ElectroField] Frame 7
removeMovieClip(this);
Symbol 228 MovieClip [ElectroMine] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
gotoAndPlay ("explode");
}
}
}
_root.weaponsound.gotoAndStop("mine");
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
timer = 400;
Symbol 228 MovieClip [ElectroMine] Frame 12
setProperty(this, _rotation , _rotation + spin);
timer--;
if (timer <= 0) {
gotoAndPlay ("explode");
}
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
Symbol 228 MovieClip [ElectroMine] Frame 13
gotoAndPlay ("start");
Symbol 228 MovieClip [ElectroMine] Frame 14
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 228 MovieClip [ElectroMine] Frame 19
removeMovieClip(this);
Symbol 230 MovieClip [HumanDrone] Frame 1
speed = 20;
timer = 200;
Symbol 230 MovieClip [HumanDrone] Frame 2
speed = speed / 1.03;
if (speed < 2) {
gotoAndPlay ("explode");
}
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
setProperty(this, _rotation , (_rotation + Math.random()) - Math.random());
Symbol 230 MovieClip [HumanDrone] Frame 3
gotoAndPlay (2);
Symbol 230 MovieClip [HumanDrone] Frame 4
if (Firer == _root.camerafocus) {
_root.CreateAIShip(Firer.Team, _x, _y, 6);
}
removeMovieClip(this);
Symbol 238 MovieClip [Disruptor] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Instance of Symbol 233 MovieClip in Symbol 238 MovieClip [Disruptor] Frame 1
onClipEvent (enterFrame) {
_rotation = random(360);
_alpha = random(100);
}
Symbol 238 MovieClip [Disruptor] Frame 2
_root.guidedmovement(this);
Symbol 238 MovieClip [Disruptor] Frame 3
gotoAndPlay (2);
Symbol 238 MovieClip [Disruptor] Frame 4
dist = _root.GetDistance(this, target);
if (dist < 150) {
s = (5000 - dist) / 300;
a = _root.GetAngle(target, this);
ys = (-s) * Math.sin((a - 90) / 57.2957795130823);
xs = (-s) * Math.cos((a - 90) / 57.2957795130823);
target._x = target._x + xs;
target._y = target._y + ys;
}
Symbol 238 MovieClip [Disruptor] Frame 5
_root.CheckBlast(this, 50);
call("explode");
Symbol 238 MovieClip [Disruptor] Frame 6
call("explode");
Symbol 238 MovieClip [Disruptor] Frame 7
call("explode");
Symbol 238 MovieClip [Disruptor] Frame 26
removeMovieClip(this);
Symbol 242 MovieClip [Damage Bubble] Frame 1
if (intloops == undefined) {
intloops = 0;
}
intloops++;
intD = 0;
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
if (((intloops > 4) || (Firer.speed == undefined)) || (Firer.dead == true)) {
removeMovieClip(this);
}
intD++;
if (intD == 3) {
intD = 0;
_root.CheckBlast(this, random(10), 0, true);
}
};
Symbol 242 MovieClip [Damage Bubble] Frame 201
gotoAndPlay (1);
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 90);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 60);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 120);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 30);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Symbol 248 MovieClip [Disc] Frame 1
_root.weaponsound.gotoAndStop("disc");
speed = 1;
maxspeed = 40;
accelleration = 0.1;
turning = 2;
timer = 300;
Symbol 248 MovieClip [Disc] Frame 2
if (timer < 250) {
accelleration = 1;
}
_root.guidedmovement(this);
if (timer == 200) {
_root.weaponsound.gotoAndStop("disczoom");
}
Symbol 248 MovieClip [Disc] Frame 3
gotoAndPlay (2);
Symbol 248 MovieClip [Disc] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 25 + random(25));
Symbol 248 MovieClip [Disc] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 251 MovieClip [ConcentratedPhotonTorpedo] Frame 1
speed = 1;
maxspeed = 5;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 251 MovieClip [ConcentratedPhotonTorpedo] Frame 2
_root.guidedmovement(this);
Symbol 251 MovieClip [ConcentratedPhotonTorpedo] Frame 3
gotoAndPlay (2);
Symbol 251 MovieClip [ConcentratedPhotonTorpedo] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 75);
Symbol 251 MovieClip [ConcentratedPhotonTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 254 MovieClip [Carnivore3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 254 MovieClip [Carnivore3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 254 MovieClip [Carnivore3] Frame 3
gotoAndPlay (2);
Symbol 254 MovieClip [Carnivore3] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 254 MovieClip [Carnivore3] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 257 MovieClip [Carnivore2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 257 MovieClip [Carnivore2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 257 MovieClip [Carnivore2] Frame 3
gotoAndPlay (2);
Symbol 257 MovieClip [Carnivore2] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 257 MovieClip [Carnivore2] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 260 MovieClip [Carnivore1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 260 MovieClip [Carnivore1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 260 MovieClip [Carnivore1] Frame 3
gotoAndPlay (2);
Symbol 260 MovieClip [Carnivore1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 260 MovieClip [Carnivore1] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 264 MovieClip [BlackholeBomb] Frame 1
speed = 20;
timer = 200;
Instance of Symbol 19 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 264 MovieClip [BlackholeBomb] Frame 2
speed = speed / 1.03;
if (speed < 2) {
gotoAndPlay ("explode");
}
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
setProperty(this, _rotation , (_rotation + Math.random()) - Math.random());
Symbol 264 MovieClip [BlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 264 MovieClip [BlackholeBomb] Frame 4
function CheckHit(obj) {
if (((((obj != undefined) && (obj.dead != true)) && (obj != Firer)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 100) {
_root.Damage(obj, random(100 - dist), Firer, weaponname);
} else if (dist < 5000) {
s = (5000 - dist) / 200;
a = _root.GetAngle(obj, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
_root.weaponsound.gotoAndStop("vortex");
Instance of Symbol 3 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 264 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 264 MovieClip [BlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 264 MovieClip [BlackholeBomb] Frame 23
gotoAndPlay ("blackholeloop");
Symbol 264 MovieClip [BlackholeBomb] Frame 42
_root.CheckBlast(this, 500);
Symbol 264 MovieClip [BlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 275 MovieClip [TractorBeam] Frame 1
_rotation = _root.GetAngle(this, target);
fixedrotation = target._rotation;
Symbol 275 MovieClip [TractorBeam] Frame 2
_alpha = (_alpha - 2);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
target.speed = 0;
if (target == _root.camerafocus) {
_root.addinfo("Movement Impaired", "#FF0000", true);
}
target._rotation = fixedrotation;
dist = _root.GetDistance(Firer, target);
s = 2;
a = _root.GetAngle(target, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
if (target.maxspeed > 0) {
target._x = target._x + xs;
target._y = target._y + ys;
}
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 275 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 275 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 275 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 275 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 275 MovieClip [TractorBeam] Frame 3
gotoAndPlay (2);
Symbol 276 MovieClip [ShieldSapBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 276 MovieClip [ShieldSapBeam] Frame 2
_alpha = (_alpha - 10);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
amount = random(_alpha / 13);
_root.Damage(target, amount, Firer, weaponname);
if (target.shieldlevel > 0) {
Firer.shieldlevel = Firer.shieldlevel + amount;
}
if (Firer.shieldlevel > Firer.maxshield) {
Firer.shieldlevel = Firer.maxshield;
}
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 276 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 276 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 276 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 276 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 276 MovieClip [ShieldSapBeam] Frame 3
gotoAndPlay (2);
Symbol 277 MovieClip [MiningBeam3] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 277 MovieClip [MiningBeam3] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
mine = random(12);
if ((target.Ore - mine) < 0) {
mine = target.Ore;
target.Ore = 0;
}
if (Firer == _root.camerafocus) {
if (_root.Mined < Firer.miningcapacity) {
_root.SetMined(_root.Mined + mine);
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.SetMined(Firer.miningcapacity);
}
}
target.Ore = target.Ore - Math.round(mine / 4);
Firer.speed = Firer.speed / 1.3;
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 277 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 277 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 277 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 277 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 277 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 277 MovieClip [MiningBeam3] Frame 3
gotoAndPlay (2);
Symbol 278 MovieClip [MiningBeam2] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 278 MovieClip [MiningBeam2] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
mine = random(4);
if ((target.Ore - mine) < 0) {
mine = target.Ore;
}
if (Firer == _root.camerafocus) {
if (_root.Mined < Firer.miningcapacity) {
_root.SetMined(_root.Mined + mine);
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.SetMined(Firer.miningcapacity);
}
}
target.Ore = target.Ore - Math.round(mine / 2);
Firer.speed = Firer.speed / 1.3;
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 278 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 278 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 278 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 278 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 278 MovieClip [MiningBeam2] Frame 3
gotoAndPlay (2);
Symbol 279 MovieClip [MiningBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 279 MovieClip [MiningBeam] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
mine = random(2);
if ((target.Ore - mine) < 0) {
mine = target.Ore;
}
if (Firer == _root.camerafocus) {
if (_root.Mined < Firer.miningcapacity) {
_root.SetMined(_root.Mined + mine);
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.SetMined(Firer.miningcapacity);
}
}
target.Ore = target.Ore - mine;
Firer.speed = Firer.speed / 1.3;
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 279 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 279 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 279 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 279 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 279 MovieClip [MiningBeam] Frame 3
gotoAndPlay (2);
Symbol 280 MovieClip [Beam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 280 MovieClip [Beam] Frame 2
_alpha = (_alpha - 10);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
_root.Damage(target, random(_alpha / 4), Firer, weaponname);
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 280 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 280 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 280 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 280 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 280 MovieClip [Beam] Frame 3
gotoAndPlay (2);
Symbol 281 MovieClip [LargeLaserBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 281 MovieClip [LargeLaserBeam] Frame 2
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
_root.Damage(target, 1, Firer, weaponname);
if ((((target.shieldlevel == undefined) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 281 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 281 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 281 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 281 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 281 MovieClip [LargeLaserBeam] Frame 3
gotoAndPlay (2);
Symbol 282 MovieClip [EnergyBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 282 MovieClip [EnergyBeam] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
drainamount = random(_alpha / 20);
dist = _root.GetDistance(Firer, target);
if ((target.energy - drainamount) > 0) {
target.energy = target.energy - drainamount;
if ((Firer.energy + drainamount) < 100) {
Firer.energy = Firer.energy + drainamount;
} else {
Firer.energy = 100;
}
} else {
target.energy = 0;
}
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 282 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 282 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 282 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 282 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 282 MovieClip [EnergyBeam] Frame 3
gotoAndPlay (2);
Symbol 283 MovieClip [DrainingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
Symbol 283 MovieClip [DrainingBeam] Frame 2
_alpha = (_alpha - 2);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
drainamount = random(_alpha / 20);
target.speed = target.speed / _alpha;
dist = _root.GetDistance(Firer, target);
if ((target.energy - drainamount) > 0) {
target.energy = target.energy - drainamount;
} else {
target.energy = 0;
}
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 283 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 283 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 283 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 283 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 283 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 283 MovieClip [DrainingBeam] Frame 3
gotoAndPlay (2);
Symbol 284 MovieClip [DamagingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 284 MovieClip [DamagingBeam] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
drainamount = random(_alpha / 20);
_root.Damage(target, drainamount, Firer, weaponname);
dist = _root.GetDistance(Firer, target);
if ((target.energy - drainamount) > 0) {
target.energy = target.energy - drainamount;
} else {
target.energy = 0;
}
if (((((_alpha <= 0) || (target == undefined)) || (Firer == undefined)) || (target.dead == true)) || (Firer.dead == true)) {
removeMovieClip(this);
}
Instance of Symbol 266 MovieClip in Symbol 284 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 270 MovieClip in Symbol 284 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 284 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 272 MovieClip in Symbol 284 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 274 MovieClip [BeamSparks] in Symbol 284 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 284 MovieClip [DamagingBeam] Frame 3
gotoAndPlay (2);
Symbol 287 MovieClip [ATTorpedo] Frame 1
speed = 1;
maxspeed = 13;
accelleration = 1;
turning = 4;
timer = 300;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 287 MovieClip [ATTorpedo] Frame 2
target = Firer.lockedtarget;
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 287 MovieClip [ATTorpedo] Frame 3
gotoAndPlay (2);
Symbol 287 MovieClip [ATTorpedo] Frame 4
_root.CheckBlast(this, 20);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 287 MovieClip [ATTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 289 MovieClip [HumanSubStation] Frame 1
big = true;
Team = "Human";
Symbol 291 MovieClip [AlienSubStation] Frame 1
big = true;
Team = "Alien";
Symbol 294 MovieClip [Smoke] Frame 13
removeMovieClip(this);
Symbol 300 MovieClip [Scrap] Frame 1
_rotation = (_rotation + spin);
_x = (_x + xspeed);
_y = (_y + yspeed);
spin = spin / 1.05;
xspeed = Math.round(xspeed / 1.1);
yspeed = Math.round(yspeed / 1.1);
if (timer == undefined) {
timer = 0;
}
timer++;
if (timer > 100) {
_xscale = (_xscale-1);
_yscale = (_yscale-1);
}
if (_xscale <= 1) {
removeMovieClip(this);
}
if ((Math.random() > 0.8) && (timer < 50)) {
_root.Exhaust(this);
}
Instance of Symbol 299 MovieClip in Symbol 300 MovieClip [Scrap] Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
_rotation = random(360);
}
Symbol 300 MovieClip [Scrap] Frame 2
gotoAndPlay (1);
Symbol 309 MovieClip [Explosion] Frame 41
removeMovieClip(this);
Symbol 312 MovieClip [Exhaust] Frame 11
removeMovieClip(this);
Symbol 322 MovieClip [Crate] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if (_root.Collision(this, totest)) {
if (cratetype == 2) {
if (totest.shieldlevel < totest.maxshield) {
totest.shieldlevel = totest.maxshield;
if (totest == _root.camerafocus) {
_root.addinfo("Shields restored", "#FF00FF");
}
removeMovieClip(this);
}
} else if (cratetype == 3) {
if (totest == _root.camerafocus) {
_root.SetBounty(_root.killmoney + cratevalue);
if (totest == _root.camerafocus) {
_root.addinfo(cratevalue + " extra bounty collected", "#FF00FF");
}
}
removeMovieClip(this);
} else if (cratetype == 4) {
i = 0;
while (i <= 100) {
rnd = random(10);
if (totest.SecondaryWeaponNums[rnd] != undefined) {
arrWeapon = _root.arrWeapons[totest.SecondaryWeaponNums[rnd]].split("|");
if (totest.SecondaryWeaponsAmmo[rnd] >= 0) {
if (totest.SecondaryWeaponsAmmo[rnd] < Number(arrWeapon[2])) {
totest.SecondaryWeaponsAmmo[rnd] = Number(arrWeapon[2]);
if (totest == _root.camerafocus) {
_root.addinfo(totest.SecondaryWeaponNames[rnd] + " reloaded", "#FF00FF");
}
removeMovieClip(this);
break;
}
}
}
i++;
}
} else if (cratetype == 5) {
if (totest.energy < 100) {
totest.energy = 100;
if (totest == _root.camerafocus) {
_root.addinfo("Energy recharged", "#FF00FF");
}
removeMovieClip(this);
}
} else if (cratetype == 6) {
if ((totest.shieldlevel < totest.maxshield) || (totest.energy < 100)) {
totest.shieldlevel = totest.maxshield;
totest.energy = 100;
if (totest == _root.camerafocus) {
_root.addinfo("Shields restored and energy recharged", "#FF00FF");
}
removeMovieClip(this);
}
} else if (cratetype == 7) {
i = 0;
while (i <= 10) {
rnd = i;
if (totest.SecondaryWeaponNums[rnd] != undefined) {
arrWeapon = _root.arrWeapons[totest.SecondaryWeaponNums[rnd]].split("|");
if (totest.SecondaryWeaponsAmmo[rnd] >= 0) {
if (totest.SecondaryWeaponsAmmo[rnd] < Number(arrWeapon[2])) {
totest.SecondaryWeaponsAmmo[rnd] = Number(arrWeapon[2]);
}
}
}
i++;
}
removeMovieClip(this);
if (totest == _root.camerafocus) {
_root.addinfo("All weapons reloaded", "#FF00FF");
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
}
timer = 400;
spin = random(10) - random(10);
_rotation = random(360);
this.onEnterFrame = function () {
_rotation = (_rotation + spin);
spin = spin / 1.2;
if (timer > 0) {
gotoAndStop(cratetype);
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
timer--;
} else {
if (timer == 0) {
gotoAndPlay ("fade");
}
timer--;
}
};
Symbol 322 MovieClip [Crate] Frame 34
removeMovieClip(this);
Symbol 323 MovieClip [BlackHole] Frame 1
function CheckHit(obj) {
if ((((obj != undefined) && (obj.dead != true)) && (obj.Meteorite != true)) && (obj.maxspeed > 0)) {
dist = _root.GetDistance(this, obj);
if (dist < 400) {
_root.Damage(obj, random(400 - dist), this, weaponname);
}
s = (20000 - dist) / 2000;
a = _root.GetAngle(obj, this);
ys = s * Math.sin((a - 90) / 57.2957795130823);
xs = s * Math.cos((a - 90) / 57.2957795130823);
obj._x = obj._x + xs;
obj._y = obj._y + ys;
}
}
function checktargets() {
CheckHit(_parent.myship);
i = 0;
while (i <= _root.highestsocket) {
CheckHit(_parent["ship" + i]);
e = 0;
while (e < _root.MaxAIShips) {
totest = _parent[(("AI_" + i) + "_") + e];
CheckHit(totest);
e++;
}
i++;
}
}
shipname = "Black hole";
checktargets();
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 3 MovieClip in Symbol 323 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 323 MovieClip [BlackHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 328 MovieClip Frame 1
Team = "Human";
Symbol 333 MovieClip [Big Station] Frame 1
big = true;
Team = "Human";
sector = _root.Sector;
Symbol 339 MovieClip [Alien Station] Frame 1
big = true;
Team = "Alien";
Symbol 341 MovieClip [Meteorite] Frame 1
Team = "";
Meteorite = true;
shield = "Meteorite";
Ore = random(180) + 20;
if (_root.SectorType == "Mining") {
Ore = Ore + random(1000);
}
OrigOre = Ore;
intTimer = 0;
_width = (random(100) + 100);
_height = (random(100) + 100);
myColorTransform = new Object();
myColorTransform = {rb:_root.rb / 1.5, gb:_root.gb / 1.5, bb:_root.bb / 1.5};
myColor = new Color(this);
myColor.setTransform(myColorTransform);
Symbol 341 MovieClip [Meteorite] Frame 2
intTimer++;
if (intTimer > 100) {
intTimer = 0;
_root.sendcommand("MeteoritePosition", (((((((((_name + "|") + _x) + "|") + _y) + "|") + _width) + "|") + _height) + "|") + _rotation);
}
Symbol 341 MovieClip [Meteorite] Frame 3
gotoAndPlay (2);
Symbol 388 MovieClip Frame 1
this.onEnterFrame = function () {
if (mynum != undefined) {
gotoAndStop(Number(mynum) + 2);
} else {
weaponnum = _parent._parent.SecondaryWeaponNums[_name];
if ((((weaponnum != undefined) && (weaponnum != "")) && (weaponnum != "NaN")) && (!isNaN(weaponnum))) {
_visible = true;
gotoAndStop(Number(weaponnum) + 2);
} else {
_visible = false;
stop();
}
}
};
Symbol 393 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 406 MovieClip Frame 1
rank = _root.GetRank(_parent._parent.kills);
if (_parent._parent == camerafocus) {
if ((_root.prevrank != undefined) && (_root.prevrank != rank)) {
_root.addtonews((_root.MyName + " has been promoted to ") + arrHumanRanks[rank - 1], "00FF00", _root.GangID);
}
}
prevrank = rank;
gotoAndStop(rank + 1);
Symbol 409 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 422 MovieClip Frame 1
rank = _root.GetRank(_parent._parent.kills);
if (_parent._parent == camerafocus) {
if ((_root.prevrank != undefined) && (_root.prevrank != rank)) {
_root.addtonews((_root.MyName + " has been promoted to ") + arrAlienRanks[rank - 1], "00FF00", _root.GangID);
}
}
prevrank = rank;
gotoAndStop(rank + 1);
Symbol 425 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 428 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 431 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 435 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 438 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 440 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 444 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 447 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 450 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 454 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 457 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 461 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 464 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 469 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 472 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 475 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 479 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 483 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 486 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 491 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 495 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 500 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 503 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 506 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 508 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 510 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 516 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 520 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 523 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 527 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 530 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 534 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 539 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 543 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 547 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 553 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 22
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 24
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 26
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 29
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 406 MovieClip in Symbol 560 MovieClip Frame 42
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Symbol 562 MovieClip Frame 1
if (_alpha > 1) {
_alpha = (_alpha / 1.1);
}
Symbol 562 MovieClip Frame 2
gotoAndPlay (1);
Symbol 567 MovieClip Frame 1
if ((_parent == _root.camerafocus) || (_parent.fordisplay == true)) {
playername = "";
myteam = "";
} else {
playername = _parent.playername;
if (_parent.Team == _root.camerafocus.Team) {
myteam = "<font color=\"#33FF99\">Friendly</font>";
} else if ((_parent.Team != "") && (_parent.Team != undefined)) {
myteam = "<font color=\"#FF0000\">Hostile</font>";
}
if (_parent.GangName == undefined) {
_parent.GangName = "";
}
gangname = _parent.GangName;
}
Symbol 569 MovieClip [Ship] Frame 1
if ((setup == true) && (fordisplay != true)) {
if ((shieldlevel < (maxshield / 7)) && (shieldlevel > 0)) {
_root.Smoke(this, ((maxshield / 10) - shieldlevel) * 4);
}
if (AI == true) {
_root.AI(this);
} else if (this == _parent.myship) {
_root.playercontrol(this);
}
_root.ShipMovement(this, m);
myname = _name;
pingtimer++;
if (Ping == undefined) {
Ping = 0;
}
if ((Controller == _root.myplayernumber) && (_root.multiplayer)) {
if ((Ping > 0) && (dead != true)) {
p = pingtimer;
pingtimer = 0;
if (intTimer == undefined) {
intTimer = 0;
}
intTimer++;
if (intTimer > 50) {
if (this == _parent.myship) {
_root.sendcommand("SetWeapons", _root.WeaponsString("ship" + String(_root.myplayernumber), this));
} else {
_root.sendcommand("SetWeapons", _root.WeaponsString(_name, this));
}
intTimer = 0;
} else if (shieldlevel > 0) {
GangID = Number(0 + GangID);
_root.sendcommand("MoveShip", (((((((((((((((((((((((((((((((((AIPlayer + "|") + _x) + "|") + _y) + "|") + _rotation) + "|") + speed) + "|") + m) + "|") + Team) + "|") + p) + "|") + shiptype) + "|") + shieldlevel) + "|") + energy) + "|") + lockedtarget._name) + "|") + playername) + "|") + UserID) + "|") + GangID) + "|") + colour) + "|") + GangName) + "|") + kills);
}
}
}
}
if ((setup == true) && (dead != true)) {
_visible = true;
} else {
_visible = false;
}
Instance of Symbol 560 MovieClip "inner" in Symbol 569 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 562 MovieClip "shield" in Symbol 569 MovieClip [Ship] Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (((_parent.inner._height > theheight) || (_parent.inner._width > thewidth)) || (theheight == undefined)) {
theheight = _parent.inner._height;
thewidth = _parent.inner._width;
}
if (theheight > thewidth) {
_height = (theheight + 5);
_width = (theheight + 5);
} else {
_height = (thewidth + 5);
_width = (thewidth + 5);
}
}
Instance of Symbol 567 MovieClip in Symbol 569 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , -_parent._rotation);
}
Symbol 569 MovieClip [Ship] Frame 2
if (stealthtime > 0) {
gotoAndPlay (3);
} else if (stealth2time > 0) {
gotoAndPlay (7);
} else if (HologramTime > 0) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Symbol 569 MovieClip [Ship] Frame 3
call("action");
Symbol 569 MovieClip [Ship] Frame 4
call("loop");
Symbol 569 MovieClip [Ship] Frame 5
call("action");
Instance of Symbol 341 MovieClip [Meteorite] in Symbol 569 MovieClip [Ship] Frame 5
/* no clip actions */
Instance of Symbol 560 MovieClip "inner" in Symbol 569 MovieClip [Ship] Frame 5
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Symbol 569 MovieClip [Ship] Frame 6
call("loop");
Symbol 569 MovieClip [Ship] Frame 7
call("action");
Instance of Symbol 560 MovieClip "inner" in Symbol 569 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 560 MovieClip "inner" in Symbol 569 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Instance of Symbol 562 MovieClip "shield" in Symbol 569 MovieClip [Ship] Frame 7
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_parent.ship.inner._height > _parent.ship.inner._width) {
_height = (_parent.inner._height + 5);
_width = (_parent.inner._height + 5);
} else {
_height = (_parent.inner._width + 5);
_width = (_parent.inner._width + 5);
}
}
Symbol 569 MovieClip [Ship] Frame 8
call("loop");
Symbol 583 MovieClip Frame 68
parent.dispatchEvent(new Event("voice"));
Symbol 583 MovieClip Frame 171
_root.play();
stop();
Symbol 602 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk", "_top");
}
Symbol 612 MovieClip Frame 1
if (_root.MyTeam == "Alien") {
gotoAndStop (2);
} else if (_root.MyTeam == "Human") {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
Symbol 614 MovieClip Frame 1
themessage = _parent.themessage;
Symbol 615 MovieClip Frame 25
stop();
Symbol 630 Button
on (release) {
getURL ("http://www.starfighterinfinity.com/", "_blank");
}
Symbol 635 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk", "_blank");
}
Symbol 636 Button
on (release) {
_root.Server = serveraddr.text;
gotoAndStop ("options");
}
Symbol 637 Button
on (release) {
gotoAndStop ("howto");
}
Symbol 639 Button
on (release) {
if (newChar) {
_parent.gotoAndStop("Guest");
} else {
trace("Start Game as: " + charName);
_root.loadCharacter(charName);
}
}
Symbol 644 Button
on (release) {
_root.clearData();
}
Symbol 645 Button
on (release) {
gotoAndStop (5);
}
Symbol 653 Button
on (release) {
if (entername.text != "") {
_root.MyShipType = 1;
_root.MyTeam = "Human";
if (entername.text == "###test###") {
_root.SetKills(6500);
_root.SetMoney(500000);
_root.disablemultiplayer = true;
_root.SetName("TESTING");
} else {
_root.SetName(entername.text);
}
_root.QuadrantRow = 15;
_root.QuadrantCol = 19;
_root.gotoAndStop("HumanShop");
}
}
Symbol 654 Button
on (release) {
if (entername.text != "") {
if (entername.text == "###test###") {
_root.SetKills(12801);
_root.SetMoney(500000);
_root.disablemultiplayer = true;
_root.SetName("TESTING");
} else {
_root.SetName(entername.text);
}
_root.MyShipType = 5;
_root.MyTeam = "Alien";
_root.QuadrantCol = 3;
_root.QuadrantRow = 4;
_root.gotoAndStop("AlienShop");
}
}
Symbol 657 Button
on (release) {
gotoAndStop (1);
}
Symbol 667 Button
on (release) {
if ((entername.text != "") && ((((enterpassword.text != "") && (enterpassword.text.indexOf(" ") < 0)) && (enterpassword.text.indexOf("\"") < 0)) && (enterpassword.text.indexOf("'") < 0))) {
newname = entername.text;
newpassword = enterpassword.text;
newemail = enteremail.text;
newcountry = entercountry.text;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.username = newname;
mySharedObject.data.password = newpassword;
gotoAndStop (2);
}
}
Symbol 669 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 672 Button
on (release) {
_parent.gotoAndStop(3);
}
Symbol 673 Button
on (release) {
newTeam = "Human";
gotoAndPlay (3);
}
Symbol 674 Button
on (release) {
newTeam = "Alien";
gotoAndPlay (3);
}
Symbol 677 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 679 Button
on (release) {
gotoAndStop (1);
}
Symbol 683 Button
on (release) {
gotoAndStop (1);
}
Symbol 684 MovieClip Frame 1
Complete = undefined;
stop();
Symbol 684 MovieClip Frame 3
executed == undefined;
intTimer = 0;
attempts = 0;
trace((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=new&u=" + newname) + "&p=") + newpassword) + "&e=") + newemail) + "&c=") + _url) + "&t=") + newTeam) + "&") + Math.random());
loadVariables ((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=new&u=" + newname) + "&p=") + newpassword) + "&e=") + newemail) + "&c=") + _url) + "&t=") + newTeam) + "&") + Math.random(), this);
Symbol 684 MovieClip Frame 4
intTimer++;
if (Complete != undefined) {
if (Complete == "OK") {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
}
if (intTimer > 300) {
intTimer = 0;
attempts++;
if (attempts < 3) {
loadVariables ((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=new&u=" + newname) + "&p=") + newpassword) + "&e=") + newemail) + "&c=") + _url) + "&t=") + newTeam) + "&") + Math.random(), this);
} else {
gotoAndStop (8);
}
}
Symbol 684 MovieClip Frame 5
gotoAndPlay (4);
Symbol 694 Button
on (release) {
gotoAndStop (3);
}
Symbol 695 Button
on (release) {
gotoAndStop (2);
}
Symbol 696 Button
on (release) {
gotoAndStop (4);
}
Symbol 700 MovieClip Frame 1
if (eval (variable) == "LOW") {
gotoAndStop (2);
} else if (eval (variable) == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
Symbol 700 MovieClip Frame 2
Set(variable, "LOW");
trace(eval (variable));
Symbol 700 MovieClip Frame 3
Set(variable, "MEDIUM");
trace(eval (variable));
Symbol 700 MovieClip Frame 4
Set(variable, "HIGH");
trace(eval (variable));
Symbol 704 Button
on (release) {
gotoAndStop (3);
}
Symbol 706 Button
on (release) {
gotoAndStop (2);
}
Symbol 707 MovieClip Frame 1
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 707 MovieClip Frame 2
Set(variable, true);
Symbol 707 MovieClip Frame 3
Set(variable, false);
Symbol 711 Button
on (release) {
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.MenuQuality = _root.MenuQuality;
mySharedObject.data.InGameQuality = _root.InGameQuality;
mySharedObject.data.OptionFragments = _root.OptionFragments;
mySharedObject.data.OptionExhaust = _root.OptionExhaust;
mySharedObject.data.OptionMusic = _root.OptionMusic;
gotoAndStop (1);
}
Symbol 715 Button
on (release) {
gotoAndStop (2);
}
Symbol 719 Button
on (release) {
gotoAndStop ("controls");
}
Symbol 721 Button
on (release) {
gotoAndStop ("aimofthegame");
}
Symbol 725 Button
on (release) {
gotoAndStop ("earning");
}
Symbol 726 Button
on (release) {
gotoAndStop ("multiplayer");
}
Symbol 727 Button
on (release) {
gotoAndStop ("rules");
}
Symbol 729 Button
on (release) {
back();
}
Symbol 731 Button
on (release) {
getURL ("http://www.disputedgalaxy.com/instructions", "_blank");
}
Symbol 733 Button
on (release) {
gotoAndStop ("travelling");
}
Symbol 735 Button
on (release) {
gotoAndStop ("arrows");
}
Symbol 740 Button
on (release) {
gotoAndStop (1);
}
Symbol 754 MovieClip Frame 1
stop();
Symbol 755 MovieClip Frame 1
mySharedObject = SharedObject.getLocal("userData");
if (mySharedObject.data.OptionMusic != undefined) {
trace("Saved Data Found");
_root.MenuQuality = mySharedObject.data.MenuQuality;
_root.InGameQuality = mySharedObject.data.InGameQuality;
_root.OptionFragments = mySharedObject.data.OptionFragments;
_root.OptionExhaust = mySharedObject.data.OptionExhaust;
_root.OptionMusic = mySharedObject.data.OptionMusic;
} else {
_root.MenuQuality = "HIGH";
_root.InGameQuality = "HIGH";
_root.OptionFragments = true;
_root.OptionExhaust = true;
_root.OptionMusic = true;
}
i = 1;
while (i <= 4) {
trace((i + ": ") + this["new" + i]);
if ((i - 1) > _root.characters.length) {
this["new" + i]._visible = false;
} else if ((i - 1) >= _root.characters.length) {
this["new" + i].txt.text = "> New Character...";
this["new" + i].newChar = true;
} else {
this["new" + i].txt.text = "> " + _root.characters[i - 1];
this["new" + i].newChar = false;
this["new" + i].charName = _root.characters[i - 1];
}
i++;
}
stop();
Instance of Symbol 700 MovieClip in Symbol 755 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.InGameQuality";
}
Instance of Symbol 700 MovieClip in Symbol 755 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.MenuQuality";
}
Instance of Symbol 707 MovieClip in Symbol 755 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionFragments";
}
Instance of Symbol 707 MovieClip in Symbol 755 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionExhaust";
}
Instance of Symbol 707 MovieClip in Symbol 755 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionMusic";
}
Instance of Symbol 754 MovieClip in Symbol 755 MovieClip Frame 6
onClipEvent (load) {
function back() {
_parent.gotoAndStop(1);
}
}
Symbol 764 MovieClip Frame 1
vari = _root[(("P_" + _root.QuadrantRow) + "_") + _root.QuadrantCol];
if (vari.indexOf("|") > 0) {
this.onEnterFrame = function () {
if (((_x > -400) || (_x < 1200)) && ((_y > -400) || (_y < 1200))) {
onscreen = true;
gotoAndStop (1);
} else {
onscreen = false;
gotoAndStop (2);
}
};
arrPlanet = vari.split("|");
planetname = arrPlanet[0];
colour = arrPlanet[1];
rb = -Number(arrPlanet[1]);
gb = -Number(arrPlanet[2]);
bb = -Number(arrPlanet[3]);
inner._width = Number(arrPlanet[4]);
inner._height = Number(arrPlanet[4]);
if (_root.MyName != "Guest_wealth") {
_x = (random(10000) - random(10000));
_y = (random(10000) - random(10000));
}
myColorTransform = new Object();
myColorTransform = {rb:rb, gb:gb, bb:bb};
myColor = new Color(inner);
myColor.setTransform(myColorTransform);
} else {
gotoAndStop (2);
}
Symbol 768 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_root.GetDistance(this, _root.camerafocus) < 700) && (_root.camerafocus.status != "warping")) {
_visible = true;
} else {
visible = false;
}
if (String(_name) == "3") {
_y = (_root.QuadrantCentreY + 10000);
_x = _root.camerafocus._x;
} else if (String(_name) == "2") {
_x = (_root.QuadrantCentreX + 10000);
_y = _root.camerafocus._y;
} else if (String(_name) == "1") {
_y = (_root.QuadrantCentreY - 10000);
_x = _root.camerafocus._x;
} else if (String(_name) == "4") {
_x = (_root.QuadrantCentreX - 10000);
_y = _root.camerafocus._y;
}
};
Symbol 769 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.camerafocus.status == "warping") {
_visible = false;
}
};
Instance of Symbol 569 MovieClip [Ship] "myship" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
colour = _root.shipcolour;
GangID = _root.GangID;
GangName = _root.GangName;
playername = _root.MyName;
kills = _root.Kills;
UserID = _root.UserID;
_root.dangerlevel = (20 - _root.QuadrantRow) / 20;
if (_root.HyperSpaceTime > 0) {
_root.HyperSpaceTime--;
}
_root.threatrating = _root.GetThreatRating(_root.QuadrantRow);
_root.QuadrantCentreX = 10000;
_root.QuadrantCentreY = 0;
if (((_root.myplayernumber != undefined) || (_root.multiplayer == false)) && (setup != true)) {
_root.SetupShip(this, _root.MyShipType);
_root.addMyWeapons(this);
if (_root.WarpAngle != undefined) {
_rotation = _root.WarpAngle;
_root.WarpAngle = undefined;
speed = 15;
if (_root.WarpSide == 1) {
_x = ((_root.QuadrantCentreX + random(3000)) - random(3000));
_y = (_root.QuadrantCentreY - 9050);
} else if (_root.WarpSide == 2) {
_x = (_root.QuadrantCentreX + 9050);
_y = ((_root.QuadrantCentreY + random(3000)) - random(3000));
} else if (_root.WarpSide == 3) {
_x = ((_root.QuadrantCentreX + random(3000)) - random(3000));
_y = (_root.QuadrantCentreY + 9050);
} else if (_root.WarpSide == 4) {
_x = (_root.QuadrantCentreX - 9050);
_y = ((_root.QuadrantCentreY + random(3000)) - random(3000));
}
} else {
_x = _root.QuadrantCentreX;
_y = _root.QuadrantCentreY;
}
if (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "Station") {
if (_root.QuadrantRow >= 10) {
s = _root.CreateAIShip("Human", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "Big Station");
s.swapDepths(this);
_root.SpaceStation = s;
_root.CreateAIShip("Human", _root.QuadrantCentreX + 357, _root.QuadrantCentreY + 357, 9);
_root.CreateAIShip("Human", _root.QuadrantCentreX + 357, _root.QuadrantCentreY - 357, 9);
_root.CreateAIShip("Human", _root.QuadrantCentreX - 357, _root.QuadrantCentreY + 357, 9);
_root.CreateAIShip("Human", _root.QuadrantCentreX - 357, _root.QuadrantCentreY - 357, 9);
} else {
s = _root.CreateAIShip("Alien", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "Alien Station");
s.swapDepths(this);
_root.SpaceStation = s;
_root.CreateAIShip("Alien", _root.QuadrantCentreX + 290, _root.QuadrantCentreY + 290, 8);
_root.CreateAIShip("Alien", _root.QuadrantCentreX + 290, _root.QuadrantCentreY - 290, 8);
_root.CreateAIShip("Alien", _root.QuadrantCentreX - 290, _root.QuadrantCentreY + 290, 8);
_root.CreateAIShip("Alien", _root.QuadrantCentreX - 290, _root.QuadrantCentreY - 290, 8);
}
} else if (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "SubStation") {
if (_root.QuadrantRow >= 10) {
s = _root.CreateAIShip("Human", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "HumanSubStation");
s.swapDepths(this);
_root.SpaceStation = s;
d = _root.CreateAIShip("Human", _root.QuadrantCentreX, _root.QuadrantCentreY, 9);
d.swapDepths(this);
} else {
s = _root.CreateAIShip("Alien", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "AlienSubStation");
s.swapDepths(this);
_root.SpaceStation = s;
d = _root.CreateAIShip("Alien", _root.QuadrantCentreX, _root.QuadrantCentreY, 8);
d.swapDepths(this);
}
} else if (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "BlackHole") {
s = _root.CreateAIShip("", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "BlackHole");
s.swapDepths(this);
} else if (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "WhiteHole") {
s = _root.CreateAIShip("", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "WhiteHole");
s.swapDepths(this);
} else if (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "WormHole") {
s = _root.CreateAIShip("", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "WormHole");
s.swapDepths(this);
}
Team = _root.MyTeam;
Controller = _root.myplayernumber;
AIPlayer = -1;
n = 0;
if (Number(_root.NumberOfPlayers) == 1) {
if (_root.SectorType == "Mining") {
_root.Meteorites = 8;
} else {
_root.Meteorites = random(6) + 2;
}
i = 0;
while (i <= _root.Meteorites) {
_root.CreateMeteorite("Meteorite" + i, (_root.QuadrantCentreX + random(10000)) - random(10000), (_root.QuadrantCentreY + random(10000)) - random(10000));
i++;
}
rndevent = random(4);
if ((_root.SectorType == "Station") || (((_root.MissionActive == true) && (_root.DestRow == _root.QuadrantRow)) && (_root.DestCol == _root.QuadrantCol))) {
rndevent = -1;
}
if (((rndevent == 0) && (_root.multiplayer == false)) && (_root[(("S_" + _root.QuadrantRow) + "_") + _root.QuadrantCol] == "")) {
_root.addinfo("Ambush Warning!", "#FFFF00");
iniships = 4 + random(3);
startx = (_root.QuadrantCentreX + random(8000)) - random(8000);
starty = (_root.QuadrantCentreY + random(8000)) - random(8000);
theshiptype = random(_root.Rank) + 1;
i = 0;
while (i <= iniships) {
if (Team == "Alien") {
if (theshiptype >= _root.arrHumanShips.length) {
theshiptype = _root.arrHumanShips.length - 1;
}
_root.CreateAIShip("Human", (startx + random(1000)) - random(1000), (starty + random(1000)) - random(1000), _root.arrHumanShips[theshiptype]);
}
if (Team == "Human") {
if (theshiptype >= _root.arrAlienShips.length) {
theshiptype = _root.arrAlienShips.length - 1;
}
_root.CreateAIShip("Alien", (startx + random(1000)) - random(1000), (starty + random(1000)) - random(1000), _root.arrAlienShips[theshiptype]);
}
i++;
}
} else if (_root.myplayernumber == 0) {
iniships = random(4);
i = 0;
while (i <= iniships) {
if (Math.random() >= _root.dangerlevel) {
_root.CreateAIShip("Human", (_root.QuadrantCentreX + random(8000)) - random(8000), (_root.QuadrantCentreY + random(8000)) - random(8000), 0);
} else {
_root.CreateAIShip("Alien", (_root.QuadrantCentreX + random(8000)) - random(8000), (_root.QuadrantCentreY + random(8000)) - random(8000), 0);
}
i++;
}
}
} else {
_root.Meteorites = 8;
}
}
if ((setup == true) && (dead != true)) {
_visible = true;
intDeadCount = 0;
} else {
_visible = false;
intDeadCount++;
if ((intDeadCount > 120) && (_root.respawning != true)) {
_root.Lives--;
_root.Deaths++;
if (_root.Lives <= 0) {
_root.SaveData(this);
_root.gotoAndStop("gameover");
} else {
_root.respawning = true;
_root.SaveData(this);
_root.respawn.gotoAndStop(2);
}
}
}
if (_root.multiplayer == false) {
maxaiships = 8;
} else {
maxaiships = Math.round(4 / _root.NumberOfPlayers);
}
shipcount = _root.FriendlyCount + _root.EnemyCount;
if (_root.gamemode == 2) {
if ((Math.random() > 0.997) && (_root.EnemyCount < maxaiships)) {
_root.CreateAIShip(_root.MyEnemy, undefined, undefined, 0);
}
} else if ((Math.random() > 0.997) && (shipcount < maxaiships)) {
if (Math.random() >= _root.dangerlevel) {
_root.CreateAIShip("Human", undefined, undefined, 0);
} else {
_root.CreateAIShip("Alien", undefined, undefined, 0);
}
}
}
Instance of Symbol 768 MovieClip "1" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.GetDistance(this, _root.camerafocus) < 700) {
_visible = true;
} else {
visible = false;
}
_y = (_root.QuadrantCentreY - 10000);
_x = _root.camerafocus._x;
}
Symbol 787 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 1
stop();
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
distance = _root.GetDistance(_root.camerafocus, _root.SpaceStation);
if (((_root.SpaceStation != undefined) && (_root.MissionActive != true)) && (!isNaN(distance))) {
_visible = true;
_rotation = _root.GetAngle(_root.camerafocus, _root.SpaceStation);
} else {
_visible = false;
}
}
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
distancetoleft = Math.abs(_root.camerafocus._x - (_root.QuadrantCentreX - 10000));
distancetoright = Math.abs(_root.camerafocus._x - (_root.QuadrantCentreX + 10000));
distancetotop = Math.abs(_root.camerafocus._y - (_root.QuadrantCentreY - 10000));
distancetobottom = Math.abs(_root.camerafocus._y - (_root.QuadrantCentreY + 10000));
_rotation = 270;
distancetoedge = distancetoleft;
if (distancetoright < distancetoedge) {
_rotation = 90;
distancetoedge = distancetoright;
}
if (distancetotop < distancetoedge) {
_rotation = 0;
distancetoedge = distancetotop;
}
if (distancetobottom < distancetoedge) {
_rotation = 180;
distancetoedge = distancetobottom;
}
distance = Math.ceil(distancetoedge);
if (distance <= 3000) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.SecondaryWeapons[_root.camerafocus.SecondaryWeaponSelected].indexOf("MiningBeam") < 0) {
_visible = false;
} else {
closestdist = 0;
closest = undefined;
ms = _root.Meteorites;
dist = 0;
if (ms == undefined) {
ms = 0;
}
e = 0;
while (e <= ms) {
met = _root.game["Meteorite" + e];
dist = _root.GetDistance(_root.camerafocus, met);
if (((dist < closestdist) || (closestdist == 0)) && (met.Ore > 0)) {
closestdist = dist;
closest = met;
}
e++;
}
if (closest != undefined) {
_rotation = _root.GetAngle(_root.camerafocus, closest);
distance = closestdist;
_visible = true;
} else {
_visible = false;
}
}
}
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.closestenemy.Ping == undefined) {
_visible = false;
} else {
_visible = true;
}
_rotation = _root.GetAngle(_root.camerafocus, _root.closestenemy);
distance = _root.closestdistance;
}
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget == undefined) {
_visible = false;
} else {
_visible = true;
}
_rotation = _root.GetAngle(_root.camerafocus, _root.camerafocus.lockedtarget);
distance = _root.GetDistance(_root.camerafocus, _root.camerafocus.lockedtarget);
}
Instance of Symbol 816 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.MissionAngle != undefined) && (_root.MissionActive == true)) {
_visible = true;
_rotation = _root.MissionAngle;
distance = _root.MissionDistance;
} else {
_visible = false;
}
}
Symbol 821 Button
on (keyPress "w") {
if (_root.disablecontrols != true) {
_root.hud.quads.gotoAndPlay(3);
}
}
on (keyPress "z") {
if (_root.disablecontrols != true) {
_root.FireWeapon(_root.camerafocus, _root.camerafocus.SecondaryWeaponSelected, _root.multiplayer);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
on (keyPress "1") {
if (_root.camerafocus.SecondaryWeapons[1] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 1;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "2") {
if (_root.camerafocus.SecondaryWeapons[2] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 2;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "3") {
if (_root.camerafocus.SecondaryWeapons[3] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 3;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "4") {
if (_root.camerafocus.SecondaryWeapons[4] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 4;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "5") {
if (_root.camerafocus.SecondaryWeapons[5] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 5;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "6") {
if (_root.camerafocus.SecondaryWeapons[6] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 6;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "7") {
if (_root.camerafocus.SecondaryWeapons[7] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 7;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "8") {
if (_root.camerafocus.SecondaryWeapons[8] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 8;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "9") {
if (_root.camerafocus.SecondaryWeapons[9] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 9;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "0") {
if (_root.camerafocus.SecondaryWeapons[0] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 0;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "p") {
if (_root.disablecontrols != true) {
_root.ToggleAutoPilot();
}
}
on (keyPress "v") {
_root.SelectNextWeapon();
}
Symbol 822 Button
on (keyPress "a") {
gotoAndStop (1);
}
on (release, keyPress "s") {
gotoAndStop (2);
}
on (release, keyPress "d") {
gotoAndStop (3);
}
on (release, keyPress "f") {
gotoAndStop (4);
}
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 51
stop();
Symbol 833 Button
on (release) {
gotoAndStop (1);
}
Symbol 834 Button
on (release) {
gotoAndStop (2);
}
Symbol 835 Button
on (release) {
gotoAndStop (3);
}
Symbol 836 Button
on (release) {
gotoAndStop (4);
}
Symbol 839 Button
on (keyPress "<Enter>") {
gotoAndStop (2);
}
on (keyPress "a") {
_parent.gotoAndStop(1);
}
on (release, keyPress "s") {
if (_parent.large == true) {
_parent.gotoAndStop(5);
} else {
_parent.gotoAndStop(2);
}
}
on (release, keyPress "d") {
if (_parent.large == true) {
_parent.gotoAndStop(6);
} else {
_parent.gotoAndStop(3);
}
}
on (release, keyPress "f") {
if (_parent.large == true) {
_parent.gotoAndStop(7);
} else {
_parent.gotoAndStop(4);
}
}
Symbol 840 Button
on (keyPress "w") {
if (_root.disablecontrols != true) {
_root.hud.quads.gotoAndPlay(3);
}
}
on (keyPress "z") {
if (_root.disablecontrols != true) {
_root.FireWeapon(_root.camerafocus, _root.camerafocus.SecondaryWeaponSelected, _root.multiplayer);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
on (keyPress "1") {
if (_root.camerafocus.SecondaryWeapons[1] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 1;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "2") {
if (_root.camerafocus.SecondaryWeapons[2] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 2;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "3") {
if (_root.camerafocus.SecondaryWeapons[3] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 3;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "4") {
if (_root.camerafocus.SecondaryWeapons[4] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 4;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "5") {
if (_root.camerafocus.SecondaryWeapons[5] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 5;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "6") {
if (_root.camerafocus.SecondaryWeapons[6] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 6;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "7") {
if (_root.camerafocus.SecondaryWeapons[7] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 7;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "8") {
if (_root.camerafocus.SecondaryWeapons[8] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 8;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "9") {
if (_root.camerafocus.SecondaryWeapons[9] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 9;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "0") {
if (_root.camerafocus.SecondaryWeapons[0] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 0;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "p") {
if (_root.disablecontrols != true) {
_root.ToggleAutoPilot();
}
}
on (keyPress "v") {
_root.SelectNextWeapon();
}
Symbol 842 Button
on (release) {
if (_parent._parent.chattype == "sector") {
chat = _root.sectorchat;
} else if (_parent._parent.chattype == "all") {
chat = _root.teamchat;
} else {
chat = _root.gangchat;
}
play();
}
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
if (chat != "") {
url = (((((("http://69.56.136.242/sf2/abuse.asp?u=" + escape(_root.MyName)) + "&c=") + _parent._parent.chattype) + "&a=") + escape(chat)) + "&") + Math.random();
trace(url);
loadVariables (url, this);
}
Symbol 845 MovieClip Frame 136
reported = undefined;
gotoAndStop (1);
Symbol 848 Button
on (keyPress "<Enter>") {
if (saytext.text != "") {
if (saytext.text.toLowerCase().substring(0, 7) == "/ignore") {
if (_root.strignorelist == undefined) {
_root.strignorelist = "";
}
ignorename = saytext.text.toLowerCase().substring(8, saytext.text.length);
_root.strignorelist = _root.strignorelist + (ignorename + "|");
if (_parent.chattype == "gang") {
_root.gangchat = (("<font color=\"#99FF00\">Ignoring: " + ignorename) + "</font><br>") + _root.gangchat;
}
if (_parent.chattype == "sector") {
_root.sectorchat = (("<font color=\"#99FF00\">Ignoring: " + ignorename) + "</font><br>") + _root.sectorchat;
}
if (_parent.chattype == "all") {
_root.teamchat = (("<font color=\"#99FF00\">Ignoring: " + ignorename) + "</font><br>") + _root.teamchat;
}
} else if (saytext.text.toLowerCase().substring(0, 9) == "/unignore") {
_root.strignorelist = "";
if (_parent.chattype == "gang") {
_root.gangchat = "<font color=\"#99FF00\">Ignoring nobody</font><br>" + _root.gangchat;
}
if (_parent.chattype == "sector") {
_root.sectorchat = "<font color=\"#99FF00\">Ignoring nobody</font><br>" + _root.sectorchat;
}
if (_parent.chattype == "all") {
_root.teamchat = "<font color=\"#99FF00\">Ignoring nobody</font><br>" + _root.teamchat;
}
} else if (saytext.text != _root.lastsay) {
if ((_parent.chattype == "gang") && (_root.GangID == 0)) {
_root.gangchat = "You are currently not a member of a gang. Join a gang at a station to use gang chat.";
} else {
_root.lastsay = saytext.text;
_parent.sendcommand("Say", (((((((((((((_parent.chattype + "|") + _root.MyTeam) + "|") + _root.QuadrantRow) + "|") + _root.QuadrantCol) + "|") + _root.ChatFilter(saytext.text)) + "|") + _root.MyName) + "|") + _root.UserID) + "|") + _root.GangID);
}
}
saytext.text = "";
}
gotoAndStop (1);
}
Symbol 850 Button
on (keyPress "a") {
_parent.gotoAndStop(1);
}
on (release, keyPress "s") {
_parent.gotoAndStop(2);
}
on (release, keyPress "d") {
_parent.gotoAndStop(3);
}
on (release, keyPress "f") {
_parent.gotoAndStop(4);
}
Symbol 851 MovieClip Frame 1
_root.disablecontrols = false;
if (_root.Guest == true) {
gotoAndStop (3);
} else {
stop();
}
Symbol 851 MovieClip Frame 2
_root.disablecontrols = true;
Selection.setFocus("saytext");
Selection.setSelection();
Symbol 855 Button
on (release) {
gotoAndStop (5);
}
Symbol 858 Button
on (release) {
gotoAndStop (6);
}
Symbol 861 Button
on (release) {
gotoAndStop (7);
}
Symbol 868 Button
on (keyPress "w") {
if (_root.disablecontrols != true) {
_root.hud.quads.gotoAndPlay(3);
}
}
on (keyPress "z") {
if (_root.disablecontrols != true) {
_root.FireWeapon(_root.camerafocus, _root.camerafocus.SecondaryWeaponSelected, _root.multiplayer);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
on (keyPress "1") {
if (_root.camerafocus.SecondaryWeapons[1] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 1;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "2") {
if (_root.camerafocus.SecondaryWeapons[2] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 2;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "3") {
if (_root.camerafocus.SecondaryWeapons[3] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 3;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "4") {
if (_root.camerafocus.SecondaryWeapons[4] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 4;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "5") {
if (_root.camerafocus.SecondaryWeapons[5] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 5;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "6") {
if (_root.camerafocus.SecondaryWeapons[6] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 6;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "7") {
if (_root.camerafocus.SecondaryWeapons[7] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 7;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "8") {
if (_root.camerafocus.SecondaryWeapons[8] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 8;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "9") {
if (_root.camerafocus.SecondaryWeapons[9] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 9;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "0") {
if (_root.camerafocus.SecondaryWeapons[0] != undefined) {
_root.camerafocus.lockedtarget = undefined;
_root.camerafocus.SecondaryWeaponSelected = 0;
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
_root.hud.weaponselect._alpha = 100;
}
on (keyPress "p") {
if (_root.disablecontrols != true) {
_root.ToggleAutoPilot();
}
}
on (keyPress "v") {
_root.SelectNextWeapon();
}
on (keyPress "b") {
_root.camerafocus.lockedtarget = undefined;
}
Symbol 870 Button
on (release, keyPress "s") {
intConnectionTimeout = 100;
socket = new XMLSocket();
socket.onXML = newXML;
socket.onConnect = newConnection;
socket.onClose = endConnection;
socket.connect(_root.Server, arrPorts[attempt]);
blnHasRecievedData = false;
mychatnumber = undefined;
chatsetup = true;
gotoAndStop (1);
}
Symbol 871 MovieClip Frame 1
function chatstatusmessage(statusmessage) {
_root.sectorchat = (("<font color=\"#FF6600\"><b>" + statusmessage) + "</b></font><br>") + _root.sectorchat;
sectornotify.gotoAndPlay(2);
}
function quitgame() {
socket.close();
}
function newXML(doc) {
blnHasRecievedData = true;
if (doc.toString().substring(0, 2) == "S|") {
} else if (doc.toString().indexOf("has joined") > -1) {
if (mychatnumber == undefined) {
arrMessageSplit = doc.toString().split(" ");
mychatnumber = Number(arrMessageSplit[0]);
}
} else if (doc.toString().indexOf(": ") > -1) {
arrCommand = doc.toString().split(": ");
GameCommand(arrCommand[0], arrCommand[1], arrCommand[2]);
trace(arrCommand);
}
}
function newConnection(success) {
trace("Connected to chat ok");
}
function endConnection() {
trace("Ended");
}
function sendcommand(command, vars) {
tosend = new XML((command + ": ") + vars);
socket.send(tosend);
}
function GameCommand(player, command, vars) {
arrVars = vars.split("|");
arrIgnoreList = _root.strignorelist.split("|");
blnIgnoreMessage = false;
i = 0;
while (i < (arrIgnoreList.length - 1)) {
if (arrVars[5].toLowerCase() == arrIgnoreList[i].toLowerCase()) {
blnIgnoreMessage = true;
trace("Ignoring User:" + arrVars[5]);
}
i++;
}
if (!blnIgnoreMessage) {
if (player == mychatnumber) {
fontcolour = "#FFFFFF";
} else if (arrVars[1] == _root.MyTeam) {
fontcolour = "#33FF99";
} else {
fontcolour = "#FF0000";
}
if (((((arrVars[4].indexOf("<") > -1) || (arrVars[4].indexOf(".exe") > -1)) || (arrVars[4].indexOf(".zip") > -1)) || (arrVars[4].indexOf(".rar") > -1)) || (Number(arrVars[6]) == 0)) {
} else if (((((arrVars[0].indexOf("<") > -1) || (arrVars[0].indexOf(".exe") > -1)) || (arrVars[0].indexOf(".zip") > -1)) || (arrVars[0].indexOf(".rar") > -1)) || (Number(arrVars[6]) == 0)) {
trace("GOT IT");
} else if (arrVars[4].toLowerCase().substring(0, 8) == "/private") {
arrMessage = arrVars[4].split(" ");
themessage = _root.Replace(arrVars[4], ("/private " + arrMessage[1]) + " ", "");
if ((_root.Replace(arrMessage[1].toLowerCase(), "_", " ") == _root.Replace(_root.MyName.toLowerCase(), "_", " ")) || (player == mychatnumber)) {
if (_root[(("S_" + arrVars[2]) + "_") + arrVars[3]].indexOf("PvP") > -1) {
mp = " MP";
} else {
mp = "";
}
if (((arrVars[0] == "sector") && (Number(arrVars[2]) == _root.QuadrantRow)) && (Number(arrVars[3]) == _root.QuadrantCol)) {
sectornotify.gotoAndPlay(2);
_root.sectorchat = (((("<font color=\"#66FFFF\"><b>Private from " + arrVars[5]) + ": ") + themessage) + "</b></font><br>") + _root.sectorchat;
_root.othersound.gotoAndStop("chatmessage");
}
if (arrVars[0] == "all") {
teamnotify.gotoAndPlay(2);
_root.teamchat = ((((((((("<font color=\"#66FFFF\"><b>Private from " + arrVars[5]) + " (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + themessage) + "</b></font><br>") + _root.teamchat;
_root.othersound.gotoAndStop("chatmessage");
}
if ((arrVars[0] == "gang") && (Number(arrVars[7]) == Number(_root.GangID))) {
gangnotify.gotoAndPlay(2);
_root.gangchat = ((((((((("<font color=\"#66FFFF\"><b>Private from " + arrVars[5]) + " (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + themessage) + "</b></font><br>") + _root.gangchat;
_root.othersound.gotoAndStop("chatmessage");
}
}
} else if (arrVars[4].toLowerCase().substring(0, 5) == "/team") {
themessage = _root.Replace(arrVars[4], "/team ", "");
if (arrVars[1] == _root.MyTeam) {
if (_root[(("S_" + arrVars[2]) + "_") + arrVars[3]].indexOf("PvP") > -1) {
mp = " MP";
} else {
mp = "";
}
if (((arrVars[0] == "sector") && (Number(arrVars[2]) == _root.QuadrantRow)) && (Number(arrVars[3]) == _root.QuadrantCol)) {
sectornotify.gotoAndPlay(2);
_root.sectorchat = (((("<font color=\"#FFFF00\">" + arrVars[5]) + " (Team Only): ") + themessage) + "</font><br>") + _root.sectorchat;
_root.othersound.gotoAndStop("chatmessage");
}
if (arrVars[0] == "all") {
teamnotify.gotoAndPlay(2);
_root.teamchat = ((((((((("<font color=\"#FFFF00\">" + arrVars[5]) + " (Team Only) (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + themessage) + "</font><br>") + _root.teamchat;
_root.othersound.gotoAndStop("chatmessage");
}
if ((arrVars[0] == "gang") && (Number(arrVars[7]) == Number(_root.GangID))) {
gangnotify.gotoAndPlay(2);
_root.gangchat = ((((((((("<font color=\"#FFFF00\">" + arrVars[5]) + " (Team Only) (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + themessage) + "</font><br>") + _root.gangchat;
_root.othersound.gotoAndStop("chatmessage");
}
}
} else if (arrVars[4].toLowerCase().substring(0, 1) == "/") {
} else if (command == "Say") {
if (_root[(("S_" + arrVars[2]) + "_") + arrVars[3]].indexOf("PvP") > -1) {
mp = " MP";
} else {
mp = "";
}
if (((arrVars[0] == "sector") && (Number(arrVars[2]) == _root.QuadrantRow)) && (Number(arrVars[3]) == _root.QuadrantCol)) {
sectornotify.gotoAndPlay(2);
_root.sectorchat = (((((("<font color=\"" + fontcolour) + "\">") + arrVars[5]) + ": ") + arrVars[4]) + "</font><br>") + _root.sectorchat;
_root.othersound.gotoAndStop("chatmessage");
}
if (arrVars[0] == "all") {
teamnotify.gotoAndPlay(2);
_root.teamchat = ((((((((((("<font color=\"" + fontcolour) + "\">") + arrVars[5]) + " (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + arrVars[4]) + "</font><br>") + _root.teamchat;
_root.othersound.gotoAndStop("chatmessage");
}
if ((arrVars[0] == "gang") && (Number(arrVars[7]) == Number(_root.GangID))) {
gangnotify.gotoAndPlay(2);
_root.gangchat = ((((((((((("<font color=\"" + fontcolour) + "\">") + arrVars[5]) + " (S-") + arrVars[2]) + "-") + arrVars[3]) + mp) + "): ") + arrVars[4]) + "</font><br>") + _root.gangchat;
_root.othersound.gotoAndStop("chatmessage");
}
} else {
trace(vars);
}
}
}
stop();
chattype = "";
arrPorts = Array(5000, 5015, 5016, 5017, 5018);
attempt = 0;
if (chatsetup != true) {
gotoAndStop (8);
}
this.onEnterFrame = function () {
if ((blnHasRecievedData == false) && (chatsetup == true)) {
if (intConnectionTimeout > 0) {
intConnectionTimeout--;
} else if (intConnectionTimeout == 0) {
intConnectionTimeout--;
attempt++;
if (attempt < arrPorts.length) {
intConnectionTimeout = 100;
socket.connect(_root.Server, arrPorts[attempt]);
} else {
chatstatusmessage("There was a problem connecting to the chat server. This may be due to it being too busy.");
}
}
} else if ((blnHasRecievedData == true) && (attempt > 0)) {
chatstatusmessage("Connected to alternate chat server #" + attempt);
attempt = 0;
}
};
Instance of Symbol 828 MovieClip "sectornotify" in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "sector") {
gotoAndStop (1);
}
}
Instance of Symbol 828 MovieClip "teamnotify" in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "all") {
gotoAndStop (1);
}
}
Instance of Symbol 828 MovieClip "gangnotify" in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "gang") {
gotoAndStop (1);
}
}
Instance of Symbol 828 MovieClip "activitynotify" in Symbol 871 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "") {
gotoAndStop (1);
}
}
Symbol 871 MovieClip Frame 2
chattype = "sector";
large = false;
Symbol 871 MovieClip Frame 3
chattype = "all";
large = false;
Symbol 871 MovieClip Frame 4
chattype = "gang";
large = false;
Symbol 871 MovieClip Frame 5
chattype = "sector";
large = true;
Symbol 871 MovieClip Frame 6
chattype = "all";
large = true;
Symbol 871 MovieClip Frame 7
chattype = "gang";
large = true;
Symbol 882 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 1
function scan(totest, i) {
if (totest.stealthtime == undefined) {
totest.stealthtime = 0;
}
if (totest.stealth2time == undefined) {
totest.stealth2time = 0;
}
if (totest.HologramTime == undefined) {
totest.HologramTime = 0;
}
if (((totest == undefined) || (totest.stealthtime > 0)) && (scanner["blip" + i] != undefined)) {
scanner["blip" + i].removeMovieClip();
}
if ((totest != camerafocus) && (totest != undefined)) {
if ((totest.stealthtime > 0) || (totest.stealthtime > 0)) {
if ((totest.Team != "") && (totest.Team != _root.camerafocus.Team)) {
_root.EnemyCount++;
}
if ((totest.Team != "") && (totest.Team == _root.camerafocus.Team)) {
_root.FriendlyCount++;
}
} else {
if (this["blip" + i] == undefined) {
duplicateMovieClip ("scanner.blip", "blip" + i, i);
}
if (((totest.Team + "") == "") || (totest.HologramTime > 0)) {
scanner["blip" + i].gotoAndStop(2);
if ((totest.Team != "") && (totest.Team != _root.camerafocus.Team)) {
_root.EnemyCount++;
}
if ((totest.Team != "") && (totest.Team == _root.camerafocus.Team)) {
_root.FriendlyCount++;
}
} else if (_root.camerafocus.lockedtarget == totest) {
if (totest.big == true) {
scanner["blip" + i].gotoAndStop(7);
} else {
if ((totest.Team != "") && (totest.Team != _root.camerafocus.Team)) {
_root.EnemyCount++;
}
scanner["blip" + i].gotoAndStop(8);
}
} else if ((_root.PrimaryTarget == totest) && (_root.PrimaryTarget != undefined)) {
_root.EnemyCount++;
scanner["blip" + i].gotoAndStop(9);
} else if (totest.Team == camerafocus.Team) {
if (totest.big == true) {
scanner["blip" + i].gotoAndStop(5);
} else {
_root.FriendlyCount++;
scanner["blip" + i].gotoAndStop(3);
}
} else if (totest.big == true) {
scanner["blip" + i].gotoAndStop(6);
} else {
_root.EnemyCount++;
scanner["blip" + i].gotoAndStop(4);
}
scanner["blip" + i]._x = (-(camerafocus._x - totest._x)) / 50;
scanner["blip" + i]._y = (-(camerafocus._y - totest._y)) / 50;
scanner["blip" + i]._rotation = totest._rotation;
nd = _root.GetDistance(camerafocus, totest);
if (((nd < _root.closestdistance) || (_root.closestdistance == 0)) && (!_root.OnSameTeam(camerafocus, totest))) {
_root.closestenemy = totest;
_root.closestdistance = Math.round(nd);
}
}
}
}
Instance of Symbol 889 MovieClip in Symbol 898 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget != undefined) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 898 MovieClip Frame 9
_root.ObjectCount = 0;
_root.FriendlyCount = 0;
_root.EnemyCount = 0;
_root.closestenemy = "";
_root.closestdistance = 0;
camerafocus = _root.camerafocus;
count = 0;
scan(_root.game.Station, count);
count++;
e = 0;
while (e <= _root.highestsocket) {
scan(_root.game["ship" + e], count);
x = 0;
while (x <= _root.MaxAIShips) {
count++;
scan(_root.game[(("AI_" + e) + "_") + x], count);
x++;
}
e++;
}
i = 0;
while (i <= _root.Meteorites) {
count++;
scan(_root.game["Meteorite" + i], count);
i++;
}
scanner.blip._rotation = camerafocus._rotation;
_root.closestenemy_d = _root.closestenemy;
camerafocus.target = _root.closestenemy;
Instance of Symbol 915 MovieClip in Symbol 918 MovieClip Frame 1
onClipEvent (enterFrame) {
percent = (_root.camerafocus.shieldlevel / _root.camerafocus.maxshield) * 100;
i = Math.ceil(Number(101 - percent) / 2);
gotoAndStop(i);
}
Instance of Symbol 560 MovieClip in Symbol 918 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root.camerafocus._rotation;
speed = _root.camerafocus.speed;
gotoAndStop(_root.camerafocus.shiptype);
}
Instance of Symbol 921 MovieClip in Symbol 924 MovieClip Frame 1
onClipEvent (enterFrame) {
needed = -_root.camerafocus.SecondaryWeaponsAmmo[_root.camerafocus.SecondaryWeaponSelected];
if (_root.camerafocus.energy < 0) {
_width = 0;
_parent.displayenergy = "--";
} else if ((_root.camerafocus.energy < needed) && (needed > 0)) {
_width = (_root.camerafocus.energy * 1.2);
_parent.displayenergy = _root.camerafocus.energy.toString() + "%";
gotoAndStop (2);
} else {
_width = (_root.camerafocus.energy * 1.2);
_parent.displayenergy = _root.camerafocus.energy.toString() + "%";
gotoAndStop (1);
}
}
Symbol 943 MovieClip Frame 1
obj = _root.camerafocus;
s = obj.SecondaryWeaponSelected;
weapondisplay = obj.SecondaryWeaponNames[s];
ammo = obj.SecondaryWeaponsAmmo[s];
range = obj.SecondaryWeaponsRanges[s];
requireslock = obj.SecondaryWeaponsRequireLock[s];
mined = obj.Mined;
if (obj.SecondaryWeapons[s].indexOf("MiningBeam") > -1) {
gotoAndStop (6);
} else if (ammo < 0) {
if ((range == -1) || (requireslock == false)) {
gotoAndStop (5);
} else {
gotoAndStop (3);
}
} else if ((range == -1) || (requireslock == false)) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
Symbol 959 MovieClip Frame 1
if ((_root.QuadrantRow == row) && (_root.QuadrantCol == column)) {
gotoAndStop (2);
} else if ((_root.DestRow == row) && (_root.DestCol == column)) {
gotoAndStop (3);
} else {
stop();
}
Symbol 960 MovieClip Frame 1
function addquad() {
q++;
r++;
if ((q > 1) && (row < 20)) {
quad1.duplicateMovieClip("quad" + q, q);
this["quad" + q]._x = quad1._x + ((r - 1) * 5);
this["quad" + q]._y = quad1._y + (row * 5);
this["quad" + q].row = row;
this["quad" + q].column = r;
this["quad" + q].port = port;
if (r >= 20) {
r = 0;
row++;
}
}
}
q = 0;
r = 0;
row = 0;
z = 0;
while (z < 400) {
addquad();
z++;
}
quad1.row = 0;
quad1.column = 1;
Symbol 963 MovieClip Frame 1
stop();
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 915 MovieClip in Symbol 963 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.displayname = _root.camerafocus.lockedtarget.playername;
if (_parent.displayname == "") {
_parent.displayname = "Locked Target";
}
_parent.displayshield = _root.camerafocus.lockedtarget.shieldlevel;
percent = (_root.camerafocus.lockedtarget.shieldlevel / _root.camerafocus.lockedtarget.maxshield) * 100;
i = Math.ceil(Number(101 - percent) / 2);
_parent.displaydistance = Math.ceil(_root.GetDistance(_root.camerafocus, _root.camerafocus.lockedtarget));
gotoAndStop(i);
}
Instance of Symbol 560 MovieClip in Symbol 963 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root.camerafocus.lockedtarget._rotation;
speed = _root.camerafocus.lockedtarget.speed;
gotoAndStop(_root.camerafocus.lockedtarget.shiptype);
_parent.SecondaryWeaponNums = _root.camerafocus.lockedtarget.SecondaryWeaponNums;
}
Instance of Symbol 921 MovieClip in Symbol 963 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = (_root.camerafocus.lockedtarget.energy * 1.2);
_parent.displayenergy = _root.camerafocus.lockedtarget.energy.toString() + "%";
if (_root.camerafocus.lockedtarget.energy <= 15) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 963 MovieClip Frame 2
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 915 MovieClip in Symbol 963 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop (1);
_parent.displaydistance = Math.ceil(_root.GetDistance(_root.camerafocus, _root.camerafocus.lockedtarget));
}
Instance of Symbol 341 MovieClip [Meteorite] in Symbol 963 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = _root.camerafocus.lockedtarget._rotation;
_width = (_root.camerafocus.lockedtarget._width / 4);
_height = (_root.camerafocus.lockedtarget._height / 4);
_rotation = _root.camerafocus.lockedtarget._rotation;
}
Instance of Symbol 921 MovieClip in Symbol 963 MovieClip Frame 2
onClipEvent (enterFrame) {
_width = ((_root.camerafocus.lockedtarget.Ore / _root.camerafocus.lockedtarget.OrigOre) * 120);
_parent.displayore = _root.camerafocus.lockedtarget.Ore;
gotoAndStop (1);
}
Symbol 963 MovieClip Frame 4
gotoAndStop (3);
Symbol 981 Button
on (release) {
stopAllSounds();
_root.ClearMission();
}
Symbol 984 Button
on (release) {
_root.howtoplay._y = 251;
_root.howtoplay._visible = true;
}
Symbol 992 MovieClip Frame 1
displayslot = slot + ":";
if (_root.arrWeapons[_root.arrMyWeapons[slot]] == undefined) {
_visible = false;
} else {
arrweap = _root.arrWeapons[_root.arrMyWeapons[slot]].split("|");
displayweaponname = arrweap[1];
}
this.onEnterFrame = function () {
if (_root.camerafocus.SecondaryWeaponSelected == slot) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 1;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 2;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 3;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 4;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 5;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 6;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 7;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 8;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 9;
}
Instance of Symbol 992 MovieClip in Symbol 993 MovieClip Frame 1
onClipEvent (load) {
slot = 0;
}
Symbol 1008 MovieClip Frame 1
if (Key.isDown(82)) {
if ((_root.camerafocus.energy > 15) && (_root.disablecontrols != true)) {
_root.camerafocus.energy = _root.camerafocus.energy - 15;
_alpha = 100;
gotoAndPlay (3);
}
}
Symbol 1008 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1008 MovieClip Frame 3
function scan(totest, i) {
if (totest.stealthtime == undefined) {
totest.stealthtime = 0;
}
if (totest.HologramTime == undefined) {
totest.HologramTime = 0;
}
if (((totest == undefined) || (totest.stealthtime > 0)) && (scanner["blip" + i] != undefined)) {
scanner["blip" + i].removeMovieClip();
}
if (((totest != camerafocus) && (totest != undefined)) && (totest.stealthtime <= 0)) {
if (this["blip" + i] == undefined) {
duplicateMovieClip ("scanner.blip", "blip" + i, i);
}
if (((totest.Team + "") == "") || (totest.HologramTime > 0)) {
scanner["blip" + i].gotoAndStop(2);
_root.ObjectCount++;
} else if (_root.camerafocus.lockedtarget == totest) {
if (totest.big == true) {
scanner["blip" + i].gotoAndStop(7);
} else {
scanner["blip" + i].gotoAndStop(8);
}
} else if (totest.Team == camerafocus.Team) {
if (totest.big == true) {
scanner["blip" + i].gotoAndStop(5);
} else {
_root.FriendlyCount++;
scanner["blip" + i].gotoAndStop(3);
}
} else if (totest.big == true) {
scanner["blip" + i].gotoAndStop(6);
} else {
_root.EnemyCount++;
scanner["blip" + i].gotoAndStop(4);
}
scanner["blip" + i]._x = (-(camerafocus._x - totest._x)) / 75;
scanner["blip" + i]._y = (-(camerafocus._y - totest._y)) / 75;
scanner["blip" + i]._rotation = totest._rotation;
nd = _root.GetDistance(camerafocus, totest);
if ((((nd < _root.closestdistance) || (_root.closestdistance == 0)) && (nd < 5000)) && (!_root.OnSameTeam(camerafocus, totest))) {
_root.closestenemy = totest;
_root.closestdistance = Math.round(nd);
}
}
}
Symbol 1008 MovieClip Frame 22
_root.ObjectCount = 0;
_root.FriendlyCount = 0;
_root.EnemyCount = 0;
_root.closestenemy = "";
_root.closestdistance = 0;
camerafocus = _root.camerafocus;
count = 0;
scan(_root.game.Station, count);
count++;
e = 0;
while (e <= _root.highestsocket) {
scan(_root.game["ship" + e], count);
x = 0;
while (x < _root.MaxAIShips) {
count++;
scan(_root.game[(("AI_" + e) + "_") + x], count);
x++;
}
e++;
}
i = 0;
while (i <= _root.Meteorites) {
count++;
scan(_root.game["Meteorite" + i], count);
i++;
}
scanner.blip._rotation = camerafocus._rotation;
_root.closestenemy_d = _root.closestenemy;
camerafocus.target = _root.closestenemy;
Symbol 1008 MovieClip Frame 67
_alpha = (_alpha - 5);
if (_alpha < 5) {
gotoAndPlay (1);
}
Symbol 1008 MovieClip Frame 68
gotoAndPlay ("fade");
Symbol 1017 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((((method + "Sector S-") + row) + "-") + column) + " (Threat: ") + _root.GetThreatRating(row)) + ")";
}
on (press) {
Warp();
}
Symbol 1025 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Space Station)";
}
on (press) {
Warp();
}
Symbol 1027 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Mining)";
}
on (press) {
Warp();
}
Symbol 1028 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Sub Station)";
}
on (press) {
Warp();
}
Symbol 1029 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Enemy Station)";
}
on (press) {
Warp();
}
Symbol 1030 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Enemy Sub Station)";
}
on (press) {
Warp();
}
Symbol 1032 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Multiplayer)";
}
on (press) {
Warp();
}
Symbol 1034 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Black Hole)";
}
on (press) {
Warp();
}
Symbol 1036 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (White Hole)";
}
on (press) {
Warp();
}
Symbol 1038 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Worm Hole)";
}
on (press) {
Warp();
}
Symbol 1040 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Planet)";
}
on (press) {
Warp();
}
Symbol 1042 Button
on (rollOver) {
if (_root.selectedplotmethod != "plot") {
method = "Hyperspace to ";
} else {
method = "Plot a course to ";
}
_parent.selectedsector = ((((method + "S-") + row) + "-") + column) + " (Co-op MP)";
}
on (press) {
Warp();
}
Symbol 1043 MovieClip Frame 1
function Warp() {
if ((_root.hyperspace != "Yes") || (_root.selectedplotmethod == "plot")) {
_root.addinfo((("Destination plotted: S-" + row) + "-") + column, "#66FFFF");
_root.othersound.gotoAndStop("bleep");
_root.PlotCourse(row, column);
} else if (_root.HyperSpaceTime > 0) {
_root.addinfo(("Hyperspace not yet recharged. Wait " + Math.round(_root.HyperSpaceTime / 24)) + " seconds and try again.", "#FFFFFF");
} else if ((row == _root.QuadrantRow) && (column == _root.QuadrantCol)) {
_root.addinfo("Cannot hyperspace to the sector that you are in.", "#FFFFFF");
} else {
_root.hyperspace = "No";
_root.othersound.gotoAndStop("bleep");
_root.addinfo((("Hyperspace activated. Destination: S-" + row) + "-") + column, "#FFFFFF");
_root.WarpAngle = -Math.round((Math.atan((_root.QuadrantRow - row) / (column - _root.QuadrantCol)) * 57.2957795130823) - 90);
if ((column - _root.QuadrantCol) < 0) {
_root.WarpAngle = _root.WarpAngle + 180;
}
if (_root.WarpAngle < 0) {
_root.WarpAngle = _root.WarpAngle + 360;
}
_root.camerafocus.WarpAngle = _root.WarpAngle;
if (row > _root.QuadrantRow) {
_root.WarpSide = 1;
} else if (row < _root.QuadrantRow) {
_root.WarpSide = 3;
} else if (column > _root.QuadrantCol) {
_root.WarpSide = 4;
} else if (column < _root.QuadrantCol) {
_root.WarpSide = 2;
}
_root.QuadrantCol = column;
_root.QuadrantRow = row;
_root.camerafocus.state = "warping";
}
z = 0;
while (z <= 400) {
_parent._parent.removequad(z);
z++;
}
_parent._parent.gotoAndPlay(1);
}
_root.SetColour(sq, row, column);
if ((row == _root.DestRow) && (column == _root.DestCol)) {
mi._visible = true;
} else {
mi._visible = false;
}
if ((row == _root.QuadrantRow) && (column == _root.QuadrantCol)) {
yah._visible = true;
} else {
yah._visible = false;
}
if ((_root[(("S_" + row) + "_") + column].indexOf("PvP") > -1) && (_root.disablemultiplayer != true)) {
gotoAndStop (8);
} else if ((_root[(("S_" + row) + "_") + column] == "BlackHole") && (_root.Rank >= 10)) {
gotoAndStop (9);
} else if ((_root[(("S_" + row) + "_") + column] == "WhiteHole") && (_root.Rank >= 10)) {
gotoAndStop (10);
} else if ((_root[(("S_" + row) + "_") + column] == "WormHole") && (_root.Rank >= 10)) {
gotoAndStop (11);
} else if (_root[(("S_" + row) + "_") + column] == "Station") {
if (_root.InEnemySpace(row)) {
gotoAndStop (6);
} else {
gotoAndStop (3);
}
} else if (_root[(("S_" + row) + "_") + column] == "Mining") {
gotoAndStop (4);
} else if (_root[(("S_" + row) + "_") + column] == "SubStation") {
if (_root.InEnemySpace(row)) {
gotoAndStop (7);
} else {
gotoAndStop (5);
}
} else if (((_root[(("S_" + row) + "_") + column].indexOf("Coop") > -1) && (_root.disablemultiplayer != true)) && (_root.InEnemySpace(row))) {
gotoAndStop (13);
} else if ((_root[(("P_" + row) + "_") + column] != undefined) && (_root.Rank >= 10)) {
gotoAndStop (12);
} else {
stop();
}
Symbol 1048 Button
on (release) {
_root.selectedplotmethod = "plot";
}
Symbol 1051 Button
on (release) {
_root.selectedplotmethod = "hyperspace";
}
Symbol 1053 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_root.selectedplotmethod != "plot") && (_root.hyperspace == "Yes")) {
_root.selectedplotmethod = "hyperspace";
gotoAndStop (1);
} else if ((_root.selectedplotmethod == "plot") && (_root.hyperspace == "Yes")) {
_root.selectedplotmethod = "plot";
gotoAndStop (2);
} else {
_root.selectedplotmethod = "plot";
gotoAndStop (3);
}
};
Symbol 1057 Button
on (release, keyPress "w") {
z = 0;
while (z <= 400) {
removequad(z);
z++;
}
gotoAndPlay (1);
}
Symbol 1058 MovieClip Frame 1
function addquad() {
port++;
q++;
r++;
if ((q > 1) && (row < 20)) {
quad1.duplicateMovieClip("quad" + q, q);
this["quad" + q]._x = quad1._x + ((r - 1) * 15);
this["quad" + q]._y = quad1._y + (row * 15);
this["quad" + q].row = row;
this["quad" + q].column = r;
this["quad" + q].port = port;
if (r >= 20) {
r = 0;
row++;
}
}
}
function removequad(z) {
removeMovieClip("quad" + z);
}
q = 0;
r = 0;
row = 0;
port = 3000;
Symbol 1058 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1058 MovieClip Frame 3
z = 0;
while (z < 400) {
addquad();
z++;
}
quad1.row = 0;
quad1.column = 1;
Symbol 1058 MovieClip Frame 4
stop();
Instance of Symbol 943 MovieClip "selectedweaponscreen" in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.SecondaryWeaponNames[_root.camerafocus.SecondaryWeaponSelected] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 963 MovieClip "lockedscreen" in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget == undefined) {
gotoAndStop (3);
} else if (_root.camerafocus.lockedtarget.Meteorite == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 982 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.objective + "") == "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 987 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.multiplayer == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 993 MovieClip "weaponselect" in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_alpha > 0) {
_visible = true;
_alpha = (_alpha-1);
} else {
_visible = false;
}
}
onClipEvent (load) {
i = 1;
while (i <= 9) {
if (_root.camerafocus.SecondaryWeapons[_root.camerafocus.SecondaryWeaponSelected] == undefined) {
if (_root.camerafocus.SecondaryWeapons[i] != undefined) {
_root.camerafocus.SecondaryWeaponSelected = i;
}
}
i++;
}
if (_root.camerafocus.SecondaryWeapons[_root.camerafocus.SecondaryWeaponSelected] == undefined) {
if (_root.camerafocus.SecondaryWeapons[0] != undefined) {
_root.camerafocus.SecondaryWeaponSelected = 0;
}
}
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
Symbol 1066 Button
on (release, keyPress "<Space>") {
_root.disablecontrols = false;
_root.camerafocus.dead = false;
_root.SetupShip(_root.camerafocus, _root.MyShipType);
_root.addMyWeapons(_root.camerafocus);
_root.SpawnPosition(_root.camerafocus);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
_root.respawning = false;
gotoAndStop (1);
}
Symbol 1067 MovieClip Frame 1
stop();
Symbol 1067 MovieClip Frame 2
lives = _root.Lives + " lives remaining";
Symbol 1077 MovieClip Frame 1
_rotation = _root.WarpAngle;
Instance of Symbol 593 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
starty = _y;
}
onClipEvent (enterFrame) {
_x = ((startx + random(20)) - random(20));
_y = ((startx + random(20)) - random(20));
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
if (Math.random() > 0.5) {
_yscale = 100;
} else {
_yscale = -100;
}
}
Instance of Symbol 593 MovieClip in Symbol 1077 MovieClip Frame 102
onClipEvent (load) {
startx = _x;
starty = _y;
}
onClipEvent (enterFrame) {
_x = ((startx + random(20)) - random(20));
_y = ((startx + random(20)) - random(20));
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
if (Math.random() > 0.5) {
_yscale = 100;
} else {
_yscale = -100;
}
_rotation = (-_parent._rotation);
}
Symbol 1077 MovieClip Frame 165
_root.gotoAndStop("reload");
Symbol 1091 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 1094 Button
on (release) {
gotoAndStop ("missions");
}
Symbol 1095 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 1097 Button
on (rollOver) {
_parent.selectedsector = ((((("Sector S-" + row) + "-") + column) + " (Threat: ") + _root.GetThreatRating(row)) + ")";
}
Symbol 1098 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Space Station)";
}
Symbol 1099 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Mining)";
}
Symbol 1100 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Sub Station)";
}
Symbol 1101 Button
on (rollOver) {
_parent.selectedsector = ((("S-" + row) + "-") + column) + " (Enemy Station)";
}
Symbol 1102 Button
on (rollOver) {
_parent.selectedsector = ((("S-" + row) + "-") + column) + " (Enemy Sub Station)";
}
Symbol 1103 MovieClip Frame 1
_root.SetColour(sq, row, column);
if ((row == _root.DestRow) && (column == _root.DestCol)) {
mi._visible = true;
} else {
mi._visible = false;
}
if ((row == _root.QuadrantRow) && (column == _root.QuadrantCol)) {
yah._visible = true;
} else {
yah._visible = false;
}
if ((_root[(("S_" + row) + "_") + column].indexOf("PvP") > -1) && (_root.disablemultiplayer != true)) {
gotoAndStop (8);
} else if ((_root[(("S_" + row) + "_") + column] == "BlackHole") && (_root.Rank >= 10)) {
gotoAndStop (9);
} else if ((_root[(("S_" + row) + "_") + column] == "WhiteHole") && (_root.Rank >= 10)) {
gotoAndStop (10);
} else if ((_root[(("S_" + row) + "_") + column] == "WormHole") && (_root.Rank >= 10)) {
gotoAndStop (11);
} else if (_root[(("S_" + row) + "_") + column] == "Station") {
if (_root.InEnemySpace(row)) {
gotoAndStop (6);
} else {
gotoAndStop (3);
}
} else if (_root[(("S_" + row) + "_") + column] == "Mining") {
gotoAndStop (4);
} else if (_root[(("S_" + row) + "_") + column] == "SubStation") {
if (_root.InEnemySpace(row)) {
gotoAndStop (7);
} else {
gotoAndStop (5);
}
} else if (((_root[(("S_" + row) + "_") + column].indexOf("Coop") > -1) && (_root.disablemultiplayer != true)) && (_root.InEnemySpace(row))) {
gotoAndStop (13);
} else if ((_root[(("P_" + row) + "_") + column] != undefined) && (_root.Rank >= 10)) {
gotoAndStop (12);
} else {
stop();
}
Symbol 1105 MovieClip Frame 1
function addquad() {
port++;
q++;
r++;
if ((q > 1) && (row < 20)) {
quad1.duplicateMovieClip("quad" + q, q);
this["quad" + q]._x = quad1._x + ((r - 1) * 15);
this["quad" + q]._y = quad1._y + (row * 15);
this["quad" + q].row = row;
this["quad" + q].column = r;
this["quad" + q].port = port;
if (r >= 20) {
r = 0;
row++;
}
}
}
q = 0;
r = 0;
row = 0;
port = 3000;
if (Key.isDown(87)) {
gotoAndPlay (3);
_visible = true;
}
z = 0;
while (z < 400) {
addquad();
z++;
}
quad1.row = 0;
quad1.column = 1;
Symbol 1105 MovieClip Frame 2
stop();
Symbol 1109 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk/", "_blank");
}
Symbol 1111 Button
on (release) {
gotoAndStop ("howto");
}
Instance of Symbol 560 MovieClip in Symbol 1116 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.ship);
}
onClipEvent (enterFrame) {
if ((_width > 170) || (_height > 170)) {
_width = (_width / 1.02);
_height = (_height / 1.02);
}
}
Symbol 1123 Button
on (release) {
_parent.selectedslot = slot;
_parent.filter = slottype;
_parent.gotoAndStop("buyweapon");
}
Symbol 1128 Button
on (release) {
_root.SetMoney(_root.money + displaysellprice);
_root.arrMyWeapons[slot] = weaponnum;
gotoAndPlay (3);
}
Symbol 1129 MovieClip Frame 1
slottype = _parent.slottypes[slot];
if (slot > _parent.amountofslots) {
_visible = false;
} else {
displayslot = slot + ":";
if (_root.arrWeapons[_root.arrMyWeapons[slot]] == undefined) {
displayweaponname = ("Empty (" + slottype) + ")";
displayweaponammo = "N/A";
gotoAndStop (1);
} else {
if (slot > _parent.shopship.slots) {
_root.arrMyWeapons[slot] = undefined;
} else {
arrweap = _root.arrWeapons[_root.arrMyWeapons[slot]].split("|");
displayweaponname = arrweap[1];
displayweaponammo = arrweap[2];
displaysellprice = Number(arrweap[6]) / 2;
if (displayweaponammo < 0) {
displayweaponammo = "Inf";
}
}
gotoAndStop (2);
}
}
Symbol 1129 MovieClip Frame 3
gotoAndStop (1);
Symbol 1134 Button
on (release) {
gotoAndStop ("buyship");
}
Symbol 1136 Button
on (release) {
lifecost = lifeprice;
if (((_root.money - lifecost) >= 0) && (_root.Lives < 10)) {
_root.Lives++;
_root.SetMoney(_root.money - lifecost);
}
}
Symbol 1139 Button
on (release) {
gotoAndStop ("buyengine");
}
Symbol 1144 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1147 Button
on (release) {
lifecost = shopship.shipvalue / 2;
if (((_root.money - hyperprice) >= 0) && (_root.hyperspace != "Yes")) {
_root.hyperspace = "Yes";
_root.selectedplotmethod = "hyperspace";
_root.SetMoney(_root.money - hyperprice);
}
}
Symbol 1156 Button
on (release) {
if (_root.money >= price) {
_root.SetMoney(_root.money - price);
_root.arrMyWeapons[_parent.selectedslot] = weaponnum;
_parent.clearweapons();
}
}
Symbol 1159 Button
on (release) {
_root.wi.weaponname = weaponname;
_root.wi.gotoAndStop(2);
}
Instance of Symbol 388 MovieClip in Symbol 1160 MovieClip Frame 1
onClipEvent (load) {
mynum = _parent.weaponnum;
}
Symbol 1162 Button
on (release) {
clearweapons();
}
Symbol 1164 Button
on (release) {
_root.SelectedShopShip = shiptype;
_parent.clearships("shipdetails");
}
Instance of Symbol 560 MovieClip in Symbol 1166 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
if ((_width > 70) || (_height > 70)) {
_width = (_width / 1.02);
_height = (_height / 1.02);
}
}
Symbol 1168 Button
on (release) {
clearships("shop");
}
Symbol 1184 Button
on (release) {
if (_root.money >= total) {
_root.SetMoney(_root.money - total);
_root.MyShipType = _root.SelectedShopShip;
_root.Lives = 10;
_root.engine = 0;
i = 0;
while (i <= 9) {
_root.arrMyWeapons[i] = undefined;
i++;
}
_root.arrMyWeapons[0] = 11;
_root.addtonews((_root.MyName + " purchased a ") + shopship.shipname, "", _root.GangID);
}
gotoAndStop ("shop");
}
Symbol 1185 Button
on (release) {
gotoAndStop ("buyship");
}
Symbol 1206 Button
on (release) {
if (_root.money >= price) {
_root.SetMoney(_root.money - price);
_root.engine = Number(_name);
_parent.gotoAndStop("shop");
}
}
Symbol 1209 MovieClip Frame 1
arrEngine = _parent.arrEngines[_name].split("|");
enginename = arrEngine[0];
price = Number(arrEngine[1]);
if (_root.engine == Number(_name)) {
gotoAndStop (2);
} else {
if (price > _root.money) {
_alpha = 60;
}
gotoAndStop (1);
}
Symbol 1211 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 1213 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 1222 Button
on (release) {
_root.intMissionReward = reward;
_root.intMissionStep = 0;
_root.MissionType = missiontype;
_root.arrMissionSteps = new Array();
i = 0;
while (i < MissionSteps.length) {
_root.arrMissionSteps[i] = MissionSteps[i];
i++;
}
_root.MissionActive = true;
trace((_root.arrMissionSteps + " - Reward: ") + rw.text);
_parent.gotoAndStop("menu");
}
Symbol 1223 MovieClip Frame 1
_root.GenerateRandomMission(this);
Symbol 1226 Button
on (release) {
_root.GenerateRandomMission(m1);
_root.GenerateRandomMission(m2);
_root.GenerateRandomMission(m3);
_root.GenerateRandomMission(m4);
}
Symbol 1233 Button
on (release) {
if (_parent.arrGangPasswords[i] != "") {
gotoAndStop (4);
} else {
_root.GangID = Number(gangid);
_root.shipcolour = colour;
_root.loggedinas = "Logged in as " + _root.MyName;
_root.GangName = _parent.arrGangNames[i];
if ((_root.GangName != undefined) && (_root.GangName != "")) {
_root.loggedinas = (_root.loggedinas + ", member of ") + _root.GangName;
}
_parent._parent.gotoAndPlay(1);
}
}
Symbol 1238 Button
on (release) {
_root.GangID = 0;
_root.shipcolour = "";
_root.loggedinas = "Logged in as " + _root.MyName;
_parent._parent.gotoAndPlay(1);
}
Symbol 1241 Button
on (release) {
_parent.gotoAndStop(6);
}
Symbol 1244 Button
on (release) {
trace(((_parent.arrGangPasswords[i] + "==") + enterpassword.text) + "?");
if (_parent.arrGangPasswords[i] != enterpassword.text) {
enterpassword.text = "Incorrect Password.";
} else {
_root.GangID = Number(gangid);
_root.shipcolour = colour;
_root.loggedinas = "Logged in as " + _root.MyName;
_root.GangName = _parent.arrGangNames[i];
if ((_root.GangName != undefined) && (_root.GangName != "")) {
_root.loggedinas = (_root.loggedinas + ", member of ") + _root.GangName;
}
_parent._parent.gotoAndPlay(1);
}
}
Symbol 1245 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1246 MovieClip Frame 1
i = Number(_name) - 1;
if (i > _parent.arrGangNames.length) {
ganginfo = "";
_visible = false;
} else {
ganginfo = "";
if (gangid == _root.GangID) {
ganginfo = ganginfo + "Your gang: ";
}
ganginfo = ganginfo + ((((("<b>" + _parent.arrGangNames[i]) + "</b>, Leader: ") + _parent.arrGangLeaders[i]) + ", Members: ") + _parent.arrMembers[i]);
if (_parent.arrGangPasswords[i] != "") {
ganginfo = ganginfo + ", Restricted Membership (Password Required)";
}
gangid = Number(_parent.arrGangIDs[i]);
colour = _parent.arrGangColours[i];
}
if (i == _parent.arrGangNames.length) {
gotoAndStop (3);
} else if (gangid == _root.GangID) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 1249 Button
on (release) {
gotoAndStop (6);
}
Symbol 1250 Button
on (release) {
_parent.gotoAndStop("menu");
}
Symbol 1255 Button
on (release) {
_root.NewGangColour = colour;
}
on (rollOver) {
_parent._parent.colour = colour;
_parent._parent.cps.play();
}
on (rollOut) {
_parent._parent.colour = _root.NewGangColour;
_parent._parent.cps.play();
}
Symbol 1257 MovieClip Frame 1
function ColourPart(colournum) {
switch (colournum) {
case 0 :
return("00");
case 1 :
return("33");
case 2 :
return("66");
case 3 :
return("99");
case 4 :
return("CC");
case 5 :
return("FF");
}
}
x = 0;
y = 0;
s = 0;
width = 10;
r = 0;
while (r <= 5) {
g = 0;
while (g <= 5) {
b = 0;
while (b <= 5) {
if (s != 0) {
duplicateMovieClip (s0, "s" + s, s);
this["s" + s]._x = x;
this["s" + s]._y = y;
}
strColour = (ColourPart(r) + ColourPart(g)) + ColourPart(b);
this["s" + s].colour = strColour;
_root.SetShipColour(this["s" + s], strColour);
s++;
x = x + width;
if (x > (width * 30)) {
x = 0;
y = y + width;
}
b++;
}
g++;
}
r++;
}
Symbol 1262 Button
on (release) {
_root.NewGangName = newgangname.text;
_root.NewGangPassword = newgangpassword.text;
if ((_root.NewGangName != "") && (_root.NewGangName != "New Gang")) {
gotoAndPlay (7);
}
}
Symbol 1263 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip in Symbol 1263 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.MyShipType);
}
Symbol 1263 MovieClip Frame 2
colour = _parent.colour;
gotoAndStop (1);
Symbol 1272 MovieClip Frame 1
if (_root.Guest == false) {
if (_root.GangID != 0) {
trace("In Gang");
}
returnedEmpty = undefined;
trace((((("http://69.56.136.242/sf2/sfdg.asp?action=getgangs&qr=" + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&") + Math.random());
loadVariables ((((("http://69.56.136.242/sf2/sfdg.asp?action=getgangs&qr=" + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&") + Math.random(), this);
} else {
gotoAndStop (11);
}
Symbol 1272 MovieClip Frame 2
if (returnedempty != undefined) {
gotoAndStop (4);
}
Symbol 1272 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1272 MovieClip Frame 4
if (returnedempty != "True") {
arrGangNames = GangName.split(",");
arrGangLeaders = Leader.split(",");
arrGangPasswords = GangPassword.split(",");
arrMembers = Members.split(",");
arrGangIDs = GangID.split(",");
arrGangColours = GangColour.split(",");
} else {
gotoAndStop (5);
}
Symbol 1272 MovieClip Frame 6
_root.NewGangColour = "FFFFFF";
colour = _root.NewGangColour;
if (_root.Kills <= 1600) {
gotoAndStop (10);
} else if (_root.money <= 50000) {
gotoAndStop (12);
}
Symbol 1272 MovieClip Frame 7
returnedempty = undefined;
_root.shipcolour = _root.NewGangColour;
trace((((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=creategang&qr=" + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&u=") + _root.UserID) + "&gn=") + escape(_root.NewGangName)) + "&p=") + escape(_root.NewGangPassword)) + "&gc=") + escape(_root.NewGangColour)) + "&") + Math.random());
loadVariables ((((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=creategang&qr=" + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&u=") + _root.UserID) + "&gn=") + escape(_root.NewGangName)) + "&p=") + escape(_root.NewGangPassword)) + "&gc=") + escape(_root.NewGangColour)) + "&") + Math.random(), this);
Symbol 1272 MovieClip Frame 8
if (returnedempty != undefined) {
trace("Created Gang ID: " + CreatedGang);
_root.SetMoney(_root.money - 50000);
_root.GangID = Number(CreatedGang);
_root.GangName = _root.NewGangName;
_root.shipcolour = _root.NewGangColour;
_root.loggedinas = "Logged in as " + _root.MyName;
if ((_root.GangName != undefined) && (_root.GangName != "")) {
_root.loggedinas = (_root.loggedinas + ", member of ") + _root.GangName;
}
_parent.gotoAndPlay(1);
}
Symbol 1272 MovieClip Frame 9
gotoAndPlay (8);
Symbol 1274 MovieClip Frame 1
inactivetimer = 0;
_root.HyperSpaceTime = 0;
_root.HomeStationRow = _root.QuadrantRow;
_root.HomeStationCol = _root.QuadrantCol;
_root.Sector = (("S-" + _root.HomeStationRow) + "-") + _root.HomeStationCol;
thesector = "Sector " + _root.Sector;
_root.Rank = _root.GetRank(_root.Kills);
if (_root.MyTeam == "Human") {
_root.rankname = _root.arrHumanRanks[_root.Rank - 1];
} else {
_root.rankname = _root.arrAlienRanks[_root.Rank - 1];
}
_root.ThreatRating = _root.GetThreatRating(_root.QuadrantRow);
executed = "";
_root.SaveData(this);
NewsText = "";
Symbol 1274 MovieClip Frame 2
if (executed != "") {
trace("Go to menu");
gotoAndStop ("menu");
executed = "";
}
Symbol 1274 MovieClip Frame 3
inactivetimer++;
if (inactivetimer > 500) {
gotoAndPlay (1);
} else {
gotoAndPlay (2);
}
Symbol 1274 MovieClip Frame 4
if (_root.MissionActive == true) {
arrStepDetails = _root.arrMissionSteps[0].split("|");
_root.DestRow = Number(arrStepDetails[1]);
_root.DestCol = Number(arrStepDetails[2]);
}
arrNews = NewsText.split("|");
arrTimes = NewsTimes.split("|");
arrColours = NewsColours.split("|");
_root.newstext = "";
i = 0;
while (i <= arrNews.length) {
_root.newstext = _root.newstext + (("<font color=\"#" + arrColours[i]) + "\">");
_root.newstext = _root.newstext + (("<b>" + arrTimes[i]) + "</b><br>");
_root.newstext = _root.newstext + (("" + arrNews[i]) + "</font><br>");
i++;
}
stop();
Symbol 1274 MovieClip Frame 5
thetitle = "Space Station Shop";
Instance of Symbol 1116 MovieClip "shopship" in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
speed = 5;
SecondaryWeaponNums = _root.arrMyWeapons;
kills = _root.Kills;
colour = _root.shipcolour;
ship = _root.MyShipType;
_root.SetShipStats(this, _root.MyShipType);
_root.shipvalue = _root.CalculateShipPrice(_root.MyShipType);
_parent.hyperprice = 2000;
_parent.amountofslots = 0;
_parent.slottypes = Array(9);
ind = 0;
_parent.slottypes[ind] = "Mining";
i = 0;
while (i < slots.length) {
_parent.amountofslots = _parent.amountofslots + Number(slots[i]);
x = 0;
while (x < Number(slots[i])) {
ind++;
if (i == 0) {
_parent.slottypes[ind] = "Regular Weapons";
}
if (i == 1) {
_parent.slottypes[ind] = "Utilities";
}
if (i == 2) {
_parent.slottypes[ind] = "Mines";
}
if (i == 3) {
_parent.slottypes[ind] = "Proximity Weapons";
}
if (i == 4) {
_parent.slottypes[ind] = "Large Weapons";
}
x++;
}
i++;
}
_root.weaponsvalue = _root.GetShipWeaponsValue(this);
_parent.lifeprice = Math.round((_root.shipvalue + _root.weaponsvalue) / 2);
_parent.arrEngines = new Array();
_parent.arrEngines[0] = ("Standard " + shipname) + " Engine. 1.2x speed booster|0";
_parent.arrEngines[1] = (("Enhanced propulsion booster " + shipname) + " Engine. 1.5x speed booster|") + _root.shipvalue;
_parent.arrEngines[2] = (("Overclocked propulsion booster " + shipname) + " Engine. 2.0x speed booster|") + (_root.shipvalue * 4);
_parent.arrEngines[3] = (("Enhanced propulsion " + shipname) + " Engine. 2x Accelleration, 1.2x speed booster|") + (_root.shipvalue * 4.5);
_parent.arrEngines[4] = (("Pulse Core " + shipname) + " Engine. 1.6x Top Speed, 1.2x speed booster|") + (_root.shipvalue * 9);
_parent.arrEngines[5] = (("Interstellar " + shipname) + " Engine. Hyperspace recharger, 1.2x speed booster|") + (_root.shipvalue * 20);
_parent.arrEngines[6] = (("Enhanced Interstellar " + shipname) + " Engine. Hyperspace recharger, 1.5x speed booster|") + (_root.shipvalue * 22);
if (_root.engine == undefined) {
_root.engine = 0;
}
arrEngine = _parent.arrEngines[_root.engine].split("|");
_parent.displayengine = arrEngine[0];
if (arrEngine[2] == "Yes") {
_parent.displayengine = _parent.displayengine + " + hyperspace";
}
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 1;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 2;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 3;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 4;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 5;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 6;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 7;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 8;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 9;
}
Instance of Symbol 1129 MovieClip in Symbol 1274 MovieClip Frame 5
onClipEvent (load) {
slot = 0;
}
Symbol 1274 MovieClip Frame 6
function clearweapons() {
i = 1;
while (i <= (_root.arrWeapons.length - 2)) {
removeMovieClip(this["wep" + i]);
i++;
}
gotoAndStop ("shop");
}
p = 0;
HW = 0;
AW = 0;
i = 0;
while (i <= (_root.arrWeapons.length - 2)) {
arrW = _root.arrWeapons[i].split("|");
if (arrW[8] == "Human") {
HW++;
}
if (arrW[8] == "Alien") {
AW++;
}
if ((arrW[7] == filter) && ((arrW[8] == _root.MyTeam) || (arrW[8] == "Neutral"))) {
if (p > 0) {
duplicateMovieClip (wep0, "wep" + p, p + 1);
this["wep" + p]._y = wep0._y + (20 * p);
}
this["wep" + p].weaponnum = i;
this["wep" + p].weaponname = arrW[1];
this["wep" + p].ammo = Number(arrW[2]);
if (arrW[4] == "true") {
this["wep" + p].range = arrW[3];
} else {
this["wep" + p].range = "N/A";
}
if (this["wep" + p].ammo < 0) {
this["wep" + p].ammo = "Inf";
}
this["wep" + p].price = arrW[6];
if (Number(arrW[6]) > _root.money) {
this["wep" + p]._alpha = 60;
} else {
this["wep" + p]._alpha = 100;
}
p++;
}
i++;
}
thetitle = "Buy Weapon: " + filter;
stop();
Symbol 1274 MovieClip Frame 7
function clearships(toframe) {
i = 1;
while (i < arr.length) {
removeMovieClip(this["s" + i]);
i++;
}
gotoAndStop(toframe);
}
if (_root.MyTeam == "Human") {
arr = _root.arrHumanShips;
} else {
arr = _root.arrAlienShips;
}
c = 0;
r = 0;
minus = 9 - _root.Rank;
if (minus <= 0) {
if (_root.rank < 11) {
minus = 1;
} else {
minus = 0;
}
}
trace(minus);
i = 0;
while (i < ((arr.length - 3) - minus)) {
if (i > 0) {
duplicateMovieClip (s0, "s" + i, i + 1);
this["s" + i]._x = s0._x + (70 * c);
this["s" + i]._y = s0._y + (70 * r);
}
this["s" + i].shiptype = arr[i + 3];
this["s" + i].colour = _root.shipcolour;
this["s" + i].kills = _root.Kills;
c++;
if (c > 7) {
c = 0;
r++;
}
i++;
}
stop();
Symbol 1274 MovieClip Frame 8
arrShipInfo = _root.arrShipData[_root.SelectedShopShip - 1].split("|");
ShipShield = arrShipInfo[1];
ShipMaxSpeed = arrShipInfo[2];
ShipAccelleration = Number(arrShipInfo[3]) * 10;
ShipManuverability = arrShipInfo[4];
ShipLockingAngle = arrShipInfo[5];
ShipMiningCapacity = arrShipInfo[8];
arrSlots = arrShipInfo[6].split(",");
reg = arrSlots[0];
util = arrSlots[1];
mine = arrSlots[2];
prox = arrSlots[3];
large = arrSlots[4];
ShipPrice = _root.CalculateShipPrice(_root.SelectedShopShip);
tradein = -Math.round((Math.round((_root.shipvalue + _root.weaponsvalue) / 2) / 10) * _root.Lives);
total = ShipPrice + tradein;
Instance of Symbol 1116 MovieClip "shopship" in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
speed = 5;
SecondaryWeaponNums = undefined;
ship = _root.SelectedShopShip;
_root.SetShipStats(this, ship);
colour = _root.shipcolour;
kills = _root.Kills;
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipMaxSpeed / 20) * 100);
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipAccelleration / 20) * 100);
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipManuverability / 7) * 100);
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipShield / 400) * 100);
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipMiningCapacity / 5000) * 100);
}
Instance of Symbol 1188 MovieClip in Symbol 1274 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipLockingAngle / 300) * 100);
}
Instance of Symbol 754 MovieClip in Symbol 1274 MovieClip Frame 12
onClipEvent (load) {
function back() {
_parent.gotoAndStop("menu");
}
}
Symbol 1278 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 1288 Button
on (release) {
gotoAndStop (1);
}
Symbol 1289 MovieClip Frame 1
stop();
weaponinfo = "Loading Info....";
Symbol 1289 MovieClip Frame 2
this.swapDepths(_parent["wep" + _parent.p]);
strURL = (("http://69.56.136.242/sf2/info.asp?p=" + escape(weaponname)) + "&") + Math.random();
trace(strURL);
loadVariables (strURL, this);
Symbol 1292 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1298 Button
on (release) {
gotoAndStop ("rules");
}
Symbol 1301 Button
on (release) {
gotoAndStop(MyTeam + "shop");
}