Frame 1
MochiAd.showPreGameAd({id:"ccf742a4d9a1b67a", res:"700x500"});
mochi.MochiServices.connect("ccf742a4d9a1b67a");
Frame 3
_root.ready = false;
Mouse.show();
stop();
_quality = "HIGH";
Stage.showMenu = false;
_root.gameversion = "Beta 0.1.3";
_root.EnterName = false;
_root.SavePlayerData = true;
intMissionSectorTimer = 0;
_root.GangID = 0;
_root.GangName = undefined;
_root.shipcolour = undefined;
_root.infoscreen = "";
_root.money = 2500;
_root.Kills = 0;
_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;
OptionExhaust = true;
OptionFragments = true;
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|750|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|2100|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|1300|true|false|300|Mines|Human|2\n";
strWeapons = strWeapons + "HeatDisc|Xandelevium Heat Disc|15|1000|true|true|900|Regular Weapons|Alien|1\n";
strWeapons = strWeapons + "ThunderMine|Thunder Bolt Mine|2|800|false|false|2500|Mines|Neutral|3\n";
strWeapons = strWeapons + "BlackholeBomb|Vortex Bomb|1|3000|false|false|3000|Large Weapons|Alien|1\n";
strWeapons = strWeapons + "StealthMine|LBSS Area Stealth|1|3000|false|false|800|Utilities|Human|2\n";
strWeapons = strWeapons + "Stealth|LBSS Stealth System|1|3000|false|false|1200|Utilities|Neutral|3\n";
strWeapons = strWeapons + "Shield|Shield Bubble|1|5000|false|false|1000|Utilities|Neutral|2\n";
strWeapons = strWeapons + "EnergyCell|Energy Cell|5|1000|false|false|400|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|5|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|Removed Weapons|Neutral|5\n";
strWeapons = strWeapons + "Hologram|Holographic Disguise|1|5000|false|false|2000|Utilities|Neutral|6\n";
strWeapons = strWeapons + "MiningBeam2|Level 2 Mining Laser|-3|500|true|true|1000|Mining|Neutral|1\n";
strWeapons = strWeapons + "MiningBeam3|Level 3 Mining Laser|-2|500|true|true|3000|Mining|Neutral|1\n";
strWeapons = strWeapons + "HiddenMine|Stealth Mine|5|400|false|false|700|Mines|Neutral|2\n";
strWeapons = strWeapons + "PlasmaMine|Plasma Mine|-20|600|false|false|600|Mines|Alien|1\n";
strWeapons = strWeapons + "ThunderBomb|Thunder Bomb|1|1500|false|false|1500|Large Weapons|Human|1\n";
strWeapons = strWeapons + "TimedMine|XHE Time Mine|7|400|false|false|500|Mines|Neutral|1\n";
strWeapons = strWeapons + "ShieldRecharger|Rapid Shield Recharger|1|2000|false|false|600|Utilities|Neutral|3\n";
strWeapons = strWeapons + "EMPBomb|Electro Magnetic Pulse Bomb|10|400|false|false|500|Mines|Neutral|2\n";
strWeapons = strWeapons + "Stealth2|LASS Stealth System|1|5000|false|false|3400|Utilities|Neutral|5\n";
strWeapons = strWeapons + "Damage Bubble|Damage Bubble|1|2000|false|false|1000|Proximity Weapons|Neutral|2\n";
strWeapons = strWeapons + "EMPBlast|EMP Blast|-50|150|false|false|2750|Proximity Weapons|Neutral|3\n";
strWeapons = strWeapons + "EMPTorpedo|EMP Torpedo|1|2500|true|true|1300|Regular Weapons|Neutral|4\n";
strWeapons = strWeapons + "UltraEMPBomb|Ultra EMP Bomb|1|3000|false|false|1000|Banned Weapons|Neutral|1\n";
strWeapons = strWeapons + "XandeleviumBlast|Xandelevium Blaster|10|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|-15|700|true|false|700|Regular Weapons|Alien|2\n";
strWeapons = strWeapons + "ShieldSapBeam|Shield Extraction Beam|-12|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|2500|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|-3|1500|false|true|1000|Regular Weapons|Neutral|2\n";
strWeapons = strWeapons + "Hornet|Hornet Torpedo|15|1500|true|true|250|Regular Weapons|Alien|6\n";
strWeapons = strWeapons + "ATTorpedo|AT Torpedo|20|2000|true|true|250|Regular Weapons|Human|6\n";
arrWeapons = strWeapons.split(newline);
arrPowerUpWeapons = Array(0, 1, 2, 5, 8, 17, 22, 24, 33, 35, 41, 42, 43, 44, 45, 47, 48, 50, 52, 54, 55, 56, 57, 64, 65);
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|1000|0|0|6|300|4,1,0,0,0|1000|0\n";
strShipData = strShipData + "Defence Turret|1000|0|0|6|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();
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 SaveData(returnobj) {
returnobj.executed = "";
weaponstring = "";
i = 0;
while (i <= 9) {
if (_root.arrMyWeapons[i] != undefined) {
if (isNaN(Number(_root.arrMyWeapons[i]))) {
weaponstring = weaponstring + "";
} else {
weaponstring = weaponstring + _root.arrMyWeapons[i];
}
}
if (i != 9) {
weaponstring = weaponstring + "|";
}
i++;
}
if ((_root.Guest == false) && (_root.SavePlayerData == true)) {
} 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, "<", "<");
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";
}
}
}
}
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]) <= difficulty)) {
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("|");
trace(arrWeapon[1]);
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(18 * (GetThreatRating(QuadrantRow) * 2)));
} else {
maxr = random(18);
}
obj.shiptype = arrHumanShips[random(maxr) + 1];
}
if (obj.Team == "Alien") {
obj.colour = "FF0000";
if (((GetThreatRating(QuadrantRow) * 2) < 1) && (QuadrantRow < 10)) {
maxr = random(Math.round(19 * (GetThreatRating(QuadrantRow) * 2)));
} else {
maxr = random(19);
}
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 CreateShip(team) {
if ((_root.shipsleft > 0) && (started == true)) {
blnFriend = (Math.random() > 0.97) && (_root.friend == true);
if (blnFriend == true) {
if (team == "Human") {
team = "Alien";
shiptype = arrAlienShips[random(18) + 1];
} else {
team = "Human";
shiptype = arrHumanShips[random(18) + 1];
}
} else {
_root.shipsleft--;
randno = random(random(difficulty)) + 1;
if (randno >= 19) {
randno = 18;
}
if (team == "Human") {
shiptype = arrHumanShips[randno];
} else {
shiptype = arrAlienShips[randno];
}
}
rnd = Math.random();
if (blnFriend == true) {
CreateAIShip(team, random(200) - 200, random(200) - 200, shiptype);
} else if (rnd < 0.25) {
CreateAIShip(team, 4000, random(2000), shiptype);
} else if (rnd < 0.5) {
CreateAIShip(team, random(2000), 4000, shiptype);
} else if (rnd < 0.75) {
CreateAIShip(team, -4000, random(2000), shiptype);
} else {
CreateAIShip(team, random(2000), -4000, shiptype);
}
}
}
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 = "";
if (team != MyTeam) {
if (Math.random() > 0.91) {
_root.game[newname].HasPowerUp = true;
_root.game[newname].colour = "FFFFFF";
} else if (Math.random() > 0.91) {
_root.game[newname].HasRecharge = true;
_root.game[newname].colour = "00CC66";
} else if (Math.random() > 0.91) {
_root.game[newname].HasBonus = true;
_root.game[newname].colour = "CC9900";
}
}
_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 (_root.isFiring == true) {
_root.FireWeapon(obj, -1, _root.multiplayer);
}
destangle = GetAngle(obj, game.crosshair1);
if (obj._rotation < -180) {
obj._rotation = obj._rotation + 360;
}
if (obj._rotation >= 180) {
obj._rotation = obj._rotation - 360;
}
if (destangle < -180) {
destangle = destangle + 360;
}
if (destangle >= 180) {
destangle = destangle - 360;
}
if (Math.abs(destangle - obj._rotation) < obj.turning) {
obj._rotation = destangle;
}
if (Math.abs(destangle - obj._rotation) < 180) {
if (destangle > obj._rotation) {
obj._rotation = obj._rotation + obj.turning;
}
if (destangle < obj._rotation) {
obj._rotation = obj._rotation - obj.turning;
}
} else if (destangle > obj._rotation) {
obj._rotation = obj._rotation - obj.turning;
} else if (destangle < obj._rotation) {
obj._rotation = obj._rotation + obj.turning;
}
}
}
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;
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) < 1000) && (_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 (obj.HasPowerUp == true) {
AddWeapon(camerafocus, 1, arrPowerUpWeapons[random(arrPowerUpWeapons.length)]);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
if (obj.HasRecharge == true) {
_root.camerafocus.energy = 100;
}
if (Number(LHAI) == -1) {
if (Number(LHcontroller) == myplayernumber) {
theship = game.myship;
} else {
theship = game["ship" + LHcontroller];
}
} else {
theship = game[(("AI_" + LHcontroller) + "_") + LHAI];
}
if (obj.Team != camerafocus.Team) {
Kills++;
t = "an enemy ";
} else {
t = "a friendly ";
}
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.UserID == undefined) {
obj.UserID = 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 = -bounty;
}
if (obj.HasBonus == true) {
bounty * 3;
}
_root.killmoney = _root.killmoney + bounty;
if (_root.killmoney < 0) {
_root.killmoney = 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) && (GetDistance(obj, camerafocus) < 1400)) {
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);
}
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) {
if (selectedweapon == -1) {
if (obj == camerafocus) {
weapon = "MainTurretLaser";
} else if (obj.Team == "Human") {
weapon = "MainGun";
} else {
weapon = "AlienMainGun";
}
weaponname = "Laser Cannon";
intEnergyUsage = random(2) + 1;
bRequiresLock = false;
} else {
weapon = obj.SecondaryWeapons[selectedweapon];
weaponname = obj.SecondaryWeaponNames[selectedweapon];
bRequiresLock = obj.SecondaryWeaponsRequireLock[selectedweapon];
if (multiplayerfire != true) {
if (obj.SecondaryWeaponsAmmo[selectedweapon] < 0) {
intEnergyUsage = -obj.SecondaryWeaponsAmmo[selectedweapon];
} else {
intEnergyUsage = 1;
}
} else {
intEnergyUsage = 0;
}
}
if (((((bRequiresLock == true) && (obj.lockedtarget != undefined)) || (bRequiresLock != true)) && (obj.SecondaryWeaponsAmmo[selectedweapon] != 0)) && (enoughenergy(obj, intEnergyUsage, multiplayerfire))) {
if (multiplayerfire != true) {
obj.reload = 0;
}
if (obj.SecondaryWeaponsAmmo[selectedweapon] > 0) {
if (multiplayerfire != true) {
obj.SecondaryWeaponsAmmo[selectedweapon]--;
}
}
if (multiplayerfire != true) {
if (obj.SecondaryWeaponsTypes[selectedweapon] == "Large Weapons") {
removeweapon(obj, selectedweapon);
}
}
if (multiplayerfire != true) {
IncrementObjectNum();
}
newname = "laser" + objectnum;
if (((weapon == "MainGun") && (GetDistance(obj, _root.camerafocus) > 1000)) && (_root.multiplayer != true)) {
_root.Damage(obj.target, random(50), obj, "Laser Cannon");
} else if (multiplayerfire == true) {
sendcommand("Fire", (obj.AIPlayer + "|") + selectedweapon);
} else {
_root.game.attachMovie(weapon, newname, objectnum);
setProperty(game[newname], _x , obj._x);
setProperty(game[newname], _y , obj._y);
setProperty(game[newname], _rotation , obj._rotation);
game[newname].Firer = obj;
game[newname].target = obj.lockedtarget;
game[newname].Team = obj.Team;
game[newname].weaponname = weaponname;
}
} else if ((bRequiresLock == true) && (obj.lockedtarget == undefined)) {
if (obj == _root.camerafocus) {
addinfo("No Target Locked", "#FF0000", true);
}
} else if (obj.SecondaryWeaponsAmmo[selectedweapon] == 0) {
if (obj == _root.camerafocus) {
addinfo("Ammunition Depleted", "#FF0000", true);
}
}
}
}
}
function ShipMovement(obj, m) {
if (obj.inactivetimer == undefined) {
obj.inactivetimer = 0;
}
obj.inactivetimer++;
if (((obj.inactivetimer > 120) && (_root.multiplayer && (myplayernumber != obj.Controller))) && (obj.state != "warping")) {
obj.state = "warping";
obj.WarpAngle = random(360);
}
obj.shieldlevel = Math.ceil(obj.shieldlevel);
if (obj.shieldlevel <= 0) {
if (obj.dead != true) {
if (_root.multiplayer && (myplayernumber == obj.Controller)) {
if (obj.dying != true) {
obj.dying = true;
sendcommand("Explode", (((((((((((((((obj.AIPlayer + "|") + randomcrate()) + "|") + obj.lasthitby.Controller) + "|") + obj.lasthitby.AIPlayer) + "|") + obj.lasthitweapon) + "|") + obj.lasthitname) + "|") + obj.lasthitid) + "|") + obj.lasthitteam) + "|") + obj.lasthitship);
}
} else {
Explode(obj, randomcrate(), obj.lasthitby.Controller, obj.lasthitby.AIPlayer, obj.lasthitweapon, obj.lasthitname, obj.lasthitid, obj.lasthitteam, obj.lasthitship);
}
}
} else {
if ((obj.shieldrecharge == undefined) || (obj.shieldrecharge >= obj.shieldrechargerate)) {
if ((obj.shieldrecharge >= obj.shieldrechargerate) && (obj.shieldlevel < obj.maxshield)) {
obj.shieldlevel++;
}
obj.shieldrecharge = 0;
} else {
obj.shieldrecharge++;
}
if ((obj.shieldrecharge == undefined) || (obj.shieldrecharge >= obj.shieldrechargerate)) {
if (((obj.energyrecharge >= obj.energyrechargerate) && (obj.energy < 100)) && (obj.energy >= 0)) {
obj.energy++;
if (obj.energy > 100) {
obj.energy = 100;
}
}
obj.energyrecharge = 0;
} else {
obj.energyrecharge++;
}
}
_root.display_shield = camerafocus.shieldlevel;
if (obj.dead != true) {
if ((((obj._x > (_root.QuadrantCentreX + 10000)) || (obj._x < (_root.QuadrantCentreX - 10000))) || (obj._y > (_root.QuadrantCentreY + 10000))) || (obj._y < (_root.QuadrantCentreY - 10000))) {
if ((obj != camerafocus) && (obj != _root.PrimaryTarget)) {
removeMovieClip(obj);
} else if (obj.state != "warping") {
if ((obj._x > (_root.QuadrantCentreX + 10000)) && ((_root.QuadrantCol == 20) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = random(10) - random(10);
obj.xspeed = -(10 + random(20));
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._x < (_root.QuadrantCentreX - 10000)) && ((_root.QuadrantCol == 1) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = random(10) - random(10);
obj.xspeed = 10 + random(20);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._y > (_root.QuadrantCentreY + 10000)) && ((_root.QuadrantRow == 19) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = -(10 + random(20));
obj.xspeed = random(10) - random(10);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else if ((obj._y < (_root.QuadrantCentreY - 10000)) && ((_root.QuadrantRow == 0) || (obj == _root.PrimaryTarget))) {
obj.state = "powerfail";
obj.yspeed = 10 + random(20);
obj.xspeed = random(10) - random(10);
addinfo("You cannot travel past the edge of the galaxy.", "#FFFFFF", true);
} else {
_root.inSector = false;
sendcommand("Action", (((((((("sector|" + _root.MyTeam) + "|") + _root.QuadrantRow) + "|") + _root.QuadrantCol) + "|has left the sector|") + _root.MyName) + "|") + _root.UserID);
if (obj._x > (_root.QuadrantCentreX + 10000)) {
_root.QuadrantCol++;
_root.WarpSide = 4;
} else if (obj._x < (_root.QuadrantCentreX - 10000)) {
_root.QuadrantCol--;
_root.WarpSide = 2;
} else if (obj._y > (_root.QuadrantCentreY + 10000)) {
_root.QuadrantRow++;
_root.WarpSide = 1;
} else if (obj._y < (_root.QuadrantCentreY - 10000)) {
_root.QuadrantRow--;
_root.WarpSide = 3;
}
_root.WarpAngle = obj._rotation;
gotoAndPlay ("reload");
}
}
}
if (obj.state == "powerfail") {
if (obj.powerfailtimer == undefined) {
obj.powerfailtimer = 0;
}
if (((obj.xspeed + obj.yspeed) < 1) && (obj.powerfailtimer > 20)) {
obj.powerfailtimer = undefined;
obj.state = "";
} else {
obj.powerfailtimer++;
}
}
if ((obj.shieldbubble > 0) && (obj.shieldbubble != undefined)) {
obj.shieldbubble--;
}
if ((obj.stealthtime > 0) && (obj.stealthtime != undefined)) {
obj.stealthtime--;
}
if ((obj.stealth2time > 0) && (obj.stealth2time != undefined)) {
obj.stealth2time--;
}
if ((obj.HologramTime > 0) && (obj.HologramTime != undefined)) {
obj.HologramTime--;
}
if (obj.state == "gravity") {
if ((obj.gravityobject != undefined) && (GetDistance(obj, obj.gravityobject) < 2000)) {
if (obj.driftspin == undefined) {
obj.driftspin = random(20) - random(20);
}
setProperty(obj, _rotation , obj._rotation + obj.driftspin);
if (obj._x > obj.gravityobject._x) {
obj.xspeed = obj.xspeed - 1;
} else {
obj.xspeed = obj.xspeed + 1;
}
if (obj._y > obj.gravityobject._y) {
obj.yspeed = obj.yspeed - 1;
} else {
obj.yspeed = obj.yspeed + 1;
}
obj.speed = 0;
} else {
obj.state = "";
}
} else if (obj.state == "powerfail") {
if (obj.maxspeed > 0) {
obj.lockedtarget = undefined;
if (obj.driftspin == undefined) {
obj.driftspin = random(20) - random(20);
}
obj.speed = 0;
obj._rotation = obj._rotation + obj.driftspin;
obj.driftspin = obj.driftspin / 1.1;
obj.xspeed = obj.xspeed / 1.1;
obj.yspeed = obj.yspeed / 1.1;
if (((obj.xspeed + obj.yspeed) < 1) && (obj.energy < 0)) {
obj.energy = 0;
}
} else {
obj.powerfailtimer = undefined;
obj.state = "";
}
} else if ((obj.powerouttime != undefined) && (obj.powerouttime > 0)) {
obj.powerouttime--;
if (obj.driftspin == undefined) {
obj.driftspin = random(5) - random(5);
}
obj._rotation = obj._rotation + obj.driftspin;
obj.speed = 0;
} else if (obj.state == "warping") {
if (obj == camerafocus) {
disablecontrols = true;
}
if (obj.WarpAngle >= 180) {
obj.WarpAngle = obj.WarpAngle - 360;
}
obj._rotation = Math.round(obj._rotation);
if (((obj.WarpAngle - obj.turning) - 1) > obj._rotation) {
obj._rotation = obj._rotation + obj.turning;
} else if (((obj.WarpAngle + obj.turning) + 1) < obj._rotation) {
obj._rotation = obj._rotation - obj.turning;
} else if (obj.speed < 100) {
obj._rotation = obj.WarpAngle;
obj.speed++;
} else if (obj == camerafocus) {
sendcommand("Action", (((((((("sector|" + _root.MyTeam) + "|") + _root.QuadrantRow) + "|") + _root.QuadrantCol) + "|has left the sector|") + _root.MyName) + "|") + _root.UserID);
stopAllSounds();
gotoAndStop ("warp");
} else {
removeMovieClip(obj);
}
obj.yspeed = obj.speed * Math.sin((obj._rotation - 90) / 57.2957795130823);
obj.xspeed = obj.speed * Math.cos((obj._rotation - 90) / 57.2957795130823);
} else {
if (obj == camerafocus) {
_root.MissionStep();
}
obj.driftspin = undefined;
attempttargetlock(obj);
if (obj.reload == undefined) {
obj.reload = reloadtime;
} else if (obj.reload < reloadtime) {
obj.reload++;
if (obj == camerafocus) {
obj.reload = obj.reload + 3;
}
}
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 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) > 750))) {
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) && (distance < 800)) {
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);
}
}
}
}
}
arrMyWeapons = Array(0);
meteoritenum = 0;
Instance of Symbol 614 MovieClip "bg" in Frame 3
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 620 MovieClip "bstars" in Frame 3
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 623 MovieClip "stars" in Frame 3
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 627 MovieClip in Frame 3
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 650 MovieClip in Frame 3
onClipEvent (load) {
themessage = "Loading...";
gotoAndPlay (1);
}
Frame 5
_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 614 MovieClip "bg" in Frame 5
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 620 MovieClip "bstars" in Frame 5
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 623 MovieClip "stars" in Frame 5
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 650 MovieClip in Frame 5
onClipEvent (load) {
themessage = "Prepare to Defend";
gotoAndStop (1);
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 100) {
_root.myplayernumber = 0;
_root.NumberOfPlayers = 1;
_root.gotoAndStop("play");
}
}
Frame 6
stop();
_root.isFiring = false;
objectnum = 0;
AIShipNumber = 0;
MaxAIShips = 20;
reloadtime = 15;
shipsleft = 10;
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;
_quality = "LOW";
Instance of Symbol 656 MovieClip "game" in Frame 6
onClipEvent (mouseDown) {
_root.isFiring = true;
}
onClipEvent (mouseUp) {
_root.isFiring = false;
}
onClipEvent (enterFrame) {
_xscale = 40;
_yscale = 40;
crosshair1._x = _xmouse;
crosshair1._y = _ymouse;
xdistance = Math.abs(_root.camerafocus._x - _xmouse);
ydistance = Math.abs(_root.camerafocus._y - _ymouse);
distance = _root.GetDistance(_root.camerafocus, crosshair1);
xpos = distance * Math.cos((_root.camerafocus._rotation - 90) / 57.2957795130823);
ypos = distance * Math.sin((_root.camerafocus._rotation - 90) / 57.2957795130823);
thefocus = _root.camerafocus;
_root.gamewidth = 700;
_root.gameheight = 500;
xcameramiddle = thefocus._x + ((_xmouse - thefocus._x) / 3);
ycameramiddle = thefocus._y + ((_ymouse - thefocus._y) / 3);
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 673 MovieClip "weaponsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 682 MovieClip "explosionsound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 687 MovieClip "othersound" in Frame 6
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 689 MovieClip in Frame 6
onClipEvent (load) {
_alpha = 0;
anistate = "";
}
onClipEvent (enterFrame) {
_visible = (_root.Level != undefined);
if (_root.started == true) {
if (anistate == "") {
if (_root.Level != _root.difficulty) {
_root.Level = _root.difficulty;
leveltext = "Level " + _root.Level;
anistate = "rising";
}
} else if (anistate == "rising") {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
anistate = "falling";
}
} else {
_alpha = (_alpha - 2);
if (_alpha == 0) {
anistate = "";
if (_visible) {
_root.friend = true;
_root.shipsleft = 9 + _root.Level;
}
}
}
}
}
Instance of Symbol 789 MovieClip "hud" in Frame 6
onClipEvent (enterFrame) {
if (((((_root.camerafocus.dead == true) || (_root.camerafocus.shieldlevel <= 0)) || (_root.camerafocus.powerouttime > 0)) || (_root.camerafocus.state == "warping")) || (_root.Level == undefined)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 650 MovieClip in Frame 6
onClipEvent (load) {
themessage = "Prepare to Defend";
gotoAndPlay (1);
}
Frame 8
finalscore = "Final Score: " + _root.killmoney;
Mouse.show();
_quality = "HIGH";
Frame 9
if ((_root.killmoney > 0) && (_root.killmoney != undefined)) {
mochi.MochiScores.showLeaderboard({boardID:"a8cdebb0d61d14de", score:_root.killmoney});
_root.killmoney = 0;
} else {
mochi.MochiScores.showLeaderboard({boardID:"a8cdebb0d61d14de"});
}
Frame 10
gotoAndStop (3);
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(100), 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) {
obj.powerouttime = 24 * secs;
} else if (_root.camerafocus.energy >= 10) {
_root.camerafocus.energy = _root.camerafocus.energy - 10;
} else {
_root.camerafocus.energy = 0;
}
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 = 330;
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 , random(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) {
obj.powerouttime = 24 * secs;
obj.stealthtime = 0;
obj.stealth2time = 0;
obj.Hologramtime = 0;
} else if (_root.camerafocus.energy >= 10) {
_root.camerafocus.energy = _root.camerafocus.energy - 10;
} else {
_root.camerafocus.energy = 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 [LongrangeLaser] Frame 1
function CheckHit(totest) {
if (totest != undefined) {
if ((totest != Firer) && (totest.Team != Team)) {
if (_root.Collision(this, totest)) {
_root.Damage(totest, random(10), Firer, weaponname);
_root.explosionsound.gotoAndStop("laserhit");
gotoAndPlay ("explode");
}
}
}
}
speed = 110;
timer = 100;
_root.weaponsound.gotoAndStop("disc");
Symbol 54 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 = 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++;
}
x++;
}
Symbol 54 MovieClip [LongrangeLaser] Frame 3
gotoAndPlay (2);
Symbol 54 MovieClip [LongrangeLaser] Frame 4
Symbol 54 MovieClip [LongrangeLaser] Frame 9
removeMovieClip(this);
Symbol 58 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 58 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 58 MovieClip [Javelin] Frame 3
gotoAndPlay (2);
Symbol 58 MovieClip [Javelin] Frame 4
_root.explosionsound.gotoAndStop("torpedo");
_root.CheckBlast(this, random(25) + 50);
Symbol 58 MovieClip [Javelin] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 65 MovieClip Frame 1
if (timer >= (_parent.timer / 3)) {
timer = 0;
gotoAndPlay ("beep");
}
timer = Number(0 + timer) + 1;
Symbol 65 MovieClip Frame 2
gotoAndPlay (1);
Symbol 65 MovieClip Frame 3
_root.othersound.gotoAndPlay("pcbbeep");
Symbol 65 MovieClip Frame 4
gotoAndPlay (1);
Symbol 72 MovieClip [UltraEMPBomb] Frame 1
timer = 200;
Symbol 72 MovieClip [UltraEMPBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 72 MovieClip [UltraEMPBomb] Frame 51
gotoAndPlay ("start");
Symbol 72 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() {
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 72 MovieClip [UltraEMPBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 81 MovieClip [minipcb] Frame 1
timer = 300;
Symbol 81 MovieClip [minipcb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 81 MovieClip [minipcb] Frame 51
gotoAndPlay ("start");
Symbol 81 MovieClip [minipcb] Frame 52
_root.CheckBlast(this, 500, 0);
_root.explosionsound.gotoAndStop("pcb");
Symbol 81 MovieClip [minipcb] Frame 120
stop();
removeMovieClip(this);
Symbol 89 MovieClip [CompressionBomb] Frame 1
timer = 200;
Symbol 89 MovieClip [CompressionBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndPlay ("explode");
}
Symbol 89 MovieClip [CompressionBomb] Frame 51
gotoAndPlay ("start");
Symbol 89 MovieClip [CompressionBomb] Frame 52
_width = 10000;
_height = 10000;
_root.CheckBlast(this, 750, 0, true);
_root.explosionsound.gotoAndStop("pcb");
Symbol 89 MovieClip [CompressionBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 91 MovieClip [HumanDrone] Frame 1
speed = 20;
timer = 200;
Symbol 91 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 91 MovieClip [HumanDrone] Frame 3
gotoAndPlay (2);
Symbol 91 MovieClip [HumanDrone] Frame 4
if (Firer == _root.camerafocus) {
_root.CreateAIShip(Firer.Team, _x, _y, 6);
}
removeMovieClip(this);
Symbol 93 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 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 93 MovieClip [WormHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 93 MovieClip [WormHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 95 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 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 95 MovieClip [WhiteHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 95 MovieClip [WhiteHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 97 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 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 97 MovieClip [BlackHole] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 97 MovieClip [BlackHole] Frame 2
gotoAndPlay ("blackholeloop");
Symbol 100 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 100 MovieClip [InverseGravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 100 MovieClip [InverseGravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 100 MovieClip [InverseGravityField] Frame 41
removeMovieClip(this);
Symbol 103 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 103 MovieClip [GravityField] Frame 19
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 103 MovieClip [GravityField] Frame 20
gotoAndPlay ("blackholeloop");
Symbol 103 MovieClip [GravityField] Frame 41
removeMovieClip(this);
Symbol 108 MovieClip [LargeBlackholeBomb] Frame 1
speed = 20;
timer = 500;
Instance of Symbol 8 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 108 MovieClip [LargeBlackholeBomb] 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 108 MovieClip [LargeBlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 108 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");
Instance of Symbol 17 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 17 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 17 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 17 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 17 MovieClip in Symbol 108 MovieClip [LargeBlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 108 MovieClip [LargeBlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
checktargets();
if (timer <= 0) {
gotoAndPlay ("fade");
}
Symbol 108 MovieClip [LargeBlackholeBomb] Frame 23
gotoAndPlay ("blackholeloop");
Symbol 108 MovieClip [LargeBlackholeBomb] Frame 42
_root.CheckBlast(this, 500);
Symbol 108 MovieClip [LargeBlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 112 MovieClip Frame 1
_root.explosionsound.gotoAndStop("electric");
Symbol 112 MovieClip Frame 2
_rotation = random(360);
Symbol 112 MovieClip Frame 3
gotoAndPlay (2);
Symbol 113 MovieClip [Orb] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Symbol 113 MovieClip [Orb] Frame 2
_root.guidedmovement(this);
Symbol 113 MovieClip [Orb] Frame 3
call("start");
Symbol 113 MovieClip [Orb] Frame 4
call("start");
Symbol 113 MovieClip [Orb] Frame 5
call("start");
Symbol 113 MovieClip [Orb] Frame 6
call("start");
Symbol 113 MovieClip [Orb] Frame 7
gotoAndPlay (2);
Symbol 113 MovieClip [Orb] Frame 8
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 113 MovieClip [Orb] Frame 13
removeMovieClip(this);
Symbol 120 MovieClip [XandeleviumBlast] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 30;
maxspeed = 30;
accelleration = 0.1;
turning = 2;
timer = 300;
Instance of Symbol 117 MovieClip in Symbol 120 MovieClip [XandeleviumBlast] Frame 1
onClipEvent (load) {
_rotation = random(360);
gotoAndStop(random(4) + 1);
}
Symbol 120 MovieClip [XandeleviumBlast] Frame 2
_root.guidedmovement(this);
Symbol 120 MovieClip [XandeleviumBlast] Frame 3
gotoAndPlay (2);
Symbol 120 MovieClip [XandeleviumBlast] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 15 + random(25));
Symbol 120 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 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 90);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 60);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 120);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 30);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 122 MovieClip in Symbol 123 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Symbol 126 MovieClip [Disc] Frame 1
_root.weaponsound.gotoAndStop("disc");
speed = 1;
maxspeed = 40;
accelleration = 0.1;
turning = 2;
timer = 300;
Symbol 126 MovieClip [Disc] Frame 2
if (timer < 250) {
accelleration = 1;
}
_root.guidedmovement(this);
if (timer == 200) {
_root.weaponsound.gotoAndStop("disczoom");
}
Symbol 126 MovieClip [Disc] Frame 3
gotoAndPlay (2);
Symbol 126 MovieClip [Disc] Frame 4
_root.explosionsound.gotoAndStop("disc");
_root.CheckBlast(this, 25 + random(25));
Symbol 126 MovieClip [Disc] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 131 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 128 MovieClip in Symbol 131 MovieClip [HeatDisc] Frame 1
onClipEvent (load) {
setProperty(this, _rotation , random(360));
timer = 5;
}
onClipEvent (enterFrame) {
timer = timer + 1;
setProperty(this, _rotation , _rotation + timer);
}
Symbol 131 MovieClip [HeatDisc] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 131 MovieClip [HeatDisc] Frame 3
gotoAndPlay (2);
Symbol 131 MovieClip [HeatDisc] Frame 4
this.onEnterFrame = function () {
_x = target._x;
_y = target._y;
_root.Damage(target, random(3), Firer, weaponname);
};
Symbol 131 MovieClip [HeatDisc] Frame 22
stop();
removeMovieClip(this);
Symbol 132 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 132 MovieClip [EngineOverdrive] Frame 2
gotoAndPlay (1);
Symbol 133 MovieClip [ReverseThrust] Frame 1
this.onEnterFrame = function () {
Firer.speed = -Firer.maxspeed;
};
Symbol 133 MovieClip [ReverseThrust] Frame 30
removeMovieClip(this);
stop();
Symbol 134 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 134 MovieClip [FieldHop] Frame 2
removeMovieClip(this);
stop();
Symbol 136 MovieClip [Teleport] Frame 1
speed = 45;
timer = 50;
Symbol 136 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 136 MovieClip [Teleport] Frame 3
gotoAndPlay (2);
Symbol 136 MovieClip [Teleport] Frame 4
_root.weaponsound.gotoAndStop("teleport");
Firer._x = _x;
Firer._y = _y;
Symbol 136 MovieClip [Teleport] Frame 5
removeMovieClip(this);
stop();
Symbol 144 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 = 200;
ammo = 50;
_rotation = random(360);
speed = 0;
maxspeed = 10;
accelleration = 0.5;
turning = 4;
Symbol 144 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 144 MovieClip [ThunderTorpedo] Frame 11
_root.guidedmovement(this);
Symbol 144 MovieClip [ThunderTorpedo] Frame 12
if ((timer < 0) || (ammo < 0)) {
gotoAndPlay ("fade");
} else {
gotoAndPlay ("explode");
}
Symbol 144 MovieClip [ThunderTorpedo] Frame 26
removeMovieClip(this);
stop();
Symbol 145 MovieClip [Thunder] 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 145 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 145 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 145 MovieClip [Thunder] Frame 4
if ((((timer < 0) || (ammo < 0)) || (Firer.shield == undefined)) || (Firer.dead == true)) {
removeMovieClip(this);
} else {
gotoAndPlay ("zap");
}
Symbol 156 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 156 MovieClip [ThunderBomb] Frame 50
function CheckHit(obj) {
if ((obj != undefined) && (obj.dead != true)) {
if (_root.GetDistance(this, obj) < 1500) {
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;
checktargets();
Symbol 156 MovieClip [ThunderBomb] Frame 51
if (arrInRange[0] != undefined) {
bolt(this, arrInRange[0]);
index = 0;
checktargets();
i = 1;
while (i < arrInRange.length) {
amount = random(10) + 2;
_root.Damage(arrInRange[i], amount, Firer, weaponname);
bolt(this, arrInRange[i]);
bolt(this, arrInRange[i]);
bolt(this, arrInRange[i]);
i++;
}
}
timer--;
_rotation = (_rotation - 1);
Symbol 156 MovieClip [ThunderBomb] Frame 52
if (timer < 0) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 156 MovieClip [ThunderBomb] Frame 80
removeMovieClip(this);
stop();
Symbol 158 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 158 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 158 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 158 MovieClip [ThunderMine] Frame 52
if ((timer < 0) || (ammo < 0)) {
play();
} else {
gotoAndPlay ("zap");
}
Symbol 158 MovieClip [ThunderMine] Frame 66
removeMovieClip(this);
stop();
Symbol 160 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 160 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 160 MovieClip [ElectroMine] Frame 13
gotoAndPlay ("start");
Symbol 160 MovieClip [ElectroMine] Frame 14
_root.explosionsound.gotoAndStop("electric");
_root.CheckBlast(this, 5, 40);
Symbol 160 MovieClip [ElectroMine] Frame 19
removeMovieClip(this);
Symbol 163 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 163 MovieClip [ElectroField] Frame 7
removeMovieClip(this);
Symbol 167 MovieClip [Magnetic Mine] Frame 1
speed = 0;
maxspeed = 15;
accelleration = 0.5;
turning = 20;
timer = 300;
_root.weaponsound.gotoAndStop("orb");
Instance of Symbol 165 MovieClip in Symbol 167 MovieClip [Magnetic Mine] Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation - _parent.speed);
}
Symbol 167 MovieClip [Magnetic Mine] Frame 12
_root.guidedmovement(this);
Symbol 167 MovieClip [Magnetic Mine] Frame 13
gotoAndPlay ("start");
Symbol 167 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 167 MovieClip [Magnetic Mine] Frame 15
gotoAndPlay ("explode");
Symbol 167 MovieClip [Magnetic Mine] Frame 25
removeMovieClip(this);
Symbol 168 MovieClip [Hologram] Frame 1
Firer.HologramTime = 600;
Symbol 169 MovieClip [Stealth2] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LASS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealth2time = 600;
Symbol 170 MovieClip [Stealth] Frame 1
if (Firer == _root.camerafocus) {
_root.addinfo("LBSS Stealth System Activated", "#FFFFFF", true);
}
Firer.stealthtime = 960;
Symbol 176 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 176 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 176 MovieClip [StealthMine] Frame 18
removeMovieClip(this);
Symbol 180 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 181 MovieClip [EnergyCell] Frame 1
energyleft = 100;
Symbol 181 MovieClip [EnergyCell] Frame 2
if ((Firer.energy < 100) && (energyleft > 0)) {
Firer.energy++;
energyleft--;
} else {
removeMovieClip(this);
}
Symbol 181 MovieClip [EnergyCell] Frame 3
gotoAndPlay (2);
Symbol 186 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 186 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 186 MovieClip [HiddenMine] Frame 13
gotoAndPlay ("start");
Symbol 186 MovieClip [HiddenMine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 186 MovieClip [HiddenMine] Frame 18
removeMovieClip(this);
Symbol 191 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 191 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 191 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 191 MovieClip [PlasmaMine] Frame 27
gotoAndPlay ("start");
Symbol 191 MovieClip [PlasmaMine] Frame 28
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 191 MovieClip [PlasmaMine] Frame 32
removeMovieClip(this);
Symbol 196 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 196 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 196 MovieClip [GravityMine] Frame 20
gotoAndPlay ("start");
Symbol 196 MovieClip [GravityMine] Frame 21
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 60);
Symbol 196 MovieClip [GravityMine] Frame 25
removeMovieClip(this);
Symbol 201 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 201 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 201 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 201 MovieClip [HomingMine] Frame 28
gotoAndPlay ("start");
Symbol 201 MovieClip [HomingMine] Frame 29
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 201 MovieClip [HomingMine] Frame 33
removeMovieClip(this);
Symbol 204 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 204 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 204 MovieClip [Mine] Frame 13
gotoAndPlay ("start");
Symbol 204 MovieClip [Mine] Frame 14
_root.explosionsound.gotoAndStop("mine");
_root.CheckBlast(this, 100);
Symbol 204 MovieClip [Mine] Frame 18
removeMovieClip(this);
Symbol 209 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 209 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 209 MovieClip [Plasma] Frame 3
gotoAndPlay (2);
Symbol 209 MovieClip [Plasma] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 100);
Symbol 209 MovieClip [Plasma] Frame 15
removeMovieClip(this);
Symbol 212 MovieClip [Missle3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 212 MovieClip [Missle3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 212 MovieClip [Missle3] Frame 3
gotoAndPlay (2);
Symbol 212 MovieClip [Missle3] Frame 4
_root.CheckBlast(this, 10);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 212 MovieClip [Missle3] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 216 MovieClip [Missle4] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 216 MovieClip [Missle4] Frame 2
_root.guidedmovement(this);
Symbol 216 MovieClip [Missle4] Frame 3
gotoAndPlay (2);
Symbol 216 MovieClip [Missle4] Frame 8
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 216 MovieClip [Missle4] Frame 13
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 219 MovieClip [Missle2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 219 MovieClip [Missle2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 219 MovieClip [Missle2] Frame 3
gotoAndPlay (2);
Symbol 219 MovieClip [Missle2] Frame 4
_root.CheckBlast(this, 15);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 219 MovieClip [Missle2] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 222 MovieClip [EMPTorpedo] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 222 MovieClip [EMPTorpedo] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 222 MovieClip [EMPTorpedo] Frame 3
gotoAndPlay (2);
Symbol 222 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) {
obj.powerouttime = 24 * secs;
} else if (_root.camerafocus.energy >= 10) {
_root.camerafocus.energy = _root.camerafocus.energy - 10;
} else {
_root.camerafocus.energy = 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 222 MovieClip [EMPTorpedo] Frame 14
removeMovieClip(this);
Symbol 224 MovieClip [Needle] Frame 1
_root.weaponsound.gotoAndStop("needle");
speed = 1;
maxspeed = 25;
accelleration = 3;
turning = 3;
timer = 200;
Symbol 224 MovieClip [Needle] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 224 MovieClip [Needle] Frame 3
gotoAndPlay (2);
Symbol 224 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 224 MovieClip [Needle] Frame 5
gotoAndPlay ("explode");
Symbol 227 MovieClip [Carnivore3] Frame 1
speed = 1;
maxspeed = 30;
accelleration = 1;
turning = 1;
timer = 400;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 227 MovieClip [Carnivore3] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 227 MovieClip [Carnivore3] Frame 3
gotoAndPlay (2);
Symbol 227 MovieClip [Carnivore3] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 227 MovieClip [Carnivore3] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 230 MovieClip [Carnivore2] Frame 1
speed = 1;
maxspeed = 25;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 230 MovieClip [Carnivore2] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 230 MovieClip [Carnivore2] Frame 3
gotoAndPlay (2);
Symbol 230 MovieClip [Carnivore2] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 230 MovieClip [Carnivore2] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 233 MovieClip [TeleportingCarnivore] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 233 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 233 MovieClip [TeleportingCarnivore] Frame 3
gotoAndPlay (2);
Symbol 233 MovieClip [TeleportingCarnivore] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 233 MovieClip [TeleportingCarnivore] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 236 MovieClip [Carnivore1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 236 MovieClip [Carnivore1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 236 MovieClip [Carnivore1] Frame 3
gotoAndPlay (2);
Symbol 236 MovieClip [Carnivore1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 236 MovieClip [Carnivore1] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 239 MovieClip [ATTorpedo] Frame 1
speed = 1;
maxspeed = 13;
accelleration = 1;
turning = 4;
timer = 300;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 239 MovieClip [ATTorpedo] Frame 2
target = Firer.lockedtarget;
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 239 MovieClip [ATTorpedo] Frame 3
gotoAndPlay (2);
Symbol 239 MovieClip [ATTorpedo] Frame 4
_root.CheckBlast(this, 20);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 239 MovieClip [ATTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 242 MovieClip [Missle1] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 5;
timer = 200;
_root.weaponsound.gotoAndStop("torpedo");
Symbol 242 MovieClip [Missle1] Frame 2
_root.guidedmovement(this);
_root.Exhaust(this);
Symbol 242 MovieClip [Missle1] Frame 3
gotoAndPlay (2);
Symbol 242 MovieClip [Missle1] Frame 4
_root.CheckBlast(this, 25);
_root.explosionsound.gotoAndStop("torpedo");
Symbol 242 MovieClip [Missle1] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 244 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 244 MovieClip [Trail] Frame 2
gotoAndPlay (1);
Symbol 249 MovieClip [MainTurretLaser] 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 = 15;
Symbol 249 MovieClip [MainTurretLaser] 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 249 MovieClip [MainTurretLaser] Frame 3
call("actions");
Symbol 249 MovieClip [MainTurretLaser] Frame 4
gotoAndPlay (3);
Symbol 249 MovieClip [MainTurretLaser] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 249 MovieClip [MainTurretLaser] Frame 7
removeMovieClip(this);
Symbol 251 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 251 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 251 MovieClip [AlienMainGun] Frame 3
call("actions");
Symbol 251 MovieClip [AlienMainGun] Frame 4
gotoAndPlay (3);
Symbol 251 MovieClip [AlienMainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 251 MovieClip [AlienMainGun] Frame 7
removeMovieClip(this);
Symbol 254 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 254 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 254 MovieClip [MainGun] Frame 3
call("actions");
Symbol 254 MovieClip [MainGun] Frame 4
gotoAndPlay (3);
Symbol 254 MovieClip [MainGun] Frame 5
_root.explosionsound.gotoAndStop("laserhit");
Symbol 254 MovieClip [MainGun] Frame 7
removeMovieClip(this);
Symbol 256 MovieClip [HumanSubStation] Frame 1
big = true;
Team = "Human";
Symbol 262 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 > 10) {
_xscale = (_xscale / 1.05);
_yscale = (_yscale / 1.05);
}
if (_xscale <= 1) {
removeMovieClip(this);
}
if ((random(timer) < 1) && (timer < 40)) {
_root.Exhaust(this);
}
Instance of Symbol 261 MovieClip in Symbol 262 MovieClip [Scrap] Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
_rotation = random(360);
}
Symbol 262 MovieClip [Scrap] Frame 2
gotoAndPlay (1);
Symbol 268 MovieClip Frame 1
Team = "Human";
Symbol 273 MovieClip [Big Station] Frame 1
big = true;
Team = "Human";
sector = _root.Sector;
Symbol 282 MovieClip [Explosion] Frame 41
removeMovieClip(this);
Symbol 285 MovieClip [ConcentratedPhotonTorpedo] Frame 1
speed = 1;
maxspeed = 5;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 285 MovieClip [ConcentratedPhotonTorpedo] Frame 2
_root.guidedmovement(this);
Symbol 285 MovieClip [ConcentratedPhotonTorpedo] Frame 3
gotoAndPlay (2);
Symbol 285 MovieClip [ConcentratedPhotonTorpedo] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 75);
Symbol 285 MovieClip [ConcentratedPhotonTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 288 MovieClip [Photon] Frame 1
speed = 1;
maxspeed = 15;
accelleration = 1;
turning = 10;
timer = 200;
_root.weaponsound.gotoAndStop("photonbomb");
Symbol 288 MovieClip [Photon] Frame 2
_root.guidedmovement(this);
Symbol 288 MovieClip [Photon] Frame 3
gotoAndPlay (2);
Symbol 288 MovieClip [Photon] Frame 4
_root.explosionsound.gotoAndStop("plasma");
_root.CheckBlast(this, 25);
Symbol 288 MovieClip [Photon] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay ("fade");
Symbol 295 MovieClip [Alien Station] Frame 1
big = true;
Team = "Alien";
Symbol 306 MovieClip [DamagingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 306 MovieClip [DamagingBeam] Frame 2
_alpha = (_alpha - 5);
_x = Firer._x;
_y = Firer._y;
_rotation = _root.GetAngle(this, target);
drainamount = random(_alpha / 13);
_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 297 MovieClip in Symbol 306 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 306 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 306 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 306 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 306 MovieClip [DamagingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 306 MovieClip [DamagingBeam] Frame 3
gotoAndPlay (2);
Symbol 307 MovieClip [DrainingBeam] Frame 1
_rotation = _root.GetAngle(this, target);
Symbol 307 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 297 MovieClip in Symbol 307 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 307 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 307 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 307 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 307 MovieClip [DrainingBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 307 MovieClip [DrainingBeam] Frame 3
gotoAndPlay (2);
Symbol 308 MovieClip [EnergyBeam] Frame 1
_rotation = _root.GetAngle(this, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 308 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 297 MovieClip in Symbol 308 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 308 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 308 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 308 MovieClip [EnergyBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 308 MovieClip [EnergyBeam] Frame 3
gotoAndPlay (2);
Symbol 309 MovieClip [TractorBeam] Frame 1
_rotation = _root.GetAngle(this, target);
fixedrotation = target._rotation;
Symbol 309 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);
}
if (target != _root.camerafocus) {
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 297 MovieClip in Symbol 309 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 309 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 309 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 309 MovieClip [TractorBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 309 MovieClip [TractorBeam] Frame 3
gotoAndPlay (2);
Symbol 310 MovieClip [MiningBeam3] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 310 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.Mined = _root.Mined + mine;
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.Mined = 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 297 MovieClip in Symbol 310 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 310 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 310 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 310 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 310 MovieClip [MiningBeam3] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 310 MovieClip [MiningBeam3] Frame 3
gotoAndPlay (2);
Symbol 311 MovieClip [MiningBeam2] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 311 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.Mined = _root.Mined + mine;
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.Mined = 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 297 MovieClip in Symbol 311 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 311 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 311 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 311 MovieClip [MiningBeam2] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 311 MovieClip [MiningBeam2] Frame 3
gotoAndPlay (2);
Symbol 312 MovieClip [MiningBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 312 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.Mined = _root.Mined + mine;
} else {
_root.addinfo("Mining bay full", "#FF0000", true);
_root.Mined = 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 297 MovieClip in Symbol 312 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 312 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 312 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 312 MovieClip [MiningBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 312 MovieClip [MiningBeam] Frame 3
gotoAndPlay (2);
Symbol 313 MovieClip [ShieldSapBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 313 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 297 MovieClip in Symbol 313 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 313 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 313 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 313 MovieClip [ShieldSapBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 313 MovieClip [ShieldSapBeam] Frame 3
gotoAndPlay (2);
Symbol 314 MovieClip [LargeLaserBeam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
Symbol 314 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 297 MovieClip in Symbol 314 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 314 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 314 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 314 MovieClip [LargeLaserBeam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 314 MovieClip [LargeLaserBeam] Frame 3
gotoAndPlay (2);
Symbol 315 MovieClip [Beam] Frame 1
_rotation = _root.GetAngle(this, target);
dist = _root.GetDistance(Firer, target);
_root.weaponsound.gotoAndStop("beam2");
Symbol 315 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 297 MovieClip in Symbol 315 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 301 MovieClip in Symbol 315 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_y = (-_parent.dist);
}
Instance of Symbol 303 MovieClip in Symbol 315 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_height = _parent.dist;
_y = (-_parent.dist);
}
Instance of Symbol 305 MovieClip [BeamSparks] in Symbol 315 MovieClip [Beam] Frame 2
onClipEvent (enterFrame) {
_rotation = random(360);
_y = (-_parent.dist);
}
Symbol 315 MovieClip [Beam] Frame 3
gotoAndPlay (2);
Symbol 320 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 320 MovieClip [Damage Bubble] Frame 201
gotoAndPlay (1);
Symbol 325 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 325 MovieClip [Shield] Frame 201
gotoAndPlay (1);
Symbol 336 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.killmoney = _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);
}
}
}
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 336 MovieClip [Crate] Frame 34
removeMovieClip(this);
Symbol 338 MovieClip [AlienSubStation] Frame 1
big = true;
Team = "Alien";
Symbol 341 MovieClip [Exhaust] Frame 11
removeMovieClip(this);
Symbol 350 MovieClip [Disruptor] Frame 1
_root.weaponsound.gotoAndStop("orb");
_rotation = random(360);
speed = 15;
maxspeed = 15;
accelleration = 1;
turning = 15;
timer = 300;
Instance of Symbol 344 MovieClip in Symbol 350 MovieClip [Disruptor] Frame 1
onClipEvent (enterFrame) {
_rotation = random(360);
_alpha = random(100);
}
Symbol 350 MovieClip [Disruptor] Frame 2
_root.guidedmovement(this);
Symbol 350 MovieClip [Disruptor] Frame 3
gotoAndPlay (2);
Symbol 350 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 350 MovieClip [Disruptor] Frame 5
_root.CheckBlast(this, 50);
call("explode");
Symbol 350 MovieClip [Disruptor] Frame 6
call("explode");
Symbol 350 MovieClip [Disruptor] Frame 7
call("explode");
Symbol 350 MovieClip [Disruptor] Frame 26
removeMovieClip(this);
Symbol 355 MovieClip [ProximityBlaster] Frame 1
this.onEnterFrame = function () {
_x = (Firer._x + Firer.xspeed);
_y = (Firer._y + Firer.yspeed);
_rotation = random(360);
};
Symbol 355 MovieClip [ProximityBlaster] Frame 11
_root.CheckBlast(this, 100, 0, true);
_root.explosionsound.gotoAndStop("plasma");
Symbol 355 MovieClip [ProximityBlaster] Frame 21
removeMovieClip(this);
Symbol 357 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 357 MovieClip [Meteorite] Frame 2
intTimer++;
if (intTimer > 100) {
intTimer = 0;
_root.sendcommand("MeteoritePosition", (((((((((_name + "|") + _x) + "|") + _y) + "|") + _width) + "|") + _height) + "|") + _rotation);
}
Symbol 357 MovieClip [Meteorite] Frame 3
gotoAndPlay (2);
Symbol 411 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 416 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 429 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 432 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 445 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 448 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 451 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 454 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 458 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 461 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 463 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 467 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 470 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 484 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 488 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 493 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 496 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 500 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 504 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 508 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 511 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 516 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 520 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 525 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 528 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 531 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 533 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 536 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 542 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 546 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 549 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 553 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 557 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 561 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 566 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 570 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 575 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 581 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 586 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Symbol 591 MovieClip Frame 1
_root.SetShipColour(this, _parent._parent.colour);
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 22
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 24
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 26
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 28
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 29
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 429 MovieClip in Symbol 592 MovieClip Frame 42
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Symbol 594 MovieClip Frame 1
if (_alpha > 1) {
_alpha = (_alpha / 1.1);
}
Symbol 594 MovieClip Frame 2
gotoAndPlay (1);
Symbol 596 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);
}
}
}
}
if ((setup == true) && (dead != true)) {
_visible = true;
} else {
_visible = false;
}
Instance of Symbol 592 MovieClip "inner" in Symbol 596 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 594 MovieClip "shield" in Symbol 596 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);
}
}
Symbol 596 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 596 MovieClip [Ship] Frame 3
call("action");
Symbol 596 MovieClip [Ship] Frame 4
call("loop");
Symbol 596 MovieClip [Ship] Frame 5
call("action");
Instance of Symbol 357 MovieClip [Meteorite] in Symbol 596 MovieClip [Ship] Frame 5
/* no clip actions */
Instance of Symbol 592 MovieClip "inner" in Symbol 596 MovieClip [Ship] Frame 5
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Symbol 596 MovieClip [Ship] Frame 6
call("loop");
Symbol 596 MovieClip [Ship] Frame 7
call("action");
Instance of Symbol 592 MovieClip "inner" in Symbol 596 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
gotoAndStop(_parent.shiptype);
}
Instance of Symbol 592 MovieClip "inner" in Symbol 596 MovieClip [Ship] Frame 7
onClipEvent (enterFrame) {
if (_parent == _root.camerafocus) {
_visible = true;
gotoAndStop(_parent.shiptype);
} else {
_visible = false;
}
}
Instance of Symbol 594 MovieClip "shield" in Symbol 596 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 596 MovieClip [Ship] Frame 8
call("loop");
Symbol 596 MovieClip [Ship] Frame 9
call("action");
Symbol 596 MovieClip [Ship] Frame 10
call("loop");
Symbol 607 MovieClip Frame 120
trace("Logo Done");
stop();
Symbol 609 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk?r=" + _url, "_blank");
}
Symbol 818 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.34");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 819 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.6");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(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();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 820 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 629 Button
on (release) {
_root.gotoAndStop("highscores");
}
Symbol 634 Button
on (release) {
_root.arrMyWeapons = Array(0, 47);
_root.MyShipType = 8;
_root.MyTeam = "Alien";
_root.MyName = "Guest_" + entername.text;
_root.QuadrantCol = 20;
_root.QuadrantRow = 0;
_root.gotoAndStop("Game");
}
Symbol 643 Button
on (release) {
_root.arrMyWeapons = Array(0, 0);
_root.MyShipType = 9;
_root.MyTeam = "Human";
_root.MyName = "Guest_" + entername.text;
_root.QuadrantRow = 19;
_root.QuadrantCol = 20;
_root.gotoAndStop("game");
}
Symbol 646 MovieClip Frame 1
stopAllSounds();
Symbol 646 MovieClip Frame 2
stop();
Symbol 647 MovieClip Frame 1
if (_root.MyTeam == "Alien") {
gotoAndStop (2);
} else if (_root.MyTeam == "Human") {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
Symbol 649 MovieClip Frame 1
themessage = _parent.themessage;
Symbol 650 MovieClip Frame 25
stop();
_root.ready = true;
Symbol 656 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.camerafocus.status == "warping") {
_visible = false;
}
};
Instance of Symbol 596 MovieClip [Ship] "myship" in Symbol 656 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;
_root.threatrating = _root.GetThreatRating(_root.QuadrantRow);
_root.QuadrantCentreX = 0;
_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.QuadrantRow >= 10) {
s = _root.CreateAIShip("Human", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "HumanSubStation");
s.swapDepths(this);
_root.SpaceStation = s;
} else {
s = _root.CreateAIShip("Alien", _root.QuadrantCentreX, _root.QuadrantCentreY, 0, "AlienSubStation");
s.swapDepths(this);
_root.SpaceStation = s;
}
Team = _root.MyTeam;
if (Team == "Human") {
Enemy = "Alien";
} else {
Enemy = "Human";
}
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) {
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.gotoAndStop("gameover");
}
}
if (_root.multiplayer == false) {
maxaiships = 8;
} else {
maxaiships = Math.round(4 / _root.NumberOfPlayers);
}
shipcount = _root.FriendlyCount + _root.EnemyCount;
rate = 10 + _root.Level;
_root.difficulty = Math.ceil((_root.Kills + 1) / 10);
if ((random(1000) < rate) || (_root.EnemyCount == 0)) {
_root.EnemyCount++;
_root.CreateShip(Enemy);
}
}
Instance of Symbol 653 MovieClip "crosshair" in Symbol 656 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 653 MovieClip "crosshair1" in Symbol 656 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 655 MovieClip in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
range = _parent.myship.SecondaryWeaponsRanges[1];
if (range > -1) {
_x = _parent.myship._x;
_y = _parent.myship._y;
_width = (range * 2);
_height = (range * 2);
_visible = true;
} else {
_visible = false;
}
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 682 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 701 MovieClip Frame 1
stop();
Symbol 717 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 708 MovieClip in Symbol 717 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget != undefined) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 717 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 736 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
percent = (_root.camerafocus.shieldlevel / _root.camerafocus.maxshield) * 100;
i = Math.ceil(Number(101 - percent) / 2);
gotoAndStop(i);
}
Instance of Symbol 592 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root.camerafocus._rotation;
speed = _root.camerafocus.speed;
gotoAndStop(_root.camerafocus.shiptype);
}
Instance of Symbol 742 MovieClip in Symbol 746 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 765 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 778 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 2
stop();
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 736 MovieClip in Symbol 778 MovieClip Frame 2
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 592 MovieClip in Symbol 778 MovieClip Frame 2
onClipEvent (enterFrame) {
_rotation = _root.camerafocus.lockedtarget._rotation;
speed = _root.camerafocus.lockedtarget.speed;
gotoAndStop(_root.camerafocus.lockedtarget.shiptype);
_parent.SecondaryWeaponNums = _root.camerafocus.lockedtarget.SecondaryWeaponNums;
_parent.colour = _root.camerafocus.lockedtarget.colour;
}
Instance of Symbol 742 MovieClip in Symbol 778 MovieClip Frame 2
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 778 MovieClip Frame 3
_root.othersound.gotoAndStop("lockedon");
Instance of Symbol 736 MovieClip in Symbol 778 MovieClip Frame 3
onClipEvent (enterFrame) {
gotoAndStop (1);
_parent.displaydistance = Math.ceil(_root.GetDistance(_root.camerafocus, _root.camerafocus.lockedtarget));
}
Instance of Symbol 357 MovieClip [Meteorite] in Symbol 778 MovieClip Frame 3
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 742 MovieClip in Symbol 778 MovieClip Frame 3
onClipEvent (enterFrame) {
_width = ((_root.camerafocus.lockedtarget.Ore / _root.camerafocus.lockedtarget.OrigOre) * 120);
_parent.displayore = _root.camerafocus.lockedtarget.Ore;
gotoAndStop (1);
}
Symbol 778 MovieClip Frame 5
gotoAndStop (4);
Instance of Symbol 765 MovieClip "selectedweaponscreen" in Symbol 789 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.SecondaryWeaponNames[_root.camerafocus.SecondaryWeaponSelected] == undefined) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 778 MovieClip "lockedscreen" in Symbol 789 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.camerafocus.lockedtarget == undefined) {
gotoAndStop (4);
} else if (_root.camerafocus.lockedtarget.Meteorite == true) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 790 Button
on (keyPress "<Space>") {
if (_root.disablecontrols != true) {
_root.FireWeapon(_root.camerafocus, _root.camerafocus.SecondaryWeaponSelected, _root.multiplayer);
_root.hud.selectedweaponscreen.gotoAndPlay(1);
}
}
Symbol 791 Button
on (keyPress "k") {
gotoAndStop ("start");
}
on (keyPress "q") {
_root.respawning = false;
_root.gotoAndStop("gameover");
}
Symbol 806 MovieClip Frame 1
if (_root.id == true) {
gotoAndStop ("start");
} else {
_root.id = true;
timer = 0;
this.onEnterFrame = function () {
timer++;
if (timer >= 100) {
timer = 0;
nextFrame();
}
};
gotoAndStop (2);
}
Symbol 806 MovieClip Frame 15
_root.started = true;
this.onEnterFrame = undefined;
stop();
Symbol 810 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 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 2
lives = _root.Lives + " lives remaining";
Symbol 816 Button
on (release) {
nextFrame();
}