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.kongregateStats.submit("Missions Completed", 1);
_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||3";
P_1_5 = "Amiliris Prime|18|192|104|355|R|2";
P_3_4 = "Evilon|166|26|77|185||1";
P_5_16 = "Nostrilamus|43|52|42|346||3";
P_6_4 = "Zenon|26|12|114|208|R|2";
P_8_2 = "Humphries|24|92|10|388||1";
P_3_18 = "Joseph|12|1|104|125||3";
P_8_17 = "Werd V|31|199|92|333||2";
P_12_15 = "Caesarus|255|204|0|150|R|1";
P_2_8 = "Sirovia|0|153|255|255||2";
P_4_8 = "Daikunun|204|0|0|140||3";
P_14_2 = "Redenmity|0|204|0|140|R|2";
P_12_18 = "Thorpia|200|127|114|227|R|1";
P_13_11 = "Aether Delta|52|202|133|259||3";
P_14_5 = "JLB|201|223|154|350||2";
P_14_18 = "Lexiastra|159|81|17|185|R|1";
P_15_18 = "Benonian|100|0|12|400|R|3";
P_16_11 = "Jonathernia|97|208|193|284|2";
P_17_1 = "Mogzilliris|62|47|50|401|1";
P_18_12 = "Nightsaberi|147|229|41|161|R|1";
P_5_10 = "Kirk|89|128|166|283||3";
P_4_12 = "Victimum|52|18|37|330|R|2";
P_0_16 = "Pinoy|110|112|152|377||1";
P_7_13 = "Kain|109|154|42|172||3";
P_14_13 = "Pendo|105|200|218|358||2";
P_6_20 = "Dharok|96|69|147|213|R|3";
P_8_8 = "Flanker|163|236|48|172||1";
P_19_4 = "Draco|74|223|178|267||3";
P_19_20 = "Vijin|159|12|226|391|R|2";
P_1_20 = "Lanacter|212|190|134|128|R|1";
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.disputedgalaxy.com", "_blank");
}
function mgHandler() {
getURL ("http://www.benoldinggames.co.uk", "_blank");
}
Security.loadPolicyFile("http://69.56.136.242/crossdomain.xml");
stopAllSounds();
_root.kongregateServices.connect();
_root.gameversion = "v1.3";
_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|Neutral|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|5000|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|Neutral|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";
strWeapons = strWeapons + "MiningBeam|LR Mining Laser|-5|1000|true|false|2000|Mining|Neutral|1\n";
strWeapons = strWeapons + "MiningBeam2|Level 2 LR Mining Laser|-3|1200|true|true|3000|Mining|Neutral|1\n";
strWeapons = strWeapons + "MiningBeam3|Level 3 LR Mining Laser|-2|1500|true|true|6000|Mining|Neutral|1\n";
strWeapons = strWeapons + "ReverseLaser|Reverse Laser|-6|500|false|false|800|Regular Weapons|Neutral|20\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|9|1|3|60|2,4,1,1,1|5000|1000\n";
strShipData = strShipData + "Enforcer|300|9|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("DisputedGalaxy.com", dgHandler));
newMenu.customItems.push(new ContextMenuItem("More games...", mgHandler));
this.menu = newMenu;
}
Stage.showMenu = false;
MochiAd.showPreloaderAd({id:"0e9376ad2e3c07b6", res:"700x500"});
function SaveData(returnobj) {
ValidateVariables();
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 ((_root.Guest == false) && (_root.SavePlayerData == true)) {
trace((((((((((((((((((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=save&p=" + escape(_root.Password)) + "&uid=") + _root.UserID) + "&m=") + _root.money) + "&s=") + _root.MyShipType) + "&w=") + weaponstring) + "&e=") + _root.engine) + "&qr=") + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&l=") + _root.Lives) + "&d=") + _root.Deaths) + "&h=") + _root.hyperspace) + "&g=") + _root.GangID) + "&sk=") + SaveDataKey()) + "&") + Math.random());
loadVariables ((((((((((((((((((((((((((("http://69.56.136.242/sf2/sfdg.asp?action=save&p=" + escape(_root.Password)) + "&uid=") + _root.UserID) + "&m=") + _root.money) + "&s=") + _root.MyShipType) + "&w=") + weaponstring) + "&e=") + _root.engine) + "&qr=") + _root.HomeStationRow) + "&qc=") + _root.HomeStationCol) + "&l=") + _root.Lives) + "&d=") + _root.Deaths) + "&h=") + _root.hyperspace) + "&g=") + _root.GangID) + "&sk=") + SaveDataKey()) + "&") + Math.random(), returnobj);
} else {
returnobj.executed = "ok";
}
}
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, "cheat", "*****");
strChatText = Replace(strChatText, "hack", "****");
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);
_root.SaveData(this);
}
}
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 SetShip(amount) {
intRandomCheck = 96;
_root.MyShipType = amount;
_root.MyShipType_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() {
blnFail = false;
if (((MyName.charAt(0) + String(MyName.length * 2)) != _root.MyName_check) && (MyName.length > 0)) {
blnFail = true;
}
if (money != Number(ReverseVariableValue(money_check))) {
blnFail = true;
}
if (killmoney != Number(ReverseVariableValue(killmoney_check))) {
blnFail = true;
}
if (Mined != Number(ReverseVariableValue(Mined_check))) {
blnFail = true;
}
if (Kills != Number(ReverseVariableValue(Kills_check))) {
blnFail = true;
}
if (MyShipType != Number(ReverseVariableValue(MyShipType_check))) {
blnFail = true;
}
if (Lives > 10) {
blnFail = true;
}
if (blnFail == true) {
trace("DATA INCONSISTENCY");
url = (((((((((((((((("http://69.56.136.242/sf2/abuse.asp?u=" + escape(_root.MyName)) + "&c=CD&a=Name+") + MyName) + "+Money+") + money) + "+Bounty+") + killmoney) + "+Kills+") + Kills) + "+Ship+") + MyShipType) + "+Lives+") + Lives) + "+UserID+") + UserID) + "&") + Math.random();
money = Number(ReverseVariableValue(money_check));
killmoney = Number(ReverseVariableValue(killmoney_check));
Mined = Number(ReverseVariableValue(Mined_check));
Kills = Number(ReverseVariableValue(Kills_check));
MyShipType = Number(ReverseVariableValue(MyShipType_check));
trace(url);
loadVariables (url, this);
}
}
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);
}
}
}
}
}
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);
Instance of Symbol 615 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 621 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 624 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 654 MovieClip in Frame 1
onClipEvent (load) {
themessage = "Loading...";
gotoAndPlay (1);
}
Frame 2
loadVariablesNum ("http://69.56.136.242/sf2/news.asp?action=gamenews&" + Math.random(), 0);
stop();
Instance of Symbol 658 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
if ((((_url.indexOf("benoldinggames.co.uk") > -1) || (_url.indexOf("disputedgalaxy.com") > -1)) || (_url.indexOf("uploads.ungrounded.net") > -1)) || (_url.indexOf("kongregate.com") > -1)) {
} else {
gotoAndStop ("notauthorised");
}
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 32 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
function quitgame() {
socket.close();
}
function servercommand(cmd) {
arrCmd = cmd.split("|");
if (arrCmd[1] == "P") {
_root.NumberOfPlayers = arrCmd[2];
} else {
trace(doc.toString());
arrPlayerList = doc.toString().substring(5, doc.toString().length).split(":");
trace(arrPlayerList);
}
}
function newXML(doc) {
_root.multiplayer = true;
if (doc.toString().substring(0, 2) == "S|") {
servercommand(doc.toString());
} else if (doc.toString().indexOf("has joined") > -1) {
if (_root.myplayernumber == undefined) {
arrMessageSplit = doc.toString().split(" ");
_root.myplayernumber = Number(arrMessageSplit[0]);
gotoAndStop ("play");
} else {
sendcommand("SetWeapons", WeaponsString("ship" + String(_root.myplayernumber), game.myship));
}
} else if (doc.toString().indexOf(": ") > -1) {
arrCommand = doc.toString().split(": ");
GameCommand(arrCommand[0], arrCommand[1], arrCommand[2]);
} else {
_root.console = (doc + "<br>") + _root.console;
}
}
function newConnection(success) {
trace("Connecting to: " + Server);
sendcommand("Message", _root.MyName + " has entered the sector");
}
function endConnection() {
trace("Ended");
_root.multiplayer == false;
}
function sendcommand(command, vars) {
tosend = new XML((command + ": ") + vars);
socket.send(tosend);
}
function GameCommand(player, command, vars) {
if (Number(player) > highestsocket) {
highestsocket = Number(player);
}
arrVars = vars.split("|");
if (command == "Message") {
addinfo(vars, "#FFFFFF");
} else if (command == "SetWeapons") {
if (player != _root.myplayernumber) {
i = 0;
while (i <= 9) {
AddWeapon(game[arrVars[0]], i, arrVars[i + 1]);
i++;
}
}
} else if (command == "MeteoritePosition") {
if (game[arrVars[0]] == undefined) {
m = CreateMeteorite(arrVars[0], Number(arrVars[1]), Number(arrVars[2]));
m._width = Number(arrVars[3]);
m._height = Number(arrVars[4]);
m._rotation = Number(arrVars[5]);
}
} else if (command == "MoveShip") {
if (player != _root.myplayernumber) {
if (Number(arrVars[0]) == -1) {
theship = "ship" + player;
} else {
theship = (("AI_" + player) + "_") + arrVars[0];
}
game[theship].inactivetimer = -random(50);
if (game[theship] == undefined) {
CreateNetworkShip(player, arrVars[0], Number(arrVars[8]));
}
game[theship]._x = Number(arrVars[1]);
game[theship]._y = Number(arrVars[2]);
game[theship]._rotation = Number(arrVars[3]);
game[theship].speed = Number(arrVars[4]);
game[theship].m = Number(arrVars[5]);
game[theship].Team = arrVars[6];
game[theship].Ping = arrVars[7];
game[theship].shiptype = arrVars[8];
game[theship].shieldlevel = arrVars[9];
game[theship].energy = arrVars[10];
if (arrVars[11] == ("ship" + _root.myplayernumber)) {
game[theship].lockedtarget = game.myship;
} else {
game[theship].lockedtarget = game[arrVars[11]];
}
game[theship].playername = arrVars[12];
game[theship].UserID = Number(arrVars[13]);
game[theship].GangID = Number(arrVars[14]);
game[theship].colour = arrVars[15];
game[theship].GangName = arrVars[16];
game[theship].kills = Number(arrVars[17]);
myping = camerafocus.Ping;
} else {
if (Number(arrVars[0]) == -1) {
theship = "myship";
} else {
theship = (("AI_" + player) + "_") + arrVars[0];
}
game[theship].Ping = arrVars[7];
}
} else if (command == "Explode") {
if (Number(arrVars[0]) == -1) {
if (player != _root.myplayernumber) {
theship = "ship" + player;
} else {
theship = "myship";
}
} else {
theship = (("AI_" + player) + "_") + arrVars[0];
}
Explode(game[theship], Number(arrVars[1]), Number(arrVars[2]), Number(arrVars[3]), arrVars[4], arrVars[5], arrVars[6], arrVars[7], Number(arrVars[8]));
} else if (command == "Fire") {
if ((arrVars[0] == "") || (arrVars[0] == "-1")) {
if (player != myplayernumber) {
FireWeapon(game["ship" + player], Number(arrVars[1]), false);
} else {
FireWeapon(game.myship, Number(arrVars[1]), false);
}
} else {
FireWeapon(game[(("AI_" + player) + "_") + arrVars[0]], Number(arrVars[1]), false);
}
} else {
trace(vars);
}
}
Server = "69.56.136.242";
if (_root.disablemultiplayer == true) {
_root.port = NaN;
_root.gamemode = 0;
} else if (_root[(("S_" + QuadrantRow) + "_") + QuadrantCol].indexOf("PvP") > -1) {
_root.port = 9000 + Number(_root[(("S_" + QuadrantRow) + "_") + QuadrantCol].substring(4, 6));
_root.gamemode = 1;
} else if (_root.InEnemySpace(QuadrantRow) && (_root[(("S_" + QuadrantRow) + "_") + QuadrantCol].indexOf("Coop") > -1)) {
_root.port = 9000 + Number(_root[(("S_" + QuadrantRow) + "_") + QuadrantCol].substring(5, 7));
_root.gamemode = 2;
} else {
_root.port = NaN;
_root.gamemode = 0;
}
socket = new XMLSocket();
socket.onXML = newXML;
socket.onConnect = newConnection;
socket.onClose = endConnection;
socket.connect(Server, port);
_root.multiplayer = false;
_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 654 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;
if (_root.Lives > 10) {
_root.Lives = 1;
}
intRandomCheck = 48;
_root.onEnterFrame = function () {
intRandomCheck--;
if (intRandomCheck <= 0) {
ValidateVariables();
intRandomCheck = 48;
}
};
Instance of Symbol 828 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 846 MovieClip "weaponsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 855 MovieClip "explosionsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 860 MovieClip "othersound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 876 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 1121 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 807 MovieClip "howtoplay" in Frame 6
onClipEvent (load) {
function back() {
_visible = false;
_y = -10000;
}
back();
}
Instance of Symbol 654 MovieClip in Frame 6
onClipEvent (load) {
themessage = (("Entering Sector S-" + _root.QuadrantRow) + "-") + _root.QuadrantCol;
gotoAndPlay (1);
}
Frame 7
gotoAndPlay (1);
Frame 8
HyperSpaceTime = 1440;
Instance of Symbol 615 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 611 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 615 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 624 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 1338 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 654 MovieClip in Frame 9
onClipEvent (load) {
themessage = "";
gotoAndPlay (1);
}
Frame 10
_quality = _root.MenuQuality;
Frame 11
quitgame();
gotoAndStop ("game");
Instance of Symbol 615 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 621 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 658 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 654 MovieClip in Frame 13
onClipEvent (load) {
themessage = "";
gotoAndPlay (1);
}
Frame 13
if (false) {
}
Frame 15
if (false) {
}
Symbol 3 MovieClip [Smoke] Frame 13
removeMovieClip(this);
Symbol 8 MovieClip Frame 1
setProperty(this, _height , _parent._parent._parent.speed * 2);
Symbol 8 MovieClip Frame 2
call(1);
Symbol 8 MovieClip Frame 3
call(1);
Symbol 8 MovieClip Frame 4
call(1);
Symbol 20 MovieClip [BlackholeBomb] Frame 1
speed = 20;
timer = 200;
Instance of Symbol 8 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 20 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 20 MovieClip [BlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 20 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 17 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 20 MovieClip [BlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 20 MovieClip [BlackholeBomb] Frame 23
gotoAndPlay ("blackholeloop");
Symbol 20 MovieClip [BlackholeBomb] Frame 42
_root.CheckBlast(this, 500);
Symbol 20 MovieClip [BlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 28 MovieClip [PlasmaRelay] Frame 1
setProperty(this, _x , Firer._x);
setProperty(this, _y , Firer._y);
setProperty(this, _rotation , Firer._rotation);
Symbol 28 MovieClip [PlasmaRelay] Frame 2
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 3
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 4
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 5
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 6
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 7
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 8
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 9
call("charging");
Symbol 28 MovieClip [PlasmaRelay] Frame 10
call("charging");
_root.weaponsound.gotoAndStop("plasmarelay");
Symbol 28 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 28 MovieClip [PlasmaRelay] Frame 12
call("start");
Symbol 28 MovieClip [PlasmaRelay] Frame 13
call("start");
Symbol 28 MovieClip [PlasmaRelay] Frame 14
call("start");
Symbol 28 MovieClip [PlasmaRelay] Frame 15
call("start");
Symbol 28 MovieClip [PlasmaRelay] Frame 16
call("start");
Symbol 28 MovieClip [PlasmaRelay] Frame 17
stop();
removeMovieClip(this);
Symbol 32 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 32 MovieClip [EMPBlast] Frame 11
removeMovieClip(this);
Symbol 37 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 37 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 37 MovieClip [Hornet] Frame 3
gotoAndPlay ("start");
Symbol 37 MovieClip [Hornet] Frame 4
_root.CheckBlast(this, 35, 10);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 37 MovieClip [Hornet] Frame 11
removeMovieClip(this);
Symbol 40 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 40 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 40 MovieClip [EMPBomb] Frame 27
gotoAndPlay ("start");
Symbol 40 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 40 MovieClip [EMPBomb] Frame 38
removeMovieClip(this);
Symbol 46 MovieClip [TimedMine] Frame 1
_root.weaponsound.gotoAndStop("mine");
setProperty(this, _rotation , random(360));
Symbol 46 MovieClip [TimedMine] Frame 28
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 50);
Symbol 46 MovieClip [TimedMine] Frame 32
removeMovieClip(this);
Symbol 54 MovieClip [ReverseLaser] Frame 1
_rotation = (_rotation + 180);
Symbol 54 MovieClip [ReverseLaser] Frame 2
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 = 10;
_root.weaponsound.gotoAndStop("disc");
Symbol 54 MovieClip [ReverseLaser] Frame 3
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 54 MovieClip [ReverseLaser] Frame 4
gotoAndPlay (3);
Symbol 54 MovieClip [ReverseLaser] Frame 5
Symbol 54 MovieClip [ReverseLaser] Frame 10
removeMovieClip(this);
Symbol 62 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 62 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 62 MovieClip [LongrangeLaser] Frame 3
gotoAndPlay (2);
Symbol 62 MovieClip [LongrangeLaser] Frame 4
Symbol 62 MovieClip [LongrangeLaser] Frame 9
removeMovieClip(this);
Symbol 66 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 66 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 66 MovieClip [Javelin] Frame 3
gotoAndPlay (2);
Symbol 66 MovieClip [Javelin] Frame 4
_root.explosionsound.gotoAndStop("torpedo");
_root.CheckBlast(this, random(25) + 50);
Symbol 66 MovieClip [Javelin] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 73 MovieClip Frame 1
if (timer >= (_parent.timer / 3)) {
timer = 0;
gotoAndPlay ("beep");
}
timer = Number(0 + timer) + 1;
Symbol 73 MovieClip Frame 2
gotoAndPlay (1);
Symbol 73 MovieClip Frame 3
_root.othersound.gotoAndPlay("pcbbeep");
Symbol 73 MovieClip Frame 4
gotoAndPlay (1);
Symbol 80 MovieClip [UltraEMPBomb] Frame 1
timer = 200;
Symbol 80 MovieClip [UltraEMPBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 80 MovieClip [UltraEMPBomb] Frame 51
gotoAndPlay ("start");
Symbol 80 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 80 MovieClip [UltraEMPBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 89 MovieClip [minipcb] Frame 1
timer = 300;
Symbol 89 MovieClip [minipcb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 89 MovieClip [minipcb] Frame 51
gotoAndPlay ("start");
Symbol 89 MovieClip [minipcb] Frame 52
_root.CheckBlast(this, 500, 0);
_root.explosionsound.gotoAndStop("pcb");
Symbol 89 MovieClip [minipcb] Frame 120
stop();
removeMovieClip(this);
Symbol 97 MovieClip [CompressionBomb] Frame 1
timer = 200;
Symbol 97 MovieClip [CompressionBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 97 MovieClip [CompressionBomb] Frame 51
gotoAndPlay ("start");
Symbol 97 MovieClip [CompressionBomb] Frame 52
_width = 10000;
_height = 10000;
_root.CheckBlast(this, 750, 0, true);
_root.explosionsound.gotoAndStop("pcb");
Symbol 97 MovieClip [CompressionBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 99 MovieClip [HumanDrone] Frame 1
speed = 20;
timer = 200;
Symbol 99 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 99 MovieClip [HumanDrone] Frame 3
gotoAndPlay (2);
Symbol 99 MovieClip [HumanDrone] Frame 4
if (Firer == _root.camerafocus) {
_root.CreateAIShip(Firer.Team, _x, _y, 6);
}
removeMovieClip(this);
Symbol 101 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 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 101 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 101 MovieClip [WormHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 103 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 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 103 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 103 MovieClip [WhiteHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 105 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 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 105 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 105 MovieClip [BlackHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 108 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 108 MovieClip [InverseGravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 108 MovieClip [InverseGravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 108 MovieClip [InverseGravityField] Frame 41
removeMovieClip(this);
Symbol 111 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 111 MovieClip [GravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 111 MovieClip [GravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 111 MovieClip [GravityField] Frame 41
removeMovieClip(this);
Symbol 116 MovieClip [LargeBlackholeBomb] Frame 1
speed = 20;
timer = 200;
Instance of Symbol 8 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 116 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 116 MovieClip [LargeBlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 116 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 17 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 116 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 116 MovieClip [LargeBlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 116 MovieClip [LargeBlackholeBomb] Frame 23
gotoAndPlay ("blackholeloop");
Symbol 116 MovieClip [LargeBlackholeBomb] Frame 42
_root.CheckBlast(this, 500);
Symbol 116 MovieClip [LargeBlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 120 MovieClip Frame 1
_root.explosionsound.gotoAndStop("electric");
Symbol 120 MovieClip Frame 2
_rotation = random(360);
Symbol 120 MovieClip Frame 3
gotoAndPlay (2);
Symbol 121 MovieClip [Orb] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Symbol 121 MovieClip [Orb] Frame 2
_root.guidedmovement(this);
Symbol 121 MovieClip [Orb] Frame 3
call("start");
Symbol 121 MovieClip [Orb] Frame 4
call("start");
Symbol 121 MovieClip [Orb] Frame 5
call("start");
Symbol 121 MovieClip [Orb] Frame 6
call("start");
Symbol 121 MovieClip [Orb] Frame 7
gotoAndPlay (2);
Symbol 121 MovieClip [Orb] Frame 8
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 121 MovieClip [Orb] Frame 13
removeMovieClip(this);
Symbol 129 MovieClip [XandeleviumBlast] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 30;
maxspeed = 30;
accelleration = 0.1;
turning = 2;
timer = 300;
Instance of Symbol 126 MovieClip in Symbol 129 MovieClip [XandeleviumBlast] Frame 1
onClipEvent (load) {
_rotation = random(360);
gotoAndStop(random(4) + 1);
}
Symbol 129 MovieClip [XandeleviumBlast] Frame 2
_root.guidedmovement(this);
Symbol 129 MovieClip [XandeleviumBlast] Frame 3
gotoAndPlay (2);
Symbol 129 MovieClip [XandeleviumBlast] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 15 + random(25));
Symbol 129 MovieClip [XandeleviumBlast] Frame 15
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 90);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 60);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 120);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 30);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Symbol 135 MovieClip [Disc] Frame 1
_root.weaponsound.gotoAndStop("disc");
speed = 1;
maxspeed = 40;
accelleration = 0.1;
turning = 2;
timer = 300;
Symbol 135 MovieClip [Disc] Frame 2
if (timer < 250) {
accelleration = 1;
}
_root.guidedmovement(this);
if (timer == 200) {
_root.weaponsound.gotoAndStop("disczoom");
}
Symbol 135 MovieClip [Disc] Frame 3
gotoAndPlay (2);
Symbol 135 MovieClip [Disc] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 25 + random(25));
Symbol 135 MovieClip [Disc] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 140 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 137 MovieClip in Symbol 140 MovieClip [HeatDisc] Frame 1
onClipEvent (load) {
setProperty(this, _rotation , random(360));
timer = 5;
}
onClipEvent (enterFrame) {
timer = timer + 1;
setProperty(this, _rotation , _rotation + timer);
}
Symbol 140 MovieClip [HeatDisc] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 140 MovieClip [HeatDisc] Frame 3
gotoAndPlay (2);
Symbol 140 MovieClip [HeatDisc] Frame 4
this.onEnterFrame = function () {
_x = target._x;
_y = target._y;
_root.Damage(target, random(3), Firer, weaponname);
};
Symbol 140 MovieClip [HeatDisc] Frame 22
stop();
removeMovieClip(this);
Symbol 141 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 141 MovieClip [EngineOverdrive] Frame 2
gotoAndPlay (1);
Symbol 142 MovieClip [ReverseThrust] Frame 1
this.onEnterFrame = function () {
Firer.speed = -Firer.maxspeed;
};
Symbol 142 MovieClip [ReverseThrust] Frame 30
removeMovieClip(this);
stop();
Symbol 143 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 143 MovieClip [FieldHop] Frame 2
removeMovieClip(this);
stop();
Symbol 145 MovieClip [Teleport] Frame 1
speed = 45;
timer = 50;
Symbol 145 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 145 MovieClip [Teleport] Frame 3
gotoAndPlay (2);
Symbol 145 MovieClip [Teleport] Frame 4
_root.weaponsound.gotoAndStop("teleport");
Firer._x = _x;
Firer._y = _y;
Symbol 145 MovieClip [Teleport] Frame 5
removeMovieClip(this);
stop();
Symbol 153 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 153 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 153 MovieClip [ThunderTorpedo] Frame 11
_root.guidedmovement(this);
Symbol 153 MovieClip [ThunderTorpedo] Frame 12
if ((timer < 0) || (ammo < 0)) {
gotoAndPlay ("fade");
} else {
gotoAndPlay ("explode");
}
Symbol 153 MovieClip [ThunderTorpedo] Frame 26
removeMovieClip(this);
stop();
Symbol 154 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 154 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 154 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 154 MovieClip [Thunder] Frame 4
if ((((timer < 0) || (Firer.thunderammo <= 0)) || (Firer.shield == undefined)) || (Firer.dead == true)) {
removeMovieClip(this);
} else {
gotoAndPlay ("zap");
}
Symbol 165 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 165 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 165 MovieClip [ThunderBomb] Frame 51
if (arrInRange[0] != undefined) {
checktargets();
}
timer--;
_rotation = (_rotation - 1);
Symbol 165 MovieClip [ThunderBomb] Frame 52
if (timer < 0) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 165 MovieClip [ThunderBomb] Frame 80
removeMovieClip(this);
stop();
Symbol 167 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 167 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 167 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 167 MovieClip [ThunderMine] Frame 52
if ((timer < 0) || (ammo < 0)) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 167 MovieClip [ThunderMine] Frame 66
removeMovieClip(this);
stop();
Symbol 169 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 169 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 169 MovieClip [ElectroMine] Frame 13
gotoAndPlay ("start");
Symbol 169 MovieClip [ElectroMine] Frame 14
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 169 MovieClip [ElectroMine] Frame 19
removeMovieClip(this);
Symbol 172 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 172 MovieClip [ElectroField] Frame 7
removeMovieClip(this);
Symbol 176 MovieClip [Magnetic Mine] Frame 1
speed = 0;
maxspeed = 15;
accelleration = 0.5;
turning = 20;
timer = 300;
_root.weaponsound.gotoAndStop("orb");
Instance of Symbol 174 MovieClip in Symbol 176 MovieClip [Magnetic Mine] Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.speed);
}
Symbol 176 MovieClip [Magnetic Mine] Frame 12
_root.guidedmovement(this);
Symbol 176 MovieClip [Magnetic Mine] Frame 13
gotoAndPlay ("start");
Symbol 176 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 176 MovieClip [Magnetic Mine] Frame 15
gotoAndPlay ("explode");
Symbol 176 MovieClip [Magnetic Mine] Frame 25
removeMovieClip(this);
Symbol 177 MovieClip [Hologram] Frame 1
Firer.HologramTime = 600;
Symbol 178 MovieClip [Stealth2] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LASS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealth2time = 600;
Symbol 179 MovieClip [Stealth] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LBSS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealthtime = 960;
Symbol 185 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 185 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 185 MovieClip [StealthMine] Frame 18
removeMovieClip(this);
Symbol 189 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 190 MovieClip [EnergyCell] Frame 1
energyleft = 100;
Symbol 190 MovieClip [EnergyCell] Frame 2
if ((Firer.energy < 100) && (energyleft > 0)) {
Firer.energy++;
energyleft--;
} else {
removeMovieClip(this);
}
Symbol 190 MovieClip [EnergyCell] Frame 3
gotoAndPlay (2);
Symbol 195 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 195 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 195 MovieClip [HiddenMine] Frame 13
gotoAndPlay ("start");
Symbol 195 MovieClip [HiddenMine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 195 MovieClip [HiddenMine] Frame 18
removeMovieClip(this);
Symbol 200 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 200 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 200 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 200 MovieClip [PlasmaMine] Frame 27
gotoAndPlay ("start");
Symbol 200 MovieClip [PlasmaMine] Frame 28
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 200 MovieClip [PlasmaMine] Frame 32
removeMovieClip(this);
Symbol 205 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 205 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 205 MovieClip [GravityMine] Frame 20
gotoAndPlay ("start");
Symbol 205 MovieClip [GravityMine] Frame 21
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 60);
Symbol 205 MovieClip [GravityMine] Frame 25
removeMovieClip(this);
Symbol 210 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 210 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 210 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 210 MovieClip [HomingMine] Frame 28
gotoAndPlay ("start");
Symbol 210 MovieClip [HomingMine] Frame 29
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 210 MovieClip [HomingMine] Frame 33
removeMovieClip(this);
Symbol 213 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 213 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 213 MovieClip [Mine] Frame 13
gotoAndPlay ("start");
Symbol 213 MovieClip [Mine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 213 MovieClip [Mine] Frame 18
removeMovieClip(this);
Symbol 218 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 218 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 218 MovieClip [Plasma] Frame 3
gotoAndPlay (2);
Symbol 218 MovieClip [Plasma] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 218 MovieClip [Plasma] Frame 15
removeMovieClip(this);
Symbol 221 MovieClip [Missle3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 221 MovieClip [Missle3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 221 MovieClip [Missle3] Frame 3
gotoAndPlay (2);
Symbol 221 MovieClip [Missle3] Frame 4
_root.CheckBlast(this, 10);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 221 MovieClip [Missle3] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 225 MovieClip [Missle4] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 225 MovieClip [Missle4] Frame 2
_root.guidedmovement(this);
Symbol 225 MovieClip [Missle4] Frame 3
gotoAndPlay (2);
Symbol 225 MovieClip [Missle4] Frame 8
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 225 MovieClip [Missle4] Frame 13
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 228 MovieClip [Missle2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 228 MovieClip [Missle2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 228 MovieClip [Missle2] Frame 3
gotoAndPlay (2);
Symbol 228 MovieClip [Missle2] Frame 4
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 228 MovieClip [Missle2] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 231 MovieClip [EMPTorpedo] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 231 MovieClip [EMPTorpedo] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 231 MovieClip [EMPTorpedo] Frame 3
gotoAndPlay (2);
Symbol 231 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 231 MovieClip [EMPTorpedo] Frame 14
removeMovieClip(this);
Symbol 233 MovieClip [Needle] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 233 MovieClip [Needle] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 233 MovieClip [Needle] Frame 3
gotoAndPlay (2);
Symbol 233 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 233 MovieClip [Needle] Frame 5
gotoAndPlay ("explode");
Symbol 236 MovieClip [Carnivore3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 236 MovieClip [Carnivore3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 236 MovieClip [Carnivore3] Frame 3
gotoAndPlay (2);
Symbol 236 MovieClip [Carnivore3] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 236 MovieClip [Carnivore3] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 239 MovieClip [Carnivore2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 239 MovieClip [Carnivore2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 239 MovieClip [Carnivore2] Frame 3
gotoAndPlay (2);
Symbol 239 MovieClip [Carnivore2] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 239 MovieClip [Carnivore2] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 242 MovieClip [TeleportingCarnivore] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 242 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 242 MovieClip [TeleportingCarnivore] Frame 3
gotoAndPlay (2);
Symbol 242 MovieClip [TeleportingCarnivore] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 242 MovieClip [TeleportingCarnivore] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 245 MovieClip [Carnivore1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 245 MovieClip [Carnivore1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 245 MovieClip [Carnivore1] Frame 3
gotoAndPlay (2);
Symbol 245 MovieClip [Carnivore1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 245 MovieClip [Carnivore1] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 248 MovieClip [ATTorpedo] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 248 MovieClip [ATTorpedo] Frame 2
totest = target;
if (totest != undefined) {
dist = _root.GetDistance(this, totest);
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.guidedmovement(this);
_root.Exhaust(this);
Symbol 248 MovieClip [ATTorpedo] Frame 3
gotoAndPlay (2);
Symbol 248 MovieClip [ATTorpedo] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 248 MovieClip [ATTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 251 MovieClip [Missle1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 251 MovieClip [Missle1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 251 MovieClip [Missle1] Frame 3
gotoAndPlay (2);
Symbol 251 MovieClip [Missle1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 251 MovieClip [Missle1] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 253 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 253 MovieClip [Trail] Frame 2
gotoAndPlay (1);
Symbol 258 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 258 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 258 MovieClip [AlienMainGun] Frame 3
call("actions");
Symbol 258 MovieClip [AlienMainGun] Frame 4
gotoAndPlay (3);
Symbol 258 MovieClip [AlienMainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 258 MovieClip [AlienMainGun] Frame 7
removeMovieClip(this);
Symbol 261 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 261 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 261 MovieClip [MainGun] Frame 3
call("actions");
Symbol 261 MovieClip [MainGun] Frame 4
gotoAndPlay (3);
Symbol 261 MovieClip [MainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 261 MovieClip [MainGun] Frame 7
removeMovieClip(this);
Symbol 263 MovieClip [HumanSubStation] Frame 1
big = true;
Team = "Human";
Symbol 269 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 268 MovieClip in Symbol 269 MovieClip [Scrap] Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
_rotation = random(360);
}
Symbol 269 MovieClip [Scrap] Frame 2
gotoAndPlay (1);
Symbol 278 MovieClip [Explosion] Frame 41
removeMovieClip(this);
Symbol 281 MovieClip [ConcentratedPhotonTorpedo] Frame 1
speed = 1;
maxspeed = 5;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 281 MovieClip [ConcentratedPhotonTorpedo] Frame 2
_root.guidedmovement(this);
Symbol 281 MovieClip [ConcentratedPhotonTorpedo] Frame 3
gotoAndPlay (2);
Symbol 281 MovieClip [ConcentratedPhotonTorpedo] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 75);
Symbol 281 MovieClip [ConcentratedPhotonTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 284 MovieClip [LRPhotonTorpedo] Frame 1
speed = 1;
maxspeed = 28;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 284 MovieClip [LRPhotonTorpedo] Frame 2
_root.guidedmovement(this);
Symbol 284 MovieClip [LRPhotonTorpedo] Frame 3
gotoAndPlay (2);
Symbol 284 MovieClip [LRPhotonTorpedo] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 15);
Symbol 284 MovieClip [LRPhotonTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 287 MovieClip [Photon] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 287 MovieClip [Photon] Frame 2
_root.guidedmovement(this);
Symbol 287 MovieClip [Photon] Frame 3
gotoAndPlay (2);
Symbol 287 MovieClip [Photon] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 25);
Symbol 287 MovieClip [Photon] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 298 MovieClip [DamagingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 298 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 289 MovieClip in Symbol 298 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 298 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 298 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 298 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 298 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 298 MovieClip [DamagingBeam] Frame 3
gotoAndPlay (2);
Symbol 299 MovieClip [DrainingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
Symbol 299 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 289 MovieClip in Symbol 299 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 299 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 299 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 299 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 299 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 299 MovieClip [DrainingBeam] Frame 3
gotoAndPlay (2);
Symbol 300 MovieClip [EnergyBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 300 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 289 MovieClip in Symbol 300 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 300 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 300 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 300 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 300 MovieClip [EnergyBeam] Frame 3
gotoAndPlay (2);
Symbol 301 MovieClip [TractorBeam] Frame 1
_rotation = _root.GetAngle(this, target);
fixedrotation = target._rotation;
Symbol 301 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 289 MovieClip in Symbol 301 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 301 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 301 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 301 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 301 MovieClip [TractorBeam] Frame 3
gotoAndPlay (2);
Symbol 302 MovieClip [MiningBeam3] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 302 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 289 MovieClip in Symbol 302 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 302 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 302 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 302 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 302 MovieClip [MiningBeam3] Frame 3
gotoAndPlay (2);
Symbol 303 MovieClip [MiningBeam2] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 303 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 289 MovieClip in Symbol 303 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 303 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 303 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 303 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 303 MovieClip [MiningBeam2] Frame 3
gotoAndPlay (2);
Symbol 304 MovieClip [MiningBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 304 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 289 MovieClip in Symbol 304 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 304 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 304 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 304 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 304 MovieClip [MiningBeam] Frame 3
gotoAndPlay (2);
Symbol 305 MovieClip [ShieldSapBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 305 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 289 MovieClip in Symbol 305 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 305 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 305 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 305 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 305 MovieClip [ShieldSapBeam] Frame 3
gotoAndPlay (2);
Symbol 306 MovieClip [LargeLaserBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 306 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 289 MovieClip in Symbol 306 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 306 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 306 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 306 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 306 MovieClip [LargeLaserBeam] Frame 3
gotoAndPlay (2);
Symbol 307 MovieClip [Beam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 307 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 289 MovieClip in Symbol 307 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 293 MovieClip in Symbol 307 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 295 MovieClip in Symbol 307 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 297 MovieClip [BeamSparks] in Symbol 307 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 307 MovieClip [Beam] Frame 3
gotoAndPlay (2);
Symbol 312 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 312 MovieClip [Damage Bubble] Frame 201
gotoAndPlay (1);
Symbol 317 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 317 MovieClip [Shield] Frame 201
gotoAndPlay (1);
Symbol 328 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 328 MovieClip [Crate] Frame 34
removeMovieClip(this);
Symbol 330 MovieClip [AlienSubStation] Frame 1
big = true;
Team = "Alien";
Symbol 333 MovieClip [Exhaust] Frame 11
removeMovieClip(this);
Symbol 342 MovieClip [Disruptor] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Instance of Symbol 336 MovieClip in Symbol 342 MovieClip [Disruptor] Frame 1
onClipEvent (enterFrame) {
_rotation = random(360);
_alpha = random(100);
}
Symbol 342 MovieClip [Disruptor] Frame 2
_root.guidedmovement(this);
Symbol 342 MovieClip [Disruptor] Frame 3
gotoAndPlay (2);
Symbol 342 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 342 MovieClip [Disruptor] Frame 5
_root.CheckBlast(this, 50);
call("explode");
Symbol 342 MovieClip [Disruptor] Frame 6
call("explode");
Symbol 342 MovieClip [Disruptor] Frame 7
call("explode");
Symbol 342 MovieClip [Disruptor] Frame 26
removeMovieClip(this);
Symbol 347 MovieClip [ProximityBlaster] Frame 1
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
_rotation = random(360);
};
Symbol 347 MovieClip [ProximityBlaster] Frame 11
_root.CheckBlast(this, 100, 0, true);
_root.explosionsound.gotoAndStop("plasma");
Symbol 347 MovieClip [ProximityBlaster] Frame 21
removeMovieClip(this);
Symbol 353 MovieClip Frame 1
Team = "Human";
Symbol 358 MovieClip [Big Station] Frame 1
big = true;
Team = "Human";
sector = _root.Sector;
Symbol 365 MovieClip [Alien Station] Frame 1
big = true;
Team = "Alien";
Symbol 367 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 367 MovieClip [Meteorite] Frame 2
intTimer++;
if (intTimer > 100) {
intTimer = 0;
_root.sendcommand("MeteoritePosition", (((((((((_name + "|") + _x) + "|") + _y) + "|") + _width) + "|") + _height) + "|") + _rotation);
}
Symbol 367 MovieClip [Meteorite] Frame 3
gotoAndPlay (2);
Symbol 421 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 426 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 439 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 442 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 455 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 458 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 468 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 471 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 473 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 477 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 480 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 483 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 487 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 490 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 494 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 498 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 510 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 514 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 518 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 521 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 526 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 530 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 535 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 538 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 541 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 543 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 546 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 552 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 556 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 559 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 563 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 567 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 571 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 576 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 580 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 585 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 591 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 596 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 601 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 22
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 24
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 26
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 29
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 439 MovieClip in Symbol 602 MovieClip Frame 42
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Symbol 604 MovieClip Frame 1
if (_alpha > 1) {
_alpha = (_alpha / 1.1);
}
Symbol 604 MovieClip Frame 2
gotoAndPlay (1);
Symbol 609 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 611 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 602 MovieClip "inner" in Symbol 611 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 604 MovieClip "shield" in Symbol 611 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 609 MovieClip in Symbol 611 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , -_parent._rotation);
}
Symbol 611 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 611 MovieClip [Ship] Frame 3
call("action");
Symbol 611 MovieClip [Ship] Frame 4
call("loop");
Symbol 611 MovieClip [Ship] Frame 5
call("action");
Instance of Symbol 367 MovieClip [Meteorite] in Symbol 611 MovieClip [Ship] Frame 5
/* no clip actions */
Instance of Symbol 602 MovieClip "inner" in Symbol 611 MovieClip [Ship] Frame 5
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Symbol 611 MovieClip [Ship] Frame 6
call("loop");
Symbol 611 MovieClip [Ship] Frame 7
call("action");
Instance of Symbol 602 MovieClip "inner" in Symbol 611 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 602 MovieClip "inner" in Symbol 611 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Instance of Symbol 604 MovieClip "shield" in Symbol 611 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 611 MovieClip [Ship] Frame 8
call("loop");
Symbol 633 MovieClip Frame 120
trace("Logo Done");
stop();
Symbol 635 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk?r=" + _url, "_blank");
}
Symbol 641 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk", "_top");
}
Symbol 651 MovieClip Frame 1
if (_root.MyTeam == "Alien") {
gotoAndStop (2);
} else if (_root.MyTeam == "Human") {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
Symbol 653 MovieClip Frame 1
themessage = _parent.themessage;
Symbol 654 MovieClip Frame 25
stop();
Symbol 1367 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 666 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 670 Button
on (release) {
_root.play();
}
Symbol 671 MovieClip Frame 1
intTimer = 0;
Symbol 671 MovieClip Frame 2
intTimer++;
if (_root.GameNews != undefined) {
if (_root.gameversion == _root.LatestVersion) {
trace((_root.gameversion + "==") + _root.LatestVersion);
_root.play();
} else {
_root.disablemultiplayer = true;
gotoAndStop (5);
}
}
if (intTimer > 300) {
gotoAndStop (4);
}
Symbol 671 MovieClip Frame 3
gotoAndPlay (2);
Symbol 685 Button
on (release, keyPress "<Enter>") {
_root.Guest = false;
_root.SetName(entername.text);
_root.Password = enterpassword.text;
trace((((("http://69.56.136.242/sf2/userfunctions.asp?action=login&u=" + entername.text) + "&p=") + enterpassword.text) + "&") + Math.random());
loadVariables ((((("http://69.56.136.242/sf2/userfunctions.asp?action=login&u=" + entername.text) + "&p=") + enterpassword.text) + "&") + Math.random(), this);
play();
}
Symbol 688 MovieClip Frame 1
stop();
intTimeOutCount = 0;
attempts = 0;
mySharedObject = SharedObject.getLocal("userData");
if (mySharedObject.data.username != undefined) {
entername.text = mySharedObject.data.username;
enterpassword.text = mySharedObject.data.password;
}
Symbol 688 MovieClip Frame 2
if (returnedempty != undefined) {
gotoAndStop (4);
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.username = _root.MyName;
mySharedObject.data.password = _root.Password;
_root.addinfo(("<b>You logged in. Welcome " + _root.MyName) + "</b>", "#FFFFFF", true);
_root.addtonews(_root.MyName + " logged in.", "", _root.GangID);
}
if (intTimeOutCount > 300) {
intTimeOutCount = 0;
attempts++;
if (attempts < 3) {
loadVariables ((((("http://69.56.136.242/sf2/sfdg.asp?action=login&u=" + _root.MyName) + "&p=") + _root.Password) + "&") + Math.random(), this);
} else {
gotoAndStop (5);
}
}
Symbol 688 MovieClip Frame 3
gotoAndPlay (2);
Symbol 688 MovieClip Frame 4
if (returnedempty == "True") {
returnedempty = undefined;
gotoAndStop (1);
} else {
returnedempty = undefined;
_root.SetShip(Number(Ship));
_root.MyTeam = Team;
_root.QuadrantCol = Number(QuadCol);
_root.QuadrantRow = Number(QuadRow);
_root.Deaths = Number(Deaths);
_root.SetKills(Number(Kills));
_root.UserID = Number(UserID);
_root.SetMoney(Number(Money));
_root.engine = Number(Engine);
_root.Lives = Number(Lives);
_root.hyperspace = Hyperspace;
_root.GangID = GangID;
_root.GangName = GangName;
_root.shipcolour = GangColour;
_root.arrMyWeapons = Weapons.split("|");
i = 0;
while (i <= 9) {
if (_root.arrMyWeapons[i] != "") {
_root.arrMyWeapons[i] = Number(_root.arrMyWeapons[i]);
}
i++;
}
_root.gotoAndStop(_root.MyTeam + "Shop");
}
Symbol 695 Button
on (release) {
getURL ("http://www.disputedgalaxy.com", "_blank");
}
Symbol 698 Button
on (release) {
_root.Guest = true;
_root.UserID = 0;
gotoAndStop ("Guest");
}
Symbol 699 Button
on (release) {
_root.Server = serveraddr.text;
gotoAndStop ("Register");
}
Symbol 700 Button
on (release) {
_root.Server = serveraddr.text;
gotoAndStop ("options");
}
Symbol 701 Button
on (release) {
gotoAndStop ("howto");
}
Symbol 709 Button
on (release) {
if (entername.text != "") {
_root.SetShip(1);
_root.MyTeam = "Human";
_root.SetName("Guest_" + entername.text);
_root.QuadrantRow = 15;
_root.QuadrantCol = 19;
_root.gotoAndStop("HumanShop");
}
}
Symbol 710 Button
on (release) {
if (entername.text != "") {
_root.SetName("Guest_" + entername.text);
_root.SetShip(5);
_root.MyTeam = "Alien";
_root.QuadrantCol = 3;
_root.QuadrantRow = 4;
_root.gotoAndStop("AlienShop");
}
}
Symbol 713 Button
on (release) {
gotoAndStop (1);
}
Symbol 722 Button
on (release) {
if ((entername.text != "") && ((((((enterpassword.text != "") && (enterpassword.text.indexOf(" ") < 0)) && (enterpassword.text.indexOf("\"") < 0)) && (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 724 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 727 Button
on (release) {
_parent.gotoAndStop(3);
}
Symbol 728 Button
on (release) {
newTeam = "Human";
gotoAndPlay (3);
}
Symbol 729 Button
on (release) {
newTeam = "Alien";
gotoAndPlay (3);
}
Symbol 732 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 734 Button
on (release) {
gotoAndStop (1);
}
Symbol 738 Button
on (release) {
gotoAndStop (1);
}
Symbol 739 MovieClip Frame 1
Complete = undefined;
stop();
Symbol 739 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 739 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 739 MovieClip Frame 5
gotoAndPlay (4);
Symbol 749 Button
on (release) {
gotoAndStop (3);
}
Symbol 750 Button
on (release) {
gotoAndStop (2);
}
Symbol 751 Button
on (release) {
gotoAndStop (4);
}
Symbol 755 MovieClip Frame 1
if (eval (variable) == "LOW") {
gotoAndStop (2);
} else if (eval (variable) == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
Symbol 755 MovieClip Frame 2
Set(variable, "LOW");
trace(eval (variable));
Symbol 755 MovieClip Frame 3
Set(variable, "MEDIUM");
trace(eval (variable));
Symbol 755 MovieClip Frame 4
Set(variable, "HIGH");
trace(eval (variable));
Symbol 759 Button
on (release) {
gotoAndStop (3);
}
Symbol 761 Button
on (release) {
gotoAndStop (2);
}
Symbol 762 MovieClip Frame 1
if (eval (variable) == true) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 762 MovieClip Frame 2
Set(variable, true);
Symbol 762 MovieClip Frame 3
Set(variable, false);
Symbol 766 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 771 Button
on (release) {
gotoAndStop ("controls");
}
Symbol 773 Button
on (release) {
gotoAndStop ("aimofthegame");
}
Symbol 777 Button
on (release) {
gotoAndStop ("earning");
}
Symbol 778 Button
on (release) {
gotoAndStop ("multiplayer");
}
Symbol 779 Button
on (release) {
gotoAndStop ("rules");
}
Symbol 781 Button
on (release) {
back();
}
Symbol 783 Button
on (release) {
getURL ("http://www.disputedgalaxy.com/instructions", "_blank");
}
Symbol 785 Button
on (release) {
gotoAndStop ("travelling");
}
Symbol 787 Button
on (release) {
gotoAndStop ("arrows");
}
Symbol 793 Button
on (release) {
gotoAndStop (1);
}
Symbol 807 MovieClip Frame 1
stop();
Symbol 808 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 = "LOW";
_root.OptionFragments = true;
_root.OptionExhaust = true;
_root.OptionMusic = true;
}
stop();
Instance of Symbol 755 MovieClip in Symbol 808 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.InGameQuality";
}
Instance of Symbol 755 MovieClip in Symbol 808 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.MenuQuality";
}
Instance of Symbol 762 MovieClip in Symbol 808 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionFragments";
}
Instance of Symbol 762 MovieClip in Symbol 808 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionExhaust";
}
Instance of Symbol 762 MovieClip in Symbol 808 MovieClip Frame 5
onClipEvent (load) {
variable = "_root.OptionMusic";
}
Instance of Symbol 807 MovieClip in Symbol 808 MovieClip Frame 6
onClipEvent (load) {
function back() {
_parent.gotoAndStop(1);
}
}
Instance of Symbol 817 MovieClip in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.planetstyle);
}
Instance of Symbol 819 MovieClip in Symbol 820 MovieClip Frame 1
onClipEvent (load) {
_visible = _parent.hasring;
}
Symbol 823 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._xscale = Number(arrPlanet[4]) / 4;
inner._yscale = Number(arrPlanet[4]) / 4;
inner._rotation = random(360);
inner.hasring = arrPlanet[5] == "R";
inner.planetstyle = Number(arrPlanet[6]);
myColorTransform = new Object();
myColorTransform = {rb:rb, gb:gb, bb:bb};
myColor = new Color(inner);
myColor.setTransform(myColorTransform);
} else {
gotoAndStop (2);
}
Symbol 827 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 828 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.camerafocus.status == "warping") {
_visible = false;
}
};
Instance of Symbol 611 MovieClip [Ship] "myship" in Symbol 828 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 827 MovieClip "1" in Symbol 828 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 846 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 1
stop();
Instance of Symbol 875 MovieClip in Symbol 876 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 875 MovieClip in Symbol 876 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 875 MovieClip in Symbol 876 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 875 MovieClip in Symbol 876 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 875 MovieClip in Symbol 876 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 875 MovieClip in Symbol 876 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.MissionAngle != undefined) && (_root.MissionActive == true)) {
_visible = true;
_rotation = _root.MissionAngle;
distance = _root.MissionDistance;
} else {
_visible = false;
}
}
Symbol 880 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 881 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 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 51
stop();
Symbol 892 Button
on (release) {
gotoAndStop (1);
}
Symbol 893 Button
on (release) {
gotoAndStop (2);
}
Symbol 894 Button
on (release) {
gotoAndStop (3);
}
Symbol 895 Button
on (release) {
gotoAndStop (4);
}
Symbol 898 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 899 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 901 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 904 MovieClip Frame 1
stop();
Symbol 904 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 904 MovieClip Frame 136
reported = undefined;
gotoAndStop (1);
Symbol 907 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 909 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 910 MovieClip Frame 1
_root.disablecontrols = false;
if (_root.Guest == true) {
gotoAndStop (3);
} else {
stop();
}
Symbol 910 MovieClip Frame 2
_root.disablecontrols = true;
Selection.setFocus("saytext");
Selection.setSelection();
Symbol 914 Button
on (release) {
gotoAndStop (5);
}
Symbol 917 Button
on (release) {
gotoAndStop (6);
}
Symbol 920 Button
on (release) {
gotoAndStop (7);
}
Symbol 927 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 929 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 930 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)) || (arrVars.length > 8)) {
trace("Blocked Message, len: " + arrVars.length);
} 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)) {
} 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(9000, 9015, 9016, 9017, 9018);
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 887 MovieClip "sectornotify" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "sector") {
gotoAndStop (1);
}
}
Instance of Symbol 887 MovieClip "teamnotify" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "all") {
gotoAndStop (1);
}
}
Instance of Symbol 887 MovieClip "gangnotify" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "gang") {
gotoAndStop (1);
}
}
Instance of Symbol 887 MovieClip "activitynotify" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.chattype == "") {
gotoAndStop (1);
}
}
Symbol 930 MovieClip Frame 2
chattype = "sector";
large = false;
Symbol 930 MovieClip Frame 3
chattype = "all";
large = false;
Symbol 930 MovieClip Frame 4
chattype = "gang";
large = false;
Symbol 930 MovieClip Frame 5
chattype = "sector";
large = true;
Symbol 930 MovieClip Frame 6
chattype = "all";
large = true;
Symbol 930 MovieClip Frame 7
chattype = "gang";
large = true;
Symbol 941 MovieClip Frame 1
stop();
Symbol 956 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 947 MovieClip in Symbol 956 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget != undefined) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 956 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 973 MovieClip in Symbol 976 MovieClip Frame 1
onClipEvent (enterFrame) {
percent = (_root.camerafocus.shieldlevel / _root.camerafocus.maxshield) * 100;
if ((percent > 100) || (_root.camerafocus.shieldlevel > 600)) {
trace("Shield Too High");
_root.gotoAndPlay(1);
}
i = Math.ceil(Number(101 - percent) / 2);
gotoAndStop(i);
}
Instance of Symbol 602 MovieClip in Symbol 976 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root.camerafocus._rotation;
speed = _root.camerafocus.speed;
gotoAndStop(_root.camerafocus.shiptype);
}
Instance of Symbol 979 MovieClip in Symbol 982 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 1001 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 1017 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 1018 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 1021 MovieClip Frame 1
stop();
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 973 MovieClip in Symbol 1021 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 602 MovieClip in Symbol 1021 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 979 MovieClip in Symbol 1021 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 1021 MovieClip Frame 2
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 973 MovieClip in Symbol 1021 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop (1);
_parent.displaydistance = Math.ceil(_root.GetDistance(_root.camerafocus, _root.camerafocus.lockedtarget));
}
Instance of Symbol 367 MovieClip [Meteorite] in Symbol 1021 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 979 MovieClip in Symbol 1021 MovieClip Frame 2
onClipEvent (enterFrame) {
_width = ((_root.camerafocus.lockedtarget.Ore / _root.camerafocus.lockedtarget.OrigOre) * 120);
_parent.displayore = _root.camerafocus.lockedtarget.Ore;
gotoAndStop (1);
}
Symbol 1021 MovieClip Frame 4
gotoAndStop (3);
Symbol 1039 Button
on (release) {
stopAllSounds();
_root.ClearMission();
}
Symbol 1042 Button
on (release) {
_root.howtoplay._y = 251;
_root.howtoplay._visible = true;
}
Symbol 1050 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 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 1;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 2;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 3;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 4;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 5;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 6;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 7;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 8;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 9;
}
Instance of Symbol 1050 MovieClip in Symbol 1051 MovieClip Frame 1
onClipEvent (load) {
slot = 0;
}
Symbol 1066 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 1066 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1066 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 1066 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 1066 MovieClip Frame 67
_alpha = (_alpha - 5);
if (_alpha < 5) {
gotoAndPlay (1);
}
Symbol 1066 MovieClip Frame 68
gotoAndPlay ("fade");
Symbol 1075 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 1083 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 1085 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 1086 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 1087 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 1088 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 1090 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 1092 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 1094 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 1096 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 1098 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 1100 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 1101 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 1106 Button
on (release) {
_root.selectedplotmethod = "plot";
}
Symbol 1109 Button
on (release) {
_root.selectedplotmethod = "hyperspace";
}
Symbol 1111 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 1115 Button
on (release, keyPress "w") {
z = 0;
while (z <= 400) {
removequad(z);
z++;
}
gotoAndPlay (1);
}
Symbol 1116 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 1116 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1116 MovieClip Frame 3
z = 0;
while (z < 400) {
addquad();
z++;
}
quad1.row = 0;
quad1.column = 1;
Symbol 1116 MovieClip Frame 4
stop();
Instance of Symbol 1001 MovieClip "selectedweaponscreen" in Symbol 1121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.SecondaryWeaponNames[_root.camerafocus.SecondaryWeaponSelected] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 1021 MovieClip "lockedscreen" in Symbol 1121 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 1040 MovieClip in Symbol 1121 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.objective + "") == "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1045 MovieClip in Symbol 1121 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.multiplayer == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1051 MovieClip "weaponselect" in Symbol 1121 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 1124 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 1125 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 2
lives = _root.Lives + " lives remaining";
_root.SaveData(this);
Symbol 1135 MovieClip Frame 1
_rotation = _root.WarpAngle;
Instance of Symbol 620 MovieClip in Symbol 1135 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 620 MovieClip in Symbol 1135 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 1135 MovieClip Frame 165
_root.gotoAndStop("reload");
Symbol 1149 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 1152 Button
on (release) {
gotoAndStop ("missions");
}
Symbol 1153 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 1155 Button
on (rollOver) {
_parent.selectedsector = ((((("Sector S-" + row) + "-") + column) + " (Threat: ") + _root.GetThreatRating(row)) + ")";
}
Symbol 1156 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Space Station)";
}
Symbol 1157 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Mining)";
}
Symbol 1158 Button
on (rollOver) {
_parent.selectedsector = ((("Sector S-" + row) + "-") + column) + " (Sub Station)";
}
Symbol 1159 Button
on (rollOver) {
_parent.selectedsector = ((("S-" + row) + "-") + column) + " (Enemy Station)";
}
Symbol 1160 Button
on (rollOver) {
_parent.selectedsector = ((("S-" + row) + "-") + column) + " (Enemy Sub Station)";
}
Symbol 1161 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 1163 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 1163 MovieClip Frame 2
stop();
Symbol 1169 Button
on (release) {
gotoAndStop ("gangs");
}
Symbol 1171 Button
on (release) {
getURL ("http://www.disputedgalaxy.com/gamestatistics", "_blank");
}
Symbol 1173 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk/", "_blank");
}
Symbol 1175 Button
on (release) {
gotoAndStop ("howto");
}
Instance of Symbol 602 MovieClip in Symbol 1180 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.ship);
}
onClipEvent (enterFrame) {
if ((_width > 170) || (_height > 170)) {
_width = (_width / 1.02);
_height = (_height / 1.02);
}
}
Symbol 1187 Button
on (release) {
_parent.selectedslot = slot;
_parent.filter = slottype;
_parent.gotoAndStop("buyweapon");
}
Symbol 1192 Button
on (release) {
_root.SetMoney(_root.money + displaysellprice);
_root.arrMyWeapons[slot] = weaponnum;
gotoAndPlay (3);
}
Symbol 1193 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 1193 MovieClip Frame 3
gotoAndStop (1);
Symbol 1198 Button
on (release) {
gotoAndStop ("buyship");
}
Symbol 1200 Button
on (release) {
lifecost = lifeprice;
if (((_root.money - lifecost) >= 0) && (_root.Lives < 10)) {
_root.Lives++;
_root.SetMoney(_root.money - lifecost);
}
}
Symbol 1203 Button
on (release) {
gotoAndStop ("buyengine");
}
Symbol 1208 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1211 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 1220 Button
on (release) {
if (_root.money >= price) {
_root.SetMoney(_root.money - price);
_root.arrMyWeapons[_parent.selectedslot] = weaponnum;
_parent.clearweapons();
}
}
Symbol 1223 Button
on (release) {
_root.wi.weaponname = weaponname;
_root.wi.gotoAndStop(2);
}
Instance of Symbol 421 MovieClip in Symbol 1224 MovieClip Frame 1
onClipEvent (load) {
mynum = _parent.weaponnum;
}
Symbol 1226 Button
on (release) {
clearweapons();
}
Symbol 1228 Button
on (release) {
_root.SelectedShopShip = shiptype;
_parent.clearships("shipdetails");
}
Instance of Symbol 602 MovieClip in Symbol 1230 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
if ((_width > 70) || (_height > 70)) {
_width = (_width / 1.02);
_height = (_height / 1.02);
}
}
Symbol 1232 Button
on (release) {
clearships("shop");
}
Symbol 1248 Button
on (release) {
if (_root.money >= total) {
_root.SetMoney(_root.money - total);
_root.SetShip(_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 1249 Button
on (release) {
gotoAndStop ("buyship");
}
Symbol 1270 Button
on (release) {
if (_root.money >= price) {
_root.SetMoney(_root.money - price);
_root.engine = Number(_name);
_parent.gotoAndStop("shop");
}
}
Symbol 1273 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 1275 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 1277 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 1286 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 1287 MovieClip Frame 1
_root.GenerateRandomMission(this);
Symbol 1290 Button
on (release) {
_root.GenerateRandomMission(m1);
_root.GenerateRandomMission(m2);
_root.GenerateRandomMission(m3);
_root.GenerateRandomMission(m4);
}
Symbol 1297 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 1302 Button
on (release) {
_root.GangID = 0;
_root.shipcolour = "";
_root.loggedinas = "Logged in as " + _root.MyName;
_parent._parent.gotoAndPlay(1);
}
Symbol 1305 Button
on (release) {
_parent.gotoAndStop(6);
}
Symbol 1308 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 1309 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1310 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 1313 Button
on (release) {
gotoAndStop (6);
}
Symbol 1314 Button
on (release) {
_parent.gotoAndStop("menu");
}
Symbol 1319 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 1321 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 1326 Button
on (release) {
_root.NewGangName = newgangname.text;
_root.NewGangPassword = newgangpassword.text;
if ((_root.NewGangName != "") && (_root.NewGangName != "New Gang")) {
gotoAndPlay (7);
}
}
Symbol 1327 MovieClip Frame 1
stop();
Instance of Symbol 602 MovieClip in Symbol 1327 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.MyShipType);
}
Symbol 1327 MovieClip Frame 2
colour = _parent.colour;
gotoAndStop (1);
Symbol 1336 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 1336 MovieClip Frame 2
if (returnedempty != undefined) {
gotoAndStop (4);
}
Symbol 1336 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1336 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 1336 MovieClip Frame 6
_root.NewGangColour = "FFFFFF";
colour = _root.NewGangColour;
if (_root.Kills <= 1600) {
gotoAndStop (10);
} else if (_root.money <= 50000) {
gotoAndStop (12);
}
Symbol 1336 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 1336 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 1336 MovieClip Frame 9
gotoAndPlay (8);
Symbol 1338 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 1338 MovieClip Frame 2
if (executed != "") {
trace("Go to menu");
gotoAndStop ("menu");
executed = "";
}
Symbol 1338 MovieClip Frame 3
inactivetimer++;
if (inactivetimer > 500) {
gotoAndPlay (1);
} else {
gotoAndPlay (2);
}
Symbol 1338 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 1338 MovieClip Frame 5
thetitle = "Space Station Shop";
Instance of Symbol 1180 MovieClip "shopship" in Symbol 1338 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 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 1;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 2;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 3;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 4;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 5;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 6;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 7;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 8;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 9;
}
Instance of Symbol 1193 MovieClip in Symbol 1338 MovieClip Frame 5
onClipEvent (load) {
slot = 0;
}
Symbol 1338 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 1338 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 = 10 - _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 1338 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 1180 MovieClip "shopship" in Symbol 1338 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 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipMaxSpeed / 20) * 100);
}
Instance of Symbol 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipAccelleration / 20) * 100);
}
Instance of Symbol 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipManuverability / 7) * 100);
}
Instance of Symbol 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipShield / 400) * 100);
}
Instance of Symbol 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipMiningCapacity / 5000) * 100);
}
Instance of Symbol 1252 MovieClip in Symbol 1338 MovieClip Frame 8
onClipEvent (load) {
_width = ((_parent.ShipLockingAngle / 300) * 100);
}
Instance of Symbol 807 MovieClip in Symbol 1338 MovieClip Frame 12
onClipEvent (load) {
function back() {
_parent.gotoAndStop("menu");
}
}
Symbol 1342 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 1352 Button
on (release) {
gotoAndStop (1);
}
Symbol 1353 MovieClip Frame 1
stop();
weaponinfo = "Loading Info....";
Symbol 1353 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 1356 Button
on (release) {
gotoAndPlay (1);
}
Symbol 1362 Button
on (release) {
gotoAndStop ("rules");
}
Symbol 1365 Button
on (release) {
gotoAndStop(MyTeam + "shop");
}