Frame 1
stopAllSounds();
if (!statsSent) {
__com_mochibot__("6e726a33", this, 10301, true);
statsOut = new LoadVars();
statsIn = new LoadVars();
path = "http://www.briancable.com/stats.php";
statsIn.onLoad = function (success) {
if (success) {
statsText.htmlText = String(statsIn.returnVal);
} else {
statsText.text = "Failed to get stats";
}
};
statsOut.content = 7;
statsOut.sendAndLoad(path, statsIn, "POST");
statsSent = true;
}
Frame 2
menuPlaying = false;
stop();
Instance of Symbol 301 MovieClip in Frame 2
onClipEvent (load) {
r = _root;
alpha = 0;
phase = 1;
anim = 80;
}
onClipEvent (enterFrame) {
if (phase == 1) {
_alpha = (_alpha + 3);
if (_alpha > 100) {
_alpha = 100;
}
if ((--anim) < 0) {
phase = 2;
anim = 45;
}
} else {
_alpha = (_alpha - 3);
if (_alpha < 0) {
_alpha = 0;
}
if ((--anim) < 0) {
r.nextFrame();
}
}
}
Frame 3
function playSound(sound, times, obj, extra) {
var _local1 = 300;
if (obj) {
var _local2 = int(_local1 - Math.abs(cl._x - obj._x));
if (_local2 > 0) {
if (playSounds) {
sfx[sound].start(0, times);
}
}
} else if (playSounds) {
sfx[sound].start(0, times);
}
}
function stopSound(sound) {
sfx[sound].stop();
}
stop();
for (name in _root) {
_root[name].removeMovieClip();
}
Mouse.show();
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
S_W1F = 1;
S_W1R = 2;
S_W2F = 3;
S_W2R = 4;
S_W3F = 5;
S_W3R = 6;
S_W4F = 7;
S_W4R = 8;
S_W5F = 23;
S_W5R = 24;
S_DEATH = 9;
S_CTF = 10;
S_JUMP = 11;
S_JUMPLAND = 12;
S_JETPACK = 13;
S_SPAWN = 14;
S_MENU = 15;
S_HIT = 16;
S_SHOWTEXT = 17;
S_CAPTURED = 18;
S_GTHROW = 19;
S_GBOUNCE = 20;
S_GEXPLODE = 21;
S_MENUMUSIC = 22;
sfx = new Array();
a = 0;
while (a <= 24) {
sfx.push(new Sound());
sfx[a].attachSound("s" + a);
a++;
}
clocknames = ["", "Strawberry", "Orange", "Raspberry", "Pineapple", "Knottsberry", "Grapes", "Olskoo", "Biological", "Magic", "Leek", "Cableshaft", "Nef", "Munglai", "Radish", "Carrot", "Artichoke", "Pint", "Archon", "Strange", "Tropicana", "Koala", "Sprite Remix", "Smurfberry", "Sharp", "Bomb", "Anime", "Barcode", "Blueberry", "Boltgun", "Desert", "Durian", "Elements", "F.U.", "Golden", "Harmony", "Milk", "Nectarine", "Pizza", "Poison Shroom", "Reporter", "Triangle", "BG Ryder", "Blackberry", "Crow", "Dutch", "Mouserz", "Redneck", "Sinister", "Sqeezy", "Topkatyo", "Negro Sailor", "AMPM", "BBQBEEFBURGERMAN", "Bunny", "Chicken", "Corpsegrinder", "Knight", "Masquatto", "Renegade", "Rupee", "Sir", "SockPuppet", "Turd", "Shasta"];
matchtypes = ["", "Deathmatch", "Capture the Flag", "Defend the Base", "Team Deathmatch", "King of the Portal"];
totplayers = [0, 4, 6, 8, 10, 12, 14, 16, 2];
keynames = ["0", "1", "2", "3", "4", "5", "6", "7", "Backspace", "Tab", "10", "11", "Center", "Enter", "14", "15", "Shift", "Control", "Alt", "Pause", "Caps Lock", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down", "41", "42", "43", "44", "Insert", "Delete", "47", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "58", "59", "60", "61", "62", "63", "64", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "Windows", "Windows", "Menu", "94", "95", "Num 0", "Num 1", "Num 2", "Num 3", "Num 4", "Num 5", "Num 6", "Num 7", "Num 8", "Num 9", "Num *", "Num +", "108", "Num -", "Num .", "Num /", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "124", "125", "126", "127", "128", "129", "130", "131", "132", "133", "134", "135", "136", "137", "138", "139", "140", "141", "142", "143", "Num Lock", "Scroll Lock", "146", "147", "148", "149", "150", "151", "152", "153", "154", "155", "156", "157", "158", "159", "160", "161", "162", "163", "164", "165", "166", "167", "168", "169", "170", "171", "172", "173", "174", "175", "176", "177", "178", "179", "180", "181", "182", "183", "184", "185", ";", "+", ",", "-", ".", "/", "~", "193", "194", "195", "196", "197", "198", "199", "200", "201", "202", "203", "204", "205", "206", "207", "208", "209", "210", "211", "212", "213", "214", "215", "216", "217", "218", "[", "\\", "]", "'", "223", "224", "225", "226", "227", "228", "229", "230", "231", "232", "233", "234", "235", "236", "237", "238", "239", "240", "241", "242", "243", "244", "245", "246", "247", "248", "249", "250", "251", "252", "253", "254", "255"];
dbTime = [0, 8, 6, 4, 12, 10];
flagWin = [0, 5, 10, 15, 1, 3];
dmatchWin = [0, 15, 25, 50, 1, 10];
teamdmWin = [0, 25, 50, 75, 100, 15];
keyset = new Array();
var gS = new SharedObject();
gS = SharedObject.getLocal("gameSettings");
if (gS.data.clockid != undefined) {
clockid = gS.data.clockid;
matchid = gS.data.matchid;
totpid = gS.data.totpid;
playername = gS.data.playername;
contextid = gS.data.contextid;
keyset = gS.data.keyset;
godCheat = gS.data.godCheat;
healthCheat = gS.data.healthCheat;
damageCheat = gS.data.damageCheat;
recoilCheat = gS.data.recoilCheat;
showParticles = gS.data.showParticles;
playSounds = gS.data.playSounds;
friendlyFire = gS.data.friendlyFire;
disableGrenades = gS.data.disableGrenades;
reloadCheat = gS.data.reloadCheat;
jetCheat = gS.data.jetCheat;
recordStats = gS.data.recordStats;
instagib = gS.data.instagib;
} else {
keyset = [0, 87, 83, 65, 68, 32, 82, 49];
clockid = 1;
matchid = 1;
totpid = 1;
contextid = 1;
playername = "Player";
gS.data.clockid = clockid;
gS.data.matchid = matchid;
gS.data.totpid = totpid;
gS.data.playername = playername;
gS.data.contextid = contextid;
gS.data.keyset = keyset;
gS.data.totKills = 0;
gS.data.totKills1 = 0;
gS.data.totKills2 = 0;
gS.data.totKills3 = 0;
gS.data.totDeaths = 0;
gS.data.totPoints = 0;
gS.data.totCaptures = 0;
gS.data.totTime = 0;
gS.data.godCheat = false;
gS.data.healthCheat = false;
gS.data.damageCheat = false;
gS.data.recoilCheat = false;
gS.data.showParticles = true;
gS.data.playSounds = true;
gS.data.friendlyFire = false;
gS.data.disableGrenades = false;
gS.data.reloadCheat = false;
gS.data.jetCheat = false;
gS.data.recordStats = true;
gS.data.instagib = false;
godCheat = false;
healthCheat = false;
damageCheat = false;
recoilCheat = false;
showParticles = true;
playSounds = true;
friendlyFire = false;
disableGrenades = false;
reloadCheat = false;
jetCheat = false;
recordStats = true;
instagib = false;
gS.flush();
}
maxClocks = 64;
stop();
logo.dy = (-logo._y) - 100;
logo.ty = logo._y;
logo._y = -100;
backdrop._y = 200;
backdrop._alpha = 0;
menubuttons = ["", "PLAY", "OPTIONS", "INSTRUCTIONS", "STATISTICS", "CHEATS", "CREDITS", "MORE GAMES"];
framebuttons = ["", "playgame", "options", "instructions", "statistics", "cheats", "credits", "website"];
dtext = new Array();
var offset = 0;
var abc = 1;
while (abc <= 7) {
var xpos = ((Stage.width / 2) + 15);
var ypos = (((Stage.height / 2) + (30 * (abc - 2))) - 5);
var path = FS.AddMessage(menubuttons[abc], xpos, ypos, 10, ALIGN_CENTER, 2, offset);
path.AbsScaleMessage(60, 60);
dtext.push(path);
path.MakeButton(framebuttons[abc]);
offset = offset + (menubuttons[abc].length * 2);
abc++;
}
ftime = -12;
onEnterFrame = function () {
if (logo._y < logo.ty) {
logo._y = logo._y - (logo.dy / 10);
}
if (backdrop._alpha < 30) {
backdrop._alpha = backdrop._alpha + 3;
backdrop._y = backdrop._y - 10;
}
FS.Animate();
ftime++;
};
if (!menuPlaying) {
sfx[S_MENUMUSIC].start(0, 500);
}
menuPlaying = true;
Frame 4
function updateOptions() {
options = new Array();
option1.gotoAndStop(matchid);
extra = "";
switch (matchid) {
case 1 :
options = [0, 15, 25, 50, 1, 10];
extra = " kills";
break;
case 2 :
options = [0, 5, 10, 15, 20, 3];
extra = " flags";
break;
case 3 :
options = [0, 8, 6, 4, 12, 10];
extra = " minutes";
break;
case 4 :
options = [0, 25, 50, 75, 100, 15];
extra = " kills";
break;
case 5 :
options = [0, 3, 5, 10, 1, 2];
extra = " minutes";
}
contextid = 1;
txtContext.text = options[contextid] + extra;
}
for (name in _root) {
_root[name].removeMovieClip();
}
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
txtOptions = FS.AddMessage("OPTIONS", 25, 30, 0, ALIGN_LEFT);
txtOptions.AbsScaleMessage(80, 80);
btnBack = FS.AddMessage("BACK", 280, 385, 0, ALIGN_CENTER);
btnBack.AbsScaleMessage(50, 50);
btnBack.MakeButton("saveoptions");
clstore.gotoAndStop(clockid);
clname.text = clocknames[clockid] + " Clock";
txtPlayer.text = playername;
txtMatch.text = matchtypes[matchid];
txtTotP.text = totplayers[totpid];
updateOptions();
txtContext.text = options[contextid] + extra;
a = 1;
while (a < 7) {
_root["b" + a].txt.text = keynames[keyset[a]];
a++;
}
keytarget = null;
keyHandler = new Object();
keyHandler.onKeyDown = function () {
if (changing) {
var _local1 = Key.getCode();
var _local2 = keynames[_local1];
keytarget.txt.text = _local2;
keyset[keytarget.id] = _local1;
changing = false;
}
};
Key.addListener(keyHandler);
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((++r.clockid) > r.maxClocks) {
r.clockid = 1;
}
r.clstore.gotoAndStop(r.clockid);
r.clname.text = r.clocknames[r.clockid] + " Clock";
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((--r.matchid) < 1) {
r.matchid = 4;
}
r.txtMatch.text = r.matchtypes[r.matchid];
r.updateOptions();
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((++r.matchid) > 4) {
r.matchid = 4;
}
r.updateOptions();
r.txtMatch.text = r.matchtypes[r.matchid];
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 919 MovieClip "b1" in Frame 4
onClipEvent (load) {
r = _root;
id = 1;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 919 MovieClip "b3" in Frame 4
onClipEvent (load) {
r = _root;
id = 3;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 919 MovieClip "b4" in Frame 4
onClipEvent (load) {
r = _root;
id = 4;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 908 MovieClip in Frame 4
on (release) {
if ((--_root.clockid) < 1) {
_root.clockid = _root.maxClocks;
}
_root.clstore.gotoAndStop(_root.clockid);
_root.clname.text = _root.clocknames[_root.clockid] + " Clock";
_root.playSound(_root.S_MENU);
play();
}
Instance of Symbol 919 MovieClip "b5" in Frame 4
onClipEvent (load) {
r = _root;
id = 5;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 919 MovieClip "b6" in Frame 4
onClipEvent (load) {
r = _root;
id = 6;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 919 MovieClip "b2" in Frame 4
onClipEvent (load) {
r = _root;
id = 2;
}
on (release) {
if (!r.changing) {
txt.text = "???";
r.changing = true;
r.keytarget = this;
}
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((--r.contextid) < 1) {
r.contextid = 5;
}
r.txtContext.text = r.options[r.contextid] + r.extra;
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((++r.contextid) > 5) {
r.contextid = 1;
}
r.txtContext.text = r.options[r.contextid] + r.extra;
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((--r.totpid) < 1) {
r.totpid = 8;
}
r.txtTotP.text = r.totplayers[r.totpid];
r.playSound(r.S_MENU);
play();
}
Instance of Symbol 908 MovieClip in Frame 4
onClipEvent (load) {
r = _root;
}
on (release) {
if ((++r.totpid) > 8) {
r.totpid = 1;
}
r.txtTotP.text = r.totplayers[r.totpid];
r.playSound(r.S_MENU);
play();
}
Frame 5
function getDTime(tm) {
hours = Math.floor(tm / 3600000) % 60;
if (hours < 10) {
hours = "0" + hours;
}
mins = Math.floor(tm / 60000) % 60;
if (mins < 10) {
mins = "0" + mins;
}
secs = Math.floor(tm / 1000) % 60;
if (secs < 10) {
secs = "0" + secs;
}
mytimer = (((hours + ":") + mins) + ":") + secs;
return(mytimer);
}
for (name in _root) {
_root[name].removeMovieClip();
}
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
txtOptions = FS.AddMessage("STATISTICS", 25, 30, 0, ALIGN_LEFT);
txtOptions.AbsScaleMessage(80, 80);
btnBack = FS.AddMessage("BACK", 280, 385, 0, ALIGN_CENTER);
btnBack.AbsScaleMessage(50, 50);
btnBack.MakeButton("titlescreen");
var out = "";
var gS = new SharedObject();
gS = SharedObject.getLocal("gameSettings");
if (gS.data.totKills != undefined) {
var ratio = (int((gS.data.totKills / gS.data.totDeaths) * 10000) / 10000);
out = out + ((((((((((((((((getDTime(gS.data.totTime) + newline) + gS.data.totPoints) + newline) + gS.data.totKills) + newline) + gS.data.totDeaths) + newline) + ratio) + newline) + gS.data.totCaptures) + "\n\n") + gS.data.totKills1) + newline) + gS.data.totKills2) + newline) + gS.data.totKills3);
} else {
out = "No data yet";
}
statstxt.text = out;
Frame 6
for (name in _root) {
_root[name].removeMovieClip();
}
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
btnBack = FS.AddMessage("BACK", 280, 385, 0, ALIGN_CENTER);
btnBack.AbsScaleMessage(50, 50);
btnBack.MakeButton("titlescreen");
creds.txtcredits._y = 0;
onEnterFrame = function () {
creds.txtcredits._y = creds.txtcredits._y - 2;
};
Frame 7
for (name in _root) {
_root[name].removeMovieClip();
}
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
btnBack = FS.AddMessage("BACK", 280, 385, 0, ALIGN_CENTER);
btnBack.AbsScaleMessage(50, 50);
btnBack.MakeButton("titlescreen");
creds.txtinst._y = 0;
onEnterFrame = function () {
creds.txtinst._y = creds.txtinst._y - 1;
};
Frame 8
for (name in _root) {
_root[name].removeMovieClip();
}
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
btnBack = FS.AddMessage("BACK", 280, 385, 0, ALIGN_CENTER);
btnBack.AbsScaleMessage(50, 50);
btnBack.MakeButton("savecheats");
if (godCheat) {
c1.gotoAndStop(2);
}
if (healthCheat) {
c2.gotoAndStop(2);
}
if (damageCheat) {
c3.gotoAndStop(2);
}
if (recoilCheat) {
c4.gotoAndStop(2);
}
if (reloadCheat) {
c5.gotoAndStop(2);
}
if (showParticles) {
c6.gotoAndStop(2);
}
if (playSounds) {
c7.gotoAndStop(2);
}
if (friendlyFire) {
c8.gotoAndStop(2);
}
if (disableGrenades) {
c9.gotoAndStop(2);
}
if (jetCheat) {
c10.gotoAndStop(2);
}
if (recordStats) {
c11.gotoAndStop(2);
}
if (instagib) {
c12.gotoAndStop(2);
}
Instance of Symbol 945 MovieClip "c1" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c2" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c3" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c4" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c6" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c7" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c8" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c9" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c11" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c12" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c5" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Instance of Symbol 945 MovieClip "c10" in Frame 8
on (release) {
((_currentframe == 1) ? (gotoAndStop (2)) : (gotoAndStop (1)));
}
Frame 9
function rnd(x) {
return(int(Math.random() * x) + 1);
}
function rnd0(x) {
return(int(Math.random() * x));
}
function endgameHandler() {
if (!endgameinit) {
stopSound(S_JETPACK);
endgameinit = true;
switch (matchid) {
case 1 :
break;
case 2 :
if (redCaptures >= flagWin[contextid]) {
winner = 1;
winnerT = "Red Team";
} else {
winner = 2;
winnerT = "Blue Team";
}
break;
case 3 :
if (hqhealth > 0) {
winnerT = "Red Team";
winner = 1;
} else {
winnerT = "Blue Team";
winner = 2;
}
break;
case 4 :
if (redCaptures >= teamdmWin[contextid]) {
winner = 1;
winnerT = "Red Team";
} else {
winner = 2;
winnerT = "Blue Team";
}
}
weaponsel._visible = false;
winScreen._visible = true;
winScreen.anim.nextFrame();
winScreen.anim.w.winT.text = winnerT;
winScreen.anim.play();
totTime = getTimer() - startTime;
if (recordStats) {
addStats();
}
winScreen.st1.text = "Time Played: " + getDTime(totTime);
displayStats();
}
}
function addStats() {
gS = SharedObject.getLocal("gameSettings");
gS.data.totKills = gS.data.totKills + cl.stats.kills;
gS.data.totDeaths = gS.data.totDeaths + cl.stats.deaths;
gS.data.totPoints = gS.data.totPoints + cl.stats.points;
gS.data.totCaptures = gS.data.totCaptures + flagCaptures;
gS.data.totTime = gS.data.totTime + totTime;
gS.data["totKills" + matchid] = gS.data["totKills" + matchid] + cl.stats.kills;
gS.flush();
}
function updateHudScore() {
hud.redscore.text = redCaptures;
hud.bluescore.text = blueCaptures;
}
function spawn(path) {
if (!endgame) {
switch (matchid) {
case cDEATHMATCH :
case cTEAMDEATHMATCH :
path._x = rnd(scrollMax - 100) + 50;
break;
case cCAPTURETHEFLAG :
if (path.team == cRED) {
path._x = rnd(180) + 20;
} else {
path._x = rnd(180) + (scrollMax - 200);
}
break;
case cDEFENDTHEBASE :
if (path.team != cRED) {
if (rnd(100) > 50) {
path._x = rnd(180) + 20;
} else {
path._x = rnd(180) + (scrollMax - 200);
}
} else {
path._x = 850 + rnd(100);
}
}
path.gotoAndStop(1);
var _local2 = path.clocknum;
path.a.body.char.gotoAndStop(_local2);
path.a.body.gotoAndStop(_local2);
path.a.hand1.gotoAndStop(_local2);
path.a.hand2.gotoAndStop(_local2);
path.a.foot1.gotoAndStop(_local2);
path.a.foot2.gotoAndStop(_local2);
path.a.gun.gotoAndStop(obj.weapon.id);
updateAfterEvent();
path.health = path.maxHealth;
path.nadesleft = 3;
if (path.isPlayer) {
hud.nades.gotoAndStop(1);
weaponsel._visible = false;
if (instagib) {
weaponChosen = 3;
}
path.weapon = new Weapon(weaponChosen);
if (recoilCheat) {
path.weapon.inaccuracy = 0;
}
var _local3 = -(path._x - 275);
curScrollPosX = _local3;
if (scrollx > 0) {
scrollx = 0;
}
if (scrollx < scrollmax) {
scrollx = scrollmax;
}
r.allcl._x = _local3;
r.board._x = _local3;
r.ground._x = _local3;
hud.ammobar.gotoAndStop(1);
hud.ammobar.bullets.text = path.weapon.numbullets;
updateHealth(path, -0.25, null);
playSound(S_SPAWN, 0);
} else {
var _local4 = rnd(6);
if (instagib) {
_local4 = 3;
}
path.weapon = new Weapon(_local4);
}
path._y = 200;
path.deathinit = false;
path.shooting = false;
path.jumping = true;
path.dead = false;
path.jetbar = 99;
path.shootagain = 0;
path.otype = cFIGHTER;
path.vy = 0;
path.vx = 0;
path.offset = 55;
path.jetmod = 0;
path.grenadeagain = 5;
path.dout = 30;
path.invincible = 36;
path.angoff = 0;
path.bulletsleft = path.weapon.numbullets;
}
}
function setupGame() {
var _local3 = new Array();
a = 1;
while (a < maxClocks) {
if (a != clockid) {
_local3.push(a);
}
a++;
}
var _local2 = 0;
var _local5 = "";
var _local1 = cNONE;
var _local7 = false;
a = 0;
while (a < (maxEnemies + 1)) {
if (a == 0) {
_local2 = clockid;
_local5 = playername;
cl = allcl.attachMovie("clock", "cl", 1100);
_local7 = true;
path = cl;
path.isPlayer = true;
} else {
var _local4 = rnd0(_local3.length);
_local2 = _local3[_local4];
_local3.splice(_local4, 1);
_local5 = clocknames[_local2] + " Clock";
path = allcl.attachMovie("clock", "cl" + a, 1000 + a);
enemies.push(path);
path.isPlayer = false;
}
var _local6 = null;
noTeam.push(path);
switch (matchid) {
case cDEATHMATCH :
break;
case cCAPTURETHEFLAG :
case cDEFENDTHEBASE :
case cTEAMDEATHMATCH :
if (a < (maxEnemies / 2)) {
redTeam.push(path);
_local1 = cRED;
myFlag = redflag;
badFlag = blueflag;
} else {
blueTeam.push(path);
_local1 = cBLUE;
myFlag = blueflag;
badFlag = redflag;
}
}
path.badFlag = badFlag;
path.myFlag = myFlag;
path.offset = 0;
path.clocknum = _local2;
path.team = _local1;
path.id = a;
path.maxHealth = 100;
if (healthCheat && (a == 0)) {
path.maxHealth = 200;
}
path.health = path.maxHealth;
if (!path.isPlayer) {
spawn(path);
} else {
path.deathinit = true;
path.dead = true;
path.respawnleft = 0;
path._y = 500;
}
people.push(path);
len = allstats.length;
allstats.push(new Stats(_local5, _local1));
path.stats = allstats[len];
a++;
}
hud.bullets.text = cl.weapon.numbullets;
hud.w.gotoAndStop(cl.weapon.id);
}
function flagHandler() {
var _local1 = blueflag;
if (!_local1.taken) {
zz = 0;
while (zz < redTeam.length) {
var _local2 = redTeam[zz];
if (_local2.hitTest(_local1) && (!_local2.dead)) {
_local1.taken = true;
_local1.drifting = false;
_local2.hasFlag = true;
_local1.takenBy = _local2;
_local2.flag._visible = true;
_local2.flag.gotoAndStop(2);
_local1._visible = false;
playSound(S_CAPTURED);
_local2.stats.points++;
hud.blueteam.gotoAndStop(2);
break;
}
zz++;
}
if (_local1.drifting) {
if ((--_local1.countdown) < 0) {
_local1.taken = false;
_local1.drifting = false;
_local1._x = scrollMax - 100;
_local1._y = 250;
_local1._visible = true;
_local1._rotation = 0;
hud.blueteam.gotoAndStop(1);
}
moveFlag(_local1);
var zz = 0;
while (zz < blueTeam.length) {
var _local2 = blueTeam[zz];
if (_local2.hitTest(_local1) && (!_local2.dead)) {
_local1.taken = false;
_local1.drifting = false;
_local1._x = scrollMax - 100;
_local1._y = 250;
_local1._rotation = 0;
_local1._visible = true;
_local2.stats.points = _local2.stats.points + 2;
hud.blueteam.gotoAndStop(1);
}
zz++;
}
}
} else {
var _local2 = _local1.takenBy;
_local1._x = _local2._x;
if (!_local2.dead) {
if ((!redflag.taken) && (!redflag.drifting)) {
if (_local1.takenBy.hitTest(redbase)) {
_local1.taken = false;
_local1.drifting = false;
_local1._x = scrollMax - 100;
_local1._y = 250;
_local1._rotation = 0;
_local1._visible = true;
if (_local1.takenBy.isPlayer) {
flagCaptures++;
}
_local1.takenBy.hasFlag = false;
_local1.takenBy.stats.points = _local1.takenBy.stats.points + 5;
_local2.flag._visible = false;
playSound(S_CTF);
redCaptures++;
if (redCaptures >= flagWin[contextid]) {
endgame = true;
}
updateHudScore();
hud.blueteam.gotoAndStop(1);
}
}
} else {
_local1.taken = false;
_local1.drifting = true;
_local1.takenBy.hasFlag = false;
_local1.countdown = 48;
_local1._visible = true;
_local1._x = _local2._x;
_local1._y = _local2._y;
_local1.vx = _local2.vx;
_local1.vy = -25;
_local1.rotamt = rnd(20) + 10;
moveFlag(_local1);
_local1.takenBy = null;
}
}
_local1 = redflag;
if (!_local1.taken) {
var zz = 0;
while (zz < blueTeam.length) {
var _local2 = blueTeam[zz];
if (_local2.hitTest(_local1) && (!_local2.dead)) {
_local2.hasFlag = true;
_local2.flag._visible = true;
_local1.takenBy = _local2;
_local1.taken = true;
_local1.drifting = false;
_local1._visible = false;
playSound(S_CAPTURED);
_local2.stats.points++;
hud.redteam.gotoAndStop(2);
break;
}
zz++;
}
if (_local1.drifting) {
if ((--_local1.countdown) < 0) {
_local1.taken = false;
_local1._x = 100;
_local1._y = 250;
_local1.drifting = false;
_local1._visible = true;
_local1._rotation = 0;
hud.redteam.gotoAndStop(1);
}
moveFlag(_local1);
var zz = 0;
while (zz < redTeam.length) {
var _local2 = redTeam[zz];
if (_local2.hitTest(_local1) && (!_local2.dead)) {
_local1.taken = false;
_local1._x = 100;
_local1._y = 250;
_local1.drifting = false;
_local1._visible = true;
_local1._rotation = 0;
_local2.stats.points = _local2.stats.points + 2;
hud.redteam.gotoAndStop(1);
}
zz++;
}
}
} else {
var _local2 = _local1.takenBy;
if (!_local2.dead) {
if ((!blueflag.taken) && (!blueflag.drifting)) {
if (_local1.takenBy.hitTest(bluebase)) {
_local1.taken = false;
_local1.drifting = false;
_local1._x = 100;
_local1._y = 250;
_local1._rotation = 0;
_local1._visible = true;
if (_local1.takenBy.isPlayer) {
flagCaptures++;
}
_local1.takenBy.hasFlag = false;
_local1.takenBy.stats.points = _local1.takenBy.stats.points + 5;
_local2.flag._visible = false;
playSound(S_CTF);
blueCaptures++;
if (blueCaptures >= flagWin[contextid]) {
endgame = true;
}
hud.redteam.gotoAndStop(1);
updateHudScore();
}
}
} else {
_local1.taken = false;
_local1.drifting = true;
_local2.hasFlag = false;
_local1._visible = true;
_local1.countdown = 48;
_local1._x = _local2._x;
_local1._y = _local2._y;
_local1.vx = _local2.vx;
_local1.vy = -25;
_local1.rotamt = rnd(20) + 10;
moveFlag(_local1);
_local1.takenBy = null;
}
}
var _local3 = 0;
}
function updateTimer() {
totaltime = startT - getTimer();
mins = Math.floor(totaltime / 60000) % 60;
secs = Math.floor(totaltime / 1000) % 60;
if ((mins <= 0) && (secs <= 0)) {
endgame = true;
}
if (mins < 10) {
mins = "0" + mins;
}
if (secs < 10) {
secs = "0" + secs;
}
if (secs < 0) {
secs = 0;
}
mytimer = (mins + ":") + secs;
hud.timeleft.text = mytimer;
}
function getDTime(tm) {
mins = Math.floor(tm / 60000) % 60;
if (mins < 10) {
mins = "0" + mins;
}
secs = Math.floor(tm / 1000) % 60;
if (secs < 10) {
secs = "0" + secs;
}
mytimer = (mins + ":") + secs;
return(mytimer);
}
function moveBullets() {
a = 0;
while (a < shots.length) {
path = shots[a];
var _local2 = false;
var _local5 = false;
var _local9 = false;
if (path.mytype == cBULLET) {
if (path.weapon.hasGravity) {
path.vy = path.vy + 0.5;
}
} else if (path.mytype == cGRENADE) {
_local2 = true;
path.vy = path.vy + 2;
} else {
_local5 = true;
}
path._x = path._x + path.vx;
path._y = path._y + path.vy;
var _local4 = {x:path.x._x, y:path.x._y};
path.localToGlobal(_local4);
var _local3 = false;
if (_local2) {
path.x._rotation = Math.atan2(path.vy, path.vx) * 57.2957795130823;
}
if ((_local4.y > 400) || (_local4.y < 0)) {
_local3 = true;
_local9 = true;
} else if (ground.hitTest(_local4.x, _local4.y, true)) {
if (_local2) {
var _local7 = 0;
while (ground.hitTest(_local4.x, _local4.y - _local7, true)) {
_local7++;
}
path._y = path._y - _local7;
path.vy = path.vy * -0.8;
path.bounced = true;
} else {
_local3 = true;
}
}
if (_local2) {
var _local6 = 50;
} else {
var _local6 = path.owner.weapon.damage;
}
if ((path.owner.team == cNONE) || (friendlyFire)) {
var _local1 = 0;
while (_local1 < noTeam.length) {
if (((path.owner != noTeam[_local1]) && (!noTeam[_local1].dead)) && (noTeam[_local1].a.body.hitTest(path))) {
tintObject(0, 255, 0, noTeam[_local1]);
updateHealth(noTeam[_local1], _local6 + rnd(20), path.owner, _local2 || (_local5), path);
playSound(S_HIT, 0, noTeam[_local1]);
_local3 = true;
}
_local1++;
}
} else if (path.owner.team == cRED) {
var _local1 = 0;
while (_local1 < blueTeam.length) {
if ((!blueTeam[_local1].dead) && (blueTeam[_local1].a.body.hitTest(path))) {
tintObject(0, 0, 255, blueTeam[_local1]);
updateHealth(blueTeam[_local1], _local6 + rnd(20), path.owner, _local2 || (_local5), path);
playSound(S_HIT, 0, blueTeam[_local1]);
_local3 = true;
}
_local1++;
}
} else {
var _local1 = 0;
while (_local1 < redTeam.length) {
if ((!redTeam[_local1].dead) && (redTeam[_local1].a.body.hitTest(path))) {
tintObject(255, 0, 0, redTeam[_local1]);
updateHealth(redTeam[_local1], _local6 + rnd(20), path.owner, _local2 || (_local5), path);
playSound(S_HIT, 0, redTeam[_local1]);
_local3 = true;
}
_local1++;
}
}
if (((matchid == 3) && (path.owner.team == cBLUE)) && (clockhq.hitTest(path))) {
tintObject(255, 0, 0, clockhq);
hqhealth = hqhealth - (_local6 + rnd(20));
if (hqhealth < 0) {
hqhealth = 0;
endgame = true;
}
hud.hq.hqbar._xscale = (hqhealth / hqtotal) * 45;
var _local10 = int((100 - ((hqhealth / hqtotal) * 100)) / 20) + 1;
clockhq.gotoAndStop(_local10);
_local3 = true;
}
if ((_local2 && ((--path.countdown) < 0)) && (path.bounced)) {
_local3 = true;
}
if (_local3) {
if (showParticles) {
fi = (fi + 1) % 100;
var _local8 = ground.attachMovie("bullethole", "bhole" + fi, fi + 1000);
_local8._x = path._x;
_local8._y = path._y;
_local8._rotation = rnd0(360);
_local8.gotoAndPlay(rnd(10) + 1);
}
if (_local2 || (_local5)) {
_local8.bhtype.gotoAndStop(2);
playSound(S_GEXPLODE, 0, path.owner, 100);
addExplosion(path);
}
path.removeMovieClip();
shots.splice(a, 1);
a--;
}
a++;
}
}
function addExplosion(path) {
var _local1 = null;
xpid = (++xpid) % 50;
allcl["e" + xpid].removeMovieClip();
_local1 = allcl.attachMovie("explosion", "e" + xpid, xpid + 13000);
_local1._x = path._x;
_local1._y = path._y;
}
function shoot(obj, clr, mytype) {
var _local2 = obj.weapon;
sd++;
if (sd > 100) {
sd = 0;
}
if (mytype == cGRENADE) {
path = allcl.attachMovie("grenade", "s" + sd, sd + 100);
path.velocity = 16;
path.yvelocity = 30;
path.countdown = 20;
path.mytype = cGRENADE;
path.bounced = false;
playSound(S_GTHROW, 0, obj);
obj.grenadeagain = 48;
} else {
if (_local2.typeOf == cROCKET) {
path = allcl.attachMovie("rocket", "s" + sd, sd + 100);
} else {
path = allcl.attachMovie("shot", "s" + sd, sd + 100);
path.gotoAndStop(obj.weapon.id);
}
path.velocity = obj.weapon.velocity;
path.yvelocity = obj.weapon.velocity;
if (!recoilCheat) {
obj.dout = rnd(10) + 5;
}
if ((--obj.bulletsleft) <= 0) {
obj.shootagain = _local2.reloadtime;
if (obj.isPlayer) {
if (reloadCheat) {
obj.shootagain = 1;
}
hud.ammobar.gotoAndStop(2);
}
playSound(_local2.sfire, 0, obj);
playSound(_local2.sreload, _local2.reloadt, obj);
} else {
obj.shootagain = _local2.betweenbullets;
if (obj.isPlayer) {
hud.ammobar.bullets.text = obj.bulletsleft;
}
playSound(_local2.sfire, 0, obj);
}
path.mytype = _local2.typeOf;
}
if (mytype != cGRENADE) {
var _local3 = {x:obj.a.gun.shootstart._x, y:obj.a.gun.shootstart._y};
obj.a.gun.shootstart.localToGlobal(_local3);
allcl.globalToLocal(_local3);
} else {
var _local3 = {x:obj._x, y:obj._y};
}
shots.push(path);
var _local5 = Math.cos(obj.angle);
var _local4 = Math.sin(obj.angle);
obj.angoff = (-(((Math.random() * 3) * obj.weapon.inaccuracy) - obj.weapon.inaccuracy)) / 100;
path._x = _local3.x;
path._y = _local3.y;
path.angle = obj.angle;
path.owner = obj;
path.team = obj.team;
path.weapon = obj.weapon;
path.vx = _local5 * path.velocity;
path.vy = _local4 * path.yvelocity;
path.x._rotation = Math.atan2(path.vy, path.vx) * 57.2957795130823;
}
function checkClosest(py, obj) {
if (!py.dead) {
var _local1 = Math.abs(py._x - obj._x);
if ((_local1 != 0) && (_local1 < obj.cdist)) {
obj.tgt = py;
obj.cdist = _local1;
}
}
}
function closestToBase(py, obj) {
if (!py.dead) {
var _local1 = Math.abs(py._x - 900);
if ((_local1 != 0) && (_local1 < obj.cdist)) {
obj.tgt = py;
obj.cdist = _local1;
}
}
}
function chooseTargetHandler(obj) {
obj.tgt = null;
obj.cdist = 500000 /* 0x07A120 */;
obj.shooting = false;
switch (matchid) {
case cDEATHMATCH :
z = 0;
while (z < noTeam.length) {
if (noTeam[z] != obj) {
checkClosest(noTeam[z], obj);
}
z++;
}
break;
case cCAPTURETHEFLAG :
case cTEAMDEATHMATCH :
if (obj.team == cBLUE) {
var z = 0;
while (z < redTeam.length) {
checkClosest(redTeam[z], obj);
z++;
}
} else {
var z = 0;
while (z < blueTeam.length) {
checkClosest(blueTeam[z], obj);
z++;
}
}
break;
case cDEFENDTHEBASE :
if (obj.team != cBLUE) {
var z = 0;
while (z < blueTeam.length) {
closestToBase(blueTeam[z], obj);
z++;
}
} else {
obj.tgt = clockhq;
obj.cdist = Math.abs(obj._x - 900);
var z = 0;
for(;;){
if (z >= redTeam.length) {
break;
}
checkClosest(redTeam[z], obj);
z++;
};
}
}
if (matchid == 2) {
if (obj.team != 1) {
if (!obj.badFlag.taken) {
obj.mtgt = obj.badFlag;
} else {
obj.mtgt = obj.myFlag;
}
}
} else if ((matchid != 3) || (obj.team == cRED)) {
obj.mtgt = obj.tgt;
} else if (matchid == 3) {
obj.mtgt = clockhq;
}
obj.thrownade = false;
if ((obj.tgt != null) && (obj.cdist < 500)) {
obj.shooting = true;
} else if ((obj.tgt != null) && (obj.cdist < 750)) {
obj.thrownade = true;
}
}
function CPU_AI(obj) {
if (obj.tinted) {
tintObject(0, 0, 0, obj);
}
if (obj.dead) {
deathHandler(obj);
} else {
var _local2 = "idle";
chooseTargetHandler(obj);
var _local4 = 50;
var _local3 = 1;
if (obj.health < 50) {
_local4 = 150;
_local3 = 2;
}
if (obj.tgt == clockhq) {
_local3 = 3;
}
if (obj.hasFlag || (obj.mtgt.otype == cFLAG)) {
offfull = 0;
} else {
offfull = (_local3 * obj.offset) + rnd(_local4);
}
if ((obj.mtgt._x - obj._x) > offfull) {
moveRight(obj);
_local2 = "walk";
} else if ((obj._x - obj.mtgt._x) > offfull) {
moveLeft(obj);
_local2 = "walk";
} else if ((obj.mtgt._x - obj._x) < offfull) {
moveLeft(obj);
_local2 = "walk";
} else if ((obj._x - obj.mtgt._x) < offfull) {
moveRight(obj);
_local2 = "walk";
}
if (!obj.jetInit) {
if ((obj.jetbar > 75) || ((obj.jetbar > 20) && (obj.health < 100))) {
obj.jumping = true;
jetpackHandler(obj, true, true);
obj.jetInit = true;
} else {
jetpackHandler(obj, false, true);
}
} else if (obj.jetbar <= 0) {
obj.jetInit = false;
} else {
jetpackHandler(obj, true, true);
}
if (obj.jetInit && (obj.jetbar > 0)) {
_local2 = "jet";
}
var _local7 = {x:obj._x, y:obj._y};
var _local5 = {x:obj.tgt._x, y:obj.tgt._y};
bodyMove(obj, obj.tgt, _local7, _local5, _local2, 50);
if ((--obj.shootagain) == 0) {
if (obj.bulletsleft <= 0) {
obj.bulletsleft = obj.weapon.numbullets;
}
} else if (obj.shooting && (obj.shootagain < 0)) {
shoot(obj, cBLUE, cBULLET);
}
obj.grenadeagain--;
if (((((((!disableGrenades) && (obj.thrownade)) && (obj.angle != "undefined")) && (obj.angle != "NaN")) && (obj.angle != null)) && (obj.angle)) && (rnd(100) > 90)) {
if (obj.grenadeagain < 0) {
shoot(obj, cBLUE, cGRENADE);
}
}
var _local6 = 88;
moveNCollision(obj, false, 27, false);
_local6 = 99;
}
}
function moveFlag(obj) {
var _local4 = false;
var _local5 = {x:obj._x, y:obj._y};
var _local3 = _local5.x + obj.vx;
var _local2 = obj._y + ((obj.vy = obj.vy + 2));
while (ground.hitTest(_local3 + actScrollPosX, _local2, true)) {
_local2 = _local2 - 1;
obj.vy = 0;
_local4 = true;
}
if (_local4) {
obj.rotamt = obj.rotamt * 0.6;
obj.vx = obj.vx * 0.6;
}
obj._rotation = obj._rotation + obj.rotamt;
obj._x = _local3;
obj._y = _local2;
}
function displayStats() {
var _local1 = new Array();
a = 0;
while (a < allstats.length) {
_local1.push(a);
a++;
}
flipped = true;
while (flipped) {
flipped = false;
a = 1;
while (a < _local1.length) {
if (allstats[_local1[a]].points > allstats[_local1[a - 1]].points) {
temp = _local1[a - 1];
_local1[a - 1] = _local1[a];
_local1[a] = temp;
flipped = true;
}
a++;
}
}
stats = r.attachMovie("stats", "st", 11101);
txtGS = FS.AddMessage("GAME STATISTICS", 25, 30, 0, ALIGN_LEFT, 0, 0, stats);
txtGS.AbsScaleMessage(80, 80);
a = 0;
while (a < _local1.length) {
var _local2 = allstats[_local1[a]];
path = stats.attachMovie("statsline", "stl" + a, 100 + a);
path._x = 21;
path._y = 73 + (20 * a);
path.gotoAndStop(_local2.team);
path.rank.text = a + 1;
path.name.text = _local2.pname;
path.points.text = _local2.points;
path.kills.text = _local2.kills;
path.deaths.text = _local2.deaths;
a++;
}
}
function moveNCollision(obj, scrollme, ymod, bodyparts) {
var _local7 = {x:obj._x, y:obj._y};
if (bodyparts) {
char.localToGlobal(_local7);
}
var _local2 = _local7.y + ((obj.vy = obj.vy + 2));
var _local3 = _local7.x + obj.vx;
var _local10 = false;
var _local8 = false;
var _local4 = false;
if (obj.vx >= 0) {
_local10 = true;
}
if (obj.vy >= 0) {
_local8 = true;
}
var _local5 = 0;
while (ground.hitTest(_local3 + actScrollPosX, _local2 + ymod, true)) {
_local2--;
if (obj.jumping) {
obj.jumping = false;
playSound(S_JUMPLAND, 0, obj);
_local4 = true;
obj.jetInit = false;
}
obj.vy = 0;
_local5++;
}
if (_local3 > (scrollMax - 15)) {
_local3 = scrollMax - 15;
}
if (_local3 < 5) {
_local3 = 5;
}
if (bodyparts && (_local4)) {
obj.rotamt = obj.rotamt * 0.8;
if (obj._name == "gun") {
obj.rotamt = 0;
}
}
obj.vx = obj.vx * 0.8;
if (Math.abs(obj.vx) < 0.5) {
obj.vx = 0;
}
board._x = ((-offx) + 225) - _xmouse;
if (scrollme) {
var _local15;
var _local9 = _local3 - obj._x;
newX = _local9;
curScrollPosX = curScrollPosX - newX;
camerax = (curScrollPosX + 275) - _xmouse;
if (camerax > 0) {
actScrollPosX = 0;
} else if (camerax < (-(scrollMax - 550))) {
actScrollPosX = -(scrollMax - 550);
} else {
actScrollPosX = camerax;
}
allcl._x = actScrollPosX;
board._x = actScrollPosX;
ground._x = actScrollPosX;
board2._x = actScrollPosX;
}
obj._x = _local3;
obj._y = _local2;
if ((!bodyparts) && (obj._y < 5)) {
obj._y = 5;
obj.vy = 0;
}
return(_local4);
}
function bodyMove(obj, target, q, t, anim, myoffset) {
var _local6 = obj.a.gun;
var _local9 = obj.a.hand1;
var _local8 = obj.a.hand2;
var _local2 = obj.a.body;
var _local11;
var _local10;
if (t.x > q.x) {
obj._xscale = 100;
if (obj.vx > 0) {
anim = anim + "forward";
} else if (obj.vx < 0) {
anim = anim + "back";
}
_local11 = t.x - q.x;
_local10 = t.y - q.y;
} else {
obj._xscale = -100;
if (obj.vx > 0) {
anim = anim + "back";
} else if (obj.vx < 0) {
anim = anim + "forward";
}
_local11 = q.x - t.x;
_local10 = t.y - q.y;
}
obj.gotoAndStop(anim);
var _local5 = obj.clocknum;
obj.a.body.char.gotoAndStop(obj.clocknum);
_local9.gotoAndStop(_local5);
_local8.gotoAndStop(_local5);
obj.a.foot1.gotoAndStop(_local5);
obj.a.foot2.gotoAndStop(_local5);
obj.a.gun.gotoAndStop(obj.weapon.id);
var _local13 = ((obj.jetmod > 0) ? 2 : 1);
obj.a.jetpack.gotoAndStop(_local13);
obj.a.jetpack.pack.gotoAndStop(obj.team);
if ((--obj.invincible) > 0) {
if ((obj.invincible % 4) < 2) {
obj._alpha = 100;
} else {
obj._alpha = 0;
}
}
updateAfterEvent();
angle = Math.atan2(_local10, _local11) + obj.angoff;
obj.dout = Math.min(obj.dout + 1, 30);
obj.angoff = obj.angoff * 0.96;
obj.angle = angle;
_local6._rotation = angle * 57.2957795130823;
_local6.angle = angle;
_local6._x = _local2._x + (Math.cos(angle) * obj.dout);
_local6._y = _local2._y + (Math.sin(angle) * obj.dout);
_local9._x = (_local2._x - 5) + (Math.cos(angle) * obj.dout);
_local9._y = (_local2._y + 6) + (Math.sin(angle) * obj.dout);
_local8._x = (_local2._x - 12) + (Math.cos(angle) * obj.dout);
_local8._y = (_local2._y + 10) + (Math.sin(angle) * obj.dout);
obj.angle = Math.atan2(((t.y + rnd(2 * myoffset)) - rnd(myoffset)) - q.y, ((t.x + rnd(2 * myoffset)) - rnd(myoffset)) - q.x);
}
function initdeath(mc, explosive) {
mc.blood = [];
mc.bA = 0;
mc.bIt = 0;
mc.bOff = 0;
mc.bVel = 10;
var _local3 = mc._xscale / 100;
var _local6 = bodyparts.length;
var _local2 = 0;
while (_local2 < _local6) {
var _local1 = mc.a[bodyparts[_local2]];
_local1.vx = ((-_local3) * (2 * (rnd(4) - 2))) + (_local3 * 8);
_local1.vy = -(rnd(10) + 6);
_local1.rotamt = rnd(50) - 25;
_local1.prevx = _local1._x;
_local1.prevy = _local1._y;
_local1.countt = 0;
_local1.attached = true;
switch (_local2) {
case 1 :
case 2 :
_local1.vy = _local1.vy * 6;
_local1.vx = _local1.vx * 2;
break;
case 3 :
case 4 :
_local1.vy = _local1.vy * 1.5;
break;
case 5 :
_local1.vx = _local1.vx / 2.5;
_local1.vy = _local1.vy * 2;
_local1.rotamt = _local1.rotamt * 2;
break;
case 6 :
_local1.rotamt = _local1.rotamt * 2;
case 0 :
_local1.vx = (_local3 * (2 * (rnd(4) - 2))) - (_local3 * 8);
_local1.rotamt = _local1.rotamt / 2;
}
_local1.explosive = false;
if (explosive) {
_local1.explosive = true;
_local1.attached = false;
var _local4 = -(rnd(50) + 40);
tintObject(_local4, _local4, _local4, _local1);
if ((_local2 > 0) && (_local2 < 3)) {
_local1.vy = _local1.vy * 0.4;
_local1.vx = _local1.vx - (_local3 * 20);
} else {
_local1.vx = _local1.vx * 2;
}
}
_local2++;
}
mc.bVel = 10;
mc.bOff = 0;
mc.bloodtotal = 37;
mc.phase = 1;
mc.jetpacksetting = 1;
mc.a.stop();
}
function deathAnim(obj) {
var _local8 = bodyparts.length;
var _local2 = 0;
while (_local2 < _local8) {
var _local1 = obj.a[bodyparts[_local2]];
_local1._x = _local1._x + _local1.vx;
_local1.countt++;
_local1._rotation = _local1._rotation + _local1.rotamt;
var _local6 = false;
dx = _local1._x - _local1.prevx;
dy = _local1._y - _local1.prevy;
dist = (dx * dx) + (dy * dy);
if (_local2 == 6) {
_local1.angle = Math.atan2(dy, dx);
}
if (!((_local2 == 5) && (_local1.countt < 3))) {
_local6 = moving2(_local1, 0, obj);
}
if (_local2 == 0) {
if (dist > 4) {
dx = _local1._x - _local1.prevx;
dy = _local1._y - _local1.prevy;
_local1.angle = Math.atan2(dy, dx);
_local1._rotation = ((_local1.angle * 180) / Math.PI) + 90;
bodyrot = ((_local1._rotation + 90) * Math.PI) / 180;
}
} else if (((_local2 > 0) && (_local2 < 5)) && (_local1.attached)) {
var _local4 = obj.a.body;
var dx = (_local1._x - _local4._x);
var dy = (_local1._y - _local4._y);
var _local7 = 1.3962;
if (_local6) {
_local1.angle = Math.atan2(dy, dx);
}
if (_local1.countt < 110) {
_local1.angle = Math.atan2(dy, dx);
if (_local1.angle > (bodyrot + _local7)) {
_local1.angle = bodyrot + _local7;
}
}
_local1._x = _local4._x + (Math.cos(_local1.angle) * daway[_local2]);
_local1._y = _local4._y + (Math.sin(_local1.angle) * daway[_local2]);
_local1._rotation = ((_local1.angle * 180) / Math.PI) - 90;
} else if (_local2 == 6) {
if (((!_local1.explosive) && (_local1.countt < (rnd(30) + 120))) && (Math.abs(_local1.rotamt) > 1)) {
if (_local1.jetpacksetting == 2) {
var _local5 = ((_local1._rotation - 90) * Math.PI) / 180;
_local1.vx = _local1.vx + (Math.cos(_local5) * 2);
_local1.vy = _local1.vy + (Math.sin(_local5) * 2);
}
if (rnd(100) > 80) {
if (_local1.jetpacksetting == 1) {
_local1.jetpacksetting = 2;
_local1.gotoAndStop(jetpacksetting);
_local1.pack.gotoAndStop(obj.team);
} else {
_local1.jetpacksetting = 1;
_local1.gotoAndStop(jetpacksetting);
_local1.pack.gotoAndStop(obj.team);
}
}
} else {
_local1.gotoAndStop(1);
_local1.pack.gotoAndStop(obj.team);
_local1.jetpacksetting = 1;
}
}
_local1.prevx = _local1._x;
_local1.prevy = _local1._y;
_local2++;
}
}
function moving2(obj, yadd, char) {
var _local5 = {x:obj._x, y:obj._y};
var _local3 = false;
char.localToGlobal(_local5);
var _local2 = _local5.y + ((obj.vy = obj.vy + 2));
var _local4 = _local5.x;
while (ground.hitTest(_local4, _local2, true)) {
_local2 = _local2 - 1;
obj.vy = 0;
_local3 = true;
}
obj._y = obj._y + (_local2 - _local5.y);
if (_local3) {
if (obj.explosive) {
obj.vx = obj.vx * 0.85;
} else {
obj.vx = obj.vx * 0.65;
}
obj.rotamt = obj.rotamt * 0.8;
if (obj._name == "gun") {
obj.rotamt = 0;
}
}
}
function bloodHandler(obj, mc) {
if ((--obj.bloodtotal) > 0) {
if ((rnd(100) > 0) && (obj.bVel > 6)) {
obj.bA = (++obj.bA) % 75;
if (rnd(100) > 50) {
obj.bVel = obj.bVel - 0.1;
}
var _local1 = obj.a.attachMovie("blood", "b" + obj.bA, 100 + obj.bA);
blood.push(_local1);
_local1._x = obj._x;
_local1._y = obj._y;
if (obj.bVel > 8.5) {
var _local8 = ((Math.random() * 20) - 10) / 100;
obj.bVelUse = obj.bVel + (rnd(50) / 20);
} else {
var _local8 = ((Math.random() * 6) - 3) / 100;
obj.bVelUse = obj.bVel;
}
obj.bOff = obj.bOff + _local8;
_local1.vx = Math.cos((obj.angle + (dir * 1.571)) + bOff) * obj.bVelUse;
_local1.vy = Math.sin((obj.angle + (dir * 1.571)) + bOff) * obj.bVelUse;
_local1._alpha = 100;
_local1.px = _local1._x;
_local1.py = _local1._y;
}
}
var _local7 = blood.length;
var _local2 = 0;
while (_local2 < _local7) {
var _local1 = blood[_local2];
_local1.vy = _local1.vy + 0.5;
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
_local1._alpha = _local1._alpha - (int(Math.random() * 5) + 2);
var _local5 = _local1._x - _local1.px;
var _local4 = _local1._y - _local1.py;
var _local6 = Math.atan2(_local4, _local5);
_local1._rotation = (_local6 * 180) / Math.PI;
_local1.px = _local1._x;
_local1.py = _local1._y;
if (_local1._alpha <= 0) {
delete blood[_local2];
blood.splice(_local2, 1);
_local7--;
_local2--;
}
_local2++;
}
}
function tintObject(r, g, b, obj) {
colored = new Color(obj);
tint = new Object();
tint.ra = 100;
tint.ga = 100;
tint.ba = 100;
tint.rb = r;
tint.gb = g;
tint.bb = b;
tint.aa = 100;
colored.setTransform(tint);
updateAfterEvent();
if (((r > 0) || (g > 0)) || (b > 0)) {
obj.tinted = true;
} else {
obj.tinted = false;
}
}
function updateHealth(obj, amount, owner, byExplosive, path2) {
var _local7 = owner.stats;
if (instagib) {
amount = 5000;
}
if (godCheat && (obj.isPlayer)) {
amount = 0;
}
if (damageCheat && (owner.isPlayer)) {
amount = amount * 2;
}
if (obj.invincible <= 0) {
obj.health = obj.health - amount;
if ((showParticles && (amount > 0)) && (!byExplosive)) {
fi = (fi + 1) % 100;
var _local2 = allcl.attachMovie("bspatter", "b" + fi, 12000 + fi);
_local2._x = obj._x;
_local2._y = obj._y;
_local2.a._rotation = path2.angle * 57.2957795130823;
_local2.a.bl.gotoAndStop(rnd(6));
}
if (obj.health <= 0) {
obj.dead = true;
obj.byExplosive = byExplosive;
obj.health = 0;
obj.deathinit = false;
if ((matchid > 1) && (obj.team == owner.team)) {
_local7.kills--;
_local7.points = _local7.points - 10;
} else {
_local7.kills++;
_local7.points++;
}
if (matchid == 1) {
var _local6 = null;
var _local5 = -5000;
var _local3 = 0;
while (_local3 < noTeam.length) {
var _local2 = noTeam[_local3];
if (_local2.stats.kills > _local5) {
_local5 = _local2.stats.kills;
_local6 = _local2;
}
_local3++;
}
txtleader.t.text = ((("Current Leader: " + _local6.stats.pname) + " with ") + _local6.stats.kills) + " kills.";
}
if ((matchid == 1) && (_local7.kills >= maxkills)) {
endgame = true;
winnerT = _local7.pname;
} else if (matchid == 4) {
if (owner.team == cRED) {
redCaptures++;
if (redCaptures >= teamdmWin[contextid]) {
endgame = true;
}
hud.redscore.text = redCaptures;
} else {
blueCaptures++;
if (blueCaptures >= teamdmWin[contextid]) {
endgame = true;
}
hud.bluescore.text = blueCaptures;
}
}
if (owner.isPlayer) {
hud.killbar.text = _local7.kills;
stopSound(S_JETPACK);
}
playSound(S_DEATH, 0, obj);
} else if (obj.health > obj.maxHealth) {
obj.health = obj.maxHealth;
}
if (obj.isPlayer) {
var _local10 = 1;
if (healthCheat) {
_local10 = 2;
}
_root.hud.hb.healthbar._xscale = obj.health / _local10;
}
}
}
function deathHandler(obj) {
if (!obj.deathinit) {
obj.stats.deaths++;
obj.respawnleft = respawnTime;
obj.deathinit = true;
initdeath(obj, obj.byExplosive);
obj.vx = 0;
obj.vy = 0;
obj.flag._visible = false;
if (obj.isPlayer) {
weaponsel._visible = true;
if (instagib) {
weaponsel.gotoAndStop(2);
}
}
} else {
deathAnim(obj);
obj.respawnleft--;
if (weaponChosen > 0) {
var _local2 = String(Math.round((obj.respawnleft / 24) * 10) / 10);
if (_local2.length < 2) {
_local2 = _local2 + ".0";
}
weaponsel.txtRespawn.text = _local2 + "s";
}
if (obj.respawnleft == 0) {
obj.gotoAndStop(2);
obj._alpha = 100;
} else if ((obj.respawnleft < 20) && (obj.respawnleft > 0)) {
obj._alpha = 5 * obj.respawnleft;
} else if ((obj.respawnleft < 0) && (weaponChosen > 0)) {
if (obj.isPlayer) {
weaponsel._visible = false;
}
spawn(obj);
}
}
}
function moveRight(obj) {
obj.vx = obj.vx + (1.5 + obj.jetmod);
if (obj.vx > 20) {
obj.vx = 20;
}
}
function moveLeft(obj) {
obj.vx = obj.vx - (1.5 + obj.jetmod);
if (obj.vx < -20) {
obj.vx = -20;
}
}
function jetpackHandler(path, isJetting, display) {
var _local2 = false;
path.jetmod = 0;
if (isJetting) {
if (path.jetbar > 0) {
if (path.vy > 0) {
path.vy = 0;
}
path.vy = path.vy - 3;
if ((!path.isPlayer) || (!jetCheat)) {
path.jetbar = path.jetbar - 3;
}
path.jetmod = 4;
_local2 = true;
path.a.jetpack.gotoAndStop(2);
path.a.jetpack.pack.gotoAndStop(path.team);
} else {
path.a.jetpack.gotoAndStop(1);
path.a.jetpack.pack.gotoAndStop(path.team);
}
} else if (path.jetbar < 100) {
path.jetbar = path.jetbar + 1.5;
if (path.jetbar > 100) {
path.jetbar = 100;
}
_local2 = true;
path.a.jetpack.gotoAndStop(1);
path.a.jetpack.pack.gotoAndStop(path.team);
}
if (display && (_local2)) {
hud.jb.jetbar._xscale = cl.jetbar;
}
}
sfx[S_MENUMUSIC].stop();
for (name in _root) {
_root[name].removeMovieClip();
}
r = _root;
reSpawnTime = 150;
cBULLET = 2;
cGRENADE = 3;
cROCKET = 4;
cNONE = 1;
cRED = 2;
cBLUE = 3;
cDEATHMATCH = 1;
cCAPTURETHEFLAG = 2;
cDEFENDTHEBASE = 3;
cTEAMDEATHMATCH = 4;
cKINGOFTHEPORTAL = 5;
cFIGHTER = 0;
cFLAG = 1;
cBASE = 2;
redTeam = new Array();
blueTeam = new Array();
maxEnemies = totplayers[totpid] - 1;
curScrollPosX = 0;
Mouse.hide();
createEmptyMovieClip("allcl", 8999);
_root.attachMovie("hud", "hud", 9000);
hud._x = 0;
hud._y = 344;
hud.gotoAndStop(matchid);
targetoffset = [-77, 77];
enemies = new Array();
people = new Array();
shots = new Array();
sd = 0;
redCaptures = 0;
blueCaptures = 0;
hqtotal = 20000;
hqhealth = 20000;
showWSel = true;
rndWeap = false;
weaponsel = _root.attachMovie("wsel", "wsel1", 14001);
cursor = _root.attachMovie("cursor", "cur", 14103);
weaponsel._x = 0;
weaponsel._y = 0;
if (instagib) {
weaponsel.gotoAndStop(2);
}
winScreen = _root.attachMovie("winnerScreen", "wscr", 11102);
winScreen._x = 325;
winScreen._y = 50;
winScreen._visible = false;
flagCaptures = 0;
grenadeagain = 0;
endgame = false;
startTime = getTimer();
Weapon = function (id) {
this.id = id;
switch (id) {
case 1 :
this.velocity = 40;
this.inaccuracy = 6;
this.reloadtime = 50;
this.betweenbullets = 3;
this.numbullets = 30;
this.typeOf = cBULLET;
this.damage = 10;
this.proximityFactor = 0;
this.hasGravity = true;
this.sfire = S_W1F;
this.sreload = S_W1R;
this.reloadt = 0;
break;
case 6 :
this.velocity = 36;
this.inaccuracy = 4;
this.reloadtime = 50;
this.betweenbullets = 5;
this.numbullets = 32;
this.typeOf = cBULLET;
this.damage = 25;
this.proximityFactor = 0;
this.hasGravity = true;
this.sfire = S_W1F;
this.sreload = S_W1R;
this.reloadt = 0;
break;
case 2 :
this.velocity = 44;
this.inaccuracy = 18;
this.reloadtime = 70;
this.betweenbullets = 22;
this.numbullets = 7;
this.typeOf = cBULLET;
this.damage = 40;
this.proximityFactor = 10;
this.hasGravity = true;
this.sfire = S_W2F;
this.sreload = S_W2R;
this.reloadt = 7;
break;
case 5 :
this.velocity = 36;
this.inaccuracy = 16;
this.reloadtime = 75;
this.betweenbullets = 35;
this.numbullets = 2;
this.typeOf = cROCKET;
this.damage = 90;
this.proximityFactor = 0;
this.sfire = S_W5F;
this.sreload = S_W5R;
this.hasGravity = false;
break;
case 3 :
this.velocity = 56;
this.inaccuracy = 2;
this.reloadtime = 100;
this.betweenbullets = 45;
this.numbullets = 10;
this.typeOf = cBULLET;
this.damage = 120;
this.proximityFactor = 0;
this.hasGravity = false;
this.sfire = S_W3F;
this.sreload = S_W3R;
this.reloadt = 0;
break;
case 4 :
this.velocity = 48;
this.inaccuracy = 2;
this.reloadtime = 40;
this.betweenbullets = 9;
this.numbullets = 7;
this.typeOf = cBULLET;
this.damage = 25;
this.proximityFactor = 4;
this.hasGravity = true;
this.sfire = S_W4F;
this.sreload = S_W4R;
this.reloadt = 0;
break;
case 9 :
this.velocity = 0;
this.inaccuracy = 0;
this.reloadtime = 0;
this.betweenbullets = 12;
this.numbullets = 99999 /* 0x01869F */;
this.typeOf = cSWORD;
this.damage = 70;
this.proximityFactor = 0;
this.hasGravity = false;
}
};
createEmptyMovieClip("board", 1);
createEmptyMovieClip("board2", 2);
board.lineStyle(2, 30464, 100);
board2.lineStyle(4, 10053120, 100);
board.beginFill(359992, 100);
board.moveTo(-50, 250);
board.lineTo(200, 250);
board2.moveTo(-50, 250);
board2.lineTo(200, 250);
newx = 200;
scrollMax = 1400;
flattened = false;
var above = true;
while (newx < scrollMax) {
var prevx = newx;
var prevy = newy;
if (((matchid == 3) && (!flattened)) && ((newx + 150) > 790)) {
flattened = true;
board.lineTo(790, 350);
board.lineTo(1010, 350);
board2.lineTo(790, 350);
board2.lineTo(1010, 350);
newx = 1010;
}
newx = newx + (50 + rnd(100));
if (rnd(100) > 80) {
newy = rnd(100) + 150;
} else {
newy = rnd(100) + 250;
}
if (above) {
if (newy > prevy) {
var curvex = newx;
var curvey = prevy;
} else {
var curvex = prevx;
var curvey = newy;
}
above = !above;
} else {
if (newy < prevy) {
var curvex = newx;
var curvey = prevy;
} else {
var curvex = prevx;
var curvey = newy;
}
above = !above;
}
var curvex = ((prevx + newx) / 2);
var curvey = (newy - 10);
board.lineTo(newx, newy);
board2.lineTo(newx, newy);
}
board.lineTo(scrollMax + 200, 250);
board2.lineTo(scrollMax + 200, 250);
scrollMax = 1800;
board.lineTo(scrollMax, 250);
board.lineTo(scrollMax, 410);
board.lineTo(-50, 410);
board.lineTo(-50, 250);
board2.lineTo(scrollMax, 250);
board2.lineTo(scrollMax, 410);
board2.lineTo(-50, 410);
board2.lineTo(-50, 250);
board.endFill();
_root.createEmptyMovieClip("ground", 100);
newx = -200;
id = -1;
var path;
var path2;
while (newx < (scrollMax + 256)) {
var path = ground.attachMovie("grnd", "grnd" + (++id), 100 + id);
path2 = ground.attachMovie("grnd", "grnd" + (++id), 100 + id);
path._x = newx;
path2._x = newx;
path._y = 0;
path._y = 256;
path.gotoAndStop(1);
path.gotoAndStop(1);
newx = newx + 256;
}
ground.setMask(board);
FS_STOP = 0;
FS_SINE = 1;
FS_JITTER = 2;
FS_RANDOM = 3;
FS_BOUNCY = 5;
FS_DANCE = 4;
FS_SPIN = 6;
FS_SWAGGER = 7;
FS_SIDESTEP = 8;
FS_GHOST = 9;
FS_SLAMIN = 10;
FS_DEFAULT = 0;
ALIGN_LEFT = 0;
ALIGN_CENTER = 1;
ALIGN_RIGHT = 2;
r = _root;
titles = ["", "SINE", "JITTER", "WANDER", "DANCE", "BOUNCY", "SPIN", "SWAGGER", "QUAKE", "GHOST"];
letterwidth = [0, 28, 26, 28, 28, 24, 20, 26, 28, 14, 18, 28, 18, 31, 25, 25, 25, 25, 23, 24, 23, 25, 25, 32, 23, 25, 20, 20, 25, 25, 25, 25, 28, 21, 26, 26, 26, 20, 0, 14];
FS_T_EXPLODE_IN = -5;
FS_T_LINE_IN = -4;
FS_T_RAN_TEXT = -3;
FS_T_LINE_OUT = 4;
FS_T_EXPLODE_OUT = 5;
FS_System = function (rows, cols, twidth, theight, anim, offset) {
this.rows = int(rows);
this.cols = int(cols);
this.twidth = int(twidth);
this.theight = int(theight);
this.anim = int(anim);
this.offset = int(offset);
this.messages = new Array();
this.messageCount = 0;
this.AddMessage = function (content, xpos, ypos, anim, align, offset, totoffset, mcparent) {
if (!twidth) {
twidth = this.twidth;
}
if (!anim) {
anim = this.anim;
}
if (!offset) {
offset = this.offset;
}
if (!totoffset) {
totoffset = 0;
}
if (!align) {
align = 0;
}
if (!mcparent) {
mcparent = FS;
}
returnValue = new Message(mcparent, this.messageCount, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align);
this.messages.push(returnValue);
return(returnValue);
};
this.DelMessage = function (id) {
this.messages[id].Delete(id);
delete this.messages[id];
};
r.createEmptyMovieClip("FS_Main", 9010);
this.mc = r.FS_Main;
this.Animate = function () {
a = 0;
while (a < this.messages.length) {
this.messages[a].Animate();
a++;
}
};
};
FS = new FS_System(4, 50, 50, 20, 0, 1);
FS.init;
Message = function (parent, id, content, xpos, ypos, twidth, anim, offset, totoffset, bkg, align) {
this.content = String(content).toUpperCase();
this.rows = FS.rows;
this.cols = FS.cols;
this.xpos = int(xpos);
this.ypos = int(ypos);
this.twidth = twidth;
this.theight = FS.theight;
this.anim = anim;
this.offset = offset;
this.letters = new Array();
this.parent = parent;
this.id = id;
this.align = align;
this.xscale = 100;
this.yscale = 100;
this.Animate = function () {
b = 0;
while (b < this.letters.length) {
this.letters[b].Animate();
b++;
}
};
this.ShowMessage = function () {
this.mmc._visible = true;
};
this.HideMessage = function () {
this.mmc._visible = false;
};
this.RelMoveMessage = function (newX, newY) {
this.mmc._x = this.mmc._x + newX;
this.mmc._y = this.mmc._y + newY;
this.xpos = this.xpos + newX;
this.ypos = this.ypos + newY;
};
this.RelScaleMessage = function (newX, newY) {
this.mmc._xscale = this.mmc._xscale + newX;
this.mmc._yscale = this.mmc._yscale + newY;
this.xscale = this.xscale + newX;
this.yscale = this.yscale + newY;
};
this.RelAlphaMessage = function (newAlpha) {
this.mmc._alpha = this.mmc._alpha + newAlpha;
if ((newAlpha > 0) && (this.mmc._alpha > 100)) {
this.mmc._alpha = 100;
} else if ((newAlpha < 0) && (this.mmc._alpha < 0)) {
this.mmc._alpha = 0;
}
};
this.RelRotateMessage = function (newRot) {
this.mmc._rotation = this.mmc._rotation + newRot;
};
this.AbsMoveMessage = function (newX, newY) {
this.mmc._y = newY;
this.ypos = newX;
};
this.AbsScaleMessage = function (newX, newY) {
this.mmc._xscale = newX;
this.mmc._yscale = newY;
this.xscale = newX;
this.yscale = newY;
};
this.AbsAlphaMessage = function (newAlpha) {
this.mmc._alpha = newAlpha;
};
this.AbsRotateMessage = function (newRot) {
this.mmc._rotation = newRot;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.buildText();
};
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
this.mmc._x = xpos - (this.mmc._width / 2);
}
this.Typing = function (inkey) {
if (inkey == 220) {
killit = this.letters.length - 1;
this.letters[killit].lmc.removeMovieClip();
delete this.letters[killit];
this.letters.splice(killit, 1);
} else {
character = this.GetFrame(inkey);
tid = this.letters.length;
path = new FS_Letter(this, tid, character, this.xpos + (tid * this.twidth), this.ypos, this.anim, tid * this.offset);
this.letters.push(path);
}
};
this.SetAnimation = function (animnew) {
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.anim = animnew;
path._rotation = 0;
path._alpha = 0;
path.lmc._x = path.xpos;
path.lmc._y = path.ypos;
path.lmc._rotation = 0;
path.lmc._alpha = 100;
path.init = false;
this.anim = animnew;
b++;
}
};
this.SetTransition = function (first, second, newText, time) {
this.newText = newText;
this.first = first;
this.second = second;
b = 0;
while (b < this.letters.length) {
path = this.letters[b];
path.trans = true;
path.transAnim1 = first;
path.transSecond = second;
path.transCur = first;
path.newLetter = this.GetFrame(newText.charCodeAt(b));
path.transition = 1;
path.transTime = time;
path.init2 = false;
path.sett = false;
b++;
}
};
this.GetFrame = function (charInt) {
if (!charInt) {
return(37);
}
if (charInt == 33) {
return(38);
}
if (charInt == 37) {
return(42);
}
if (charInt == 39) {
return(54);
}
if ((charInt >= 65) && (charInt <= 90)) {
return(charInt - 64);
}
if ((charInt >= 48) && (charInt <= 57)) {
return(charInt - 21);
}
return(37);
};
this.MakeButton = function (frame) {
this.mmc.frame = frame;
this.mmc.onRollOver = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.ra = 100;
watercolor.rb = 100;
watercolor.ga = 100;
watercolor.gb = 100;
watercolor.ba = 100;
watercolor.bb = 100;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRollOut = function () {
colored = new Color(this);
watercolor = new Object();
watercolor.rb = 0;
watercolor.bb = 0;
watercolor.gb = 0;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
this.mmc.onRelease = function () {
playSound(S_CLICK);
if (this.frame == "website") {
_root.getURL("http://www.briancable.com", "_blank");
} else if (this.frame == "saveoptions") {
var _local4 = _root;
_local4.playSound(_local4.S_MENU);
var _local3 = SharedObject.getLocal("gameSettings");
_local3.data.clockid = _local4.clockid;
_local3.data.matchid = _local4.matchid;
_local3.data.totpid = _local4.totpid;
_local3.data.keyset = _local4.keyset;
_local3.data.contextid = _local4.contextid;
_local3.data.playername = _local4.txtPlayer.text;
_local3.flush();
playername = _local4.txtPlayer.text;
_root.gotoAndStop("titlescreen");
} else if (this.frame == "savecheats") {
var _local3 = SharedObject.getLocal("gameSettings");
((_root.c1._currentframe == 2) ? ((_local3.data.godCheat = true)) : ((_local3.data.godCheat = false)));
((_root.c2._currentframe == 2) ? ((_local3.data.healthCheat = true)) : ((_local3.data.healthCheat = false)));
((_root.c3._currentframe == 2) ? ((_local3.data.damageCheat = true)) : ((_local3.data.damageCheat = false)));
((_root.c4._currentframe == 2) ? ((_local3.data.recoilCheat = true)) : ((_local3.data.recoilCheat = false)));
((_root.c5._currentframe == 2) ? ((_local3.data.reloadCheat = true)) : ((_local3.data.reloadCheat = false)));
((_root.c6._currentframe == 2) ? ((_local3.data.showParticles = true)) : ((_local3.data.showParticles = false)));
((_root.c7._currentframe == 2) ? ((_local3.data.playSounds = true)) : ((_local3.data.playSounds = false)));
((_root.c8._currentframe == 2) ? ((_local3.data.friendlyFire = true)) : ((_local3.data.friendlyFire = false)));
((_root.c9._currentframe == 2) ? ((_local3.data.disableGrenades = true)) : ((_local3.data.disableGrenades = false)));
((_root.c10._currentframe == 2) ? ((_local3.data.jetCheat = true)) : ((_local3.data.jetCheat = false)));
((_root.c11._currentframe == 2) ? ((_local3.data.recordStats = true)) : ((_local3.data.recordStats = false)));
((_root.c12._currentframe == 2) ? ((_local3.data.instagib = true)) : ((_local3.data.instagib = false)));
_local3.flush();
_root.gotoAndStop("titlescreen");
} else if (this.frame == "forfeit") {
if (!_root.cplayer.ai) {
squit._visible = true;
showingstats = true;
}
} else {
_root.onEnterFrame = null;
_root.gotoAndStop(this.frame);
}
};
};
this.delMessage = function () {
removeMovieClip(this.mmc);
FS.messages.splice(this.id, 1);
};
this.SetColor = function (red, green, blue) {
colored = new Color(this.mmc);
watercolor = new Object();
watercolor.ra = 100;
watercolor.ga = 100;
watercolor.ba = 100;
watercolor.rb = red;
watercolor.gb = green;
watercolor.bb = blue;
watercolor.aa = 100;
colored.setTransform(watercolor);
};
if (!parent.mc._x) {
parent.createEmptyMovieClip("mc", parent.getNextHighestDepth());
}
parent.mc.createEmptyMovieClip("M" + id, id + 9050);
this.mmc = parent.mc["M" + id];
FS.messageCount++;
this.buildText = function () {
curpos = 0;
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
curpos = curpos + (letterwidth[character] + 1);
a++;
}
this.totpos = curpos;
if (this.align == ALIGN_CENTER) {
curpos = -(this.totpos / 2);
} else if (this.align == ALIGN_LEFT) {
curpos = 0;
} else {
curpos = -this.totpos;
}
a = 0;
while (a < this.content.length) {
character = this.GetFrame(this.content.charCodeAt(a));
mywidth = letterwidth[character];
path = new FS_Letter(this, a, character, curpos, -10, anim, a * offset, totoffset);
curpos = curpos + (mywidth + 1);
this.letters.push(path);
a++;
}
this.mmc._x = xpos;
this.mmc._y = ypos;
this.mmc._xscale = this.xscale;
this.mmc._yscale = this.yscale;
this.mmc.messagepath = this;
};
this.SetMessage = function (newText) {
this.mmc.removeMovieClip();
parent.mc.createEmptyMovieClip("M" + this.id, this.id + 9050);
this.mmc = parent.mc["M" + this.id];
this.mmc._x = this.xpos;
this.mmc._y = this.ypos;
this.content = newText;
this.buildText();
};
this.buildText();
};
FS_Letter = function (parent, id, content, xpos, ypos, anim, seed, totoffset, ml) {
this.id = id;
this.parent = parent;
this.letter = int(content);
this.follow = follow;
this.anim = anim;
this.seed = seed + totoffset;
parent.mmc.createEmptyMovieClip("L" + id, id + 100);
this.lmc = parent.mmc["L" + id];
this.lmc.attachMovie("FS_F1", "l" + id, id + 1000);
this.lmc._x = xpos;
this.lmc._y = ypos;
this.xpos = xpos;
this.ypos = ypos;
this.lmc["l" + id].gotoAndStop(content);
this.time = seed;
this.tx = (xpos + int(Math.random() * 10)) - 5;
this.ty = (ypos + int(Math.random() * 10)) - 5;
this.transCur = 0;
this.messageLength = ml;
this.totoffset = totoffset;
if (anim == 10) {
this.lmc._visible = false;
}
this.SetLetter = function (letter) {
this.lmc["l" + id].gotoAndStop(letter);
};
this.Animate = function () {
if (!this.trans) {
switch (this.anim) {
case 1 :
this.lmc._y = this.ypos + (2 * Math.sin(this.time));
break;
case 2 :
if (this.time % 2) {
this.lmc._x = this.xpos + int((Math.random() * 6) - 3);
this.lmc._y = this.ypos + int((Math.random() * 6) - 3);
}
break;
case 3 :
if ((this.lmc._x == this.tx) && (this.lmc._y == this.ty)) {
this.tx = (this.xpos + int(Math.random() * 6)) - 3;
this.ty = (this.ypos + int(Math.random() * 6)) - 3;
}
if (this.lmc._x < this.tx) {
this.lmc._x++;
} else if (this.lmc._x > this.tx) {
this.lmc._x--;
}
if (this.lmc._y < this.ty) {
this.lmc._y++;
} else if (this.lmc._y > this.ty) {
this.lmc._y--;
}
break;
case 4 :
if (this.time % 2) {
this.time2++;
}
this.lmc._x = this.xpos + (8 * Math.sin(this.time2));
this.lmc._y = this.ypos + Math.abs(8 * Math.sin(this.time2));
if (!this.dir) {
this.dir = 4;
}
this.rotMe = this.rotMe + (this.dir * 1);
if (this.rotMe >= 10) {
this.dir = -4;
} else if (this.rotMe <= -10) {
this.dir = 4;
}
this.lmc._rotation = this.rotMe;
break;
case 5 :
if (!this.init) {
this.init = true;
this.bounce = false;
}
if (!this.bounce) {
test = int(Math.random() * 100);
this.lmc._xscale = 100;
this.lmc._yscale = 100;
if (test < 5) {
this.bounce = true;
this.vy = -5;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
}
} else if ((this.lmc._y + this.vy) <= this.ypos) {
this.lmc._y = this.lmc._y + this.vy;
this.lmc._xscale = 90;
this.lmc._yscale = 110;
this.vy++;
} else {
this.lmc._y = this.ypos;
this.bounce = false;
this.lmc._xscale = 110;
this.lmc._yscale = 90;
this.vy = 0;
}
break;
case 6 :
if (!this.change) {
this.change = -10;
}
this.lmc._xscale = this.lmc._xscale + this.change;
if (this.lmc._xscale < -90) {
this.change = 10;
} else if (this.lmc._xscale > 90) {
this.change = -10;
}
break;
case 7 :
this.lmc._rotation = (20 * Math.sin(this.time / 2)) + this.seed;
break;
case 8 :
this.lmc._x = this.xpos + (4 * Math.sin(this.time));
break;
case 9 :
if (!this.init) {
this.init = true;
this.ta = int(Math.random() * 80) + 20;
this.lmc._alpha = 90;
} else {
diff = this.ta - this.lmc._alpha;
if (Math.abs(diff) < 5) {
this.ta = int(Math.random() * 80) + 20;
} else if (diff > 0) {
this.lmc._alpha = this.lmc._alpha + 4;
} else {
this.lmc._alpha = this.lmc._alpha - 4;
}
}
break;
case 10 :
if (this.seed > _root.ftime) {
this.lmc._visible = false;
} else if (!this.init) {
this.lmc._visible = true;
this.scaleval = 300;
this.dx = this.xpos;
this.lmc._x = this.xpos + this.dx;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
this.init = true;
} else if ((this.seed + 6) > _root.ftime) {
this.lmc._x = this.lmc._x - (this.dx / 5);
this.scaleval = this.scaleval - 40;
this.lmc._xscale = this.scaleval;
this.lmc._yscale = this.scaleval;
} else {
if ((this.seed + 12) <= _root.ftime) {
break;
}
}
}
} else {
switch (this.transCur) {
case 5 :
if (this.init2 && (this.vy < 50)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.vy++;
} else if (!this.init2) {
this.init2 = true;
this.vy = -1 * int(Math.random() * 15);
this.vx = int(Math.random() * 6) - 3;
} else {
this.lmc["l" + id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
} else {
this.trans = false;
this.init2 = false;
}
}
break;
case -3 :
if (this.transTime > 0) {
if (!this.sett) {
this.lmc["l" + this.id].gotoAndStop(int(Math.random() * 40));
this.transTime--;
if (int(Math.random() * 100) > 65) {
this.sett = true;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
} else {
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
if (this.transition == 1) {
this.transCur = this.transSecond;
this.init2 = false;
this.transition = 2;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
} else {
this.trans = false;
this.init2 = false;
this.lmc["l" + this.id].gotoAndStop(this.newLetter);
}
}
case -5 :
if (this.init2 && (this.transTime > 0)) {
this.lmc._x = this.lmc._x + this.vx;
this.lmc._y = this.lmc._y + this.vy;
this.transTime--;
} else if (!this.init2) {
this.vx = (-(this.lmc._x - this.xpos)) / this.transTime;
this.vy = (-(this.lmc._y - this.ypos)) / this.transTime;
this.init2 = true;
} else if (this.transition == 1) {
this.transition = 2;
this.init2 = false;
this.transCur = this.transSecond;
} else {
this.trans = false;
this.init2 = false;
}
}
}
this.time++;
};
};
if (!instagib) {
txtChooseWeap = FS.AddMessage("CHOOSE WEAPON", 25, 30, 0, ALIGN_LEFT, 0, 0, weaponsel);
txtChooseWeap.AbsScaleMessage(80, 80);
weaponChosen = 0;
} else {
weaponChosen = 3;
}
if (matchid == 1) {
txtleader.gotoAndStop(2);
}
txtRM = FS.AddMessage("MAIN MENU", 90, 225, 0, ALIGN_CENTER, 0, 0, winScreen);
txtRM.AbsScaleMessage(60, 60);
txtRM.MakeButton("titlescreen");
bodyparts = ["body", "hand1", "hand2", "foot1", "foot2", "gun", "jetpack"];
daway = [0, 27, 32, 41, 43, 0, 0];
dout = 30;
maxkills = dmatchWin[contextid];
endgameinit = false;
if (matchid == 1) {
respawnTime = 96;
} else if (matchid == 2) {
redflag = allcl.attachMovie("theflag", "f1", 8000);
redbase = allcl.attachMovie("flagbase", "b1", 8002);
redbase._x = 100;
redbase._y = 250;
redflag._x = 100;
redflag._y = 250;
redflag.otype = cFLAG;
redflag.txt = hud.redscore;
blueflag = allcl.attachMovie("theflag", "f2", 8001);
bluebase = allcl.attachMovie("flagbase", "b2", 8003);
bluebase._x = scrollMax - 100;
bluebase._y = 250;
blueflag._x = scrollMax - 100;
blueflag._y = 250;
blueflag.gotoAndStop(2);
blueflag.otype = cFLAG;
blueflag.txt = hud.bluescore;
respawnTime = 96;
} else if (matchid == 3) {
clockhq = allcl.attachMovie("hq", "chq", 95);
clockhq._x = 900;
clockhq._y = 352;
startT = getTimer() + (dbTime[contextid] * 60000);
respawnTime = 96;
} else if (matchid == 4) {
respawnTime = 96;
}
spawnplayed = false;
Stats = function (myName, myTeam) {
this.pname = myName;
this.team = myTeam;
this.points = 0;
this.kills = 0;
this.deaths = 0;
};
allstats = new Array();
noTeam = new Array();
setupGame();
cursor._x = _xmouse;
cursor._y = _ymouse;
onEnterFrame = function () {
if (!gamepaused) {
if (endgame) {
endgameHandler();
} else {
moveBullets();
a = 0;
while (a < maxEnemies) {
CPU_AI(enemies[a]);
a++;
}
if (matchid == 3) {
updateTimer();
}
spawnplayed = false;
tintObject(0, 0, 0, cl);
tintObject(0, 0, 0, clockhq);
if (cl.dead) {
if (cl.jetInit) {
stopSound(S_JETPACK);
cl.jetInit = false;
}
deathHandler(cl);
} else {
updateHealth(cl, -0.25, null);
anim = "idle";
if (Key.isDown(keyset[4])) {
if (!cl.jumping) {
anim = "walk";
}
moveRight(cl);
} else if (Key.isDown(keyset[3])) {
if (!cl.jumping) {
anim = "walk";
}
moveLeft(cl);
}
if (Key.isDown(keyset[1])) {
if (!cl.jumping) {
cl.vy = cl.vy - 10;
if (cl.vx > 0) {
cl.vx = cl.vx + 5;
} else {
cl.vx = cl.vx - 5;
}
cl.jumping = true;
playSound(S_JUMP);
}
}
if (Key.isDown(keyset[2])) {
cl.jumping = true;
if (!cl.jetInit) {
cl.jetInit = true;
playSound(S_JETPACK, 500);
}
if (cl.jetbar <= 0) {
stopSound(S_JETPACK);
}
jetpackHandler(cl, true, true);
} else {
if (cl.jetInit) {
stopSound(S_JETPACK);
cl.jetInit = false;
}
jetpackHandler(cl, false, true);
}
if (cl.jumping && (cl.jetbar > 0)) {
anim = "jump";
}
if (cl.jetInit && (cl.jetbar > 0)) {
anim = "jet";
}
var _local4 = {x:cl._x, y:cl._y};
allcl.localToGlobal(_local4);
var _local3 = {x:cursor._x, y:cursor._y};
_root.localToGlobal(_local3);
bodyMove(cl, cursor, _local4, _local3, anim, 0);
cl.shootagain--;
if (cl.shootagain == 0) {
if (cl.bulletsleft <= 0) {
cl.bulletsleft = cl.weapon.numbullets;
}
hud.ammobar.gotoAndStop(1);
hud.ammobar.bullets.text = cl.bulletsleft;
} else if (shooting && (cl.shootagain < 0)) {
shoot(cl, cRED, cBULLET);
}
if ((Key.isDown(keyset[6]) && (cl.bulletsleft > 0)) && (cl.bulletsleft != cl.weapon.numbullets)) {
var _local2 = cl.weapon;
cl.shootagain = _local2.reloadtime;
if (reloadCheat) {
cl.shootagain = 1;
}
hud.ammobar.gotoAndStop(2);
cl.bulletsleft = 0;
playSound(_local2.sreload, _local2.reloadt, cl);
}
if (cl.nadesleft > 0) {
if ((((!disableGrenades) && (--cl.grenadeagain)) < 0) && (Key.isDown(keyset[5]))) {
hud.nades.nextFrame();
shoot(cl, cRED, cGRENADE);
}
}
}
moveNCollision(cl, true, 27, false);
if (matchid == cCAPTURETHEFLAG) {
flagHandler();
}
}
}
};
blll = 200;
fi = 0;
xpid = 0;
MouseHandler = new Object();
MouseHandler.onMouseMove = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
xm = _xmouse;
};
MouseHandler.onMouseDown = function () {
shooting = true;
};
MouseHandler.onMouseUp = function () {
shooting = false;
};
Mouse.addListener(MouseHandler);
stop();
keyHandler = new Object();
keyHandler.onKeyDown = function () {
if (!displayingStats) {
var _local1 = Key.getCode();
if ((_local1 == keyset[7]) && ((!weaponsel._visible) || (instagib))) {
displayingStats = true;
displayStats();
}
}
};
keyHandler.onKeyUp = function () {
if (displayingStats && (!endgame)) {
stats.removeMovieClip();
txtGS.delMessage();
displayingStats = false;
}
};
Key.addListener(keyHandler);
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 11
stop();
Symbol 38 MovieClip [hq] Frame 1
stop();
Symbol 41 MovieClip [grnd] Frame 1
stop();
Symbol 47 MovieClip [shot] Frame 1
stop();
Symbol 64 MovieClip [statsline] Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 137 MovieClip [bullethole] Frame 73
removeMovieClip(this);
Symbol 145 MovieClip [fade] Frame 6
removeMovieClip(this);
Symbol 168 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 8
stop();
Symbol 210 MovieClip [theflag] Frame 1
stop();
Symbol 222 MovieClip Frame 1
flashfile._rotation = flashfile._rotation + (random(358) + 2);
Symbol 223 MovieClip Frame 1
gotoAndPlay(random(39) + 1);
Symbol 223 MovieClip Frame 41
gotoAndPlay(random(18) + 41);
Symbol 223 MovieClip Frame 60
gotoAndPlay (2);
Symbol 247 MovieClip Frame 20
gotoAndPlay (1);
Symbol 252 MovieClip Frame 20
gotoAndPlay (1);
Symbol 254 MovieClip Frame 1
half1._rotation = (_root.getBytesLoaded() / _root.getBytesTotal()) * 360;
if (((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) >= 180) {
gotoAndPlay (3);
}
Symbol 254 MovieClip Frame 2
half1._rotation = (_root.getBytesLoaded() / _root.getBytesTotal()) * 360;
if (((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) >= 180) {
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 254 MovieClip Frame 3
half1._rotation = 180;
half2._rotation = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) - 180;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
half2._rotation = 180;
}
Symbol 254 MovieClip Frame 4
half1._rotation = 180;
half2._rotation = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) - 180;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
half2._rotation = 180;
}
gotoAndPlay (3);
Symbol 263 MovieClip Frame 1
textloaded = ((Math.round(_root.getBytesLoaded() * 0.000872) + "/") + Math.round(_root.getBytesTotal() * 0.000872)) + "Kb";
if (Math.round(_root.getBytesTotal() * 0.000872) > 999) {
textloaded = (((Math.round((_root.getBytesLoaded() * 0.9213) / 10000) / 100) + "/") + (Math.round((_root.getBytesTotal() * 0.9213) / 10000) / 100)) + "Mb";
}
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent._parent.play();
}
Symbol 263 MovieClip Frame 2
textloaded = ((Math.round(_root.getBytesLoaded() * 0.000872) + "/") + Math.round(_root.getBytesTotal() * 0.000872)) + "Kb";
if (Math.round(_root.getBytesTotal() * 0.000872) > 999) {
textloaded = (((Math.round((_root.getBytesLoaded() * 0.9213) / 10000) / 100) + "/") + (Math.round((_root.getBytesTotal() * 0.9213) / 10000) / 100)) + "Mb";
}
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent._parent.play();
}
Symbol 274 MovieClip Frame 1
areacolor = new Color(area);
areacolor.setRGB(_parent._parent.randomcolor);
Symbol 277 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stripe1.play();
Symbol 281 MovieClip Frame 2
stripe2.play();
Symbol 281 MovieClip Frame 3
stripe3.play();
Symbol 281 MovieClip Frame 4
stripe4.play();
Symbol 281 MovieClip Frame 5
stripe5.play();
Symbol 281 MovieClip Frame 6
stripe6.play();
Symbol 281 MovieClip Frame 7
stripe7.play();
Symbol 281 MovieClip Frame 8
stripe8.play();
Symbol 281 MovieClip Frame 9
stripe9.play();
Symbol 281 MovieClip Frame 10
stripe10.play();
Symbol 281 MovieClip Frame 11
stripe11.play();
Symbol 281 MovieClip Frame 12
stripe12.play();
Symbol 281 MovieClip Frame 13
stripe13.play();
Symbol 281 MovieClip Frame 14
stripe14.play();
Symbol 281 MovieClip Frame 15
stripe15.play();
Symbol 281 MovieClip Frame 16
stripe16.play();
Symbol 281 MovieClip Frame 17
stripe17.play();
Symbol 281 MovieClip Frame 18
stripe18.play();
stop();
Symbol 283 Button
on (release) {
_parent.play();
nextFrame();
}
Symbol 284 MovieClip Frame 1
randomcolor = random(16777215);
skycolor = new Color(sky);
skycolor.setRGB(randomcolor);
stop();
Symbol 284 MovieClip Frame 13
stop();
Symbol 284 MovieClip Frame 14
stop();
Symbol 288 Button
on (release) {
getURL ("http://www.clockcrew.cc", _blank);
}
Symbol 289 MovieClip Frame 1
_root.stop();
Symbol 289 MovieClip Frame 3
if (this._framesloaded > 30) {
play();
} else {
gotoAndPlay (2);
}
Symbol 289 MovieClip Frame 16
_quality = "MEDIUM";
Symbol 289 MovieClip Frame 28
_quality = "HIGH";
Symbol 289 MovieClip Frame 29
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
logo.gotoAndPlay(6);
gotoAndStop ("done");
}
Symbol 289 MovieClip Frame 30
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
logo.gotoAndPlay(6);
gotoAndStop ("done");
}
gotoAndPlay ("reload");
Symbol 289 MovieClip Frame 32
_quality = "MEDIUM";
Symbol 289 MovieClip Frame 44
_quality = "HIGH";
Symbol 289 MovieClip Frame 61
_root.play();
stop();
Symbol 294 Button
on (release) {
_root.getURL("http://www.clockcrew.cc", "_blank");
}
Symbol 299 Button
on (release) {
_root.getURL("http://newgrounds.com/collection/clockday2006.html", "_blank");
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
x = new Date();
y = x.getSeconds();
z = x.getHours();
setProperty(this.secondhand, _rotation , y * 6);
setProperty(this.minutehand, _rotation , x.getMinutes() * 6);
if (z > 12) {
z = z - 12;
}
setProperty(this.hourhand, _rotation , (z * 30) + (x.getMinutes() / 2));
Symbol 506 MovieClip Frame 2
x = new Date();
y = x.getSeconds();
z = x.getHours();
setProperty(this.secondhand, _rotation , y * 6);
setProperty(this.minutehand, _rotation , x.getMinutes() * 6);
if (z > 12) {
z = z - 12;
}
setProperty(this.hourhand, _rotation , (z * 30) + (x.getMinutes() / 2));
Symbol 569 MovieClip Frame 1
rj = new Date();
setProperty(this, _rotation , rj.getHours() * "30");
gotoAndPlay (2);
Symbol 570 MovieClip Frame 1
mydate = new Date();
setProperty(this, _rotation , mydate.getSeconds() * "6");
Symbol 720 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 1
mydate = new Date();
this._rotation = mydate.getMinutes() * "6";
Symbol 732 MovieClip Frame 1
rj = new Date();
this._rotation = rj.getHours() * "30";
gotoAndPlay (2);
Symbol 733 MovieClip Frame 1
mydate = new Date();
this._rotation = mydate.getSeconds() * "6";
Symbol 767 MovieClip Frame 1
stop();
Instance of Symbol 720 MovieClip "this" in Symbol 767 MovieClip Frame 57
onClipEvent (enterFrame) {
x = random(60);
if (x == 1) {
play();
}
}
Symbol 827 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 32
gotoAndPlay ("start");
Symbol 847 MovieClip [clock] Frame 1
stop();
Instance of Symbol 210 MovieClip [theflag] "flag" in Symbol 847 MovieClip [clock] Frame 1
onClipEvent (load) {
if (!_parent._parent._parent._parent.hasFlag) {
_visible = false;
}
if (_parent._parent._parent._parent.team == 2) {
gotoAndStop (2);
}
}
Instance of Symbol 210 MovieClip [theflag] "flag" in Symbol 847 MovieClip [clock] Frame 3
onClipEvent (load) {
if (!_parent._parent._parent._parent.hasFlag) {
_visible = false;
}
if (_parent._parent._parent._parent.team == 2) {
gotoAndStop (2);
}
}
Symbol 865 MovieClip [explosion] Frame 17
stop();
removeMovieClip(this);
Symbol 874 MovieClip [FS_F1] Frame 1
stop();
Symbol 878 MovieClip [grenade] Frame 1
stop();
Symbol 878 MovieClip [grenade] Frame 2
_rotation = 0;
Symbol 878 MovieClip [grenade] Frame 18
removeMovieClip(this);
Symbol 881 MovieClip [rocket] Frame 1
stop();
Instance of Symbol 880 MovieClip "x" in Symbol 881 MovieClip [rocket] Frame 1
onClipEvent (enterFrame) {
}
Symbol 881 MovieClip [rocket] Frame 2
_rotation = 0;
Symbol 881 MovieClip [rocket] Frame 18
removeMovieClip(this);
Symbol 890 MovieClip Frame 1
stop();
Symbol 895 MovieClip [wsel] Frame 1
stop();
Instance of Symbol 890 MovieClip in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
if (_currentframe == 1) {
gotoAndStop (2);
_root.gamepaused = true;
_root.pauseStart = getTimer();
} else {
gotoAndStop (1);
_root.gamepaused = false;
_root.startTime = _root.startTime + (getTimer() - _root.pauseStart);
_root.startT = _root.startT + (getTimer() - _root.pauseStart);
}
}
Instance of Symbol 893 MovieClip "w4" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 4;
_parent.w4._alpha = 100;
}
Instance of Symbol 893 MovieClip "w5" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 5;
_parent.w5._alpha = 100;
}
Instance of Symbol 893 MovieClip "w6" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 6;
_parent.w6._alpha = 100;
}
Instance of Symbol 893 MovieClip "w1" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 1;
_parent.w1._alpha = 100;
}
Instance of Symbol 893 MovieClip "w2" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 2;
_parent.w2._alpha = 100;
}
Instance of Symbol 893 MovieClip "w3" in Symbol 895 MovieClip [wsel] Frame 1
on (release) {
_parent["w" + _root.weaponChosen]._alpha = 0;
_root.weaponChosen = 3;
_parent.w3._alpha = 100;
}
Symbol 907 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 929 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 1
stop();