Frame 1
stop();
NewgroundsAPI.connectMovie(48);
Frame 11
_root.CONCEPT = false;
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d0959b87", this, 10301, true);
Instance of Symbol 41 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
if (Key.isDown(13)) {
_root.gotoAndPlay("BEGINNING");
}
}
Frame 154
stop();
ADOWN = true;
Frame 205
stop();
ADOWN = true;
Frame 206
stop();
ADOWN = true;
Frame 207
stop();
ADOWN = true;
Frame 208
stop();
ADOWN = true;
Frame 209
stop();
ADOWN = true;
Frame 210
stop();
ADOWN = true;
Frame 211
stop();
ADOWN = true;
Frame 212
stop();
ADOWN = true;
Frame 213
stop();
ADOWN = true;
Frame 214
stop();
ADOWN = true;
Frame 215
stop();
ADOWN = true;
Frame 216
stop();
ADOWN = true;
Frame 217
stop();
ADOWN = true;
Frame 218
stop();
ADOWN = true;
Frame 219
stop();
ADOWN = true;
Frame 220
stop();
ADOWN = true;
Frame 221
stop();
ADOWN = true;
Frame 222
stop();
ADOWN = true;
Frame 223
stop();
ADOWN = true;
Frame 224
stop();
ADOWN = true;
Frame 225
stop();
ADOWN = true;
Frame 281
if (_root.CONCEPT) {
gotoAndPlay ("CONCEPT");
}
Frame 293
stop();
Frame 310
stop();
Frame 330
stop();
Frame 348
gotoAndStop ("DIFFICULTY");
Frame 366
_root.gotoAndPlay("BOOK");
Frame 367
stop();
ADOWN = true;
Instance of Symbol 41 MovieClip in Frame 367
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Instance of Symbol 41 MovieClip in Frame 367
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.SOR.setVolume(0);
} else {
_root.SOR.setVolume(100);
}
}
Instance of Symbol 41 MovieClip in Frame 367
onClipEvent (load) {
DELETEDOWN = false;
}
onClipEvent (enterFrame) {
if (!DELETEDOWN) {
if (Key.isDown(46)) {
DELETEDOWN = true;
if (!_root.MUTE) {
_root.MUTE = true;
} else {
_root.MUTE = false;
}
}
} else if (!Key.isDown(46)) {
DELETEDOWN = false;
}
}
Frame 368
stop();
ADOWN = true;
Instance of Symbol 256 MovieClip in Frame 369
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Frame 370
_root.MUTE = false;
SOR = new Sound(this);
SOR.attachSound("SOR");
SOR.start(0, 99);
Frame 402
l = new Array();
this.onEnterFrame = function () {
if (l.push((t = getTimer())) > 35) {
gotoAndStop (368);
}
};
Frame 403
stop();
Chair = false;
That = false;
Cens = false;
FACE = "normal";
_quality = "MEDIUM";
enemyshotcount = 20;
enemycount = 60;
Ecount = 50;
Pcount = 99;
_root.PAUSE = false;
_root.ENTERDOWN = false;
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Instance of Symbol 276 MovieClip in Frame 403
onClipEvent (enterFrame) {
while (_root.ground.lift.hitTest(_x, _y, true)) {
_y = (_y-1);
}
}
Instance of Symbol 371 MovieClip "minigun1" in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 10;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (onscreen) {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
if (_root.cam._y <= (_y - 400)) {
dead = true;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 397 MovieClip "Edoor" in Frame 403
onClipEvent (load) {
health = 10;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 5, true)) {
_root.guy._x--;
}
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_name = ("enemy" + _root.enemycount);
}
} else {
if (health >= 10) {
this.gotoAndStop(1);
}
if (health <= 5) {
this.gotoAndStop(2);
}
if (health <= 0) {
_root.minigun1.onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_root.minigun1._name = "enemy" + _root.enemycount;
dead = true;
this.gotoAndStop(3);
}
}
}
}
Instance of Symbol 407 MovieClip "shot" in Frame 403
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 55;
while (i <= 90) {
if (this.hitTest(_root["enemy" + i].body)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
gotoAndPlay (369);
}
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
gotoAndPlay (369);
}
}
if (_name == "shot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 403
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
gotoAndPlay (369);
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
gotoAndPlay (369);
}
}
if (_name == "enemyshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 403
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 437 MovieClip "smokepuff" in Frame 403
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 403
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
if (_root.ground.hitTest(_x + 10, _y - 10, true) || (_root.ground.hitTest(_x - 10, _y - 10, true))) {
speed = speed * -0.8;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 9, _y - 8, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 9, _y - 8, true)) {
_x = (_x+1);
}
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 403
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
if (_root["enemy" + i]._x <= _x) {
_root["enemy" + i]._xscale = _root["enemy" + i].X;
} else {
_root["enemy" + i]._xscale = -_root["enemy" + i].X;
}
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 403
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 50;
}
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 497 MovieClip in Frame 403
onClipEvent (load) {
health = 6;
dead = false;
onscreen = false;
n = 1;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
}
}
}
Instance of Symbol 497 MovieClip in Frame 403
onClipEvent (load) {
health = 6;
dead = false;
onscreen = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
}
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 902 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 20;
onscreen = false;
kneel = false;
dead = false;
shotheight = 90;
shotwidth = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 100) {
_xscale = (-X);
}
if (DISTANCE <= -100) {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 931 MovieClip in Frame 403
onClipEvent (load) {
health = 10;
dead = false;
onscreen = false;
sin = 0;
f = 0;
XPOSITION = _x;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
HEALTHDIF = health - Oldhealth;
Oldhealth = health;
if (HEALTHDIF <= -1) {
f = 10;
_root.enemyshotcount++;
duplicateMovieClip (_root.PAPER, "Paper" + _root.enemyshotcount, _root.enemyshotcount);
_root["Paper" + _root.enemyshotcount]._x = _x;
_root["Paper" + _root.enemyshotcount]._y = _y;
if (Math.random() >= 0.5) {
_root["Paper" + _root.enemyshotcount].gotoAndPlay("P2");
}
}
if (f >= 1) {
f--;
sin = sin + 90;
sin2 = Math.sin(sin) / 2;
_x = (XPOSITION + sin2);
}
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 1022 MovieClip in Frame 403
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
} else {
this.mc.stop();
}
}
Instance of Symbol 931 MovieClip in Frame 403
onClipEvent (load) {
health = 10;
dead = false;
onscreen = false;
sin = 0;
f = 0;
XPOSITION = _x;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
HEALTHDIF = health - Oldhealth;
Oldhealth = health;
if (HEALTHDIF <= -1) {
f = 10;
_root.enemyshotcount++;
duplicateMovieClip (_root.PAPER, "Paper" + _root.enemyshotcount, _root.enemyshotcount);
_root["Paper" + _root.enemyshotcount]._x = _x;
_root["Paper" + _root.enemyshotcount]._y = _y;
if (Math.random() >= 0.5) {
_root["Paper" + _root.enemyshotcount].gotoAndPlay("P2");
}
}
if (f >= 1) {
f--;
sin = sin + 90;
sin2 = Math.sin(sin) / 2;
_x = (XPOSITION + sin2);
}
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 403
onClipEvent (load) {
fallspeed = -3;
if (_name == "tankshot") {
_visible = false;
}
_rotation = 90;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 403
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
health = 100;
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.wall1.drop) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
health = 100;
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.wall1.drop) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
health = 100;
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.wall1.drop) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1075 MovieClip "nazidoor" in Frame 403
onClipEvent (load) {
health = 30;
onscreen = false;
dead = false;
s = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_name = "enemy80";
}
} else {
if (health <= 0) {
_root.play();
dead = true;
}
s--;
if (s <= 0) {
_root.enemycount++;
if (_root.enemycount >= 75) {
_root.enemycount = 60;
}
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
duplicateMovieClip (_root.rifleman, "rifleman" + _root.enemycount, _root.enemycount);
_root["rifleman" + _root.enemycount]._x = _root.cam._x - 410;
_root["rifleman" + _root.enemycount]._y = _root.topstair._y;
s = 30;
}
}
}
}
Instance of Symbol 1081 MovieClip "wall1" in Frame 403
onClipEvent (load) {
drop = false;
}
onClipEvent (enterFrame) {
if (!drop) {
if (_root.guy.hitTest(trigger)) {
play();
drop = true;
}
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 403
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
for (enemy in _root) {
if (this.hitTest(_root[enemy].body) && (!_root[enemy].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1088 MovieClip "RPG symbol" in Frame 403
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "RPG";
_root.guy.ammo = 10;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 41 MovieClip in Frame 403
onClipEvent (enterFrame) {
if ((_root.CHEAT == "PRINCESS") && (Key.isDown(13))) {
_root.LIVES = 99;
_root.CHEAT = "";
}
if ((_root.CHEAT == "DEMO MAN") && (Key.isDown(13))) {
_root.guy.grenades = 99;
_root.CHEAT = "";
}
if ((_root.CHEAT == "LADYS MAN") && (Key.isDown(13))) {
if (_root.Chair) {
_root.Chair = false;
}
if (!_root.Chair) {
_root.Chair = true;
}
_root.CHEAT = "";
}
if ((_root.CHEAT == "MMYES") && (Key.isDown(13))) {
if (_root.That) {
_root.That = false;
}
if (!_root.That) {
_root.That = true;
}
_root.CHEAT = "";
}
if ((_root.CHEAT == "RAMBO") && (Key.isDown(13))) {
_root.guy.guntype = "machinegun";
_root.guy.ammo = 999;
_root.CHEAT = "";
}
if ((_root.CHEAT == "SAFARI") && (Key.isDown(13))) {
_root.guy.guntype = "Rifle";
_root.guy.ammo = 999;
_root.CHEAT = "";
}
if ((_root.CHEAT == "BAZOOKER") && (Key.isDown(13))) {
_root.guy.guntype = "RPG";
_root.guy.ammo = 999;
_root.CHEAT = "";
}
if ((_root.CHEAT == "PROZAC") && (Key.isDown(13))) {
_root.FACE = "PROZAC";
_root.CHEAT = "";
_root.That = false;
}
if ((_root.CHEAT == "ANGERMAN") && (Key.isDown(13))) {
_root.FACE = "ANGERMAN";
_root.CHEAT = "";
_root.That = false;
}
if ((_root.CHEAT == "SEXXXY") && (Key.isDown(13))) {
if (_root.Cens) {
_root.Cens = false;
}
if (!_root.Cens) {
_root.Cens = true;
}
_root.CHEAT = "";
}
}
Instance of Symbol 1187 MovieClip in Frame 403
onClipEvent (load) {
health = 3;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.topstair.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
_visible = true;
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.topstair.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
_visible = true;
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 902 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 20;
onscreen = false;
dead = false;
shotheight = 90;
shotwidth = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1253 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 403
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_x = (_x + 100);
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1361 MovieClip "guy" in Frame 403
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 8;
ammo = 0;
guntype = "normal";
grenades = 10;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
Jheight = -20;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
STANDY = _y;
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 75) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 58;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
} else {
gotoAndPlay ("dead");
}
} else {
this.mc.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 403
onClipEvent (load) {
floor = 1;
}
onClipEvent (enterFrame) {
if (floor == 1) {
if (_root.guy._x >= _x) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
if (_y <= _root.floor2._y) {
floor = 2;
}
}
if (floor == 2) {
if (_root.guy._x <= _x) {
_x = (_x - (((_x - _root.guy._x) - 1) / 3));
}
if (_root.guy.hitTest(_root.bottomstair)) {
floor = 3;
}
}
if (floor == 3) {
if (_root.guy._x >= _x) {
if (_x <= -1350) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
}
}
}
Instance of Symbol 1391 MovieClip in Frame 403
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 1394 MovieClip in Frame 403
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Frame 404
stop();
i = 60;
while (i <= 80) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Instance of Symbol 1403 MovieClip "modem5" in Frame 404
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
n = 5;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
Instance of Symbol 1403 MovieClip "modem2" in Frame 404
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
Instance of Symbol 1403 MovieClip "modem3" in Frame 404
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
n = 3;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y + 5, true)) {
_root["enemy" + i].health = _root["enemy" + i].health - 100;
}
i++;
}
dead = true;
}
}
Instance of Symbol 1403 MovieClip "modem4" in Frame 404
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
n = 4;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
Instance of Symbol 1403 MovieClip "modem1" in Frame 404
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 10;
dead = false;
n = 1;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
Instance of Symbol 407 MovieClip "shot" in Frame 404
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
}
}
i++;
}
} else {
play();
}
if (_name == "shot") {
_visible = false;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 404
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
} else {
play();
}
if (_name == "enemyshot") {
_visible = false;
}
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 404
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 404
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
if (_root.ground.hitTest(_x + 10, _y - 8, true) || (_root.ground.hitTest(_x - 10, _y - 8, true))) {
speed = speed * -0.8;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 9, _y - 8, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 9, _y - 8, true)) {
_x = (_x+1);
}
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 404
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
}
i++;
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 404
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 50;
}
gotoAndPlay ("got");
got = true;
}
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 404
onClipEvent (load) {
fallspeed = -3;
if (_name == "tankshot") {
_visible = false;
}
_rotation = 90;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 404
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 1075 MovieClip "nazidoor" in Frame 404
onClipEvent (load) {
gotoAndStop (371);
}
Instance of Symbol 41 MovieClip in Frame 404
onClipEvent (enterFrame) {
while (this.hitTest(_root.guy._x, _root.guy._y + 1, true)) {
_root.guy._y--;
}
if (_root.cam._x >= (_x + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
Instance of Symbol 371 MovieClip in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 10;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(this)) {
_root["enemy" + i].health = _root["enemy" + i].health - 100;
}
i++;
}
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1472 MovieClip in Frame 404
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.cam.hitTest(_root.background.bg)) {
_x = (_x + (_root.cam.X / 5));
}
this.mc.play();
distance = _x - _root.guy._x;
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
if (_root.cam._x >= (_x + 450)) {
this.swapDepths(999);
removeMovieClip(this);
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 4;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1187 MovieClip in Frame 404
onClipEvent (load) {
health = 3;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 404
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 7;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 902 MovieClip in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 20;
onscreen = false;
dead = false;
shotheight = 90;
shotwidth = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 404
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1361 MovieClip "guy" in Frame 404
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 8;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x;
STANDY = _y;
Jheight = -20;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _y;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 80) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 58;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= (_root.cam._y + 250)) {
dead = true;
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
while (_x <= (_root.cam._x - 400)) {
_x = (_x+1);
}
} else if (_y >= (_root.cam._y + 200)) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
}
} else {
this.mc.stop();
}
}
Instance of Symbol 41 MovieClip in Frame 404
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
_root.play();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 404
onClipEvent (load) {
floor = 3;
}
onClipEvent (enterFrame) {
X = _x - oldX;
oldX = _x;
if (floor == 3) {
if (_x <= 2380) {
if (_root.guy._x >= _x) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
}
}
}
Frame 405
stop();
i = 60;
while (i <= 80) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
SOR.stop();
VGame = new Sound(this);
VGame.attachSound("VGame");
VGame.start(0, 99);
Instance of Symbol 1398 MovieClip "background" in Frame 405
onClipEvent (load) {
s = 10;
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
Instance of Symbol 1546 MovieClip "ground" in Frame 405
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 407 MovieClip "shot" in Frame 405
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (_y >= (_root.cam._y + (_root.cam._height / 2))) {
this.removeMovieClip();
}
if (_x >= (_root.cam._x + (_root.cam._width / 2))) {
this.removeMovieClip();
}
if (_x <= (_root.cam._x - (_root.cam._width / 2))) {
this.removeMovieClip();
}
if (this.hitTest(_root.enemyboss.body) && (!_root.enemyboss.dead)) {
if (_root.enemyboss.onscreen) {
_root.enemyboss.health--;
hit = true;
}
}
} else {
play();
}
if (_name == "shot") {
_visible = false;
}
if (Yspeed == 0) {
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
}
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 405
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
}
} else {
play();
}
if (_name == "enemyshot") {
_visible = false;
}
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 405
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 405
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
if (_root.ground.L.hitTest(_x, _y, true) || (_root.ground.R.hitTest(_x, _y, true))) {
speed = speed * -0.8;
}
while (_root.ground.L.hitTest(_x - 1, _y, true)) {
_x = (_x+1);
}
while (_root.ground.R.hitTest(_x + 1, _y, true)) {
_x = (_x-1);
}
if (_root.enemyboss.Gbody.hitTest(_x, _y, true) && (!_root.enemyboss.dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 405
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else if (this.hitTest(_root.enemyboss) && (!_root.enemyboss.dead)) {
_root.enemyboss.health = _root.enemyboss.health - 10;
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 405
onClipEvent (load) {
if (_name == "tankshot") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
if ((_root.ground.L.hitTest(_x, _y, true) || (_root.ground.R.hitTest(_x, _y, true))) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 405
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy.body) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
_root.guy.mc.gotoAndPlay(47);
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 1553 MovieClip "grenade pickup" in Frame 405
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.grenades = _root.guy.grenades + 5;
gotoAndPlay ("got");
got = true;
}
if (this.hitTest(_root.enemyboss)) {
this.swapDepths(-1);
}
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 405
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
if (this.hitTest(_root.enemyboss.body) && (!_root.enemyboss.dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 405
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1361 MovieClip "guy" in Frame 405
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 5;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x;
STANDY = _y;
Jheight = -15;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _root.cam._y - 300;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed++;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 80) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 40;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 40;
} else {
speed = 0;
gunheight = 35;
}
if (Key.isDown(40)) {
gunheight = 10;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= (_root.cam._y + 250)) {
dead = true;
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
while (_x <= (_root.cam._x - 400)) {
_x = (_x+1);
}
} else if (_y >= (_root.cam._y + 200)) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
_y = STANDY;
}
} else {
this.mc.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 405
onClipEvent (load) {
SS = 100;
speed = 1.8;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - 3190) / 3));
SS--;
if (!_root.PAUSE) {
if (SS <= 0) {
_y = (_y - speed);
}
}
if (_root.enemyboss.health <= 0) {
speed = speed - (speed / 3);
}
}
Instance of Symbol 1687 MovieClip "enemyboss" in Frame 405
onClipEvent (load) {
health = 150;
dead = false;
this.swapDepths(0);
}
onClipEvent (enterFrame) {
_y = (_root.cam._y + 200);
onscreen = true;
if (!dead) {
if (health <= 0) {
dead = true;
gotoAndPlay ("dead");
}
}
}
Instance of Symbol 41 MovieClip in Frame 405
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.VGAME.setVolume(0);
} else {
_root.VGAME.setVolume(100);
}
}
Frame 406
stop();
ADOWN = true;
VGame.stop();
VGame.stop();
Dubstep = new Sound(this);
Dubstep.attachSound("Dubstep");
Dubstep.start(0, 99);
Instance of Symbol 220 MovieClip "cam" in Frame 406
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 406
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Instance of Symbol 41 MovieClip in Frame 406
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Dubstep.setVolume(0);
} else {
_root.Dubstep.setVolume(100);
}
}
Frame 407
stop();
ADOWN = true;
Frame 408
stop();
ADOWN = true;
Frame 409
stop();
ADOWN = true;
Frame 410
stop();
ADOWN = true;
Frame 411
stop();
ADOWN = true;
Frame 412
stop();
i = 60;
while (i <= 80) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Dubstep.stop();
SOR.start(0, 99);
Instance of Symbol 1703 MovieClip in Frame 412
onClipEvent (enterFrame) {
_x = _root.cam._x;
}
Instance of Symbol 1744 MovieClip in Frame 412
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 1;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!onscreen) {
if (_root.cam.hitTest(this.body)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (!dead) {
if (health <= 0) {
dead = true;
gotoAndPlay ("death");
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1744 MovieClip in Frame 412
onClipEvent (load) {
onscreen = false;
X = _xscale;
health = 1;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!onscreen) {
if (_root.cam.hitTest(this.body)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (!dead) {
if (health <= 0) {
dead = true;
gotoAndPlay ("death");
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 407 MovieClip "shot" in Frame 412
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
}
}
i++;
}
} else {
play();
}
if (_name == "shot") {
_visible = false;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 412
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
} else {
play();
}
if (_name == "enemyshot") {
_visible = false;
}
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 412
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 412
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
if (_root.ground.hitTest(_x + 10, _y - 8, true) || (_root.ground.hitTest(_x - 10, _y - 8, true))) {
speed = speed * -0.8;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + 9, _y - 8, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 9, _y - 8, true)) {
_x = (_x+1);
}
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 412
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
if (_root["enemy" + i]._x <= _x) {
_root["enemy" + i]._xscale = _root["enemy" + i].X;
} else {
_root["enemy" + i]._xscale = -_root["enemy" + i].X;
}
}
i++;
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 412
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 50;
}
gotoAndPlay ("got");
got = true;
}
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 412
onClipEvent (load) {
fallspeed = -3;
if (_name == "tankshot") {
_visible = false;
}
_rotation = 90;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 412
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 412
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1553 MovieClip "grenade pickup" in Frame 412
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.grenades = _root.guy.grenades + 5;
gotoAndPlay ("got");
got = true;
}
if (this.hitTest(_root.enemyboss)) {
this.swapDepths(-1);
}
}
}
Instance of Symbol 1776 MovieClip "nazidoor2" in Frame 412
onClipEvent (load) {
health = 60;
onscreen = false;
dead = false;
s = 25;
n = 100;
sin = 0;
XPOSITION = _x;
f = 0;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_name = "enemy80";
}
} else if (!_root.PAUSE) {
if ((health >= 20) && (health <= 30)) {
this.gotoAndStop(4);
}
if ((health >= 10) && (health <= 19)) {
this.gotoAndStop(6);
}
if (health <= 0) {
dead = true;
this.gotoAndStop(7);
}
HEALTHDIF = health - Oldhealth;
Oldhealth = health;
if (HEALTHDIF <= -1) {
f = 10;
}
if (f >= 1) {
f--;
sin = sin + 90;
sin2 = Math.sin(sin) / 2;
_x = (XPOSITION + sin2);
}
s--;
if (s <= 0) {
R = Math.random();
n++;
if (R >= 0.5) {
duplicateMovieClip (_root.rifleman, "rifleman" + n, 100 + n);
_root["rifleman" + n]._x = _root.cam._x - 410;
_root["rifleman" + n]._y = _y;
} else {
duplicateMovieClip (_root.pararifle, "pararifle" + n, 100 + n);
_root["pararifle" + n]._x = (_root.cam._x + 300) - (Math.random() * 600);
_root["pararifle" + n]._y = _y;
}
s = 25;
if (_root.enemycount >= 79) {
_root.enemycount = 60;
}
}
}
}
}
Instance of Symbol 41 MovieClip in Frame 412
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.blackscreen.play();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 412
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip "pararifle" in Frame 412
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1187 MovieClip in Frame 412
onClipEvent (load) {
health = 3;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 668 MovieClip in Frame 412
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 412
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 412
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 371 MovieClip in Frame 412
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 10;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(this)) {
_root["enemy" + i].health = _root["enemy" + i].health - 100;
}
i++;
}
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1778 MovieClip "blackscreen" in Frame 412
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 1361 MovieClip "guy" in Frame 412
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 8;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x + 100;
STANDY = _y;
Jheight = -20;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _y;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 78) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 58;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= (_root.cam._y + 250)) {
dead = true;
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
while (_x <= (_root.cam._x - 400)) {
_x = (_x+1);
}
} else if (_y >= (_root.cam._y + 200)) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
}
} else {
this.mc.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 412
onClipEvent (load) {
floor = 3;
}
onClipEvent (enterFrame) {
X = _x - oldX;
oldX = _x;
if (!_root.enemy80.dead) {
if (_x <= -650) {
if (_root.guy._x >= _x) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
}
} else if (_root.guy._x >= _x) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
}
Instance of Symbol 41 MovieClip in Frame 412
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.SOR.setVolume(0);
} else {
_root.SOR.setVolume(100);
}
}
Frame 413
stop();
ADOWN = true;
SOR.stop();
Dubstep.start(0, 99);
Instance of Symbol 220 MovieClip "cam" in Frame 413
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 413
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Instance of Symbol 41 MovieClip in Frame 413
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Dubstep.setVolume(0);
} else {
_root.Dubstep.setVolume(100);
}
}
Frame 414
stop();
ADOWN = true;
stop();
ADOWN = true;
Frame 415
stop();
ADOWN = true;
Frame 416
stop();
ADOWN = true;
Frame 417
stop();
ADOWN = true;
Frame 418
stop();
i = 60;
while (i <= 101) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
panels = 0;
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Dubstep.stop();
Victory = new Sound(this);
Victory.attachSound("Victory");
Victory.start(0, 99);
Instance of Symbol 1703 MovieClip in Frame 418
onClipEvent (enterFrame) {
_x = (_x + _root.cam.X);
}
Instance of Symbol 407 MovieClip "shot" in Frame 418
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 100) {
if (_root["enemy" + i].body.hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
}
}
i++;
}
} else {
play();
}
if (_name == "shot") {
_visible = false;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 418
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
if (!_root.cam.hitTest(this)) {
this.removeMovieClip();
}
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
} else {
play();
}
if (_name == "enemyshot") {
_visible = false;
}
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 418
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 1803 MovieClip "guy grenade" in Frame 418
onClipEvent (load) {
s = 40;
speed = -3;
fallspeed = 3;
if (_name == "guy grenade") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
_x = (_x + speed);
_y = (_y + fallspeed);
speed = speed + 2;
fallspeed = fallspeed - 0.2;
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 100) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 418
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 101) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
}
i++;
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 418
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 418
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 100) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1806 MovieClip in Frame 418
onClipEvent (load) {
SIZE = 50 - (Math.random() * 100);
_xscale = (100 + SIZE);
_yscale = _xscale;
speed = _xscale / 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x - speed);
if (_x <= (_root.cam._x - 800)) {
R = Math.random() * 300;
_x = ((_root.cam._x + 600) + R);
R2 = 150 - (Math.random() * 300);
_y = (_root.cam._y + R2);
SIZE = 50 - (Math.random() * 100);
_xscale = (100 + SIZE);
_yscale = _xscale;
speed = _xscale / 10;
}
}
}
Instance of Symbol 1806 MovieClip in Frame 418
onClipEvent (load) {
SIZE = 50 - (Math.random() * 100);
_xscale = (100 + SIZE);
_yscale = _xscale;
speed = _xscale / 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x - speed);
if (_x <= (_root.cam._x - 800)) {
R = Math.random() * 300;
_x = ((_root.cam._x + 600) + R);
R2 = 150 - (Math.random() * 300);
_y = (_root.cam._y + R2);
SIZE = 50 - (Math.random() * 100);
_xscale = (100 + SIZE);
_yscale = _xscale;
speed = _xscale / 10;
}
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 418
onClipEvent (load) {
if (_name == "tankshot") {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
if ((_root.ground.L.hitTest(_x, _y, true) || (_root.ground.R.hitTest(_x, _y, true))) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 417 MovieClip "enemyshot2" in Frame 418
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!hit) {
if (!_root.cam.hitTest(this)) {
this.removeMovieClip();
}
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
}
} else {
play();
}
if (_name == "enemyshot") {
_visible = false;
}
}
}
Instance of Symbol 1854 MovieClip in Frame 418
onClipEvent (load) {
health = 8;
onscreen = false;
Yspeed = 1 - (Math.random() * 2);
speed = 1 - (Math.random() * 2);
X = -_xscale;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (DIEing) {
this.mc.play();
}
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
if (nazidead) {
gotoAndPlay ("explosion_dead");
} else {
gotoAndPlay ("explosion_alive");
}
dead = true;
}
_x = (_x - speed);
_y = (_y + Yspeed);
}
} else {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
if (DIEing) {
this.stop();
}
}
}
Instance of Symbol 1854 MovieClip in Frame 418
onClipEvent (load) {
health = 8;
onscreen = false;
Yspeed = 1 - (Math.random() * 2);
speed = 1 - (Math.random() * 2);
X = -_xscale;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (DIEing) {
this.play();
}
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
if (nazidead) {
gotoAndPlay ("explosion_dead");
} else {
gotoAndPlay ("explosion_alive");
}
dead = true;
}
_x = (_x - speed);
_y = (_y + Yspeed);
}
} else {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
if (DIEing) {
this.stop();
}
}
}
Instance of Symbol 1854 MovieClip in Frame 418
onClipEvent (load) {
health = 8;
onscreen = false;
Yspeed = 1 - (Math.random() * 2);
speed = 1 - (Math.random() * 2);
X = -_xscale;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (DIEing) {
this.mc.play();
}
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
if (nazidead) {
gotoAndPlay ("explosion_dead");
} else {
gotoAndPlay ("explosion_alive");
}
dead = true;
}
_x = (_x - speed);
_y = (_y + Yspeed);
}
} else {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
if (DIEing) {
this.stop();
}
}
}
Instance of Symbol 1882 MovieClip in Frame 418
onClipEvent (load) {
health = 20;
onscreen = false;
X = -_xscale;
fallspeed = 0;
R = 1 + (Math.random() * 2);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
xDist = _x - _root.guy._x;
yDist = _y - _root.guy._y;
angle = Math.atan2(yDist, xDist);
XP = _x - (_root.guy._x + (Math.cos(angle) * 350));
YP = _y - (_root.guy._y + (Math.sin(angle) * 350));
_x = (_x + 3);
_x = (_x - (XP / 10));
_y = (_y - (YP / 10));
_rotation = (_rotation - ((_rotation - (YP / 10)) / 5));
this.turret._rotation = angle;
if (health <= 0) {
dead = true;
gotoAndPlay ("dead");
fallspeed = 3;
}
}
} else {
_y = (_y + fallspeed);
fallspeed++;
_rotation = (_rotation - R);
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1882 MovieClip in Frame 418
onClipEvent (load) {
health = 20;
onscreen = false;
X = -_xscale;
fallspeed = 0;
R = 1 + (Math.random() * 2);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
xDist = _x - _root.guy._x;
yDist = _y - _root.guy._y;
angle = Math.atan2(yDist, xDist);
XP = _x - (_root.guy._x + (Math.cos(angle) * 300));
YP = _y - (_root.guy._y + (Math.sin(angle) * 300));
_x = (_x + 3);
_x = (_x - (XP / 10));
_y = (_y - (YP / 10));
_rotation = (_rotation - ((_rotation - (YP / 10)) / 5));
this.turret._rotation = angle;
if (health <= 0) {
dead = true;
gotoAndPlay ("dead");
fallspeed = 3;
}
}
} else {
_y = (_y + fallspeed);
fallspeed++;
_rotation = (_rotation - R);
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1854 MovieClip in Frame 418
onClipEvent (load) {
health = 8;
onscreen = false;
Yspeed = 1 - (Math.random() * 2);
speed = 1 - (Math.random() * 2);
X = -_xscale;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (DIEing) {
this.mc.play();
}
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
if (nazidead) {
gotoAndPlay ("explosion_dead");
} else {
gotoAndPlay ("explosion_alive");
}
dead = true;
}
_x = (_x - speed);
_y = (_y + Yspeed);
}
} else {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
if (DIEing) {
this.stop();
}
}
}
Instance of Symbol 1854 MovieClip in Frame 418
onClipEvent (load) {
health = 8;
onscreen = false;
Yspeed = 1 - (Math.random() * 2);
speed = 1 - (Math.random() * 2);
X = -_xscale;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (DIEing) {
this.mc.play();
}
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
if (nazidead) {
gotoAndPlay ("explosion_dead");
} else {
gotoAndPlay ("explosion_alive");
}
dead = true;
}
_x = (_x - speed);
_y = (_y + Yspeed);
}
} else {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
this.mc.stop();
if (DIEing) {
this.stop();
}
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1902 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
}
Instance of Symbol 1908 MovieClip in Frame 418
onClipEvent (enterFrame) {
if (!_root.enemy100.dead) {
if (_x <= (_root.cam._x + 700)) {
_x = (_x + 3);
}
} else {
_x = (_x + 0.5);
}
}
Instance of Symbol 1902 MovieClip "jet" in Frame 418
onClipEvent (load) {
onscreen = false;
s = 2;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
play();
}
} else {
_x = _root.cam._x;
}
s--;
if (s <= 0) {
_visible = true;
}
}
Instance of Symbol 2048 MovieClip in Frame 418
onClipEvent (load) {
onscreen = false;
_y = Y;
following = false;
s = 40;
n = 60;
health = 100;
dead = false;
fallspeed = -5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (!onscreen) {
if (_root.cam.hitTest(this)) {
_root.enemy100.swapDepths(100);
_root.enemy100.removeMovieClip();
_name = "enemy100";
onscreen = true;
}
}
if (!dead) {
if (_root.cam._x >= (_x - 200)) {
onscreen = true;
_x = (_x + 3);
if (_root.panels <= 0) {
following = true;
}
if (following) {
_y = (_y - ((_y - _root.guy._y) / 10));
_rotation = ((_y - _root.guy._y) / 20);
s--;
if (s <= 0) {
n++;
duplicateMovieClip (_root.jet, "jet" + n, 100 + n);
_root["jet" + n]._x = _root.cam._x;
_root["jet" + n]._y = _y;
_root["jet" + n]._visible = false;
s = 60;
}
}
}
}
} else {
mc.stop();
}
}
Instance of Symbol 1778 MovieClip "blackscreen" in Frame 418
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 2073 MovieClip "guy" in Frame 418
onClipEvent (load) {
_root.shotcount = 0;
Adown = false;
Xspeed = 0;
Yspeed = 0;
gunwidth = 40;
reload = 0;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
gunheight = 5;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (!dead) {
_y = (_y + Yspeed);
_x = (_x + Xspeed);
if (Key.isDown(38)) {
Yspeed = Yspeed - ((Yspeed + 10) / 3);
}
if (Key.isDown(40)) {
Yspeed = Yspeed - ((Yspeed - 10) / 3);
}
if (Key.isDown(37)) {
Xspeed = Xspeed - ((Xspeed + 10) / 3);
}
if (Key.isDown(39)) {
Xspeed = Xspeed - ((Xspeed - 10) / 3);
}
Yspeed = Yspeed - (Yspeed / 5);
Xspeed = Xspeed - (Xspeed / 5);
_rotation = (_rotation - ((_rotation - (Xspeed * 2)) / 5));
P = Math.round(Yspeed + 7);
this.gotoAndPlay(P);
if (dead) {
gotoAndPlay ("dead");
}
while (_y <= (_root.cam._y - (_root.cam._height / 2))) {
_y = (_y+1);
}
while (_y >= (_root.cam._y + (_root.cam._height / 2))) {
_y = (_y-1);
}
while (_x >= (_root.cam._x + (_root.cam._width / 2))) {
_x = (_x-1);
}
while (_x <= (_root.cam._x - (_root.cam._width / 2))) {
_x = (_x+1);
}
if (Key.isDown(32) && (!SPACEdown)) {
Xspeed = Xspeed - 4;
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + gunwidth;
_root.smokepuff300._y = (_y - gunheight) + 3;
_root.shotcount++;
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + gunwidth;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 98) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
_root["shot" + _root.shotcount]._x = _x + gunwidth;
_root["shot" + _root.shotcount].Xspeed = 20;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
_root["shot" + _root.shotcount]._x = _x + gunwidth;
_root["shot" + _root.shotcount].Xspeed = 20;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
_root["super grenade" + _root.shotcount]._x = _x + gunwidth;
_root["super grenade" + _root.shotcount].Xspeed = 40;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 90;
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
}
_x = (_x + 3);
} else {
this.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 418
onClipEvent (enterFrame) {
X = _x - oldX;
oldX = _x;
if (!_root.PAUSE) {
_x = (_x + 3);
}
}
Instance of Symbol 2078 MovieClip in Frame 418
onClipEvent (load) {
got = false;
sin = 0;
R = _rotation;
speed = Math.random() * 4;
fallspeed = 2;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (!onscreen) {
if (this.hitTest(_root.cam)) {
onscreen = true;
}
} else {
sin = sin + 0.1;
sin2 = Math.sin(sin);
_rotation = (R + (sin2 * 5));
_x = (_x - speed);
_y = (_y + fallspeed);
if (_y >= 500) {
this.swapDepths(999);
this.removeMovieClip();
}
if (this.body.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.grenades = _root.guy.grenades + 5;
gotoAndPlay ("got");
got = true;
_rotation = 0;
}
}
}
}
Instance of Symbol 2078 MovieClip in Frame 418
onClipEvent (load) {
got = false;
sin = 0;
R = _rotation;
speed = Math.random() * 4;
fallspeed = 2;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (!onscreen) {
if (this.hitTest(_root.cam)) {
onscreen = true;
}
} else {
sin = sin + 0.1;
sin2 = Math.sin(sin);
_rotation = (R + (sin2 * 5));
_x = (_x - speed);
_y = (_y + fallspeed);
if (_y >= 500) {
this.swapDepths(999);
this.removeMovieClip();
}
if (this.body.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.grenades = _root.guy.grenades + 5;
gotoAndPlay ("got");
got = true;
_rotation = 0;
}
}
}
}
Instance of Symbol 2080 MovieClip in Frame 418
onClipEvent (load) {
got = false;
sin = 0;
R = _rotation;
speed = Math.random() * 4;
fallspeed = 2;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (!onscreen) {
if (this.hitTest(_root.cam)) {
onscreen = true;
}
} else {
sin = sin + 0.1;
sin2 = Math.sin(sin);
_rotation = (R + (sin2 * 5));
_x = (_x - speed);
_y = (_y + fallspeed);
if (_y >= 500) {
this.swapDepths(999);
this.removeMovieClip();
}
if (this.body.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 50;
}
gotoAndPlay ("got");
got = true;
_rotation = 0;
}
}
}
}
Instance of Symbol 41 MovieClip in Frame 418
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Victory.setVolume(0);
} else {
_root.Victory.setVolume(100);
}
}
Frame 419
stop();
ADOWN = true;
Instance of Symbol 220 MovieClip "cam" in Frame 419
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 419
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Frame 420
stop();
ADOWN = true;
Frame 421
Victory.stop();
Midnight = new Sound(this);
Midnight.attachSound("Midnight");
Midnight.start(0, 99);
Instance of Symbol 41 MovieClip in Frame 421
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Midnight.setVolume(0);
} else {
_root.Midnight.setVolume(100);
}
}
Frame 471
stop();
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Instance of Symbol 407 MovieClip "shot" in Frame 471
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 90) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
gotoAndPlay (369);
}
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
hit = true;
gotoAndPlay (369);
}
}
if (_name == "shot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 471
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
gotoAndPlay (369);
}
}
if (_name == "enemyshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 471
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 437 MovieClip "smokepuff" in Frame 471
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 471
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
i = 60;
while (i <= 81) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 471
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 81) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
if (_root["enemy" + i]._x <= _x) {
_root["enemy" + i]._xscale = _root["enemy" + i].X;
} else {
_root["enemy" + i]._xscale = -_root["enemy" + i].X;
}
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 471
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 50;
}
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 471
onClipEvent (load) {
fallspeed = -3;
if (_name == "tankshot") {
_visible = false;
}
_rotation = 90;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 471
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 471
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1088 MovieClip "RPG symbol" in Frame 471
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "RPG";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 10;
}
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 1472 MovieClip in Frame 471
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.cam.hitTest(_root.background.bg)) {
_x = (_x + (_root.cam.X / 5));
}
this.mc.play();
distance = _x - _root.guy._x;
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
if (_root.cam._x >= (_x + 450)) {
this.swapDepths(999);
removeMovieClip(this);
}
} else {
this.mc.stop();
}
}
Instance of Symbol 2116 MovieClip "Rifle symbol" in Frame 471
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "Rifle";
if (_root.guy.ammo <= 50) {
_root.guy.ammo = 15;
}
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2120 MovieClip "rifleshot" in Frame 471
onClipEvent (load) {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health = _root["enemy" + i].health - 5;
}
}
if (this.hitTest(_root["enemy" + i].shins) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].dead = true;
_root["enemy" + i].gotoAndPlay("knee shot");
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_name == "rifleshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 2116 MovieClip in Frame 471
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "Rifle";
_root.guy.ammo = 15;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2163 MovieClip "VAT3" in Frame 471
onClipEvent (load) {
onscreen = false;
n = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2163 MovieClip "VAT2" in Frame 471
onClipEvent (load) {
onscreen = false;
n = 60;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2163 MovieClip "VAT1" in Frame 471
onClipEvent (load) {
onscreen = false;
n = 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
} else {
stop();
}
}
Instance of Symbol 41 MovieClip in Frame 471
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.tank1._y = _y;
this.swapDepths(999);
this.removeMovieClip();
}
}
Instance of Symbol 41 MovieClip in Frame 471
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.blackscreen.play();
this.swapDepths(999);
this.removeMovieClip();
}
}
Instance of Symbol 1187 MovieClip in Frame 471
onClipEvent (load) {
health = 3;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 902 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 20;
onscreen = false;
dead = false;
shotheight = 90;
shotwidth = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 1000;
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 371 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 10;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (_root.cam._x >= (_x + 410)) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health <= 0) {
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(this)) {
_root["enemy" + i].health = _root["enemy" + i].health - 100;
}
i++;
}
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 1000;
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1187 MovieClip in Frame 471
onClipEvent (load) {
health = 3;
dead = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
i = 60;
while (i <= 80) {
if (this.paddle.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y - 3, true)) {
_root["enemy" + i].kneel = true;
}
i++;
}
while (this.hitTest(_root.guy._x + 15, _root.guy._y - 15, true)) {
_root.guy._x--;
}
while (this.hitTest(_root.guy._x - 15, _root.guy._y - 15, true)) {
_root.guy._x++;
}
}
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 1000;
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 668 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 1000;
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 371 MovieClip in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 10;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (_root.cam._x >= (_x + 410)) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health <= 0) {
i = 60;
while (i <= 80) {
if (_root["enemy" + i].hitTest(this)) {
_root["enemy" + i].health = _root["enemy" + i].health - 100;
}
i++;
}
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1530 MovieClip in Frame 471
onClipEvent (load) {
health = 1;
onscreen = false;
dead = false;
n = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else if (health <= 0) {
dead = true;
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 902 MovieClip "tank1" in Frame 471
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 20;
onscreen = false;
dead = false;
shotheight = 90;
shotwidth = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 471
onClipEvent (enterFrame) {
if (_x <= 1900) {
if (_root.guy._x >= _x) {
_x = (_x - (((_x - _root.guy._x) + 1) / 3));
}
}
}
Instance of Symbol 1361 MovieClip "guy" in Frame 471
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 8;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x;
STANDY = _y;
Jheight = -20;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _y;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 79) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
if (guntype == "Rifle") {
duplicateMovieClip (_root.rifleshot, "shot" + _root.shotcount, _root.shotcount);
reload = 5;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount]._rotation = 90;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount]._rotation = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 58;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= (_root.cam._y + 250)) {
dead = true;
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
while (_x <= (_root.cam._x - 400)) {
_x = (_x+1);
}
} else if (_y >= (_root.cam._y + 200)) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
}
} else {
this.mc.stop();
}
}
Instance of Symbol 2174 MovieClip "enemy85" in Frame 471
onClipEvent (load) {
onscreen = false;
health = 70;
dead = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
} else if (health <= 0) {
dead = true;
}
}
Instance of Symbol 1778 MovieClip "blackscreen" in Frame 471
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 1394 MovieClip in Frame 471
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Frame 472
stop();
ADOWN = true;
Midnight.stop();
Battle = new Sound(this);
Battle.attachSound("Battle");
Battle.start(0, 99);
Instance of Symbol 220 MovieClip "cam" in Frame 472
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 472
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Instance of Symbol 41 MovieClip in Frame 472
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Battle.setVolume(0);
} else {
_root.Battle.setVolume(100);
}
}
Frame 473
stop();
ADOWN = true;
Frame 474
stop();
ADOWN = true;
Frame 475
stop();
ADOWN = true;
Frame 476
stop();
i = 60;
while (i <= 79) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Battle.stop();
Battle2 = new Sound(this);
Battle2.attachSound("Battle2");
Battle2.start(0, 99);
Instance of Symbol 407 MovieClip "shot" in Frame 476
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
if (this.hitTest(_root.enemy80.body)) {
_root.enemy80.health--;
hit = true;
gotoAndPlay (369);
}
if (_y >= _root.enemy80.Y) {
hit = true;
gotoAndPlay (369);
}
}
if (_name == "shot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 476
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
gotoAndPlay (369);
}
}
if (_name == "enemyshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 476
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 437 MovieClip "smokepuff" in Frame 476
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 476
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
i = 60;
while (i <= 81) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_y >= _root.enemy80.Y) {
fallspeed = (-fallspeed) * 0.6;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 476
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 476
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
_root.guy.ammo = 50;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 476
onClipEvent (load) {
if (_name == "tankshot") {
_visible = false;
}
_rotation = 180;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 476
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 476
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
for (enemy in _root) {
if (this.hitTest(_root[enemy].body) && (!_root[enemy].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1088 MovieClip "RPG symbol" in Frame 476
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "RPG";
_root.guy.ammo = 10;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2116 MovieClip "Rifle symbol" in Frame 476
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "Rifle";
_root.guy.ammo = 15;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2120 MovieClip "rifleshot" in Frame 476
onClipEvent (load) {
for (enemy in _root) {
if (this.hitTest(_root[enemy].body) && (!_root[enemy].dead)) {
if (_root[enemy].onscreen) {
_root[enemy].health = _root[enemy].health - 5;
}
}
if (this.hitTest(_root[enemy].shins) && (!_root[enemy].dead)) {
if (_root[enemy].onscreen) {
_root[enemy].dead = true;
_root[enemy].gotoAndPlay("knee shot");
}
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_name == "rifleshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 417 MovieClip "hitlershot" in Frame 476
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
gotoAndPlay (369);
}
}
if (_name == "hitlershot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1553 MovieClip "grenade pickup" in Frame 476
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.grenades = _root.guy.grenades + 5;
gotoAndPlay ("got");
got = true;
}
if (this.hitTest(_root.enemyboss)) {
this.swapDepths(-1);
}
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 476
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 2366 MovieClip in Frame 476
onClipEvent (load) {
s = 50;
X = _xscale;
fallspeed = 0;
_root.enemy80.swapDepths(999);
_root.enemy80.removeMovieClip();
_name = "enemy80";
Y = _y;
dead = false;
onscreen = true;
health = 120;
}
onClipEvent (enterFrame) {
Xdist1 = _root.guy._x - _x;
Xdist = Math.sqrt(Xdist1 * Xdist1);
Ydist = _root.guy._y - _y;
s--;
_x = (_x - (speed * D));
D = _xscale / X;
if (health <= 0) {
dead = true;
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 476
onClipEvent (enterFrame) {
_x = (_root.guy._x + ((_root.enemy80._x - _root.guy._x) * 0.4));
while (_x <= 200) {
_x = (_x+1);
}
while (_x >= 1000) {
_x = (_x-1);
}
}
Instance of Symbol 1361 MovieClip "guy" in Frame 476
onClipEvent (load) {
fallspeed = 0;
X = _xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
runspeed = 8;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x;
STANDY = _y;
Jheight = -20;
grenades = _root.GRENADES;
ammo = _root.AMMO;
guntype = _root.GUN;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _y;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 20) {
_root.shotcount = 0;
}
if (_root.enemycount >= 80) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
if (guntype == "Rifle") {
duplicateMovieClip (_root.rifleshot, "shot" + _root.shotcount, _root.shotcount);
reload = 5;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount]._rotation = 90;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount]._rotation = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
_xscale = X;
gunheight = 58;
} else if (Key.isDown(37)) {
_xscale = (-X);
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= ((_root.cam._y + (_root.cam._height / 2)) + 10)) {
dead = true;
gotoAndPlay ("smashdeath");
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
} else if (_y >= (_root.cam._y + (_root.cam._height / 2))) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1778 MovieClip "blackscreen" in Frame 476
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 41 MovieClip in Frame 476
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Battle2.setVolume(0);
} else {
_root.Battle2.setVolume(100);
}
}
Frame 477
stop();
ADOWN = true;
Battle2.stop();
Vintage = new Sound(this);
Vintage.attachSound("Vintage");
Vintage.start(0, 99);
Instance of Symbol 220 MovieClip "cam" in Frame 477
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 477
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Frame 478
stop();
ADOWN = true;
Frame 479
stop();
ADOWN = true;
Frame 480
stop();
ADOWN = true;
Frame 481
stop();
ADOWN = true;
Frame 482
stop();
ADOWN = true;
Frame 483
stop();
ADOWN = true;
Frame 484
stop();
ADOWN = true;
Frame 485
stop();
ADOWN = true;
Frame 486
stop();
ADOWN = true;
Frame 487
stop();
ADOWN = true;
Frame 488
stop();
ADOWN = true;
Frame 489
stop();
ADOWN = true;
Frame 490
stop();
ADOWN = true;
Frame 491
stop();
ADOWN = true;
Frame 492
stop();
ADOWN = true;
Frame 493
stop();
ADOWN = true;
Frame 494
stop();
ADOWN = true;
Frame 495
stop();
ADOWN = true;
Frame 496
stop();
ADOWN = true;
Frame 497
stop();
this.onEnterFrame = function () {
l.push((t = getTimer()));
f = Math.round(Math.round(100000 / (t - l.shift())) / 100);
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!PAUSE) {
PAUSE = true;
} else {
PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
};
Vintage.stop();
Cid = new Sound(this);
Cid.attachSound("Cid");
Cid.start(0, 99);
Instance of Symbol 407 MovieClip "shot" in Frame 497
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 81) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health--;
hit = true;
gotoAndPlay (369);
}
}
i++;
}
if (_y >= 340) {
hit = true;
gotoAndPlay (369);
}
}
if (_name == "shot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 417 MovieClip "enemyshot" in Frame 497
onClipEvent (load) {
speed = 20 * X;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + speed);
_y = (_y + fallspeed);
if (this.hitTest(_root.guy.body) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
hit = true;
gotoAndPlay (369);
}
}
if (_name == "enemyshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 424 MovieClip "riflegun" in Frame 497
onClipEvent (load) {
R = 1 + (Math.random() * 5);
speed = 2 + (Math.random() * 3);
fallspeed = -3 - (Math.random() * 5);
s = 15 + (Math.random() * 10);
_xscale = (X * 100);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "riflegun") {
_x = (_x - (X * speed));
_rotation = (_rotation + (X * (-R)));
_y = (_y + fallspeed);
fallspeed++;
s--;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
if (s <= 0) {
play();
}
} else {
_visible = false;
}
}
}
Instance of Symbol 437 MovieClip "smokepuff" in Frame 497
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 440 MovieClip "guy grenade" in Frame 497
onClipEvent (load) {
s = 40;
speed = 6 + (Math.random() * 5);
fallspeed = -7;
if (_name == "guy grenade") {
_visible = false;
}
_rotation = (Math.random() * 360);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "guy grenade") {
s--;
}
_x = (_x + (speed * X));
_rotation = (_rotation + (speed * X));
_y = (_y + fallspeed);
fallspeed++;
i = 60;
while (i <= 81) {
if (_root["enemy" + i].hitTest(_x, _y, true) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = (-fallspeed) * 0.6;
}
if (s <= 0) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
}
Instance of Symbol 370 MovieClip "explosion" in Frame 497
onClipEvent (load) {
s = 50;
if (_name == "explosion") {
_visible = false;
} else {
i = 60;
while (i <= 81) {
if (this.hitTest(_root["enemy" + i]) && (!_root["enemy" + i].dead)) {
_root["enemy" + i].health = _root["enemy" + i].health - 10;
if (_root["enemy" + i]._x <= _x) {
_root["enemy" + i]._xscale = _root["enemy" + i].X;
} else {
_root["enemy" + i]._xscale = -_root["enemy" + i].X;
}
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 448 MovieClip "machine gun symbol" in Frame 497
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "machinegun";
_root.guy.ammo = 50;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 1027 MovieClip "tankshot" in Frame 497
onClipEvent (load) {
fallspeed = -3;
if (_name == "tankshot") {
_visible = false;
}
_rotation = 90;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
_x = (_x + speed);
_y = (_y + fallspeed);
fallspeed++;
_rotation = (((Math.atan2(oldY - _y, oldX - _x) * 180) / Math.PI) - 90);
oldY = _y;
oldX = _x;
if (_root.ground.hitTest(_x, _y, true) || (_root.guy.body.hitTest(_x, _y, true))) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.badexplosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
} else {
stop();
}
}
Instance of Symbol 370 MovieClip "badexplosion" in Frame 497
onClipEvent (load) {
s = 50;
if (_name == "badexplosion") {
_visible = false;
} else if (this.hitTest(_root.guy) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
s--;
if (s <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 1027 MovieClip "super grenade" in Frame 497
onClipEvent (load) {
gotoAndStop (381);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!hit) {
_x = (_x + Xspeed);
_y = (_y + Yspeed);
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
i++;
}
if (_root.ground.hitTest(_x, _y, true)) {
_root.Ecount++;
if (_root.Ecount >= 60) {
_root.Ecount = 50;
}
duplicateMovieClip (_root.explosion, "explosion" + _root.Ecount, _root.Ecount);
_root["explosion" + _root.Ecount]._x = _x;
_root["explosion" + _root.Ecount]._y = _y;
this.removeMovieClip();
}
}
if (_name == "super grenade") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 1088 MovieClip "RPG symbol" in Frame 497
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "RPG";
_root.guy.ammo = 10;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2116 MovieClip "Rifle symbol" in Frame 497
onClipEvent (load) {
got = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (!got) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.guntype = "Rifle";
_root.guy.ammo = 15;
gotoAndPlay ("got");
got = true;
}
}
} else {
stop();
}
}
Instance of Symbol 2120 MovieClip "rifleshot" in Frame 497
onClipEvent (load) {
i = 60;
while (i <= 80) {
if (this.hitTest(_root["enemy" + i].body) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].health = _root["enemy" + i].health - 5;
}
}
if (this.hitTest(_root["enemy" + i].shins) && (!_root["enemy" + i].dead)) {
if (_root["enemy" + i].onscreen) {
_root["enemy" + i].dead = true;
_root["enemy" + i].gotoAndPlay("knee shot");
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_name == "rifleshot") {
_visible = false;
}
} else {
stop();
}
}
Instance of Symbol 2448 MovieClip "blob" in Frame 497
onClipEvent (load) {
fallspeed = -10 - (Math.random() * 4);
if (_name == "blob") {
_visible = false;
}
speed = 7 + (Math.random() * 8);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_name != "blob") {
if (_y <= 339) {
_rotation = (_rotation + (speed / 2));
_y = (_y + fallspeed);
fallspeed++;
_x = (_x + speed);
} else {
_rotation = 0;
}
while (_y >= 341) {
_y = (_y-1);
_rotation = 0;
}
}
} else {
stop();
}
}
Instance of Symbol 668 MovieClip "rifleman" in Frame 497
onClipEvent (load) {
X = _xscale;
OPTDIST = 280 + (Math.random() * 40);
health = 1;
onscreen = false;
kneel = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
if (!dead) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
_root["enemy" + _root.enemycount].removeMovieClip();
_name = ("enemy" + _root.enemycount);
}
} else {
if (health <= 0) {
dead = true;
}
DISTANCE = _x - _root.guy._x;
if (DISTANCE >= 0) {
_xscale = (-X);
} else {
_xscale = X;
}
_x = (_x + (speed * (_xscale / X)));
i = 0;
while (i <= 20) {
if (shins.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
dead = true;
gotoAndPlay ("knee shot");
_root["shot" + i].hit = true;
}
i++;
}
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 2460 MovieClip "guy" in Frame 497
onClipEvent (load) {
fallspeed = 0;
X = -_xscale;
_root.shotcount = 0;
Adown = false;
speed = 0;
gunwidth = 30;
reload = 0;
HEIGHT = _height;
invul = false;
invultime = 0;
sin1 = 0;
STANDX = _x;
STANDY = _y;
Jheight = -20;
grenades = 5;
ammo = _root.AMMO;
guntype = _root.GUN;
FFFFF = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
this.mc.play();
_x = (_x + FFFFF);
_root.GRENADES = grenades;
_root.AMMO = ammo;
_root.GUN = guntype;
if (_root.ground.hitTest(_x, _y + 5, true)) {
STANDX = _x;
STANDY = _y;
FFFFF = 0;
}
if (!dead) {
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
if (Key.isDown(83) && (_root.ground.hitTest(_x, _y + 5, true))) {
fallspeed = -20;
}
} else {
fallspeed = fallspeed + 1.5;
}
if (ammo == 0) {
guntype = "normal";
}
if (guntype == "machinegun") {
Adown = false;
}
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
if (_root.enemycount >= 78) {
_root.enemycount = 60;
}
reload--;
if (Adown) {
if (!Key.isDown(65)) {
Adown = false;
}
} else if (Key.isDown(65) && (reload <= 0)) {
_root.shotcount++;
if (guntype == "machinegun") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 3 - (Math.random() * 6);
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "normal") {
duplicateMovieClip (_root.shot, "shot" + _root.shotcount, _root.shotcount);
reload = 2;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount].Yspeed = 20;
_root["shot" + _root.shotcount].Xspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount].Xspeed = (20 * X) / _xscale;
_root["shot" + _root.shotcount].Yspeed = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
}
_root["shot" + _root.shotcount]._rotation = Math.random() * 360;
}
if (guntype == "RPG") {
duplicateMovieClip (_root["super grenade"], "super grenade" + _root.shotcount, _root.shotcount);
reload = 3;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["super grenade" + _root.shotcount]._x = _x;
_root["super grenade" + _root.shotcount].Yspeed = 40;
_root["super grenade" + _root.shotcount].Xspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = 180;
} else {
_root["super grenade" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["super grenade" + _root.shotcount].Xspeed = (40 * X) / _xscale;
_root["super grenade" + _root.shotcount].Yspeed = 0;
_root["super grenade" + _root.shotcount]._y = _y - gunheight;
_root["super grenade" + _root.shotcount]._rotation = (90 * X) / _xscale;
}
}
if (guntype == "Rifle") {
duplicateMovieClip (_root.rifleshot, "shot" + _root.shotcount, _root.shotcount);
reload = 5;
ammo--;
if ((!_root.ground.hitTest(_x, _y + 5, true)) && (Key.isDown(40))) {
_root["shot" + _root.shotcount]._x = _x;
_root["shot" + _root.shotcount]._rotation = 90;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
} else {
_root["shot" + _root.shotcount]._x = _x + (gunwidth * (X / _xscale));
_root["shot" + _root.shotcount]._rotation = 0;
_root["shot" + _root.shotcount]._y = _y - gunheight;
_root["shot" + _root.shotcount]._xscale = (X / _xscale) * 100;
}
}
}
if (Key.isDown(65)) {
Adown = true;
}
if (Key.isDown(39)) {
gunheight = 58;
} else if (Key.isDown(37)) {
gunheight = 58;
} else {
speed = 0;
gunheight = 48;
}
if (Key.isDown(40)) {
gunheight = 20;
}
_x = (_x + speed);
if (grenades >= 1) {
if (!Key.isDown(32)) {
SPACEdown = false;
}
}
if (_y >= (_root.cam._y + (_root.cam._height / 2))) {
dead = true;
}
if (invul) {
sin1++;
sin = Math.sin(sin1);
var white = (new flash.filters.GlowFilter(0, Math.round(sin) * 0.5, 100, 100, 2, 1, true, false));
var filter = new Array();
filter.push(white);
this.filters = [white];
invultime--;
if (invultime <= 0) {
invul = false;
sin = 0;
}
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x, (_y - _height) + 15, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = (_x-1);
}
while (_x <= (_root.cam._x - 500)) {
_x = (_x+1);
}
while (_root.ground.hitTest(_x + 15, (_y - _height) + 20, true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - 15, (_y - _height) + 20, true)) {
_x = (_x+1);
}
} else {
FFFFF = 0;
if (_y >= (_root.cam._y + (_root.cam._height / 2))) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay ("dead");
}
}
} else {
this.mc.stop();
}
}
Instance of Symbol 1778 MovieClip "blackscreen" in Frame 497
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 2755 MovieClip "enemy80" in Frame 497
onClipEvent (load) {
s = 40;
health = 200;
dead = false;
onscreen = true;
}
onClipEvent (enterFrame) {
healthDIF = OLDHEALTH - health;
OLDHEALTH = health;
if (!_root.PAUSE) {
this.mc.play();
} else {
this.mc.stop();
}
}
Instance of Symbol 220 MovieClip "cam" in Frame 497
/* no clip actions */
Instance of Symbol 1394 MovieClip in Frame 497
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 41 MovieClip in Frame 497
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Tea.setVolume(0);
} else {
_root.Tea.setVolume(100);
}
}
Frame 498
stop();
ADOWN = true;
i = 60;
while (i <= 80) {
_root["enemy" + i].swapDepths(999 + i);
_root["enemy" + i].removeMovieClip();
i++;
}
Instance of Symbol 220 MovieClip "cam" in Frame 498
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 41 MovieClip in Frame 498
onClipEvent (enterFrame) {
if (!Key.isDown(65)) {
_root.ADOWN = false;
}
if ((!_root.ADOWN) && (Key.isDown(65))) {
_root.play();
}
}
Frame 499
stop();
ADOWN = true;
Frame 500
stop();
ADOWN = true;
Frame 501
stop();
ADOWN = true;
Frame 502
stop();
ADOWN = true;
Frame 503
stop();
ADOWN = true;
Frame 504
stop();
ADOWN = true;
Frame 505
Cid.stop();
Frame 540
Tea = new Sound(this);
Tea.attachSound("Tea");
Tea.start(0, 99);
Instance of Symbol 41 MovieClip in Frame 541
onClipEvent (enterFrame) {
if (_root.MUTE) {
_root.Tea.setVolume(0);
} else {
_root.Tea.setVolume(100);
}
}
Frame 1983
Tea.stop();
Frame 1988
if (_root.HARDNESS == "EASY") {
gotoAndStop ("E");
}
if (_root.HARDNESS == "MEDIUM") {
gotoAndStop ("M");
}
if (_root.HARDNESS == "HARD") {
gotoAndStop ("H");
}
Instance of Symbol 41 MovieClip in Frame 1989
onClipEvent (keyDown) {
if (!_root.CONCEPT) {
_root.gotoAndPlay("CUNLCOCKED");
_root.CONCEPT = true;
} else {
_root.gotoAndPlay("THANKS");
}
}
Instance of Symbol 41 MovieClip in Frame 1999
onClipEvent (keyDown) {
_root.play();
}
Frame 2004
stop();
Frame 2101
gotoAndPlay ("BEGINNING");
Frame 2102
stopAllSounds();
Instance of Symbol 220 MovieClip "cam" in Frame 2102
onClipEvent (load) {
_visible = false;
}
Frame 2186
gotoAndPlay ("BEGINNING");
Frame 2236
stop();
Frame 2244
gotoAndPlay ("BEGINNING");
Symbol 41 MovieClip Frame 1
_visible = false;
Symbol 61 MovieClip Frame 133
stop();
Instance of Symbol 41 MovieClip in Symbol 61 MovieClip Frame 133
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.play();
}
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 160
onClipEvent (load) {
fallspeed = -13 - (Math.random() * 6);
speed = 5 + (Math.random() * 11);
_width = 5;
_height = 5;
FFF = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
fallspeed = fallspeed + FFF;
_y = (_y + fallspeed);
_x = (_x - speed);
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 160
onClipEvent (load) {
fallspeed = -13 - (Math.random() * 6);
speed = 5 + (Math.random() * 11);
_width = 5;
_height = 5;
FFF = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
fallspeed = fallspeed + FFF;
_y = (_y + fallspeed);
_x = (_x - speed);
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 160
onClipEvent (load) {
fallspeed = -13 - (Math.random() * 6);
speed = 5 + (Math.random() * 11);
_width = 5;
_height = 5;
FFF = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
fallspeed = fallspeed + FFF;
_y = (_y + fallspeed);
_x = (_x - speed);
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 160
onClipEvent (load) {
fallspeed = -13 - (Math.random() * 6);
speed = 5 + (Math.random() * 11);
_width = 5;
_height = 5;
FFF = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
fallspeed = fallspeed + FFF;
_y = (_y + fallspeed);
_x = (_x - speed);
}
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip Frame 160
onClipEvent (load) {
fallspeed = -13 - (Math.random() * 6);
speed = 5 + (Math.random() * 11);
_width = 5;
_height = 5;
FFF = 1 + (Math.random() * 3);
}
onClipEvent (enterFrame) {
fallspeed = fallspeed + FFF;
_y = (_y + fallspeed);
_x = (_x - speed);
}
Symbol 61 MovieClip Frame 210
_root.play();
Symbol 67 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 73 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 75 MovieClip Frame 1
function startAd(ngad_url) {
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
var _local1 = 731;
var _local2 = 3;
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function () {
startAd(NewgroundsAPI.getAdURL());
};
stop();
Instance of Symbol 61 MovieClip in Symbol 75 MovieClip Frame 1
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
P = Math.round(PercentLoaded);
if (P <= 99) {
gotoAndPlay(P);
}
}
Symbol 2934 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom link: " + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds() {
SendLink(NEWGROUNDS);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.loadCustomLink(event_name:String)");
} else if (!custom_links[event_name]) {
SendError("Attempted to open undefined custom link: " + event_name);
} else {
SendEvent(custom_links[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id) {
SendStat(id, true);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
movie_options[_local2] = unescape(params[_local2]);
}
if (movie_options.settings_loaded) {
SendMessage("Connection to the API gateway was successful!");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version.toString() != version.toString()) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
} else {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local8 = new XML();
_local8.ignoreWhite = true;
_local8.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local8.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function onAdsApproved(ad_url) {
trace("load ad movielip from " + getAdURL());
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 150 Button
on (release) {
_root.play();
}
Symbol 157 Button
on (release) {
play();
_root.LIVES = 30;
_root.HARDNESS = "EASY";
}
Symbol 160 Button
on (release) {
play();
_root.LIVES = 20;
_root.HARDNESS = "MEDIUM";
}
Symbol 163 Button
on (release) {
play();
_root.LIVES = 10;
_root.HARDNESS = "HARD";
}
Symbol 164 MovieClip Frame 24
stop();
Symbol 164 MovieClip Frame 47
_root.gotoAndStop("THE GAME");
Symbol 168 Button
on (release) {
_root.gotoAndPlay("PLAY2");
}
Symbol 169 Button
on (release) {
_root.gotoAndPlay("PLAY3");
}
Symbol 180 MovieClip Frame 88
stop();
Instance of Symbol 41 MovieClip "lift" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
s = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y >= -622) {
if (_parent.e.hitTest(_root.guy._x, _root.guy._y + 10, true) && (_root.guy.dead == false)) {
s--;
}
if (s <= 0) {
_y = (_y - 3);
_root.cam._y = _root.cam._y - 3;
_root.Ewall.swapDepths(500);
}
} else {
_root.Ewall.removeMovieClip();
}
}
}
Instance of Symbol 41 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
Y = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_parent._y + _y) + 5)) {
_yscale = Y;
} else {
_yscale = 0;
}
}
Instance of Symbol 41 MovieClip "T1" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
Y = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_parent._y + _y) + 5)) {
_yscale = Y;
} else {
_yscale = 0;
}
}
Instance of Symbol 41 MovieClip "T2" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
Y = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_parent._y + _y) + 5)) {
_yscale = Y;
} else {
_yscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.lift.s <= 0) {
_y = -415;
}
}
Instance of Symbol 41 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_parent.lift._y - 180);
if (_root.guy.hitTest(this)) {
_root.guy.fallspeed = 6;
}
}
Instance of Symbol 41 MovieClip "stairs" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
X = _x;
_x = -4000;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_root.bottomstair)) {
_x = X;
}
}
Instance of Symbol 41 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_parent.stairs)) {
_root.cam._y = _root.cam._y + newY;
oldY = _y;
_y = (_root.guy._y - _parent._y);
newY = _y - oldY;
}
}
Instance of Symbol 41 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.topstair.hitTest(_root.guy._x, _root.guy._y, true)) {
_xscale = X;
_parent.stairs.removeMovieClip();
}
}
Symbol 216 MovieClip Frame 1
_visible = false;
Symbol 216 MovieClip Frame 2
if (!_root.PAUSE) {
gotoAndPlay (1);
}
Symbol 216 MovieClip Frame 3
_visible = true;
MUTECHECK = _root.MUTE;
_root.MUTE = true;
Symbol 216 MovieClip Frame 9
if (_root.PAUSE) {
gotoAndPlay (8);
}
Symbol 216 MovieClip Frame 10
_root.MUTE = MUTECHECK;
Symbol 220 MovieClip Frame 1
var copyrightNotice = "Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net";
var reanimator = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var _local2 = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Instance of Symbol 189 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
s = 10;
}
onClipEvent (enterFrame) {
if (_root.guy.ammo <= 100) {
A = (_root.guy.ammo * 5) - 400;
if (_root.guy.guntype == "machinegun") {
s--;
if (_x <= A) {
_x = (_x + 40);
} else {
_x = (_x - ((_x - A) / 3));
}
} else {
_x = -400;
s = 10;
}
if (s <= 0) {
_x = A;
}
}
}
Instance of Symbol 191 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
s = 10;
}
onClipEvent (enterFrame) {
if (_root.guy.ammo <= 100) {
A = (_root.guy.ammo * 25) - 400;
if (_root.guy.guntype == "RPG") {
s--;
if (_x <= A) {
_x = (_x + 40);
} else {
_x = (_x - ((_x - A) / 3));
}
} else {
_x = -400;
s = 10;
}
if (s <= 0) {
_x = (_x - ((_x - A) / 3));
}
}
}
Instance of Symbol 193 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (load) {
s = 10;
}
onClipEvent (enterFrame) {
if (_root.guy.ammo <= 100) {
A = (_root.guy.ammo * 15) - 400;
if (_root.guy.guntype == "Rifle") {
s--;
if (_x <= A) {
_x = (_x + 40);
} else {
_x = (_x - ((_x - A) / 3));
}
} else {
_x = -400;
s = 10;
}
if (s <= 0) {
_x = (_x - ((_x - A) / 3));
}
}
}
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MUTE) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 256 MovieClip Frame 42
if (_root.guy._x <= (_x + 50)) {
gotoAndPlay (41);
}
Symbol 256 MovieClip Frame 50
duplicateMovieClip (_root.rifleman, "rifleman1", 200);
_root.rifleman1._x = _x;
_root.rifleman1._y = _root.floor1._y;
this.swapDepths(999);
this.removeMovieClip();
Symbol 261 MovieClip Frame 1
if (_root.Cens) {
_visible = true;
} else {
_visible = false;
}
Symbol 266 MovieClip Frame 2
if ((Key.isDown(65) && (_root.guy.Adown == false)) && (_root.guy.reload <= 0)) {
play();
} else if ((_root.guy.guntype == "machinegun") && (Key.isDown(65))) {
play();
} else {
gotoAndPlay (1);
}
Symbol 338 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 338 MovieClip Frame 39
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 41
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 43
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 45
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 47
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 49
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 51
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 53
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 55
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 57
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 338 MovieClip Frame 59
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 38;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 42;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 341 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._xscale == (-_parent._parent.X)) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 362 MovieClip Frame 53
_parent.swapDepths(999);
_parent.removeMovieClip();
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
floatup = 4 + (Math.random() * 2);
speed = 3 - (Math.random() * 6);
_xscale = (90 + (Math.random() * 20));
_yscale = _xscale;
smallify = 3 + (Math.random() * 3);
_x = (20 - (Math.random() * 40));
_y = (20 - (Math.random() * 40));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - floatup);
_x = (_x + speed);
speed = speed - (speed / 10);
floatup = floatup - (floatup / 30);
_xscale = (_xscale - smallify);
_yscale = _xscale;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
floatup = 6 + (Math.random() * 5);
speed = 6 + (Math.random() * 5);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
smallify = 5 + (Math.random() * 4);
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
R = Math.random();
R2 = Math.random();
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_y <= 0) {
_y = (_y - floatup);
} else {
_y = (_y + floatup);
}
if (_x <= 0) {
_x = (_x - speed);
} else {
_x = (_x + speed);
}
_xscale = (_xscale - smallify);
_yscale = _xscale;
floatup = floatup - (floatup / 10);
speed = speed - (speed / 10);
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 60 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 5 + (Math.random() * 15);
speed = 10 - (Math.random() * 20);
_xscale = (80 + (Math.random() * 40));
_yscale = _xscale;
_x = (10 - (Math.random() * 20));
_y = (10 - (Math.random() * 20));
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y - fallspeed);
_x = (_x + speed);
fallspeed--;
}
}
Instance of Symbol 368 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
_rotation = (Math.random() * 360);
}
Symbol 371 MovieClip Frame 1
speed = 0;
Symbol 371 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 371 MovieClip Frame 3
speed = 0;
Symbol 371 MovieClip Frame 4
stop();
Symbol 396 MovieClip Frame 26
_parent.swapDepths(999);
_parent.removeMovieClip();
stop();
this.swapDepths(999);
removeMovieClip(this);
Symbol 397 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 2
stop();
Symbol 397 MovieClip Frame 3
dead = true;
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
if (!hit) {
gotoAndPlay (1);
}
Symbol 407 MovieClip Frame 11
this.removeMovieClip();
Symbol 417 MovieClip Frame 2
if (!hit) {
gotoAndPlay (1);
}
Symbol 417 MovieClip Frame 11
this.removeMovieClip();
Symbol 424 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 11
this.removeMovieClip();
Symbol 437 MovieClip Frame 1
if (_name == "smokepuff") {
_visible = false;
}
Symbol 437 MovieClip Frame 18
stop();
this.removeMovieClip();
Symbol 440 MovieClip Frame 3
gotoAndPlay (1);
Symbol 448 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 448 MovieClip Frame 81
removeMovieClip(this);
Symbol 466 MovieClip Frame 15
stop();
Symbol 496 MovieClip Frame 113
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 497 MovieClip Frame 2
if (health >= 5) {
gotoAndPlay (1);
}
Symbol 497 MovieClip Frame 4
if (health >= 1) {
gotoAndPlay (3);
}
Symbol 497 MovieClip Frame 5
dead = true;
_root.ground["T" + n].swapDepths(999);
removeMovieClip(_root.ground["T" + n]);
i = 60;
while (i <= 80) {
_root["enemy" + i].kneel = false;
i++;
}
Symbol 497 MovieClip Frame 6
stop();
Symbol 515 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 515 MovieClip Frame 6
R = Math.random();
if (R >= 0.8) {
gotoAndPlay (1);
}
Symbol 515 MovieClip Frame 17
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 73;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 540 MovieClip Frame 28
gotoAndPlay (5);
Symbol 584 MovieClip Frame 82
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 588 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._xscale == _parent._parent.X) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 610 MovieClip Frame 36
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (50 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 73;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 610 MovieClip Frame 42
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (50 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 73;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 645 MovieClip Frame 10
if (_root.guy._height >= _root.guy.HEIGHT) {
gotoAndPlay (32);
}
Symbol 645 MovieClip Frame 23
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (50 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 40;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
Symbol 645 MovieClip Frame 31
if (_root.guy._height <= (_root.guy.HEIGHT * 0.7)) {
gotoAndPlay (6);
}
Symbol 667 MovieClip Frame 10
if (_root.guy.STANDY >= (_parent._y - 10)) {
gotoAndPlay (32);
}
Symbol 667 MovieClip Frame 23
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (30 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 70;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root["enemyshot" + _root.enemyshotcount].fallspeed = -8;
Symbol 667 MovieClip Frame 31
if (_root.guy.STANDY <= (_parent._y - 10)) {
gotoAndPlay (6);
}
Symbol 668 MovieClip Frame 1
if (!dead) {
if ((DISTANCE >= OPTDIST) || (DISTANCE <= (-OPTDIST))) {
gotoAndPlay ("run");
}
if (kneel) {
gotoAndPlay ("hide");
}
if (_root.guy._height <= (_root.guy.HEIGHT * 0.7)) {
gotoAndPlay ("duck");
}
if (_root.guy.STANDY <= (_y - 10)) {
gotoAndPlay ("shootup");
}
speed = 0;
}
Symbol 668 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 668 MovieClip Frame 3
speed = 6 + (Math.random() * 2);
if (kneel) {
gotoAndPlay ("hide");
}
Symbol 668 MovieClip Frame 4
if (!dead) {
if ((DISTANCE >= OPTDIST) || (DISTANCE <= (-OPTDIST))) {
gotoAndPlay ("run");
} else {
gotoAndPlay (1);
}
}
Symbol 668 MovieClip Frame 5
speed = 0;
Symbol 668 MovieClip Frame 6
stop();
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.riflegun, "riflegun" + _root.enemyshotcount, _root.enemyshotcount);
_root["riflegun" + _root.enemyshotcount]._x = _x - (20 * (_xscale / X));
_root["riflegun" + _root.enemyshotcount]._y = _y - 73;
_root["riflegun" + _root.enemyshotcount].X = _xscale / X;
Symbol 668 MovieClip Frame 7
speed = 0;
Symbol 668 MovieClip Frame 8
stop();
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.riflegun, "riflegun" + _root.enemyshotcount, _root.enemyshotcount);
_root["riflegun" + _root.enemyshotcount]._x = _x - (20 * (_xscale / X));
_root["riflegun" + _root.enemyshotcount]._y = _y - 73;
_root["riflegun" + _root.enemyshotcount].X = _xscale / X;
Symbol 668 MovieClip Frame 9
speed = 0;
if (!kneel) {
gotoAndPlay (1);
}
Instance of Symbol 41 MovieClip "shins" in Symbol 668 MovieClip Frame 9
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if ((_parent.mc._currentframe >= 5) && (_parent.mc._currentframe <= 33)) {
_xscale = X;
} else {
_xscale = (X * 2);
}
}
Symbol 668 MovieClip Frame 10
if (!dead) {
if (kneel) {
gotoAndPlay ("hide");
}
}
if (!kneel) {
gotoAndPlay (1);
}
Symbol 668 MovieClip Frame 11
speed = 0;
Symbol 668 MovieClip Frame 12
if (!dead) {
if (this.mc._currentframe >= 36) {
gotoAndPlay (1);
} else {
gotoAndPlay ("duck");
}
}
Symbol 668 MovieClip Frame 13
speed = 0;
Symbol 668 MovieClip Frame 14
if (!dead) {
if (this.mc._currentframe >= 36) {
gotoAndPlay (1);
} else {
gotoAndPlay ("shootup");
}
}
Symbol 696 MovieClip Frame 1
P = 0;
onEnterFrame = function () {
if (!_root.PAUSE) {
P++;
smoke.duplicateMovieClip("smoke" + P, P);
this["smoke" + P]._x = smoke._x;
this["smoke" + P]._y = smoke._y;
if (P >= 30) {
P = 0;
}
}
};
Instance of Symbol 695 MovieClip "smoke" in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
floatspeed = 2;
speed = 2 - (Math.random() * 4);
shrinkspeed = 3 + (Math.random() * 2);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "smoke") {
_y = (_y - floatspeed);
floatspeed = floatspeed + 0.2;
_x = (_x + speed);
_xscale = (_xscale - shrinkspeed);
speed = speed - (speed / 10);
_yscale = _xscale;
if (_xscale <= 0) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 691 MovieClip in Symbol 763 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.speed == 0) {
gotoAndPlay (1);
}
if (_parent._parent.speed <= -1) {
gotoAndStop(_currentframe - 1);
if (_currentframe == 1) {
gotoAndStop (20);
}
}
}
Symbol 763 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 763 MovieClip Frame 25
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = _parent._x + (_parent.shotwidth * (_parent._xscale / _parent.X));
_root["tankshot" + _root.enemyshotcount]._y = _parent._y - _parent.shotheight;
_root["tankshot" + _root.enemyshotcount].speed = (-(_parent._x - _root.guy._x)) / 20;
Instance of Symbol 691 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.speed == 0) {
gotoAndPlay (1);
}
if (_parent._parent.speed <= -1) {
gotoAndStop(_currentframe - 1);
if (_currentframe == 1) {
gotoAndStop (20);
}
}
}
Instance of Symbol 765 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.speed == 0) {
gotoAndPlay (1);
}
if (_parent._parent.speed <= -1) {
gotoAndStop(_currentframe - 1);
if (_currentframe == 1) {
gotoAndStop (5);
}
}
}
Instance of Symbol 765 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.speed == 0) {
gotoAndPlay (1);
}
if (_parent._parent.speed <= -1) {
gotoAndStop(_currentframe - 1);
if (_currentframe == 1) {
gotoAndStop (5);
}
}
}
Instance of Symbol 765 MovieClip in Symbol 865 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.speed == 0) {
gotoAndPlay (1);
}
if (_parent._parent.speed <= -1) {
gotoAndStop(_currentframe - 1);
if (_currentframe == 1) {
gotoAndStop (5);
}
}
}
Symbol 865 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 865 MovieClip Frame 25
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = _parent._x + (_parent.shotwidth * (_parent._xscale / _parent.X));
_root["tankshot" + _root.enemyshotcount]._y = _parent._y - _parent.shotheight;
_root["tankshot" + _root.enemyshotcount].speed = (-(_parent._x - _root.guy._x)) / 20;
Instance of Symbol 900 MovieClip in Symbol 901 MovieClip Frame 23
onClipEvent (load) {
speed = -8;
fallspeed = -3;
Rspeed = 6 - (Math.random() * 12);
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + fallspeed);
_rotation = (_rotation + Rspeed);
fallspeed++;
}
Instance of Symbol 900 MovieClip in Symbol 901 MovieClip Frame 23
onClipEvent (load) {
speed = -8;
fallspeed = -3;
Rspeed = 6 - (Math.random() * 12);
}
onClipEvent (enterFrame) {
_x = (_x + speed);
_y = (_y + fallspeed);
_rotation = (_rotation + Rspeed);
fallspeed++;
}
Symbol 901 MovieClip Frame 66
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 902 MovieClip Frame 1
if (onscreen) {
if ((_x >= (_root.guy._x + 50)) || (_x <= (_root.guy._x - 50))) {
if (!_root.guy.dead) {
speed = 2;
} else {
speed = 0;
}
} else {
speed = 0;
}
} else {
speed = 0;
}
Instance of Symbol 41 MovieClip "body" in Symbol 902 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy) && (!_root.guy.invul)) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
Symbol 902 MovieClip Frame 2
if (health >= 10) {
gotoAndPlay (1);
}
Symbol 902 MovieClip Frame 3
if (onscreen) {
if ((_x >= (_root.guy._x + 50)) || (_x <= (_root.guy._x - 50))) {
if (!_root.guy.dead) {
speed = 1;
} else {
speed = 0;
}
} else {
speed = 0;
}
} else {
speed = 0;
}
Symbol 902 MovieClip Frame 4
if (!dead) {
gotoAndPlay (3);
}
Symbol 902 MovieClip Frame 5
speed = 0;
Symbol 902 MovieClip Frame 6
stop();
Symbol 930 MovieClip Frame 111
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 931 MovieClip Frame 2
if (health >= 6) {
gotoAndPlay (1);
}
Symbol 931 MovieClip Frame 4
if (health >= 1) {
gotoAndPlay (3);
}
Symbol 931 MovieClip Frame 5
i = 60;
while (i <= 80) {
_root["enemy" + i].kneel = false;
i++;
}
dead = true;
_root.Pcount++;
duplicateMovieClip (_root["machine gun symbol"], "Msymbol" + _root.Pcount, _root.Pcount);
_root["Msymbol" + _root.Pcount]._x = _x;
_root["Msymbol" + _root.Pcount]._y = _y;
Symbol 931 MovieClip Frame 6
stop();
Symbol 962 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 962 MovieClip Frame 21
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x + (60 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 110;
_root["enemyshot" + _root.enemyshotcount].X = _parent._xscale / _parent.X;
_root["enemyshot" + _root.enemyshotcount].fallspeed = 6;
Symbol 962 MovieClip Frame 31
gotoAndPlay (9);
Symbol 1021 MovieClip Frame 103
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 1022 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 1022 MovieClip Frame 3
stop();
Symbol 1027 MovieClip Frame 16
gotoAndPlay (15);
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 17
stop();
Symbol 1072 MovieClip Frame 24
gotoAndStop (17);
Instance of Symbol 1036 MovieClip in Symbol 1075 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((oldhealth - _parent.health) >= 1) {
this.gotoAndPlay(2);
}
oldhealth = _parent.health;
}
Instance of Symbol 41 MovieClip "body" in Symbol 1075 MovieClip Frame 1
onClipEvent (enterFrame) {
while (_root.guy.hitTest(this)) {
_root.guy._x--;
}
}
Symbol 1075 MovieClip Frame 2
if (health >= 10) {
gotoAndPlay (1);
}
Instance of Symbol 1072 MovieClip in Symbol 1075 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((oldhealth - _parent.health) >= 1) {
if (_currentframe >= 16) {
this.gotoAndPlay(18);
}
}
oldhealth = _parent.health;
}
Symbol 1075 MovieClip Frame 4
if (!dead) {
gotoAndPlay (3);
}
Symbol 1075 MovieClip Frame 6
stop();
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 11
stop();
Symbol 1088 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 1088 MovieClip Frame 81
this.swapDepths(999);
removeMovieClip(this);
Symbol 1158 MovieClip Frame 72
this.removeMovieClip();
Symbol 1158 MovieClip Frame 162
this.removeMovieClip();
Symbol 1184 MovieClip Frame 2
if (!_root.guy.hitTest(this)) {
gotoAndPlay (1);
}
Symbol 1184 MovieClip Frame 37
_visible = true;
Symbol 1184 MovieClip Frame 73
this.swapDepths(999);
this.removeMovieClip();
Symbol 1187 MovieClip Frame 2
if (health >= 3) {
gotoAndPlay (1);
}
Symbol 1187 MovieClip Frame 4
if (health >= 2) {
gotoAndPlay (3);
}
Symbol 1187 MovieClip Frame 5
i = 60;
while (i <= 80) {
_root["enemy" + i].kneel = false;
i++;
}
dead = true;
_root.Pcount++;
duplicateMovieClip (_root["machine gun symbol"], "Msymbol" + _root.Pcount, _root.Pcount);
_root["Msymbol" + _root.Pcount]._x = _x;
_root["Msymbol" + _root.Pcount]._y = _y;
Symbol 1187 MovieClip Frame 6
stop();
Symbol 1236 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 1236 MovieClip Frame 107
_root.Pcount++;
duplicateMovieClip (_root["RPG symbol"], "Gsymbol" + _root.Pcount, _root.Pcount);
_root["Gsymbol" + _root.Pcount]._x = _parent._x;
_root["Gsymbol" + _root.Pcount]._y = _parent._y;
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 1252 MovieClip Frame 57
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 1253 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 1253 MovieClip Frame 4
stop();
Symbol 1259 MovieClip Frame 1
if (_root.FACE == "PROZAC") {
gotoAndPlay ("PROZAC");
}
if (_root.FACE == "ANGERMAN") {
gotoAndPlay ("ANGERMAN");
}
Symbol 1259 MovieClip Frame 2
if (_root.FACE == "normal") {
gotoAndPlay (1);
}
if (_root.FACE == "PROZAC") {
gotoAndPlay ("PROZAC");
}
if (_root.FACE == "ANGERMAN") {
gotoAndPlay ("ANGERMAN");
}
Symbol 1259 MovieClip Frame 4
if (_root.FACE == "normal") {
gotoAndPlay (1);
}
if (_root.FACE == "PROZAC") {
gotoAndPlay ("PROZAC");
}
if (_root.FACE == "ANGERMAN") {
gotoAndPlay ("ANGERMAN");
}
Symbol 1259 MovieClip Frame 6
if (_root.FACE == "normal") {
gotoAndPlay (1);
}
if (_root.FACE == "PROZAC") {
gotoAndPlay ("PROZAC");
}
if (_root.FACE == "ANGERMAN") {
gotoAndPlay ("ANGERMAN");
}
Symbol 1261 MovieClip Frame 1
if (_root.Chair) {
_visible = true;
} else {
_visible = false;
}
Symbol 1263 MovieClip Frame 1
if (_root.That) {
_visible = true;
} else {
_visible = false;
}
Symbol 1281 MovieClip Frame 15
gotoAndPlay (1);
Symbol 1296 MovieClip Frame 11
gotoAndPlay (10);
Symbol 1319 MovieClip Frame 7
stop();
Symbol 1319 MovieClip Frame 10
stop();
Symbol 1348 MovieClip Frame 47
_root.LIVES--;
if (_parent.ammo <= 50) {
_parent.ammo = 0;
}
Symbol 1348 MovieClip Frame 66
_parent.fallspeed = 0;
_parent.invul = true;
_parent.invultime = 50;
_parent.dead = false;
_parent.gotoAndPlay(1);
Symbol 1360 MovieClip Frame 1
_parent._y = (_root.cam._y + (_root.cam._height / 2)) + 10;
X = _root.cam._x;
Y = _root.cam._y;
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
_root.LIVES--;
if (_parent.ammo <= 50) {
_parent.ammo = 0;
}
Symbol 1360 MovieClip Frame 2
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 3
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 4
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 5
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 6
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 7
RX = 2.5 - (Math.random() * 5);
RY = 2.5 - (Math.random() * 5);
_root.cam._x = X + RX;
_root.cam._y = Y + RY;
Symbol 1360 MovieClip Frame 8
_root.cam._x = X;
_root.cam._y = Y;
Symbol 1360 MovieClip Frame 55
_parent._x = _parent.STANDX;
_parent._y = _parent.STANDY - 30;
_parent.fallspeed = 0;
_parent.invul = true;
_parent.invultime = 50;
_parent.dead = false;
_parent.gotoAndPlay(1);
Symbol 1361 MovieClip Frame 1
if (!_root.PAUSE) {
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndPlay ("run");
}
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
if (Key.isDown(40)) {
gotoAndPlay ("duck");
}
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
gotoAndPlay ("grenade");
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Instance of Symbol 1281 MovieClip "mc" in Symbol 1361 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
gotoAndPlay ("UP");
}
if (Key.isDown(65) && (reload <= 0)) {
if (!_parent.Adown) {
gotoAndPlay ("hump");
}
}
}
Symbol 1361 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 1361 MovieClip Frame 3
if (!_root.PAUSE) {
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
if (Key.isDown(40)) {
gotoAndPlay ("duck");
}
if (Key.isDown(39)) {
speed = runspeed;
}
if (Key.isDown(37)) {
speed = -runspeed;
}
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Symbol 1361 MovieClip Frame 4
if (!_root.PAUSE) {
if (!dead) {
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndPlay ("run");
} else {
gotoAndPlay (1);
}
}
} else {
gotoAndPlay ("run");
}
Symbol 1361 MovieClip Frame 5
if (!_root.PAUSE) {
if (Key.isDown(40)) {
mc.gun._rotation = 90;
mc.gun._x = 6;
mc.gun._y = -65;
} else {
mc.gun._rotation = 0;
mc.gun._x = 23;
mc.gun._y = -85;
}
if (Key.isDown(39)) {
speed = runspeed;
} else if (Key.isDown(37)) {
speed = -runspeed;
} else {
speed = 0;
}
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Symbol 1361 MovieClip Frame 6
if (!dead) {
if (!_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay ("jump");
} else {
gotoAndPlay (1);
}
}
Symbol 1361 MovieClip Frame 7
if (!_root.PAUSE) {
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
speed = 0;
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Instance of Symbol 1319 MovieClip in Symbol 1361 MovieClip Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndPlay ("crawl");
_parent.speed = -3;
}
if (Key.isDown(39)) {
gotoAndPlay ("crawl");
_parent.speed = 3;
}
}
Symbol 1361 MovieClip Frame 8
if (!_root.PAUSE) {
if (!dead) {
if (Key.isDown(40)) {
gotoAndPlay ("duck");
} else {
gotoAndPlay (1);
}
}
} else {
gotoAndPlay ("duck");
}
Symbol 1361 MovieClip Frame 10
if (dead) {
gotoAndPlay ("dead");
} else {
gotoAndPlay (1);
}
Symbol 1361 MovieClip Frame 11
speed = 0;
Symbol 1361 MovieClip Frame 12
if (!_root.PAUSE) {
if (!dead) {
if (mc._currentframe >= 10) {
gotoAndPlay (1);
} else {
gotoAndPlay ("grenade");
}
}
} else {
gotoAndPlay ("grenade");
}
Symbol 1361 MovieClip Frame 14
if (dead) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay (1);
}
Symbol 1370 MovieClip Frame 9
this.swapDepths(999);
this.removeMovieClip();
Symbol 1391 MovieClip Frame 3
_visible = true;
Symbol 1391 MovieClip Frame 341
this.swapDepths(999);
this.removeMovieClip();
Symbol 1394 MovieClip Frame 1
_visible = false;
Symbol 1394 MovieClip Frame 2
if (_root.LIVES >= 1) {
gotoAndPlay (1);
}
Symbol 1394 MovieClip Frame 3
_visible = true;
this.swapDepths(1000);
Symbol 1394 MovieClip Frame 8
_root.gotoAndPlay("game over");
this.removeMovieClip();
Instance of Symbol 41 MovieClip in Symbol 1399 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_parent._y + _y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 1399 MovieClip Frame 1
onClipEvent (enterFrame) {
while (_root.guy.hitTest(this)) {
_root.guy._y--;
}
}
Instance of Symbol 1401 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.random() * 20);
}
Symbol 1403 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 1403 MovieClip Frame 3
_root.ground["M" + n].swapDepths(999);
_root.ground["M" + n].removeMovieClip();
Symbol 1403 MovieClip Frame 4
stop();
Symbol 1462 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 1462 MovieClip Frame 10
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = X;
_root["tankshot" + _root.enemyshotcount]._y = _root.cam._y - 410;
_root["tankshot" + _root.enemyshotcount].speed = 0;
if ((_parent.distance <= 200) && (_parent.distance >= 101)) {
gotoAndPlay ("north west");
}
if ((_parent.distance >= -200) && (_parent.distance <= -101)) {
gotoAndPlay ("north east");
}
Symbol 1462 MovieClip Frame 20
X = _root.guy._x;
Symbol 1462 MovieClip Frame 25
gotoAndPlay ("north");
Symbol 1462 MovieClip Frame 35
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = X;
_root["tankshot" + _root.enemyshotcount]._y = _root.cam._y - 410;
_root["tankshot" + _root.enemyshotcount].speed = 0;
if ((_parent.distance <= 100) && (_root.distance >= -100)) {
gotoAndPlay ("north");
}
if (_parent.distance >= 201) {
gotoAndPlay ("west by north west");
}
Symbol 1462 MovieClip Frame 45
X = _root.guy._x;
Symbol 1462 MovieClip Frame 50
gotoAndPlay ("north west");
Symbol 1462 MovieClip Frame 60
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = X;
_root["tankshot" + _root.enemyshotcount]._y = _root.cam._y - 410;
_root["tankshot" + _root.enemyshotcount].speed = 0;
if (_parent.distance <= 200) {
gotoAndPlay ("north west");
}
Symbol 1462 MovieClip Frame 70
X = _root.guy._x;
Symbol 1462 MovieClip Frame 76
gotoAndPlay ("west by north west");
Symbol 1462 MovieClip Frame 85
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = X;
_root["tankshot" + _root.enemyshotcount]._y = _root.cam._y - 410;
_root["tankshot" + _root.enemyshotcount].speed = 0;
if (_parent.distance >= -100) {
gotoAndPlay ("north");
}
if (_parent.distance <= -201) {
gotoAndPlay ("east by north east");
}
Symbol 1462 MovieClip Frame 96
X = _root.guy._x;
Symbol 1462 MovieClip Frame 101
gotoAndPlay ("north east");
Symbol 1462 MovieClip Frame 111
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = X;
_root["tankshot" + _root.enemyshotcount]._y = _root.cam._y - 410;
_root["tankshot" + _root.enemyshotcount].speed = 0;
if (_parent.distance >= -200) {
gotoAndPlay ("north east");
}
Symbol 1462 MovieClip Frame 121
X = _root.guy._x;
Symbol 1462 MovieClip Frame 127
gotoAndPlay ("east by north east");
Symbol 1528 MovieClip Frame 3
if (!_parent.dead) {
gotoAndPlay (1);
}
Symbol 1528 MovieClip Frame 12
if (_y <= _parent.bottom._y) {
gotoAndPlay (11);
}
Symbol 1528 MovieClip Frame 92
_parent.swapDepths(999);
_parent.removeMovieClip();
Symbol 1530 MovieClip Frame 1
GO = false;
Symbol 1530 MovieClip Frame 2
if (!onscreen) {
gotoAndPlay (1);
}
Instance of Symbol 1528 MovieClip in Symbol 1530 MovieClip Frame 53
onClipEvent (load) {
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y + fallspeed);
fallspeed++;
if (_y >= _parent.bottom._y) {
if (!_parent.dead) {
_parent.GO = true;
_parent.gotoAndPlay("GO!");
} else {
fallspeed = 0;
}
}
}
}
Instance of Symbol 41 MovieClip "body" in Symbol 1530 MovieClip Frame 53
onClipEvent (load) {
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_y = (_y + fallspeed);
fallspeed++;
}
}
Symbol 1530 MovieClip Frame 54
if (!GO) {
gotoAndPlay ("LIVIN ON A PREHAEH!!");
}
Symbol 1530 MovieClip Frame 57
_root.enemycount++;
if (_root.enemycount >= 79) {
_root.enemycount = 60;
}
duplicateMovieClip (_root.rifleman, "rifleman" + _root.enemycount, _root.enemycount);
_root["rifleman" + _root.enemycount]._x = _x;
_root["rifleman" + _root.enemycount]._y = _y;
Symbol 1530 MovieClip Frame 138
this.swapDepths(999);
this.removeMovieClip();
Instance of Symbol 1534 MovieClip in Symbol 1535 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_y + _parent._y) >= (_root.cam._y + 200)) {
_y = (_y - ((_height * 2) - 2));
}
}
Instance of Symbol 1534 MovieClip in Symbol 1535 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_y + _parent._y) >= (_root.cam._y + 200)) {
_y = (_y - ((_height * 2) - 2));
}
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P1._y;
gotoAndStop(_root.ground.P1._currentframe);
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P2._y;
gotoAndStop(_root.ground.P2._currentframe);
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P3._y;
gotoAndStop(_root.ground.P3._currentframe);
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P4._y;
gotoAndStop(_root.ground.P4._currentframe);
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P5._y;
gotoAndStop(_root.ground.P5._currentframe);
}
Instance of Symbol 1542 MovieClip in Symbol 1543 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = _root.ground.P6._y;
gotoAndStop(_root.ground.P6._currentframe);
}
Instance of Symbol 41 MovieClip in Symbol 1545 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip in Symbol 1545 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1545 MovieClip "P1" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
if (_root.guy.grenades <= 1) {
if (((R == 1) || (R == 3)) || (R == 4)) {
duplicateMovieClip (_root["grenade pickup"], "Msymbol", 200);
_root.Msymbol._x = _root.cam._x;
_root.Msymbol._y = _parent._y + _y;
}
}
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 1545 MovieClip "P2" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 1545 MovieClip "P3" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 1545 MovieClip "P4" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 1545 MovieClip "P5" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip "L" in Symbol 1546 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_root.cam._y - _parent._y);
}
Instance of Symbol 41 MovieClip "R" in Symbol 1546 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_root.cam._y - _parent._y);
}
Instance of Symbol 1545 MovieClip "P6" in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._y + _y) >= (_root.cam._y + 250)) {
R = 1 + Math.round(Math.random() * 4);
gotoAndStop(R);
_y = (_y - 500);
}
if (_root.guy._y <= (_parent._y + _y)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Symbol 1553 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 1553 MovieClip Frame 79
this.swapDepths(999);
removeMovieClip(this);
Symbol 1626 MovieClip Frame 10
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = (_root.enemyboss._x + _x) + (30 * Math.sin(_rotation * (Math.PI/180)));
_root["enemyshot" + _root.enemyshotcount]._y = ((_root.enemyboss._y - _parent._y) + _y) - (30 * Math.cos(_rotation * (Math.PI/180)));
_root["enemyshot" + _root.enemyshotcount].fallspeed = -20 * Math.cos(_rotation * (Math.PI/180));
_root["enemyshot" + _root.enemyshotcount].speed = 20 * Math.sin(_rotation * (Math.PI/180));
Symbol 1643 MovieClip Frame 5
if (_root.enemyboss.dead) {
gotoAndPlay (4);
}
Symbol 1643 MovieClip Frame 30
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount].xM = Math.sin(_rotation * (Math.PI/180));
_root["tankshot" + _root.enemyshotcount].yM = Math.cos(_rotation * (Math.PI/180));
_root["tankshot" + _root.enemyshotcount]._x = _parent._parent._parent._x + (_root["tankshot" + _root.enemyshotcount].xM * D);
_root["tankshot" + _root.enemyshotcount]._y = _parent._parent._parent._y - (_root["tankshot" + _root.enemyshotcount].yM * D);
_root["tankshot" + _root.enemyshotcount].speed = _root["tankshot" + _root.enemyshotcount].xM * 30;
_root["tankshot" + _root.enemyshotcount].fallspeed = (-_root["tankshot" + _root.enemyshotcount].yM) * 30;
Symbol 1643 MovieClip Frame 35
gotoAndPlay (1);
Symbol 1643 MovieClip Frame 46
_rotation = 0;
if (_root.enemyboss.health <= 50) {
gotoAndPlay ("miniguns");
}
Instance of Symbol 41 MovieClip in Symbol 1643 MovieClip Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
_root.guy.mc.gotoAndPlay(47);
}
}
}
Symbol 1643 MovieClip Frame 193
s = 500;
gotoAndPlay (1);
Symbol 1643 MovieClip Frame 374
s = 500;
Symbol 1659 MovieClip Frame 18
this.swapDepths(999);
this.removeMovieClip();
Symbol 1664 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.enemyboss.health <= 80) {
gotoAndStop (2);
}
};
Instance of Symbol 1643 MovieClip "mc" in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
D = 140;
s = 500;
}
onClipEvent (enterFrame) {
s--;
if (s >= 1) {
delta_x = _parent._parent._parent._x - _root.guy._x;
delta_y = _parent._parent._parent._y - _root.guy._y;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
}
if (s == 0) {
gotoAndPlay ("retract");
}
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 60 MovieClip in Symbol 1664 MovieClip Frame 1
onClipEvent (load) {
A = 0;
}
onClipEvent (enterFrame) {
var red = (new flash.filters.GlowFilter(16711680, A, 200, 200, 100, 1, true, true));
var filterArray = new Array();
filterArray.push(red);
this.filters = [red];
A = A - (A / 10);
if (_parent._parent._parent.health <= (OLDhealth - 1)) {
A = 0.5;
}
OLDhealth = _parent._parent._parent.health;
}
Symbol 1664 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (_root.enemyboss.health <= 40) {
gotoAndStop (3);
}
};
Instance of Symbol 60 MovieClip in Symbol 1664 MovieClip Frame 2
onClipEvent (load) {
A = 0;
}
onClipEvent (enterFrame) {
var red = (new flash.filters.GlowFilter(16711680, A, 200, 200, 100, 1, true, true));
var filterArray = new Array();
filterArray.push(red);
this.filters = [red];
A = A - (A / 10);
if (_parent._parent._parent.health <= (OLDhealth - 1)) {
A = 0.5;
}
OLDhealth = _parent._parent._parent.health;
}
Symbol 1664 MovieClip Frame 3
stop();
Instance of Symbol 60 MovieClip in Symbol 1664 MovieClip Frame 3
onClipEvent (load) {
A = 0;
}
onClipEvent (enterFrame) {
var red = (new flash.filters.GlowFilter(16711680, A, 200, 200, 100, 1, true, true));
var filterArray = new Array();
filterArray.push(red);
this.filters = [red];
A = A - (A / 10);
if (_parent._parent._parent.health <= (OLDhealth - 1)) {
A = 0.5;
}
OLDhealth = _parent._parent._parent.health;
}
Symbol 1685 MovieClip Frame 1
mc.gotoAndPlay("retract");
Instance of Symbol 1643 MovieClip "mc" in Symbol 1685 MovieClip Frame 1
onClipEvent (load) {
D = 140;
s = 500;
}
onClipEvent (enterFrame) {
s--;
if (s >= 1) {
delta_x = _parent._parent._parent._x - _root.guy._x;
delta_y = _parent._parent._parent._y - _root.guy._y;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
}
if (s == 0) {
gotoAndPlay ("retract");
}
}
Instance of Symbol 1643 MovieClip "mc" in Symbol 1687 MovieClip Frame 1
onClipEvent (load) {
D = 140;
s = 500;
}
onClipEvent (enterFrame) {
gotoAndPlay (1);
if (s >= 1) {
delta_x = _parent._x - _root.guy._x;
delta_y = _parent._y - _root.guy._y;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
}
if (s == 0) {
gotoAndPlay ("retract");
}
}
Symbol 1687 MovieClip Frame 2
if (_root.cam.SS >= 1) {
gotoAndPlay (1);
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (5);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (10);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (15);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (10);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (15);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (20);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1645 MovieClip in Symbol 1687 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay (5);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 1665 MovieClip "mc" in Symbol 1687 MovieClip Frame 3
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Symbol 1687 MovieClip Frame 4
if (!dead) {
gotoAndPlay (3);
}
Symbol 1687 MovieClip Frame 96
this.swapDepths(1000);
Symbol 1687 MovieClip Frame 116
_root.play();
this.removeMovieClip();
Symbol 1736 MovieClip Frame 2
if (!_parent.onscreen) {
gotoAndPlay (1);
}
Symbol 1736 MovieClip Frame 19
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _parent._x - (65 * (_parent._xscale / _parent.X));
_root["enemyshot" + _root.enemyshotcount]._y = _parent._y - 120;
_root["enemyshot" + _root.enemyshotcount].X = (-_parent._xscale) / _parent.X;
_root["enemyshot" + _root.enemyshotcount].fallspeed = 6;
Symbol 1736 MovieClip Frame 29
gotoAndPlay (7);
Symbol 1744 MovieClip Frame 1
stop();
Symbol 1744 MovieClip Frame 2
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.riflegun, "riflegun" + _root.enemyshotcount, _root.enemyshotcount);
_root["riflegun" + _root.enemyshotcount]._x = _x - (40 * (_xscale / X));
_root["riflegun" + _root.enemyshotcount]._y = _y - 125;
_root["riflegun" + _root.enemyshotcount].X = _xscale / X;
Symbol 1744 MovieClip Frame 27
stop();
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 1746 MovieClip in Symbol 1747 MovieClip Frame 1
onClipEvent (load) {
s = 14;
dead = false;
fallspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_x + _parent._x, _y + _parent._y, true)) {
dead = true;
}
if (dead) {
s--;
}
if (s <= 0) {
_y = (_y + fallspeed);
fallspeed++;
if ((_y + _parent._y) >= (_root.cam._y + 400)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
Instance of Symbol 41 MovieClip "body" in Symbol 1776 MovieClip Frame 1
onClipEvent (enterFrame) {
while (_root.guy.hitTest(this)) {
_root.guy._x--;
}
}
Symbol 1776 MovieClip Frame 2
stop();
Symbol 1776 MovieClip Frame 4
stop();
Symbol 1776 MovieClip Frame 6
stop();
Symbol 1776 MovieClip Frame 7
stop();
Symbol 1778 MovieClip Frame 1
_visible = false;
stop();
Symbol 1778 MovieClip Frame 2
_visible = true;
this.swapDepths(1001);
Symbol 1778 MovieClip Frame 10
_root.play();
this.removeMovieClip();
Symbol 1803 MovieClip Frame 3
gotoAndPlay (1);
Symbol 1854 MovieClip Frame 1
stop();
DIEing = false;
Instance of Symbol 41 MovieClip "nazi" in Symbol 1854 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i <= 20) {
if (this.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
_root["shot" + i].hit = true;
_parent.gotoAndPlay("nazi dead");
}
i++;
}
if (this.hitTest(_root["explosion" + _root.Ecount])) {
_parent.gotoAndPlay("nazi dead");
}
}
Symbol 1854 MovieClip Frame 2
nazidead = true;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.riflegun, "riflegun" + _root.enemyshotcount, _root.enemyshotcount);
_root["riflegun" + _root.enemyshotcount]._x = _x - (20 * (_xscale / X));
_root["riflegun" + _root.enemyshotcount]._y = _y - 73;
_root["riflegun" + _root.enemyshotcount].X = (-_xscale) / X;
Symbol 1854 MovieClip Frame 7
stop();
Symbol 1854 MovieClip Frame 8
DIEing = true;
Symbol 1854 MovieClip Frame 34
stop();
DIEing = false;
Symbol 1854 MovieClip Frame 61
stop();
Symbol 1873 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1879 MovieClip Frame 22
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
xM = Math.sin(_rotation * (Math.PI/180));
yM = Math.cos(_rotation * (Math.PI/180));
_root["tankshot" + _root.enemyshotcount]._x = (_parent._x + _x) + (xM * 45);
_root["tankshot" + _root.enemyshotcount]._y = (_parent._y + _y) - (yM * 45);
_root["tankshot" + _root.enemyshotcount].speed = xM * 30;
_root["tankshot" + _root.enemyshotcount].fallspeed = (-yM) * 30;
Symbol 1882 MovieClip Frame 1
stop();
Instance of Symbol 1867 MovieClip in Symbol 1882 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
play();
} else {
stop();
}
}
Instance of Symbol 1873 MovieClip in Symbol 1882 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Instance of Symbol 41 MovieClip "body" in Symbol 1882 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i <= 20) {
if (this.hitTest(_root["shot" + i]._x, _root["shot" + i]._y, true) && (!_root["shot" + i].hit)) {
_root["shot" + i].hit = true;
_parent.gotoAndPlay("nazi dead");
}
i++;
}
if (this.hitTest(_root["explosion" + _root.Ecount])) {
_parent.gotoAndPlay("nazi dead");
}
}
Instance of Symbol 1879 MovieClip in Symbol 1882 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
play();
xDist = (_x + _parent._x) - _root.guy._x;
yDist = (_y + _parent._y) - _root.guy._y;
angle = Math.atan2(yDist, xDist);
_rotation = (_rotation - ((_rotation - ((angle * 90) - 90)) / 5));
} else {
stop();
}
}
Instance of Symbol 1879 MovieClip in Symbol 1882 MovieClip Frame 2
onClipEvent (load) {
speed = 10 - (Math.random() * 20);
fallspeed = 7 + (Math.random() * 5);
}
onClipEvent (enterFrame) {
gotoAndStop (1);
_x = (_x + speed);
_y = (_y - fallspeed);
fallspeed--;
}
Symbol 1882 MovieClip Frame 25
stop();
Symbol 1902 MovieClip Frame 1
stop();
Symbol 1902 MovieClip Frame 2
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
Instance of Symbol 41 MovieClip in Symbol 1902 MovieClip Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body) && (_root.guy.dead == false)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
Symbol 1902 MovieClip Frame 70
this.swapDepths(999);
this.removeMovieClip();
Instance of Symbol 41 MovieClip in Symbol 1908 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.blackscreen.play();
}
}
Instance of Symbol 368 MovieClip in Symbol 1912 MovieClip Frame 1
onClipEvent (load) {
_rotation = (Math.random() * 360);
}
Symbol 1913 MovieClip Frame 1
stop();
onscreen = false;
health = 5;
dead = false;
_root.panels++;
onEnterFrame = function () {
if (!_root.PAUSE) {
_rotation = (_rotation + (_xscale / 20));
_x = _root.enemy100._x;
_y = _root.enemy100._y;
if (!onscreen) {
if (_root.cam.hitTest(this)) {
onscreen = true;
_root.enemycount++;
_root["enemy" + _root.enemycount].swapDepths(999);
removeMovieClip(_root["enemy" + _root.enemycount]);
_name = ("enemy" + _root.enemycount);
}
}
if ((health <= 3) && (health >= 2)) {
gotoAndStop (2);
}
if (health == 1) {
gotoAndStop (3);
}
if (health <= 0) {
gotoAndStop (4);
}
}
};
Symbol 1913 MovieClip Frame 4
s = 30;
_root.panels--;
onEnterFrame = function () {
s--;
if (s <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
};
Symbol 1914 MovieClip Frame 1
P = 0;
onEnterFrame = function () {
if (!_root.PAUSE) {
P++;
smoke.duplicateMovieClip("smoke" + P, P);
this["smoke" + P]._x = smoke._x;
this["smoke" + P]._y = smoke._y;
if (P >= 50) {
P = 0;
}
}
};
Instance of Symbol 695 MovieClip "smoke" in Symbol 1914 MovieClip Frame 1
onClipEvent (load) {
floatspeed = 10;
speed = 4 - (Math.random() * 8);
shrinkspeed = 15 + (Math.random() * 2);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "smoke") {
_y = (_y - floatspeed);
floatspeed = floatspeed + 0.2;
_x = (_x + speed);
_xscale = (_xscale - shrinkspeed);
speed = speed - (speed / 10);
_yscale = _xscale;
if (_xscale <= 0) {
this.removeMovieClip();
}
}
}
}
Symbol 1947 MovieClip Frame 10
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.enemyshot2, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = (_root.enemy100._x + _x) + (20 * Math.sin(_rotation * (Math.PI/180)));
_root["enemyshot" + _root.enemyshotcount]._y = ((_root.enemy100._y - _parent._y) + _y) - (20 * Math.cos(_rotation * (Math.PI/180)));
_root["enemyshot" + _root.enemyshotcount].fallspeed = -20 * Math.cos(_rotation * (Math.PI/180));
_root["enemyshot" + _root.enemyshotcount].speed = (20 * Math.sin(_rotation * (Math.PI/180))) - 3;
Symbol 2044 MovieClip Frame 1
if (_root.panels <= 0) {
_parent.following = true;
}
Symbol 2044 MovieClip Frame 2
if (!_root.enemy100.onscreen) {
gotoAndPlay (1);
}
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
Instance of Symbol 1947 MovieClip in Symbol 2044 MovieClip Frame 23
onClipEvent (load) {
X = _xscale;
_xscale = 0;
_yscale = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe <= 90) {
_xscale = (_xscale - ((_xscale - X) / 3));
_yscale = _xscale;
delta_x = _root.enemy100._x - _root.guy._x;
delta_y = (_root.enemy100._y - _root.guy._y) - 30;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
} else {
_xscale = (_xscale - (_xscale / 3));
_yscale = _xscale;
}
}
Symbol 2044 MovieClip Frame 85
if (_root.panels <= 0) {
gotoAndPlay (25);
}
Instance of Symbol 1947 MovieClip in Symbol 2044 MovieClip Frame 117
onClipEvent (load) {
X = _xscale;
_xscale = 0;
_yscale = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe <= 180) {
_xscale = (_xscale - ((_xscale - X) / 3));
_yscale = _xscale;
delta_x = _root.enemy100._x - _root.guy._x;
delta_y = (_root.enemy100._y - _root.guy._y) - 10;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
} else {
_xscale = (_xscale - (_xscale / 3));
_yscale = _xscale;
}
}
Symbol 2044 MovieClip Frame 175
if (_root.panels <= 0) {
gotoAndPlay (25);
}
Instance of Symbol 1947 MovieClip in Symbol 2044 MovieClip Frame 211
onClipEvent (load) {
X = _xscale;
_xscale = 0;
_yscale = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe <= 275) {
_xscale = (_xscale - ((_xscale - X) / 3));
_yscale = _xscale;
delta_x = _root.enemy100._x - _root.guy._x;
delta_y = (_root.enemy100._y - _root.guy._y) - 10;
R = (-Math.atan2(delta_x, delta_y)) / (Math.PI/180);
_rotation = (_rotation - ((_rotation - R) / 2));
} else {
_xscale = (_xscale - (_xscale / 3));
_yscale = _xscale;
}
}
Symbol 2044 MovieClip Frame 269
if (_root.panels <= 0) {
_parent.following = true;
}
Symbol 2044 MovieClip Frame 270
if (_root.panels <= 0) {
gotoAndPlay (25);
}
Symbol 2044 MovieClip Frame 316
_root.enemy100._rotation = _root.enemy100._rotation - 20;
_root.enemy100._y = _root.enemy100._y + 15;
Symbol 2044 MovieClip Frame 317
_root.enemy100._rotation = _root.enemy100._rotation - 7;
_root.enemy100._y = _root.enemy100._y + 10;
Symbol 2044 MovieClip Frame 318
_root.enemy100._rotation = _root.enemy100._rotation - 2;
_root.enemy100._y = _root.enemy100._y + 5;
Symbol 2044 MovieClip Frame 319
_root.enemy100._y = _root.enemy100._y + 3;
Symbol 2044 MovieClip Frame 320
_root.enemy100._rotation = _root.enemy100._rotation + 2;
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 321
_root.enemy100._rotation = _root.enemy100._rotation + 5;
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 322
_root.enemy100._rotation = _root.enemy100._rotation + 8;
_root.enemy100._y = _root.enemy100._y - 3;
Symbol 2044 MovieClip Frame 323
_root.enemy100._rotation = _root.enemy100._rotation + 12;
_root.enemy100._y = _root.enemy100._y - 5;
Symbol 2044 MovieClip Frame 324
_root.enemy100._rotation = _root.enemy100._rotation + 8;
_root.enemy100._y = _root.enemy100._y - 8;
Symbol 2044 MovieClip Frame 325
_root.enemy100._rotation = _root.enemy100._rotation + 3;
_root.enemy100._y = _root.enemy100._y - 12;
Symbol 2044 MovieClip Frame 326
_root.enemy100._y = _root.enemy100._y - 10;
Symbol 2044 MovieClip Frame 327
_root.enemy100._rotation = _root.enemy100._rotation - 1;
_root.enemy100._y = _root.enemy100._y - 5;
Symbol 2044 MovieClip Frame 328
_root.enemy100._rotation = _root.enemy100._rotation - 2;
_root.enemy100._y = _root.enemy100._y - 3;
Symbol 2044 MovieClip Frame 329
_root.enemy100._rotation = _root.enemy100._rotation - 4;
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 330
_root.enemy100._rotation = _root.enemy100._rotation - 2;
_root.enemy100._y = _root.enemy100._y + 2;
Symbol 2044 MovieClip Frame 331
_root.enemy100._y = _root.enemy100._y + 4;
Symbol 2044 MovieClip Frame 332
_root.enemy100._y = _root.enemy100._y + 2;
Symbol 2044 MovieClip Frame 333
_root.enemy100._y = _root.enemy100._y + 2;
Instance of Symbol 41 MovieClip in Symbol 2044 MovieClip Frame 373
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body) && (_root.guy.dead == false)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
Symbol 2044 MovieClip Frame 374
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 375
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 376
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 377
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 378
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 379
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 380
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 381
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 382
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 383
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 384
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 385
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 386
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 387
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 388
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 389
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 390
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 391
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 392
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 393
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 394
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 395
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 396
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 397
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 398
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 399
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 400
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 401
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 402
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 403
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 404
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 405
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 406
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 407
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 408
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 409
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 410
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 411
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 412
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 413
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 414
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 415
_root.enemy100._y = _root.enemy100._y - 1;
Symbol 2044 MovieClip Frame 416
_root.enemy100._y = _root.enemy100._y + 1;
Symbol 2044 MovieClip Frame 417
_root.enemy100._y = _root.enemy100._y - 1;
Instance of Symbol 1938 MovieClip in Symbol 2048 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Symbol 2048 MovieClip Frame 2
if (health >= 60) {
gotoAndPlay (1);
}
Symbol 2048 MovieClip Frame 4
if (health >= 40) {
gotoAndPlay (3);
}
Symbol 2048 MovieClip Frame 6
if (health >= 1) {
gotoAndPlay (5);
}
Symbol 2048 MovieClip Frame 7
dead = true;
fallspeed = fallspeed + 2;
_y = (_y + fallspeed);
_rotation = (_rotation + (Math.random() * 1.5));
Symbol 2048 MovieClip Frame 8
gotoAndPlay (7);
Instance of Symbol 1360 MovieClip in Symbol 2073 MovieClip Frame 45
onClipEvent (load) {
_root.guy._y = _root.cam._y + 200;
}
Symbol 2073 MovieClip Frame 84
_x = (_root.cam._x - 200);
_y = _root.cam._y;
invul = true;
invultime = 50;
Symbol 2073 MovieClip Frame 94
dead = false;
Symbol 2078 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 2078 MovieClip Frame 79
this.swapDepths(999);
removeMovieClip(this);
Symbol 2080 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 2080 MovieClip Frame 79
this.swapDepths(999);
removeMovieClip(this);
Instance of Symbol 41 MovieClip in Symbol 2090 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2090 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2090 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Symbol 2116 MovieClip Frame 60
if (!got) {
gotoAndPlay (1);
}
Symbol 2116 MovieClip Frame 81
this.swapDepths(999);
removeMovieClip(this);
Symbol 2120 MovieClip Frame 1
if (_name != "rifleshot") {
R = Math.random() * 3;
} else {
R = 0;
}
_root.cam._y = _root.cam._y + R;
Symbol 2120 MovieClip Frame 2
_root.cam._y = _root.cam._y - (R * 2);
Symbol 2120 MovieClip Frame 3
_root.cam._y = _root.cam._y + R;
Symbol 2120 MovieClip Frame 15
this.removeMovieClip();
stop();
Symbol 2163 MovieClip Frame 2
if (!onscreen) {
gotoAndPlay (1);
}
Symbol 2163 MovieClip Frame 3
blowinup = false;
Symbol 2163 MovieClip Frame 85
if (blowinup) {
gotoAndPlay ("dead");
}
Symbol 2163 MovieClip Frame 95
if (blowinup) {
gotoAndPlay ("dead");
}
Symbol 2163 MovieClip Frame 105
if (blowinup) {
gotoAndPlay ("dead");
}
Symbol 2163 MovieClip Frame 115
if (blowinup) {
gotoAndPlay ("dead");
}
Symbol 2163 MovieClip Frame 145
n++;
duplicateMovieClip (_root.rifleman, "rifleman" + n, 100 + n);
_root["rifleman" + n]._x = _x - 10;
_root["rifleman" + n]._y = _y;
gotoAndPlay ("READY!");
Symbol 2163 MovieClip Frame 157
gotoAndPlay (156);
Symbol 2174 MovieClip Frame 2
if (health >= 1) {
gotoAndPlay (1);
}
Symbol 2174 MovieClip Frame 13
_root.ground.S1.swapDepths(999);
_root.ground.S1.removeMovieClip();
_root.ground.S2.swapDepths(999);
_root.ground.S2.removeMovieClip();
Symbol 2174 MovieClip Frame 31
_root.VAT1.blowinup = true;
Symbol 2174 MovieClip Frame 41
_root.VAT2.blowinup = true;
Symbol 2174 MovieClip Frame 48
_root.VAT3.blowinup = true;
Symbol 2174 MovieClip Frame 71
stop();
Instance of Symbol 41 MovieClip in Symbol 2188 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2188 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2188 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2188 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2188 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Symbol 2195 MovieClip Frame 25
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.hitlershot, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = _root.enemy80._x + (_root.enemy80.D * (_x + (30 * Math.sin(_rotation * (Math.PI/180)))));
_root["enemyshot" + _root.enemyshotcount]._y = (_root.enemy80._y + _y) - (30 * Math.cos(_rotation * (Math.PI/180)));
_root["enemyshot" + _root.enemyshotcount].fallspeed = -20 * Math.cos(_rotation * (Math.PI/180));
_root["enemyshot" + _root.enemyshotcount].speed = _root.enemy80.D * (20 * Math.sin(_rotation * (Math.PI/180)));
Instance of Symbol 2195 MovieClip in Symbol 2202 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (25);
}
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
play();
xDist = (_x + _root.enemy80._x) - _root.guy._x;
yDist = (_y + _root.enemy80._y) - (_root.guy._y - (_root.guy._height * 0.6));
angle = (_root.enemy80.D * (-Math.atan2(xDist, yDist))) / (Math.PI/180);
if ((angle <= 0) && (angle >= -180)) {
_rotation = angle;
}
} else {
stop();
}
}
Instance of Symbol 2195 MovieClip in Symbol 2202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
play();
xDist = (_x + _root.enemy80._x) - _root.guy._x;
yDist = (_y + _root.enemy80._y) - (_root.guy._y - (_root.guy._height * 0.6));
angle = (_root.enemy80.D * (-Math.atan2(xDist, yDist))) / (Math.PI/180);
if ((angle <= 0) && (angle >= -180)) {
_rotation = angle;
}
} else {
stop();
}
}
Symbol 2304 MovieClip Frame 51
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 52
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 53
_root.cam._y = _root.cam._y + 4;
Instance of Symbol 41 MovieClip in Symbol 2304 MovieClip Frame 53
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body) && (!_root.guy.dead)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
_root.guy.gotoAndPlay("dead");
}
}
}
Symbol 2304 MovieClip Frame 54
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 55
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 56
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 57
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 58
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 59
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 60
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 61
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 62
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 63
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 64
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 65
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 66
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 67
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 68
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 69
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 70
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 71
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 72
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 73
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 74
_root.cam._y = _root.cam._y - 4;
Symbol 2304 MovieClip Frame 75
_root.cam._y = _root.cam._y + 4;
Symbol 2304 MovieClip Frame 76
_root.cam._y = _root.cam._y - 4;
Symbol 2314 MovieClip Frame 4
_parent.fallspeed = -28;
Symbol 2314 MovieClip Frame 8
stop();
Symbol 2324 MovieClip Frame 1
gotoAndStop (8);
Symbol 2324 MovieClip Frame 9
gotoAndStop (2);
Symbol 2335 MovieClip Frame 1
gotoAndStop (8);
Symbol 2335 MovieClip Frame 9
gotoAndStop (2);
Instance of Symbol 2324 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.enemy80.speed >= 1) {
play();
}
if (_root.enemy80.speed <= -1) {
gotoAndPlay(_currentframe - 2);
}
if (_root.enemy80.speed == 0) {
stop();
}
}
Instance of Symbol 2335 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.enemy80.speed >= 1) {
play();
}
if (_root.enemy80.speed <= -1) {
gotoAndPlay(_currentframe - 2);
}
if (_root.enemy80.speed == 0) {
stop();
}
}
Symbol 2343 MovieClip Frame 11
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 20;
}
duplicateMovieClip (_root.tankshot, "tankshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["tankshot" + _root.enemyshotcount]._x = _parent._x;
_root["tankshot" + _root.enemyshotcount]._y = _parent._y + 10;
_root["tankshot" + _root.enemyshotcount].speed = 0;
_root["tankshot" + _root.enemyshotcount].fallspeed = 5;
Symbol 2347 MovieClip Frame 1
_root.cam._y = _root.cam._y - 4;
_visible = false;
Symbol 2347 MovieClip Frame 2
_root.cam._y = _root.cam._y + 7;
Symbol 2347 MovieClip Frame 3
_root.cam._y = _root.cam._y - 6;
Symbol 2347 MovieClip Frame 4
_root.cam._y = _root.cam._y + 5;
Symbol 2347 MovieClip Frame 5
_root.cam._y = _root.cam._y - 4;
Symbol 2347 MovieClip Frame 6
_root.cam._y = _root.cam._y + 1;
Symbol 2347 MovieClip Frame 7
_root.cam._y = _root.cam._y - 1;
Symbol 2347 MovieClip Frame 8
stop();
Symbol 2354 MovieClip Frame 7
stop();
Instance of Symbol 2195 MovieClip in Symbol 2365 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (25);
}
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
gotoAndPlay (1);
xDist = (_x + _root.enemy80._x) - _root.guy._x;
yDist = (_y + _root.enemy80._y) - (_root.guy._y - (_root.guy._height * 0.6));
angle = (_root.enemy80.D * (-Math.atan2(xDist, yDist))) / (Math.PI/180);
if ((angle <= 0) && (angle >= -180)) {
_rotation = angle;
}
} else {
stop();
}
}
Instance of Symbol 2195 MovieClip in Symbol 2365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
gotoAndPlay (1);
xDist = (_x + _root.enemy80._x) - _root.guy._x;
yDist = (_y + _root.enemy80._y) - (_root.guy._y - (_root.guy._height * 0.6));
angle = (_root.enemy80.D * (-Math.atan2(xDist, yDist))) / (Math.PI/180);
if ((angle <= 0) && (angle >= -180)) {
_rotation = angle;
}
} else {
stop();
}
}
Symbol 2365 MovieClip Frame 43
_root.blackscreen.play();
Symbol 2366 MovieClip Frame 1
speed = 0;
fallspeed = 0;
Symbol 2366 MovieClip Frame 2
if (!dead) {
if (s >= 1) {
gotoAndPlay (1);
} else {
if (Xdist <= 300) {
if ((Ydist <= 100) && (Ydist >= -100)) {
R = Math.random();
if (R <= 0.4) {
gotoAndPlay ("laser");
} else {
gotoAndPlay (1);
s = 30;
}
} else {
R = Math.random();
if (R <= 0.4) {
gotoAndPlay ("jump");
} else {
gotoAndPlay (1);
s = 30;
}
}
} else if ((Ydist <= 50) && (Ydist >= -50)) {
R = Math.random();
if (R >= 0.4) {
gotoAndPlay ("run");
s = 30;
} else {
gotoAndPlay ("laser");
}
} else {
gotoAndPlay (1);
s = 30;
}
if ((D == 1) && (_root.guy._x >= _x)) {
gotoAndPlay ("turn");
}
if ((D == -1) && (_root.guy._x <= _x)) {
gotoAndPlay ("turn");
}
}
} else {
gotoAndPlay ("dead");
}
Symbol 2366 MovieClip Frame 3
speed = 4;
Symbol 2366 MovieClip Frame 4
if (!dead) {
if (s >= 1) {
gotoAndPlay ("run");
} else if ((D == 1) && (_root.guy._x >= _x)) {
gotoAndPlay ("turn");
} else if ((D == -1) && (_root.guy._x <= _x)) {
gotoAndPlay ("turn");
} else if (Xdist <= 300) {
gotoAndPlay (1);
s = 30;
} else if ((Ydist <= 100) && (Ydist >= -100)) {
R = Math.random();
if (R <= 0.4) {
gotoAndPlay ("laser");
} else {
gotoAndPlay ("run");
s = 30;
}
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay ("dead");
}
Symbol 2366 MovieClip Frame 5
speed = 0;
Symbol 2366 MovieClip Frame 6
if (!dead) {
if (this.mc._currentframe <= 7) {
gotoAndPlay ("turn");
} else {
_xscale = (_xscale * -1);
gotoAndPlay (1);
s = 30;
}
} else {
gotoAndPlay ("dead");
}
Symbol 2366 MovieClip Frame 7
speed = 0;
Symbol 2366 MovieClip Frame 8
if (!dead) {
if (this.mc._currentframe <= 91) {
gotoAndPlay ("laser");
} else {
gotoAndPlay (1);
s = 30;
}
} else {
gotoAndPlay ("dead");
}
Symbol 2366 MovieClip Frame 9
if (!_root.PAUSE) {
if (mc._currentframe >= 4) {
_y = (_y + fallspeed);
fallspeed++;
}
}
Symbol 2366 MovieClip Frame 10
if (fallspeed <= 5) {
gotoAndPlay ("jump");
} else {
gotoAndPlay ("bombdrop");
s = 100;
}
Symbol 2366 MovieClip Frame 11
if (_x >= (_root.guy._x + 10)) {
speed = 6;
} else if (_x <= (_root.guy._x - 10)) {
speed = -6;
} else {
speed = 0;
}
_xscale = 100;
Symbol 2366 MovieClip Frame 12
if (s >= 1) {
gotoAndPlay ("bombdrop");
} else {
gotoAndPlay ("drop");
fallspeed = 3;
}
Symbol 2366 MovieClip Frame 13
if (!_root.PAUSE) {
_y = (_y + fallspeed);
fallspeed++;
}
speed = 0;
Symbol 2366 MovieClip Frame 14
if (_y >= Y) {
gotoAndPlay (1);
_y = Y;
s = 10;
} else {
gotoAndPlay ("drop");
}
Symbol 2366 MovieClip Frame 16
stop();
Instance of Symbol 367 MovieClip "P" in Symbol 2418 MovieClip Frame 1
onClipEvent (load) {
fallspeed = 3 - (Math.random() * 4);
speed = 4 + (Math.random() * 2);
D = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != "P") {
fallspeed++;
speed = speed + 0.1;
_x = (_x - speed);
_y = (_y + fallspeed);
if (_root.bg.step.hitTest((_x + _parent._x) + _root.bg._x, (_y + _parent._y) + _root.bg._y, true)) {
fallspeed = -20 + (_xscale / 3);
D = true;
}
if (D) {
_xscale = (_xscale-1);
_yscale = (_yscale-1);
}
if (_xscale <= 0) {
this.removeMovieClip();
}
}
}
}
Instance of Symbol 2418 MovieClip in Symbol 2419 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
i++;
duplicateMovieClip (P, "P" + i, i);
this["P" + i]._x = 0;
this["P" + i]._y = 0;
this["P" + i]._xscale = (P._xscale + 10) - (Math.random() * 20);
this["P" + i]._yscale = this["P" + i]._xscale;
if (i >= 50) {
i = 0;
}
}
}
Instance of Symbol 41 MovieClip in Symbol 2421 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2421 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 5)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2421 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 10)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Instance of Symbol 41 MovieClip in Symbol 2421 MovieClip Frame 1
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y <= ((_y + _parent._y) + 12)) {
_xscale = X;
} else {
_xscale = 0;
}
}
Symbol 2448 MovieClip Frame 19
if (_y >= 340) {
gotoAndPlay (21);
}
Symbol 2448 MovieClip Frame 20
if (_y <= 339) {
gotoAndPlay (18);
}
Symbol 2448 MovieClip Frame 43
_root.enemycount++;
if (_root.enemycount >= 79) {
_root.enemycount = 60;
}
duplicateMovieClip (_root.rifleman, "rifleman" + _root.enemycount, _root.enemycount);
_root["rifleman" + _root.enemycount]._x = _x;
_root["rifleman" + _root.enemycount]._y = _y;
this.swapDepths(999);
this.removeMovieClip();
Symbol 2460 MovieClip Frame 1
if (!_root.PAUSE) {
if (Key.isDown(37)) {
gotoAndPlay ("run");
}
if (Key.isDown(39)) {
gotoAndPlay ("run2");
}
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
if (Key.isDown(40)) {
gotoAndPlay ("duck");
}
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
gotoAndPlay ("grenade");
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Instance of Symbol 1281 MovieClip "mc" in Symbol 2460 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
gotoAndPlay ("UP");
}
if (Key.isDown(65) && (reload <= 0)) {
if (!_parent.Adown) {
gotoAndPlay ("hump");
}
}
}
Symbol 2460 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
}
Symbol 2460 MovieClip Frame 3
if (!_root.PAUSE) {
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
if (Key.isDown(40)) {
gotoAndPlay ("duck");
}
speed = -8;
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Symbol 2460 MovieClip Frame 4
if (!_root.PAUSE) {
if (!dead) {
if (Key.isDown(37)) {
gotoAndPlay ("run");
} else {
gotoAndPlay (1);
}
}
} else {
gotoAndPlay ("run");
}
Symbol 2460 MovieClip Frame 5
if (!_root.PAUSE) {
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
if (Key.isDown(40)) {
gotoAndPlay ("duck");
}
speed = 8;
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Symbol 2460 MovieClip Frame 6
if (!_root.PAUSE) {
if (!dead) {
if (Key.isDown(39)) {
gotoAndPlay ("run2");
} else {
gotoAndPlay (1);
}
}
} else {
gotoAndPlay ("run2");
}
Symbol 2460 MovieClip Frame 7
if (!_root.PAUSE) {
if (Key.isDown(40)) {
mc.gun._rotation = 90;
mc.gun._x = 6;
mc.gun._y = -65;
} else if (Key.isDown(38)) {
mc.gun._rotation = -90;
mc.gun._x = 2.5;
mc.gun._y = -103;
} else {
mc.gun._rotation = 0;
mc.gun._x = 23;
mc.gun._y = -85;
}
if (Key.isDown(39)) {
speed = 8;
} else if (Key.isDown(37)) {
speed = -8;
} else {
speed = 0;
}
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Symbol 2460 MovieClip Frame 8
if (!dead) {
if (!_root.ground.hitTest(_x, _y + 5, true)) {
gotoAndPlay ("jump");
} else {
gotoAndPlay (1);
}
}
Symbol 2460 MovieClip Frame 9
if (!_root.PAUSE) {
if (Key.isDown(83) || (Key.isDown(38))) {
_y = (_y - 10);
fallspeed = Jheight;
gotoAndPlay ("jump");
}
speed = 0;
if (Key.isDown(32) && (!SPACEdown)) {
grenades--;
SPACEdown = true;
duplicateMovieClip (_root.smokepuff, "smokepuff300", 300);
_root.smokepuff300._x = _x + ((_xscale / X) * 20);
_root.smokepuff300._xscale = (_xscale / X) * 100;
_root.smokepuff300._y = _y - gunheight;
_root.shotcount++;
if (_root.shotcount >= 30) {
_root.shotcount = 0;
}
duplicateMovieClip (_root["guy grenade"], "guy grenade" + _root.shotcount, _root.shotcount);
_root["guy grenade" + _root.shotcount]._x = _x + ((_xscale / X) * 20);
_root["guy grenade" + _root.shotcount].X = _xscale / X;
_root["guy grenade" + _root.shotcount]._y = _y - gunheight;
}
}
Instance of Symbol 1319 MovieClip in Symbol 2460 MovieClip Frame 9
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
gotoAndPlay ("crawl");
_parent.speed = -3;
}
if (Key.isDown(39)) {
gotoAndPlay ("crawl");
_parent.speed = 3;
}
}
Symbol 2460 MovieClip Frame 10
if (!_root.PAUSE) {
if (!dead) {
if (Key.isDown(40)) {
gotoAndPlay ("duck");
} else {
gotoAndPlay (1);
}
}
} else {
gotoAndPlay ("duck");
}
Symbol 2460 MovieClip Frame 12
if (dead) {
gotoAndPlay ("dead");
} else {
gotoAndPlay (1);
}
Symbol 2460 MovieClip Frame 13
speed = 0;
Symbol 2460 MovieClip Frame 14
if (!_root.PAUSE) {
if (!dead) {
if (mc._currentframe >= 10) {
gotoAndPlay (1);
} else {
gotoAndPlay ("grenade");
}
}
} else {
gotoAndPlay ("grenade");
}
Symbol 2460 MovieClip Frame 16
if (dead) {
gotoAndPlay ("smashdeath");
} else {
gotoAndPlay (1);
}
Symbol 2471 MovieClip Frame 2
if (!this.hitTest(_root.guy._x, _root.guy._y, true)) {
gotoAndPlay (1);
} else if (_root.guy.invul) {
gotoAndPlay (1);
}
Symbol 2471 MovieClip Frame 8
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy._y = _root.guy._y - 10;
_root.guy.fallspeed = -22;
_root.guy.FFFFF = -7;
}
Symbol 2534 MovieClip Frame 17
_root.cam._y = _root.cam._y + 4;
Instance of Symbol 41 MovieClip in Symbol 2534 MovieClip Frame 17
onClipEvent (load) {
if (this.hitTest(_root.guy.body) && (_root.guy.invul == false)) {
_root.guy.dead = true;
}
}
Symbol 2534 MovieClip Frame 18
_root.cam._y = _root.cam._y - 8;
Symbol 2534 MovieClip Frame 19
_root.cam._y = _root.cam._y + 7;
Symbol 2534 MovieClip Frame 20
_root.cam._y = _root.cam._y - 6;
Symbol 2534 MovieClip Frame 21
_root.cam._y = _root.cam._y + 5;
Symbol 2534 MovieClip Frame 22
_root.cam._y = _root.cam._y - 4;
Symbol 2534 MovieClip Frame 23
_root.cam._y = _root.cam._y + 3;
Symbol 2534 MovieClip Frame 24
_root.cam._y = _root.cam._y - 2;
Symbol 2534 MovieClip Frame 25
_root.cam._y = _root.cam._y + 1;
Symbol 2643 MovieClip Frame 30
_root.cam._y = _root.cam._y - 3;
Symbol 2643 MovieClip Frame 31
_root.cam._y = _root.cam._y + 6;
Symbol 2643 MovieClip Frame 32
_root.cam._y = _root.cam._y - 5;
Symbol 2643 MovieClip Frame 33
_root.cam._y = _root.cam._y + 4;
Symbol 2643 MovieClip Frame 34
_root.cam._y = _root.cam._y - 3;
Symbol 2643 MovieClip Frame 35
_root.cam._y = _root.cam._y + 1;
Symbol 2643 MovieClip Frame 50
_root.cam._y = _root.cam._y - 3;
Symbol 2643 MovieClip Frame 51
_root.cam._y = _root.cam._y + 6;
Symbol 2643 MovieClip Frame 52
_root.cam._y = _root.cam._y - 5;
Symbol 2643 MovieClip Frame 53
_root.cam._y = _root.cam._y + 4;
Symbol 2643 MovieClip Frame 54
_root.cam._y = _root.cam._y - 3;
Symbol 2643 MovieClip Frame 55
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 56
_root.cam._y = _root.cam._y - 2;
Instance of Symbol 41 MovieClip in Symbol 2643 MovieClip Frame 56
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy._x, _root.guy._y - (_root.guy._height / 2), true)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
}
}
i = 60;
while (i <= 79) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i].removeMovieClip();
}
i++;
}
}
Symbol 2643 MovieClip Frame 57
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 58
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 59
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 60
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 61
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 62
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 63
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 64
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 65
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 66
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 67
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 68
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 69
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 70
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 71
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 72
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 73
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 74
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 75
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 76
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 77
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 78
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 79
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 80
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 81
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 82
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 83
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 84
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 85
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 86
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 87
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 88
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 89
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 90
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 91
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 92
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 93
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 94
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 95
_root.cam._y = _root.cam._y + 2;
Symbol 2643 MovieClip Frame 96
_root.cam._y = _root.cam._y - 2;
Symbol 2643 MovieClip Frame 97
_root.cam._y = _root.cam._y + 2;
Symbol 2720 MovieClip Frame 52
_root.cam._x = _root.cam._x - 1;
Symbol 2720 MovieClip Frame 53
_root.cam._x = _root.cam._x - 2;
Symbol 2720 MovieClip Frame 54
_root.cam._x = _root.cam._x - 1;
Symbol 2720 MovieClip Frame 55
_root.cam._x = _root.cam._x + 2;
Instance of Symbol 41 MovieClip in Symbol 2720 MovieClip Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy._x, _root.guy._y - (_root.guy._height / 2), true)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
}
}
}
Symbol 2720 MovieClip Frame 56
_root.cam._x = _root.cam._x + 5;
Symbol 2720 MovieClip Frame 57
_root.cam._x = _root.cam._x + 3;
Symbol 2720 MovieClip Frame 58
_root.cam._x = _root.cam._x + 2;
Symbol 2720 MovieClip Frame 59
_root.cam._x = _root.cam._x + 1;
Symbol 2720 MovieClip Frame 60
_root.cam._x = _root.cam._x - 1;
Instance of Symbol 41 MovieClip in Symbol 2720 MovieClip Frame 60
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy._x, _root.guy._y - (_root.guy._height / 2), true)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
}
}
}
Symbol 2720 MovieClip Frame 61
_root.cam._x = _root.cam._x - 2;
Symbol 2720 MovieClip Frame 62
_root.cam._x = _root.cam._x - 3;
Symbol 2720 MovieClip Frame 63
_root.cam._x = _root.cam._x - 2;
Symbol 2720 MovieClip Frame 64
_root.cam._x = _root.cam._x - 1;
Symbol 2754 MovieClip Frame 56
_root.cam._x = _root.cam._x - 1;
Symbol 2754 MovieClip Frame 57
_root.cam._x = _root.cam._x - 2;
Symbol 2754 MovieClip Frame 58
_root.cam._x = _root.cam._x - 1;
Symbol 2754 MovieClip Frame 59
_root.cam._x = _root.cam._x + 2;
Symbol 2754 MovieClip Frame 60
_root.cam._x = _root.cam._x + 5;
Instance of Symbol 41 MovieClip in Symbol 2754 MovieClip Frame 60
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy._x, _root.guy._y - (_root.guy._height / 2), true)) {
if (!_root.guy.invul) {
_root.guy.dead = true;
}
}
}
Symbol 2754 MovieClip Frame 61
_root.cam._x = _root.cam._x + 3;
Symbol 2754 MovieClip Frame 62
_root.cam._x = _root.cam._x + 2;
Symbol 2754 MovieClip Frame 63
_root.cam._x = _root.cam._x + 1;
Symbol 2754 MovieClip Frame 64
_root.cam._x = _root.cam._x - 1;
Symbol 2754 MovieClip Frame 65
_root.cam._x = _root.cam._x - 2;
Symbol 2754 MovieClip Frame 66
_root.cam._x = _root.cam._x - 3;
Symbol 2754 MovieClip Frame 67
_root.cam._x = _root.cam._x - 2;
Symbol 2754 MovieClip Frame 68
_root.cam._x = _root.cam._x - 1;
Symbol 2755 MovieClip Frame 1
if ((!_root.guy.invul) && (!_root.guy.dead)) {
if (_root.guy._x <= (_root.cam._x - 250)) {
gotoAndPlay ("bite");
}
if (s <= 5) {
if (_root.guy._y <= 70) {
gotoAndPlay ("whip");
} else if (_root.guy._x >= (_root.cam._x + 200)) {
R = Math.random();
if (R >= 0.5) {
gotoAndPlay ("laser");
} else {
gotoAndPlay ("whip2");
}
}
}
}
Instance of Symbol 2480 MovieClip in Symbol 2755 MovieClip Frame 1
onClipEvent (load) {
X = _x;
R = _rotation;
}
onClipEvent (enterFrame) {
if (_parent.healthDIF >= 1) {
_x = (_x - 3);
_rotation = (_rotation - 1);
}
_x = (_x - ((_x - X) / 3));
_rotation = (_rotation - ((_rotation - R) / 3));
}
Symbol 2755 MovieClip Frame 2
if (!_root.PAUSE) {
if ((!_root.guy.invul) && (!_root.guy.dead)) {
s--;
}
}
if (s >= 1) {
gotoAndPlay (1);
} else {
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 30;
}
duplicateMovieClip (_root.blob, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = 280;
_root["enemyshot" + _root.enemyshotcount]._y = 20;
_root.enemyshotcount++;
if (_root.enemyshotcount >= 50) {
_root.enemyshotcount = 30;
}
duplicateMovieClip (_root.blob, "enemyshot" + _root.enemyshotcount, _root.enemyshotcount);
_root["enemyshot" + _root.enemyshotcount]._x = 280;
_root["enemyshot" + _root.enemyshotcount]._y = 20;
s = 40;
gotoAndPlay (1);
}
Symbol 2755 MovieClip Frame 4
if (mc._currentframe >= 30) {
gotoAndPlay (1);
s = 40;
} else {
gotoAndPlay ("bite");
}
Symbol 2755 MovieClip Frame 6
if (mc._currentframe >= 101) {
gotoAndPlay (1);
s = 40;
} else {
gotoAndPlay ("laser");
}
Symbol 2755 MovieClip Frame 8
if (mc._currentframe >= 87) {
gotoAndPlay (1);
s = 40;
} else {
gotoAndPlay ("whip");
}
Symbol 2755 MovieClip Frame 10
if (mc._currentframe >= 87) {
s = 40;
gotoAndPlay (1);
} else {
gotoAndPlay ("whip2");
}
Instance of Symbol 1867 MovieClip in Symbol 2765 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSED) {
play();
} else {
stop();
}
}
Instance of Symbol 1873 MovieClip in Symbol 2765 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
Symbol 2765 MovieClip Frame 2
if (_root.enemy80.health >= 1) {
gotoAndPlay (1);
}
Symbol 2765 MovieClip Frame 62
_root.blackscreen.play();
Symbol 2840 Button
on (release) {
_root.hcover = !_root.hcover;
}
Symbol 2843 MovieClip [page2] Frame 1
trace("page2 reset");
chkon._visible = _root.hcover;
if (_root.getPN(2) == _root.page) {
btn.enabled = true;
onEnterFrame = function () {
chkon._visible = _root.hcover;
};
} else {
btn.enabled = false;
delete onEnterFrame;
}
Symbol 2844 Button
on (release) {
getURL ("pageflip_v213_source.php");
}
Symbol 2852 MovieClip [page3] Frame 1
trace("page3 reset");
btn.enabled = _root.getPN(2) == _root.page;
Symbol 2859 MovieClip [page4] Frame 1
afa0._xscale = (afa0._yscale = _level0.afa);
afa1._xscale = (afa1._yscale = _level0.afa);
click._width = _level0.clickarea;
txt._x = 8 + _level0.clickarea;
Symbol 2867 MovieClip [page5] Frame 1
afa0._xscale = (afa0._yscale = _level0.afa);
afa1._xscale = (afa1._yscale = _level0.afa);
click._width = _level0.clickarea;
txt._x = 292 - _level0.clickarea;
Symbol 2899 Button
on (release) {
_root.gotoPage(1, true);
}
Symbol 2900 Button
on (release) {
_root.gotoPage(3, true);
}
Symbol 2901 Button
on (release) {
_root.gotoPage(4, true);
}
Symbol 2902 Button
on (release) {
_root.gotoPage(7);
}
Symbol 2903 Button
on (release) {
_root.gotoPage(9, true);
}
Symbol 2904 Button
on (release) {
_root.gotoPage(11);
}
Symbol 2906 MovieClip [page14] Frame 1
btn0.enabled = (btn1.enabled = (btn2.enabled = (btn3.enabled = (btn4.enabled = (btn5.enabled = _root.getPN(14) == _root.page)))));
trace("page14 reset");
Symbol 2928 MovieClip Frame 1
stop();
_quality = "BEST";
Stage.scaleMode = "noScale";
onEnterFrame = function () {
LB = getBytesLoaded();
TB = getBytesTotal();
PC = (LB / TB) * 100;
loaderbar.setbar(PC);
if ((TB > 4) && (PC == 100)) {
delete onEnterFrame;
gotoAndPlay ("initialize");
}
};
Symbol 2928 MovieClip Frame 2
function addPage(ename, tear) {
if (ename == "start") {
pageOrder = new Array();
pageCanTear = new Array();
page = 0;
ename = "blankpage";
}
if (ename == "end") {
maxpage = page - 1;
ename = "blankpage";
}
tear = ((tear == undefined) ? false : (tear));
pageOrder[page] = ename;
pageCanTear[page] = tear;
page++;
}
function reset() {
pages.p0.page._x = -pw;
pages.p0._x = 0;
pages.p1.page._x = -pw;
pages.p1._x = 0;
pages.flip.p2.page._x = -pw;
pages.flip.p2._x = pw;
pages.flip.p3.page._x = -pw;
pages.flip.p3._x = 0;
pages.p4.page._x = -pw;
pages.p4._x = pw;
pages.p5.page._x = -pw;
pages.p5._x = pw;
pages.pgrad._visible = (pages.mask._visible = (pages.flip._visible = false));
pages.flip.p3mask._width = (pages.pgmask._width = pw * 2);
pages.center._height = (pages.flip.p3mask._height = (pages.pgmask._height = ph));
pages.flip.fmask.page.pf._width = pw;
pages.center._width = 6;
pages.flip.fmask.page.pf._height = ph;
pages.mask._height = (pages.pgrad._height = (pages.flip.p3shadow._height = (pages.flip.flipgrad._height = 2 * Math.sqrt((ph * ph) + (pw * pw)))));
pageNumber = new Array();
i = 0;
while (i <= (maxpage + 1)) {
pageNumber[i] = i;
i++;
}
}
function hittest() {
var x = pages._xmouse;
var y = pages._ymouse;
var pmh = (ph / 2);
if ((((y <= pmh) && (y >= (-pmh))) && (x <= pw)) && (x >= (-pw))) {
var r = Math.sqrt((x * x) + (y * y));
var a = Math.asin(y / r);
var y = (Math.tan(a) * pw);
if ((y > 0) && (y > (ph / 2))) {
y = ph / 2;
}
if ((y < 0) && (y < ((-ph) / 2))) {
y = (-ph) / 2;
}
oy = (sy = y);
r0 = Math.sqrt(((sy + (ph / 2)) * (sy + (ph / 2))) + (pw * pw));
r1 = Math.sqrt((((ph / 2) - sy) * ((ph / 2) - sy)) + (pw * pw));
pageN = pages.flip.p2.page;
pageO = pages.flip.p3;
offs = -pw;
pages.flip.fmask._x = pw;
if ((x < (-(pw - clickarea))) && (page > 0)) {
pages.flip.p3._x = 0;
hflip = checkCover(page, -1);
setPages(page - 2, page - 1, page, page + 1);
ctear = pageCanTear[page - 1];
return(-1);
}
if ((x > (pw - clickarea)) && (page < maxpage)) {
pages.flip.p3._x = pw;
hflip = checkCover(page, 1);
setPages(page, page + 2, page + 1, page + 3);
ctear = pageCanTear[page + 2];
return(1);
}
} else {
return(0);
}
}
function checkCover(p, dir) {
if (hcover) {
if (dir > 0) {
if ((p == (maxpage - 2)) || (p == 0)) {
return(true);
}
} else if ((p == maxpage) || (p == 2)) {
return(true);
}
}
return(false);
}
function corner() {
var _local2 = Math.abs(pages._xmouse);
var _local1 = Math.abs(pages._ymouse);
if ((((_local2 > (pw - afa)) && (_local2 < pw)) && (_local1 > ((ph / 2) - afa))) && (_local1 < (ph / 2))) {
return(true);
}
return(false);
}
function oef() {
_global.mcnt++;
if ((!flip) && (corner())) {
preflip = true;
if (!autoflip()) {
preflip = false;
}
}
if (preflip && (!corner())) {
preflip = false;
flip = false;
flipOK = false;
flipOff = true;
}
getm();
if (aflip && (!preflip)) {
y = (ay = ay + ((sy - ay) / (gflip ? (gs) : (ps))));
acnt = acnt + aadd;
ax = ax - aadd;
if (Math.abs(acnt) > pw) {
flipOK = true;
flipOff = true;
flip = false;
aflip = false;
}
}
if (flip) {
if (tear) {
if (page_sound) {
if (page_effect != 1) {
triquisound = new Sound(this);
triquisound.attachSound("pagetear");
triquisound.start(0, 1);
page_effect = 1;
}
}
x = tox;
y = (toy = toy + teard);
teard = teard * 1.2;
if (Math.abs(teard) > 1200) {
flipOff = true;
flip = false;
}
} else {
x = (ox = ox + ((x - ox) / (gflip ? (gs) : (ps))));
y = (oy = oy + ((y - oy) / (gflip ? (gs) : (ps))));
}
calc(x, y);
}
if (flipOff) {
if (flipOK || (tear)) {
if (page_sound) {
if (page_effect != 1) {
triquisound = new Sound(this);
triquisound.attachSound("pageflip");
triquisound.start(0, 1);
page_effect = 1;
}
}
x = (ox = ox + (((-sx) - ox) / (gflip ? (gs) : (es))));
y = (oy = oy + ((sy - oy) / (gflip ? (gs) : (es))));
calc(x, y);
if (((x / (-sx)) > 0.99) || (tear)) {
flip = false;
page_effect = 0;
flipOK = (flipOff = false);
pages.pgrad._visible = (pages.flip._visible = false);
if (tear) {
removePage(((sx < 0) ? (page) : (page + 1)));
page = page + ((sx < 0) ? -2 : 0);
} else {
page = page + ((sx < 0) ? -2 : 2);
}
if (gskip) {
page = gtarget;
}
setPages(page, 0, 0, page + 1);
tear = false;
if ((gpage > 0) && (!gskip)) {
gpage--;
autoflip();
} else {
gflip = (gskip = false);
}
}
} else {
x = (ox = ox + ((sx - ox) / 3));
y = (oy = oy + ((sy - oy) / 3));
calc(x, y);
if ((x / sx) > 0.99) {
flip = false;
flipOff = false;
aflip = false;
pages.pgrad._visible = (pages.flip._visible = false);
setPages(page, 0, 0, page + 1);
}
}
}
}
function calc(x, y) {
if (hflip) {
var _local9 = ((sx < 0) ? (-x) : (x));
if (_local9 > 0) {
sp2._visible = false;
sp3._visible = true;
scalc(sp3, x);
} else {
sp3._visible = false;
sp2._visible = true;
scalc(sp2, x);
}
pages.flip.setMask(null);
pages.flip._visible = true;
pages.flip.fgrad._visible = false;
pages.flip.p2._visible = (pages.flip.p3._visible = false);
return(undefined);
}
pages.flip.fgrad._visible = true;
var _local7 = Math.sqrt(((y + (ph / 2)) * (y + (ph / 2))) + (x * x));
var _local5 = Math.sqrt((((ph / 2) - y) * ((ph / 2) - y)) + (x * x));
if (((_local7 > r0) || (_local5 > r1)) && (!tear)) {
if (y < sy) {
var _local4 = Math.asin(((ph / 2) - y) / _local5);
y = (ph / 2) - (Math.sin(_local4) * r1);
x = ((x < 0) ? ((-Math.cos(_local4)) * r1) : (Math.cos(_local4) * r1));
if (y > sy) {
if ((sx * x) > 0) {
y = sy;
x = sx;
} else {
y = sy;
x = -sx;
}
}
if (((_local5 - r1) > tlimit) && (ctear)) {
teard = -5;
tear = true;
tox = (ox = x);
toy = (oy = y);
}
} else {
var _local4 = Math.asin((y + (ph / 2)) / _local7);
y = (Math.sin(_local4) * r0) - (ph / 2);
x = ((x < 0) ? ((-Math.cos(_local4)) * r0) : (Math.cos(_local4) * r0));
if (y < sy) {
if ((sx * x) > 0) {
y = sy;
x = sx;
} else {
y = sy;
x = -sx;
}
}
if (((_local7 - r0) > tlimit) && (ctear)) {
teard = 5;
tear = true;
tox = (ox = x);
toy = (oy = y);
}
}
}
if (((sx < 0) && ((x - sx) < 10)) || ((sx > 0) && ((sx - x) < 10))) {
if (sx < 0) {
x = (-pw) + 10;
}
if (sx > 0) {
x = pw - 10;
}
}
pages.flip._visible = true;
pages.flip.p3shadow._visible = (pages.pgrad._visible = !tear);
pages.flip.p2._visible = (pages.flip.p3._visible = true);
var _local8 = x - sx;
var _local6 = y - sy;
var _local11 = _local6 / _local8;
var _local10 = (-_local6) / _local8;
cx = sx + (_local8 / 2);
cy = sy + (_local6 / 2);
var _local3 = Math.sqrt(((sx - x) * (sx - x)) + ((sy - y) * (sy - y)));
var _local4 = Math.asin((sy - y) / _local3);
if (sx < 0) {
_local4 = -_local4;
}
ad = _local4 / AM;
pageN._rotation = ad * 2;
_local3 = Math.sqrt(((sx - x) * (sx - x)) + ((sy - y) * (sy - y)));
rl = pw * 2;
if (sx > 0) {
pages.mask._xscale = 100;
nx = cx - (Math.tan(_local4) * ((ph / 2) - cy));
ny = ph / 2;
if (nx > pw) {
nx = pw;
ny = cy + (Math.tan((Math.PI/2) + _local4) * (pw - cx));
}
pageN.pf._x = -(pw - nx);
pages.flip.fgrad._xscale = ((_local3 / rl) / 2) * pw;
pages.pgrad._xscale = (-((_local3 / rl) / 2)) * pw;
pages.flip.p3shadow._xscale = ((_local3 / rl) / 2) * pw;
} else {
pages.mask._xscale = -100;
nx = cx - (Math.tan(_local4) * ((ph / 2) - cy));
ny = ph / 2;
if (nx < (-pw)) {
nx = -pw;
ny = cy + (Math.tan((Math.PI/2) + _local4) * ((-pw) - cx));
}
pageN.pf._x = -(pw - (pw + nx));
pages.flip.fgrad._xscale = (-((_local3 / rl) / 2)) * pw;
pages.pgrad._xscale = ((_local3 / rl) / 2) * pw;
pages.flip.p3shadow._xscale = (-((_local3 / rl) / 2)) * pw;
}
pages.mask._x = cx;
pages.mask._y = cy;
pages.mask._rotation = ad;
pageN.pf._y = -ny;
pageN._x = nx + offs;
pageN._y = ny;
pages.flip.fgrad._x = cx;
pages.flip.fgrad._y = cy;
pages.flip.fgrad._rotation = ad;
pages.flip.fgrad._alpha = ((_local3 > (rl - 50)) ? (100 - ((_local3 - (rl - 50)) * 2)) : 100);
pages.flip.p3shadow._x = cx;
pages.flip.p3shadow._y = cy;
pages.flip.p3shadow._rotation = ad;
pages.flip.p3shadow._alpha = ((_local3 > (rl - 50)) ? (100 - ((_local3 - (rl - 50)) * 2)) : 100);
pages.pgrad._x = cx;
pages.pgrad._y = cy;
pages.pgrad._rotation = ad + 180;
pages.pgrad._alpha = ((_local3 > (rl - 100)) ? (100 - (_local3 - (rl - 100))) : 100);
pages.flip.fmask.page._x = pageN._x;
pages.flip.fmask.page._y = pageN._y;
pages.flip.fmask.page.pf._x = pageN.pf._x;
pages.flip.fmask.page.pf._y = pageN.pf._y;
pages.flip.fmask.page._rotation = pageN._rotation;
}
function scalc(obj, x) {
if (x < (-pw)) {
x = -pw;
}
if (x > pw) {
x = pw;
}
var _local2 = Math.asin(x / pw);
var _local4 = (_local2 / AM) / 2;
var _local6 = 100;
var _local3 = 100 * Math.sin(rotz * AM);
x = x / 2;
var _local5 = (Math.cos(_local2) * (pw / 2)) * (_local3 / 100);
placeImg(obj, _local4, _local3, x, _local5);
pages.pgrad._visible = (pages.flip._visible = true);
pages.pgrad._xscale = x;
pages.pgrad._alpha = (pages.flip.p3shadow._alpha = 100);
pages.flip.p3shadow._xscale = -x;
pages.flip.p3shadow._x = 0;
pages.flip.p3shadow._y = 0;
pages.flip.p3shadow._rotation = 0;
pages.pgrad._x = 0;
pages.pgrad._y = 0;
pages.pgrad._rotation = 0;
}
function placeImg(j, rot, ss, x, y) {
var _local2 = Math.tan(rot * AM);
var _local5 = Math.SQRT2 / Math.sqrt((_local2 * _local2) + 1);
var _local4 = 100 * _local2;
var _local7 = -rot;
var _local3 = 100 * _local5;
var _local6 = 100 * _local5;
j.ph.pic._rotation = 45;
j.ph.pic._xscale = ((_local4 < 0) ? (-_local3) : (_local3));
j.ph.pic._yscale = _local6 * (100 / ss);
j.ph._rotation = _local7;
j.ph._xscale = _local4;
j._yscale = ss;
j._x = x;
j._y = y;
j._visible = true;
}
function setPages(p1, p2, p3, p4) {
p0 = p1 - 2;
p5 = p4 + 2;
if (p0 < 0) {
p0 = 0;
}
if (p5 > maxpage) {
p5 = 0;
}
if (p1 < 0) {
p1 = 0;
}
if (p2 < 0) {
p2 = 0;
}
if (p3 < 0) {
p3 = 0;
}
if (p4 < 0) {
p4 = 0;
}
trace((((((("setpages ->" + p1) + ",") + p2) + ",") + p3) + ",") + p4);
pleft = pages.p1.page.pf.ph.attachMovie(pageOrder[p1], "pic", 0);
pages.p1.page.pf.ph._y = (-ph) / 2;
pleftb = pages.p0.page.pf.ph.attachMovie(pageOrder[p0], "pic", 0);
pages.p0.page.pf.ph._y = (-ph) / 2;
if (hflip) {
var tm = pages.flip.hfliph.attachMovie("sph", "sp2", 0);
sp2 = tm.ph.pic.attachMovie(pageOrder[p2], "pic", 0);
(sp2._y = (-ph) / 2);
(sp2._x = (-pw) / 2);
sp2 = pages.flip.hfliph.sp2;
var tm = pages.flip.hfliph.attachMovie("sph", "sp3", 1);
sp3 = tm.ph.pic.attachMovie(pageOrder[p3], "pic", 0);
(sp3._y = (-ph) / 2);
(sp3._x = (-pw) / 2);
sp3 = pages.flip.hfliph.sp3;
} else {
pages.flip.hfliph.sp2.removeMovieClip();
pages.flip.hfliph.sp3.removeMovieClip();
sp2 = pages.flip.p2.page.pf.ph.attachMovie(pageOrder[p2], "pic", 0);
pages.flip.p2.page.pf.ph._y = (-ph) / 2;
sp3 = pages.flip.p3.page.pf.ph.attachMovie(pageOrder[p3], "pic", 0);
pages.flip.p3.page.pf.ph._y = (-ph) / 2;
}
pright = pages.p4.page.pf.ph.attachMovie(pageOrder[p4], "pic", 0);
pages.p4.page.pf.ph._y = (-ph) / 2;
prightb = pages.p5.page.pf.ph.attachMovie(pageOrder[p5], "pic", 0);
pages.p5.page.pf.ph._y = (-ph) / 2;
}
function resetPages() {
setPages(page, 0, 0, page + 1);
}
function autoflip() {
if ((((!aflip) && (!flip)) && (!flipOff)) && (canflip)) {
acnt = 0;
aamp = (Math.random() * (ph / 2)) - (ph / 4);
var x = (gflip ? ((gdir * pw) / 2) : (((pages._xmouse < 0) ? ((-pw) / 2) : (pw / 2))));
var y = ((Math.random() * (ph / 2)) - (ph / 4));
var pmh = (ph / 2);
var r = Math.sqrt((x * x) + (y * y));
var a = Math.asin(y / r);
var yy = (Math.tan(a) * pw);
if ((y > 0) && (y > (ph / 2))) {
y = ph / 2;
}
if ((y < 0) && (y < ((-ph) / 2))) {
y = (-ph) / 2;
}
oy = (sy = yy);
ax = ((pages._xmouse < 0) ? ((-pw) / 2) : (pw / 2));
var l = ((ph / 2) - y);
ay = y + ((((Math.random() * 2) * l) - l) / 2);
trace((("autoflip from " + ax) + ",") + ay);
offs = -pw;
var hit = 0;
if ((x < 0) && (page > 0)) {
pages.flip.p3._x = 0;
hflip = ((hcover && (gskip)) ? (gtarget == 0) : (checkCover(page, -1)));
if (!(preflip && (hflip))) {
if (gskip) {
setPages(gtarget, gtarget + 1, page, page + 1);
} else {
setPages(page - 2, page - 1, page, page + 1);
}
}
hit = -1;
}
if ((x > 0) && (page < maxpage)) {
pages.flip.p3._x = pw;
hflip = ((hcover && (gskip)) ? (gtarget == maxpage) : (checkCover(page, 1)));
if (!(preflip && (hflip))) {
if (gskip) {
setPages(page, gtarget, page + 1, gtarget + 1);
} else {
setPages(page, page + 2, page + 1, page + 3);
}
}
hit = 1;
}
if (hflip && (preflip)) {
hit = 0;
preflip = false;
return(false);
}
if (hit) {
anim._visible = false;
flip = true;
flipOff = false;
ox = (sx = hit * pw);
pages.flip.setMask(pages.mask);
aadd = hit * (pw / (gflip ? 5 : 10));
aflip = true;
pages.flip.fmask._x = pw;
if (preflip) {
oy = (sy = ((pages._ymouse < 0) ? (-(ph / 2)) : (ph / 2)));
}
r0 = Math.sqrt(((sy + (ph / 2)) * (sy + (ph / 2))) + (pw * pw));
r1 = Math.sqrt((((ph / 2) - sy) * ((ph / 2) - sy)) + (pw * pw));
pageN = pages.flip.p2.page;
pageO = pages.flip.p3;
oef();
return(true);
}
} else {
return(false);
}
}
function getm() {
if (aflip && (!preflip)) {
x = ax;
y = ay;
} else {
x = pages._xmouse;
y = pages._ymouse;
}
}
function gotoPage(i, skip) {
i = getPN(i);
gskip = ((skip == undefined) ? false : (skip));
if (i < 0) {
return(false);
}
var _local2 = int(page / 2);
var _local1 = int(i / 2);
if (((_local2 != _local1) && (canflip)) && (!gflip)) {
if (_local2 < _local1) {
gdir = 1;
gpage = (_local1 - _local2) - 1;
} else {
gdir = -1;
gpage = (_local2 - _local1) - 1;
}
gflip = true;
if (gskip) {
(gtarget = _local1 * 2);
(gpage = 0);
}
autoflip();
} else {
gskip = false;
}
}
function getPN(i) {
var _local2 = false;
j = 1;
while (j <= maxpage) {
if (i == pageNumber[j]) {
i = j;
_local2 = true;
break;
}
j++;
}
if (_local2) {
return(i);
}
return(-1);
}
function removePage(i) {
trace("remove page " + i);
i = (Math.floor((i - 1) / 2) * 2) + 1;
removedPages.push(pageNumber[i], pageNumber[i + 1]);
j = i + 2;
while (j <= (maxPage + 1)) {
pageOrder[j - 2] = pageOrder[j];
pageCanTear[j - 2] = pageCanTear[j];
pageNumber[j - 2] = pageNumber[j];
j++;
}
trace((("removed pages " + i) + ",") + (i + 1));
trace(removedPages.join(", "));
maxPage = maxPage - 2;
}
pw = 300;
ph = 400;
addPage("start");
addPage("page1");
addPage("page2");
addPage("page3");
addPage("page4");
addPage("page5");
addPage("page6");
addPage("page7");
addPage("page8");
addPage("page9");
addPage("page10");
addPage("page15");
addPage("page16");
addPage("end");
page = 0;
hcover = true;
page_sound = true;
clickarea = 64;
afa = 56;
gs = 2;
ps = 5;
es = 3;
canflip = true;
_global.mcnt = 0;
gpage = 0;
gflip = false;
gdir = 0;
gskip = false;
gtarget = 0;
aflip = false;
flip = false;
flipOff = false;
flipOK = false;
hflip = false;
rotz = -30;
preflip = false;
ctear = false;
tear = false;
teard = 0;
tlimit = 80;
removedPages = new Array();
(mpx = 0);
(mpy = 0);
sx = (sy = 0);
x = 0;
y = 0;
ax = 0;
ay = 0;
acnt = 0;
aadd = 0;
aamp = 0;
AM = (Math.PI/180);
mousecontroll = new Object();
mousecontroll.onMouseDown = function () {
if (flip && (!aflip)) {
flipOK = false;
if ((sx < 0) && (pages._xmouse > 0)) {
flipOK = true;
}
if ((sx > 0) && (pages._xmouse < 0)) {
flipOK = true;
}
flipOff = true;
flip = false;
} else if (((flipOff || (aflip)) || (!canflip)) && (!preflip)) {
trace("donothing");
} else {
var _local5 = ox;
var _local4 = oy;
var _local3 = sx;
var _local2 = sy;
var _local1 = hittest();
if (_local1) {
anim._visible = false;
flip = true;
flipOff = false;
tear = false;
ox = (sx = _local1 * pw);
if (preflip) {
aflip = (preflip = false);
(ox = _local5);
(oy = _local4);
(sx = _local3);
(sy = _local2);
}
pages.flip.setMask(pages.mask);
(mpx = pages._xmouse);
(mpy = pages._ymouse);
}
}
};
mousecontroll.onMouseUp = function () {
if (flip && (!tear)) {
if ((((Math.abs(pages._xmouse) > (pw - afa)) && (Math.abs(pages._ymouse) > ((ph / 2) - afa))) && (Math.abs(pages._xmouse - mpx) < afa)) || (preflip)) {
flip = false;
preflip = false;
autoflip();
} else if (!preflip) {
preflip = false;
flipOK = false;
if ((sx < 0) && (pages._xmouse > 0)) {
flipOK = true;
}
if ((sx > 0) && (pages._xmouse < 0)) {
flipOK = true;
}
flipOff = true;
flip = false;
}
}
};
Symbol 2928 MovieClip Frame 3
function removeML() {
Mouse.removeListener(mousecontroll);
}
stop();
Mouse.addListener(mousecontroll);
onEnterFrame = oef;
resetPages();
reset();
Symbol 2931 Button
on (release) {
gotoAndPlay ("BEGINNING");
}