Frame 1
Stage.showmenu = false;
Stage.width = 600;
Stage.height = 400;
Stage.scaleMode = "exactFit";
sendScoreURL = "";
loadMovieNum ("http://uploads.ungrounded.net/userassets/127000/127740/mrsound.swf", 1);
Frame 2
stop();
lowlevel = 1;
level = 100000 /* 0x0186A0 */;
highlevel = 1000000 /* 0x0F4240 */;
detail = 2;
ai = true;
allwaysinvincible = false;
infbt = false;
armlength = 1;
Instance of Symbol 6 MovieClip "pbar" in Frame 2
onClipEvent (enterFrame) {
_xscale = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.p = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
}
Instance of Symbol 6 MovieClip "sbar" in Frame 2
onClipEvent (enterFrame) {
t = (_root.t = _level1.getBytesTotal());
if (t > 0) {
l = _level1.getBytesLoaded();
_xscale = ((_root.sp = Math.round((l / t) * 100)));
tom._visible = false;
} else {
_xscale = 0;
}
}
Instance of Symbol 11 MovieClip in Frame 2
onClipEvent (enterFrame) {
show = _root.p;
_x = (_root.pbar._x + _root.pbar._width);
}
Instance of Symbol 11 MovieClip in Frame 2
onClipEvent (enterFrame) {
show = _root.sp;
_x = (_root.sbar._x + _root.sbar._width);
}
Instance of Symbol 6 MovieClip "gbar" in Frame 2
onClipEvent (enterFrame) {
scale = Math.round(_root.p * 1.8);
if (scale > 100) {
scale = 100;
}
_xscale = scale;
_root.gp = scale;
}
Instance of Symbol 11 MovieClip in Frame 2
onClipEvent (enterFrame) {
show = _root.gp;
_x = (_root.gbar._x + _root.gbar._width);
}
Instance of Symbol 15 MovieClip in Frame 2
onClipEvent (enterFrame) {
show = _root.tloaded;
_x = (_root.tbar._x + _root.tbar._width);
}
Instance of Symbol 16 MovieClip "tbar" in Frame 2
onClipEvent (enterFrame) {
if (_root.t > 0) {
if (!hasinit) {
hasinit = true;
r = _root.getBytesTotal();
t = _root.t;
tsize = r + t;
_root.showsize = ("[" + Math.round(tsize / 1000)) + "k]";
l0 = r / tsize;
l1 = t / tsize;
}
_xscale = Math.round((_root.sp * l1) + (_root.p * l0));
_root.tloaded = Math.round((_root.sp * l1) + (_root.p * l0));
if (_root.tloaded == 100) {
_root.loadok = true;
timer++;
if (timer == 2) {
_root.gotoAndStop("flecko");
}
}
} else {
_xscale = 0;
}
}
Instance of Symbol 20 MovieClip "mmanager" in Frame 2
onClipEvent (load) {
function fade(vol) {
vt = vol;
}
function setvol(vol) {
vt = (volume = vol);
}
_visible = false;
hasloaded = true;
volume = (vt = 100);
song = "splitmek";
}
onClipEvent (enterFrame) {
if (_root.usemusic) {
if (Math.abs(volume - vt) < 5) {
volume = vt;
} else if (volume > vt) {
volume = volume - 5;
} else if (volume < vt) {
volume = volume + 5;
}
} else {
volume = 0;
}
if (_root.songname == "splitmek") {
_root.splitmek1.setVolume(volume);
_root.splitmek2.setVolume(volume);
_root.splitmek3.setVolume(volume);
_root.splitmek4.setVolume(volume);
} else if (_root.songname == "monks") {
_root.monks1.setVolume(volume);
_root.monks2.setVolume(volume);
_root.monks3.setVolume(volume);
_root.monks4.setVolume(volume);
_root.monks5.setVolume(volume);
_root.monks6.setVolume(volume);
} else if (_root.songname == "lookdown") {
_root.lookdown1.setVolume(volume);
_root.lookdown2.setVolume(volume);
_root.lookdown3.setVolume(volume);
_root.lookdown4.setVolume(volume);
_root.lookdown5.setVolume(volume);
_root.lookdown6.setVolume(volume);
}
if (_root._currentframe == 3) {
timer++;
if (timer == 2) {
_root.initmusic();
}
}
}
Frame 3
function ssURL() {
return(sendScoreURL + totalScore);
}
function endGame() {
stopAllSounds();
_root.dopause();
Mouse.show();
_root.newmenu(150, 155, 300, 90, "Game over", _root.endOfGame);
}
function makeBox(x, y) {
_root.level++;
duplicateMovieClip (touchBox, "touchBox" + _root.level, _root.level);
tb = eval ("_root.touchbox" + _root.level);
tb._x = x;
tb._y = y;
tb.gen = false;
}
function reload() {
ammoval = _root.ammo[_root.player.guntype - 1];
if (ammoval > 0) {
_root.player.hand.ammo = ammoval;
_root.clip.unloadgun();
_root.clip.loadgun(_root.player.guntype, ammoval);
}
_root.player.hand.resammo = _root.ammo[_root.player.hand.resgun - 1];
}
function endScene() {
dopause();
Mouse.show();
stopAllSounds();
_root.newmenu(152, 25, 296, 350, "Scene Complete!", _root.levelUpChoice);
}
function timeToString(frameTime, htime) {
partsecs = Math.round(((frameTime % 30) / 30) * 100);
secs = (frameTime - (frameTime % 30)) / 30;
mins = (secs - (secs % 60)) / 60;
secs = secs % 60;
hours = (mins - (mins % 60)) / 60;
mins = mins % 60;
if (partsecs < 10) {
partsecs = "0" + partsecs;
}
if (secs < 10) {
secs = "0" + secs;
}
if (mins < 10) {
mins = "0" + mins;
}
baseReturn = (((mins + ":") + secs) + ".") + partsecs;
if (htime != false) {
return((hours + ":") + baseReturn);
}
return(baseReturn);
}
function getPower(id) {
switch (id) {
case 0 :
_root.player.health = Math.min(_root.player.health + 5, 10);
return;
case 1 :
_root.gunDamageScalar = _root.gunDamageScalar + 0.3;
return;
case 2 :
_root.hitDamageScalar = _root.hitDamageScalar + 0.3;
return;
case 3 :
_root.speedScalar = _root.speedScalar + 0.3;
return;
case 4 :
_root.bulletTimeScalar = _root.bulletTimeScalar * 0.7;
return;
case 5 :
_root.bulletSpeedScalar = _root.bulletSpeedScalar * 0.7;
return;
case 6 :
i = 0;
while (i < _root.trueammo.length) {
_root.trueammo[i] = _root.trueammo[i] * 1.1;
_root.ammo[i] = Math.round(_root.trueammo[i]);
i++;
}
return;
case 7 :
_root.goldenBullet = true;
return;
case 8 :
_root.aLittleExtreme = true;
return;
case 9 :
_root.flareGun = true;
return;
case 10 :
_root.sharpshooter = true;
return;
case 11 :
_root.lives++;
return;
case 12 :
_root.player.hand.r = _root.player.hand.r + 10;
return;
case 13 :
_root.jetLowInertia = true;
return;
case 14 :
_root.downToEarth = true;
return;
}
}
function clearstats() {
numkilled = 0;
shotsfired = 0;
enemies_hit = 0;
activeguys = 0;
activeen = 0;
score = 0;
totaltime = 0;
kstring = 0;
maxstring = 0;
hmndeaths = 0;
gtime = "";
adisp = 0;
rating = 0;
}
function setsong(song_ref, init_loops, mysongname) {
csong.stop();
song_ref.start(0, init_loops);
csong = song_ref;
cloops = init_loops;
songname = mysongname;
trace("SET SONG " + mysongname);
}
function getsong() {
csong.start(0, cloops);
}
function getname(i) {
if (i == 16) {
kst = "Shift";
} else if (i == 37) {
kst = "Left";
} else if (i == 38) {
kst = "Up";
} else if (i == 39) {
kst = "Right";
} else if (i == 40) {
kst = "Down";
} else if (i == 13) {
kst = "Enter";
} else if (i == 32) {
kst = "Space";
} else if (i == 33) {
kst = "PageUp";
} else if (i == 34) {
kst = "PageDn";
} else if (i == 35) {
kst = "End";
} else if (i == 36) {
kst = "Home";
} else if (i == 45) {
kst = "Insert";
} else if (i == 46) {
kst = "Delete";
} else if (i == 8) {
kst = "Backspc";
} else if (i == 17) {
kst = "Ctrl";
} else {
kst = String.fromCharCode(i);
}
return(kst);
}
function eog() {
shutter.removeMovieClip();
gotoAndStop (7);
}
function mtest(type) {
return(((type > 10) && (type < 14)) || ((type > 24) && (type != 28)));
}
function makecollider(x, y, type) {
level++;
duplicateMovieClip (collider, "col" + level, level);
col = eval ("col" + level);
col._x = x;
col._y = y;
col.type = type;
col.gen = false;
}
function setcostume(setname) {
_root.cset = setname;
}
function setceil(iceil, iisceil) {
ceil = iceil;
isceil = iisceil;
}
function setwalls(imin, iminwall, imax, imaxwall) {
min = imin;
minwall = iminwall;
max = imax;
maxwall = imaxwall;
player._x = minwall + 30;
player.f = 1;
}
function clearpickups() {
trace("CLEAR PICKUPS");
i = pickups.length - 1;
while (i >= 0) {
trace(" CP " + i);
pickups[i].remove();
i--;
}
}
function sethud(message) {
hud = message;
}
function setai(aiswitch) {
ai = aiswitch;
}
function setbg(bgnum) {
bg.gotoAndStop(bgnum);
}
function setground(groundpos) {
ground = groundpos;
}
function dopause() {
pause = true;
}
function unpause(sc) {
pause = false;
if (!sc) {
getsong();
}
}
function ret() {
gotoAndStop (5);
}
function bloodspray(x, y) {
z = 0;
while (z < (_root.detail * 4)) {
level++;
duplicateMovieClip (spray, "spray" + level, level);
sp = eval ("spray" + level);
sp._x = (x - 10) + (Math.random() * 20);
sp._y = (y - 10) + (Math.random() * 20);
sp._rotation = Math.random() * 360;
if (Math.random() < 0.5) {
sp.gotoAndPlay("m1");
} else {
sp.gotoAndPlay("m2");
}
z++;
}
}
function explode(x, y) {
level++;
duplicateMovieClip (explosion, "ex" + level, level);
exp = eval ("ex" + level);
exp._x = x;
exp._y = y;
exp.gen = false;
if (runspeed == 1) {
ex.start();
} else {
lowexp.start();
}
didgib = false;
i = 0;
while (i < targets.length) {
t = targets[i];
if (!t.nonplayer) {
xd = t._x - x;
yd = t._y - y;
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 200) {
ud = 200 - d;
damage = ud / 25;
t.health = t.health - (ud / 25);
if (t.hmn) {
_root.sceneScore = _root.sceneScore - damage;
} else {
_root.sceneScore = _root.sceneScore + damage;
}
if (t._x > x) {
k = 1;
} else {
k = -1;
}
xfc = (k * ud) / 5;
yfc = (-ud) / 10;
if (t.usejetpack) {
t.jxv = t.jxv + xfc;
t.jyv = t.jyv + yfc;
}
t.force = xfc;
t.yforce = yfc;
t.head.force = (((-k) * t.f) * ud) / 5;
t.body.force = ((k * t.f) * ud) / 5;
if (t.health < 0) {
t.dying = 1;
t.rspeed = k;
if (d < 150) {
didgib = true;
if (xd > 0) {
xv = (150 - xd) / 6;
} else {
xv = (-150 - xd) / 6;
}
_root.level++;
duplicateMovieClip (_root.bodygib, "gib" + _root.level, _root.level);
gib = eval ("_root.gib" + _root.level);
gib.gen = false;
gib._x = t._x;
gib._y = t._y;
gib._xscale = t._xscale;
gib.xv = xv;
if (((t.f == -1) && (x > t._x)) || ((t.f == 1) && (x < t._x))) {
gib.gotoAndStop(2);
}
gib.id = giblets.length;
giblets[giblets.length] = gib;
_root.level++;
duplicateMovieClip (_root.headgib, "gib" + _root.level, _root.level);
gib = eval ("_root.gib" + _root.level);
gib._x = t._x;
gib._y = t._y - 55;
gib._xscale = t._xscale;
gib._rotation = 0;
gib.xv = xv;
gib.yv = (-(150 - yd)) / 12;
gib.rv = ((Math.random() * 2) * gib.yv) - gib.yv;
gib.gen = false;
if (((t.f == -1) && (x > t._x)) || ((t.f == 1) && (x < t._x))) {
gib.gotoAndStop(2);
}
gib.id = giblets.length;
giblets[giblets.length] = gib;
n = 0;
while (n < (_root.detail * 3)) {
_root.level++;
duplicateMovieClip (_root.chunk, "chunk" + _root.level, _root.level);
ch = eval ("_root.chunk" + _root.level);
ch._x = (t._x - 10) + (Math.random() * 20);
ch._y = (t._y - 10) - (Math.random() * 60);
ch.xv = -10 + (Math.random() * 10);
ch.yv = (-Math.random()) * 10;
ch.rv = (Math.random() * 14) - 7;
ch.gen = false;
n++;
}
bloodspray(t._x, t._y - 40);
t.hand.txc = xv * t.hand.fdir;
t.hand.tyc = (yd - 40) / 4;
t.hand.hv = d / 4;
if (t.guntype > 1) {
t.hand.dropgun();
}
t.remove();
t.esc();
i--;
}
}
}
}
i++;
}
i = 0;
while (i < giblets.length) {
g = giblets[i];
xd = g._x - x;
yd = g._y - y;
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 100) {
n = 0;
while (n < (_root.detail * 3)) {
_root.level++;
duplicateMovieClip (_root.chunk, "chunk" + _root.level, _root.level);
ch = eval ("_root.chunk" + _root.level);
ch._x = (g._x - 10) + (Math.random() * 20);
ch._y = (g._y - 10) - (Math.random() * 60);
ch.xv = -10 + (Math.random() * 10);
ch.yv = (-Math.random()) * 10;
ch.rv = (Math.random() * 14) - 7;
ch.gen = false;
n++;
}
bloodspray(g._x, g._y - 40);
g.remove();
}
i++;
}
}
function givebtr(amt) {
btr = btr + (amt * 0.7);
obj = btrbar.bar;
ct = obj.trans.ra + (amt * 10);
obj.trans.ra = (obj.trans.ga = (obj.trans.ba = ct));
}
function newmenu(x, y, w, h, headertext, list) {
mid = menus.length;
menus[mid] = new Array();
sto = menus[mid];
by = y + 20;
divheight = h - 40;
divlist = 0;
i = 0;
while (i < list.length) {
if (list[i][0] == 3) {
divheight = divheight - list[i][3]._height;
} else {
divlist++;
}
i++;
}
divsize = divheight / divlist;
sbuffer = divsize * 0.1;
sscale = divsize * 0.8;
ux = x + 10;
uy = y + 10;
uw = w - 20;
uh = h - 20;
tw = headertext.length * 8.5;
pxs = new Array(ux, ux + uw, ux + uw, ux);
pys = new Array(uy, uy, uy + uh, uy + uh);
i = 0;
while (i < 4) {
level++;
duplicateMovieClip (mcorner, "corner" + level, level);
uc = eval ("_root.corner" + level);
uc._x = pxs[i];
uc._y = pys[i];
uc._rotation = i * 90;
sto[sto.length] = uc;
if (i > 0) {
level++;
duplicateMovieClip (mline, "line" + level, level);
ul = eval ("line" + level);
ul._x = pxs[i];
ul._y = pys[i];
ul._rotation = i * 90;
if (i == 2) {
ul._xscale = uw;
} else {
ul._xscale = uh;
}
sto[sto.length] = ul;
}
i++;
}
i = 0;
while (i < 2) {
level++;
duplicateMovieClip (mend, "mend" + level, level);
ue = eval ("mend" + level);
ue._y = uy;
if (i == 0) {
ue._x = ux + 10;
} else {
ue._x = (ux + tw) + 22;
}
sto[sto.length] = ue;
level++;
duplicateMovieClip (mline, "mline" + level, level);
uhl = eval ("mline" + level);
uhl._y = uy;
if (i == 0) {
uhl._x = ux;
uhl._xscale = 10;
} else {
uhl._x = (ux + tw) + 24;
uhl._xscale = (uw - 24) - tw;
}
sto[sto.length] = uhl;
i++;
}
level++;
duplicateMovieClip (mtbox, "tb" + level, level);
tb = eval ("tb" + level);
tb._x = ux + 12;
tb._y = uy;
tb._xscale = tw + 10;
sto[sto.length] = tb;
level++;
duplicateMovieClip (mhtext, "text" + level, level);
uht = eval ("text" + level);
uht._x = ux + 17;
uht._y = uy;
uht.disp = headertext;
sto[sto.length] = uht;
level++;
duplicateMovieClip (mfill, "fill" + level, level);
uf = eval ("fill" + level);
uf._xscale = uw - 20;
uf._yscale = uh - 20;
uf._x = ux + 10;
uf._y = uy + 10;
sto[sto.length] = uf;
i = 0;
while (i < list.length) {
ltype = list[i][0];
if (ltype == 3) {
topspace = 10 * (i != 0);
botspace = 10 * (i != (list.length - 1));
level++;
duplicateMovieClip (list[i][3], "mobj" + level, level);
mo = eval ("mobj" + level);
mo._x = ux + 10;
mo._y = by + topspace;
by = by + ((mo._height + botspace) + topspace);
sto[sto.length] = mo;
} else {
wx = ux + 10;
level++;
duplicateMovieClip (mbg, "bg" + level, level);
ubg = eval ("bg" + level);
ubg._xscale = uw - 20;
ubg._yscale = divsize;
ubg._x = wx;
ubg._y = by;
sto[sto.length] = ubg;
if (ltype == 2) {
level++;
duplicateMovieClip (selmaster, "sel" + level, level);
sm = eval ("sel" + level);
sm._x = ((wx + uw) - (2 * sm._width)) - sbuffer;
sm.slist = list[i][3];
sm.setvar = list[i][4];
sm.areawidth = (uw - 40) - (2 * sbuffer);
level++;
duplicateMovieClip (mhtext, "txt" + level, level);
tx = eval ("txt" + level);
tx._x = wx + sbuffer;
tx.disp = list[i][2];
tx._y = (by + tx._height) + ((divsize - (tx._height + sm._height)) / 2);
sm._y = tx._y;
sto[sto.length] = sm;
sto[sto.length] = tx;
}
if (ltype == 1) {
level++;
duplicateMovieClip (mswitch, "switch" + level, level);
sw = eval ("switch" + level);
sw._x = ((wx + uw) - (2 * sw._width)) - sbuffer;
sw._y = by + (divsize / 2);
sw.myvar = list[i][3];
sto[sto.length] = sw;
}
wx = wx + sbuffer;
if (ltype == 0) {
level++;
duplicateMovieClip (mimg, "img" + level, level);
uim = eval ("img" + level);
uim._xscale = (uim._yscale = 0.8 * ubg._yscale);
uim._x = wx;
uim._y = by + sbuffer;
wx = wx + (sbuffer + sscale);
uim.gotoAndStop(list[i][1] + 1);
sto[sto.length] = uim;
}
if (ltype < 2) {
level++;
duplicateMovieClip (mhtext, "text" + level, level);
utx = eval ("text" + level);
utx._x = wx;
utx._y = by + ((divsize + utx._height) / 2);
utx.disp = list[i][2];
sto[sto.length] = utx;
}
if (ltype == 0) {
level++;
duplicateMovieClip (mbu, "bu" + level, level);
ubu = eval ("bu" + level);
ubu._xscale = uw - 20;
ubu._yscale = divsize;
ubu._x = ux + 10;
ubu._y = by;
ubu.bg = eval ("_root." + ubg._name);
ubu.ax = list[i][3];
sto[sto.length] = ubu;
}
by = by + divsize;
}
i++;
}
}
function fademenu(id, alpha) {
i = 0;
while (i < menus[id].length) {
el = menus[id][i];
el.alphat = alpha;
if (alpha < 100) {
el.lock = true;
} else {
el.lock = false;
}
i++;
}
}
function killmenu(id) {
i = 0;
while (i < menus[id].length) {
cm = menus[id][i];
if (cm.immune) {
cm._visible = false;
} else {
cm.unl();
cm.removeMovieClip();
}
i++;
}
menus.splice(id, 1);
}
function initmusic() {
lookdown1 = _level1.cmusic.lookdown1;
lookdown2 = _level1.cmusic.lookdown2;
lookdown3 = _level1.cmusic.lookdown3;
lookdown4 = _level1.cmusic.lookdown4;
lookdown5 = _level1.cmusic.lookdown5;
lookdown6 = _level1.cmusic.lookdown6;
lookdown1.onSoundComplete = function () {
lookdown2.start(0, 3);
};
lookdown2.onSoundComplete = function () {
lookdown3.start();
};
lookdown3.onSoundComplete = function () {
lookdown4.start(0, 2);
};
lookdown4.onSoundComplete = function () {
lookdown5.start(0, 2);
};
lookdown5.onSoundComplete = function () {
lookdown6.start(0, 2);
};
lookdown6.onSoundComplete = function () {
lookdown4.start(0, 2);
};
splitmek1 = _level1.cmusic.splitmek1;
splitmek2 = _level1.cmusic.splitmek2;
splitmek3 = _level1.cmusic.splitmek3;
splitmek4 = _level1.cmusic.splitmek4;
splitmek1.onSoundComplete = function () {
splitmek2.start(0, 2);
};
splitmek2.onSoundComplete = function () {
splitmek3.start();
};
splitmek3.onSoundComplete = function () {
splitmek4.start(0, 10000);
};
monks1 = _level1.cmusic.monks1;
monks2 = _level1.cmusic.monks2;
monks3 = _level1.cmusic.monks3;
monks4 = _level1.cmusic.monks4;
monks5 = _level1.cmusic.monks5;
monks6 = _level1.cmusic.monks6;
monks1.onSoundComplete = function () {
monks2.start(0, 3);
};
monks2.onSoundComplete = function () {
monks3.start();
};
monks3.onSoundComplete = function () {
monks4.start(0, 2);
};
monks4.onSoundComplete = function () {
monks5.start();
};
monks5.onSoundComplete = function () {
monks6.start();
};
monks6.onSoundComplete = function () {
monks1.start();
};
setsong(splitmek1, 4, "splitmek");
}
stop();
text = new Array(1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0);
width = 600;
height = 400;
cx = width / 2;
cy = height / 2;
usemusic = true;
bloodlist = new Array();
flashlist = new Array();
image = new Array();
menus = new Array();
Instance of Symbol 25 MovieClip in Frame 3
onClipEvent (load) {
width = 38;
height = 5;
buffer = 2;
xoffset = (_root.width - (width * (_width + buffer))) / 2;
yoffset = (_root.height - (height * (_height + buffer))) / 2;
ytime = height * (_width + buffer);
timer = 100;
if (gen != false) {
i = 0;
while (i < width) {
_root.level++;
duplicateMovieClip (this, "px" + _root.level, _root.level);
p = eval ("_root.px" + _root.level);
p.bx = xoffset + (i * (_width + buffer));
p.by = -p._width;
p.col = i;
p.gen = false;
p.drop = true;
p.delay = Math.random() * 30;
i++;
}
} else if (!drop) {
show = _root.text[(row * width) + col];
if (Math.random() < 0.5) {
yd = 0;
xd = -1 + (Math.round(Math.random()) * 2);
} else {
xd = 0;
yd = -1 + (Math.round(Math.random()) * 2);
}
}
}
onClipEvent (enterFrame) {
if (_root.enditall) {
removeMovieClip(this);
}
xd = _root._xmouse - bx;
yd = _root._ymouse - by;
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 50) {
xp = (((-xd) / d) * Math.sqrt(50 - d)) * 2;
yp = (((-yd) / d) * Math.sqrt(50 - d)) * 2;
} else {
xp = (yp = 0);
}
xt = bx + xp;
yt = by + yp;
_x = (_x + ((xt - _x) / 3));
_y = (_y + ((yt - _y) / 3));
delay--;
if ((!gen) && (delay < 0)) {
if (drop) {
by = by + (_height + buffer);
if (by < yoffset) {
_alpha = ((100 + by) - yoffset);
} else if (by > (yoffset + ytime)) {
_alpha = (100 - Math.abs((by - yoffset) + ytime));
if (Math.abs(_alpha) < 1) {
removeMovieClip(this);
}
} else {
row++;
_root.level++;
duplicateMovieClip (this, "px" + _root.level, _root.level);
p = eval ("_root.px" + _root.level);
p.row = row - 1;
p.col = col;
p.gen = false;
p.bx = bx;
p.by = by;
}
_y = by;
} else if (show) {
timer--;
if (timer < 0) {
prevFrame();
_alpha = (_alpha - 10);
if (_alpha < 0) {
removeMovieClip(this);
}
}
} else {
_alpha = (_alpha - 10);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 27 MovieClip in Frame 3
onClipEvent (enterFrame) {
timer++;
if (timer > 200) {
_root.play();
}
}
onClipEvent (mouseDown) {
_root.enditall = true;
timer = 198;
}
Frame 4
ki = new Array();
ki.right = 0;
ki.left = 1;
ki.jump = 2;
ki.throw = 3;
ki.bullettime = 4;
ki.pause = 5;
ki.quit = 6;
ki.switch = 7;
ki.use = 8;
ki.down = 9;
ki.newguy = 10;
keys = new Array(68, 65, 87, 70, 81, 80, 13, 69, 16, 83, 32);
street = new Array(new Array(1, 3, 4, 5), new Array(1, 1, 2), new Array(1, 2, 3), new Array(1));
old = new Array(new Array(1, 6, 8), new Array(1, 3, 5), new Array(1, 1, 3), new Array(1));
ninja = new Array(new Array(1), new Array(1, 1, 4), new Array(1, 1, 5), new Array(4, 4));
crazy = new Array(new Array(1, 5, 6, 7), new Array(1, 2, 3, 4, 5), new Array(1, 3, 6), new Array(1));
smiths = new Array(new Array(1, 9), new Array(1, 2, 6), new Array(1, 1, 2), new Array(2, 2));
jesusc = new Array(new Array(10, 10), new Array(1), new Array(2, 2), new Array(1));
sheriffc = new Array(new Array(2, 2), new Array(1), new Array(1), new Array(1));
hat = (glasses = (beard = (suit = 1)));
shatter1 = _level1.shatter1;
shatter2 = _level1.shatter2;
lowshatter1 = _level1.lowshatter1;
lowshatter2 = _level1.lowshatter2;
pistol = _level1.pistol;
lowpistol = _level1.lowpistol;
deagle = _level1.deagle;
lowde = _level1.lowde;
shotgun = _level1.shotgun;
lowshotgun = _level1.lowshotgun;
uzi = _level1.uzi;
lowuzi = _level1.lowuzi;
m = _level1.m;
lowm16 = _level1.lowm16;
m60 = _level1.m60;
lowm60 = _level1.lowm60;
mach = _level1.mach;
lowmach = _level1.lowmach;
c = _level1.cc.c;
lowc = _level1.cc.lowc;
s = _level1.csmg.s;
lowsmg = _level1.csmg.lowsmg;
sil = _level1.sil;
lowsilenced = _level1.lowsilenced;
ak = _level1.cak.ak;
siaga = _level1.siaga;
lowak = _level1.cak.lowak;
lownopump = _level1.lownopump;
steyr = _level1.steyr;
lowsteyr = _level1.lowsteyr;
l85 = _level1.cl85.l85;
lowl85 = _level1.cl85.lowl85;
ump = _level1.cump.ump;
lowump = _level1.cump.lowump;
cgs = _level1.cmini.cgs;
lowmini = _level1.cmini.lowmini;
mag = _level1.cmag.mag;
lowmag = _level1.cmag.lowmag;
cgse = _level1.cgse;
empty = _level1.empty;
lowempty = _level1.lowempty;
knife = _level1.knife;
gl = _level1.gl;
lowgl = _level1.lowgl;
ex = _level1.ex;
lowexp = _level1.lowexp;
shell1 = _level1.shell1;
lowshell = _level1.lowshell;
fall1 = _level1.fall1;
fall2 = _level1.fall2;
fall3 = _level1.fall3;
lowfall1 = _level1.lowfall1;
lowfall2 = _level1.lowfall2;
lowfall3 = _level1.lowfall3;
punch1 = _level1.punch1;
punch2 = _level1.punch2;
punch3 = _level1.punch3;
lowpunch1 = _level1.lowpunch1;
lowpunch2 = _level1.lowpunch2;
lowpunch3 = _level1.lowpunch3;
intobt = _level1.intobt;
outofbt = _level1.outofbt;
heartbeat = _level1.cheart.heartbeat;
oversound = _level1.oversound;
oksound = _level1.oksound;
rk = _level1.rocket;
lowrk = _level1.lowrocket;
Frame 5
matrix = (zombie = (knifing = (experiment = (tutorial = (lasermode = (maingame = false))))));
runspeed = 1;
invincibility = false;
ai = true;
clearstats();
Mouse.show();
if (multiload) {
stopAllSounds();
setsong(splitmek1, 4, "splitmek");
} else {
multiload = true;
}
qlist = new Array(new Array("Low", "LOW"), new Array("Medium", "MEDIUM"), new Array("High", "HIGH"), new Array("Best", "BEST"));
dlist = new Array(new Array("Low", 0), new Array("Medium", 1), new Array("High", 2), new Array("Ultra", 3));
hatslist = new Array(new Array("None", 1), new Array("Sheriff hat", 2), new Array("Baseball cap", 3), new Array("Bandana", 4), new Array("Mohawk", 5), new Array("Top hat", 6), new Array("Clown wig", 7), new Array("Pirate", 8), new Array("Smith hair", 9), new Array("Jesus", 10));
glasseslist = new Array(new Array("None", 1), new Array("Sunglasses", 2), new Array("Geeky", 3), new Array("Sam Fisher", 4), new Array("Eyepatch", 5), new Array("Smith shades", 6));
beardslist = new Array(new Array("None", 1), new Array("Goatee", 2), new Array("Santy Clause", 3), new Array("Bonzo", 4), new Array("Ninja", 5), new Array("Gas Mask", 6));
suitslist = new Array(new Array("None", 1), new Array("Businessman", 2), new Array("White suit", 3), new Array("Ninja", 4));
main = new Array(new Array(0, 0, "New Game", 0), new Array(0, 1, "Tutorial", 1), new Array(0, 3, "Challenges", 3), new Array(0, 4, "Experiment", 4), new Array(0, 2, "Options", 2), new Array(0, 17, "Credits", 19));
options = new Array(new Array(0, 5, "Controls", 5), new Array(0, 6, "Display/Sound", 6), new Array(0, 10, "Character", 10), new Array(0, 7, "Cheats", 7), new Array(0, 8, "Close", 8));
controls = new Array(new Array(3, 0, 0, _root.keytest), new Array(0, 8, "Close", 9));
display = new Array(new Array(2, 0, "Quality:", qlist, "_quality"), new Array(2, 0, "Detail:", dlist, "detail"), new Array(1, 0, "Toggle music", "usemusic"), new Array(0, 8, "Close", 9));
character = new Array(new Array(3, 0, 0, _root.costumeblock), new Array(2, 0, "Hat:", hatslist, "hat"), new Array(2, 0, "Glasses:", glasseslist, "glasses"), new Array(2, 0, "Mask:", beardslist, "beard"), new Array(2, 0, "Suit:", suitslist, "suit"), new Array(0, 8, "Close", 9));
cheater = new Array(new Array(3, 0, 0, _root.cheatmenu), new Array(0, 12, "Reset all cheats", 26), new Array(0, 8, "Close", 9));
challenges = new Array(new Array(0, 11, "Matrix", 12), new Array(0, 15, "Zombies", 16), new Array(0, 10, "Knifing Around", 17), new Array(0, 16, "Lasers", 18), new Array(0, 8, "Close", 8));
expausemenu = new Array(new Array(1, 0, "Enemy AI", "ai"), new Array(1, 0, "Autospawn", "autospawn"), new Array(1, 0, "Invincibility", "invincibility"), new Array(0, 8, "Resume", 11));
regpausemenu = new Array(new Array(0, 8, "Resume", 11));
endchallenge = new Array(new Array(3, 0, 0, _root.statwin), new Array(0, 13, "Back", 14));
endchallengescore = new Array(new Array(3, 0, 0, _root.scorestatwin), new Array(0, 13, "Back", 14));
endtimechallenge = new Array(new Array(3, 0, 0, _root.endtimewin), new Array(0, 13, "Back", 14));
expinfomenu = new Array(new Array(3, 0, 0, _root.expinfo), new Array(0, 8, "Close", 11));
creditmenu = new Array(new Array(3, 0, 0, _root.credits), new Array(0, 8, "Close", 8));
levelUpChoice = new Array(new Array(3, 0, 0, _root.endSceneWin), new Array(3, 0, 0, _root.levelUpMenu));
endOfGame = new Array(new Array(3, 0, 0, _root.endGameWin));
infomenu = new Array(new Array(0, 17, "Credits", 20), new Array(0, 18, "Flecko.net", 21), new Array(0, 19, "mModule", 22), new Array(0, 9, "Liquid Fire", 23), new Array(0, 20, "Shirts - fund future work!", 24), new Array(0, 8, "Close", 8));
stop();
newmenu(20, 20, 230, 360, "Main Menu", main);
Instance of Symbol 29 MovieClip "mline" in Frame 5
onClipEvent (load) {
if (_name == "mline") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 31 MovieClip "mcorner" in Frame 5
onClipEvent (load) {
if (_name == "mcorner") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 32 MovieClip "mend" in Frame 5
onClipEvent (load) {
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 34 MovieClip "mtbox" in Frame 5
onClipEvent (load) {
if (_name == "mtbox") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 37 MovieClip "mbg" in Frame 5
onClipEvent (load) {
if (_name == "mbg") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
if (lock) {
gotoAndStop (1);
}
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 39 MovieClip "mhtext" in Frame 5
onClipEvent (load) {
if (_name == "mhtext") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 77 MovieClip "mimg" in Frame 5
onClipEvent (load) {
if (_name == "mimg") {
_visible = false;
}
stop();
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 108 MovieClip "keytest" in Frame 5
onClipEvent (load) {
if (_name == "keytest") {
_visible = false;
}
immune = true;
n = 0;
while (n < 10) {
this["k" + n] = _root.getname(_root.keys[n]);
n++;
}
}
onClipEvent (enterFrame) {
if (keylock) {
x = 2;
while (x < 128) {
if (Key.isDown(x)) {
_root.keys[id] = x;
this["k" + id] = _root.getname(x);
keylock = false;
break;
}
x++;
}
}
}
Instance of Symbol 112 MovieClip "mswitch" in Frame 5
onClipEvent (load) {
if (_name == "mswitch") {
_visible = false;
}
if (_root[myvar]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 116 MovieClip "selmaster" in Frame 5
onClipEvent (load) {
function getdisp(val) {
i = 0;
while (i < slist.length) {
if (slist[i][1] == val) {
return(slist[i][0]);
}
i++;
}
}
function showval() {
collapse();
i = 0;
while (i < 2) {
_root.level++;
duplicateMovieClip (_root.msline, "line" + _root.level, _root.level);
cl = eval ("_root.line" + _root.level);
cl._xscale = areawidth;
cl._x = (_x - cl._width) + 2;
cl._y = _y + (i * (_height - 2));
elements[elements.length] = cl;
i++;
}
_root.level++;
duplicateMovieClip (_root.msline, "line" + _root.level, _root.level);
sl = eval ("_root.line" + _root.level);
sl._xscale = _height;
sl._x = _x - (areawidth - 4);
sl._y = _y;
sl._rotation = 90;
elements[elements.length] = sl;
_root.level++;
duplicateMovieClip (_root.selarea, "area" + _root.level, _root.level);
ca = eval ("_root.area" + _root.level);
ca._xscale = areawidth - 4;
ca._yscale = _height - 4;
ca._x = _x - ca._width;
ca._y = _y + 2;
elements[elements.length] = ca;
_root.level++;
duplicateMovieClip (_root.mhtext, "mht" + _root.level, _root.level);
ct = eval ("_root.mht" + _root.level);
ct._x = (_x - areawidth) + 4;
ct._y = (_y + ct._height) + ((_height - ct._height) / 2);
ct.disp = getdisp(_root[setvar]);
elements[elements.length] = ct;
gotoAndStop (1);
}
function showlist() {
collapse();
i = 0;
while (i < 2) {
_root.level++;
duplicateMovieClip (_root.msline, "line" + _root.level, _root.level);
l = eval ("_root.line" + _root.level);
l._x = (_x + 2) - (i * (areawidth - 2));
l._y = _y;
l._xscale = ((_height - 2) * slist.length) + 2;
l._rotation = 90;
elements[elements.length] = l;
i++;
}
bx = (_x - areawidth) + 2;
bsc = areawidth - 4;
i = 0;
while (i < (slist.length + 1)) {
by = _y + (i * (_height - 2));
_root.level++;
duplicateMovieClip (_root.msline, "line" + _root.level, _root.level);
ml = eval ("_root.line" + _root.level);
ml._xscale = bsc;
ml._x = bx + 2;
ml._y = by;
elements[elements.length] = ml;
if (i != slist.length) {
_root.level++;
duplicateMovieClip (_root.selarea, "area" + _root.level, _root.level);
sa = eval ("_root.area" + _root.level);
sa._xscale = areawidth - 4;
sa._yscale = _height - 4;
sa._x = _x - sa._width;
sa._y = by + 2;
elements[elements.length] = sa;
_root.level++;
duplicateMovieClip (_root.mhtext, "mht" + _root.level, _root.level);
mh = eval ("_root.mht" + _root.level);
mh._x = bx + 2;
mh._y = (by + mh._height) + ((_height - mh._height) / 2);
mh.disp = slist[i][0];
mh.istext = true;
elements[elements.length] = mh;
_root.level++;
duplicateMovieClip (_root.sbu, "sbu" + _root.level, _root.level);
sb = eval ("_root.sbu" + _root.level);
sb._xscale = bsc;
sb._yscale = _height - 2;
sb._x = bx;
sb._y = by + 2;
sb.bg = sa;
sb.setvar = setvar;
sb.setval = slist[i][1];
sb.master = this;
elements[elements.length] = sb;
}
i++;
}
gotoAndStop (2);
}
function collapse() {
i = 0;
while (i < elements.length) {
elements[i].removeMovieClip();
i++;
}
elements.splice(0, elements.length);
}
function unl() {
collapse();
}
if (_name == "selmaster") {
_visible = false;
}
alphat = 100;
elements = new Array();
showval();
}
onClipEvent (enterFrame) {
if (rebuild) {
rebuild = false;
showval();
}
immune = false;
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
onClipEvent (mouseDown) {
if (_currentframe == 2) {
hit = false;
i = 0;
while (i < elements.length) {
el = elements[i];
if ((el.istext != true) && (el.hitTest(_root._xmouse, _root._ymouse, true))) {
hit = true;
}
i++;
}
if (hit == false) {
showval();
}
}
}
Instance of Symbol 118 MovieClip "sbu" in Frame 5
onClipEvent (load) {
if (_name == "sbu") {
_visible = false;
}
}
Instance of Symbol 119 MovieClip "msline" in Frame 5
onClipEvent (load) {
if (_name == "msline") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 120 MovieClip "selarea" in Frame 5
onClipEvent (load) {
if (_name == "selarea") {
_visible = false;
}
alphat = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha + ((alphat - _alpha) / 3));
}
Instance of Symbol 150 MovieClip "costumeblock" in Frame 5
onClipEvent (load) {
if (_name == "costumeblock") {
_visible = false;
}
}
Instance of Symbol 160 MovieClip "statwin" in Frame 5
onClipEvent (load) {
if (_name == "statwin") {
_visible = false;
}
}
Instance of Symbol 164 MovieClip "scorestatwin" in Frame 5
onClipEvent (load) {
if (_name == "scorestatwin") {
_visible = false;
}
}
Instance of Symbol 169 MovieClip "cheatmenu" in Frame 5
onClipEvent (load) {
if (_name == "cheatmenu") {
_visible = false;
}
}
Instance of Symbol 173 MovieClip "endtimewin" in Frame 5
onClipEvent (load) {
if (_name == "endtimewin") {
_visible = false;
}
}
Instance of Symbol 176 MovieClip "credits" in Frame 5
onClipEvent (load) {
if (_name == "credits") {
_visible = false;
}
}
Instance of Symbol 178 MovieClip "expinfo" in Frame 5
onClipEvent (load) {
if (_name == "expinfo") {
_visible = false;
}
}
Instance of Symbol 185 MovieClip "levelUpMenu" in Frame 5
onClipEvent (load) {
function inList(checkNum) {
n = 0;
while (n < usedList.length) {
if (usedList[n] == checkNum) {
return(true);
}
n++;
}
n = 0;
while (n < _root.usedLevelUps.length) {
if (_root.usedLevelUps[n] == checkNum) {
return(true);
}
n++;
}
return(false);
}
if (_name == "levelUpMenu") {
_visible = false;
} else {
usedList = new Array();
}
}
onClipEvent (enterFrame) {
if (_name != "levelUpMenu") {
timer++;
if (timer == 1) {
usedList.splice(0, usedList.length);
i = 1;
while (i <= 3) {
b = eval ("b" + i);
do {
newType = Math.floor(Math.random() * _root.levelUps.length);
} while (inList(newType));
usedList[usedList.length] = newType;
if (_root.levelUps[newType][2] == 0) {
_root.usedLevelUps[_root.usedLevelUps.length] = newType;
}
b.setType(newType);
i++;
}
}
}
}
Instance of Symbol 194 MovieClip "endSceneWin" in Frame 5
onClipEvent (load) {
if (_name == "endSceneWin") {
_visible = false;
} else {
_root.scenesComplete++;
}
myTime = _root.timeToString(_root.sceneTime, false);
_root.sceneTime = 0;
_root.totalScore = _root.totalScore + _root.sceneScore;
if (_root.isCheating) {
_root.sceneScore = (_root.totalScore = 0);
sceneScore = "Cheat!";
totalScore = "Cheat!";
} else {
sceneScore = Math.round(_root.sceneScore);
totalscore = Math.round(_root.totalScore);
}
_root.sceneScore = 0;
healthChange = _root.initSceneHealth - _root.player.health;
_root.initSceneHealth = _root.player.health;
if (healthChange <= 3) {
bonus1 = "Bullet time refilled!";
_root.btr = 100;
if (healthChange == 0) {
bonus2 = "Weapons reloaded!";
_root.reload();
}
} else {
bonus1 = "No Bonus";
}
}
Instance of Symbol 201 MovieClip "endGameWin" in Frame 5
onClipEvent (load) {
if (_name == "endGameWin") {
_visible = false;
}
if (_root.isCheating) {
_root.sceneScore = (_root.totalScore = 0);
showscore = "Cheat!";
} else {
_root.totalScore = _root.totalScore + _root.sceneScore;
_root.totalScore = Math.round(_root.totalScore);
showscore = _root.totalScore + " Points";
}
}
Frame 6
stop();
gameframe = _currentframe;
pause = false;
if (!_root.maingame) {
stopAllSounds();
}
if (!_root.experiment) {
Mouse.hide();
}
width = 600;
height = 400;
ground = 385;
min = 0;
max = width;
minwall = (maxwall = false);
gunDamageScalar = 1;
hitDamageScalar = 1;
speedScalar = 1;
bulletTimeScalar = 1;
bulletSpeedScalar = 1;
ammoScalar = 1;
lives = 3;
goldenBullet = false;
aLittleExtreme = false;
flareGun = false;
sharpshooter = false;
jetLowInertia = false;
downToEarth = false;
scenesComplete = 0;
sceneScore = 0;
totalScore = 0;
sceneTime = 0;
totalTime = 0;
initSceneHealth = 10;
trueAmmo = new Array(0, 11, 4, 15, 20, 30, 7, 30, 30, 10, 0, 0, 0, 20, 10, 20, 20, 25, 100000, 5, 4, 30, 14, 65, 0, 0, 0, 6);
ammo = new Array(0, 11, 4, 15, 20, 30, 7, 30, 30, 10, 0, 0, 0, 20, 10, 20, 20, 25, 100000, 5, 4, 30, 14, 65, 0, 0, 0, 6);
btypes = new Array(0, 0, 1, 3, 2, 4, 2, 5, 4, 2, 1, 0, 0, 0, 4, 3, 4, 4, 2, 0, 7, 6, 0, 5, 0, 0, 0, 0, 8);
levelUps = new Array(new Array("First Aid", "You can keep fighting - it's only a flesh wound.", 1), new Array("High Calibur", "Bigger bullets means more damage.", 1), new Array("Man O' War", "Incidentally, you <i>do</i> like getting your hands dirty.", 1), new Array("Speed Freak", "Good thing you drank extra coffee this morning.", 1), new Array("Twitchy", "Man loves his bullet time enough, he gets to wanting more of it.", 1), new Array("Reflex", "In bullet time, all bullets move slower, so you have more time to get out of the way.", 1), new Array("Munitions Man", "You carry around extended magazines, and not the kind for reading, neither.", 1), new Array("Golden Bullet", "Finish every clip off right.", 0), new Array("A Little Extreme", "Everywhere you go, you carry around a suicide bomb, so in case things aren't going your way...", 0), new Array("Flare", "One in twenty bullets sets everything it touches on fire.", 0), new Array("Sharpshooter", "Hold that gun steady, now - missing is for losers.", 0), new Array("One Life to Live", "Buy yourself a little more time.", 0), new Array("Flexible", "All that stretching seems to have improved your reach.", 1), new Array("Low Inertia", "Without those pesky laws of physics in your way, the jetpack is much more useful.", 0), new Array("Down to Earth", ("The " + _root.getName(_root.keys[_root.ki.down])) + " key now makes you fall straight to the ground.", 0));
usedLevelUps = new Array();
pickups = new Array();
targets = new Array();
giblets = new Array();
hud = "";
numguns = 25;
runspeed = 1;
jump = 1;
aispeed = 5;
humanspeed = 7;
bulletspeed = 12;
bulletdens = 6;
if (alwaysinvincible) {
invincibility = true;
}
isjesus = false;
if (matrix) {
bulletspeed = 4;
bulletdens = 6;
enemyguns = new Array(1, 2, 3, 7, 18, 23);
} else if (zombie) {
enemyguns = new Array(1, 12, 25);
} else if (knifing) {
timeleft = 1800;
} else if (_root.lasermode) {
timeleft = 0;
} else {
enemyguns = "all";
}
if (highjump) {
jump = jump * 1.5;
}
if (_root.experiment) {
_root.newmenu(145, 40, 310, 320, "Experiment", _root.expinfomenu);
pause = true;
}
clearstats();
Instance of Symbol 203 MovieClip "main1" in Frame 6
onClipEvent (load) {
_visible = false;
main = new Array(new Array("_root.mmanager", "fade", "num:0", 0, 0), new Array("_root.shutter", "quickclose", "", 1, 30), new Array("_root.shutter", "open", "", 0, 0), new Array("_root", "stopAllSounds", "", 0, 0), new Array("_root", "setsong", "ref:_root.monks1^num:1^str:monks", 0, 0), new Array("_root.mmanager", "setvol", "num:70", 0, 0), new Array("_root", "setcostume", "ref:_root.street", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "setceil", "num:0^num:0", 0, 0), new Array("_root", "setground", "num:373", 0, 0), new Array("_root", "setbg", "num:2", 1, 10), new Array("_root", "setai", "num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:13", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:11", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:480^num:-5^num:12", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:12", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:2", 1, 15), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:11", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:470^num:-5^num:2", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:2", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:12", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:3", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:2", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:4", 1, 60), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:2", 1, 3), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:3", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:2", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:3", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:3", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:2^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:2", 0, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:11", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:12", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:480^num:-5^num:7", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:7", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:12", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:3^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:3", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:7^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:7", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:4", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:4", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:2", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:283^num:300^num:3^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:7^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:11", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:6", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:3", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:4", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:7", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:7^num:0^num:1", 2, 2), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:7", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:6", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:120^num:3^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:180^num:7^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:240^num:6^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:4^num:0^num:1", 2, 1), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:12", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:3", 1, 60), new Array("_root.gen", "makeguy", "num:0^num:0^num:480^num:-5^num:2", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:283^num:300^num:3^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:7", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:6", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:7", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:5", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "setcostume", "ref:_root.old", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.tgun", "makegun", "num:26", 0, 0), new Array("_root.shutter", "open", "", 1, 60), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:7", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:80^num:-5^num:7", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:3", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:5", 1, 15), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:5", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:470^num:-5^num:3", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:3^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:7", 1, 25), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:4", 1, 25), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:6", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:5", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:200^num:3^num:0^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:7", 1, 20), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:6^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:12", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:7^num:0^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:12", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:6", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:4", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:5", 2, 0), new Array("_root.scripter", "setscript", "ref:_root.main2.main", 0, 0));
}
Instance of Symbol 203 MovieClip "main2" in Frame 6
onClipEvent (load) {
_visible = false;
main = new Array(new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setground", "num:373", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "setbg", "num:6", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:16", 1, 15), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:5", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:7", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:3^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:350^num:-5^num:7", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:480^num:-5^num:4", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:-5^num:6", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:5", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:4", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:470^num:-5^num:3", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:100^num:-5^num:12", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:500^num:-5^num:12", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:200^num:-5^num:12", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:400^num:-5^num:12", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:12", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:7", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:520^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:16", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:16", 1, 25), new Array("_root.gen", "makeguy", "num:0^num:0^num:350^num:-5^num:7", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:487^num:321^num:3^num:1", 2, 1), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:16", 1, 25), new Array("_root.gen", "makeguy", "num:0^num:0^num:487^num:321^num:3^num:12", 1, 35), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:6^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:487^num:321^num:3^num:12", 1, 35), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:487^num:321^num:7^num:1", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:16", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:7", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:6^num:0^num:1", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:487^num:321^num:17^num:1", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:8", 0, 0), new Array("_root", "setceil", "num:30^num:1", 0, 0), new Array("_root", "setcostume", "ref:_root.crazy", 0, 0), new Array("_root", "setground", "num:366", 0, 0), new Array("_root", "setwalls", "num:58^num:1^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:78^num:333^num:7^num:1", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:14", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:78^num:333^num:6^num:5", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:78^num:333^num:7^num:4", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:78^num:333^num:7^num:3", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:14", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:2", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:78^num:333^num:6^num:4", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:9", 0, 0), new Array("_root", "setground", "num:380", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:578^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:576^num:376^num:6^num:1", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:576^num:376^num:14^num:1", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:576^num:376^num:4^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:576^num:376^num:5^num:1", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:14", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:7", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:576^num:376^num:23^num:1", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.mmanager", "fade", "num:0", 0, 0), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:10", 0, 0), new Array("_root", "setsong", "ref:_root.lookdown1^num:1^str:lookdown", 0, 0), new Array("_root.mmanager", "setvol", "num:80", 0, 0), new Array("_root", "setground", "num:375", 0, 0), new Array("_root", "setwalls", "num:30^num:1^num:575^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.tgun", "makegun", "num:29^num:122.9^num:267^num:75^num:-90", 0, 0), new Array("_root.tgun", "makegun", "num:31^num:184.5^num:267^num:75^num:-90", 0, 0), new Array("_root.tgun", "makegun", "num:30^num:262.5^num:267^num:75^num:-90", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:375^num:12^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:12^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:25^num:1", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:375^num:13^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:375^num:11^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:12^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:375^num:12^num:1", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:12^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:375^num:12^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:25^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:11^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:375^num:13^num:1", 2, 0), new Array("_root.scripter", "setscript", "ref:_root.main3.main", 0, 0));
}
Instance of Symbol 203 MovieClip "main3" in Frame 6
onClipEvent (load) {
_visible = false;
main = new Array(new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:11", 0, 0), new Array("_root", "setceil", "num:0^num:0", 0, 0), new Array("_root", "setcostume", "ref:_root.ninja", 0, 0), new Array("_root", "setground", "num:380", 0, 0), new Array("_root", "setwalls", "num:96^num:1^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:110^num:321^num:2^num:1", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:500^num:-5^num:4", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:450^num:-5^num:3", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:-5^num:7", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:6^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:110^num:321^num:28^num:1", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:7", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:6", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:150^num:-5^num:2", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:6^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:110^num:321^num:28^num:16", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:25", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:200^num:3^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:110^num:321^num:28^num:1", 0, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:28", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:-5^num:28", 1, 60), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:-5^num:3", 1, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:-5^num:7", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:12", 0, 0), new Array("_root", "setground", "num:370", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.tgun", "makegun", "num:26", 0, 0), new Array("_root.shutter", "open", "", 1, 60), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:2", 1, 2), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:7", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:100^num:-5^num:2", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:250^num:6^num:0^num:3", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:-5^num:23", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:7^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 1, 3), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:4", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:262^num:306^num:3^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:23^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:6", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:262^num:306^num:3^num:1", 1, 3), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:4", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:6", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:4", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:262^num:306^num:3^num:1", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:250^num:2^num:0^num:7", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:13", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:600^num:0", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:22", 1, 2), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:7", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:100^num:-5^num:3", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:300^num:28^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:50^num:-5^num:23", 2, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:100^num:-5^num:3", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:640^num:100^num:17^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:500^num:-5^num:6", 1, 20), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:17", 0, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:5", 2, 1), new Array("_root.gen", "makeguy", "num:0^num:0^num:550^num:-5^num:6", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:22", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:23", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:150^num:-5^num:28", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:2", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:3", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:200^num:3^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:300^num:-5^num:6", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:3", 1, 45), new Array("_root.gen", "makeguy", ("num:0^num:0^num:640^num:" + _root.ground) + "^num:7", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:14", 0, 0), new Array("_root", "setwalls", "num:0^num:0^num:530^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:4", 1, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:480^num:-5^num:6", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:7^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:325^num:2^num:1", 1, 20), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:2", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:145^num:305^num:3^num:1", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:200^num:5^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:325^num:2^num:1", 2, 1), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:15", 1, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:450^num:-5^num:5", 1, 10), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:17", 1, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:145^num:305^num:6^num:1", 2, 0), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:1^num:0^num:0^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:250^num:3^num:0^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:510^num:325^num:15^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:75^num:-5^num:7", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:475^num:-5^num:7", 2, 2), new Array("_root.gen", "makeguy", ("num:0^num:0^num:-40^num:" + _root.ground) + "^num:23", 1, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:450^num:-5^num:15", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:-40^num:300^num:6^num:0^num:1", 1, 15), new Array("_root.gen", "makeguy", "num:0^num:0^num:475^num:-5^num:16", 2, 0), new Array("_root.scripter", "setscript", "ref:_root.main4.main", 0, 0));
}
Instance of Symbol 203 MovieClip "main4" in Frame 6
onClipEvent (load) {
_visible = false;
main = new Array(new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:15", 0, 0), new Array("_root", "setcostume", "ref:_root.smiths", 0, 0), new Array("_root", "setwalls", "num:40^num:1^num:560^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root", "setground", "num:330", 0, 0), new Array("_root", "setceil", "num:60^num:1", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:2^num:1", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:7^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:12^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:11^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:23^num:1", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:20^num:1", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:2^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:3^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:7^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:15^num:1", 2, 1), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:12^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:4^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:2^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:300^num:6^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:300^num:23^num:1", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:16", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root", "setwalls", "num:40^num:1^num:560^num:1", 0, 0), new Array("_root", "setceil", "num:60^num:1", 0, 0), new Array("_root.shutter", "open", "", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:20^num:1", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:2^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:6^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:21^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:7^num:1", 2, 1), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:2^num:1", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:7^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:16^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:21^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:23^num:1", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:4^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:17^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:2^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:304^num:6^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:304^num:23^num:1", 2, 0), new Array("", "", "", 1, 60), new Array("_root", "endScene", "", 1, 3), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:17", 0, 0), new Array("_root", "setwalls", "num:25^num:1^num:578^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root", "setground", "num:375", 0, 0), new Array("_root", "setceil", "num:50^num:1", 0, 0), new Array("_root.tgun", "makegun", "num:26", 0, 0), new Array("_root.shutter", "open", "", 1, 60), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:375^num:7^num:1", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:375^num:23^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:375^num:17^num:1", 2, 0), new Array("_root", "setcostume", "ref:_root.jesusc", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:2^num:300^num:150^num:19^num:1", 0, 0), new Array("_root", "setcostume", "ref:_root.smiths", 1, 30), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:375^num:21^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:375^num:9^num:1", 2, 3), new Array("_root.gen", "makeguy", "num:0^num:0^num:60^num:375^num:7^num:1", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:375^num:6^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:375^num:23^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:0^num:540^num:375^num:15^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:14^num:1", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:9^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:10^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:9^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:10^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:10^num:1", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:15^num:1", 1, 45), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:8^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:23^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:7^num:1", 1, 5), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:21^num:1", 2, 2), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:18^num:1", 1, 3), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:21^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:23^num:1", 1, 10), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:21^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:18^num:1", 2, 3), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:8^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:17^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:14^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:60^num:375^num:15^num:1", 1, 20), new Array("_root.gen", "makeguy", "num:0^num:1^num:540^num:375^num:18^num:1", 2, 0), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "setbg", "num:18", 0, 0), new Array("_root", "setwalls", "num:20^num:1^num:450^num:1", 0, 0), new Array("_root", "clearpickups", "", 0, 0), new Array("_root", "setground", "num:320", 0, 0), new Array("_root", "setceil", "num:50^num:1", 0, 0), new Array("_root", "setai", "num:0", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:260^num:338^num:9", 0, 0), new Array("_root", "setcostume", "ref:_root.sheriffc", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:3^num:420^num:338^num:2", 0, 0), new Array("_root.shutter", "open", "", 1, 10), new Array("_root", "setai", "num:1", 2, 0), new Array("", "", "", 1, 60), new Array("_root.shutter", "close", "", 1, 30), new Array("_root", "eog", "", 0, 0), new Array("_root.shutter", "open", "", 3, 0));
}
Instance of Symbol 205 MovieClip "tutor" in Frame 6
onClipEvent (load) {
_visible = false;
tutorial = new Array(new Array("_root", "setai", "num:0", 0, 0), new Array("_root", "sethud", "str:Welcome to the tutorial. You will now learn all of the controls.", 1, 90), new Array("_root", "sethud", ((("str:To move left, press " + _root.getname(_root.keys[_root.ki.left])) + ". To move right, press ") + _root.getname(_root.keys[_root.ki.right])) + ".", 1, 120), new Array("_root", "makeBox", "num:40^num:350", 0, 0), new Array("_root", "makeBox", "num:560^num:350", 0, 0), new Array("_root", "sethud", "str:Touch the boxes to continue.", 4, 2), new Array("_root", "sethud", ("str:To jump, press " + _root.getname(_root.keys[_root.ki.jump])) + ". Press it again in midair to double-jump.", 1, 120), new Array("_root", "makeBox", "num:300^num:100", 0, 0), new Array("_root", "sethud", "str:Touch the box to continue.", 4, 1), new Array("_root.tgun", "makegun", "num:2", 0, 0), new Array("_root", "sethud", "str:Try grabbing this gun Put your hand over with the mouse it and click it to pick it up.", 1, 180), new Array("_root", "sethud", "str:Aim the gun by moving your hand, and click to shoot it.", 1, 210), new Array("_root.gen", "makeguy", "num:0^num:0^num:40^num:-5^num:1", 0, 0), new Array("_root.gen", "makeguy", "num:0^num:0^num:560^num:-5^num:1", 0, 0), new Array("_root", "sethud", "str:Try attacking these dummies. You can hurt them by shooting them, or by swinging your fist at them to punch.", 2, 0), new Array("_root.tgun", "makegun", "num:6", 0, 0), new Array("_root", "sethud", ("str:To holster your gun so you can pick up another, press " + _root.getname(_root.keys[_root.ki.switch])) + ".", 1, 150), new Array("_root", "sethud", ("str:Now you can carry a second gun. Press " + _root.getname(_root.keys[_root.ki.switch])) + " again to switch between them.", 1, 150), new Array("_root", "sethud", ("str:Now, try throwing your gun away by swinging your arm and pressing " + _root.getname(_root.keys[_root.ki.throw])) + ".", 1, 150), new Array("_root", "sethud", ("str:You can give yourself an advantage in combat by pressing " + _root.getname(_root.keys[_root.ki.bullettime])) + " to toggle bullet time.", 1, 150), new Array("_root", "sethud", "str:More time is added to the meter every time you kill an enemy.", 1, 150), new Array("_root.tgun", "makegun", "num:26", 0, 0), new Array("_root", "sethud", "str:Pick up the jetpack like you would pick up a gun. (Your hand must be empty).", 1, 150), new Array("_root", "sethud", "str:Press shift to activate/deactivate it, and your directional keys to move around.", 1, 150), new Array("_root", "sethud", ("str:You're now ready to get started! I recommend you try experiment before the main game. Press " + _root.getname(_root.keys[_root.ki.quit])) + " to return to the main menu.", 3, 0));
}
Instance of Symbol 262 MovieClip "shuttergen" in Frame 6
onClipEvent (load) {
function sd() {
_root.highlevel++;
this.swapDepths(_root.highlevel);
}
function quickclose() {
sd();
yst = (s1._yscale = (s2._yscale = 110));
_root.scenechange = true;
}
function close() {
sd();
yst = 110;
_root.scenechange = true;
}
function open() {
sd();
yst = 0;
_root.scenechange = false;
}
if (gen != false) {
_root.highlevel++;
duplicateMovieClip (this, "shutter" + _root.highlevel, _root.highlevel);
_root.shutter = eval ("_root.shutter" + _root.highlevel);
_root.shutter.gen = false;
} else {
yst = 0;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
_root.isMasked = s1._yscale >= 100;
if (_root._currentFrame != _root.gameframe) {
this.removeMovieClip();
}
}
}
Instance of Symbol 263 MovieClip in Frame 6
onClipEvent (load) {
if (gen != false) {
_visible = false;
_root.highlevel++;
duplicateMovieClip (this, "curtain" + _root.highlevel, _root.highlevel);
ct = eval ("_root.curtain" + _root.highlevel);
ct.gen = false;
} else if (_root.maingame) {
timer = 2;
} else {
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 293 MovieClip "pgun" in Frame 6
onClipEvent (load) {
if (gen != false) {
_visible = false;
} else {
id = _root.pickups.length;
_root.pickups[_root.pickups.length] = eval ("_root." + _name);
gotoAndStop(type - 1);
}
gdist = 15;
}
Instance of Symbol 311 MovieClip "tgun" in Frame 6
onClipEvent (load) {
function makegun(t, gx, gy, scale, rot) {
_root.level++;
duplicateMovieClip (this, "gun" + _root.level, _root.level);
g = eval ("_root.gun" + _root.level);
g._x = 75 + (Math.random() * (_root.width - 150));
g._y = _root.ground - 20;
g.type = t;
g.ammo = _root.ammo[g.type - 1];
g.gen = false;
if (gx && (gy)) {
g._x = gx;
g._y = gy;
g.nophys = true;
_root.lowlevel++;
g.swapDepths(_root.lowlevel);
if (scale) {
g._xscale = (g._yscale = scale);
if (rot) {
g._rotation = rot;
}
}
}
}
function remove() {
_root.pickups.splice(id, 1);
i = id;
while (i < _root.pickups.length) {
_root.pickups[i].id--;
i++;
}
removeMovieClip(this);
}
if (_name == "tgun") {
_visible = false;
}
gotoAndStop(type - 1);
usepoints = new Array(3, 4, 5, 6, 5, 3, 8, 5, 4, 4, 5, 4, 5, 5, 5, 5, 5, 6, 7, 7, 6, 3, 2, 4, 0, 0, 4, 6, 6, 6, 6);
if (gen == false) {
if ((_root.pickups.length > 5) && (!_root.pickups[0].nophys)) {
_root.pickups[0].remove();
}
id = _root.pickups.length;
_root.pickups[_root.pickups.length] = eval ("_root." + _name);
gotoAndStop(type - 1);
if (ammo > _root.ammo[type - 1]) {
ammo = _root.ammo[type - 1];
}
}
gdist = 15;
}
onClipEvent (enterFrame) {
if (_root._currentframe != _root.gameframe) {
remove();
}
if ((gen == false) && (_root.pause != true)) {
if (!nophys) {
oldx = _x;
oldy = _y;
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
txc = oldx - _x;
tyc = oldy - _y;
if (((type == 12) || (type == 25)) && (_y < (_root.ground - 10))) {
_rotation = ((Math.atan2(yv, xv) * 180) / Math.PI);
} else {
_rotation = (_rotation + (rv / _root.runspeed));
}
if (xv > 0) {
fdir = 1;
} else {
fdir = -1;
}
xv = xv * (1 - (0.01 / _root.runspeed));
rv = rv * (1 - (0.01 / _root.runspeed));
yv = yv + (1 / _root.runspeed);
if (_y == (_root.ground - 10)) {
thrown = false;
_rotation = 0;
xv = xv * (1 - (0.4 / _root.runspeed));
if (Math.abs(xv) < 0.1) {
xv = 0;
deadtimer++;
if (((deadtimer > 100) || (_root.knifing)) || (((ammo == 0) && (!_root.mtest(type))) && (!_root.tutorial))) {
remove();
}
}
} else if (_y > (_root.ground - 10)) {
_y = (_root.ground - 10);
if (yv < 8) {
if (_root.knifing && (!hasscored)) {
_root.score--;
hasscored = true;
}
yv = 0;
rv = 0;
} else {
yv = yv * -0.2;
rv = rv * (-Math.random());
}
} else if ((_y < _root.ceil) && (_root.isceil)) {
_y = _root.ceil;
yv = yv * -0.1;
}
if ((_x < _root.min) && (_root.minwall)) {
_x = _root.min;
reverse();
} else if ((_x > _root.max) && (_root.maxwall)) {
_x = _root.max;
reverse();
}
if (((_x + _width) < 0) || ((_x - _width) > _root.width)) {
remove();
}
if (_y < (_root.ground - 10)) {
hv = Math.abs(txc + tyc);
if (hv > 50) {
hv = 50;
}
if (_parent.guntype >= 2) {
hv = hv * 1.5;
}
if (xtc < 0) {
dir = -1;
} else {
dir = 1;
}
if (thrown) {
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if ((t != par) && (t.pimmunity < 0)) {
xdt = t._x - _x;
ydt = t._y - _y;
d = Math.sqrt((xdt * xdt) + (ydt * ydt));
if (d < _parent._height) {
n = 0;
while (n < usepoints[type - 2]) {
pt = eval ("pt" + n);
if (t.hitTest(pt.x, pt.y, true)) {
headshot = pt.y < (t._y - t.body._height);
mysound = Math.ceil(Math.random() * 3);
eval ("_root.punch" + mysound).start();
if ((n == 0) && ((_currentframe == 11) || (_currentframe == 24))) {
if (_currentframe == 11) {
sticktype = 1;
} else {
sticktype = 2;
}
t.stick(pt.y, fdir, sticktype);
remove();
}
t.punch(txc / hv, tyc / hv, dir * fdir, hv * 2.5, headshot);
xv = xv * -0.2;
break;
}
n++;
}
}
}
i++;
}
}
}
}
}
}
Instance of Symbol 313 MovieClip "grenade" in Frame 6
onClipEvent (load) {
function detonate() {
_root.explode(_x - xv, _y - yv);
removeMovieClip(this);
}
if (_name == "grenade") {
_visible = false;
}
if (gType == "flare") {
gotoAndStop (2);
} else {
stop();
}
}
onClipEvent (enterFrame) {
if ((gen == false) && (_root.pause != true)) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
_rotation = ((Math.atan2(yv, xv) * 180) / Math.PI);
xv = xv * (1 - (0.01 / _root.runspeed));
yv = yv + (((gtype != "flare") + 0.5) / _root.runspeed);
if ((((_y >= _root.ground) || ((_y < _root.ceil) && (_root.isceil))) || ((_x < _root.min) && (_root.minwall))) || ((_x > _root.max) && (_root.maxwall))) {
if (gType == "flare") {
removeMovieClip(this);
} else {
detonate();
}
}
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t.hmn != hmn) {
n = 0;
while (n < 2) {
pt = eval ("pt" + n);
if (t.body.hitTest(pt.x, pt.y, true) || (t.head.hitTest(pt.x, pt.y, true))) {
if (gType == "flare") {
t.health = 1;
t.lightUp();
} else {
t.health = t.health - 10;
detonate();
}
}
n++;
}
}
i++;
}
}
}
Instance of Symbol 330 MovieClip "spray" in Frame 6
onClipEvent (load) {
function remove() {
removeMovieClip(this);
}
if (_name == "spray") {
stop();
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = (_x + (_xscale / 30));
play();
} else {
stop();
}
}
Instance of Symbol 333 MovieClip "explosion" in Frame 6
onClipEvent (load) {
if (gen != false) {
_visible = false;
stop();
}
}
Instance of Symbol 338 MovieClip "shell" in Frame 6
onClipEvent (load) {
function reverse() {
xv = xv * -0.5;
rv = rv * -0.5;
}
if (_name == "shell") {
_visible = false;
}
rad = ((_rotation - 90) / 180) * Math.PI;
yv = Math.sin(rad) * 5;
xv = Math.cos(rad) * 10;
if (_rotation < 0) {
rv = (-Math.random()) * 10;
} else {
rv = Math.random() * 10;
}
}
onClipEvent (enterFrame) {
if ((gen == false) && (_root.pause != true)) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
_rotation = (_rotation + (rv / _root.runspeed));
xv = xv * 0.99;
rv = rv * 0.99;
yv = yv + 1;
if (((_x < _root.min) && (_root.minwall)) && (xv < 0)) {
_x = _root.min;
reverse();
} else if (((_x > _root.max) && (_root.maxwall)) && (xv > 0)) {
_x = _root.max;
reverse();
}
if (_y > _root.ground) {
_y = _root.ground;
if (yv < 5) {
yv = (xv = (rv = 0));
} else {
if (yv > 10) {
if (_root.runspeed == 1) {
_root.shell1.start();
} else {
_root.lowshell.start();
}
}
yv = yv * (-(0.2 + (Math.random() * 0.2)));
xv = xv * (0.3 + (Math.random() * 0.4));
rv = rv * -0.5;
}
}
if (_y == _root.ground) {
timer++;
if (timer > 30) {
removeMovieClip(this);
}
}
if (_root.isMasked) {
removeMovieClip(this);
}
}
}
Instance of Symbol 340 MovieClip "clip" in Frame 6
onClipEvent (load) {
function unloadgun() {
if (_root.ammobar._visible) {
_root.ammobar.showbar.xst = 0;
_root.ammobar._visible = false;
} else {
i = 0;
while (i < bullets.length) {
bullets[i].removeMovieClip();
i++;
}
bullets.splice(0, bullets.length);
}
_xscale = 0;
}
function loadgun(guntype, myammo) {
if ((guntype == 22) || (guntype == 24)) {
_xscale = 20;
_yscale = 100;
_y = by;
_root.ammobar._visible = true;
_root.ammobar.ammo = myammo;
_root.ammobar.fullammo = _root.ammo[guntype - 1];
if (guntype == 22) {
_root.ammobar.showbar.gotoAndStop(1);
} else {
_root.ammobar.showbar.gotoAndStop(2);
}
} else if (guntype != 19) {
btype = _root.btypes[guntype];
_root.bullet.gotoAndStop(btype);
unloadgun();
guntype--;
if (myammo) {
_xscale = (_root.bullet._width * 1.2);
_yscale = (_root.bullet._height * (_root.ammo[guntype] - 1));
if ((_yscale > 175) || (btype == 8)) {
_yscale = (_yscale / 2);
overlap = true;
} else {
overlap = false;
}
highturn = true;
_y = (by + _root.bullet._height);
} else {
_xscale = 0;
}
i = 0;
while (i < myammo) {
if (overlap) {
if (highturn) {
_root.level = _root.level + 3;
highturn = false;
} else {
_root.level--;
highturn = true;
}
} else {
_root.level++;
}
duplicateMovieClip (_root.bullet, "bullet" + _root.level, _root.level);
b = (bullets[i] = eval ("_root.bullet" + _root.level));
b.id = i;
b.gen = false;
b.overlap = overlap;
b.type = btype;
if (_root.goldenBullet && (i == (myammo - 1))) {
b.gotoAndStop(btype + 16);
} else {
b.gotoAndStop(btype);
}
b.xt = (_x - _width) + ((b._width / 5) * (b.id == 0));
if (overlap) {
b.yt = _y + ((b._height / 2) * (b.id - 2));
} else {
b.yt = _y + (b._height * (b.id - 1));
}
b._x = b.xt;
b._y = b.yt;
i++;
}
_root.level = _root.level + 2;
}
}
function fire() {
if (!_root.infammo) {
if (_root.ammobar._visible) {
_root.ammobar.ammo--;
} else {
bullets[0].fire = true;
bullets.splice(0, 1);
i = 0;
while (i < bullets.length) {
bullets[i].id--;
i++;
}
}
}
}
by = _y;
_xscale = 0;
bullets = new Array();
}
onClipEvent (enterFrame) {
_visible = (_root._currentFrame == _root.gameframe);
}
Instance of Symbol 367 MovieClip "bullet" in Frame 6
onClipEvent (load) {
function ypos() {
if (overlap) {
return(_root.clip._y + ((_height / 2) * (id - 2)));
}
return(_root.clip._y + (_height * (id - 1)));
}
function setpos() {
xt = (_root.clip._x - _root.clip._width) + ((_width / 5) * (id == 0));
yt = ypos();
x = x + ((xt - x) / (2 * _root.runspeed));
y = y + ((yt - y) / (2 * _root.runspeed));
}
function update() {
_x = Math.round(x);
_y = Math.round(y);
}
if (_name == "bullet") {
_visible = false;
}
if (gen == false) {
x = (_root.clip._x - _root.clip._width) + ((_width / 5) * (id == 0));
y = ypos();
}
}
onClipEvent (enterFrame) {
if ((gen == false) && (_root.pause != true)) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
if (fire) {
if ((_currentframe < 9) || ((_currentframe > 16) && (_currentframe < 25))) {
gotoAndStop(_currentframe + 8);
}
if (type == 8) {
x = x + (24 / _root.runspeed);
if (x > _root.width) {
removeMovieClip(this);
}
} else {
x = x - (12 / _root.runspeed);
y = y - (10 / _root.runspeed);
_rotation = (_rotation - 3);
if ((y + _height) < 0) {
removeMovieClip(this);
}
}
} else {
setpos();
}
update();
}
}
Instance of Symbol 369 MovieClip "ripple" in Frame 6
onClipEvent (load) {
function update() {
tsize = tsize - 0.08;
if ((tsize < 0) || (_root.runspeed == 1)) {
removeMovieClip(this);
}
n = n + 0.261799387799149;
_yscale = (tsize * (75 + (Math.cos(n + Math.PI) * 25)));
_xscale = (tsize * (75 + (Math.cos(n + Math.PI) * 25)));
}
if (_name == "ripple") {
_visible = false;
}
update();
}
onClipEvent (enterFrame) {
if ((gen == false) && (_root.pause != true)) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
update();
}
}
Instance of Symbol 371 MovieClip "btgraphic" in Frame 6
onClipEvent (load) {
function move() {
_x = (_x + xd);
_y = (_y + yd);
off = off - 0.261799387799149;
}
function shoot(xmin, xmax) {
closest = null;
minyhit = null;
mindist = 10000;
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
xdist = t._x - _x;
ydist = t._y - _y;
d = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (((t.hmn != hmn) && ((t.dying <= 1) || ((t.ddelay < (5 * _root.runspeed)) && (t.deadhits < 10)))) && ((t._x >= xmin) && (t._x <= xmax))) {
yhit = (m * t._x) + b;
yhit1 = (m * (t._x - t.khw)) + b;
yhit2 = (m * (t._x + t.khw)) + b;
maxyr = t._y;
minyr = t._y - t.kth;
misscond = ((yhit2 < minyr) && (yhit1 < minyr)) || ((yhit2 > maxyr) && (yhit1 > maxyr));
if (!misscond) {
if (d < mindist) {
mindist = d;
minyhit = yhit;
closest = t;
}
}
}
i++;
}
headshot = minyhit < (closest._y - 50);
if (closest != null) {
oxd = ox - closest._x;
oyd = oy - yhit;
if ((Math.sqrt((oxd * oxd) + (oyd * oyd)) < 100) && ((guntype == 3) || (guntype == 15))) {
if (headshot) {
if (((fdir == 1) && (closest.f == 1)) || ((fdir == -1) && (closest.f == -1))) {
bltype = 5;
} else {
bltype = 4;
}
} else if (((fdir == 1) && (closest.f == 1)) || ((fdir == -1) && (closest.f == -1))) {
bltype = 7;
} else {
bltype = 6;
}
} else {
bltype = gunblood[guntype];
}
xcut = closest._x;
notest = true;
hitscale = 1 + ((lastBullet * _root.goldenBullet) * 3);
closest.blood(headshot, minyhit, bltype, fdir);
closest.hit(headshot, fdir, damage * hitscale, force * hitscale);
}
}
gunblood = new Array(0, 0, 1, 2, 1, 3, 1, 2, 3, 1, 1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 3);
xcut = null;
notest = false;
dn = _root.bulletdens;
rad = (_rotation / 180) * Math.PI;
xrd = Math.cos(rad);
yrd = Math.sin(rad);
if (xd > 0) {
dir = 1;
} else {
dir = -1;
}
if (_name == "btgraphic") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((gen == false) && (_root.pause != true)) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
s = (_root.bulletSpeedScalar * _root.bulletspeed) / _root.runspeed;
xd = xrd * s;
yd = yrd * s;
if (_root.runspeed == 1) {
if (fdir == 1) {
min = _x;
max = 600;
} else {
min = 0;
max = _x;
}
} else if (fdir == 1) {
min = _x;
max = _x + (dn * xd);
} else {
min = _x + (dn * xd);
max = _x;
}
if (!notest) {
shoot(min, max);
}
i = 0;
while (i < dn) {
move();
if ((xcut != null) && (((fdir == 1) && (_x > xcut)) || ((fdir == -1) && (_x < xcut)))) {
removeMovieClip(this);
}
i++;
}
if ((_root.detail == 2) || ((_root.detail == 1) && ((i % 2) == 0))) {
_root.level++;
duplicateMovieClip (_root.bulletpath, "ripple" + _root.level, _root.level);
r = eval ("_root.ripple" + _root.level);
r._x = _x;
r._y = _y;
r._rotation = _rotation;
r._xscale = s * dn;
r.n = off;
r.tsize = 1;
r.gen = false;
}
if (((((_x + _width) < 0) || ((_x - _width) > _root.width)) || ((_y + _height) < 0)) || ((_y - _height) > _root.height)) {
removeMovieClip(this);
}
if (_root.runspeed == 1) {
_root.level++;
duplicateMovieClip (_root.line, "line" + _root.level, _root.level);
ml = eval ("_root.line" + _root.level);
ml._x = _x + (xd * dn);
ml._y = _y + (yd * dn);
ml._rotation = _rotation;
ml._xscale = 50 + (Math.random() * 50);
removeMovieClip(this);
}
}
}
Instance of Symbol 377 MovieClip "rail" in Frame 6
onClipEvent (load) {
if (_name == "rail") {
_visible = false;
}
stop();
if (gen == false) {
useframe = 1;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
useframe = useframe + (1 / _root.runspeed);
trace(useframe);
gotoAndStop(Math.floor(useframe));
}
}
Instance of Symbol 382 MovieClip "rocket" in Frame 6
onClipEvent (load) {
function detonate() {
_root.explode(_x - ((xd * v) / _root.runspeed), _y - ((yd * v) / _root.runspeed));
removeMovieClip(this);
}
if (_name == "rocket") {
_visible = false;
}
var xd = Math.cos(rad);
var yd = Math.sin(rad);
var v = 3;
}
onClipEvent (enterFrame) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
if ((gen == false) && (_root.pause != true)) {
v = v + (2 / _root.runspeed);
_x = (_x + ((xd * v) / _root.runspeed));
_y = (_y + ((yd * v) / _root.runspeed));
if ((((_root.minwall && (_x < _root.min)) || (_root.maxwall && (_x > _root.max))) || (_y > _root.ground)) || ((_y < _root.ceil) && (_root.isceil))) {
detonate();
} else if ((((_x - _width) > _root.max) || ((_x + _width) < _root.min)) || ((_y + _height) < 0)) {
removeMovieClip(this);
}
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t.hmn != hmn) {
n = 0;
while (n < 2) {
pt = eval ("pt" + n);
if (t.body.hitTest(pt.x, pt.y, true) || (t.head.hitTest(pt.x, pt.y, true))) {
detonate();
}
n++;
}
}
i++;
}
}
}
Instance of Symbol 384 MovieClip "bulletpath" in Frame 6
onClipEvent (load) {
if (_name == "bulletpath") {
_visible = false;
}
_alpha = 50;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 15);
if (_alpha < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 389 MovieClip "ammobar" in Frame 6
onClipEvent (load) {
_root.highlevel++;
this.swapDepths(_root.highlevel);
_visible = false;
}
Instance of Symbol 393 MovieClip in Frame 6
onClipEvent (load) {
function shoot() {
rail.play();
if (evenside) {
if ((_root.player._y > _y) && ((_root.player._y - _root.player.kth) < _y)) {
_root.player.health = _root.player.health - 4;
sd = -(side - 1);
xc = 25 * sd;
if (_root.player.usejetpack) {
_root.player.jxv = _root.player.jxv + xc;
} else {
_root.player.force = _root.player.force + xc;
}
if (_root.player.health <= 0) {
_root.player.dying = 1;
_root.player.rspeed = sd;
}
}
} else if (Math.abs(_root.player._x - _x) < _root.player.khw) {
_root.player.health = _root.player.health - 4;
if (_root.player.usejetpack) {
_root.player.jyv = _root.player.jyv - (25 * (side - 2));
}
if (_root.player.health <= 0) {
_root.player.dying = 1;
_root.player.rspeed = _root.player.f;
}
}
isfiring = false;
timer = 30;
}
function hit() {
_root.level++;
duplicateMovieClip (_root.explosion, "ex" + _root.level, _root.level);
ex = eval ("_root.ex" + _root.level);
ex._x = _x;
ex._y = _y;
ex._xscale = (ex._yscale = 50);
ex._rotation = _rotation;
ex.gen = false;
_root.givebtr(8);
removeMovieClip(rail);
_root.targets.splice(id, 1);
i = id;
while (i < _root.targets.length) {
_root.targets[i].id--;
i++;
}
removeMovieClip(this);
}
stop();
if (gen != false) {
var settime = 100;
var movechance = 0;
_visible = false;
} else {
var timer = 30;
var isfiring = false;
var kth = _height;
var khw = 15;
id = _root.targets.length;
_root.targets[id] = eval ("_root." + _name);
dying = 0;
hasentered = true;
hmn = false;
side = Math.floor(Math.random() * 4);
evenside = (side == 0) || (side == 2);
if (evenside) {
_x = ((side / 2) * _root.width);
_y = (15 + (Math.random() * (_root.height - 30)));
} else {
_x = (15 + (Math.random() * (_root.width - 30)));
_y = (Math.floor(side / 2) * _root.height);
}
_rotation = (side * 90);
rad = (_rotation / 180) * Math.PI;
sinrad = Math.sin(rad);
cosrad = Math.cos(rad);
railxoff = cosrad * 13;
railyoff = sinrad * 13;
_root.level++;
duplicateMovieClip (_root.redlaser, "rail" + _root.level, _root.level);
rail = eval ("_root.rail" + _root.level);
rail.gen = false;
rail._x = _x + railxoff;
rail._y = _y + railyoff;
rail._rotation = _rotation;
if (evenside) {
rail._xscale = _root.width;
} else {
rail._xscale = _root.height;
}
if (move) {
xd = Math.abs(sinrad) * 3;
yd = Math.abs(cosrad) * 3;
xdc = xd * 20;
ydc = yd * 20;
minx = _x - xdc;
maxx = _x + xdc;
miny = _y - ydc;
maxy = _y + ydc;
if (Math.random() < 0.5) {
xd = xd * -1;
} else {
yd = yd * -1;
}
}
}
}
onClipEvent (enterFrame) {
if (_root._currentFrame != _root.gameframe) {
removeMovieClip(this);
}
if (_root.lasermode && (!_root.pause)) {
if (gen != false) {
timer = timer - (1 / _root.runspeed);
if (timer <= 0) {
if (settime > 15) {
settime = settime - 2;
}
if ((settime < 70) && (movechance < 1)) {
movechance = movechance + 0.05;
}
_root.level++;
duplicateMovieClip (this, "laserbox" + _root.level, _root.level);
lb = eval ("_root.laserbox" + _root.level);
lb.gen = false;
lb.move = Math.random() < movechance;
timer = settime;
}
} else {
timer = timer - (1 / _root.runspeed);
if ((timer < 0) && (!isfiring)) {
isfiring = true;
play();
}
if (move) {
_x = (_x + (xd / _root.runspeed));
_y = (_y + (yd / _root.runspeed));
if ((_x < minx) || (_x > maxx)) {
xd = xd * -1;
if (_x < minx) {
_x = minx;
} else {
_x = maxx;
}
}
if ((_y < miny) || (_y > maxy)) {
yd = yd * -1;
if (_y < miny) {
_y = miny;
} else {
_y = maxy;
}
}
rail._x = _x + railxoff;
rail._y = _y + railyoff;
}
}
}
}
Instance of Symbol 399 MovieClip "redlaser" in Frame 6
onClipEvent (load) {
if (_name == "redlaser") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root._currentFrame != _root.gameframe) {
removeMovieClip(this);
}
}
Instance of Symbol 401 MovieClip "shadow" in Frame 6
onClipEvent (load) {
if (_name == "shadow") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != _root.gameframe) {
removeMovieClip(this);
}
}
Instance of Symbol 406 MovieClip "flash" in Frame 6
onClipEvent (load) {
if (_name == "flash") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if ((_name != "flash") && (_root.pause != true)) {
timer++;
if (timer > _root.runspeed) {
removeMovieClip(this);
}
}
}
Instance of Symbol 413 MovieClip "collider" in Frame 6
onClipEvent (load) {
if (gen == false) {
gotoAndStop(type);
_root.highlevel++;
this.swapDepths(_root.highlevel);
if (_root.scenechange) {
timer++;
}
if ((timer > 20) || (_root._currentFrame != _root.gameframe)) {
removeMovieClip(this);
}
} else {
_visible = false;
}
stop();
}
Instance of Symbol 415 MovieClip "touchBox" in Frame 6
onClipEvent (load) {
if (gen != false) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (gen == false) {
if (this.hitTest(_root.player)) {
_root.scripter.touchBox();
removeMovieClip(this);
}
}
}
Instance of Symbol 418 MovieClip "scripter" in Frame 6
onClipEvent (load) {
function setscript(scriptname) {
script = scriptname;
header = 0;
mode = 0;
timer = 0;
}
function touchBox() {
boxes--;
}
function nextevent() {
maxguys = 300;
do {
error = false;
action = script[header];
this[action[0] + ".scriptfunc"] = action[1];
mode = action[3];
if ((action[0] == "") || (action[1] == "")) {
trace("NO FUNCTION!");
} else {
if (action[2].length == 0) {
numargs = 0;
trace("NO ARGUMENTS!");
} else {
argset = action[2].split("^");
args = new Array();
n = 0;
while (n < argset.length) {
pair = argset[n].split(":");
type = pair[0];
val = pair[1];
pos = args.length;
if (type == "str") {
args[pos] = val;
} else if (type == "num") {
args[pos] = Number(val);
} else if (type == "ref") {
args[pos] = eval (val);
} else {
error = true;
trace(("ERROR: Argument type invalid or not specified (" + header) + ")");
break;
}
n++;
}
numargs = args.length;
}
if (numargs == 0) {
eval (action[0])[action[1]]();
} else if (numargs == 1) {
eval (action[0])[action[1]](args[0]);
} else if (numargs == 2) {
eval (action[0])[action[1]](args[0], args[1]);
} else if (numargs == 3) {
eval (action[0])[action[1]](args[0], args[1], args[2]);
} else if (numargs == 4) {
eval (action[0])[action[1]](args[0], args[1], args[2], args[3]);
} else if (numargs == 5) {
eval (action[0])[action[1]](args[0], args[1], args[2], args[3], args[4]);
} else if (numargs == 6) {
eval (action[0])[action[1]](args[0], args[1], args[2], args[3], args[4], args[5]);
} else if (numargs == 7) {
eval (action[0])[action[1]](args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
} else if (numargs == 8) {
eval (action[0])[action[1]](args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]);
}
}
header++;
if (mode == 1) {
timer = action[4];
} else if (mode == 2) {
maxguys = action[4];
} else if (mode == 4) {
boxes = action[4];
}
} while (mode == 0);
}
_visible = false;
timer = 0;
mode = 0;
header = 0;
maxguys = 300;
if (_root.tutorial) {
setscript(_root.tutor.tutorial);
} else if (_root.maingame) {
setscript(_root.main1.main);
} else {
mode = 3;
}
}
onClipEvent (enterFrame) {
if (!_root.pause) {
timer--;
}
if ((((timer < 0) && (mode != 3)) && (_root.activeen <= maxguys)) && (boxes <= 0)) {
nextevent();
}
}
Instance of Symbol 549 MovieClip "pgen" in Frame 6
onClipEvent (load) {
function follow() {
if (_x > _root.player._x) {
left = true;
} else {
right = true;
}
}
function register() {
id = _root.targets.length;
_root.targets[id] = eval ("_root." + _name);
isregistered = true;
_root.level++;
this.swapDepths(_root.level);
}
function detonate() {
if (entertimer < 0) {
health = 0;
_root.explode(_x, _y - (_height / 2));
}
}
function remove(now) {
_root.targets.splice(id, 1);
i = id;
while (i < _root.targets.length) {
_root.targets[i].id--;
i++;
}
_root.activeguys--;
dead = true;
if (hmn) {
if (_root.runspeed != 1) {
_root.btrbarsrc.bar.endbt();
}
if (_root.laserguide) {
hand.lg.removeMovieClip();
}
}
if (jesus) {
_root.isjesus = false;
}
if (((_root.matrix || (_root.zombie)) || (_root.lasermode)) && (hmn)) {
stopAllSounds();
Mouse.show();
_root.pause = true;
_root.accuracy = Math.round((_root.enemies_hit / _root.shotsfired) * 100) + "%";
if (_root.lasermode) {
_root.newmenu(150, 50, 300, 300, "Game Over", _root.endtimechallenge);
} else {
_root.newmenu(150, 50, 300, 300, "Game Over", _root.endchallenge);
}
}
if (_root.detail >= 2) {
removeMovieClip(shadow);
}
}
function esc() {
hand.stopfire();
killflames();
if (!hasgiven) {
_root.givebtr(15);
}
if (hmn) {
_root.initSceneHealth = _root.initSceneHealth + 10;
if (_root.kstring > _root.maxstring) {
_root.maxstring = _root.kstring;
}
_root.kstring = 0;
_root.regen = 10;
if (_root.runspeed != 1) {
_root.btrbarsrc.bar.endbt();
}
_root.hmndeaths++;
if (_root.maingame) {
_root.lives--;
if (_root.lives < 0) {
_root.lives = 0;
_root.endGame();
}
}
} else {
_root.numkilled++;
_root.kstring++;
_root.activeen--;
}
removeMovieClip(shadow);
removeMovieClip(this);
}
function blood(headshot, bly, bltype, fdir) {
if (_root.detail > 0) {
if (headshot) {
target = head;
} else {
target = body;
}
if (head._currentFrame == 1) {
if (bltype == 4) {
head.play();
} else if (bltype == 5) {
head.gotoAndPlay(4);
}
}
if (body._currentFrame == 1) {
if (bltype == 6) {
body.play();
} else if (bltype == 7) {
body.gotoAndPlay(4);
}
}
if (bltype < 4) {
_root.level++;
duplicateMovieClip (target.blood, "blood" + _root.level, _root.level);
b = eval ((target + ".blood") + _root.level);
if (bltype == 1) {
b.gotoAndStop(Math.ceil(Math.random() * 3));
} else if (bltype == 2) {
b.gotoAndStop(3 + Math.ceil(Math.random() * 3));
} else {
b.gotoAndStop(6 + Math.ceil(Math.random() * 2));
}
bpoint.y = bly;
bpoint.x = _x;
target.globalToLocal(bpoint);
halfsize = (target.wk / 2) - (b._width / 1.5);
k = (-fdir) * f;
b._x = (k * Math.random()) * halfsize;
b._y = bpoint.y;
}
if (target._name == "head") {
fdir = fdir * 1.5;
}
bloodspray(_x + ((kw / 1.7) * fdir), bly, -fdir, bltype);
}
}
function bloodspray(bsx, bsy, bsd, bltype) {
if (_root.detail == 2) {
_root.level++;
duplicateMovieClip (_root.spray, "spray" + _root.level, _root.level);
s = eval ("_root.spray" + _root.level);
s._x = bsx;
s._y = bsy;
s._xscale = s._xscale * bsd;
if (bltype == 1) {
if (Math.random() < 0.5) {
s.gotoAndPlay("l1");
} else {
s.gotoAndPlay("l2");
}
} else if (Math.random() < 0.5) {
s.gotoAndPlay("m1");
} else {
s.gotoAndPlay("m2");
}
}
}
function stick(sty, fdir, sticktype) {
trace(fdir);
if (_root.knifing) {
_root.score++;
}
if (sty < (_y - body._height)) {
target = head;
saverot = head._rotation;
head._rotation = 0;
head.force = (fdir * f) * 8;
} else {
target = body;
head.force = ((-fdir) * f) * 6;
body.force = (fdir * f) * 6;
}
if (((fdir == -1) && (f == 1)) || ((fdir == 1) && (f == -1))) {
k = 1;
} else {
k = -1;
}
_root.level++;
duplicateMovieClip (target.stuck, "stuck" + _root.level, _root.level);
st = eval ("target.stuck" + _root.level);
stp = new Object();
stp.x = target._x;
stp.y = sty;
target.globalToLocal(stp);
usex = ((k * Math.random()) * kw) / 3;
st._x = usex;
st._y = stp.y;
st._xscale = st._xscale * (-k);
st._rotation = -10 + (Math.random() * 20);
st.gotoAndStop(sticktype);
stp.x = usex;
target.localToGlobal(stp);
bloodspray(stp.x, stp.y, -k, 1);
if (target._name == "head") {
target._rotation = saverot;
}
health = health - 5;
if (health <= 0) {
dying = 1;
rspeed = k;
}
}
function hit(headshot, fdir, damage, gunforce) {
if (!hmn) {
_root.enemies_hit++;
_root.sceneScore = _root.sceneScore + (damage + (2.25 * headshot));
} else {
_root.sceneScore = _root.sceneScore - damage;
}
if (headshot) {
if (hmn) {
health = health - (damage / zdc);
} else {
health = health - ((damage + 2.25) / zdc);
}
head.force = (60 * fdir) * f;
force = gunforce * fdir;
} else {
health = health - (damage / zdc);
head.force = ((-2.5 * gunforce) * fdir) * f;
body.force = ((2.5 * gunforce) * fdir) * f;
force = gunforce * fdir;
}
if (health <= 0) {
dying = 1;
rspeed = fdir;
}
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
td = Math.abs(t._x - _x);
tyd = Math.abs(t._y - _y);
if (tyd < 30) {
t.spl = t.spl + ((td < 100) + (td < 50));
t.hspl = t.spl;
if (t.spl > 5) {
t.spl = 5;
t.hspl = 5;
}
}
}
i++;
}
ddelay = 0;
deadhits++;
if (!hmn) {
hand.stopFire(true);
}
}
function punch(xd, yd, k, power, headshot) {
if (!hmn) {
power = power * _root.hitDamageScalar;
}
power = power / zdc;
if ((k * f) == 1) {
power = power * 3;
k = k / 3;
yd = yd / 3;
}
if (headshot) {
head.force = (k * power) * f;
} else {
head.force = ((-k) * power) * f;
body.force = (k * power) * f;
}
force = (k * power) / 4;
pimmunity = 12;
trace("local imm:" + pimmunity);
damage = 0.5 + (power / 50);
if (hmn) {
_root.sceneScore = _root.sceneScore - damage;
} else {
_root.sceneScore = _root.sceneScore + damage;
}
health = health - damage;
if (health <= 0) {
dying = 1;
rspeed = k;
force = ((k * (0.5 + (Math.abs(xd) / 2))) * power) / 1.5;
yforce = (yd * power) / 1.5;
}
}
function killflames() {
i = 0;
while (i < myflames.length) {
myflames[i][0].die();
i++;
}
aflame = false;
}
function updateflames() {
i = 0;
while (i < myflames.length) {
myflames[i][0]._x = _x + myflames[i][1];
myflames[i][0]._y = _y + myflames[i][2];
i++;
}
}
function lightup() {
if (!aflame) {
if (!hmn) {
_root.sceneScore = _root.sceneScore + 3;
}
if (dying == 0) {
myflames = new Array();
i = 0;
while (i < 3) {
_root.level++;
duplicateMovieClip (_root.flame, "flame" + _root.level, _root.level);
flame = eval ("_root.flame" + _root.level);
flame.move = false;
flame.gen = false;
flame.hmn = 1;
myflames[i] = new Array();
myflames[i][0] = flame;
myflames[i][1] = (Math.random() * body._width) - (body._width / 2);
myflames[i][2] = (-Math.random()) * body._height;
i++;
}
aflame = (hasburned = true);
d = 1;
}
}
}
function electrify() {
electro = electro + 20;
}
function knife(xd, yd, k, power, headshot, x, y) {
if ((k * f) == 1) {
power = power * 3;
k = k / 3;
}
force = (k * power) / 12;
pimmunity = 12;
damage = 0.5 + (power / 20);
if (hmn) {
_root.sceneScore = _root.sceneScore - damage;
} else {
_root.sceneScore = _root.sceneScore + damage;
}
health = health - damage;
if (health <= 0) {
dying = 1;
rspeed = k;
}
if (headshot) {
health--;
target = head;
head.force = k * power;
} else {
target = body;
body.force = k * power;
head.force = (-k) * power;
}
kbp = new Object();
kbp.x = x;
kbp.y = y;
target.globalToLocal(kbp);
_root.level++;
duplicateMovieClip (target.blood, "blood" + _root.level, _root.level);
b = eval ((target + ".blood") + _root.level);
halfsize = (target._width / 2) - (b._width / 1.7);
b._x = (kbp * Math.random()) * halfsize;
b._y = kbp.y;
if ((0.8 * Math.abs(yd)) < Math.abs(xd)) {
slash = true;
b.gotoAndStop(Math.ceil(Math.random() * 3));
} else {
slash = false;
b.gotoAndStop(9 + Math.floor(Math.random() * 4));
}
bloodspray(x, y, k, slash + 1);
}
if (_name == "pgen") {
_visible = false;
}
if (gen == false) {
deadhits = 0;
dying = false;
hasentered = false;
haslanded = false;
usejetpack = false;
hasgiven = false;
isregistered = false;
if (_x < _root.player._x) {
f = 1;
} else {
f = -1;
}
dvary = Math.random() * 20;
btdrag = 1 - (hmn / 2);
resistance = 0.2;
aresistance = 0.001;
gravity = 1;
acc = 1;
kw = 32;
kh = 30;
kb = 28;
khw = 26;
kth = 94;
bpoint = new Object();
if (hmn) {
hat = _root.hat;
beard = _root.beard;
suit = _root.suit;
glasses = _root.glasses;
isjetpack = false;
issuibomb = _root.aLittleExtreme;
if (_root.matrix) {
health = 40;
} else {
health = 10;
}
entertimer = 60;
if (_root.lasermode) {
isjetpack = true;
}
smt = _root.humanspeed + (7 * _root.gump);
} else {
if (_root.matrix) {
hat = 9;
beard = 1;
glasses = 6;
suit = 2;
} else if (!_root.maingame) {
hat = (beard = (glasses = (suit = 1)));
}
health = 3;
if (zombie == 2) {
trace("NEW JEEBUS, INDEED!");
jesus = true;
fy = _y;
guntype = 6;
hand.ammo = 30;
if (_root.maingame) {
health = 175;
} else {
health = 25;
}
hat = 10;
beard = 2;
_root.isjesus = true;
}
if (isjetpack) {
usejetpack = true;
jby = _y;
n = 0;
}
if (!fromdoor) {
register();
}
smt = _root.aispeed;
_root.activeen++;
}
}
}
onClipEvent (enterFrame) {
entertimer--;
if (_root._currentFrame != _root.gameframe) {
removeMovieClip(this);
}
if ((gen == false) && (_root.pause != true)) {
if (aflame && (!dead)) {
aftimer++;
if (Math.random() < 0.05) {
d = d * -1;
}
_x = (_x + ((d * 14) / _root.runspeed));
_xscale = (100 * d);
updateflames();
if (aftimer > 100) {
killflames();
aflame = false;
dying = true;
rspeed = d;
}
} else if (dead) {
head._rotation = head._rotation / 2;
body._rotation = body._rotation / 2;
deadtime++;
if (deadtime > 30) {
esc();
}
} else {
right = 0;
left = 0;
del = 0;
if (hmn) {
if (!dying) {
right = Key.isDown(_root.keys[_root.ki.right]);
left = Key.isDown(_root.keys[_root.ki.left]);
up = Key.isDown(_root.keys[_root.ki.jump]);
down = Key.isDown(_root.keys[_root.ki.down]);
use = Key.isDown(_root.keys[_root.ki.use]);
}
if (entertimer == 0) {
register();
}
if (_root.invincibility || (entertimer > 0)) {
health = 10000000 /* 0x989680 */;
} else if (health > 100000) {
health = 10;
}
if (entertimer > 0) {
if ((entertimer % 2) == 0) {
if ((_visible == false) || (entertimer < 3)) {
_visible = true;
} else {
_visible = false;
}
}
}
} else if (_root.ai) {
if (_root.survival) {
health = 1000000 /* 0x0F4240 */;
hand.ammo = 10000;
}
if (!dying) {
if (fromdoor) {
if (_alpha < 100) {
_alpha = (_alpha + 20);
} else if ((_y < _root.ground) && (!jesus)) {
_y = (_y + 5);
} else {
register();
fromdoor = false;
}
} else if (jesus) {
jmtimer--;
if (jmtimer < 0) {
jmtimer = 50;
xt = _root.min + (Math.random() * (_root.max - _root.min));
}
_x = (_x + ((xt - _x) / (4 * _root.runspeed)));
jtheta = jtheta + 0.3;
_y = (fy + (Math.sin(jtheta) * 12));
if (_x < _root.player._x) {
f = 1;
} else {
f = -1;
}
} else if ((_y >= _root.ground) || (usejetpack)) {
if (issuibomb) {
tdist = 0;
} else if ((guntype == 1) || (pdist < 110)) {
tdist = 40 + (dvary / 2);
} else if (((guntype > 10) && (guntype != 14)) || (hand.ammo == 0)) {
tdist = 65 + (dvary / 2);
} else {
tdist = 225 + dvary;
}
if (hasentered) {
pdist = Math.abs(_root.player._x - _x);
if (issuibomb) {
follow();
if ((pdist < 40) && (Math.abs(_root.player._y - _y) < 20)) {
detonate();
}
} else if (pdist < 20) {
right = true;
} else if ((pdist > tdist) && (force == 0)) {
follow();
} else if (pdist > 25) {
if ((_x > _root.player._x) && (f == 1)) {
left = true;
} else if ((_x < _root.player._x) && (f == -1)) {
right = true;
}
}
} else if (_x < 300) {
right = true;
} else {
left = true;
}
}
}
}
if (_root.knifing && (!hmn)) {
health = 1000000000 /* 0x3B9ACA00 */;
guntype = 0;
f = -1;
_x = 550;
}
if (electro > 0) {
if (electro > 60) {
electro = 60;
}
electro--;
if ((electro % 2) == 0) {
eforce = 1;
} else {
eforce = -1;
}
head.force = 10 * eforce;
body.force = -10 * eforce;
} else {
if ((zombie == 1) && (_root.isjesus)) {
zsc = 2;
zdc = 4;
} else {
zsc = (zdc = 1);
}
oldf = f;
d = right - left;
if (d != 0) {
f = d;
}
if (f != oldf) {
hand.bx = (hand._x = hand._x * -1);
}
_xscale = (f * 100);
if (f == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
usetime--;
if (usejetpack) {
vd = down - up;
kli = (_root.jetLowInertia && (hmn)) / 2;
if (d == 0) {
jxv = jxv * (1 - ((0.1 + kli) / _root.runspeed));
} else {
jxv = jxv + ((d * acc) / _root.runspeed);
}
if (vd == 0) {
jyv = jyv * (1 - ((0.1 + kli) / _root.runspeed));
} else {
jyv = jyv + ((vd * acc) / _root.runspeed);
}
if ((!_root.experiment) && ((_y - kth) < 0)) {
trace("OLD Y: " + _y);
_y = kth;
trace("NEW Y: " + _y);
jyv = jyv * -0.5;
}
_x = (_x + (jxv / _root.runspeed));
jby = jby + (jyv / _root.runspeed);
n = n + (0.2 / _root.runspeed);
_y = (jby + (Math.sin(n) * 4));
_rotation = (jxv / 3);
if (use && (usetime < 0)) {
usetime = 10;
usejetpack = false;
_rotation = 0;
yforce = jyv;
force = jxv;
}
} else {
_x = (_x + ((((d * smt) / (1 + ((_root.runspeed - 1) * btdrag))) / zsc) * (1 + (hmn * (_root.speedScalar - 1)))));
}
if (use && (usetime < 0)) {
usetime = 10;
if (isjetpack && (!usejetpack)) {
usejetpack = true;
jyv = -4;
jxv = ((d * smt) / (1 + ((_root.runspeed - 1) * btdrag))) / zsc;
jby = _y;
n = 0;
} else if (issuibomb) {
detonate();
}
}
}
utimer--;
if (up && (utimer < 0)) {
utimer = 5;
if (_y == _root.ground) {
yforce = -12 * _root.jump;
airjump = true;
} else if (airjump && (!oldup)) {
yforce = yforce - (13 * _root.jump);
airjump = false;
if (_root.tutorial) {
_root.hasdoublejumped = true;
}
}
}
if (_root.downToEarth && (Key.isDown(_root.keys[_root.ki.down]))) {
yforce = yforce + 3;
}
}
if (!dead) {
oldup = up;
hand.gotoAndStop(((2 * guntype) - 1) + (f == -1));
if (_root.reload && (del)) {
hand.ammo = _root.ammo[guntype - 1];
}
pimmunity--;
head.splat.gotoAndStop(hspl + 1);
body.splat.gotoAndStop(spl + 1);
spltimer++;
if (((spltimer % 300) == 1) && (hspl > 0)) {
hspl--;
spl--;
}
if (((!jesus) && (!fromdoor)) || (dying > 0)) {
_x = (_x + (force / _root.runspeed));
if (!usejetpack) {
_y = (_y + (yforce / _root.runspeed));
}
if (_y < 0) {
force = force * (1 - (aresistance / _root.runspeed));
} else {
force = force * (1 - (resistance / _root.runspeed));
}
yforce = yforce + (gravity / _root.runspeed);
if (_y > _root.ground) {
_y = _root.ground;
if (usejetpack) {
usejetpack = false;
_rotation = 0;
yforce = jyv;
force = jxv;
}
if (yforce > 5) {
head.dforce = (hand.ff = (nonhand.ff = yforce));
if (((yforce > ((30 + (10 * hmn)) * _root.jump)) && (!_root.downToEarth)) && (!_root.alwaysinvincible)) {
_root.bloodspray(_x, _y + head._y);
health = 0;
dying = 1;
rspeed = 1;
}
}
yforce = 0;
} else if (((_y - kth) < _root.ceil) && (_root.isceil)) {
_y == (_root.ceil + kth);
if (yforce < 0) {
yforce = yforce * -0.2;
}
if (jyv < 0) {
jyv = jyv * -0.1;
}
}
}
if (Math.abs(force) < 0.1) {
force = 0;
}
if (dying > 0) {
if (aflame) {
killflames();
}
if (usejetpack) {
usejetpack = false;
yforce = jyv;
force = jxv;
}
if (issuibomb && (!hmn)) {
detonate();
}
ddelay++;
dying++;
if (ddelay > (4 * _root.runspeed)) {
if (_y == _root.ground) {
rspeed = rspeed * 1.3;
} else if (yforce >= 0) {
rspeed = rspeed * 1.1;
}
if ((_x < (_root.min + 25)) && (rspeed < 0)) {
rspeed = 1;
} else if ((_x > (_root.max - 25)) && (rspeed > 0)) {
rspeed = -1;
}
_rotation = (_rotation + (rspeed / _root.runspeed));
if (Math.abs(_rotation) > 90) {
if (_rotation < 0) {
_rotation = -90;
} else if (_rotation > 0) {
_rotation = 90;
}
rspeed = 0;
} else if ((Math.abs(_rotation) == 90) && (_y == _root.ground)) {
mysound = Math.ceil(Math.random() * 3);
if (_root.runspeed == 1) {
eval ("_root.fall" + mysound).start();
} else {
eval ("_root.lowfall" + mysound).start();
}
remove();
}
}
}
}
if ((_root.knifing && (hmn)) && (_x > 100)) {
_x = 100;
}
if (hasentered) {
if ((_x + 10) > _root.max) {
_x = (_root.max - 10);
if (usejetpack) {
jxv = jxv * -0.2;
}
} else if ((_x - 10) < _root.min) {
_x = (_root.min + 10);
if (usejetpack) {
jxv = jxv * -0.2;
}
}
} else if (((_x + 10) < _root.max) && ((_x - 10) > _root.min)) {
hasentered = true;
}
if (_root.detail >= 2) {
shadow._x = _x;
if (fromdoor) {
shadow._xscale = (shadow._yscale = (shadow._alpha = 100));
shadow._y = _y + 6;
} else {
shadow._y = _root.ground + 6;
shadow._visible = (_root.ground - _y) < 200;
shadow._xscale = (shadow._yscale = (shadow._alpha = (200 - (_root.ground - _y)) / 2));
}
}
}
cx = _x;
cy = _y - 50;
}
Instance of Symbol 551 MovieClip "gen" in Frame 6
onClipEvent (load) {
function makeguy(h, z, x, y, gtype, isdoor, isjetpack, isbomb) {
_root.activeguys++;
if (_root.detail >= 2) {
_root.lowlevel++;
duplicateMovieClip (_root.shadow, "shadow" + _root.lowlevel, _root.lowlevel);
shadow = eval ("_root.shadow" + _root.lowlevel);
}
_root.lowlevel++;
duplicateMovieClip (_root.pgen, "guy" + _root.lowlevel, _root.lowlevel);
g = eval ("_root.guy" + _root.lowlevel);
g.gen = false;
g._x = x;
g._y = y;
if (_root.detail >= 2) {
g.shadow = shadow;
}
if (h) {
g.hmn = true;
_root.player = g;
if (_root.giveminigun) {
g.guntype = 19;
g.hand.ammo = 10000000 /* 0x989680 */;
} else {
g.guntype = 1;
}
g._y = _root.ground;
if (_root.inv) {
g.health = 1000000000 /* 0x3B9ACA00 */;
}
} else {
g.hmn = false;
if (isdoor) {
g.fromdoor = isdoor;
g._alpha = 0;
}
if (isjetpack) {
g.isjetpack = true;
} else {
g.isjetpack = false;
}
if (isbomb) {
g.issuibomb = true;
} else {
g.issuibomb = false;
}
if (_root.maingame) {
g.hat = _root.cset[0][Math.floor(Math.random() * _root.cset[0].length)];
g.glasses = _root.cset[1][Math.floor(Math.random() * _root.cset[1].length)];
g.beard = _root.cset[2][Math.floor(Math.random() * _root.cset[2].length)];
g.suit = _root.cset[3][Math.floor(Math.random() * _root.cset[3].length)];
}
if (_root.allrocket && (_root.maingame)) {
if (Math.random() < 0.5) {
g.guntype = 21;
} else {
g.guntype = 28;
}
} else if (gtype) {
g.guntype = gtype;
} else if (_root.enemyguns == "all") {
g.guntype = Math.ceil(Math.random() * _root.numguns);
} else {
g.guntype = _root.enemyguns[Math.floor(Math.random() * _root.enemyguns.length)];
}
g.hand.ammo = _root.ammo[g.guntype - 1];
if (g.guntype == 12) {
g.hand.k.gotoAndPlay(2);
}
}
g.zombie = z;
}
function sidex() {
if (Math.random() < 0.5) {
return((newx = -30));
}
return((newx = _root.width + 30));
}
_visible = false;
makeguy(true, 0, 300, _root.ground);
if (_root.knifing) {
makeguy(false, false, 550, _root.ground);
} else if (_root.matrix) {
maxtimer = 60;
} else if (_root.zombie) {
ztimer = 0;
zdelay = 80;
jesustimer = 0;
jesusdelay = 500;
}
}
onClipEvent (enterFrame) {
if (_root.pause != true) {
if (_root.matrix) {
timer = timer + (1 / _root.runspeed);
if (_root.runspeed == 1) {
timer = Math.floor(timer);
}
if ((timer % maxtimer) == 0) {
timer = 0;
if (maxtimer > 5) {
maxtimer--;
}
makeguy(false, 0, sidex(), _root.ground);
}
} else if (_root.zombie) {
ztimer++;
jesustimer++;
if ((ztimer % zdelay) == 0) {
makeguy(false, 1, sidex(), _root.ground);
}
if ((jesustimer > jesusdelay) && (!_root.isjesus)) {
jesustimer = 0;
makeguy(false, 2, sidex(), 100);
if (jesusdelay > 100) {
jesusdelay = jesusdelay - 10;
}
if (zdelay > 20) {
zdelay = zdelay - 10;
}
}
} else if (_root.experiment) {
if (_root.ai) {
usex = sidex();
usey = _root.ground;
} else {
usex = 11 + (Math.random() * (_root.width - 22));
usey = 0;
}
timer++;
if (Key.isDown(_root.keys[_root.ki.newguy]) && (timer > 10)) {
timer = 0;
makeguy(false, 0, usex, usey);
}
if (_root.autospawn && (_root.targets.length < 4)) {
atimer++;
if ((atimer % 60) == 0) {
makeguy(false, 0, usex, usey);
}
}
}
}
}
Instance of Symbol 553 MovieClip "line" in Frame 6
onClipEvent (enterFrame) {
if (_name != "line") {
timer++;
if (timer > 1) {
removeMovieClip(this);
}
} else {
_visible = false;
}
}
Instance of Symbol 555 MovieClip "gunkeys" in Frame 6
onClipEvent (load) {
_visible = false;
if (_root.survival) {
sguns = new Array(2, 11, 12, 13, 24, 25, 29);
}
}
onClipEvent (enterFrame) {
if (_root.pause != true) {
if (timer < 0) {
if (Key.isDown(49)) {
timer = 10;
_root.tgun.makegun(2);
} else if (Key.isDown(50)) {
timer = 10;
_root.tgun.makegun(3);
} else if (Key.isDown(51)) {
timer = 10;
_root.tgun.makegun(4);
} else if (Key.isDown(52)) {
timer = 10;
_root.tgun.makegun(5);
} else if (Key.isDown(53)) {
timer = 10;
_root.tgun.makegun(6);
} else if (Key.isDown(54)) {
timer = 10;
_root.tgun.makegun(7);
} else if (Key.isDown(55)) {
timer = 10;
_root.tgun.makegun(8);
} else if (Key.isDown(56)) {
timer = 10;
_root.tgun.makegun(9);
} else if (Key.isDown(57)) {
timer = 10;
_root.tgun.makegun(10);
} else if (Key.isDown(48)) {
timer = 10;
_root.tgun.makegun(11);
} else if (Key.isDown(189)) {
timer = 10;
_root.tgun.makegun(12);
} else if (Key.isDown(187)) {
timer = 10;
_root.tgun.makegun(13);
} else if (Key.isDown(8)) {
timer = 10;
_root.tgun.makegun(14);
} else if (Key.isDown(97)) {
timer = 10;
_root.tgun.makegun(15);
} else if (Key.isDown(98)) {
timer = 10;
_root.tgun.makegun(16);
} else if (Key.isDown(99)) {
timer = 10;
_root.tgun.makegun(17);
} else if (Key.isDown(100)) {
timer = 10;
_root.tgun.makegun(18);
} else if (Key.isDown(101)) {
timer = 10;
_root.tgun.makegun(19);
} else if (Key.isDown(102)) {
timer = 10;
_root.tgun.makegun(20);
} else if (Key.isDown(103)) {
timer = 10;
_root.tgun.makegun(21);
} else if (Key.isDown(104)) {
timer = 10;
_root.tgun.makegun(22);
} else if (Key.isDown(105)) {
timer = 10;
_root.tgun.makegun(23);
} else if (Key.isDown(110)) {
timer = 10;
_root.tgun.makegun(24);
} else if (Key.isDown(96)) {
timer = 10;
_root.tgun.makegun(25);
} else if (Key.isDown(107)) {
timer = 10;
_root.tgun.makegun(26);
} else if (Key.isDown(109)) {
timer = 10;
_root.tgun.makegun(27);
} else if (Key.isDown(111)) {
timer = 10;
_root.tgun.makegun(28);
} else if (Key.isDown(106)) {
timer = 10;
_root.tgun.makegun(29);
}
}
if (_root.experiment) {
timer--;
}
if (Key.isDown(_root.keys[_root.ki.quit])) {
_root.ret();
}
ptimer--;
if ((ptimer < 0) && (Key.isDown(_root.keys[_root.ki.pause]))) {
ptimer = 10;
if (_root.pause != true) {
_root.dopause();
stopAllSounds();
Mouse.show();
if (_root.experiment) {
_root.newmenu(150, 50, 300, 300, "Pause", _root.expausemenu);
} else {
_root.newmenu(200, 150, 200, 100, "Pause", _root.regpausemenu);
}
}
}
if (_root.zombie) {
ztimer--;
if (ztimer < 0) {
ztimer = 200;
_root.tgun.makegun(3);
}
} else if (_root.lasermode) {
lmtimer--;
if (lmtimer < 0) {
lmtimer = 150;
_root.tgun.makegun(2);
}
}
}
}
Instance of Symbol 27 MovieClip "timemaster" in Frame 6
onClipEvent (load) {
function rtl() {
totaltime = _root.timeleft;
partsecs = Math.round(((totaltime % 30) / 30) * 100);
secs = (totaltime - (totaltime % 30)) / 30;
mins = (secs - (secs % 60)) / 60;
secs = secs % 60;
if (partsecs < 10) {
partsecs = "0" + partsecs;
}
if (secs < 10) {
secs = "0" + secs;
}
_root.showtimeleft = (((mins + ":") + secs) + ".") + partsecs;
}
_visible = false;
_root.regen = -1;
}
onClipEvent (enterFrame) {
if (_root.pause != true) {
if (_root.regen > 0) {
_root.regen--;
if (_root.regen == 0) {
_root.gen.makeguy(true, false, 300, 0);
}
}
if (_root.knifing) {
_root.timeleft--;
rtl();
if (_root.timeleft <= 0) {
stopAllSounds();
Mouse.show();
_root.pause = true;
_root.accuracy = Math.round((_root.enemies_hit / _root.shotsfired) * 100) + "%";
_root.newmenu(150, 100, 300, 200, "Game Over", _root.endchallengescore);
}
} else if (_root.lasermode) {
_root.timeleft++;
rtl();
}
_root.scenetime++;
_root.totaltime++;
}
}
Instance of Symbol 558 MovieClip "btrbarsrc" in Frame 6
onClipEvent (enterFrame) {
xt = (_root.clip._x - _root.clip._width) - 10;
_x = (_x + ((xt - _x) / 3));
}
Instance of Symbol 59 MovieClip "flame" in Frame 6
onClipEvent (load) {
function die() {
dead = true;
}
if (_name == "flame") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (dead) {
_alpha = (_alpha - (10 / _root.runspeed));
if (_alpha < 0) {
removeMovieClip(this);
}
} else if (gen == false) {
if (move != false) {
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
if (((_x - _width) > _root.width) || ((_x + _width) < 0)) {
removeMovieClip(this);
}
xv = xv * (1 - (0.01 / _root.runspeed));
yv = yv * (1 + (0.01 / _root.runspeed));
f = f + (1 / _root.runspeed);
if (f > 6) {
_alpha = (_alpha - (10 / _root.runspeed));
if (_alpha <= 0) {
removeMovieClip(this);
}
}
}
i = 0;
while (i < _root.targets.length) {
if ((_root.targets[i].hmn != hmn) && (_root.targets[i].hasburned != true)) {
if (_root.targets[i].hitTest(_x, _y, true)) {
_root.targets[i].health = _root.targets[i].health - 0.3;
if (_root.targets[i].health <= 0) {
_root.targets[i].lightup();
}
}
}
i++;
}
}
}
Instance of Symbol 561 MovieClip "bodygib" in Frame 6
onClipEvent (load) {
function remove() {
_root.giblets.splice(id, 1);
i = id;
while (i < _root.giblets.length) {
_root.giblets[i].id--;
i++;
}
removeMovieClip(this);
}
if (_name == "bodygib") {
_visible = false;
}
yv = 0;
}
onClipEvent (enterFrame) {
if (_root.scenechange) {
rtimer++;
if (rtimer > 20) {
remove();
}
}
if ((rtimer > 20) || (_root._currentframe != _root.gameframe)) {
remove();
}
if ((gen == false) && (!_root.pause)) {
if (fading) {
timer++;
if (timer > 10) {
remove();
}
} else if (falling) {
_rotation = (_rotation + (rspeed / _root.runspeed));
rspeed = rspeed * 1.2;
if (Math.abs(_rotation) > 90) {
if (_rotation > 0) {
_rotation = 90;
} else {
_rotation = -90;
}
fading = true;
}
} else {
_rotation = 0;
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
if (_y < _root.ground) {
yv++;
xv = xv * 0.98;
} else if (_y > _root.ground) {
_y = _root.ground;
yv = 0;
} else if (_y == _root.ground) {
xv = xv * 0.5;
}
if ((_x < _root.min) && (_root.minwall)) {
_x = _root.min;
xv = xv * -0.2;
} else if ((_x > _root.max) && (_root.maxwall)) {
_x = _root._root.max;
xv = xv * -0.2;
}
if (Math.abs(xv) < 0.2) {
falling = true;
if (xv < 0) {
rspeed = -1;
} else {
rspeed = 1;
}
}
}
}
}
Instance of Symbol 564 MovieClip "headgib" in Frame 6
onClipEvent (load) {
function remove() {
_root.giblets.splice(id, 1);
i = id;
while (i < _root.giblets.length) {
_root.giblets[i].id--;
i++;
}
removeMovieClip(this);
}
if (_name == "headgib") {
_visible = false;
}
circumference = Math.PI * _width;
}
onClipEvent (enterFrame) {
if (_root.scenechange) {
rtimer++;
}
if ((rtimer > 20) || (_root._currentframe != _root.gameframe)) {
remove();
}
if ((gen == false) && (!_root.pause)) {
if (fading) {
timer++;
if (timer > 10) {
remove();
}
} else {
_rotation = (_rotation + rv);
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
if (_y < _root.ground) {
yv++;
xv = xv * 0.98;
rv = rv * 0.98;
} else if (_y > _root.ground) {
_y = _root.ground;
yv = 0;
} else if (_y == _root.ground) {
xv = xv * 0.5;
rv = rv * 0.5;
}
if ((!hashit) && ((((_x + (_width / 2)) > _root.max) && (_root.maxwall)) || (((_x - (_width / 2)) < _root.min) && (_root.minwall)))) {
xv = xv * -0.3;
rv = rv * -0.3;
hashit = true;
}
if (Math.abs(xv) < 0.2) {
fading = true;
}
}
}
}
Instance of Symbol 573 MovieClip "chunk" in Frame 6
onClipEvent (load) {
if (_name == "chunk") {
_visible = false;
}
animsize = 8;
gotoAndStop((Math.floor((Math.random() * _totalframes) / animsize) * animsize) + 1);
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (_root.scenechange) {
rtimer++;
}
if ((rtimer > 20) || (_root._currentframe != _root.gameframe)) {
removeMovieClip(this);
}
if ((gen == false) && (!_root.pause)) {
if (fade) {
timer++;
if (timer > 10) {
removeMovieClip(this);
}
} else {
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
_rotation = (_rotation + rv);
rv = rv * 0.99;
xv = xv * 0.99;
yv++;
if ((_x > _root.max) && (_root.maxwall)) {
_x = _root.max;
xv = xv * -0.1;
} else if ((_x < _root.min) && (_root.minwall)) {
_x = _root.min;
xv = xv * -1;
}
if (_y > _root.ground) {
_y = _root.ground;
if (yv > 12) {
yv = yv * -0.3;
} else {
fade = true;
}
}
}
}
}
Instance of Symbol 577 MovieClip "shard" in Frame 6
onClipEvent (load) {
if (_name == "shard") {
_visible = false;
}
var dt = 0;
var xv = ((Math.random() * 10) - 5);
var yv = ((Math.random() * 5) - 10);
var rv = ((Math.random() * 10) - 5);
_x = (_x + ((Math.random() * 4) - 2));
_y = (_y + ((Math.random() * 4) - 2));
gotoAndStop(Math.ceil(Math.random() * _totalframes));
}
onClipEvent (enterFrame) {
if ((gen == false) && (!_root.pause)) {
if (yv != 0) {
yv = yv + (1 / _root.runspeed);
}
xv = xv * (1 - (0.01 / _root.runspeed));
rv = rv * (1 - (0.001 / _root.runspeed));
_x = (_x + (xv / _root.runspeed));
_y = (_y + (yv / _root.runspeed));
_rotation = (_rotation + (rv / _root.runspeed));
if (_y > _root.ground) {
_y = _root.ground;
if (yv > 7) {
yv = yv * -0.3;
} else {
yv = 0;
}
} else if (_y == _root.ground) {
xv = xv * (1 - (0.5 / _root.runspeed));
rv = rv * (1 - (0.5 / _root.runspeed));
dt++;
if (dt > 10) {
removeMovieClip(this);
}
}
trace((_y + " | ") + _root.ground);
}
}
Instance of Symbol 580 MovieClip "killcounter" in Frame 6
onClipEvent (load) {
if (_root.knifing || (_root.lasermode)) {
_visible = false;
}
}
Instance of Symbol 583 MovieClip in Frame 6
onClipEvent (load) {
if (!_root.knifing) {
_visible = false;
}
}
Instance of Symbol 585 MovieClip "hud" in Frame 6
onClipEvent (enterFrame) {
if (!_root.pause) {
timer++;
if (timer > 60) {
_root.hudlist.splice(_root.hudlist.length - 1, 1);
}
}
}
Instance of Symbol 588 MovieClip in Frame 6
onClipEvent (load) {
if (!_root.maingame) {
_visible = false;
}
}
Instance of Symbol 591 MovieClip in Frame 6
onClipEvent (load) {
if (!_root.lasermode) {
_visible = false;
}
}
Instance of Symbol 594 MovieClip in Frame 6
onClipEvent (load) {
if (!_root.knifing) {
_visible = false;
}
}
Frame 7
Mouse.show();
stop();
if (totalScore < 0) {
totalScore = 0;
}
totalScore = totalScore + (sceneScore + 300);
totalScore = Math.round(totalScore);
accy = Math.round((enemies_hit / shotsfired) * 10000) / 100;
adisp = accy + "%";
if (kstring > maxstring) {
maxstring = kstring;
}
gtime = timeToString(totaltime);
if (ischeating) {
cemessage = "You get nothing, because you cheated!";
rating = 0;
} else {
apart = accy / 100;
if (totaltime > 18000) {
tpart = 0;
} else if (totaltime < 5400) {
tpart = 1;
} else {
tpart = 1 - ((totaltime - 5400) / 12600);
}
if (hmndeaths > 50) {
dpart = 0;
} else {
dpart = 1 - (hmndeaths / 50);
}
rating = Math.round(10000 * (((0.2 * apart) + (0.3 * tpart)) + (0.5 * dpart))) / 100;
}
Instance of Symbol 604 MovieClip in Frame 7
onClipEvent (load) {
if (!_root.ischeating) {
c1 = "apollo";
if (_root.rating >= 16) {
c2 = c2 + "hop";
}
if (_root.rating >= 33) {
c1 = c1 + "\ngump";
}
if (_root.rating >= 50) {
c2 = c2 + "\narnold";
}
if (_root.rating >= 66) {
c1 = c1 + "\nminnie";
}
if (_root.rating >= 83) {
c2 = c2 + "\nFLCL";
ismore = "You have unlocked all of the cheats!";
} else {
ismore = "There are still more cheats left to unlock!";
}
}
}
Frame 8
Instance of Symbol 680 MovieClip "hsclip" in Frame 8
onClipEvent (load) {
_visible = false;
}
onClipEvent (data) {
_root.isloading._visible = false;
_visible = true;
i = 1;
while (i < 11) {
this["rating" + i] = this["rating" + i] + "%";
this["accy" + i] = this["accy" + i] + "%";
i++;
}
r = Number(user_rank);
if (r == 0) {
arrow._visible = false;
} else {
arrow._visible = true;
arrow._y = 28.1 + ((r - 1) * 26.3);
}
}
Frame 9
stop();
Symbol 25 MovieClip Frame 10
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 40 Button
on (rollOver) {
if (lock != true) {
_root.oversound.start();
bg.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
bg.gotoAndStop(1);
}
on (press) {
_root.oksound.start();
}
on (release) {
if (lock != true) {
if (ax == 0) {
_root.gotoAndStop("intro");
_root.maingame = true;
_root.killmenu(0);
} else if (ax == 1) {
_root.gotoAndStop("game");
_root.tutorial = true;
_root.killmenu(0);
} else if (ax == 2) {
_root.newmenu(175, 50, 250, 300, "Options", _root.options);
_root.fademenu(0, 50);
} else if (ax == 3) {
_root.newmenu(175, 75, 250, 250, "Challenges", _root.challenges);
_root.fademenu(0, 50);
} else if (ax == 4) {
_root.gotoAndStop("game");
_root.experiment = true;
_root.ai = true;
_root.invincibility = false;
_root.autospawn = false;
_root.killmenu(0);
} else if (ax == 5) {
_root.newmenu(357, 40, 213, 320, "Controls", _root.controls);
_root.fademenu(0, 25);
_root.fademenu(1, 50);
} else if (ax == 6) {
_root.newmenu(320, 100, 250, 200, "Display", _root.display);
_root.fademenu(0, 25);
_root.fademenu(1, 50);
} else if (ax == 7) {
_root.newmenu(280, 100, 300, 200, "Cheater!", _root.cheater);
_root.fademenu(0, 25);
_root.fademenu(1, 50);
} else if (ax == 8) {
_root.fademenu(0, 100);
_root.killmenu(1);
} else if (ax == 9) {
_root.fademenu(0, 50);
_root.fademenu(1, 100);
_root.killmenu(2);
} else if (ax == 10) {
_root.newmenu(330, 30, 240, 340, "Character", _root.character);
_root.fademenu(0, 25);
_root.fademenu(1, 50);
} else if (ax == 11) {
_root.unpause();
Mouse.hide();
_root.killmenu(0);
} else if (ax == 12) {
_root.gotoAndStop("game");
_root.ai = true;
_root.invincibility = false;
_root.matrix = true;
_root.killmenu(0);
_root.killmenu(0);
} else if (ax == 13) {
} else if (ax == 14) {
_root.pause = false;
_root.ret();
_root.killmenu(0);
} else if (ax == 15) {
_root.gotoAndStop("game");
_root.juggle = true;
_root.ai = false;
_root.invincibility = false;
_root.killmenu(0);
_root.killmenu(0);
} else if (ax == 16) {
_root.gotoAndStop("game");
_root.zombie = true;
_root.ai = true;
_root.invincibility = false;
_root.killmenu(0);
_root.killmenu(0);
} else if (ax == 17) {
_root.gotoAndStop("game");
_root.knifing = true;
_root.ai = false;
_root.invincibility = true;
_root.killmenu(0);
_root.killmenu(0);
} else if (ax == 18) {
_root.gotoAndStop("game");
_root.lasermode = true;
_root.ai = false;
_root.invincibility = false;
_root.killmenu(0);
_root.killmenu(0);
} else if (ax == 19) {
_root.newmenu(270, 50, 310, 300, "Credits", _root.creditmenu);
_root.fademenu(0, 50);
} else if (ax == 20) {
} else if (ax == 21) {
getURL ("http://www.flecko.net/", "blank");
} else if (ax == 22) {
getURL ("http://www.mmodule.com/", "blank");
} else if (ax == 23) {
getURL ("http://www.liquid-fires.com/", "blank");
} else if (ax == 24) {
getURL ("http://www.flecko.net/view.php?id=13", "blank");
} else if (ax == 25) {
_root.gotoAndStop("scores");
_root.killmenu(0);
} else if (ax == 26) {
_root.ischeating = false;
_root.armlength = 1;
_root.infbt = false;
_root.alwaysinvincible = false;
_root.highjump = false;
_root.laserguide = false;
_root.giveminigun = false;
_root.arnold = false;
_root.gump = false;
_root.allrocket = false;
_root.infammo = false;
}
}
}
Symbol 56 MovieClip Frame 1
function update() {
if (_parent._parent.gen == false) {
if (_name == "one") {
count++;
if (((count % 2) / _root.runspeed) == 0) {
this.duplicateMovieClip("copy" + count, count);
}
} else {
_yscale = (_yscale - (15 / _root.runspeed));
_xscale = (_yscale - (15 / _root.runspeed));
if (_xscale <= 0) {
this.removeMovieClip();
}
_alpha = (_alpha - (5 / _root.runspeed));
_y = (_y - (5 / _root.runspeed));
if (Math.random() < 0.5) {
_x = (_x - ((Math.random() * 2) / _root.runspeed));
} else {
_x = (_x + ((Math.random() * 2) / _root.runspeed));
}
}
}
}
Instance of Symbol 56 MovieClip "one" in Symbol 57 MovieClip Frame 1
onClipEvent (enterFrame) {
update();
}
Instance of Symbol 56 MovieClip "one" in Symbol 58 MovieClip Frame 1
onClipEvent (enterFrame) {
update();
}
Instance of Symbol 59 MovieClip "flame" in Symbol 77 MovieClip Frame 10
onClipEvent (load) {
gen = false;
}
Symbol 98 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 0;
k0 = "???";
}
}
Symbol 99 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 1;
k1 = "???";
}
}
Symbol 100 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 2;
k2 = "???";
}
}
Symbol 101 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 3;
k3 = "???";
}
}
Symbol 102 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 4;
k4 = "???";
}
}
Symbol 103 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 5;
k5 = "???";
}
}
Symbol 104 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 6;
k6 = "???";
}
}
Symbol 105 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 7;
k7 = "???";
}
}
Symbol 106 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 9;
k9 = "???";
}
}
Symbol 107 Button
on (release) {
if (keylock != true) {
keylock = true;
id = 8;
k8 = "???";
}
}
Symbol 110 Button
on (release) {
if (_root[myvar] == true) {
_root[myvar] = false;
gotoAndStop (1);
} else {
_root[myvar] = true;
gotoAndStop (2);
}
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 114 Button
on (release) {
immune = 2;
showlist();
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 117 Button
on (rollOver) {
if (lock != true) {
_root.oversound.start();
bg.gotoAndStop(2);
}
}
on (rollOut, releaseOutside) {
bg.gotoAndStop(1);
}
on (press) {
_root.oksound.start();
}
on (release) {
_root[setvar] = setval;
master.showval();
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Instance of Symbol 125 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.suit);
}
Instance of Symbol 132 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.beard);
}
Instance of Symbol 138 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.glasses);
}
Instance of Symbol 148 MovieClip in Symbol 149 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.hat);
}
Symbol 159 MovieClip Frame 1
function testcheat() {
trace("test");
if (_root.ischeating) {
out = "Cheater!";
} else if (_root.matrix && (_root.numkilled > 50)) {
out = "New cheat: newyorkminute";
} else if (_root.zombie && (_root.numkilled > 75)) {
out = "New cheat: willis";
} else if (_root.knifing && (_root.score >= 25)) {
out = "New cheat: armstrong";
} else if (_root.lasermode && (_root.timeleft > 2700)) {
out = "New cheat: guide";
} else {
out = "No cheats unlocked. Try harder!";
}
}
Instance of Symbol 159 MovieClip "newcheats" in Symbol 160 MovieClip Frame 1
onClipEvent (enterFrame) {
timer++;
if (timer == 2) {
testcheat();
}
}
Instance of Symbol 159 MovieClip "newcheats" in Symbol 164 MovieClip Frame 1
onClipEvent (enterFrame) {
timer++;
if (timer == 2) {
testcheat();
}
}
Symbol 166 Button
on (release) {
ch = mycheat.toLowerCase();
givec = true;
if (ch == "armstrong") {
_root.armlength = 2;
mycheat = "Reach doubled!";
} else if (ch == "newyorkminute") {
_root.infbt = true;
mycheat = "Infinite bullet time!";
} else if (ch == "willis") {
_root.alwaysinvincible = true;
mycheat = "Unbreakable!";
} else if (ch == "hop") {
_root.highjump = true;
mycheat = "High jump!";
} else if (ch == "guide") {
_root.laserguide = true;
mycheat = "Laser guide!";
} else if (ch == "minnie") {
_root.giveminigun = true;
mycheat = "Minigun power!";
} else if (ch == "arnold") {
_root.arnold = true;
mycheat = "Pumped up!";
} else if (ch == "gump") {
_root.gump = true;
mycheat = "Run!";
} else if (ch == "apollo") {
_root.allrocket = true;
mycheat = "All enemies use explosives!";
} else if (ch == "flcl") {
_root.infammo = true;
mycheat = "Infinite ammo!";
} else {
givec = false;
mycheat = "No dice.";
}
if (givec) {
_root.ischeating = true;
}
}
Instance of Symbol 159 MovieClip "newcheats" in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
timer++;
if (timer == 2) {
testcheat();
}
}
Symbol 183 Button
on (release) {
rAction();
}
on (rollOver) {
over = true;
swstr();
getType();
}
on (rollOut, releaseOutside) {
over = false;
swstr();
}
Symbol 184 MovieClip Frame 1
function rAction() {
_root.getPower(id);
Mouse.hide();
_root.unPause();
_root.killMenu(0);
}
function setType(typenum) {
id = typenum;
itemName = _root.levelUps[id][0];
altstr = ("<u>" + itemName) + "</u>";
_visible = true;
}
function getType() {
_parent.currentDesc = _root.levelUps[id][1];
}
function swstr() {
tmp = itemName;
itemName = altstr;
altstr = tmp;
}
stop();
Instance of Symbol 184 MovieClip "b1" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 184 MovieClip "b2" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 184 MovieClip "b3" in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 200 Button
on (release) {
_root.pause = false;
_root.ret();
_root.killmenu(0);
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
function scale() {
if (_yscale != _parent.yst) {
if (Math.abs(_yscale - _parent.yst) < 0.1) {
_yscale = _parent.yst;
}
_yscale = (_yscale + ((_parent.yst - _yscale) / 3));
}
}
_yscale = 0;
Instance of Symbol 261 MovieClip "s1" in Symbol 262 MovieClip Frame 1
onClipEvent (enterFrame) {
scale();
}
Instance of Symbol 261 MovieClip "s2" in Symbol 262 MovieClip Frame 1
onClipEvent (enterFrame) {
scale();
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "pt0" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 4
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 7
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 311 MovieClip Frame 7
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 10
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 311 MovieClip Frame 11
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 13
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 15
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 17
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt6" in Symbol 311 MovieClip Frame 20
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 24
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 311 MovieClip Frame 24
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt0" in Symbol 311 MovieClip Frame 27
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 311 MovieClip Frame 27
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 311 MovieClip Frame 27
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 311 MovieClip Frame 28
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt5" in Symbol 311 MovieClip Frame 28
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt5" in Symbol 311 MovieClip Frame 28
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt0" in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 59 MovieClip "flame" in Symbol 313 MovieClip Frame 2
onClipEvent (load) {
gen = false;
}
Symbol 330 MovieClip Frame 4
remove();
Symbol 330 MovieClip Frame 9
remove();
Symbol 330 MovieClip Frame 14
remove();
Symbol 330 MovieClip Frame 20
remove();
Symbol 333 MovieClip Frame 3
removeMovieClip(this);
Symbol 338 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 6
removeMovieClip(this);
Instance of Symbol 380 MovieClip in Symbol 382 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _parent._parent._parent.usejetpack;
}
Instance of Symbol 295 MovieClip "pt0" in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 382 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Symbol 388 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip "showbar" in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
_yscale = 0;
yst = 0;
}
onClipEvent (enterFrame) {
yst = (_parent.ammo / _parent.fullammo) * 100;
_yscale = (_yscale + ((yst - _yscale) / 3));
}
Symbol 393 MovieClip Frame 30
shoot();
gotoAndStop (1);
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 6
gotoAndStop (1);
Symbol 406 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Instance of Symbol 380 MovieClip in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
_visible = _parent._parent._parent.usejetpack;
}
onClipEvent (enterFrame) {
_visible = _parent._parent._parent.usejetpack;
}
Symbol 455 MovieClip Frame 1
stop();
Instance of Symbol 125 MovieClip in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 443 MovieClip "blood" in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
if (_name == "blood") {
_visible = false;
}
if (_y < 0) {
_y = 0;
} else if (_y > 53) {
_y = 53;
}
}
Instance of Symbol 446 MovieClip "stuck" in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
if (_name == "stuck") {
_visible = false;
}
}
Instance of Symbol 448 MovieClip in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
_visible = _parent._parent.isjetpack;
}
onClipEvent (enterFrame) {
_visible = _parent._parent.isjetpack;
}
Instance of Symbol 450 MovieClip in Symbol 455 MovieClip Frame 1
onClipEvent (load) {
_visible = _parent._parent.issuibomb;
}
onClipEvent (enterFrame) {
_visible = _parent._parent.issuibomb;
}
Symbol 455 MovieClip Frame 3
stop();
Symbol 455 MovieClip Frame 6
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 1
stop();
Instance of Symbol 443 MovieClip "blood" in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
if (_name == "blood") {
_visible = false;
}
if (_y > 0) {
_y = 0;
} else if (_y < -40) {
_y = -40;
}
}
Instance of Symbol 132 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Number(_parent._parent.beard));
}
Instance of Symbol 138 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Number(_parent._parent.glasses));
}
Instance of Symbol 148 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(Number(_parent._parent.hat));
}
Instance of Symbol 446 MovieClip "stuck" in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
if (_name == "stuck") {
_visible = false;
}
}
Symbol 462 MovieClip Frame 3
stop();
Symbol 462 MovieClip Frame 6
stop();
Symbol 471 MovieClip Frame 1
function kick() {
_x = bx;
backforce = sbf;
frontforce = sff;
}
function clear() {
frontforce = 0;
backforce = 0;
}
function frameAction() {
_x = (_x - (backforce / _root.runspeed));
backforce = backforce - (frontforce / _root.runspeed);
if ((backforce < 0) && (_parent.ammo <= 0)) {
clear();
locked = true;
}
if (locked && (_parent.ammo > 0)) {
clear();
locked = false;
_x = bx;
} else if ((!locked) && (_parent.ammo <= 0)) {
clear();
locked = true;
_x = (bx - maxback);
}
if (_x < (bx - maxback)) {
_x = (bx - maxback);
if (_parent.ammo <= 0) {
clear();
locked = true;
} else {
backforce = -2;
}
} else if (_x > bx) {
_x = bx;
clear();
}
}
gotoAndStop(sType);
backforce = 0;
frontforce = 0;
bx = _x;
Symbol 495 MovieClip Frame 1
if (_parent.kout) {
gotoAndStop (5);
} else {
stop();
}
Symbol 495 MovieClip Frame 2
play();
Symbol 495 MovieClip Frame 5
stop();
_parent.kout = true;
Symbol 497 MovieClip Frame 1
if (_parent.kout) {
gotoAndStop (5);
} else {
stop();
}
Symbol 497 MovieClip Frame 2
play();
Symbol 497 MovieClip Frame 5
stop();
_parent.kout = true;
Symbol 546 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "pt0" in Symbol 546 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 546 MovieClip Frame 3
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 471 MovieClip "slide" in Symbol 546 MovieClip Frame 3
onClipEvent (load) {
sType = 1;
sbf = 5;
sff = 3;
maxback = 8;
}
onClipEvent (enterFrame) {
frameAction();
}
Instance of Symbol 471 MovieClip "slide" in Symbol 546 MovieClip Frame 7
onClipEvent (load) {
sType = 2;
sbf = 4;
sff = 2;
maxback = 6;
}
onClipEvent (enterFrame) {
frameAction();
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 9
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 471 MovieClip "slide" in Symbol 546 MovieClip Frame 13
onClipEvent (load) {
sType = 3;
sbf = 5;
sff = 3;
maxback = 11;
}
onClipEvent (enterFrame) {
frameAction();
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 15
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 546 MovieClip Frame 15
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 471 MovieClip "slide" in Symbol 546 MovieClip Frame 19
onClipEvent (load) {
sType = 4;
sbf = 6;
sff = 4;
maxback = 10;
}
onClipEvent (enterFrame) {
frameAction();
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 21
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 546 MovieClip Frame 23
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 27
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 31
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 35
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt6" in Symbol 546 MovieClip Frame 41
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 471 MovieClip "slide" in Symbol 546 MovieClip Frame 45
onClipEvent (load) {
sType = 5;
sbf = 6;
sff = 3;
maxback = 9;
}
onClipEvent (enterFrame) {
frameAction();
}
Instance of Symbol 531 MovieClip in Symbol 546 MovieClip Frame 47
onClipEvent (enterFrame) {
_visible = _parent.viselec;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 49
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 546 MovieClip Frame 49
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt0" in Symbol 546 MovieClip Frame 55
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 546 MovieClip Frame 55
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 546 MovieClip Frame 55
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt3" in Symbol 546 MovieClip Frame 57
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt5" in Symbol 546 MovieClip Frame 57
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt5" in Symbol 546 MovieClip Frame 57
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Symbol 549 MovieClip Frame 1
stop();
Instance of Symbol 420 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
depth = 54;
}
onClipEvent (enterFrame) {
r = ((-_parent.body._rotation) / 180) * Math.PI;
_x = (_parent.body._x + (Math.sin(r) * depth));
_y = (_parent.body._y + (Math.cos(r) * depth));
_rotation = _parent.body._rotation;
}
Instance of Symbol 311 MovieClip "stogun" in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = _parent.hand.storetype[_parent.hand.resgun];
if (_visible) {
gotoAndStop(_parent.hand.resgun - 1);
}
}
Instance of Symbol 455 MovieClip "body" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
bx = _x;
by = _y;
wk = 40;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_rotation = (br + force);
force = force * (1 - (0.2 / _root.runspeed));
}
}
Instance of Symbol 462 MovieClip "head" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
bx = _x;
by = _y;
roff = (rofft = 0);
if (_parent.zombie == 1) {
c = new Color(this);
trans = new Object();
trans.gb = 0;
}
wk = 34;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.zombie == 1) {
if (_root.isjesus) {
gbt = 100;
} else {
gbt = 0;
}
trans.gb = trans.gb + ((gbt - trans.gb) / 3);
c.setTransform(trans);
}
_rotation = ((roff + br) + force);
force = force * (1 - (0.2 / _root.runspeed));
rofft = (_parent.hand._y - _parent.hand.yoff) / (3 * _root.armlength);
roff = roff + ((rofft - roff) / 8);
xt = bx + ((_parent.hand._x - _parent.hand.xoff) / (8 * _root.armlength));
if (xt < bx) {
xt = bx;
}
yt = by + dforce;
_x = (_x + ((xt - _x) / 8));
_y = (_y + ((yt - _y) / 3));
dforce = dforce * (1 - (0.2 / _root.runspeed));
}
}
Instance of Symbol 546 MovieClip "hand" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
function grenade(isFlare) {
if (grtimer < 0) {
grtimer = 15;
_root.level++;
duplicateMovieClip (_root.grenade, "grenade" + _root.level, _root.level);
g = eval ("_root.grenade" + _root.level);
g._x = pt0.x;
g._y = pt0.y;
g._rotation = _rotation;
ur = (arot / 180) * Math.PI;
g.yv = Math.sin(ur) * 30;
g.xv = Math.cos(ur) * 30;
g.gen = false;
if (isFlare) {
g.gType = "flare";
}
kick();
flash(3);
if (_root.runspeed == 1) {
_root.gl.start();
} else {
_root.lowgl.start();
}
if ((!_parent.hmn) || (!_root.infammo)) {
ammo--;
}
if (_parent.hmn) {
_root.clip.fire();
}
}
}
function stopfire(cut) {
if (cfire) {
if (cut) {
cfire = false;
}
_root.c.stop();
_root.lowc.stop();
}
if (sfire) {
if (cut) {
sfire = false;
}
_root.s.stop();
_root.lows.stop();
}
if (akfire) {
if (cut) {
akfire = false;
}
_root.ak.stop();
_root.lowak.stop();
}
if (lfire) {
if (cut) {
lfire = false;
}
_root.l85.stop();
_root.lowl85.stop();
}
if (ufire) {
if (cut) {
ufire = false;
}
_root.ump.stop();
_root.lowump.stop();
}
if (cgfire) {
if (cut) {
cgfire = false;
}
_root.cgs.stop();
_root.lowmini.stop();
_root.cgse.start();
}
if (flamefire) {
if (cut) {
flamefire = false;
}
_root.flame.stop();
_root.lowflame.stop();
}
if (autofire) {
if (cut) {
autofire = false;
}
_root.mag.stop();
_root.lowmag.stop();
}
if (tfire) {
if (cut) {
tfire = (viselec = false);
}
_root.zap.stop();
_root.lowzap.stop();
}
}
function startfire() {
if (cfire) {
if (_root.runspeed == 1) {
_root.c.start(0, 10000);
} else {
_root.lowc.start(0, 10000);
}
}
if (sfire) {
if (_root.runspeed == 1) {
_root.s.start(0, 10000);
} else {
_root.lowsmg.start(0, 10000);
}
}
if (akfire) {
if (_root.runspeed == 1) {
_root.ak.start(0, 10000);
} else {
_root.lowak.start(0, 10000);
}
}
if (lfire) {
if (_root.runspeed == 1) {
_root.l85.start(0, 10000);
} else {
_root.lowl85.start(0, 10000);
}
}
if (ufire) {
if (_root.runspeed == 1) {
_root.ump.start(0, 10000);
} else {
_root.lowump.start(0, 10000);
}
}
if (cgfire) {
if (_root.runspeed == 1) {
_root.cgs.start(0, 100000);
} else {
_root.lowmini.start(0, 10000);
}
}
if (flamefire) {
if (_root.runspeed == 1) {
_root.flame.start(0, 100000);
} else {
_root.lowflame.start(0, 100000);
}
}
if (autofire) {
if (_root.runspeed == 1) {
_root.mag.start(0, 100000);
} else {
_root.lowmag.start(0, 100000);
}
}
if (tfire) {
if (_root.runspeed == 1) {
_root.zap.start(0, 100000);
} else {
_root.lowzap.start(0, 100000);
}
}
}
function soundswitch() {
stopfire(false);
startfire();
}
function dropgun() {
dropguntimer = 10;
_root.level++;
duplicateMovieClip (_root.tgun, "tgun" + _root.level, _root.level);
tgun = eval ("_root.tgun" + _root.level);
tgun.type = _parent.guntype;
if ((_parent.guntype == 8) || (_parent.guntype == 5)) {
vscale = 0.5;
} else {
vscale = 1;
}
tgun.xv = (txc * f) * vscale;
tgun.yv = tyc * vscale;
tgun.rv = ((hv / 10) * fdir) * vscale;
tgun.fdir = fdir;
tgun.par = _parent;
tgun.gen = false;
tgun.thrown = true;
tgun.ammo = ammo;
tgun._x = ax;
tgun._y = ay;
tgun._rotation = arot;
if (_parent.f == -1) {
tgun._yscale = -100;
}
_parent.guntype = 1;
gotoAndStop (1);
kout = false;
uzifiring = 0;
m60fire = 0;
ammo = 0;
if (_parent.hmn) {
_root.clip.unloadgun();
}
if (_root.tutorial && (_parent.hmn)) {
_root.hasthrown = true;
}
}
function kick() {
tkang = kang + (arad * f);
yk = (Math.sin(tkang) * gunkick[_parent.guntype]) * f;
xk = (Math.cos(tkang) * gunkick[_parent.guntype]) * f;
if (_parent.usejetpack) {
_parent.jxv = _parent.jxv + ((xk / 12) * f);
_parent.jyv = _parent.jyv + (yk / 12);
}
slide.kick(3, 2, 5);
}
function flash(fltype) {
px = pt0.x + ((_parent.d * _parent.speed) * 2);
py = pt0.y;
_root.level++;
duplicateMovieClip (_root.flash, "flash" + _root.level, _root.level);
fl = eval ("_root.flash" + _root.level);
fl._x = px;
fl._y = py;
fl._rotation = arot;
fl.gotoAndStop(fltype);
}
function shoot(angle, inaccuracy, times) {
if (inaccuracy == null) {
inaccuracy = 0;
}
if (times == null) {
times = 1;
}
default_angle = angle;
j = 0;
while (j < times) {
angle = (default_angle - inaccuracy) + ((Math.random() * 2) * inaccuracy);
shoottime = _root.runspeed;
if (_parent.hmn) {
_root.shotsfired++;
}
kick();
if (!_root.sharpshooter) {
if (rscale < 12) {
rscale++;
}
roff = roff + (((Math.round(Math.random()) * 2) - 1) * rscale);
}
rad = (angle / 180) * Math.PI;
m = Math.sin(rad) / Math.cos(rad);
b = ay - (m * ax);
var shot = (new _root.Line(m, b));
if (((_parent.hmn * _root.flaregun) * Math.random()) > 0.9) {
grenade(true);
}
if (_parent.guntype == 21) {
_root.level++;
duplicateMovieClip (_root.rocket, "rocket" + _root.level, _root.level);
rk = eval ("_root.rocket" + _root.level);
rk._x = pt0.x;
rk._y = pt0.y;
rk._rotation = arot;
rk.rad = rad;
rk.hmn = _parent.hmn;
rk.gen = false;
} else if ((_root.runspeed != 1) && (_parent.guntype != 20)) {
_root.level++;
duplicateMovieClip (_root.btgraphic, "bullet" + _root.level, _root.level);
mybullet = eval ("_root.bullet" + _root.level);
mybullet._x = (mybullet.ox = pt0.x);
mybullet._y = (mybullet.oy = pt0.y);
mybullet._rotation = angle;
mybullet.m = m;
mybullet.b = b;
mybullet.fdir = fdir;
mybullet.force = gunforce[_parent.guntype];
mybullet.damage = gundamage[_parent.guntype];
mybullet.guntype = _parent.guntype;
mybullet.hmn = _parent.hmn;
mybullet.lastBullet = ammo == 1;
mybullet.gen = false;
} else {
ca = new Array();
yh = new Array();
closest = null;
minyhit = null;
mindist = 10000;
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
xd = t._x - pt0.x;
yd = t._y - pt0.y;
d = Math.sqrt((xd * xd) + (yd * yd));
if ((((t.hmn != _parent.hmn) && ((t.dying <= 1) || ((t.ddelay < 5) && ((t.deadhits < 10) || (t.zombie == 3))))) && (((fdir == 1) && ((t._x + t.khw) > pt0.x)) || ((fdir == -1) && ((t._x - t.khw) < pt0.x)))) && (t.hasentered)) {
yhit = (m * t._x) + b;
yhit1 = (m * (t._x - t.khw)) + b;
yhit2 = (m * (t._x + t.khw)) + b;
maxyr = t._y;
minyr = t._y - t.kth;
misscond = ((yhit2 < minyr) && (yhit1 < minyr)) || ((yhit2 > maxyr) && (yhit1 > maxyr));
if (!misscond) {
ca[ca.length] = t;
yh[ca.length - 1] = yhit;
if (d < mindist) {
mindist = d;
minyhit = yhit;
closest = t;
}
}
}
i++;
}
if (_parent.guntype == 20) {
n = 0;
while (n < ca.length) {
closest = ca[n];
yhit = yh[n];
headshot = yhit < (closest._y - 50);
if ((mindist < 100) && ((_parent.guntype == 3) || (_parent.guntype == 15))) {
if (headshot) {
if (((closest._x > pt0.x) && (closest.f == 1)) || ((closest._x < pt0.x) && (closest.f == -1))) {
bltype = 5;
} else {
bltype = 4;
}
} else if (((closest._x > pt0.x) && (closest.f == 1)) || ((closest._x < pt0.x) && (closest.f == -1))) {
bltype = 7;
} else {
bltype = 6;
}
} else {
bltype = gunblood[_parent.guntype];
}
hitScale = 1 + (((ammo == 1) * _root.goldenBullet) * 3);
closest.blood(headshot, yhit, bltype, fdir);
closest.hit(headshot, fdir, (gundamage[_parent.guntype] * _root.gunDamageScalar) * hitscale, gunforce[_parent.guntype] * hitscale, rad);
n++;
}
} else if (closest != null) {
headshot = minyhit < (closest._y - 50);
if ((mindist < 100) && ((_parent.guntype == 3) || (_parent.guntype == 15))) {
if (headshot) {
if (((closest._x > pt0.x) && (closest.f == 1)) || ((closest._x < pt0.x) && (closest.f == -1))) {
bltype = 5;
} else {
bltype = 4;
}
} else if (((closest._x > pt0.x) && (closest.f == 1)) || ((closest._x < pt0.x) && (closest.f == -1))) {
bltype = 7;
} else {
bltype = 6;
}
} else {
bltype = gunblood[_parent.guntype];
}
hitScale = 1 + (((ammo == 1) * _root.goldenBullet) * 3);
closest.blood(headshot, minyhit, bltype, fdir);
closest.hit(headshot, fdir, (gundamage[_parent.guntype] * _root.gunDamageScalar) * hitScale, gunforce[_parent.guntype] * hitScale, rad);
}
}
if (_parent.guntype != 21) {
flash(flashtype[_parent.guntype]);
if (_parent.guntype == 20) {
_root.level++;
duplicateMovieClip (_root.rail, "rail" + _root.level, _root.level);
rl = eval ("_root.rail" + _root.level);
rl._x = px;
rl._y = py;
rl._rotation = angle;
rl._xscale = 800;
rl.gen = false;
} else if (_root.runspeed == 1) {
_root.level++;
duplicateMovieClip (_root.line, "line" + _root.level, _root.level);
l = eval ("_root.line" + _root.level);
l._x = px;
l._y = py;
l._rotation = angle;
if (closest != null) {
l._xscale = mindist / 2;
l._xscale = l._xscale - ((l._xscale / 4) + (Math.random() * (l._xscale / 2)));
} else {
l._xscale = 75 + (Math.random() * 50);
}
}
if (_root.detail == 2) {
if ((x == 0) || ((_parent.guntype != 3) && (_parent.guntype != 15))) {
_root.level++;
duplicateMovieClip (_root.shell, "shell" + _root.level, _root.level);
sh = eval ("_root.shell" + _root.level);
sh._x = pt1.x;
sh._y = pt1.y;
sh._rotation = _rotation * f;
sh._xscale = sh._xscale * f;
sh.gen = false;
sh.gotoAndStop(shelltype[_parent.guntype]);
}
}
}
j++;
}
if (_parent.hmn) {
_root.clip.fire();
}
if ((!_parent.hmn) || (!_root.infammo)) {
ammo--;
}
}
function getgun(p) {
if (((p.type == 26) && (!_parent.isjetpack)) && (!_parent.issuibomb)) {
_parent.isjetpack = true;
p.remove();
} else if (((p.type == 27) && (!_parent.isjetpack)) && (!_parent.issuibomb)) {
_parent.issuibomb = true;
p.remove();
} else if ((p.type != 26) && (p.type != 27)) {
_parent.guntype = p.type;
ammo = p.ammo;
_root.clip.loadgun(p.type, p.ammo);
gotoAndStop(((2 * _parent.guntype) - 1) + (f == -1));
if (p.type == 12) {
k.gotoAndPlay(2);
_root.knife.start();
}
if (_root.tutorial) {
_root.gotgun = true;
}
p.remove();
_root.pttrace = usepoints[_parent.guntype - 1];
}
}
function firetest() {
if (shoottime < 0) {
if ((_parent.guntype == 1) && (_parent.hmn)) {
i = 0;
while (i < _root.pickups.length) {
p = _root.pickups[i];
if (this.hitTest(p)) {
getgun(p);
break;
}
i++;
}
} else if (ammo > 0) {
if (_parent.guntype == 2) {
shoot(arot);
if (_root.runspeed == 1) {
_root.pistol.start();
} else {
_root.lowpistol.start();
}
} else if (_parent.guntype == 3) {
if (sgtimer < 0) {
sgtimer = 10;
shoot(arot, 10, 5);
if (_root.runspeed == 1) {
_root.shotgun.start();
} else {
_root.lowshotgun.start();
}
}
} else if ((_parent.guntype == 4) && (uzifiring <= 0)) {
uzifiring = 3;
if (_root.runspeed == 1) {
_root.uzi.start();
} else {
_root.lowuzi.start();
}
} else if (_parent.guntype == 5) {
if (_root.runspeed == 1) {
_root.m.start();
} else {
_root.lowm16.start();
}
shoot(arot);
} else if ((_parent.guntype == 6) && (!cfire)) {
cfire = true;
cftimer = -1;
startfire();
} else if (_parent.guntype == 7) {
if (_root.runspeed == 1) {
_root.deagle.start();
} else {
_root.lowde.start();
}
shoot(arot);
} else if (_parent.guntype == 8) {
m60fire = 3;
m60timer = 0;
if (_root.runspeed == 1) {
_root.mach.start();
} else {
_root.lowmach.start();
}
} else if (_parent.guntype == 9) {
if (!sfire) {
sftimer = -1;
sfire = true;
startfire();
}
} else if (_parent.guntype == 10) {
shoot(arot);
if (_root.runspeed == 1) {
_root.sil.start();
} else {
_root.lowsilenced.start();
}
} else if (_parent.guntype == 14) {
if (!akfire) {
akfire = true;
aktimer = 1;
startfire();
}
} else if (_parent.guntype == 15) {
shoot(arot, 10, 5);
if (_root.runspeed == 1) {
_root.siaga.start();
} else {
_root.lownopump.start();
}
} else if (_parent.guntype == 16) {
shoot(arot);
if (_root.runspeed == 1) {
_root.steyr.start();
} else {
_root.lowsteyr.start();
}
} else if (_parent.guntype == 17) {
if (!lfire) {
lfire = true;
ltimer = -1;
startfire();
}
} else if (_parent.guntype == 18) {
if (!ufire) {
ufire = true;
utimer = -1;
startfire();
}
} else if (_parent.guntype == 19) {
if (!cgfire) {
cgfire = true;
cgtimer = -1;
startfire();
}
} else if (_parent.guntype == 20) {
if (m60timer < 0) {
m60timer = 35;
if (_root.runspeed == 1) {
_root.m60.start();
} else {
_root.lowm60.start();
}
shoot(arot);
}
} else if (_parent.guntype == 21) {
if (rktimer < 0) {
rktimer = 5 * _root.runspeed;
if (_root.runspeed == 1) {
_root.rk.start();
} else {
_root.lowrk.start();
}
shoot(arot);
}
} else if (_parent.guntype == 22) {
flamefire = true;
startfire();
} else if (_parent.guntype == 23) {
if (!autofire) {
autotime = -1;
autofire = true;
startfire();
}
} else if (_parent.guntype == 24) {
tfire = true;
viselec = true;
startfire();
} else if (_parent.guntype == 28) {
grenade();
}
} else if (!_root.mtest(_parent.guntype)) {
_root.empty.start();
}
}
}
s = 1.5;
r = 55;
if (_parent.hmn) {
r = r * _root.armlength;
}
xoff = 10;
yoff = -63;
aimspeed = 2;
kang = Math.PI;
steady = 6;
rscale = 0;
roff = 0;
point = new Object();
viselec = false;
resgun = 1;
resammo = 0;
if (_root.laserguide && (_parent.hmn)) {
_root.level++;
duplicateMovieClip (_root.redlaser, "lg" + _root.level, _root.level);
lg = eval ("_root.lg" + _root.level);
lg._xscale = 740;
}
xplus = 0;
yplus = 0;
gunkick = new Array(0, 0, 20, 40, 15, 50, 35, 45, 60, 30, 20, 0, 0, 0, 30, 40, 30, 20, 25, 40, 60, 40, 0, 30, 0, 0, 0, 0, 50, 0, 0, 0, 0);
gunforce = new Array(0, 0, 10, 25, 10, 18, 8, 15, 30, 18, 10, 0, 0, 0, 18, 25, 10, 10, 12, 25, 30, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0);
gundamage = new Array(0, 0, 1, 1, 1, 2, 0.75, 2, 2.5, 0.75, 1, 0, 0, 0, 2, 1, 1.5, 1.25, 1.5, 2, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0);
gunblood = new Array(0, 0, 1, 2, 1, 3, 1, 2, 3, 1, 1, 0, 0, 0, 2, 2, 2, 2, 2, 2, 3, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0);
shelltype = new Array(0, 0, 1, 3, 1, 2, 1, 1, 2, 1, 1, 0, 0, 0, 2, 3, 2, 2, 1, 1, 7, 0, 0, 1, 0, 0, 0, 0, 8, 0, 0, 0, 0);
flashtype = new Array(0, 0, 1, 3, 1, 2, 1, 1, 2, 1, 1, 0, 0, 0, 3, 3, 2, 2, 1, 3, 4, 3, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0);
usepoints = new Array(1, 2, 2, 2, 3, 3, 2, 4, 2, 2, 3, 4, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 2, 2, 4, 0, 0, 3, 6, 6, 6, 6);
storetype = new Array(0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1);
gunnames = new Array("Null", "Hand", "Pistol", "Shotgun", "Uzi", "M16", "CQB", "Desert Eagle", "M60", "Silenced MP5", "Silenced Pistol", "Baseball Bat", "Switchblade", "Nightstick", "AK-47", "Saiga", "Steyr Aug", "L85", "UMP-45", "Minigun", "Railgun", "Rocket Launcher", "Flamethrower", "Automag", "Tazer", "Axe", "Jetpack", "Suicide bomb", "Grenade Launcher", "Urinal", "Urinal", "Urinal", "Urinal");
vectors = new Array(new Array(new Array(-20, 35, 30), new Array(-10, 40, 3), new Array(30, -30, 3)), new Array(new Array(-40, 20, 60), new Array(-35, 25, 2), new Array(50, 20, 3)));
if (_parent.guntype == 12) {
unsheath = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause) {
} else if (_parent.electro > 0) {
_x = ((xoff + (Math.random() * 30)) - 15);
_y = ((yoff + (Math.random() * 30)) - 15);
_rotation = ((Math.atan2(_y - yoff, _x - xoff) * 180) / Math.PI);
stopfire();
} else if (_parent.aflame) {
_x = ((xoff + 5) - (Math.random() * 10));
_y = ((yoff - 35) + (Math.random() * 10));
_rotation = ((Math.atan2(_y - yoff, _x - xoff) * 180) / Math.PI);
stopfire();
} else {
shoottime--;
dropguntimer--;
if (_root.runspeed != ors) {
soundswitch();
}
ors = _root.runspeed;
if (_parent.dying > 10) {
xt = (yt = 0);
if ((_parent.guntype > 1) && (_parent.dead)) {
dropgun();
}
} else if (_parent.hmn) {
if (_root.knifing) {
_parent.guntype = 12;
if (k._currentframe == 1) {
k.gotoAndPlay(2);
_root.knife.start();
}
}
_root.useammo = ammo;
_root.usegun = _parent.guntype;
xc = _root._xmouse - oxm;
yc = _root._ymouse - oym;
txc = _x - oldx;
tyc = _y - oldy;
oldx = _x;
oldy = _y;
xt = xt + ((xc * s) * f);
yt = yt + (yc * s);
oxm = _root._xmouse;
oym = _root._ymouse;
if ((Key.isDown(_root.keys[_root.ki.throw]) && (_parent.guntype != 1)) && (dropguntimer < 0)) {
dropgun();
}
switchtimer--;
if (Key.isDown(_root.keys[_root.ki.switch]) && (switchtimer < 0)) {
switchtimer = 5;
uzifiring = (m60fire = 0);
tempgun = _parent.guntype;
tempammo = ammo;
_parent.guntype = resgun;
ammo = resammo;
resgun = tempgun;
resammo = tempammo;
_root.clip.unloadgun();
_root.clip.loadgun(_parent.guntype, ammo);
stopfire(true);
_x = -25;
bx = -25;
_y = -40;
by = -40;
if (_parent.guntype == 12) {
k.gotoAndPlay(2);
_root.knife.start();
}
tsgtimer = sgtimer;
tm60timer = m60timer;
trktimer = rktimer;
tgrtimer = grtimer;
sgtimer = ssgtimer;
m60timer = sm60timer;
rktimer = srktimer;
grtimer = sgrtimer;
ssgtimer = tsgtimer;
sm60timer = tm60timer;
srktimer = trktimer;
sgrtimer = tgrtimer;
}
} else if (_root.ai && (_parent.hasentered)) {
if (_root.runspeed == 2) {
aimspeed = 12;
} else {
aimspeed = 2;
}
if (unsheath) {
unstimer++;
if (unstimer > 1) {
k.gotoAndPlay(2);
_root.knife.start();
unsheath = false;
}
}
sptimer--;
if (punching) {
ptimer--;
if (ptimer < 0) {
vp++;
if (vp >= vectors[vs].length) {
punching = false;
xt = 0;
yt = 60;
sptimer = 30;
}
cvp = vectors[vs][vp];
xt = xoff + cvp[0];
yt = cvp[1];
ptimer = cvp[2];
}
} else if (deadhits < 3) {
if ((_parent.pdist <= 100) && (sptimer < 0)) {
vp = 0;
vs = Math.floor(Math.random() * vectors.length);
punching = true;
ptimer = 0;
} else if (((_parent.guntype > 1) && (_parent.guntype < 11)) || (_parent.guntype >= 14)) {
stimer = stimer + (1 / _root.runspeed);
cycle = stimer % 30;
if (cycle == 10) {
stopfire(true);
} else if (cycle == 0) {
if ((_parent.dying < 10) && (_parent.health > -3)) {
firetest();
}
} else if (cycle > 5) {
xd = (_root.player._x - (_parent._x + xoff)) * f;
yd = (_root.player._y - 30) - (_parent._y + yoff);
d = Math.sqrt((xd * xd) + (yd * yd));
xt = (xd / d) * 40;
yt = (yd / d) * 40;
}
}
}
} else {
xt = 0;
yt = 40;
}
f = _parent.f;
d = Math.sqrt((xt * xt) + (yt * yt));
if (Math.abs(d) > r) {
xt = (xt / d) * r;
yt = (yt / d) * r;
}
if (xk != 0) {
xk = xk - (xk / steady);
}
if (yk != 0) {
yk = yk - (yk / steady);
}
if (ff != 0) {
ff = ff - (ff / steady);
}
roff = roff - (roff / 4);
if (rscale > 0) {
if (mb1down) {
rscale = rscale - 0.15;
} else {
rscale--;
}
} else {
rscale = 0;
}
bx = bx + ((xt - bx) / aimspeed);
by = by + ((yt - by) / aimspeed);
_x = ((bx + xoff) + xk);
_y = (((by + yoff) + yk) + ff);
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
ax = point.x;
ay = point.y;
pt0.point.x = pt0._x;
pt0.point.y = pt0._y;
this.localToGlobal(pt0.point);
pt0.x = pt0.point.x;
pt0.y = pt0.point.y;
_rotation = (((Math.atan2(_y - (yoff + yk), _x - (xoff + xk)) * 180) / Math.PI) + roff);
if (_parent.f == 1) {
arot = _rotation;
} else if (_rotation > 0) {
arot = 180 - _rotation;
} else {
arot = -180 - _rotation;
}
arot = arot + _parent._rotation;
arad = (arot / 180) * Math.PI;
trc = oldr - _rotation;
oldr = _rotation;
if ((arot < 90) && (arot > -90)) {
fdir = 1;
} else {
fdir = -1;
}
if (_root.laserguide && (_parent.hmn)) {
lg._x = pt0.x;
lg._y = pt0.y;
lg._rotation = arot;
lg._visible = ammo > 0;
}
if (_parent.hmn || (punching)) {
hv = (Math.abs(txc) + Math.abs(tyc)) + (Math.abs(trc) / 3);
} else {
hv = 0;
}
if ((hv > 20) || (tfire)) {
if (hv > 50) {
hv = 50;
}
if (_parent.guntype >= 2) {
hv = hv * 1.5;
}
if (_root.arnold) {
hv = hv * 4;
}
if (xtc < 0) {
dir = -1;
} else {
dir = 1;
}
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (((t != _parent) && (t.pimmunity < 0)) && (t.hmn != _parent.hmn)) {
xdt = t._x - ax;
ydt = t._y - ay;
d = Math.sqrt((xdt * xdt) + (ydt * ydt));
if (d < _parent._height) {
n = 0;
while (n < usepoints[_parent.guntype - 1]) {
pt = eval ("pt" + n);
if (t.hitTest(pt.x, pt.y, true)) {
headshot = pt.y < (t._y - 50);
if (((_parent.guntype == 12) || (_parent.guntype == 25)) && (n < 3)) {
t.knife(txc / hv, tyc / hv, fdir * dir, hv, headshot, pt.x, pt.y);
} else if (tfire && (n == 0)) {
t.electrify();
} else {
if ((_parent.guntype > 28) && (_parent.guntype < 32)) {
_parent.guntype++;
hv = hv * 2;
t.health = t.health - 2;
snum = Math.ceil(Math.random() * 2);
if (_root.runspeed == 1) {
eval ("_root.shatter" + snum).start();
} else {
eval ("_root.lowshatter" + snum).start();
}
if (_root.detail > 0) {
trace("d " + _root.detail);
x = 0;
while (x < (_root.detail * 7)) {
trace("x " + x);
_root.level++;
duplicateMovieClip (_root.shard, "shard" + _root.level, _root.level);
sh = eval ("_root.shard" + _root.level);
shpointnum = Math.floor(Math.random() * 3);
shpoint = eval ("pt" + shpointnum);
sh._x = shpoint.x;
sh._y = shpoint.y;
sh.gen = false;
x++;
}
}
}
t.punch(txc / hv, tyc / hv, fdir * dir, hv, headshot);
}
mysound = Math.ceil(Math.random() * 3);
if (_root.runspeed == 1) {
eval ("_root.punch" + mysound).start();
} else {
eval ("_root.lowpunch" + mysound).start();
}
break;
}
n++;
}
}
}
i++;
}
}
if (ammo > 0) {
uzitimer--;
if ((uzifiring > 0) && (uzitimer < 0)) {
uzitimer = 2 * _root.runspeed;
uzifiring--;
shoot(arot);
}
if (cfire) {
cftimer--;
if (cftimer < 0) {
cftimer = _root.runspeed;
shoot(arot);
}
}
if (sfire) {
sftimer--;
if (sftimer < 0) {
sftimer = _root.runspeed;
shoot(arot);
}
}
if (akfire) {
aktimer--;
if (aktimer < 0) {
aktimer = 3 * _root.runspeed;
shoot(arot);
}
}
if (lfire) {
ltimer--;
if (ltimer < 0) {
ltimer = 2 * _root.runspeed;
shoot(arot);
}
}
if (ufire) {
utimer--;
if (utimer < 0) {
utimer = _root.runspeed;
shoot(arot);
}
}
if (cgfire) {
cgtimer--;
if (cgtimer < 0) {
cgtimer = _root.runspeed - 1;
shoot(arot);
}
}
if (flamefire) {
flametimer--;
if (flametimer < 0) {
flametimer = (2 * _root.runspeed) - 1;
_root.level++;
duplicateMovieClip (_root.flame, "flame" + _root.level, _root.level);
flame = eval ("_root.flame" + _root.level);
flame._x = pt0.x;
flame._y = pt0.y;
userad = (arad + 0.05) - (Math.random() * 0.1);
flame.xv = Math.cos(userad) * 10;
flame.yv = Math.sin(userad) * 10;
flame.gen = false;
flame.hmn = _parent.hmn;
if (_parent.hmn) {
_root.clip.fire();
}
if ((!_parent.hmn) || (!_root.infammo)) {
ammo--;
}
}
}
if (autofire) {
autotimer--;
if (autotimer < 0) {
autotimer = 3 * _root.runspeed;
shoot(arot);
}
}
if (tfire) {
if (_parent.hmn) {
_root.clip.fire();
}
if ((!_parent.hmn) || (!_root.infammo)) {
ammo--;
}
}
if (m60fire > 0) {
m60timer--;
if (m60timer < 0) {
m60fire--;
m60timer = 2 * _root.runspeed;
shoot(arot);
}
}
} else if (((((((((cfire || (sfire)) || (akfire)) || (lfire)) || (ufire)) || (cgfire)) || (flamefire)) || (autofire)) || (tfire)) || (m60fire)) {
stopfire(true);
}
sgtimer = sgtimer - (1 / _root.runspeed);
m60timer = m60timer - (1 / _root.runspeed);
rktimer = rktimer - (1 / _root.runspeed);
grtimer = grtimer - (1 / _root.runspeed);
ssgtimer = ssgtimer - (1 / _root.runspeed);
sm60timer = sm60timer - (1 / _root.runspeed);
srktimer = srktimer - (1 / _root.runspeed);
sgrtimer = sgrtimer - (1 / _root.runspeed);
firetimer = firetimer - (1 / _root.runspeed);
if (mb1down && (firetimer < 0)) {
firetimer = 3;
firetest();
}
}
}
onClipEvent (mouseDown) {
if (_parent.hmn && (_root.pause != true)) {
firetimer = -1;
mb1down = true;
}
}
onClipEvent (mouseUp) {
if (_parent.hmn && (_root.pause != true)) {
mb1down = false;
stopfire(true);
}
}
Instance of Symbol 295 MovieClip "pt0" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt2" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 295 MovieClip "pt1" in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
}
Instance of Symbol 420 MovieClip in Symbol 549 MovieClip Frame 2
onClipEvent (load) {
depth = 54;
}
onClipEvent (enterFrame) {
r = ((-_parent.body._rotation) / 180) * Math.PI;
_x = (_parent.body._x + (Math.sin(r) * depth));
_y = (_parent.body._y + (Math.cos(r) * depth));
_rotation = _parent.body._rotation;
}
Instance of Symbol 455 MovieClip "body" in Symbol 549 MovieClip Frame 2
onClipEvent (load) {
wk = 40;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_rotation = (br + force);
force = force * 0.8;
}
}
Instance of Symbol 462 MovieClip "head" in Symbol 549 MovieClip Frame 2
onClipEvent (load) {
bx = _x;
by = _y;
roff = (rofft = 0);
if (_parent.zombie == 1) {
c = new Color(this);
trans = new Object();
trans.gb = 0;
}
wk = 34;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.zombie == 1) {
if (_root.isjesus) {
gbt = 100;
} else {
gbt = 0;
}
trans.gb = trans.gb + ((gbt - trans.gb) / 3);
c.setTransform(trans);
}
_rotation = ((roff + br) + force);
force = force * (1 - (0.2 / _root.runspeed));
rofft = (_parent.hand._y - _parent.hand.yoff) / (3 * _root.armlength);
roff = roff + ((rofft - roff) / 8);
xt = bx + ((_parent.hand._x - _parent.hand.xoff) / (8 * _root.armlength));
if (xt < bx) {
xt = bx;
}
yt = by + dforce;
_x = (_x + ((xt - _x) / 8));
_y = (_y + ((yt - _y) / 3));
dforce = dforce * (1 - (0.2 / _root.runspeed));
}
}
Instance of Symbol 548 MovieClip "nonhand" in Symbol 549 MovieClip Frame 2
onClipEvent (load) {
by = _y;
steady = 6;
}
onClipEvent (enterFrame) {
yt = by + ff;
_y = (_y + ((yt - _y) / 3));
if (ff != 0) {
ff = ff - (ff / steady);
}
}
Instance of Symbol 557 MovieClip "bar" in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
function startbt() {
rstimer = 10;
_root.runspeed = 2;
ct = 100;
_root.intobt.start();
_root.heartbeat.start(0, 1000);
}
function endbt() {
rstimer = 10;
_root.runspeed = 1;
ct = basetone;
_root.outofbt.start();
_root.heartbeat.stop();
}
_yscale = ((yst = (_root.btr = 100)));
basetone = 33;
c = new Color(this);
trans = new Object();
trans.ra = (trans.ga = (trans.ba = (ct = basetone)));
c.setTransform(trans);
}
onClipEvent (enterFrame) {
if (_root.pause != true) {
if (_root.btr < 0) {
_root.btr = 0;
} else if (_root.btr > 100) {
_root.btr = 100;
}
rstimer--;
yst = _root.btr;
_yscale = (_yscale + ((yst - _yscale) / 6));
trans.ra = trans.ra + ((ct - trans.ra) / 10);
trans.ga = (trans.ba = trans.ra);
if (Math.abs(ct - trans.ra) < 0.1) {
trans.ra = ct;
} else {
c.setTransform(trans);
}
if (_root.runspeed != 1) {
if ((!_root.infbt) && (!_root.survival)) {
_root.btr = _root.btr - (0.7 * _root.bulletTimeScalar);
}
if ((_root.btr <= 0) || ((rstimer < 0) && (Key.isDown(_root.keys[_root.ki.bullettime])))) {
endbt();
}
} else if (((rstimer < 0) && (_root.btr >= 3)) && (Key.isDown(_root.keys[_root.ki.bullettime]))) {
startbt();
}
}
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 8
gotoAndPlay (1);
Symbol 573 MovieClip Frame 16
gotoAndPlay (9);
Symbol 609 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 682 Button
on (release) {
gotoAndStop (5);
}
Symbol 684 Button
on (release) {
getURL ("http://www.flecko.net/view.php?id=13", "blank");
}
Symbol 712 MovieClip Frame 839
_root.gotoAndStop("game");
trace("HELLOOOOOO!");
Symbol 714 Button
on (release) {
_root.gotoAndStop("game");
}