Frame 1
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
gotoAndStop (3);
} else {
_root.loadedtext = String(Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100)) + "%";
}
Instance of Symbol 173 MovieClip in Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.bgnum);
}
onClipEvent (load) {
_root.bgnum = random(16) + 1;
}
Instance of Symbol 176 MovieClip "bstars" in Frame 1
onClipEvent (enterFrame) {
if (_y > 600) {
setProperty(this, _y , _y - 600);
}
if (_y < 0) {
setProperty(this, _y , _y + 600);
}
if (_x > 0) {
setProperty(this, _x , _x - 800);
}
if (_x < -800) {
setProperty(this, _x , _x + 800);
}
}
Frame 2
gotoAndPlay (1);
Frame 3
if (false) {
}
Frame 4
function playsound(strSound) {
_root.sound.gotoAndPlay(strSound);
}
function dropitem(obj, item) {
_root.lasernum = _root.lasernum + 1;
if (_root.lasernum > 200) {
_root.lasernum = 0;
}
newName = "item" + _root.lasernum;
_root.universe.attachMovie(item, newName, _root.lasernum);
setProperty(eval ("_root.universe." + newName), _x , obj._x);
setProperty(eval ("_root.universe." + newName), _y , obj._y);
setProperty(eval ("_root.universe." + newName), _rotation , obj._rotation);
}
function consolemessage(cmessage) {
_root.console = (cmessage + "<br>-----------<br>") + _root.console;
}
function isonTeam(ship) {
if (_root.quadrantgame == "Deathmatch") {
return(false);
}
if (ship.team == _root.team) {
return(true);
}
return(false);
}
_root.message = "";
_root.bgnum = random(16) + 1;
_root.gamewidth = 800;
_root.gameheight = 600;
if (((((((_root.name + "") != "") && (_root.name.indexOf("|") < 0)) && (_root.name.indexOf("<") < 0)) && (_root.name.indexOf(">") < 0)) && (_root.name.indexOf("^") < 0)) && (_root.name.indexOf("#") < 0)) {
} else {
gotoAndPlay (1);
}
stop();
function joingame(port) {
_root.playernumber = "";
if ((_root.name + "") != "") {
consolemessage("Joining Game " + port);
_root.chat.chatsocket.close();
socket.connect(Server, port);
_root.lastport = port;
} else {
_root.chat.message = "<font color=\"#FFFFFF\">You must enter a name before you can enter a quadrant</font><br>" + _root.chat.message;
}
}
function quitgame() {
reconnect = false;
socket.close();
_root.playernumber = "";
_root.score = "";
_root.message = "";
consolemessage("Quiting Game");
gotoAndPlay (4);
}
function newXML(doc) {
if (doc.toString().substring(0, 2) == "S|") {
if (doc.toString().substring(2, 4) == "P|") {
numberofplayers = Number(doc.toString().substring(4, doc.toString().length));
} else if (doc.toString().substring(2, 4) == "PN") {
arrPlayerList = doc.toString().substring(5, doc.toString().length).split(":");
i = 0;
while (i < 8) {
PlayerInfo = arrPlayerList[i].split("^");
if (PlayerInfo[1] == "human") {
Set("_root.Player" + String(i + 1), ("<font color=\"#0099FF\">" + PlayerInfo[0]) + "</font>");
} else {
Set("_root.Player" + String(i + 1), ("<font color=\"#FF6600\">" + PlayerInfo[0]) + "</font>");
}
Set("_root.Score" + String(i + 1), PlayerInfo[2]);
Set("_root.Playernum" + String(i + 1), Number(PlayerInfo[3]));
i++;
}
} else if (doc.toString().substring(2, 4) == "PS") {
arrTeamScores = doc.toString().split("|");
if (Number(arrTeamScores[2]) == _root.playernumber) {
_root.score = Number(arrTeamScores[3]);
}
} else if (doc.toString().substring(2, 4) == "T|") {
arrTeamScores = doc.toString().split("|");
_root.humanscore = Number(arrTeamScores[2]);
_root.alienscore = Number(arrTeamScores[3]);
} else {
consolemessage("Unknown Server Command:" + doc.toString());
}
} else if (doc.toString().indexOf(":") > -1) {
arrIncoming = doc.toString().split(": ");
playernum = arrIncoming[0];
command = arrIncoming[1];
variables = arrIncoming[2].split("|");
if (command == "Say") {
if (variables[0] == "human") {
message = (((("<font color=\"#0099FF\">" + variables[1]) + " says: ") + variables[2]) + "</font><br>") + message;
} else {
message = (((("<font color=\"#FF6600\">" + variables[1]) + " says: ") + variables[2]) + "</font><br>") + message;
}
_root.playsound("chat");
} else if (command == "PlayerWin") {
wintext = ("<p align=\"center\">" + variables[0]) + " wins!</p>";
gotoAndStop (7);
} else if (command == "TeamWin") {
wintext = ("<p align=\"center\">" + variables[0]) + "s win!</p>";
gotoAndStop (7);
} else if (command == "Message") {
message = (variables[0] + "<br>") + message;
} else if (command == "ScoreUp") {
consolemessage("Score Increase. Player: " + variables[1]);
if (_root.playernumber == Number(variables[1])) {
_root.score = Number(_root.score) + Number(variables[0]);
}
_root.scoreboard.UpdateScores();
} else if (command == "KickPlayer") {
if (Number(variables[0]) == _root.playernumber) {
quitgame();
}
consolemessage(Number(variables[0]) + " was kicked");
} else if (command == "SetShip") {
if (_root.playernumber != Number(playernum)) {
objship = eval ("_root.universe.enemyobject" + (Number(playernum) + 1));
if ((objship.me + "") != "") {
if (variables[4] == "true") {
objship.dead = true;
}
objship.timeout = 0;
setProperty(objship, _x , Number(variables[0]));
setProperty(objship, _y , Number(variables[1]));
setProperty(objship, _rotation , Number(variables[2]));
objship.name = variables[3];
objship.player = Number(playernum);
objship.type = Number(variables[5]);
objship.score = Number(variables[6]);
objship.speed = Number(variables[7]);
objship.team = variables[8];
} else if (variables[4] != "true") {
consolemessage("Creating Ship. Player: " + playernum);
newName = "enemyobject" + (Number(playernum) + 1);
_root.universe.attachMovie("Ship", newName, Number(playernum) + 1);
_root.scoreboard.UpdateScores();
}
}
} else if (command == "SetLaser") {
_root.lasernum = _root.lasernum + 1;
if (_root.lasernum > 200) {
_root.lasernum = 0;
}
newName = "laser" + _root.lasernum;
if (variables[5] == "human") {
_root.universe.attachMovie("HumanLaser", newName, _root.lasernum);
} else {
_root.universe.attachMovie("AlienLaser", newName, _root.lasernum);
}
setProperty(eval ("_root.universe." + newName), _x , Number(variables[0]));
setProperty(eval ("_root.universe." + newName), _y , Number(variables[1]));
setProperty(eval ("_root.universe." + newName), _rotation , Number(variables[2]));
if (Math.abs(GetDistance(_root.universe.objectShip, eval ("_root.universe." + newName))) < (1000 + (3 * _root.universe.objectShip.speed))) {
Set(("_root.universe." + newName) + ".firer", Number(variables[3]));
Set(("_root.universe." + newName) + ".firername", variables[4]);
Set(("_root.universe." + newName) + ".firerteam", variables[5]);
} else {
eval ("_root.universe." + newName).removeMovieClip();
}
} else if (command == "SetBomb") {
_root.lasernum = _root.lasernum + 1;
if (_root.lasernum > 200) {
_root.lasernum = 0;
}
newName = "objectbomb" + _root.lasernum;
_root.universe.attachMovie(variables[4], newName, _root.lasernum);
setProperty(eval ("_root.universe." + newName), _x , Number(variables[0]));
setProperty(eval ("_root.universe." + newName), _y , Number(variables[1]));
setProperty(eval ("_root.universe." + newName), _rotation , Number(variables[2]));
if (eval (variables[3]) == eval ("_root.universe.enemyobject" + (Number(_root.playernumber) + 1))) {
eval ("_root.universe." + newName).locked = _root.universe.objectShip;
} else {
eval ("_root.universe." + newName).locked = eval (variables[3]);
}
eval ("_root.universe." + newName).firer = Number(variables[5]);
eval ("_root.universe." + newName).firername = variables[6];
eval ("_root.universe." + newName).firerteam = variables[7];
} else if ((command + "") != "") {
consolemessage("Unknown Command:" + command);
}
} else {
servermessage = doc.toString();
if ((servermessage.indexOf("has joined") > -1) && ((_root.playernumber + "") == "")) {
arrMessageSplit = servermessage.split(" ");
_root.playernumber = arrMessageSplit[0];
_root.playership.player = _root.playernumber;
consolemessage(((("Player " + _root.playernumber) + " has joined the ") + _root.team) + "s");
_root.sendcommand("Message", ((_root.name + " has joined the ") + _root.team) + "s");
_root.scoreboard.UpdateScores();
}
}
}
function newConnection(success) {
if (success) {
sendservercommand("JoinTeam", _root.team);
gotoAndStop (5);
} else {
_root.chat.message = "<font color=\"#FF0000\">Error Connecting</font><br>" + _root.chat.message;
}
}
function endConnection() {
gotoAndStop (6);
}
function sendcommand(command, vars) {
tosend = new XML((command + ": ") + vars);
socket.send(tosend);
}
function sendservercommand(command, vars) {
tosend = new XML((("Server Command: " + command) + ":") + vars);
socket.send(tosend);
}
Server = "mikexp";
Server = "195.184.247.155";
Server = "aldouslamb.com";
Server = "benjamin";
Server = "69.56.136.242";
StartingPort = 4000;
socket = new XMLSocket();
socket.onXML = newXML;
socket.onConnect = newConnection;
socket.onClose = endConnection;
if (reconnect == true) {
joingame(_root.lastport);
}
Instance of Symbol 223 MovieClip in Frame 4
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
if (timer > 500) {
timer = 0;
gotoAndPlay (2);
}
}
Instance of Symbol 235 MovieClip in Frame 4
onClipEvent (load) {
if (_root.team == "alien") {
gotoAndStop (3);
} else if (_root.team == "human") {
gotoAndStop (2);
}
}
Instance of Symbol 304 MovieClip "quadrantinfo" in Frame 4
onClipEvent (load) {
setProperty(this, _visible , false);
}
Frame 5
function savegamescores() {
loadVariablesNum ("gamelog.asp", 0, "POST");
}
_root.score = 0;
i = 1;
while (i <= 8) {
if (Number(eval ("_root.score" + i)) > _root.numHighestScore) {
delete eval ("_root.score" + i);
delete eval ("_root.player" + i);
delete eval ("_root.playernum" + i);
}
i++;
}
Instance of Symbol 308 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 369 MovieClip "universe" in Frame 5
onClipEvent (load) {
if (_root.uber == true) {
setProperty(this, _width , _width / 2);
setProperty(this, _height , _height / 2);
}
}
onClipEvent (enterFrame) {
xcameramiddle = objectShip._x;
ycameramiddle = objectShip._y;
dragSq = new Object();
dragSq.x = xcameramiddle;
dragSq.y = ycameramiddle;
this.localToGlobal(dragSq);
globalX = dragSq.x - (_root.gamewidth / 2);
globalY = dragSq.y - (_root.gameheight / 2);
xscrollspeed = globalX / 2;
yscrollspeed = globalY / 2;
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.bstars, _y , _root.bstars._y - (yscrollspeed / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xscrollspeed / 5));
}
Instance of Symbol 375 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (key.isDown(67)) {
setProperty(this, _visible , true);
} else {
setProperty(this, _visible , false);
}
}
Instance of Symbol 391 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.Universe.objectShip.dead != true) {
gotoAndStop(6 - Math.ceil(_root.Universe.objectShip.shield / 20));
if (recharge > 1000) {
recharge = 0;
if (_root.Universe.objectShip.shield < 100) {
_root.Universe.objectShip.shield = _root.Universe.objectShip.shield + 1;
}
} else {
recharge = recharge + _root.ShieldRechargeRate;
}
}
}
onClipEvent (load) {
recharge = 0;
}
Instance of Symbol 449 MovieClip "scoreboard" in Frame 5
onClipEvent (enterFrame) {
if (_root.quadrantgame == "Deathmatch") {
_root.numHighestScore = 0;
i = 1;
while (i <= 8) {
if (Number(eval ("_root.score" + i)) > _root.numHighestScore) {
_root.numHighestScore = eval ("_root.score" + i);
_root.strHighestPlayer = eval ("_root.player" + i);
_root.numHighestPlayernum = eval ("_root.playernum" + i);
}
i++;
}
if (_root.numHighestScore >= _root.scorelimit) {
_root.consolemessage("Send Win Command");
if (Number(_root.playernumber) == Number(_root.numHighestPlayernum)) {
_root.savegamescores();
_root.sendservercommand("ResetScores", "");
_root.sendcommand("PlayerWin", _root.strHighestPlayer);
}
}
} else if (_root.quadrantgame == "Team Deathmatch") {
if (((_root.humanscore + "") != "") && (Number(_root.humanscore) != Number.NaN)) {
if (_root.humanscore >= _root.scorelimit) {
_root.savegamescores();
_root.finalhumanscore = _root.humanscore;
_root.finalalienscore = _root.alienscore;
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "human");
} else if (_root.alienscore >= _root.scorelimit) {
_root.savegamescores();
_root.finalhumanscore = _root.humanscore;
_root.finalalienscore = _root.alienscore;
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "alien");
}
}
} else if (_root.quadrantgame == "Base Assault") {
if (((_root.humanscore + "") != "") && (Number(_root.humanscore) != Number.NaN)) {
if (_root.humanscore >= _root.scorelimit) {
_root.savegamescores();
_root.sendservercommand("RequestNames", "");
trace("Human Score: " + _root.humanscore);
_root.finalhumanscore = _root.humanscore;
_root.finalalienscore = _root.alienscore;
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "human");
} else if (_root.alienscore >= _root.scorelimit) {
_root.savegamescores();
_root.sendservercommand("RequestNames", "");
_root.finalhumanscore = _root.humanscore;
_root.finalalienscore = _root.alienscore;
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "alien");
}
}
}
if (timer > 50) {
if (_root.quadrantgame == "Base Assault") {
_root.sendservercommand("RequestNames", "");
}
timer = 0;
} else {
timer = timer + 1;
}
}
onClipEvent (load) {
_root.sendservercommand("RequestNames", "");
timer = 0;
}
Frame 6
if (false) {
}
Frame 7
socket.close();
Instance of Symbol 483 MovieClip "scoreboard" in Frame 7
onClipEvent (enterFrame) {
if (_root.quadrantgame == "Deathmatch") {
_root.numHighestScore = 0;
i = 1;
while (i <= 8) {
if (eval ("score" + i) > numHighestScore) {
_root.numHighestScore = eval ("score" + i);
_root.strHighestPlayer = eval ("player" + i);
_root.numHighestPlayernum = eval ("playernum" + i);
}
i++;
}
if (_root.numHighestScore >= 25) {
if (_root.playernumber == _root.numHighestPlayernum) {
_root.sendservercommand("ResetScores", "");
_root.sendcommand("PlayerWin", _root.strHighestPlayer);
}
}
} else if (_root.quadrantgame == "Team Deathmatch") {
if (((_root.humanscore + "") != "") && (Number(_root.humanscore) != Number.NaN)) {
if (_root.humanscore >= 100) {
trace("Human Score: " + _root.humanscore);
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "human");
} else if (_root.alienscore >= 100) {
_root.sendservercommand("ResetScores", "");
_root.sendcommand("TeamWin", "alien");
}
}
}
if (timer > 50) {
timer = 0;
} else {
timer = timer + 1;
}
}
onClipEvent (load) {
function UpdateScores() {
numCount = 0;
for (obj in _root.universe) {
if (obj.indexOf("object") > -1) {
ship = eval ("_root.universe." + obj);
if ((ship.name + "") != "") {
numCount = numCount + 1;
if (ship == _root.universe.objectShip) {
Set("Player" + numCount, ("<font color=\"#FFFFFF\">" + ship.name) + "</font>");
} else if (ship.team == "human") {
Set("Player" + numCount, ("<font color=\"#0099FF\">" + ship.name) + "</font>");
} else {
Set("Player" + numCount, ("<font color=\"#FF6600\">" + ship.name) + "</font>");
}
Set("Score" + numCount, ship.score);
Set("Playernum" + numCount, ship.player);
}
}
}
i = numCount + 1;
while (i <= 8) {
Set("Player" + i, "");
Set("Score" + i, "");
Set("Playernum" + i, "");
i++;
}
}
timer = 0;
}
Frame 8
checksocket = new XMLSocket();
checksocket.onXML = function (xmlText) {
arrCommand = String(xmlText).split("|");
if (arrCommand[0] == "S") {
if (arrCommand[1] == "P") {
numplayers = Number(arrCommand[2]) - 1;
checksocket.close();
if (numplayers >= 8) {
reconnect = false;
} else {
reconnect = true;
}
gotoAndStop (4);
}
}
};
checksocket.connect(_root.server, _root.lastport);
Symbol 5 MovieClip Frame 1
if (((_parent._parent.speed + "") != "") && (_parent._parent.speed > 0)) {
setProperty(this, _visible , true);
setProperty(this, _height , _parent._parent.speed * 5);
} else if (((_parent.speed + "") != "") && (_parent.speed > 0)) {
setProperty(this, _visible , true);
setProperty(this, _height , _parent.speed);
} else {
setProperty(this, _visible , false);
}
Symbol 5 MovieClip Frame 2
call("set");
Symbol 5 MovieClip Frame 3
call("set");
Symbol 5 MovieClip Frame 4
call("set");
Symbol 16 MovieClip [BlackholeBomb] Frame 1
speed = 20;
timer = 100;
Instance of Symbol 5 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent.speed * 5);
}
Symbol 16 MovieClip [BlackholeBomb] Frame 2
speed = speed / 1.05;
if (speed < 2) {
gotoAndPlay (4);
}
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 16 MovieClip [BlackholeBomb] Frame 3
gotoAndPlay (2);
Symbol 16 MovieClip [BlackholeBomb] Frame 4
_root.playsound("blackholebombimplode");
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 5);
}
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 3);
}
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 2);
}
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 1);
}
Instance of Symbol 14 MovieClip in Symbol 16 MovieClip [BlackholeBomb] Frame 11
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 0.6);
}
Symbol 16 MovieClip [BlackholeBomb] Frame 22
dead = true;
timer = timer - 1;
if (timer <= 0) {
gotoAndPlay (24);
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
if (Math.abs(_parent.GetDistance(this, eval ("_parent." + obj))) < 150) {
gotoAndPlay (24);
}
}
}
if ((_parent.GetDistance(this, _parent.objectShip) < 1000) && (_root.shiptype != 12)) {
_parent.objectShip.state = "gravity";
_parent.objectShip.gravityobject = this;
}
Symbol 16 MovieClip [BlackholeBomb] Frame 23
gotoAndPlay (22);
Symbol 16 MovieClip [BlackholeBomb] Frame 42
_root.playsound("bhbomb");
Symbol 16 MovieClip [BlackholeBomb] Frame 43
if (_parent.GetDistance(this, _parent.objectShip) < 220) {
_parent.objectShip.shield = _parent.objectShip.shield - Math.ceil(300 - _parent.GetDistance(this, _parent.objectShip));
_parent.objectShip.state = "powerfail";
_parent.objectShip.xspeed = _parent.objectShip.xspeed + ((-(this._x - _parent.objectShip._x)) / 3);
_parent.objectShip.yspeed = _parent.objectShip.yspeed + ((-(this._y - _parent.objectShip._y)) / 3);
_parent.objectShip.spin = random(60) - 30;
_parent.objectShip.lasthitfirer = firer;
_parent.objectShip.lasthitfirername = firername;
_parent.objectShip.lasthitfirerteam = firerteam;
_parent.objectShip.lasthitweapon = "Vortex Bomb";
} else {
_parent.objectShip.state = "";
}
if (_parent.GetDistance(this, _parent.enemyobjecthss) < (220 + (_parent.enemyobjecthss._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, Math.abs(Math.ceil(300 - _parent.GetDistance(this, _parent.objectShip))), firer, firerteam);
}
if (_parent.GetDistance(this, _parent.enemyobjectass) < (220 + (_parent.enemyobjectass._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, Math.abs(Math.ceil(300 - _parent.GetDistance(this, _parent.objectShip))), firer, firerteam);
}
Symbol 16 MovieClip [BlackholeBomb] Frame 44
removeMovieClip(this);
Symbol 22 MovieClip [HomingDisc] Frame 1
_root.playsound("homingdisclaunch");
Instance of Symbol 19 MovieClip in Symbol 22 MovieClip [HomingDisc] Frame 1
onClipEvent (load) {
setProperty(this, _rotation , random(360));
timer = 5;
}
onClipEvent (enterFrame) {
timer = timer + 1;
setProperty(this, _rotation , _rotation + timer);
}
Symbol 22 MovieClip [HomingDisc] Frame 2
Active = true;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
if (locked.cloaked != true) {
Angle = _parent.GetAngle(this, locked);
}
if ((Timer + "") == "") {
Timer = 200;
} else if (Timer < 0) {
gotoAndPlay (4);
} else {
Timer = Timer - 1;
}
if (_rotation < 0) {
ShipAngle = _rotation + 360;
} else {
ShipAngle = _rotation;
}
diffangle = ShipAngle - Angle;
if ((Math.abs(diffangle) > 10) && (set != true)) {
if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
setProperty(this, _rotation , _rotation - 5);
} else {
setProperty(this, _rotation , _rotation + 5);
}
} else if (ShipAngle < Angle) {
setProperty(this, _rotation , _rotation - 5);
} else {
setProperty(this, _rotation , _rotation + 5);
}
speed = 10;
} else {
set = true;
speed = 25;
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
if ((_parent.getdistance(this, locked) < 30) || (((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) && (_parent.getdistance(this, locked) < (30 + (locked._width / 4))))) {
gotoAndPlay (4);
}
Symbol 22 MovieClip [HomingDisc] Frame 3
gotoAndPlay (2);
Symbol 22 MovieClip [HomingDisc] Frame 4
if (_parent.getdistance(this, locked) < 60) {
locked.shield = (locked.shield - 20) - random(5);
locked.lasthitfirer = firer;
locked.lasthitfirername = firername;
locked.lasthitfirerteam = firerteam;
locked.lasthitweapon = "Heat Disc";
}
if ((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) {
if (_parent.getdistance(this, locked) < (60 + (locked._width / 2))) {
_parent.DamageSpaceStation(locked, 20 - random(5), firer, firerteam);
}
}
Symbol 22 MovieClip [HomingDisc] Frame 22
stop();
removeMovieClip(this);
Symbol 26 MovieClip [Torpedo] Frame 1
function hit(obj) {
obj.gotoAndPlay("hit");
this.gotoAndPlay("explode");
}
_root.playsound("launchtorpedo");
Symbol 26 MovieClip [Torpedo] Frame 2
Active = true;
Turning = 5;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
if ((locked.cloaked != true) || (locked.dead == true)) {
Angle = _parent.GetAngle(this, locked);
} else {
Angle = _rotation;
}
if ((Timer + "") == "") {
Timer = 50;
} else if (Timer < 0) {
gotoAndPlay (4);
} else {
Timer = Timer - 1;
}
if (_rotation < 0) {
ShipAngle = _rotation + 360;
} else {
ShipAngle = _rotation;
}
diffangle = ShipAngle - Angle;
if (Math.abs(diffangle) > 20) {
if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
} else if (ShipAngle < Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
if (Active) {
speed = 20;
}
if (_parent.Collision(this, locked) && (locked.dead != true)) {
gotoAndPlay (4);
}
Symbol 26 MovieClip [Torpedo] Frame 3
gotoAndPlay (2);
Symbol 26 MovieClip [Torpedo] Frame 4
if (this.hitTest(locked)) {
if ((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(locked, random(10) + 10, firer, firerteam);
} else {
locked.hit(this, random(10) + 10);
}
locked.lasthitfirer = firer;
locked.lasthitfirername = firername;
locked.lasthitfirerteam = firerteam;
locked.lasthitweapon = "Torpedo";
}
_root.playsound("torpedohit");
Symbol 26 MovieClip [Torpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay (8);
Symbol 33 MovieClip Frame 1
if (timer >= (_parent.timer / 3)) {
timer = 0;
gotoAndPlay (3);
}
timer = Number(0 + timer) + 1;
Symbol 33 MovieClip Frame 2
gotoAndPlay (1);
Symbol 33 MovieClip Frame 3
_root.playsound("beep");
Symbol 33 MovieClip Frame 4
gotoAndPlay (1);
Symbol 39 MovieClip [CompressorBomb] Frame 1
timer = 200;
Symbol 39 MovieClip [CompressorBomb] Frame 50
speed = 1;
if (timer > 0) {
timer = timer - 1;
} else {
_root.playsound("photonbomb");
gotoAndPlay (52);
}
Symbol 39 MovieClip [CompressorBomb] Frame 51
gotoAndPlay (50);
Symbol 39 MovieClip [CompressorBomb] Frame 52
for (object in _parent) {
if (_parent.GetDistance(this, eval ("_parent." + object)) < 500) {
if (((object.indexOf("enemyobject") > -1) || (object.indexOf("allyobject") > -1)) || (object.indexOf("objectShip") > -1)) {
eval ("_parent." + object).shield = (eval ("_parent." + object).shield - 100) - random(50);
eval ("_parent." + object).lasthitfirer = firer;
eval ("_parent." + object).lasthitfirername = firername;
eval ("_parent." + object).lasthitfirerteam = firerteam;
eval ("_parent." + object).lasthitweapon = "Photon Compression Bomb";
}
}
}
if (_parent.GetDistance(this, _parent.enemyobjecthss) < (500 + (_parent.enemyobjecthss._width / 3))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, 100 + random(50), firer, firerteam);
}
if (_parent.GetDistance(this, _parent.enemyobjectass) < (500 + (_parent.enemyobjectass._width / 3))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, 100 + random(50), firer, firerteam);
}
Symbol 39 MovieClip [CompressorBomb] Frame 53
call("explode");
Symbol 39 MovieClip [CompressorBomb] Frame 54
call("explode");
Symbol 39 MovieClip [CompressorBomb] Frame 55
call("explode");
Symbol 39 MovieClip [CompressorBomb] Frame 56
call("explode");
Symbol 39 MovieClip [CompressorBomb] Frame 120
stop();
removeMovieClip(this);
Symbol 42 MovieClip [LongRangeTorpedo] Frame 1
function hit(obj) {
obj.gotoAndPlay("hit");
this.gotoAndPlay("explode");
}
_root.playsound("launchtorpedo");
Symbol 42 MovieClip [LongRangeTorpedo] Frame 2
Active = true;
Turning = 4;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
if ((locked.cloaked != true) || (locked.dead == true)) {
Angle = _parent.GetAngle(this, locked);
} else {
Angle = _rotation;
}
if ((Timer + "") == "") {
Timer = 100;
} else if (Timer < 0) {
gotoAndPlay (4);
} else {
Timer = Timer - 1;
}
if (_rotation < 0) {
ShipAngle = _rotation + 360;
} else {
ShipAngle = _rotation;
}
diffangle = ShipAngle - Angle;
if (Math.abs(diffangle) > 20) {
if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
} else if (ShipAngle < Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
if (Active) {
speed = 25;
}
if (_parent.Collision(this, locked) && (locked.dead != true)) {
gotoAndPlay (4);
}
Symbol 42 MovieClip [LongRangeTorpedo] Frame 3
gotoAndPlay (2);
Symbol 42 MovieClip [LongRangeTorpedo] Frame 4
if (this.hitTest(locked)) {
if ((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(locked, random(10) + 10, firer, firerteam);
} else {
locked.hit(this, random(10) + 10);
}
locked.lasthitfirer = firer;
locked.lasthitfirername = firername;
locked.lasthitfirerteam = firerteam;
locked.lasthitweapon = "Long Range Torpedo";
}
_root.playsound("torpedohit");
Symbol 42 MovieClip [LongRangeTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay (8);
Symbol 47 MovieClip [ElectroMine] Frame 1
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
_root.playsound("placemine");
Symbol 47 MovieClip [ElectroMine] Frame 19
for (object in _parent) {
if (_parent.getdistance(this, eval ("_parent." + object)) < 110) {
if ((object.indexOf("object") > -1) && (eval ("_parent." + object).player != firer)) {
eval ("_parent." + object).shield = eval ("_parent." + object).shield - (random(12) + 10);
eval ("_parent." + object).state = "powerfail";
eval ("_parent." + object).xspeed = eval ("_parent." + object).xspeed + (-(this._x - eval ("_parent." + object)._x));
eval ("_parent." + object).yspeed = eval ("_parent." + object).yspeed + (-(this._y - eval ("_parent." + object)._y));
eval ("_parent." + object).spin = random(60) - 30;
eval ("_parent." + object).lasthitfirer = firer;
eval ("_parent." + object).lasthitfirername = firername;
eval ("_parent." + object).lasthitfirerteam = firerteam;
eval ("_parent." + object).lasthitweapon = "Electrostatic Mine";
}
}
}
if (_parent.getdistance(this, _parent.enemyobjecthss) < (110 + (_parent.enemyobjecthss._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, random(12) + 10, firer, firerteam);
}
if (_parent.getdistance(this, _parent.enemyobjectass) < (110 + (_parent.enemyobjectass._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, random(12) + 10, firer, firerteam);
}
_root.playsound("electric");
Symbol 47 MovieClip [ElectroMine] Frame 24
removeMovieClip(this);
Symbol 53 MovieClip [Mine] Frame 1
spin = random(5) - random(5);
setProperty(this, _rotation , ranndom(360));
_root.playsound("placemine");
Symbol 53 MovieClip [Mine] Frame 28
for (object in _parent) {
if (_parent.GetDistance(this, eval ("_parent." + object)) < 180) {
if (object.indexOf("object") > -1) {
eval ("_parent." + object).shield = eval ("_parent." + object).shield - (random(12) + 10);
eval ("_parent." + object).lasthitfirer = firer;
eval ("_parent." + object).lasthitfirername = firername;
eval ("_parent." + object).lasthitfirerteam = firerteam;
eval ("_parent." + object).lasthitweapon = "Mine";
}
}
}
if (_parent.GetDistance(this, _parent.enemyobjecthss) < (180 + (_parent.enemyobjecthss._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, random(12) + 10, firer, firerteam);
}
if (_parent.GetDistance(this, _parent.enemyobjectass) < (180 + (_parent.enemyobjectass._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, random(12) + 10, firer, firerteam);
}
_root.playsound("mineexplode");
Symbol 53 MovieClip [Mine] Frame 32
removeMovieClip(this);
Symbol 57 MovieClip [ulrTorpedo] Frame 1
function hit(obj) {
obj.gotoAndPlay("hit");
this.gotoAndPlay("explode");
}
speed = 0.1;
_root.playsound("launchtorpedo");
Symbol 57 MovieClip [ulrTorpedo] Frame 2
Active = true;
Turning = 1;
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);
if ((Timer + "") == "") {
Timer = 100;
} else if (Timer < 0) {
gotoAndPlay (4);
} else {
Timer = Timer - 1;
}
if (speed < 35) {
speed = speed * 1.2;
}
if ((speed > 10) && (soundmade != true)) {
soundmade = true;
_root.playsound("ulrtaccellerate");
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if ((tocheck.team != firerteam) || (_root.friendlyfire == true)) {
if (_parent.Collision(this, tocheck)) {
if (tocheck.player != Number(firer)) {
tocheck.hit(this, random(power));
tocheck.lasthitfirer = firer;
tocheck.lasthitfirername = firername;
tocheck.lasthitfirerteam = firerteam;
gotoAndPlay (4);
}
}
}
}
}
Symbol 57 MovieClip [ulrTorpedo] Frame 3
gotoAndPlay (2);
Symbol 57 MovieClip [ulrTorpedo] Frame 4
_root.playsound("torpedohit");
for (object in _parent) {
if (_parent.GetDistance(this, eval ("_parent." + object)) < 120) {
if ((object.indexOf("enemyobject") > -1) || (object.indexOf("objectShip") > -1)) {
eval ("_parent." + object).shield = eval ("_parent." + object).shield - (random(25) + 10);
eval ("_parent." + object).lasthitfirer = firer;
eval ("_parent." + object).lasthitfirername = firername;
eval ("_parent." + object).lasthitfirerteam = firerteam;
eval ("_parent." + object).lasthitweapon = "Javelin Torpedo";
}
}
}
if (_parent.GetDistance(this, _parent.enemyobjecthss) < (120 + (_parent.enemyobjecthss._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, random(25) + 10, firer, firerteam);
}
if (_parent.GetDistance(this, _parent.enemyobjectass) < (120 + (_parent.enemyobjectass._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, random(25) + 10, firer, firerteam);
}
Symbol 57 MovieClip [ulrTorpedo] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay (8);
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 90);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 60);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 120);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _rotation , _rotation + 30);
}
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Instance of Symbol 59 MovieClip in Symbol 60 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , _rotation + 30);
}
Symbol 63 MovieClip [Disc] Frame 1
function hit(obj) {
obj.gotoAndPlay("hit");
this.gotoAndPlay("explode");
}
speed = 0.1;
_root.playsound("launchdisc");
Symbol 63 MovieClip [Disc] Frame 2
Active = true;
Turning = 1;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
if (locked.cloaked != true) {
Angle = _parent.GetAngle(this, locked);
}
if ((Timer + "") == "") {
Timer = 100;
} else if (Timer < 0) {
gotoAndPlay (4);
} else {
Timer = Timer - 1;
}
if (_rotation < 0) {
ShipAngle = _rotation + 360;
} else {
ShipAngle = _rotation;
}
diffangle = ShipAngle - Angle;
if (Math.abs(diffangle) > 3) {
if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
} else if (ShipAngle < Angle) {
setProperty(this, _rotation , _rotation - Turning);
} else {
setProperty(this, _rotation , _rotation + Turning);
}
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
if ((speed < 30) && (diffangle <= 3)) {
speed = speed * 1.2;
}
if (_parent.Collision(this, locked)) {
gotoAndPlay (4);
}
if ((speed > 10) && (soundmade != true)) {
soundmade = true;
_root.playsound("discaccellerate");
}
Symbol 63 MovieClip [Disc] Frame 3
gotoAndPlay (2);
Symbol 63 MovieClip [Disc] Frame 4
if (this.hitTest(locked)) {
if ((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(locked, random(25) + 25, firer, firerteam);
} else {
locked.hit(this, random(25) + 25);
}
locked.lasthitfirer = firer;
locked.lasthitfirername = firername;
locked.lasthitfirerteam = firerteam;
locked.lasthitweapon = "Convergance Disc";
}
_root.playsound("dischit");
Symbol 63 MovieClip [Disc] Frame 9
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay (8);
Symbol 69 MovieClip [Bomb] Frame 1
function hit(obj) {
obj.gotoAndPlay("hit");
this.gotoAndPlay("explode");
}
_root.playsound("launchbomb");
Symbol 69 MovieClip [Bomb] Frame 2
Active = true;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
if (locked.cloaked != true) {
Angle = _parent.GetAngle(this, locked);
}
if ((Timer + "") == "") {
Timer = 100;
} else if (Timer < 0) {
gotoAndPlay (7);
} else {
Timer = Timer - 1;
}
if (_rotation < 0) {
ShipAngle = _rotation + 360;
} else {
ShipAngle = _rotation;
}
diffangle = ShipAngle - Angle;
if (Math.abs(diffangle) > 20) {
if (Math.abs(diffangle) < 180) {
if (ShipAngle > Angle) {
setProperty(this, _rotation , _rotation - 10);
} else {
setProperty(this, _rotation , _rotation + 10);
}
} else if (ShipAngle < Angle) {
setProperty(this, _rotation , _rotation - 10);
} else {
setProperty(this, _rotation , _rotation + 10);
}
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
setProperty(this, _rotation , _rotation + 5);
if (Active) {
speed = 13 + Math.random();
}
if (_parent.Collision(this, locked)) {
gotoAndPlay (7);
}
Symbol 69 MovieClip [Bomb] Frame 3
call("start");
Symbol 69 MovieClip [Bomb] Frame 4
call("start");
Symbol 69 MovieClip [Bomb] Frame 5
call("start");
Symbol 69 MovieClip [Bomb] Frame 6
gotoAndPlay (2);
Symbol 69 MovieClip [Bomb] Frame 7
if ((locked == _parent.enemyobjecthss) || (locked == _parent.enemyobjectass)) {
if (_parent.getdistance(this, locked) < (100 + (locked._width / 2))) {
_parent.DamageSpaceStation(locked, random(20), firer, firerteam);
}
}
if (_parent.getdistance(this, locked) < 100) {
if (locked.unmoveable != true) {
locked.state = "powerfail";
locked.xspeed = locked.xspeed + (-(this._x - locked._x));
locked.yspeed = locked.yspeed + (-(this._y - locked._y));
locked.spin = random(60) - 30;
locked.lasthitfirer = firer;
locked.lasthitfirername = firername;
locked.lasthitfirerteam = firerteam;
locked.lasthitweapon = "Electrostatic Orb";
}
locked.shield = locked.shield - random(20);
}
_root.playsound("electric");
Symbol 69 MovieClip [Bomb] Frame 12
setProperty(this, _alpha , this._alpha - 10);
setProperty(this, _rotation , random(360));
if (_alpha < 10) {
removeMovieClip(this);
}
gotoAndPlay (11);
Symbol 74 MovieClip [AsteroidPart2] Frame 1
function hit(obj, power) {
if (dead != true) {
xspeed = xspeed + (obj.xspeed / 20);
yspeed = yspeed + (obj.yspeed / 20);
obj.gotoAndPlay("hit");
shield = shield - power;
spin = (Math.random() * 2) - (Math.random() * 2);
}
}
EnemyType = 10;
if (dontspin == true) {
stop();
} else {
spin = random(30) - random(30);
xspeed = random(10) - random(10);
yspeed = random(10) - random(10);
shield = 25;
}
Symbol 74 MovieClip [AsteroidPart2] Frame 2
spin = spin / 1.01;
xspeed = xspeed / 1.01;
yspeed = yspeed / 1.01;
setProperty(this, _rotation , _rotation + spin);
setProperty(this, _x , _x + xspeed);
setProperty(this, _y , _y + yspeed);
if (shield < 0) {
gotoAndPlay (4);
}
Symbol 74 MovieClip [AsteroidPart2] Frame 3
gotoAndPlay (2);
Symbol 74 MovieClip [AsteroidPart2] Frame 4
dead = true;
Symbol 74 MovieClip [AsteroidPart2] Frame 7
removeMovieClip(this);
stop();
Symbol 76 MovieClip [AsteroidPart3] Frame 1
function hit(obj, power) {
if (dead != true) {
xspeed = xspeed + (obj.xspeed / 20);
yspeed = yspeed + (obj.yspeed / 20);
obj.gotoAndPlay("hit");
shield = shield - power;
spin = (Math.random() * 2) - (Math.random() * 2);
}
}
EnemyType = 11;
if (dontspin == true) {
stop();
} else {
spin = random(30) - random(30);
xspeed = random(10) - random(10);
yspeed = random(10) - random(10);
shield = 25;
}
Symbol 76 MovieClip [AsteroidPart3] Frame 2
spin = spin / 1.01;
xspeed = xspeed / 1.01;
yspeed = yspeed / 1.01;
setProperty(this, _rotation , _rotation + spin);
setProperty(this, _x , _x + xspeed);
setProperty(this, _y , _y + yspeed);
if (shield < 0) {
gotoAndPlay (4);
}
Symbol 76 MovieClip [AsteroidPart3] Frame 3
gotoAndPlay (2);
Symbol 76 MovieClip [AsteroidPart3] Frame 4
dead = true;
Symbol 76 MovieClip [AsteroidPart3] Frame 7
removeMovieClip(this);
stop();
Symbol 78 MovieClip [AsteroidPart1] Frame 1
function hit(obj, power) {
if (dead != true) {
xspeed = xspeed + (obj.xspeed / 20);
yspeed = yspeed + (obj.yspeed / 20);
obj.gotoAndPlay("hit");
shield = shield - power;
spin = (Math.random() * 2) - (Math.random() * 2);
}
}
EnemyType = 9;
if (dontspin == true) {
stop();
} else {
spin = random(30) - random(30);
xspeed = random(10) - random(10);
yspeed = random(10) - random(10);
shield = 25;
}
Symbol 78 MovieClip [AsteroidPart1] Frame 2
spin = spin / 1.01;
xspeed = xspeed / 1.01;
yspeed = yspeed / 1.01;
setProperty(this, _rotation , _rotation + spin);
setProperty(this, _x , _x + xspeed);
setProperty(this, _y , _y + yspeed);
if (shield < 0) {
gotoAndPlay (4);
}
Symbol 78 MovieClip [AsteroidPart1] Frame 3
gotoAndPlay (2);
Symbol 78 MovieClip [AsteroidPart1] Frame 4
dead = true;
Symbol 78 MovieClip [AsteroidPart1] Frame 7
removeMovieClip(this);
stop();
Symbol 82 MovieClip [LongRangeLaser] Frame 1
brightness = 50;
speed = 60;
power = 30;
me = this;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
_root.playsound("launchdisc");
Symbol 82 MovieClip [LongRangeLaser] Frame 2
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);
brightness = brightness - 1;
if ((firer + "") == "") {
removeMovieClip(this);
}
if (brightness < 0) {
setProperty(this, _alpha , this._alpha / 1.5);
if (this._alpha < 1) {
removeMovieClip(this);
}
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if ((tocheck.team != firerteam) || (_root.friendlyfire == true)) {
if (_parent.Collision(this, tocheck)) {
if (tocheck.player != Number(firer)) {
if ((tocheck == _parent.enemyobjecthss) || (tocheck == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(tocheck, random(power), firer, firerteam);
gotoAndPlay (4);
} else {
tocheck.hit(this, random(power));
}
tocheck.lasthitfirer = firer;
tocheck.lasthitfirername = firername;
tocheck.lasthitfirerteam = firerteam;
tocheck.lasthitweapon = "Long Range Laser";
}
}
}
}
}
Symbol 82 MovieClip [LongRangeLaser] Frame 3
gotoAndPlay (2);
Symbol 82 MovieClip [LongRangeLaser] Frame 4
_root.playsound("laserhit");
Symbol 82 MovieClip [LongRangeLaser] Frame 6
removeMovieClip(this);
Symbol 86 MovieClip [HeatLaser] Frame 1
brightness = 28;
speed = 28;
power = 75;
me = this;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
_root.playsound("laser");
Symbol 86 MovieClip [HeatLaser] Frame 2
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);
brightness = brightness - 1;
if ((firer + "") == "") {
removeMovieClip(this);
}
if (brightness < 0) {
setProperty(this, _alpha , this._alpha / 1.5);
if (this._alpha < 1) {
removeMovieClip(this);
}
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if ((tocheck.team != firerteam) || (_root.friendlyfire == true)) {
if (_parent.Collision(this, tocheck)) {
if (tocheck.player != Number(firer)) {
if ((tocheck == _parent.enemyobjecthss) || (tocheck == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(tocheck, random(power), firer, firerteam);
gotoAndPlay (4);
} else {
tocheck.hit(this, random(power));
}
tocheck.lasthitfirer = firer;
tocheck.lasthitfirername = firername;
tocheck.lasthitfirerteam = firerteam;
tocheck.lasthitweapon = "Plasma Laser";
}
}
}
}
}
Symbol 86 MovieClip [HeatLaser] Frame 3
gotoAndPlay (2);
Symbol 86 MovieClip [HeatLaser] Frame 4
_root.playsound("laserhit");
Symbol 86 MovieClip [HeatLaser] Frame 6
removeMovieClip(this);
Symbol 90 MovieClip [AlienLaser] Frame 1
me = this;
brightness = 28;
speed = 28;
power = 30;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
_root.playsound("laser");
Symbol 90 MovieClip [AlienLaser] Frame 2
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);
brightness = brightness - 1;
if ((firer + "") == "") {
removeMovieClip(this);
}
if (brightness < 0) {
setProperty(this, _alpha , this._alpha / 1.5);
if (this._alpha < 1) {
removeMovieClip(this);
}
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if ((tocheck.team != firerteam) || (_root.friendlyfire == true)) {
if (_parent.Collision(this, tocheck)) {
if (tocheck.player != Number(firer)) {
if ((tocheck == _parent.enemyobjecthss) || (tocheck == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(tocheck, random(power), firer, firerteam);
gotoAndPlay (4);
} else {
tocheck.hit(this, random(power));
}
tocheck.lasthitfirer = firer;
tocheck.lasthitfirername = firername;
tocheck.lasthitfirerteam = firerteam;
tocheck.lasthitweapon = "Laser Cannon";
}
}
}
}
}
Symbol 90 MovieClip [AlienLaser] Frame 3
gotoAndPlay (2);
Symbol 90 MovieClip [AlienLaser] Frame 4
_root.playsound("laserhit");
Symbol 90 MovieClip [AlienLaser] Frame 6
removeMovieClip(this);
Symbol 94 MovieClip [HumanLaser] Frame 1
me = this;
brightness = 26;
speed = 26;
power = 25;
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
_root.playsound("laser");
Symbol 94 MovieClip [HumanLaser] Frame 2
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);
brightness = brightness - 1;
if ((firer + "") == "") {
removeMovieClip(this);
}
if (brightness < 0) {
setProperty(this, _alpha , this._alpha / 1.5);
if (this._alpha < 1) {
removeMovieClip(this);
}
}
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if ((tocheck.team != firerteam) || (_root.friendlyfire == true)) {
if (_parent.Collision(this, tocheck)) {
if (tocheck.player != Number(firer)) {
if ((tocheck == _parent.enemyobjecthss) || (tocheck == _parent.enemyobjectass)) {
_parent.DamageSpaceStation(tocheck, random(power), firer, firerteam);
gotoAndPlay (4);
} else {
tocheck.hit(this, random(power));
}
tocheck.lasthitfirer = firer;
tocheck.lasthitfirername = firername;
tocheck.lasthitfirerteam = firerteam;
tocheck.lasthitweapon = "Laser Cannon";
}
}
}
}
}
Symbol 94 MovieClip [HumanLaser] Frame 3
gotoAndPlay (2);
Symbol 94 MovieClip [HumanLaser] Frame 4
_root.playsound("laserhit");
Symbol 94 MovieClip [HumanLaser] Frame 6
removeMovieClip(this);
Symbol 98 MovieClip Frame 1
if (_root.quadrantgame == "Deathmatch") {
stop();
} else {
gotoAndStop(_parent.team);
}
Symbol 115 MovieClip Frame 1
stop();
Instance of Symbol 5 MovieClip "fire" in Symbol 144 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(this, _height , _parent._parent.speed * 5);
}
Symbol 144 MovieClip Frame 2
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 5;
_root.ammo = 10;
_root.secondaryweapon = "Torpedo";
_root.secondaryweaponangle = 30;
_root.RequiresLocking = true;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 1;
}
stop();
Symbol 144 MovieClip Frame 3
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 15;
_root.Turning = 5;
_root.ammo = 5;
_root.secondaryweapon = "Bomb";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = true;
_root.WeaponLockRange = 400;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 200;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 2;
}
Symbol 144 MovieClip Frame 4
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 8;
_root.Turning = 2;
_root.ammo = 15;
_root.secondaryweapon = "LongRangeTorpedo";
_root.secondaryweaponangle = 15;
_root.RequiresLocking = true;
_root.WeaponLockRange = 1000;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 75;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 3;
}
Symbol 144 MovieClip Frame 5
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 11;
_root.Turning = 5;
_root.ammo = 10;
_root.secondaryweapon = "ElectroMine";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = false;
_root.WeaponLockRange = 0;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 4;
}
stop();
Symbol 144 MovieClip Frame 6
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 4;
_root.ammo = 5;
_root.secondaryweapon = "Disc";
_root.secondaryweaponangle = 30;
_root.RequiresLocking = true;
_root.WeaponLockRange = 1000;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 300;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 5;
}
stop();
Symbol 144 MovieClip Frame 7
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 8;
_root.Turning = 5;
_root.ammo = 5;
_root.secondaryweapon = "Bomb";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = true;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 100;
_root.rechargeamount = 200;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 6;
}
stop();
Instance of Symbol 115 MovieClip in Symbol 144 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_parent.laserlevel);
}
Symbol 144 MovieClip Frame 8
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 20;
_root.Turning = 4;
_root.ammo = 1;
_root.secondaryweapon = "ulrTorpedo";
_root.secondaryweaponangle = 0;
_root.RequiresLocking = false;
_root.WeaponLockRange = 1000;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 40;
_root.rechargeamount = 100;
} else {
_parent.EnemyType = 7;
}
stop();
Symbol 144 MovieClip Frame 9
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 15;
_root.Turning = 2;
_root.ammo = 10;
_root.secondaryweapon = "Mine";
_root.secondaryweaponangle = 30;
_root.RequiresLocking = false;
_root.WeaponLockRange = 0;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 100;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 8;
}
stop();
Symbol 144 MovieClip Frame 10
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 5;
_root.ammo = 5;
_root.secondaryweapon = "LongRangeTorpedo";
_root.secondaryweaponangle = 20;
_root.RequiresLocking = true;
_root.WeaponLockRange = 1000;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 9;
}
stop();
Symbol 144 MovieClip Frame 11
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 13;
_root.Turning = 2;
_root.ammo = 20;
_root.secondaryweapon = "LongRangeLaser";
_root.secondaryweaponangle = 0;
_root.RequiresLocking = false;
_root.WeaponLockRange = 0;
_root.Acceleration = 0.1;
_root.ShieldRechargeRate = 100;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 10;
}
Symbol 144 MovieClip Frame 12
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 8;
_root.Turning = 4;
_root.ammo = 20;
_root.secondaryweapon = "HomingDisc";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = true;
_root.WeaponLockRange = 700;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 11;
}
stop();
Symbol 144 MovieClip Frame 13
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 3;
_root.ammo = 1;
_root.secondaryweapon = "BlackHoleBomb";
_root.secondaryweaponangle = 15;
_root.RequiresLocking = false;
_root.WeaponLockRange = 0;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 110;
_root.rechargeamount = 400;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 12;
}
Instance of Symbol 115 MovieClip in Symbol 144 MovieClip Frame 13
onClipEvent (load) {
gotoAndStop(_parent.laserlevel);
}
Symbol 144 MovieClip Frame 14
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 6;
_root.ammo = 10;
_root.secondaryweapon = "LongRangeLaser";
_root.secondaryweaponangle = 0;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 1;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 13;
}
Symbol 144 MovieClip Frame 15
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 11;
_root.Turning = 2;
_root.ammo = 5;
_root.secondaryweapon = "ulrTorpedo";
_root.secondaryweaponangle = 2;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 14;
}
Symbol 144 MovieClip Frame 16
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 11;
_root.Turning = 2;
_root.ammo = 5;
_root.secondaryweapon = "ulrTorpedo";
_root.secondaryweaponangle = 2;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 15;
}
Symbol 144 MovieClip Frame 17
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 4;
_root.ammo = 1;
_root.secondaryweapon = "CompressorBomb";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 100;
_root.rechargeamount = 400;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 16;
}
Symbol 144 MovieClip Frame 18
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 9;
_root.Turning = 5;
_root.ammo = 1;
_root.secondaryweapon = "Teleport";
_root.secondaryweaponangle = 0;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 1;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 200;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 17;
}
Symbol 144 MovieClip Frame 19
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 15;
_root.Turning = 2;
_root.ammo = 10;
_root.secondaryweapon = "HeatLaser";
_root.secondaryweaponangle = 0;
_root.RequiresLocking = false;
_root.WeaponLockRange = 0;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 15;
_root.rechargeamount = 50;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 18;
}
stop();
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 19
onClipEvent (enterFrame) {
setProperty(this, _height , _parent._parent.speed * 5);
}
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 19
onClipEvent (enterFrame) {
setProperty(this, _height , _parent._parent.speed * 5);
}
Symbol 144 MovieClip Frame 20
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 10;
_root.Turning = 4;
_root.ammo = 1;
_root.secondaryweapon = "ElectroField";
_root.secondaryweaponangle = 360;
_root.RequiresLocking = false;
_root.WeaponLockRange = 500;
_root.Acceleration = 0.4;
_root.ShieldRechargeRate = 25;
_root.rechargeamount = 100;
_root.targetmonitor.gotoAndStop(1);
} else {
_parent.EnemyType = 19;
}
stop();
Symbol 144 MovieClip Frame 21
if (_parent == _root.universe.objectShip) {
_root.MaxSpeed = 20;
_root.Turning = 3;
_root.ammo = 20;
_root.secondaryweapon = "Disc";
_root.secondaryweaponangle = 30;
_root.RequiresLocking = true;
_root.WeaponLockRange = 2000;
_root.Acceleration = 0.5;
_root.ShieldRechargeRate = 300;
_root.rechargeamount = 20;
} else {
_parent.EnemyType = 20;
}
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 21
onClipEvent (enterFrame) {
setProperty(this, _height , 10);
}
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 21
onClipEvent (enterFrame) {
setProperty(this, _height , 10);
}
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 21
onClipEvent (enterFrame) {
setProperty(this, _height , 10);
}
Instance of Symbol 5 MovieClip in Symbol 144 MovieClip Frame 21
onClipEvent (enterFrame) {
setProperty(this, _height , 10);
}
Symbol 147 MovieClip [Ship] Frame 1
function hit(obj, power) {
if (dead != true) {
obj.gotoAndPlay("hit");
}
}
me = this;
if (((Number(type) == NaN) || ((team != "human") && (team != "alien"))) || ((type == 20) && (name != "The Creator"))) {
_root.sendcommand("KickPlayer", player);
}
if (timeout < 250) {
timeout = timeout + 1;
} else {
_root.sendcommand("KickPlayer", player);
removeMovieClip(this);
}
Instance of Symbol 98 MovieClip in Symbol 147 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
setProperty(this, _rotation , -_parent._rotation);
}
Instance of Symbol 144 MovieClip in Symbol 147 MovieClip [Ship] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.type + 1);
}
Symbol 147 MovieClip [Ship] Frame 2
if (dead == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 147 MovieClip [Ship] Frame 3
if (this == _root.LockedTarget) {
_root.LockedTarget = "";
}
Symbol 147 MovieClip [Ship] Frame 15
_root.dropitem(this, "Shield");
Symbol 147 MovieClip [Ship] Frame 16
removeMovieClip(this);
stop();
Symbol 149 MovieClip [Shield] Frame 1
timer = 250;
Symbol 149 MovieClip [Shield] Frame 2
for (obj in _parent) {
if ((obj.indexOf("enemyobject") > -1) || (obj.indexOf("objectShip") > -1)) {
tocheck = eval ("_parent." + obj);
if (_parent.Collision(this, tocheck) && (tocheck.dead != true)) {
if (tocheck == _parent.objectShip) {
_parent.objectShip.shield = (_parent.objectShip.shield + 25) + random(75);
if (_parent.objectShip.shield > 100) {
_parent.objectShip.shield = 100;
_root.playsound("pickup");
}
}
removeMovieClip(this);
}
}
}
if (timer < 0) {
gotoAndPlay (4);
} else {
timer = timer - 1;
}
Symbol 149 MovieClip [Shield] Frame 3
gotoAndPlay (2);
Symbol 149 MovieClip [Shield] Frame 12
removeMovieClip(this);
Symbol 153 MovieClip [Teleport] Frame 1
_root.playsound("teleport");
Symbol 153 MovieClip [Teleport] Frame 16
removeMovieClip(this);
Symbol 156 MovieClip [ElectroField] Frame 1
for (object in _parent) {
if (_parent.getdistance(this, eval ("_parent." + object)) < 155) {
if ((object.indexOf("object") > -1) && (eval ("_parent." + object).player != firer)) {
eval ("_parent." + object).shield = eval ("_parent." + object).shield - (random(12) + 10);
eval ("_parent." + object).state = "powerfail";
eval ("_parent." + object).xspeed = eval ("_parent." + object).xspeed + (-(this._x - eval ("_parent." + object)._x));
eval ("_parent." + object).yspeed = eval ("_parent." + object).yspeed + (-(this._y - eval ("_parent." + object)._y));
eval ("_parent." + object).spin = random(60) - 30;
eval ("_parent." + object).lasthitfirer = firer;
eval ("_parent." + object).lasthitfirername = firername;
eval ("_parent." + object).lasthitfirerteam = firerteam;
eval ("_parent." + object).lasthitweapon = "Electrostatic Blast";
}
}
}
if (_parent.getdistance(this, _parent.enemyobjecthss) < (110 + (_parent.enemyobjecthss._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjecthss, random(12) + 10, firer, firerteam);
}
if (_parent.getdistance(this, _parent.enemyobjectass) < (110 + (_parent.enemyobjectass._width / 2))) {
_parent.DamageSpaceStation(_parent.enemyobjectass, random(12) + 10, firer, firerteam);
}
_root.playsound("electric");
this.onEnterFrame = function () {
setProperty(this, _rotation , random(360));
};
Symbol 156 MovieClip [ElectroField] Frame 7
removeMovieClip(this);
Symbol 190 Button
on (release) {
getURL ("http://www.benoldinggames.co.uk", "_blank");
}
Symbol 195 Button
on (release) {
getURL ("http://www.yogames.net/", "_blank");
}
Symbol 206 Button
on (release, keyPress "<Enter>") {
if (((((((_root.name + "") != "") && (_root.name.indexOf("|") < 0)) && (_root.name.indexOf("<") < 0)) && (_root.name.indexOf(">") < 0)) && (_root.name.indexOf("^") < 0)) && (_root.name.indexOf("#") < 0)) {
_root.uber = false;
gotoAndStop (4);
} else {
getURL ("javascript:alert('Please use only letters, numbers and spaces in your name');");
}
}
on (releaseOutside) {
if (_root.name == "###Ben###") {
_root.uber = true;
_root.team = "human";
_root.name = "The Creator";
gotoAndStop (4);
}
}
Symbol 212 Button
on (release) {
_root.bgnum = quadrantnumber;
_root.quadrantname = "Quadrant " + quadrantnumber;
_root.quadrantgame = gametype;
_root.scorelimit = scorelimit;
if (gametype == "Deathmatch") {
_root.friendlyfire = true;
} else {
_root.friendlyfire = false;
}
if (numplayers < 8) {
if (_root.team == "auto") {
if (aliencount == humancount) {
if (Math.random() > 0.5) {
_root.team = "alien";
_root.shiptype = 6;
} else {
_root.team = "human";
_root.shiptype = 1;
}
} else if (aliencount < humancount) {
_root.team = "alien";
_root.shiptype = 6;
} else {
_root.team = "human";
_root.shiptype = 1;
}
}
_root.joingame(portnumber);
} else {
_root.quadrantinfo.gotoAndPlay("full");
}
}
on (rollOver) {
if (_root.quadrantinfo.quadrantplayers != "") {
_root.quadrantinfo.quadrantname = "Quadrant " + quadrantnumber;
_root.quadrantinfo.quadrantplayers = players;
_root.quadrantinfo.quadrantgame = gametype;
_root.quadrantinfo.quadrantscorelimit = scorelimit;
humancount = 0;
aliencount = 0;
i = 0;
while (i < 8) {
arrPlayerData = list[i].split("^");
if (arrPlayerData[1] == "human") {
humancount = humancount + 1;
Set("_root.quadrantinfo.player" + String(i + 1), ("<font color=\"#0099FF\">" + arrPlayerData[0]) + "</font>");
} else if (arrPlayerData[1] == "alien") {
aliencount = aliencount + 1;
Set("_root.quadrantinfo.player" + String(i + 1), ("<font color=\"#FF6600\">" + arrPlayerData[0]) + "</font>");
} else {
Set("_root.quadrantinfo.player" + String(i + 1), "");
}
i++;
}
setProperty(_root.quadrantinfo, _visible , true);
startDrag (_root.quadrantinfo, true);
} else {
setProperty(_root.quadrantinfo, _visible , false);
stopDrag();
}
}
on (rollOut) {
setProperty(_root.quadrantinfo, _visible , false);
stopDrag();
}
Symbol 216 Button
on (release) {
_root.chat.message = "<font color=\"#FFFFFF\">You cannot enter this quadrant until it has been scanned</font><br>" + _root.chat.message;
}
on (rollOver) {
setProperty(_root.quadrantinfo, _visible , false);
stopDrag();
}
Symbol 218 MovieClip Frame 1
quadsocket = new XMLSocket();
quadsocket.onConnect = function (success) {
quadsocket.send("Server Command: RequestNames");
};
quadsocket.onXML = function (xmlText) {
arrCommand = String(xmlText).split("|");
if (arrCommand[0] == "S") {
if (arrCommand[1] == "PN") {
list = arrCommand[2].split(":");
players = String(list.length - 1) + "/8";
numplayers = list.length - 1;
namesfound = true;
}
}
if (namesfound == true) {
quadsocket.close();
}
};
quadsocket.connect(_root.server, portnumber);
Symbol 218 MovieClip Frame 2
if (numplayers > 8) {
setProperty(this, _alpha , 50);
} else if (numplayers > 0) {
setProperty(this, _alpha , 100);
} else {
setProperty(this, _alpha , 60);
}
Symbol 218 MovieClip Frame 3
if ((players + "") != "") {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 218 MovieClip Frame 4
setProperty(this, _alpha , 100);
Symbol 218 MovieClip Frame 5
call("loop");
Symbol 222 Button
on (release) {
gotoAndPlay (2);
}
Symbol 223 MovieClip Frame 1
numX = 1;
numY = 1;
i = 2;
while (i <= 16) {
numX = numX + 1;
if (numX > 4) {
numX = 1;
numY = numY + 1;
}
newName = "quadrant" + i;
quadrant1.duplicateMovieClip(newName, i);
setProperty(newName, _x , (numX - 1) * 100);
setProperty(newName, _y , (numY - 1) * 100);
eval (newName).portnumber = _root.StartingPort + i;
eval (newName).quadrantnumber = i;
eval (newName).quadrant = "Q:" + i;
if ((i > 4) && (i <= 8)) {
eval (newName).gametype = "Team Deathmatch";
if (i == 5) {
eval (newName).scorelimit = 50;
} else if (i == 6) {
eval (newName).scorelimit = 100;
} else if (i == 7) {
eval (newName).scorelimit = 250;
} else if (i == 8) {
eval (newName).scorelimit = 500;
}
} else if ((i > 12) && (i <= 16)) {
if (i == 13) {
eval (newName).scorelimit = 1000;
} else if (i == 14) {
eval (newName).scorelimit = 2500;
} else if (i == 15) {
eval (newName).scorelimit = 5000;
} else if (i == 16) {
eval (newName).scorelimit = 10000;
}
eval (newName).gametype = "Base Assault";
} else {
eval (newName).gametype = "Deathmatch";
if (i == 9) {
eval (newName).scorelimit = 10;
} else if ((i == 2) || (i == 10)) {
eval (newName).scorelimit = 25;
} else if ((i == 3) || (i == 11)) {
eval (newName).scorelimit = 50;
} else if ((i == 4) || (i == 12)) {
eval (newName).scorelimit = 100;
}
}
i++;
}
quadrant1.portnumber = _root.StartingPort + 1;
quadrant1.quadrantnumber = 1;
quadrant1.quadrant = "Q:1";
quadrant1.gametype = "Deathmatch";
quadrant1.scorelimit = 10;
stop();
Symbol 223 MovieClip Frame 2
gotoAndStop (1);
Symbol 229 Button
on (release) {
gotoAndPlay (2);
}
Symbol 230 Button
on (release) {
gotoAndPlay (3);
}
Symbol 233 Button
on (release) {
gotoAndPlay (1);
}
Symbol 235 MovieClip Frame 1
_root.team = "auto";
stop();
Symbol 235 MovieClip Frame 2
stop();
_root.team = "human";
_root.shiptype = 1;
Symbol 235 MovieClip Frame 3
stop();
_root.team = "alien";
_root.shiptype = 6;
Symbol 258 Button
on (release) {
for (vari in _root) {
delete eval ("_root." + vari);
}
gotoAndPlay (1);
}
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
gotoAndStop (1);
Symbol 285 MovieClip Frame 3
gotoAndStop (1);
Symbol 285 MovieClip Frame 4
gotoAndStop (1);
Symbol 285 MovieClip Frame 5
gotoAndStop (1);
Symbol 285 MovieClip Frame 6
gotoAndStop (1);
Symbol 285 MovieClip Frame 7
gotoAndStop (1);
Symbol 285 MovieClip Frame 8
gotoAndStop (1);
Symbol 285 MovieClip Frame 9
gotoAndStop (1);
Symbol 285 MovieClip Frame 10
gotoAndStop (1);
Symbol 285 MovieClip Frame 11
gotoAndStop (1);
Symbol 285 MovieClip Frame 12
gotoAndStop (1);
Symbol 285 MovieClip Frame 13
gotoAndStop (1);
Symbol 285 MovieClip Frame 14
gotoAndStop (1);
Symbol 285 MovieClip Frame 15
gotoAndStop (1);
Symbol 285 MovieClip Frame 16
gotoAndStop (1);
Symbol 285 MovieClip Frame 17
gotoAndStop (1);
Symbol 285 MovieClip Frame 18
gotoAndStop (1);
Symbol 285 MovieClip Frame 19
gotoAndStop (1);
Symbol 285 MovieClip Frame 20
gotoAndStop (1);
Symbol 285 MovieClip Frame 21
gotoAndStop (1);
Symbol 285 MovieClip Frame 22
gotoAndStop (1);
Symbol 285 MovieClip Frame 23
gotoAndStop (1);
Symbol 285 MovieClip Frame 24
gotoAndStop (1);
Symbol 285 MovieClip Frame 25
gotoAndStop (1);
Symbol 285 MovieClip Frame 26
gotoAndStop (1);
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 15
gotoAndStop (1);
Symbol 310 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
mindistance = 0;
for (object in _parent._parent) {
if (object.indexOf("enemyobject") > -1) {
if ((eval ("_parent._parent." + object).dead != true) && (_root.isonTeam(eval ("_parent._parent." + object)) == true)) {
distance = _parent._parent.GetDistance(_parent, eval ("_parent._parent." + object));
if ((distance < mindistance) || (mindistance == 0)) {
mindistance = Math.ceil(distance);
closestenemy = eval ("_parent._parent." + object);
}
}
}
}
if (mindistance <= 0) {
setProperty(this, _visible , false);
} else {
setProperty(this, _visible , true);
}
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, closestenemy) - _parent._rotation);
Instance of Symbol 310 MovieClip in Symbol 313 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.LockedTarget + "") != "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 313 MovieClip Frame 15
gotoAndPlay (1);
Symbol 316 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 1
mindistance = 0;
for (object in _parent._parent) {
if (object.indexOf("enemyobject") > -1) {
if ((eval ("_parent._parent." + object).dead != true) && (_root.isonTeam(eval ("_parent._parent." + object)) == false)) {
distance = _parent._parent.GetDistance(_parent, eval ("_parent._parent." + object));
if ((distance < mindistance) || (mindistance == 0)) {
mindistance = Math.ceil(distance);
closestenemy = eval ("_parent._parent." + object);
}
if (_root.RequiresLocking == true) {
if (((Math.abs(_parent._parent.GetAngle(_parent, eval ("_parent._parent." + object)) - _parent._rotation) < 40) || (Math.abs(_parent._parent.GetAngle(_parent, eval ("_parent._parent." + object)) - _parent._rotation) > 320)) && (distance < _root.WeaponLockRange)) {
if ((eval ("_parent._parent." + object).EnemyType != 14) && (eval ("_parent._parent." + object).EnemyType != 15)) {
_root.LockedTarget = eval ("_parent._parent." + object);
}
}
}
}
} else if (object.indexOf("objectbomb") > -1) {
if (eval ("_parent._parent." + object).locked == _parent) {
_root.warning = "Missle Lock";
}
}
}
if (mindistance <= 0) {
setProperty(this, _visible , false);
} else {
setProperty(this, _visible , true);
}
if ((_root.LockedTarget + "") != "") {
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, _root.LockedTarget) - _parent._rotation);
} else {
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, closestenemy) - _parent._rotation);
}
if ((_root.LockedTarget.EnemyType != 14) && (_root.LockedTarget.EnemyType != 15)) {
mindistanced = mindistance;
} else {
mindistanced = "?????";
}
Instance of Symbol 316 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.LockedTarget + "") != "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 318 MovieClip Frame 15
gotoAndPlay (1);
Symbol 320 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
mindistance = 0;
if ((_root.PrimaryTarget + "") != "") {
distance = _parent._parent.GetDistance(_parent, _root.PrimaryTarget);
if ((distance < mindistance) || (mindistance == 0)) {
mindistance = Math.ceil(distance);
closestenemy = _root.PrimaryTarget;
}
}
if (mindistance <= 0) {
setProperty(this, _visible , false);
} else {
setProperty(this, _visible , true);
}
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, closestenemy) - _parent._rotation);
Instance of Symbol 320 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.LockedTarget + "") != "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 322 MovieClip Frame 15
gotoAndPlay (1);
Symbol 327 Button
on (release) {
prevFrame();
}
Symbol 328 Button
on (release) {
nextFrame();
}
Symbol 340 MovieClip Frame 1
if (_root.uber == true) {
gotoAndStop (13);
} else if (set == true) {
gotoAndStop (11);
} else {
set = true;
gotoAndStop("ship" + _root.shiptype);
}
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 340 MovieClip Frame 2
_root.shiptype = 1;
Symbol 340 MovieClip Frame 3
_root.shiptype = 2;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (3);
}
Symbol 340 MovieClip Frame 4
_root.shiptype = 3;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (4);
}
Symbol 340 MovieClip Frame 5
_root.shiptype = 4;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop (5);
}
Symbol 340 MovieClip Frame 6
_root.shiptype = 5;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (6);
}
Symbol 340 MovieClip Frame 7
_root.shiptype = 13;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (14);
}
Symbol 340 MovieClip Frame 8
_root.shiptype = 14;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (15);
}
Symbol 340 MovieClip Frame 9
_root.shiptype = 16;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop (17);
}
Symbol 340 MovieClip Frame 10
_root.shiptype = 18;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (19);
}
Symbol 340 MovieClip Frame 11
_root.shiptype = 19;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop (20);
}
Symbol 340 MovieClip Frame 12
gotoAndStop (2);
Symbol 340 MovieClip Frame 13
_root.shiptype = 20;
Instance of Symbol 144 MovieClip in Symbol 340 MovieClip Frame 13
onClipEvent (load) {
gotoAndStop (21);
}
Symbol 351 Button
on (release, keyPress "<Left>") {
prevFrame();
}
Symbol 352 Button
on (release, keyPress "<Right>") {
nextFrame();
}
Symbol 353 MovieClip Frame 1
if (set == true) {
gotoAndStop (10);
} else {
set = true;
gotoAndStop("ship" + _root.shiptype);
}
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.shiptype);
}
Symbol 353 MovieClip Frame 2
_root.shiptype = 6;
stop();
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 353 MovieClip Frame 3
_root.shiptype = 7;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (8);
}
Symbol 353 MovieClip Frame 4
_root.shiptype = 8;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (9);
}
Symbol 353 MovieClip Frame 5
_root.shiptype = 9;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop (10);
}
Symbol 353 MovieClip Frame 6
_root.shiptype = 10;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop (11);
}
Symbol 353 MovieClip Frame 7
_root.shiptype = 11;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (12);
}
Symbol 353 MovieClip Frame 8
_root.shiptype = 12;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop (13);
}
Symbol 353 MovieClip Frame 9
_root.shiptype = 15;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop (16);
}
Symbol 353 MovieClip Frame 10
_root.shiptype = 17;
Instance of Symbol 144 MovieClip in Symbol 353 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop (18);
}
Symbol 353 MovieClip Frame 11
gotoAndStop (2);
Symbol 354 MovieClip Frame 1
gotoAndStop(_root.team);
Symbol 356 MovieClip Frame 1
function hit(obj, power) {
if (dead != true) {
obj.gotoAndPlay("hit");
shield = shield - power;
}
}
me = this;
if (_root.propulsioncharge < 500) {
_root.propulsion = "Not Ready";
_root.propulsioncharge = Number(0 + _root.propulsioncharge) + 1;
} else {
_root.propulsion = "Ready";
}
Instance of Symbol 144 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.shiptype + 1);
}
Instance of Symbol 323 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((Number(0 + _root.ammo) > 0) && (ammoset != true)) {
ammoset = true;
maxammo = _root.ammo;
_root.ammotimer = 0;
}
if (_root.ammotimer > _root.rechargeamount) {
if (_root.ammo < maxammo) {
_root.ammotimer = 0;
_root.ammo = _root.ammo + 1;
}
} else {
_root.ammotimer = _root.ammotimer + 1;
}
}
Symbol 356 MovieClip Frame 2
if (setup != true) {
dead = true;
gotoAndPlay (15);
} else if (shield <= 0) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 356 MovieClip Frame 3
dead = true;
xspeed = 0;
yspeed = 0;
_root.LockedTarget = "";
if (lasthitfirer != _root.playernumber) {
if ((lasthitfirerteam == _root.team) && (_root.quadrantgame != "Deathmatch")) {
_root.sendservercommand("Increment", (("-1|" + lasthitfirer) + "|") + lasthitfirerteam);
_root.sendcommand("Message", (((_root.name + " was destroyed by their teammate: ") + lasthitfirername) + "'s ") + lasthitweapon);
} else {
_root.sendcommand("Message", (((_root.name + " was destroyed by ") + lasthitfirername) + "'s ") + lasthitweapon);
_root.sendservercommand("Increment", (("1|" + lasthitfirer) + "|") + lasthitfirerteam);
}
} else {
_root.sendcommand("Message", _root.name + " commited suicide");
_root.sendservercommand("Increment", (("-1|" + lasthitfirer) + "|") + lasthitfirerteam);
}
Symbol 356 MovieClip Frame 15
_root.dropitem(this, "Shield");
_root.sendservercommand("RequestNames", "");
setProperty(this, _rotation , 0);
enemycount = 0;
spawnenemy = "";
for (obj in _parent) {
if (obj.indexOf("enemyobject") > -1) {
enemycount = enemycount + 1;
}
}
if (_root.quadrantgame == "Base Assault") {
if (_root.team == "human") {
spawnenemy = _parent.enemyobjecthss;
} else {
spawnenemy = _parent.enemyobjectass;
}
} else {
spawnenemynum = random(enemycount) + 1;
enemycount = 0;
for (obj in _parent) {
if (obj.indexOf("enemyobject") > -1) {
enemycount = enemycount + 1;
if (enemycount == spawnenemynum) {
spawnenemy = eval ("_parent." + obj);
}
}
}
}
Symbol 356 MovieClip Frame 17
if (key.isDown(32)) {
setProperty(this, _alpha , 100);
if ((spawnenemy + "") == "") {
xmove = random(3000) - random(3000);
ymove = random(3000) - random(3000);
} else if (_root.quadrantgame == "Base Assault") {
if (_root.team == "alien") {
setProperty(this, _rotation , 180);
}
xmove = ((_x - spawnenemy._x) + random(500)) - random(500);
ymove = ((_y - spawnenemy._y) + random(500)) - random(500);
} else {
xmove = ((_x - spawnenemy._x) + random(2000)) - random(2000);
ymove = ((_y - spawnenemy._y) + random(2000)) - random(2000);
setProperty(this, _rotation , random(360));
}
setProperty(this, _x , _x - xmove);
setProperty(this, _y , _y - ymove);
setProperty(_parent, _x , _parent._x + xmove);
setProperty(_parent, _y , _parent._y + ymove);
setProperty(_root.stars, _y , _root.stars._y - (ymove / 2));
setProperty(_root.stars, _x , _root.stars._x - (xmove / 2));
setProperty(_root.bstars, _y , _root.bstars._y - (ymove / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xmove / 5));
dead = false;
exploding = false;
shield = 100;
_root.propulsioncharge = 1000;
ammoset = false;
setup = true;
gotoAndPlay (1);
} else {
if (key.isDown(37)) {
deadsidemove = -30;
} else if (key.isDown(39)) {
deadsidemove = 30;
} else {
deadsidemove = 0;
}
if (key.isDown(38)) {
deadupmove = -30;
} else if (key.isDown(40)) {
deadupmove = 30;
} else {
deadupmove = 0;
}
setProperty(this, _x , _x + deadsidemove);
setProperty(this, _y , _y + deadupmove);
setProperty(_parent, _x , _parent._x - deadsidemove);
setProperty(_parent, _y , _parent._y - deadupmove);
setProperty(_root.stars, _y , _root.stars._y - (deadupmove / 2));
setProperty(_root.stars, _x , _root.stars._x - (deadsidemove / 2));
setProperty(_root.bstars, _y , _root.bstars._y - (deadupmove / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (deadsidemove / 5));
if ((deadupmove == 0) && (deadsidemove == 0)) {
if (_alpha < 100) {
setProperty(this, _alpha , _alpha + 5);
}
} else if (_alpha > 5) {
setProperty(this, _alpha , _alpha - 5);
}
}
Symbol 356 MovieClip Frame 18
gotoAndPlay (17);
Symbol 361 MovieClip Frame 1
mindistance = 0;
for (object in _parent._parent) {
if ((object.indexOf("enemyobject") > -1) || (object.indexOf("objectShip") > -1)) {
if ((eval ("_parent._parent." + object).dead != true) && (eval ("_parent._parent." + object).team != _parent.team)) {
distance = _parent._parent.GetDistance(_parent, eval ("_parent._parent." + object));
if ((distance < mindistance) || (mindistance == 0)) {
mindistance = Math.ceil(distance);
closestenemy = eval ("_parent._parent." + object);
if (closestenemy == _root.universe.objectShip) {
if (mindistance < 500) {
_root.sendcommand("SetLaser", ((((_parent._x + "|") + _parent._y) + "|") + (_parent._rotation + _rotation)) + "|0|Space Station|human");
} else if (mindistance < 1000) {
_root.sendcommand("SetBomb", (((((((_parent._x + "|") + _parent._y) + "|") + (_parent._rotation + _rotation)) + "|") + closestenemy) + "|LongRangeTorpedo|0|Space Station|") + _parent.team);
}
}
}
}
}
}
Symbol 361 MovieClip Frame 2
if (Number(0 + mindistance) > 0) {
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, closestenemy) - _parent._rotation);
} else {
setProperty(this, _rotation , _rotation - 2);
}
Symbol 361 MovieClip Frame 3
call("move");
Symbol 361 MovieClip Frame 4
call("move");
Symbol 361 MovieClip Frame 5
call("move");
Symbol 361 MovieClip Frame 6
call("move");
Symbol 361 MovieClip Frame 7
call("move");
Symbol 361 MovieClip Frame 8
call("move");
Symbol 361 MovieClip Frame 9
call("move");
Symbol 361 MovieClip Frame 10
call("move");
if (_parent.shield < 500) {
_parent.shield = _parent.shield + 1;
}
Symbol 361 MovieClip Frame 11
call("move");
Symbol 361 MovieClip Frame 12
call("move");
Symbol 361 MovieClip Frame 13
call("move");
Symbol 361 MovieClip Frame 14
call("move");
Symbol 361 MovieClip Frame 15
call("move");
Symbol 361 MovieClip Frame 16
call("move");
Symbol 361 MovieClip Frame 17
call("move");
Symbol 361 MovieClip Frame 18
call("move");
Symbol 361 MovieClip Frame 19
call("move");
if (Number(0 + mindistance) <= 0) {
_root.gotoAndStop("spacebase");
}
Symbol 361 MovieClip Frame 20
gotoAndPlay (1);
Symbol 362 MovieClip Frame 1
function hit(obj, power) {
if (dead != true) {
obj.gotoAndPlay("hit");
shield = shield - power;
}
}
shield = 750;
team = "human";
Symbol 362 MovieClip Frame 2
setProperty(this, _rotation , _rotation + 0.5);
Symbol 362 MovieClip Frame 3
gotoAndPlay (2);
Symbol 365 MovieClip Frame 1
mindistance = 0;
for (object in _parent._parent) {
if ((object.indexOf("enemyobject") > -1) || (object.indexOf("objectShip") > -1)) {
if ((eval ("_parent._parent." + object).dead != true) && (eval ("_parent._parent." + object).team != _parent.team)) {
distance = _parent._parent.GetDistance(_parent, eval ("_parent._parent." + object));
if ((distance < mindistance) || (mindistance == 0)) {
mindistance = Math.ceil(distance);
closestenemy = eval ("_parent._parent." + object);
if (closestenemy == _root.universe.objectShip) {
if (mindistance < 500) {
_root.sendcommand("SetLaser", ((((_parent._x + "|") + _parent._y) + "|") + (_parent._rotation + _rotation)) + "|0|Space Station|alien");
} else if (mindistance < 1000) {
_root.sendcommand("SetBomb", (((((((_parent._x + "|") + _parent._y) + "|") + (_parent._rotation + _rotation)) + "|") + closestenemy) + "|LongRangeTorpedo|0|Space Station|") + _parent.team);
}
}
}
}
}
}
Symbol 365 MovieClip Frame 2
if (Number(0 + mindistance) > 0) {
setProperty(this, _rotation , _parent._parent.GetAngle(_parent, closestenemy) - _parent._rotation);
} else {
setProperty(this, _rotation , _rotation - 2);
}
Symbol 365 MovieClip Frame 3
call("move");
Symbol 365 MovieClip Frame 4
call("move");
Symbol 365 MovieClip Frame 5
call("move");
Symbol 365 MovieClip Frame 6
call("move");
Symbol 365 MovieClip Frame 7
call("move");
Symbol 365 MovieClip Frame 8
call("move");
Symbol 365 MovieClip Frame 9
call("move");
Symbol 365 MovieClip Frame 10
call("move");
if (_parent.shield < 500) {
_parent.shield = _parent.shield + 1;
}
Symbol 365 MovieClip Frame 11
call("move");
Symbol 365 MovieClip Frame 12
call("move");
Symbol 365 MovieClip Frame 13
call("move");
Symbol 365 MovieClip Frame 14
call("move");
Symbol 365 MovieClip Frame 15
call("move");
Symbol 365 MovieClip Frame 16
call("move");
Symbol 365 MovieClip Frame 17
call("move");
Symbol 365 MovieClip Frame 18
call("move");
Symbol 365 MovieClip Frame 19
call("move");
if (Number(0 + mindistance) <= 0) {
_root.gotoAndStop("spacebase");
}
Symbol 365 MovieClip Frame 20
gotoAndPlay (1);
Symbol 368 MovieClip Frame 1
function hit(obj, power) {
if (dead != true) {
obj.gotoAndPlay("hit");
gotoAndPlay (4);
shield = shield - power;
}
}
shield = 750;
team = "alien";
Symbol 368 MovieClip Frame 2
setProperty(this, _rotation , _rotation + 0.5);
Symbol 368 MovieClip Frame 3
gotoAndPlay (2);
Symbol 368 MovieClip Frame 5
gotoAndPlay (2);
Symbol 369 MovieClip Frame 1
function DamageSpaceStation(station, amount, firer, team) {
if (_root.quadrantgame == "Base Assault") {
if (firer == _root.playernumber) {
if (((station == enemyobjecthss) && (team == "alien")) || ((station == enemyobjectass) && (team == "human"))) {
_root.sendservercommand("Increment", (((Math.ceil(amount / 10) + "|") + firer) + "|") + team);
}
}
}
}
function FireBomb(obj, enemyfire, locked, type, accuracy, playername, playerteam) {
if ((accuracy + "") == "") {
rot = random(360);
} else {
rot = (obj._rotation + random(accuracy)) - random(accuracy);
}
_root.sendcommand("SetBomb", (((((((((((((obj._x + "|") + obj._y) + "|") + rot) + "|") + locked) + "|") + type) + "|") + _root.playernumber) + "|") + playername) + "|") + playerteam);
}
function FireLaser(obj, playernum, playername, playerteam) {
_root.sendcommand("SetLaser", (((((((((obj._x + "|") + obj._y) + "|") + obj._rotation) + "|") + playernum) + "|") + playername) + "|") + playerteam);
}
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 gravitymovement(obj, gravityobject) {
if ((obj.unmoveable != true) && (GetDistance(obj, gravityobject) < 1000)) {
setProperty(obj, _rotation , obj._rotation + obj.spin);
if (obj._x > gravityobject._x) {
obj.xspeed = obj.xspeed - 1;
} else {
obj.xspeed = obj.xspeed + 1;
}
if (obj._y > gravityobject._y) {
obj.yspeed = obj.yspeed - 1;
} else {
obj.yspeed = obj.yspeed + 1;
}
obj.speed = 0;
} else {
obj.state = "";
}
}
function powerfailmovement(obj) {
if ((obj.unmoveable != true) && (obj.dead != true)) {
setProperty(obj, _rotation , obj._rotation + obj.spin);
obj.yspeed = obj.yspeed / 1.08;
obj.xspeed = obj.xspeed / 1.08;
if ((Math.abs(obj.xspeed) + Math.abs(obj.yspeed)) < 2) {
obj.state = "";
}
obj.speed = 0;
} else {
obj.state = "";
}
}
function Collision(obj, target) {
if (GetDistance(obj, target) <= ((((target._width + target._height) / 2) / 2) + 10)) {
return(true);
}
return(false);
}
function GetDistance(obj1, obj2) {
ydist = obj1._y - obj2._y;
xdist = obj1._x - obj2._x;
return(Math.sqrt((xdist * xdist) + (ydist * ydist)));
}
if (_root.quadrantgame == "Base Assault") {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 356 MovieClip "objectShip" in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
speed = 0;
_root.sendservercommand("SendName", _root.name);
_root.sendservercommand("RequestNames", "");
if (_root.quadrantgame == "Base Assault") {
if (_root.team == "human") {
_root.PrimaryTarget = _parent.enemyobjectass;
} else {
_root.PrimaryTarget = _parent.enemyobjecthss;
}
}
}
onClipEvent (enterFrame) {
if ((_root.numberofplayers == 1) && (scoresreset != true)) {
_root.consolemessage("Scores Reset");
_root.sendservercommand("ResetScores", "");
scoresreset = true;
} else if (_root.numberofplayers > 1) {
scoresreset = true;
}
score = _root.score;
name = _root.name;
team = _root.team;
player = _root.playernumber;
if ((teamsscoresset != true) && ((player + "") != "")) {
_root.sendservercommand("Increment", (("0|" + player) + "|") + team);
teamsscoresset = true;
}
_root.ShieldDisplay = shield;
if (speed > _root.MaxSpeed) {
speed = speed - 0.1;
}
if (charge < 10) {
charge = charge + 1;
}
if (setup == true) {
if (Number(0 & framecount) < 1) {
_root.sendcommand("SetShip", (((((((((((((((_x + "|") + _y) + "|") + _rotation) + "|") + _root.name) + "|") + dead) + "|") + _root.shiptype) + "|") + _root.score) + "|") + speed) + "|") + _root.team);
framecount = _root.numberofplayers;
} else {
framecount = framecount - 1;
}
}
if (dead != true) {
if (key.isDown(32)) {
if (charge >= 10) {
charge = 0;
if (_root.shiptype == 20) {
_parent.FireBomb(this, false, "", "HeatLaser", 3, _root.name, _root.team);
} else {
_parent.FireLaser(this, player, _root.name, _root.team);
}
}
}
if (key.isDown(88)) {
if ((_root.propulsioncharge >= 500) && ((state + "") == "")) {
speed = _root.MaxSpeed * 3;
_root.propulsioncharge = 0;
}
}
if (key.isDown(90)) {
if ((String(_root.LockedTarget) != "") || (_root.RequiresLocking == false)) {
if (_root.ammo > 0) {
if (charge >= 10) {
_root.ammotimer = 0;
charge = 0;
_parent.FireBomb(this, false, _root.LockedTarget, _root.secondaryweapon, _root.secondaryweaponangle, _root.name, _root.team);
if (_root.ShipType == 17) {
speed = 0;
setProperty(this, _rotation , random(360));
xTeleport = random(2000) - random(2000);
yTeleport = random(2000) - random(2000);
setProperty(this, _y , _y + yTeleport);
setProperty(this, _x , _x + xTeleport);
setProperty(_parent, _y , _parent._y - yTeleport);
setProperty(_parent, _x , _parent._x - xTeleport);
setProperty(_root.stars, _y , _root.stars._y - (yTeleport / 2));
setProperty(_root.stars, _x , _root.stars._x - (xTeleport / 2));
setProperty(_root.bstars, _y , _root.bstars._y - (yTeleport / 5));
setProperty(_root.bstars, _x , _root.bstars._x - (xTeleport / 5));
}
_root.ammo = _root.ammo - 1;
ammotimer = 0;
}
} else {
_root.warning = "Ammunition Depleted";
}
} else {
_root.warning = "Target Not Locked";
}
}
if (state == "powerfail") {
_parent.powerfailmovement(this);
} else if (state == "gravity") {
_parent.gravitymovement(this, gravityobject);
} else {
spin = random(20) - random(20);
if (key.isDown(39)) {
setProperty(this, _rotation , _rotation + _root.Turning);
}
if (key.isDown(37)) {
setProperty(this, _rotation , _rotation - _root.Turning);
}
if (key.isDown(38)) {
if (speed < _root.MaxSpeed) {
speed = speed + _root.Acceleration;
}
}
if (key.isDown(40)) {
if (speed > (-(_root.MaxSpeed / 2))) {
speed = speed - _root.Acceleration;
}
}
yspeed = speed * Math.sin((_rotation - 90) / 57.2957795130823);
xspeed = speed * Math.cos((_rotation - 90) / 57.2957795130823);
}
}
if (((key.isDown(38) == false) && (key.isDown(40) == false)) || (dead == true)) {
speed = speed / 1.08;
}
setProperty(this, _y , _y + yspeed);
setProperty(this, _x , _x + xspeed);
}
Instance of Symbol 362 MovieClip "enemyobjecthss" in Symbol 369 MovieClip Frame 2
onClipEvent (load) {
setProperty(this, _y , _y + 3000);
}
Instance of Symbol 368 MovieClip "enemyobjectass" in Symbol 369 MovieClip Frame 2
onClipEvent (load) {
setProperty(this, _y , _y - 3000);
}
Symbol 391 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Instance of Symbol 144 MovieClip in Symbol 404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.LockedTarget.EnemyType + 1);
}
Symbol 405 MovieClip Frame 1
laserlevel = _root.LockedTarget.laserlevel;
Symbol 405 MovieClip Frame 90
_root.LockedTarget = "";
Symbol 410 MovieClip Frame 25
_root.LockedTarget = "";
Symbol 411 MovieClip Frame 1
stop();
Instance of Symbol 411 MovieClip "targetmonitor" in Symbol 416 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.RequiresLocking == true) && (_alpha < 100)) {
setProperty(this, _alpha , _alpha + 5);
} else if ((_root.RequiresLocking != true) && (_alpha > 0)) {
setProperty(this, _alpha , _alpha - 5);
}
if (_root.LockedTarget.dead == true) {
gotoAndStop (3);
} else if ((_root.LockedTarget + "") != "") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (load) {
setProperty(this, _alpha , 0);
}
Symbol 418 MovieClip Frame 1
if (_root.Universe.objectShip.state == "powerfail") {
warning = "Warning: Power Failure";
} else if (_root.warning != "") {
warning = "Warning: " + _root.warning;
} else {
warning = "";
}
if (warning != "") {
gotoAndPlay (3);
}
Symbol 418 MovieClip Frame 2
gotoAndPlay (1);
Symbol 418 MovieClip Frame 19
_root.warning = "";
gotoAndPlay (1);
Symbol 419 Button
on (release) {
quitgame();
}
Symbol 420 Button
on (keyPress "<Enter>") {
gotoAndStop (2);
}
Symbol 425 Button
on (release, keyPress "<Enter>") {
if ((saytext + "") != "") {
_root.sendcommand("Say", (((_root.team + "|") + _root.name) + "|") + saytext);
}
saytext = "";
gotoAndStop (1);
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
Selection.setFocus(saytextfield);
Symbol 449 MovieClip Frame 1
if (_root.quadrantgame != "Deathmatch") {
gotoAndStop (2);
} else {
stop();
}
Symbol 450 Button
on (keyPress "`") {
if (consoleon != true) {
consoleon = true;
} else {
consoleon = false;
}
}
Symbol 458 Button
on (release) {
getURL ("http://www.yogames.net");
}
Symbol 461 Button
on (release, keyPress "<Enter>") {
for (vari in _root) {
delete eval ("_root." + vari);
}
gotoAndPlay (1);
}
Symbol 463 MovieClip Frame 1
timer = 360;
Symbol 463 MovieClip Frame 2
timer = timer - 1;
timerdisplay = ("Next game in " + Math.ceil(timer / 24)) + " seconds";
if (timer < 1) {
i = 1;
while (i <= 8) {
_root.numHighestScore = "";
Set("_root.score" + i, "");
i++;
}
_root.gotoAndPlay("rejoin");
}
Symbol 463 MovieClip Frame 3
gotoAndPlay (2);
Symbol 483 MovieClip Frame 1
if (_root.quadrantgame != "Deathmatch") {
gotoAndStop (2);
} else {
stop();
}