Frame 1
function noClick() {
}
function getMySite() {
getURL ("http://artjin.freehostia.com/portfolio", "_blank");
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("Michael Chen \u00A9 2008", noClick);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem("Killer Affairs: The Vindictive Vendetta", getMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 60 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
xin_motion_val = "Down";
xin_alphatype_val = "Yes";
xout_motion_val = "Down";
xout_alphatype_val = "Yes";
perc_req_val = 100;
show_perc_val = "Yes";
slow_factor_val = 1;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
//component parameters
onClipEvent (initialize) {
xin_motion_val = "Down";
xin_alphatype_val = "Yes";
xout_motion_val = "Down";
xout_alphatype_val = "Yes";
perc_req_val = 100;
show_perc_val = "Yes";
slow_factor_val = 1;
init_action_val = "_root.stop();";
play_action_val = "_root.play();";
}
Frame 3
function nielsen(movieClip) {
scCI = "us-ugo";
scCG = "ugoplayer_flashgames";
scSI = escape(movieClip);
loadMovieNum ((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + scCI) + "&cg=") + scCG) + "&si=") + scSI) + "&rnd=") + Math.ceil(Math.random() * 100000000), 100);
}
nielsen("game_intro");
Frame 168
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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__("d2a0d883", this, 10301, true);
function goboss() {
gotoAndPlay (358);
_root.score = 0;
_root.ammo = 0;
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
function golevel2() {
gotoAndPlay (170);
_root.score = 0;
_root.ammo = 0;
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
function golevel3() {
gotoAndPlay (264);
_root.score = 0;
_root.ammo = 0;
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
stop();
_root.menuactive = true;
Instance of Symbol 148 MovieClip in Frame 168
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
Frame 169
stop();
_root.mek = "no";
_root.guntype = "knife";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamer = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.dead = false;
Instance of Symbol 278 MovieClip "sb" in Frame 169
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.mek == "no") {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
} else {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
}
}
Instance of Symbol 288 MovieClip "speech" in Frame 169
onClipEvent (enterFrame) {
if (_root.rpg == "yes") {
if (Key.isDown(54)) {
_root.guntype = "RPG";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.m4a1 == "yes") {
if (Key.isDown(53)) {
_root.guntype = "M4A1";
}
}
if (_root.flamer == "yes") {
if (Key.isDown(52)) {
_root.guntype = "flamer";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.shotgun == "yes") {
if (Key.isDown(51)) {
_root.guntype = "shotgun";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.pistol == "yes") {
if (Key.isDown(50)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.g.firearm.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (Key.isDown(49)) {
_root.guntype = "knife";
_root.knife.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip "bullets" in Frame 169
onClipEvent (enterFrame) {
xdis = _x - _root.crosshair._x;
ydis = _y - _root.crosshair._y;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
_root.total = totaldist;
if (_currentframe == 1) {
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
if (_root.guntype == "pistol") {
if (totaldist <= 0.5) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "shotgun") {
if (totaldist <= 0.5) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "flamer") {
if (totaldist <= 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else if (totaldist < 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
wtype.ex.play();
}
}
}
Instance of Symbol 319 MovieClip "mbullets" in Frame 169
onClipEvent (enterFrame) {
if (_root.guntype == "M4A1") {
if (_currentframe == 1) {
_x = _root.gun3._x;
_y = _root.gun3._y;
_rotation = _root.gun3._rotation;
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndStop (169);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 366 MovieClip "player" in Frame 169
onClipEvent (load) {
xscale = _xscale;
_root.movespeed = 5;
}
onClipEvent (enterFrame) {
if (_root.ground.mover._currentframe > 20) {
if (_root.ground.mover.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + 7.4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dead == true) {
_root.player.gotoAndStop("dead");
this.swapDepths(-16000);
_root.gun3._visible = false;
_root.gun._visible = false;
_root.knife._visible = false;
_root.player.bloodspurt.gotoAndStop(1);
_root.bloodspurt.gotoAndStop(1);
_root.keyright = null;
_root.keyleft = null;
_root.keyspace = null;
_root.keydown = null;
} else if (_root.dead == false) {
_root.keyright = Key.isDown(68);
_root.keydown = Key.isDown(83);
_root.keyspace = Key.isDown(87);
_root.keyleft = Key.isDown(65);
}
if (_root.ground.gay.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.items.kill.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.keyright) {
_root.player.walk.play();
}
if (_root.keyleft) {
_root.player.walk.play();
}
if (_root.keydown) {
_root.player.walk.gotoAndStop(18);
hori = 0;
} else if (((!_root.keyleft) && (!_root.keyright)) && (!_root.keydown)) {
_root.player.walk.gotoAndStop(1);
}
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (_root.keyleft) {
if (!_root.keydown) {
hori = -_root.movespeed;
}
} else if (_root.keyright) {
if (!_root.keydown) {
hori = _root.movespeed;
}
} else if (hori > 0) {
hori = 0;
} else if (hori < 0) {
hori = 0;
}
if (!_root.hitground) {
if (!_root.ground.hitTest(_x, _y + 4, true)) {
_root.player.walk.gotoAndPlay(17);
}
vert = vert + 1;
if (vert > 0) {
if (_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y + 2);
} else if (_root.ground.hitTest(_x, _y + 4, true)) {
_y = (_y + 4);
} else if (_root.ground.hitTest(_x, _y + 6, true)) {
_y = (_y + 6);
} else if (_root.ground.hitTest(_x, _y + 8, true)) {
_y = (_y + 8);
} else if (_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + 10);
}
}
} else {
if (_root.keyspace) {
vert = -10;
} else {
vert = 0;
}
if (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y - 10);
} else if (_root.ground.hitTest(_x, _y - 8, true)) {
_y = (_y - 8);
} else if (_root.ground.hitTest(_x, _y - 6, true)) {
_y = (_y - 6);
} else if (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y - 4);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y - 2);
}
}
_y = (_y + vert);
_x = (_x + hori);
if (_root.ground.hitTest(_x + 4, _y, true)) {
hori = hori - 4;
}
if (_root.ground.hitTest(_x - 4, _y, true)) {
hori = hori + 4;
}
if (_root.ground.hitTest(_x + hori, _y - 20, true)) {
if (hori > 0) {
hori = 0;
_x = (_x - 5);
} else {
hori = 0;
_x = (_x + 5);
}
}
if (_root.dead == false) {
if (_x > _root.crosshair._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (_x > 350) {
diff = 350 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.enemy57._x = _root.enemy57._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
} else if (_x < 200) {
diff = 200 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
}
if (_y > 250) {
diff = 250 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
} else if (_y < 100) {
diff = 100 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
}
}
Instance of Symbol 383 MovieClip "gun3" in Frame 169
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "RPG") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "shotgun") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "flamer") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "knife") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "M4A1") {
this._visible = "100";
_root.newx = _root.crosshair3._y;
_root.newy = _root.crosshair3._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_y = (_root.player._y - 30);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_currentframe == 2) {
_root.mbullets.play();
_root.ammo = _root.ammo - 1;
_root.m4count.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 403 MovieClip "knife" in Frame 169
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = _root.player._y;
if (_root.mek == "yes") {
this.gotoAndStop(14);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(14);
} else if (_root.guntype == "pistol") {
this.gotoAndStop(14);
} else if (_root.guntype == "shotgun") {
this.gotoAndStop(14);
} else if (_root.guntype == "flamer") {
this.gotoAndStop(14);
} else if (_root.guntype == "RPG") {
this.gotoAndStop(14);
}
if (_root.mek == "no") {
if (_root.guntype == "knife") {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
}
Instance of Symbol 407 MovieClip "aim" in Frame 169
onClipEvent (enterFrame) {
getProperty(_root.player, _x);
getProperty(this, _x);
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 5;
} else if (this._x <= _root.player._x) {
this._x = this._x + 5;
} else if (this._x == _root.player._x) {
this._x = null;
}
}
Instance of Symbol 495 MovieClip "gun" in Frame 169
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
_root.gun.g.muzz.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
_root.gun.g.muzz.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.gun.g.firearm.gotoAndStop(1);
_root.gun.g.muzz.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "M4A1") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "knife") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "flamer") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.guntype == "RPG") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
} else {
_yscale = yscale;
}
}
if (_root.guntype == "shotgun") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.guntype == "pistol") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 500 MovieClip "ebullet" in Frame 169
onClipEvent (enterFrame) {
xdis = _x - _root.player._x;
ydis = (_y - _root.player._y) + 30;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
if (_currentframe == 1) {
_x = _root.egun._x;
_visible = 100;
_y = _root.egun._y;
_rotation = _root.egun._rotation;
if (totaldist < 50) {
xmove = (-(_x - _root.player._x)) / 5;
ymove = (-((_y - _root.player._y) + 30)) / 5;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.player._x)) / 7;
ymove = (-((_y - _root.player._y) + 30)) / 7;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.player._x)) / 9;
ymove = (-((_y - _root.player._y) + 30)) / 9;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.player._x)) / 12;
ymove = (-((_y - _root.player._y) + 30)) / 12;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.player._x)) / 15;
ymove = (-((_y - _root.player._y) + 30)) / 15;
} else {
xmove = (-(_x - _root.player._x)) / 20;
ymove = (-((_y - _root.player._y) + 30)) / 20;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
this.gotoAndStop("die");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.gotoAndStop("die");
xmove = null;
ymove = null;
_root.player.gotoAndPlay("hit");
}
}
Instance of Symbol 229 MovieClip "bloodspurt" in Frame 169
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = (_root.player._y - 20);
if (_root.player.bloodspurt._currentframe != 1) {
play();
}
if (_root.player._xscale == 100) {
_xscale = 100;
} else {
_xscale = -100;
}
}
Instance of Symbol 505 MovieClip "crosshair" in Frame 169
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(2);
this._visible = 0;
} else {
this.gotoAndStop(1);
this._visible = 100;
}
if (_root.mek == "no") {
this.gotoAndStop(1);
this._visible = 100;
}
}
onClipEvent (mouseDown) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
}
Instance of Symbol 506 MovieClip "crosshair2" in Frame 169
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
this.gotoAndStop(2);
}
onClipEvent (mouseDown) {
if (_root.ammo > 0) {
_root.gun2.play();
}
if (_root.ammo == 0) {
_root.gun2.shotsound.empty.play();
}
}
Instance of Symbol 506 MovieClip "crosshair3" in Frame 169
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
}
onClipEvent (mouseUp) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
}
Instance of Symbol 520 MovieClip "ammunition" in Frame 169
onClipEvent (enterFrame) {
if ((Key.isDown(82) && (!(_root.guntype === "knife"))) && (!(_root.guntype === "M4A1"))) {
this.gotoAndStop(1);
_root.gun.g.gotoAndPlay(16);
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
}
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
}
if (_root.guntype == "RPG") {
_root.gun.g.firearm.gotoAndStop(4);
}
}
}
Instance of Symbol 556 MovieClip "lode" in Frame 169
onClipEvent (enterFrame) {
if (_root.guntype == "knife") {
_root.ammunition._visible = 0;
} else {
_root.ammunition._visible = 100;
if (Key.isDown(82)) {
_root.ammo = 7;
}
}
}
Instance of Symbol 589 MovieClip in Frame 169
onClipEvent (enterFrame) {
if (_root.pistol == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 593 MovieClip in Frame 169
onClipEvent (enterFrame) {
if (_root.flamer == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 597 MovieClip in Frame 169
onClipEvent (enterFrame) {
if (_root.shotgun == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 601 MovieClip in Frame 169
onClipEvent (enterFrame) {
if (_root.m4a1 == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 610 MovieClip "black" in Frame 169
onClipEvent (enterFrame) {
if (_currentframe == 25) {
tellTarget ("_root") {
play();
};
}
}
Frame 170
_root.ebullet.gotoAndStop(1);
Frame 263
stop();
_root.mek = "no";
_root.guntype = "knife";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamer = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.dead = false;
if (_root.checkpoint1 == true) {
_root.items._x = -1005.1;
_root.items._y = -731.1;
_root.ground._x = -1435.1;
_root.ground._y = -961.8;
_root.enemy1._x = -858.1;
_root.enemy1._y = -830.3;
_root.foreground._x = 860.9;
_root.foreground._y = -958.8;
}
Instance of Symbol 702 MovieClip "ground" in Frame 263
onClipEvent (enterFrame) {
if (_root.ebullet.shot.hitTest(_x, _y, true)) {
_root.ebullet._visible == 100;
}
}
Instance of Symbol 714 MovieClip "enemy1" in Frame 263
onClipEvent (enterFrame) {
if (death._currentframe == 16) {
_root.egun.gotoAndStop("die");
_root.ebullet.gotoAndStop("die");
}
if (death._currentframe != 16) {
if (_currentframe == 2) {
_root.egun.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe == 16) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 16) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 16) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
}
Instance of Symbol 716 MovieClip "egun" in Frame 263
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
if ((_currentframe == 2) && (_root.black.hitTest(_x, _y, true))) {
_root.ebullet.play();
}
_root.newx = _root.player._y;
_root.newy = _root.player._x;
initx = _x;
inity = _y;
_y = (_root.enemy1._y - 5);
_x = (_root.enemy1._x - 7);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
Instance of Symbol 278 MovieClip "sb" in Frame 263
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.mek == "no") {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
} else {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
}
}
Instance of Symbol 288 MovieClip "speech" in Frame 263
onClipEvent (enterFrame) {
if (_root.rpg == "yes") {
if (Key.isDown(54)) {
_root.guntype = "RPG";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.m4a1 == "yes") {
if (Key.isDown(53)) {
_root.guntype = "M4A1";
}
}
if (_root.flamer == "yes") {
if (Key.isDown(52)) {
_root.guntype = "flamer";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.shotgun == "yes") {
if (Key.isDown(51)) {
_root.guntype = "shotgun";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.pistol == "yes") {
if (Key.isDown(50)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.g.firearm.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (Key.isDown(49)) {
_root.guntype = "knife";
_root.knife.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip "bullets" in Frame 263
onClipEvent (enterFrame) {
xdis = _x - _root.crosshair._x;
ydis = _y - _root.crosshair._y;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
_root.total = totaldist;
if (_currentframe == 1) {
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
if (_root.guntype == "pistol") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 50;
ymove = 0;
} else {
xmove = -50;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 0.5)) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "shotgun") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 50;
ymove = 0;
} else {
xmove = -50;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 0.5)) {
xmove = (-(_x - _root.crosshair._x)) * 100;
ymove = (-(_y - _root.crosshair._y)) * 100;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 45;
ymove = (-(_y - _root.crosshair._y)) * 45;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 20;
ymove = (-(_y - _root.crosshair._y)) * 20;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 14;
ymove = (-(_y - _root.crosshair._y)) * 14;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 9;
ymove = (-(_y - _root.crosshair._y)) * 9;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 7;
ymove = (-(_y - _root.crosshair._y)) * 7;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "flamer") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 9;
ymove = 0;
} else {
xmove = -9;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 50)) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else if (totaldist < 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
wtype.ex.play();
}
}
}
Instance of Symbol 319 MovieClip "mbullets" in Frame 263
onClipEvent (enterFrame) {
if (_root.player._currentframe == 16) {
gotoAndStop (263);
}
if (_root.guntype == "M4A1") {
if (_currentframe == 1) {
_x = _root.gun3._x;
_y = _root.gun3._y;
_rotation = _root.gun3._rotation;
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndStop (263);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 366 MovieClip "player" in Frame 263
onClipEvent (load) {
xscale = _xscale;
_root.movespeed = 5;
}
onClipEvent (enterFrame) {
if (_root.ground.mover._currentframe > 20) {
if (_root.ground.mover.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + 7.4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dead == true) {
_root.player.gotoAndStop("dead");
this.swapDepths(-16000);
_root.gun3._visible = false;
_root.gun._visible = false;
_root.knife._visible = false;
_root.player.bloodspurt.gotoAndStop(1);
_root.bloodspurt.gotoAndStop(1);
_root.keyright = null;
_root.keyleft = null;
_root.keyspace = null;
_root.keydown = null;
} else if (_root.dead == false) {
_root.keyright = Key.isDown(68);
_root.keydown = Key.isDown(83);
_root.keyspace = Key.isDown(87);
_root.keyleft = Key.isDown(65);
}
if (_root.ground.gay.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.items.kill.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.keyright) {
_root.player.walk.play();
}
if (_root.keyleft) {
_root.player.walk.play();
}
if (_root.keydown) {
_root.player.walk.gotoAndStop(18);
hori = 0;
} else if (((!_root.keyleft) && (!_root.keyright)) && (!_root.keydown)) {
_root.player.walk.gotoAndStop(1);
}
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (_root.keyleft) {
if (!_root.keydown) {
hori = -_root.movespeed;
}
} else if (_root.keyright) {
if (!_root.keydown) {
hori = _root.movespeed;
}
} else if (hori > 0) {
hori = 0;
} else if (hori < 0) {
hori = 0;
}
if (!_root.hitground) {
if (!_root.ground.hitTest(_x, _y + 4, true)) {
_root.player.walk.gotoAndPlay(17);
}
vert = vert + 1;
if (vert > 0) {
if (_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y + 2);
} else if (_root.ground.hitTest(_x, _y + 4, true)) {
_y = (_y + 4);
} else if (_root.ground.hitTest(_x, _y + 6, true)) {
_y = (_y + 6);
} else if (_root.ground.hitTest(_x, _y + 8, true)) {
_y = (_y + 8);
} else if (_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + 10);
}
}
} else {
if (_root.keyspace) {
vert = -10;
} else {
vert = 0;
}
if (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y - 10);
} else if (_root.ground.hitTest(_x, _y - 8, true)) {
_y = (_y - 8);
} else if (_root.ground.hitTest(_x, _y - 6, true)) {
_y = (_y - 6);
} else if (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y - 4);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y - 2);
}
}
_y = (_y + vert);
_x = (_x + hori);
if (_root.ground.hitTest(_x + 4, _y, true)) {
hori = hori - 4;
}
if (_root.ground.hitTest(_x - 4, _y, true)) {
hori = hori + 4;
}
if (_root.ground.hitTest(_x + hori, _y - 20, true)) {
if (hori > 0) {
hori = 0;
_x = (_x - 5);
} else {
hori = 0;
_x = (_x + 5);
}
}
if (_root.dead == false) {
if (_x > _root.crosshair._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (_x > 350) {
diff = 350 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.enemy57._x = _root.enemy57._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
} else if (_x < 200) {
diff = 200 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
}
if (_y > 250) {
diff = 250 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
} else if (_y < 100) {
diff = 100 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
}
}
Instance of Symbol 383 MovieClip "gun3" in Frame 263
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "RPG") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "shotgun") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "flamer") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "knife") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "M4A1") {
this._visible = "100";
_root.newx = _root.crosshair3._y;
_root.newy = _root.crosshair3._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_y = (_root.player._y - 30);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_currentframe == 2) {
_root.mbullets.play();
_root.ammo = _root.ammo - 1;
_root.m4count.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 403 MovieClip "knife" in Frame 263
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(14);
} else if (_root.guntype == "pistol") {
this.gotoAndStop(14);
} else if (_root.guntype == "shotgun") {
this.gotoAndStop(14);
} else if (_root.guntype == "flamer") {
this.gotoAndStop(14);
} else if (_root.guntype == "RPG") {
this.gotoAndStop(14);
}
if (_root.guntype == "knife") {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
}
Instance of Symbol 407 MovieClip "aim" in Frame 263
onClipEvent (enterFrame) {
getProperty(_root.player, _x);
getProperty(this, _x);
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 5;
} else if (this._x <= _root.player._x) {
this._x = this._x + 5;
} else if (this._x == _root.player._x) {
this._x = null;
}
}
Instance of Symbol 495 MovieClip "gun" in Frame 263
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
_root.gun.g.muzz.gotoAndStop(2);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
_root.gun.g.muzz.gotoAndStop(3);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.gun.g.firearm.gotoAndStop(1);
_root.gun.g.muzz.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "M4A1") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "flamer") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
if (_root.guntype == "RPG") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
} else {
_yscale = 100;
}
}
if (_root.guntype == "shotgun") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
if (_root.guntype == "knife") {
this._visible = false;
}
if (_root.guntype == "pistol") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
}
Instance of Symbol 500 MovieClip "ebullet" in Frame 263
onClipEvent (enterFrame) {
xdis = _x - _root.player._x;
ydis = (_y - _root.player._y) + 30;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
if (_currentframe == 1) {
_x = _root.egun._x;
_visible = 100;
_y = _root.egun._y;
_rotation = _root.egun._rotation;
if (totaldist < 50) {
xmove = (-(_x - _root.player._x)) / 5;
ymove = (-((_y - _root.player._y) + 30)) / 5;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.player._x)) / 7;
ymove = (-((_y - _root.player._y) + 30)) / 7;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.player._x)) / 9;
ymove = (-((_y - _root.player._y) + 30)) / 9;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.player._x)) / 12;
ymove = (-((_y - _root.player._y) + 30)) / 12;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.player._x)) / 15;
ymove = (-((_y - _root.player._y) + 30)) / 15;
} else {
xmove = (-(_x - _root.player._x)) / 20;
ymove = (-((_y - _root.player._y) + 30)) / 20;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
this.gotoAndStop("die");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.gotoAndStop("die");
xmove = null;
ymove = null;
_root.damage3.play();
}
}
Instance of Symbol 229 MovieClip "bloodspurt" in Frame 263
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = (_root.player._y - 20);
if (_root.player.bloodspurt._currentframe != 1) {
play();
}
if (_root.player._xscale == 100) {
_xscale = 100;
} else {
_xscale = -100;
}
}
Instance of Symbol 505 MovieClip "crosshair" in Frame 263
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(2);
this._visible = 0;
} else {
this.gotoAndStop(1);
this._visible = 100;
}
}
onClipEvent (mouseDown) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if (((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) && (_root.guntype != "knife")) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
}
Instance of Symbol 506 MovieClip "crosshair2" in Frame 263
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
this.gotoAndStop(2);
}
onClipEvent (mouseDown) {
if (_root.ammo > 0) {
_root.gun2.play();
}
if (_root.ammo == 0) {
_root.gun2.shotsound.empty.play();
}
}
Instance of Symbol 506 MovieClip "crosshair3" in Frame 263
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
}
onClipEvent (mouseUp) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
}
Instance of Symbol 520 MovieClip "ammunition" in Frame 263
onClipEvent (enterFrame) {
if ((Key.isDown(82) && (!(_root.guntype === "knife"))) && (!(_root.guntype === "M4A1"))) {
this.gotoAndStop(1);
_root.gun.g.gotoAndPlay(16);
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
}
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
}
if (_root.guntype == "RPG") {
_root.gun.g.firearm.gotoAndStop(4);
}
}
}
Instance of Symbol 556 MovieClip "lode" in Frame 263
onClipEvent (enterFrame) {
if (_root.guntype == "knife") {
_root.ammunition._visible = 0;
} else {
_root.ammunition._visible = 100;
if (Key.isDown(82)) {
_root.ammo = 7;
}
}
}
Instance of Symbol 589 MovieClip in Frame 263
onClipEvent (enterFrame) {
if (_root.pistol == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 593 MovieClip in Frame 263
onClipEvent (enterFrame) {
if (_root.flamer == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 597 MovieClip in Frame 263
onClipEvent (enterFrame) {
if (_root.shotgun == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 601 MovieClip in Frame 263
onClipEvent (enterFrame) {
if (_root.m4a1 == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 610 MovieClip "black" in Frame 263
onClipEvent (enterFrame) {
if (_currentframe == 25) {
tellTarget ("_root") {
play();
};
}
}
Frame 264
_root.ebullet.gotoAndStop(1);
Frame 357
stop();
_root.mek = "no";
_root.guntype = "knife";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamer = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.dead = false;
Instance of Symbol 752 MovieClip "ground" in Frame 357
onClipEvent (enterFrame) {
if (_root.ebullet.shot.hitTest(_x, _y, true)) {
_root.ebullet._visible == 100;
}
}
Instance of Symbol 760 MovieClip "enemy1" in Frame 357
onClipEvent (enterFrame) {
if (death._currentframe == 16) {
_root.egun.gotoAndStop(7);
_root.ebullet.gotoAndStop("die");
}
if (death._currentframe != 16) {
if (_currentframe == 2) {
_root.egun.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe == 16) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 16) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 16) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
}
Instance of Symbol 716 MovieClip "egun" in Frame 357
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
if ((_currentframe == 2) && (_root.black.hitTest(_x, _y, true))) {
_root.ebullet.play();
}
_root.newx = _root.player._y;
_root.newy = _root.player._x;
initx = _x;
inity = _y;
_y = (_root.enemy1._y - 15);
_x = (_root.enemy1._x - 10);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
Instance of Symbol 278 MovieClip "sb" in Frame 357
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.mek == "no") {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
} else {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
}
}
Instance of Symbol 288 MovieClip "speech" in Frame 357
onClipEvent (enterFrame) {
if (_root.rpg == "yes") {
if (Key.isDown(54)) {
_root.guntype = "RPG";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.m4a1 == "yes") {
if (Key.isDown(53)) {
_root.guntype = "M4A1";
}
}
if (_root.flamer == "yes") {
if (Key.isDown(52)) {
_root.guntype = "flamer";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.shotgun == "yes") {
if (Key.isDown(51)) {
_root.guntype = "shotgun";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.pistol == "yes") {
if (Key.isDown(50)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.g.firearm.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (Key.isDown(49)) {
_root.guntype = "knife";
_root.knife.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip "bullets" in Frame 357
onClipEvent (enterFrame) {
xdis = _x - _root.crosshair._x;
ydis = _y - _root.crosshair._y;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
_root.total = totaldist;
if (_currentframe == 1) {
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
if (_root.guntype == "pistol") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 50;
ymove = 0;
} else {
xmove = -50;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 0.5)) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "shotgun") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 50;
ymove = 0;
} else {
xmove = -50;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 0.5)) {
xmove = (-(_x - _root.crosshair._x)) * 100;
ymove = (-(_y - _root.crosshair._y)) * 100;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 45;
ymove = (-(_y - _root.crosshair._y)) * 45;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 20;
ymove = (-(_y - _root.crosshair._y)) * 20;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 14;
ymove = (-(_y - _root.crosshair._y)) * 14;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 9;
ymove = (-(_y - _root.crosshair._y)) * 9;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 7;
ymove = (-(_y - _root.crosshair._y)) * 7;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "flamer") {
if (totaldist <= 0) {
if (_root.player._xscale == 100) {
xmove = 9;
ymove = 0;
} else {
xmove = -9;
ymove = 0;
}
} else if ((totaldist > 0) && (totaldist <= 50)) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else if (totaldist < 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
wtype.ex.play();
}
}
}
Instance of Symbol 319 MovieClip "mbullets" in Frame 357
onClipEvent (enterFrame) {
if (_root.player._currentframe == 16) {
gotoAndStop (357);
}
if (_root.guntype == "M4A1") {
if (_currentframe == 1) {
_x = _root.gun3._x;
_y = _root.gun3._y;
_rotation = _root.gun3._rotation;
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndStop (357);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 366 MovieClip "player" in Frame 357
onClipEvent (load) {
xscale = _xscale;
_root.movespeed = 5;
}
onClipEvent (enterFrame) {
if (_root.ground.mover._currentframe > 20) {
if (_root.ground.mover.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + 7.4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dead == true) {
_root.player.gotoAndStop("dead");
this.swapDepths(-16000);
_root.gun3._visible = false;
_root.gun._visible = false;
_root.knife._visible = false;
_root.player.bloodspurt.gotoAndStop(1);
_root.bloodspurt.gotoAndStop(1);
_root.keyright = null;
_root.keyleft = null;
_root.keyspace = null;
_root.keydown = null;
} else if (_root.dead == false) {
_root.keyright = Key.isDown(68);
_root.keydown = Key.isDown(83);
_root.keyspace = Key.isDown(87);
_root.keyleft = Key.isDown(65);
}
if (_root.ground.gay.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.items.kill.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.keyright) {
_root.player.walk.play();
}
if (_root.keyleft) {
_root.player.walk.play();
}
if (_root.keydown) {
_root.player.walk.gotoAndStop(18);
hori = 0;
} else if (((!_root.keyleft) && (!_root.keyright)) && (!_root.keydown)) {
_root.player.walk.gotoAndStop(1);
}
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (_root.keyleft) {
if (!_root.keydown) {
hori = -_root.movespeed;
}
} else if (_root.keyright) {
if (!_root.keydown) {
hori = _root.movespeed;
}
} else if (hori > 0) {
hori = 0;
} else if (hori < 0) {
hori = 0;
}
if (!_root.hitground) {
if (!_root.ground.hitTest(_x, _y + 4, true)) {
_root.player.walk.gotoAndPlay(17);
}
vert = vert + 1;
if (vert > 0) {
if (_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y + 2);
} else if (_root.ground.hitTest(_x, _y + 4, true)) {
_y = (_y + 4);
} else if (_root.ground.hitTest(_x, _y + 6, true)) {
_y = (_y + 6);
} else if (_root.ground.hitTest(_x, _y + 8, true)) {
_y = (_y + 8);
} else if (_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + 10);
}
}
} else {
if (_root.keyspace) {
vert = -10;
} else {
vert = 0;
}
if (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y - 10);
} else if (_root.ground.hitTest(_x, _y - 8, true)) {
_y = (_y - 8);
} else if (_root.ground.hitTest(_x, _y - 6, true)) {
_y = (_y - 6);
} else if (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y - 4);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y - 2);
}
}
_y = (_y + vert);
_x = (_x + hori);
if (_root.ground.hitTest(_x + 4, _y, true)) {
hori = hori - 4;
}
if (_root.ground.hitTest(_x - 4, _y, true)) {
hori = hori + 4;
}
if (_root.ground.hitTest(_x + hori, _y - 20, true)) {
if (hori > 0) {
hori = 0;
_x = (_x - 5);
} else {
hori = 0;
_x = (_x + 5);
}
}
if (_root.dead == false) {
if (_x > _root.crosshair._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (_x > 350) {
diff = 350 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.enemy57._x = _root.enemy57._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
} else if (_x < 200) {
diff = 200 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
}
if (_y > 250) {
diff = 250 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
} else if (_y < 100) {
diff = 100 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
}
}
Instance of Symbol 383 MovieClip "gun3" in Frame 357
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "RPG") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "shotgun") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "flamer") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "knife") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "M4A1") {
this._visible = "100";
_root.newx = _root.crosshair3._y;
_root.newy = _root.crosshair3._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_y = (_root.player._y - 30);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_currentframe == 2) {
_root.mbullets.play();
_root.ammo = _root.ammo - 1;
_root.m4count.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 403 MovieClip "knife" in Frame 357
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(14);
} else if (_root.guntype == "pistol") {
this.gotoAndStop(14);
} else if (_root.guntype == "shotgun") {
this.gotoAndStop(14);
} else if (_root.guntype == "flamer") {
this.gotoAndStop(14);
} else if (_root.guntype == "RPG") {
this.gotoAndStop(14);
}
if (_root.guntype == "knife") {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
}
Instance of Symbol 407 MovieClip "aim" in Frame 357
onClipEvent (enterFrame) {
getProperty(_root.player, _x);
getProperty(this, _x);
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 5;
} else if (this._x <= _root.player._x) {
this._x = this._x + 5;
} else if (this._x == _root.player._x) {
this._x = null;
}
}
Instance of Symbol 495 MovieClip "gun" in Frame 357
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
_root.gun.g.muzz.gotoAndStop(2);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
_root.gun.g.muzz.gotoAndStop(3);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.gun.g.firearm.gotoAndStop(1);
_root.gun.g.muzz.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "M4A1") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "flamer") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
if (_root.guntype == "RPG") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
} else {
_yscale = 100;
}
}
if (_root.guntype == "shotgun") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
if (_root.guntype == "knife") {
this._visible = false;
}
if (_root.guntype == "pistol") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = -100;
} else if (_rotation < -90) {
_yscale = -100;
} else {
_yscale = 100;
}
}
}
Instance of Symbol 500 MovieClip "ebullet" in Frame 357
onClipEvent (enterFrame) {
xdis = _x - _root.player._x;
ydis = (_y - _root.player._y) + 30;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
if (_currentframe == 1) {
_x = _root.egun._x;
_visible = 100;
_y = _root.egun._y;
_rotation = _root.egun._rotation;
if (totaldist < 50) {
xmove = (-(_x - _root.player._x)) / 5;
ymove = (-((_y - _root.player._y) + 30)) / 5;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.player._x)) / 7;
ymove = (-((_y - _root.player._y) + 30)) / 7;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.player._x)) / 9;
ymove = (-((_y - _root.player._y) + 30)) / 9;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.player._x)) / 12;
ymove = (-((_y - _root.player._y) + 30)) / 12;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.player._x)) / 15;
ymove = (-((_y - _root.player._y) + 30)) / 15;
} else {
xmove = (-(_x - _root.player._x)) / 20;
ymove = (-((_y - _root.player._y) + 30)) / 20;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
this.gotoAndStop("die");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.gotoAndStop("die");
xmove = null;
ymove = null;
_root.damage3.play();
}
}
Instance of Symbol 229 MovieClip "bloodspurt" in Frame 357
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = (_root.player._y - 20);
if (_root.player.bloodspurt._currentframe != 1) {
play();
}
if (_root.player._xscale == 100) {
_xscale = 100;
} else {
_xscale = -100;
}
}
Instance of Symbol 505 MovieClip "crosshair" in Frame 357
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(2);
this._visible = 0;
} else {
this.gotoAndStop(1);
this._visible = 100;
}
}
onClipEvent (mouseDown) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if (((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) && (_root.guntype != "knife")) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
}
Instance of Symbol 506 MovieClip "crosshair2" in Frame 357
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
this.gotoAndStop(2);
}
onClipEvent (mouseDown) {
if (_root.ammo > 0) {
_root.gun2.play();
}
if (_root.ammo == 0) {
_root.gun2.shotsound.empty.play();
}
}
Instance of Symbol 506 MovieClip "crosshair3" in Frame 357
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
}
onClipEvent (mouseUp) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
}
Instance of Symbol 520 MovieClip "ammunition" in Frame 357
onClipEvent (enterFrame) {
if ((Key.isDown(82) && (!(_root.guntype === "knife"))) && (!(_root.guntype === "M4A1"))) {
this.gotoAndStop(1);
_root.gun.g.gotoAndPlay(16);
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
}
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
}
if (_root.guntype == "RPG") {
_root.gun.g.firearm.gotoAndStop(4);
}
}
}
Instance of Symbol 556 MovieClip "lode" in Frame 357
onClipEvent (enterFrame) {
if (_root.guntype == "knife") {
_root.ammunition._visible = 0;
} else {
_root.ammunition._visible = 100;
if (Key.isDown(82)) {
_root.ammo = 7;
}
}
}
Instance of Symbol 589 MovieClip in Frame 357
onClipEvent (enterFrame) {
if (_root.pistol == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 593 MovieClip in Frame 357
onClipEvent (enterFrame) {
if (_root.flamer == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 597 MovieClip in Frame 357
onClipEvent (enterFrame) {
if (_root.shotgun == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 601 MovieClip in Frame 357
onClipEvent (enterFrame) {
if (_root.m4a1 == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 610 MovieClip "black" in Frame 357
onClipEvent (enterFrame) {
if (_currentframe == 25) {
tellTarget ("_root") {
play();
};
}
}
Frame 358
_root.ebullet.gotoAndStop(1);
Frame 451
stop();
_root.mek = "no";
_root.guntype = "knife";
_root.pistol = "yes";
_root.shotgun = "yes";
_root.flamer = "yes";
_root.m4a1 = "yes";
_root.rpg = "no";
_root.dead = false;
Instance of Symbol 780 MovieClip "ground" in Frame 451
onClipEvent (enterFrame) {
if (_root.ebullet.shot.hitTest(_x, _y, true)) {
_root.ebullet._visible == 100;
}
}
Instance of Symbol 278 MovieClip "sb" in Frame 451
onClipEvent (load) {
xscale = _xscale;
}
onClipEvent (enterFrame) {
if (_root.mek == "no") {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
} else {
this._x = _root.player._x + 70;
this._y = _root.player._y - 70;
_y = (_y + vert);
_x = (_x + hori);
}
}
Instance of Symbol 288 MovieClip "speech" in Frame 451
onClipEvent (enterFrame) {
if (_root.rpg == "yes") {
if (Key.isDown(54)) {
_root.guntype = "RPG";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.m4a1 == "yes") {
if (Key.isDown(53)) {
_root.guntype = "M4A1";
_root.gun3.gotoAndStop(1);
}
}
if (_root.flamer == "yes") {
if (Key.isDown(52)) {
_root.guntype = "flamer";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.shotgun == "yes") {
if (Key.isDown(51)) {
_root.guntype = "shotgun";
_root.gun.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (_root.pistol == "yes") {
if (Key.isDown(50)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.g.firearm.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
if (Key.isDown(49)) {
_root.guntype = "knife";
_root.knife.gotoAndStop(1);
_root.crosshair3.gotoAndStop(2);
_root.crosshair.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip "bullets" in Frame 451
onClipEvent (enterFrame) {
xdis = _x - _root.crosshair._x;
ydis = _y - _root.crosshair._y;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
_root.total = totaldist;
if (_currentframe == 1) {
_x = _root.gun._x;
_y = _root.gun._y;
_rotation = _root.gun._rotation;
if (_root.guntype == "pistol") {
if (totaldist <= 0.5) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "shotgun") {
if (totaldist <= 0.5) {
xmove = (-(_x - _root.crosshair._x)) * 120;
ymove = (-(_y - _root.crosshair._y)) * 120;
} else if ((totaldist > 0.5) && (totaldist <= 1)) {
xmove = (-(_x - _root.crosshair._x)) * 60;
ymove = (-(_y - _root.crosshair._y)) * 60;
} else if ((totaldist > 1) && (totaldist <= 2)) {
xmove = (-(_x - _root.crosshair._x)) * 30;
ymove = (-(_y - _root.crosshair._y)) * 30;
} else if ((totaldist > 2) && (totaldist <= 3)) {
xmove = (-(_x - _root.crosshair._x)) * 18;
ymove = (-(_y - _root.crosshair._y)) * 18;
} else if ((totaldist > 3) && (totaldist <= 5)) {
xmove = (-(_x - _root.crosshair._x)) * 11;
ymove = (-(_y - _root.crosshair._y)) * 11;
} else if ((totaldist > 5) && (totaldist <= 10)) {
xmove = (-(_x - _root.crosshair._x)) * 8;
ymove = (-(_y - _root.crosshair._y)) * 8;
} else if ((totaldist > 10) && (totaldist <= 17)) {
xmove = (-(_x - _root.crosshair._x)) * 4;
ymove = (-(_y - _root.crosshair._y)) * 4;
} else if ((totaldist > 17) && (totaldist <= 35)) {
xmove = (-(_x - _root.crosshair._x)) * 2;
ymove = (-(_y - _root.crosshair._y)) * 2;
} else if ((totaldist > 35) && (totaldist <= 75)) {
xmove = -(_x - _root.crosshair._x);
ymove = -(_y - _root.crosshair._y);
} else if ((totaldist > 75) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 2;
ymove = (-(_y - _root.crosshair._y)) / 2;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 3;
ymove = (-(_y - _root.crosshair._y)) / 3;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 4;
ymove = (-(_y - _root.crosshair._y)) / 4;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
} else {
xmove = (-(_x - _root.crosshair._x)) / 5;
ymove = (-(_y - _root.crosshair._y)) / 5;
}
} else if (_root.guntype == "flamer") {
if (totaldist <= 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist <= 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist <= 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist <= 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist <= 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else if (totaldist < 50) {
xmove = (-(_x - _root.crosshair._x)) / 10;
ymove = (-(_y - _root.crosshair._y)) / 10;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.crosshair._x)) / 13;
ymove = (-(_y - _root.crosshair._y)) / 13;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.crosshair._x)) / 15;
ymove = (-(_y - _root.crosshair._y)) / 15;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.crosshair._x)) / 25;
ymove = (-(_y - _root.crosshair._y)) / 25;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
} else {
xmove = (-(_x - _root.crosshair._x)) / 30;
ymove = (-(_y - _root.crosshair._y)) / 30;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
wtype.ex.play();
}
}
}
Instance of Symbol 319 MovieClip "mbullets" in Frame 451
onClipEvent (enterFrame) {
if (_root.player._currentframe == 16) {
gotoAndStop (451);
}
if (_root.guntype == "M4A1") {
if (_currentframe == 1) {
_x = _root.gun3._x;
_y = _root.gun3._y;
_rotation = _root.gun3._rotation;
} else {
_x = (_x + xmove);
_y = (_y + ymove);
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndStop (451);
}
}
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 366 MovieClip "player" in Frame 451
onClipEvent (load) {
xscale = _xscale;
_root.movespeed = 5;
}
onClipEvent (enterFrame) {
if (_root.ground.mover._currentframe > 20) {
if (_root.ground.mover.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + 7.4;
}
}
}
onClipEvent (enterFrame) {
if (_root.dead == true) {
_root.player.gotoAndStop("dead");
this.swapDepths(-16000);
_root.gun3._visible = false;
_root.gun._visible = false;
_root.knife._visible = false;
_root.player.bloodspurt.gotoAndStop(1);
_root.bloodspurt.gotoAndStop(1);
_root.keyright = null;
_root.keyleft = null;
_root.keyspace = null;
_root.keydown = null;
} else if (_root.dead == false) {
_root.keyright = Key.isDown(68);
_root.keydown = Key.isDown(83);
_root.keyspace = Key.isDown(87);
_root.keyleft = Key.isDown(65);
}
if (_root.ground.gay.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.items.kill.hitTest(_x, _y, true)) {
_root.health.nextFrame();
}
if (_root.keyright) {
_root.player.walk.play();
}
if (_root.keyleft) {
_root.player.walk.play();
}
if (_root.keydown) {
_root.player.walk.gotoAndStop(18);
hori = 0;
} else if (((!_root.keyleft) && (!_root.keyright)) && (!_root.keydown)) {
_root.player.walk.gotoAndStop(1);
}
_root.hitground = _root.ground.hitTest(_x, _y, true);
if (_root.keyleft) {
if (!_root.keydown) {
hori = -_root.movespeed;
}
} else if (_root.keyright) {
if (!_root.keydown) {
hori = _root.movespeed;
}
} else if (hori > 0) {
hori = 0;
} else if (hori < 0) {
hori = 0;
}
if (!_root.hitground) {
if (!_root.ground.hitTest(_x, _y + 4, true)) {
_root.player.walk.gotoAndPlay(17);
}
vert = vert + 1;
if (vert > 0) {
if (_root.ground.hitTest(_x, _y + 2, true)) {
_y = (_y + 2);
} else if (_root.ground.hitTest(_x, _y + 4, true)) {
_y = (_y + 4);
} else if (_root.ground.hitTest(_x, _y + 6, true)) {
_y = (_y + 6);
} else if (_root.ground.hitTest(_x, _y + 8, true)) {
_y = (_y + 8);
} else if (_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + 10);
}
}
} else {
if (_root.keyspace) {
vert = -10;
} else {
vert = 0;
}
if (_root.ground.hitTest(_x, _y - 10, true)) {
_y = (_y - 10);
} else if (_root.ground.hitTest(_x, _y - 8, true)) {
_y = (_y - 8);
} else if (_root.ground.hitTest(_x, _y - 6, true)) {
_y = (_y - 6);
} else if (_root.ground.hitTest(_x, _y - 4, true)) {
_y = (_y - 4);
} else if (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y - 2);
}
}
_y = (_y + vert);
_x = (_x + hori);
if (_root.ground.hitTest(_x + 4, _y, true)) {
hori = hori - 4;
}
if (_root.ground.hitTest(_x - 4, _y, true)) {
hori = hori + 4;
}
if (_root.ground.hitTest(_x + hori, _y - 20, true)) {
if (hori > 0) {
hori = 0;
_x = (_x - 5);
} else {
hori = 0;
_x = (_x + 5);
}
}
if (_root.dead == false) {
if (_x > _root.crosshair._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
if (_x > 350) {
diff = 350 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.enemy57._x = _root.enemy57._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
} else if (_x < 200) {
diff = 200 - _x;
_root.ground._x = _root.ground._x + diff;
_root.enemy1._x = _root.enemy1._x + diff;
_root.enemy2._x = _root.enemy2._x + diff;
_root.enemy3._x = _root.enemy3._x + diff;
_root.enemy4._x = _root.enemy4._x + diff;
_root.enemy5._x = _root.enemy5._x + diff;
_root.enemy6._x = _root.enemy6._x + diff;
_root.enemy7._x = _root.enemy7._x + diff;
_root.enemy8._x = _root.enemy8._x + diff;
_root.enemy9._x = _root.enemy9._x + diff;
_root.enemy10._x = _root.enemy10._x + diff;
_root.enemy11._x = _root.enemy11._x + diff;
_root.enemy12._x = _root.enemy12._x + diff;
_root.enemy13._x = _root.enemy13._x + diff;
_root.enemy14._x = _root.enemy14._x + diff;
_root.enemy15._x = _root.enemy15._x + diff;
_root.enemy16._x = _root.enemy16._x + diff;
_root.enemy17._x = _root.enemy17._x + diff;
_root.enemy18._x = _root.enemy18._x + diff;
_root.enemy19._x = _root.enemy19._x + diff;
_root.enemy20._x = _root.enemy20._x + diff;
_root.enemy21._x = _root.enemy21._x + diff;
_root.enemy22._x = _root.enemy22._x + diff;
_root.enemy23._x = _root.enemy23._x + diff;
_root.enemy24._x = _root.enemy24._x + diff;
_root.enemy25._x = _root.enemy25._x + diff;
_root.enemy26._x = _root.enemy26._x + diff;
_root.enemy27._x = _root.enemy27._x + diff;
_root.enemy28._x = _root.enemy28._x + diff;
_root.enemy29._x = _root.enemy29._x + diff;
_root.enemy30._x = _root.enemy30._x + diff;
_root.enemy31._x = _root.enemy31._x + diff;
_root.enemy32._x = _root.enemy32._x + diff;
_root.enemy33._x = _root.enemy33._x + diff;
_root.enemy34._x = _root.enemy34._x + diff;
_root.enemy35._x = _root.enemy35._x + diff;
_root.enemy36._x = _root.enemy36._x + diff;
_root.enemy37._x = _root.enemy37._x + diff;
_root.enemy38._x = _root.enemy38._x + diff;
_root.enemy39._x = _root.enemy39._x + diff;
_root.enemy40._x = _root.enemy40._x + diff;
_root.enemy41._x = _root.enemy41._x + diff;
_root.enemy42._x = _root.enemy42._x + diff;
_root.enemy43._x = _root.enemy43._x + diff;
_root.enemy44._x = _root.enemy44._x + diff;
_root.enemy45._x = _root.enemy45._x + diff;
_root.enemy46._x = _root.enemy46._x + diff;
_root.enemy47._x = _root.enemy47._x + diff;
_root.enemy48._x = _root.enemy48._x + diff;
_root.enemy49._x = _root.enemy49._x + diff;
_root.enemy50._x = _root.enemy50._x + diff;
_root.enemy51._x = _root.enemy51._x + diff;
_root.enemy52._x = _root.enemy52._x + diff;
_root.enemy53._x = _root.enemy53._x + diff;
_root.enemy54._x = _root.enemy54._x + diff;
_root.enemy55._x = _root.enemy55._x + diff;
_root.enemy56._x = _root.enemy56._x + diff;
_root.hit._x = _root.hit._x + diff;
_root.items._x = _root.items._x + diff;
_root.gun2._x = _root.gun2._x + diff;
_root.bullets._x = _root.bullets._x + diff;
_root.ebullet._x = _root.ebullet._x + diff;
_root.aim._x = _root.aim._x + diff;
_root.foreground._x = _root.foreground._x + diff;
_x = (_x + diff);
}
if (_y > 250) {
diff = 250 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
} else if (_y < 100) {
diff = 100 - _y;
_root.ground._y = _root.ground._y + diff;
_root.enemy1._y = _root.enemy1._y + diff;
_root.enemy2._y = _root.enemy2._y + diff;
_root.enemy3._y = _root.enemy3._y + diff;
_root.enemy4._y = _root.enemy4._y + diff;
_root.enemy5._y = _root.enemy5._y + diff;
_root.enemy6._y = _root.enemy6._y + diff;
_root.enemy7._y = _root.enemy7._y + diff;
_root.enemy8._y = _root.enemy8._y + diff;
_root.enemy9._y = _root.enemy9._y + diff;
_root.enemy10._y = _root.enemy10._y + diff;
_root.enemy11._y = _root.enemy11._y + diff;
_root.enemy12._y = _root.enemy12._y + diff;
_root.enemy13._y = _root.enemy13._y + diff;
_root.enemy14._y = _root.enemy14._y + diff;
_root.enemy15._y = _root.enemy15._y + diff;
_root.enemy16._y = _root.enemy16._y + diff;
_root.enemy17._y = _root.enemy17._y + diff;
_root.enemy18._y = _root.enemy18._y + diff;
_root.enemy19._y = _root.enemy19._y + diff;
_root.enemy20._y = _root.enemy20._y + diff;
_root.enemy21._y = _root.enemy21._y + diff;
_root.enemy22._y = _root.enemy22._y + diff;
_root.enemy23._y = _root.enemy23._y + diff;
_root.enemy24._y = _root.enemy24._y + diff;
_root.enemy25._y = _root.enemy25._y + diff;
_root.enemy26._y = _root.enemy26._y + diff;
_root.enemy27._y = _root.enemy27._y + diff;
_root.enemy28._y = _root.enemy28._y + diff;
_root.enemy29._y = _root.enemy29._y + diff;
_root.enemy30._y = _root.enemy30._y + diff;
_root.enemy31._y = _root.enemy31._y + diff;
_root.enemy32._y = _root.enemy32._y + diff;
_root.enemy33._y = _root.enemy33._y + diff;
_root.enemy34._y = _root.enemy34._y + diff;
_root.enemy35._y = _root.enemy35._y + diff;
_root.enemy36._y = _root.enemy36._y + diff;
_root.enemy37._y = _root.enemy37._y + diff;
_root.enemy38._y = _root.enemy38._y + diff;
_root.enemy39._y = _root.enemy39._y + diff;
_root.enemy40._y = _root.enemy40._y + diff;
_root.enemy41._y = _root.enemy41._y + diff;
_root.enemy42._y = _root.enemy42._y + diff;
_root.enemy43._y = _root.enemy43._y + diff;
_root.enemy44._y = _root.enemy44._y + diff;
_root.enemy45._y = _root.enemy45._y + diff;
_root.enemy46._y = _root.enemy46._y + diff;
_root.enemy47._y = _root.enemy47._y + diff;
_root.enemy48._y = _root.enemy48._y + diff;
_root.enemy49._y = _root.enemy49._y + diff;
_root.enemy50._y = _root.enemy50._y + diff;
_root.enemy51._y = _root.enemy51._y + diff;
_root.enemy52._y = _root.enemy52._y + diff;
_root.enemy53._y = _root.enemy53._y + diff;
_root.enemy54._y = _root.enemy54._y + diff;
_root.enemy55._y = _root.enemy55._y + diff;
_root.enemy56._y = _root.enemy56._y + diff;
_root.enemy57._y = _root.enemy57._y + diff;
_root.hit._y = _root.hit._y + diff;
_root.items._y = _root.items._y + diff;
_root.gun2._y = _root.gun2._y + diff;
_root.bullets._y = _root.bullets._y + diff;
_root.ebullet._y = _root.ebullet._y + diff;
_root.aim._y = _root.aim._y + diff;
_root.foreground._y = _root.foreground._y + diff;
_y = (_y + diff);
}
}
Instance of Symbol 383 MovieClip "gun3" in Frame 451
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "RPG") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "shotgun") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "flamer") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "knife") {
_root.crosshair3.gotoAndStop(2);
this._visible = "0";
}
if (_root.guntype == "M4A1") {
this._visible = "100";
_root.newx = _root.crosshair3._y;
_root.newy = _root.crosshair3._x;
initx = _x;
inity = _y;
_x = _root.player._x;
_y = (_root.player._y - 30);
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_currentframe == 2) {
_root.mbullets.play();
_root.ammo = _root.ammo - 1;
_root.m4count.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 403 MovieClip "knife" in Frame 451
onClipEvent (load) {
stop();
yscale = _yscale;
}
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = _root.player._y;
if (_root.mek == "yes") {
this.gotoAndStop(14);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(14);
} else if (_root.guntype == "pistol") {
this.gotoAndStop(14);
} else if (_root.guntype == "shotgun") {
this.gotoAndStop(14);
} else if (_root.guntype == "flamer") {
this.gotoAndStop(14);
} else if (_root.guntype == "RPG") {
this.gotoAndStop(14);
}
if (_root.mek == "no") {
if (_root.guntype == "knife") {
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 20);
} else {
_y = (_root.player._y - 25);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
}
Instance of Symbol 407 MovieClip "aim" in Frame 451
onClipEvent (enterFrame) {
getProperty(_root.player, _x);
getProperty(this, _x);
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 5;
} else if (this._x <= _root.player._x) {
this._x = this._x + 5;
} else if (this._x == _root.player._x) {
this._x = null;
}
}
Instance of Symbol 495 MovieClip "gun" in Frame 451
onClipEvent (load) {
yscale = _yscale;
}
onClipEvent (enterFrame) {
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
_root.gun.g.muzz.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
_root.gun.g.muzz.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "pistol") {
_root.gun.g.firearm.gotoAndStop(1);
_root.gun.g.muzz.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "M4A1") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "knife") {
_root.crosshair.gotoAndStop(2);
this._visible = 0;
}
if (_root.guntype == "flamer") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.guntype == "RPG") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
} else {
_yscale = yscale;
}
}
if (_root.guntype == "shotgun") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
if (_root.guntype == "pistol") {
this._visible = 100;
_root.newx = _root.crosshair._y;
_root.newy = _root.crosshair._x;
initx = _x;
inity = _y;
_x = _root.player._x;
if (_root.crouch == true) {
_y = (_root.player._y - 18);
} else {
_y = (_root.player._y - 22);
}
_root.angle = Math.atan2(_root.newx - inity, _root.newy - initx) / 0.01745329;
_rotation = _root.angle;
if (_root.ammunition._currentframe == "8") {
if (g._currentframe == 1) {
if (Key.isDown(82)) {
_root.ammo = 7;
_root.ammunition.gotoAndStop(1);
}
}
} else if (g._currentframe == 2) {
_root.bullets.play();
_root.ammo = _root.ammo - 1;
_root.ammunition.nextFrame();
}
if (_rotation > 90) {
_yscale = (-yscale);
} else if (_rotation < -90) {
_yscale = (-yscale);
} else {
_yscale = yscale;
}
}
}
Instance of Symbol 500 MovieClip "ebullet" in Frame 451
onClipEvent (enterFrame) {
xdis = _x - _root.player._x;
ydis = (_y - _root.player._y) + 30;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
if (_currentframe == 1) {
_x = _root.egun._x;
_visible = 100;
_y = _root.egun._y;
_rotation = _root.egun._rotation;
if (totaldist < 50) {
xmove = (-(_x - _root.player._x)) / 5;
ymove = (-((_y - _root.player._y) + 30)) / 5;
} else if ((totaldist > 50) && (totaldist < 100)) {
xmove = (-(_x - _root.player._x)) / 7;
ymove = (-((_y - _root.player._y) + 30)) / 7;
} else if ((totaldist > 100) && (totaldist < 200)) {
xmove = (-(_x - _root.player._x)) / 9;
ymove = (-((_y - _root.player._y) + 30)) / 9;
} else if ((totaldist > 200) && (totaldist < 300)) {
xmove = (-(_x - _root.player._x)) / 12;
ymove = (-((_y - _root.player._y) + 30)) / 12;
} else if ((totaldist > 300) && (totaldist < 400)) {
xmove = (-(_x - _root.player._x)) / 15;
ymove = (-((_y - _root.player._y) + 30)) / 15;
} else {
xmove = (-(_x - _root.player._x)) / 20;
ymove = (-((_y - _root.player._y) + 30)) / 20;
}
} else {
_x = (_x + xmove);
_y = (_y + ymove);
}
if (_root.ground.hitTest(_x, _y, true)) {
xmove = null;
ymove = null;
this.gotoAndStop("die");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.gotoAndStop("die");
xmove = null;
ymove = null;
_root.player.gotoAndPlay("hit");
}
}
Instance of Symbol 229 MovieClip "bloodspurt" in Frame 451
onClipEvent (enterFrame) {
_x = _root.player._x;
_y = (_root.player._y - 20);
if (_root.player.bloodspurt._currentframe != 1) {
play();
}
if (_root.player._xscale == 100) {
_xscale = 100;
} else {
_xscale = -100;
}
}
Instance of Symbol 505 MovieClip "crosshair" in Frame 451
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(2);
this._visible = 0;
} else {
this.gotoAndStop(1);
this._visible = 100;
}
if (_root.mek == "no") {
this.gotoAndStop(1);
this._visible = 100;
}
}
onClipEvent (mouseDown) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
if (_root.guntype == "knife") {
_root.knife.play();
}
if ((_root.ammunition._currentframe != 8) && (_root.gun.g._currentframe < 16)) {
if (_root.guntype == "m4a1") {
} else if ((_root.gun.g._currentframe == 1) && (_root.bullets._currentframe == 1)) {
_root.gun.g.play();
if (_root.guntype == "pistol") {
_root.gun.g.shotsound.pistolshot.play();
}
if (_root.guntype == "shotgun") {
_root.gun.g.shotsound.shotgunshot.play();
}
if (_root.guntype == "flamer") {
_root.gun.g.shotsound.flameshot.play();
}
if (_root.guntype == "RPG") {
_root.gun.g.shotsound.flameshot.play();
}
}
}
if (_root.ammunition._currentframe == 8) {
if (_root.guntype == "knife") {
} else {
_root.gun.g.shotsound.empty.play();
}
}
}
}
Instance of Symbol 506 MovieClip "crosshair2" in Frame 451
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
this.gotoAndStop(2);
}
onClipEvent (mouseDown) {
if (_root.ammo > 0) {
_root.gun2.play();
}
if (_root.ammo == 0) {
_root.gun2.shotsound.empty.play();
}
}
Instance of Symbol 506 MovieClip "crosshair3" in Frame 451
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
onClipEvent (enterFrame) {
shiftspeed = 4;
if ((Key.isDown(38) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y - shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(39))) {
_y = (_y - shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(38) && (Key.isDown(37))) {
_y = (_y - shiftspeed);
_x = (_x - shiftspeed);
} else if ((Key.isDown(40) && (!Key.isDown(39))) && (!Key.isDown(37))) {
_y = (_y + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(39))) {
_y = (_y + shiftspeed);
_x = (_x + shiftspeed);
} else if (Key.isDown(40) && (Key.isDown(37))) {
_y = (_y + shiftspeed);
_x = (_x - shiftspeed);
} else if (Key.isDown(39)) {
_x = (_x + shiftspeed);
} else if (Key.isDown(37)) {
_x = (_x - shiftspeed);
}
if (_root.guntype == "M4A1") {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_root.mouse = "yes";
if (_root.mek == "no") {
if (_root.guntype == "M4A1") {
if ((_root.m4am._currentframe < 40) && (_root.player._currentframe != 16)) {
_root.gun3.play();
}
}
}
}
}
onClipEvent (mouseUp) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
_root.mouse = "no";
if (_root.guntype == "M4A1") {
if (_root.m4am._currentframe < 40) {
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
}
}
}
}
Instance of Symbol 520 MovieClip "ammunition" in Frame 451
onClipEvent (enterFrame) {
if ((Key.isDown(82) && (!(_root.guntype === "knife"))) && (!(_root.guntype === "M4A1"))) {
this.gotoAndStop(1);
_root.gun.g.gotoAndPlay(16);
if (_root.guntype == "shotgun") {
_root.gun.g.firearm.gotoAndStop(2);
}
if (_root.guntype == "flamer") {
_root.gun.g.firearm.gotoAndStop(3);
}
if (_root.guntype == "RPG") {
_root.gun.g.firearm.gotoAndStop(4);
}
}
}
Instance of Symbol 556 MovieClip "lode" in Frame 451
onClipEvent (enterFrame) {
if (_root.guntype == "knife") {
_root.ammunition._visible = 0;
} else {
_root.ammunition._visible = 100;
if (Key.isDown(82)) {
_root.ammo = 7;
}
}
}
Instance of Symbol 589 MovieClip in Frame 451
onClipEvent (enterFrame) {
if (_root.pistol == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 593 MovieClip in Frame 451
onClipEvent (enterFrame) {
if (_root.flamer == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 597 MovieClip in Frame 451
onClipEvent (enterFrame) {
if (_root.shotgun == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 601 MovieClip in Frame 451
onClipEvent (enterFrame) {
if (_root.m4a1 == "yes") {
this.gotoAndStop(2);
}
}
Instance of Symbol 610 MovieClip "black" in Frame 451
onClipEvent (enterFrame) {
if (_currentframe == 25) {
tellTarget ("_root") {
play();
};
}
}
Frame 452
stop();
_root.pass = "";
if (_root.score == null) {
_root.showsc.showscore = "0";
} else {
_root.showsc.showscore = _root.score;
}
Instance of Symbol 148 MovieClip in Frame 452
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
Frame 453
stop();
_root.pass = "";
_root.player._visible = false;
if (random(4) == 1) {
_root.dmg.dmg = "Battered and bruised, you edge closer to the brink of death. . . YOU HAVE LOST";
} else if (random(4) == 2) {
_root.dmg.dmg = "Drenched with your own blood, your arm could barely lift up the gun. . . YOU HAVE LOST";
} else if (random(4) == 3) {
_root.dmg.dmg = "The pain beats down so hard on your body you could barely stand up. . . YOU HAVE LOST";
} else if (random(4) == 4) {
_root.dmg.dmg = "Your body feels like it's been shattered in a million pieces . . . YOU HAVE LOST";
} else {
_root.dmg.dmg = "The wound on your chest gushed out blood like a hosepipe. . . YOU HAVE LOST ";
}
if (_root.score == null) {
_root.showsc.showscore = "0";
} else {
_root.showsc.showscore = _root.score;
}
Instance of Symbol 148 MovieClip "cursor" in Frame 453
onClipEvent (enterFrame) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (enterFrame) {
_x = _x;
_y = _y;
}
Symbol 3 MovieClip [bullet] Frame 1
_visible = false;
_rotation = _root.arm._rotation;
_x = (_root.gun._x + (Math.cos((_rotation * 3.141593) / 180) * 60));
_y = (_root.gun._y + (Math.sin((_rotation * 3.141593) / 180) * 70));
gotoAndStop (1);
speed = 25;
onEnterFrame = function () {
timer++;
_x = (_x + (Math.cos((_rotation * 3.141593) / 180) * speed));
_y = (_y + (Math.sin((_rotation * 3.141593) / 180) * speed));
if (hit) {
_root.bleed(_rotation, _x, _y);
_root.gspark(_currentframe, _rotation, _x, _y);
this.removeMovieClip();
}
if (hitw) {
_root.gspark(_currentframe, _rotation, _x, _y);
this.removeMovieClip();
}
if (_root.ground.ground.hitTest(_x, _y, true)) {
_root.gspark(_currentframe, _rotation, _x, _y);
this.removeMovieClip();
}
if (!hitTest(_root.screen)) {
this.removeMovieClip();
}
};
Symbol 3 MovieClip [bullet] Frame 2
_rotation = (_rotation + (random(6) - 3));
Symbol 3 MovieClip [bullet] Frame 3
_rotation = (_rotation + (random(8) - 4));
Symbol 3 MovieClip [bullet] Frame 4
_rotation = (_rotation + (random(12) - 6));
Symbol 3 MovieClip [bullet] Frame 5
_rotation = (_rotation + (random(25) - 12.5));
Symbol 3 MovieClip [bullet] Frame 6
_rotation = (_rotation + (random(30) - 15));
Symbol 3 MovieClip [bullet] Frame 8
_rotation = (_rotation + (random(12) - 6));
Symbol 6 MovieClip Frame 1
_visible = false;
timer = 0;
Symbol 6 MovieClip Frame 2
if (_parent.grav > 150) {
if (timer == 1) {
_root.kills++;
_parent.dead = true;
}
timer++;
if (timer == 2) {
_parent.swapDepths(99999);
_parent.removeMovieClip();
}
}
Symbol 6 MovieClip Frame 5
gotoAndPlay (2);
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 8 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 49 MovieClip Frame 3
l = _parent._parent.life;
Symbol 49 MovieClip Frame 4
_xscale = ((_parent._parent.life / l) * 100);
_parent._xscale = _parent._parent._xscale;
if (_xscale <= 0) {
_xscale = 0;
}
Symbol 49 MovieClip Frame 5
gotoAndPlay (4);
Symbol 50 MovieClip Frame 1
stop();
_alpha = 0;
_name = "bosshealth";
onEnterFrame = function () {
if (!shit) {
l = _parent.life;
shit = true;
}
};
Symbol 50 MovieClip Frame 2
_alpha = 100;
Symbol 50 MovieClip Frame 23
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 24
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 25
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 26
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 27
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 28
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 29
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 30
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 31
_alpha = (_alpha - 10);
Symbol 50 MovieClip Frame 32
_alpha = 0;
Symbol 51 MovieClip [e5] Frame 1
function hurt() {
hb.gotoAndPlay(2);
if (_root.gun == 1) {
life = life - _root.gun1_power;
}
if (_root.gun == 2) {
life = life - _root.gun2_power;
}
if (_root.gun == 3) {
life = life - _root.gun3_power;
}
if (_root.gun == 4) {
life = life - _root.gun4_power;
}
if (_root.gun == 5) {
life = life - _root.gun5_power;
}
if (_root.gun == 6) {
life = life - _root.gun6_power;
}
if (_root.gun == 7) {
life = life - _root.gun7_power;
}
if (_root.gun == 8) {
life = life - _root.gun8_power;
}
pain.play();
}
stop();
stop();
onEnterFrame = function () {
if (_root.enemyjump.hitTest(_x, _y, true)) {
}
jump = true;
while (_root.ground.hitTest(_x + 40, _y - 45, true)) {
_x = (_x-1);
_x = (_x-1);
if (random(10) == 1) {
}
jump = true;
}
while (_root.ground.hitTest(_x - 40, _y - 45, true)) {
_x = (_x+1);
_x = (_x+1);
if (random(10) == 1) {
jump = true;
}
}
if (jump) {
gotoAndStop ("run");
_y = (_y - 15);
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav++;
_y = (_y + grav);
}
grav = 0;
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
_y = (_y-1);
grav = 0;
}
};
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip [e5] Frame 1
onClipEvent (load) {
l = _parent.life;
}
Symbol 60 MovieClip Frame 1
stop();
Instance of Symbol 59 MovieClip "swfloader" in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
function strip_spaces(str) {
var _local2 = str;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2.charAt(_local1) != " ") && (_local2.charAt(_local1) != ";")) {
_local3 = _local3 + _local2.charAt(_local1);
}
_local1++;
}
return(_local3);
}
function simple_script(action, timeline) {
action = strip_spaces(action);
if ((action.length > 0) && ((action.indexOf(")") != -1) && (action.indexOf("(") != -1))) {
var _local2 = action.split(".");
var _local5 = _local2.pop();
var _local7 = _local5.indexOf("(");
var _local9 = _local5.indexOf(")");
var _local8 = _local5.substr(0, _local7);
var _local4 = _local5.substr(_local7 + 1, _local9 - (_local7 + 1));
var _local3 = timeline;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3[_local2[_local1]];
_local1++;
}
if (_local4.indexOf("\"") != -1) {
_local4 = _local4.substr(1, _local4.length - 2);
}
_local3[_local8](_local4);
}
}
function execute_action() {
var _local2 = _parent;
unloaded = true;
_local2._visible = false;
simple_script(_local2.play_action_val, _local2);
}
_parent.anim.gotoAndStop(1);
simple_script(_parent.init_action_val, _parent);
var done = false;
var unloaded = false;
var orig_x = _parent._x;
var orig_y = _parent._y;
var dist_x = (_parent._x + ((_parent._width * 2) / 3));
var dist_y = (_parent._y + ((_parent._height * 2) / 3));
var orig_a = _parent._alpha;
var accel_jump = 0.75;
var slow_factor = _parent.slow_factor_val;
var speed_factor = (1 + (slow_factor / (1 - slow_factor)));
var ready = false;
var perc_fadeout = 0;
_parent.perc._x = _parent.anim._x - (_parent.perc._width / 2);
_parent.perc._y = _parent.anim._y - (_parent.perc._height / 2);
if (slow_factor < 1) {
switch (_parent.xin_motion_val) {
case "Up" :
_parent._y = orig_y + (dist_y * 2);
break;
case "Down" :
_parent._y = orig_y - (dist_y * 2);
break;
case "Left" :
_parent._x = orig_x + (dist_x * 2);
break;
case "Right" :
_parent._x = orig_x - (dist_x * 2);
break;
case "Toward" :
_parent._xscale = (_parent._yscale = 1);
break;
case "None" :
_parent._alpha = 0;
}
} else {
ready = true;
}
}
onClipEvent (enterFrame) {
if (unloaded) {
return(undefined);
}
if (!ready) {
switch (_parent.xin_motion_val) {
case "Toward" :
_parent._xscale = _parent._xscale + ((100 - _parent._xscale) * slow_factor);
_parent._yscale = _parent._xscale;
if (_parent.xin_alphatype_val == "Yes") {
_parent._alpha = Math.round((orig_a / 100) * Math.max(0, Math.min(_parent._xscale, 100)));
}
if (Math.abs(100 - _parent._xscale) < 0.5) {
_parent._xscale = (_parent._yscale = 100);
_parent._alpha = orig_a;
ready = true;
}
break;
default :
_parent._x = _parent._x + ((orig_x - _parent._x) * slow_factor);
_parent._y = _parent._y + ((orig_y - _parent._y) * slow_factor);
if (_parent.xin_alphatype_val == "Yes") {
if (_parent.xin_motion_val == "None") {
_parent._alpha = _parent._alpha + ((orig_a - _parent._alpha) * slow_factor);
} else if (Math.abs(orig_x - _parent._x) > Math.abs(orig_y - _parent._y)) {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x)) * 100);
} else {
_parent._alpha = 100 - Math.round(((orig_a / 100) * (Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y)) * 100);
}
}
if (!(((_parent.xin_motion_val == "None") && (Math.abs(_parent._alpha - orig_a) <= 1)) || (((_parent.xin_motion_val != "None") && (Math.abs(_parent._y - orig_y) < 0.5)) && (Math.abs(_parent._x - orig_x) < 0.5)))) {
break;
}
_parent._x = orig_x;
_parent._y = orig_y;
_parent._alpha = orig_a;
ready = true;
}
} else if (!done) {
var rl = _root.getBytesLoaded();
var rt = (_root.getBytesTotal() * (_parent.perc_req_val / 100));
if ((rl > 10) && (rt > 10)) {
rl = Math.min(rl, rt);
var new_frame = (_parent.anim._currentframe + Math.ceil(((_parent.anim._totalframes * (rl / rt)) - _parent.anim._currentframe) / 4));
new_frame = Math.max(1, new_frame);
if (_parent.show_perc_val == "Yes") {
_parent.perc.text = Math.round(((new_frame - 1) / (_parent.anim._totalframes - 1)) * 100);
}
if (new_frame != _parent.anim._currentframe) {
_parent.anim.gotoAndStop(new_frame);
}
if ((_parent.anim._totalframes == _parent.anim._currentframe) && (rl >= rt)) {
done = true;
}
}
} else if (slow_factor < 1) {
switch (_parent.xout_motion_val) {
case "Down" :
if (_parent._y <= orig_y) {
_parent._y = orig_y + accel_jump;
}
_parent._y = orig_y + (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y > (orig_y + (dist_y * 2))) {
execute_action();
}
break;
case "Up" :
if (_parent._y >= orig_y) {
_parent._y = orig_y - accel_jump;
}
_parent._y = orig_y - (Math.abs(_parent._y - orig_y) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_y, Math.abs(_parent._y - orig_y)) / dist_y) * 100);
if (_parent._y < (orig_y - (dist_y * 2))) {
execute_action();
}
break;
case "Right" :
if (_parent._x <= orig_x) {
_parent._x = orig_x + accel_jump;
}
_parent._x = orig_x + (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x > (orig_x + (dist_x * 2))) {
execute_action();
}
break;
case "Left" :
if (_parent._x >= orig_x) {
_parent._x = orig_x - accel_jump;
}
_parent._x = orig_x - (Math.abs(_parent._x - orig_x) * speed_factor);
perc_fadeout = Math.round((Math.min(dist_x, Math.abs(_parent._x - orig_x)) / dist_x) * 100);
if (_parent._x < (orig_x - (dist_x * 2))) {
execute_action();
}
break;
case "Away" :
if ((_parent._xscale >= 100) || (_parent._yscale >= 100)) {
_parent._xscale = (_parent._yscale = 100 - accel_jump);
}
_parent._xscale = (_parent._yscale = Math.max(0.5, 100 - ((100 - _parent._yscale) * speed_factor)));
perc_fadeout = 100 - Math.round(Math.max(0, Math.min(_parent._xscale, 100)));
if (_parent._xscale < 1) {
execute_action();
}
break;
default :
perc_fadeout = perc_fadeout + ((100 - perc_fadeout) * slow_factor);
if (Math.abs(perc_fadeout - 100) > 1) {
break;
}
execute_action();
}
if (!(_parent.xout_alphatype_val === "Yes")) {
} else {
_parent._alpha = (orig_a / 100) * (100 - perc_fadeout);
}
} else {
execute_action();
}
}
Symbol 68 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Symbol 75 MovieClip Frame 74
stop();
Symbol 80 MovieClip Frame 93
stop();
Symbol 83 MovieClip Frame 109
stop();
Symbol 88 Button
on (release) {
if (_root.menuactive == true) {
_root.instruction.play();
}
}
Symbol 89 MovieClip Frame 90
stop();
Symbol 99 Button
on (press) {
_root.score = 0;
_root.ammo = 0;
_root.guntype = "knife";
_root.mek = "no";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamethrower = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
on (press, keyPress "<Enter>") {
if (_root.startp.pass == "FROM HELL") {
_root.golevel3();
_root.ammo = 0;
} else if (_root.startp.pass == "from hell") {
_root.golevel3();
_root.ammo = 0;
} else if (_root.startp.pass == "From Hell") {
_root.golevel3();
_root.ammo = 0;
} else if (_root.startp.pass == "from Hell") {
_root.golevel3();
_root.ammo = 0;
} else if (_root.startp.pass == "From hell") {
_root.golevel3();
_root.ammo = 0;
} else if (_root.startp.pass == "Metropolis") {
_root.golevel2();
_root.ammo = 0;
} else if (_root.startp.pass == "METROPOLIS") {
_root.golevel2();
_root.ammo = 0;
} else if (_root.startp.pass == "metropolis") {
_root.golevel2();
_root.ammo = 0;
} else if (_root.startp.pass == "The Raja") {
_root.goboss();
_root.ammo = 0;
} else if (_root.startp.pass == "THE RAJA") {
_root.goboss();
_root.ammo = 0;
} else if (_root.startp.pass == "the Raja") {
_root.goboss();
_root.ammo = 0;
} else if (_root.startp.pass == "The raja") {
_root.goboss();
_root.ammo = 0;
} else if (_root.startp.pass == "the raja") {
_root.goboss();
_root.ammo = 0;
} else {
_root.play();
_root.ammo = 0;
}
}
Symbol 102 MovieClip Frame 81
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
if (_root.menuactive == true) {
_root.credits.play();
}
}
Symbol 113 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Symbol 114 MovieClip Frame 99
stop();
Symbol 126 MovieClip Frame 1
stop();
_root.menuactive = true;
Symbol 126 MovieClip Frame 2
_root.menuactive = false;
Symbol 145 MovieClip Frame 1
stop();
_root.menuactive = true;
Symbol 145 MovieClip Frame 2
_root.menuactive = false;
Symbol 157 MovieClip Frame 1
stop();
_parent.body.gotoAndStop(1);
_parent._parent.movespeed = 3;
Symbol 157 MovieClip Frame 2
_parent._parent.movespeed = 10;
Instance of Symbol 155 MovieClip in Symbol 157 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.nextFrame();
}
}
Symbol 157 MovieClip Frame 3
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 4
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 5
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 6
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 7
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 8
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 9
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 10
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 11
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 12
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 13
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 14
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 15
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 16
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 17
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 18
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 19
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 20
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 21
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 22
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 23
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 24
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 25
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 26
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 27
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 28
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 29
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 30
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 31
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 32
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 33
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 34
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 35
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 36
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 37
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 38
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 39
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 40
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 41
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 42
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 43
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 44
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 45
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 46
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 47
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 48
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 49
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 50
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 51
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 52
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 53
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 54
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 55
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 56
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 57
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 58
_parent._parent.movespeed = 10;
Symbol 157 MovieClip Frame 59
_parent.nextFrame();
_parent._parent.movespeed = 10;
Symbol 209 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
_parent._parent.movespeed = 0;
Symbol 226 MovieClip Frame 3
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 20
stop();
_root.score = _root.score + 20;
Symbol 255 MovieClip Frame 22
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 20
stop();
Symbol 256 MovieClip Frame 37
stop();
Symbol 270 MovieClip Frame 1
stop();
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 90;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 262 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.health.nextFrame();
}
}
Instance of Symbol 264 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.black.play();
}
}
Instance of Symbol 270 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.firearm.gotoAndStop(1);
_root.pistol = "yes";
this.nextFrame();
_root.help.help = "Switch weapons by using the number keys";
_root.help.play();
_root.ammo = 7;
}
}
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
_root.trail = true;
Symbol 294 MovieClip Frame 2
_root.bullets.gotoAndStop(15);
_root.trail = false;
Symbol 294 MovieClip Frame 7
_root.bullets.gotoAndStop(1);
Symbol 300 MovieClip Frame 1
_root.ko = true;
Symbol 300 MovieClip Frame 3
_root.ko = false;
Instance of Symbol 296 MovieClip in Symbol 300 MovieClip Frame 13
/* no clip actions */
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
_root.bullets.gotoAndStop(15);
_root.ko = false;
Symbol 301 MovieClip Frame 7
_root.bullets.gotoAndStop(1);
_root.ko = false;
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 2
_root.bullets.gotoAndStop(15);
Symbol 306 MovieClip Frame 8
_root.bullets.gotoAndStop(1);
Symbol 310 MovieClip Frame 7
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 291 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 312 MovieClip Frame 2
stop();
Symbol 313 MovieClip Frame 1
stop();
Instance of Symbol 311 MovieClip "wtype" in Symbol 313 MovieClip Frame 2
onClipEvent (load) {
if (_root.guntype == "shotgun") {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
if (_root.guntype == "flamer") {
this.gotoAndStop(3);
}
}
onClipEvent (load) {
if (_root.guntype == "RPG") {
this.gotoAndStop(4);
}
}
Instance of Symbol 312 MovieClip "trail" in Symbol 313 MovieClip Frame 3
onClipEvent (enterFrame) {
if (((_root.guntype == "pistol") && (_root.trail == true)) && (!this.hitTest(_root.player))) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Instance of Symbol 318 MovieClip "wtype" in Symbol 319 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.guntype == "shotgun") {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.guntype == "flamer") {
this.gotoAndStop(3);
}
}
Symbol 335 MovieClip Frame 1
if (Key.isDown(37)) {
gotoAndPlay (1);
} else if (Key.isDown(39)) {
gotoAndPlay (1);
}
if ((_root.gun.g._currentframe != 1) && (_root.guntype != "knife")) {
gotoAndPlay (30);
} else if ((_root.knife._currentframe != 1) && (_root.guntype == "knife")) {
gotoAndPlay (19);
}
Symbol 335 MovieClip Frame 18
gotoAndPlay (1);
Symbol 347 MovieClip Frame 1
stop();
_root.crouch = false;
Symbol 347 MovieClip Frame 16
this.gotoAndPlay(1);
Symbol 347 MovieClip Frame 18
_root.crouch = true;
Symbol 347 MovieClip Frame 19
gotoAndStop (1);
Symbol 347 MovieClip Frame 22
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 362 MovieClip Frame 143
stop();
Symbol 365 MovieClip Frame 1
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 2
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 3
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 4
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 5
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 6
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 7
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 8
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 9
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 10
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 11
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 12
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 13
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 14
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 15
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 16
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 17
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 18
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 19
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 20
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 21
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 22
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 23
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 24
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 25
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 26
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 27
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 28
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 29
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 30
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 31
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 32
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 33
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 34
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 35
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 36
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 37
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 38
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 39
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 40
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 41
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 42
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 43
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 44
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 45
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 46
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 47
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 48
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 49
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 50
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 51
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 52
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 53
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 54
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 55
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 56
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 57
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 58
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 59
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 60
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 61
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 62
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 63
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 64
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 65
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 66
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 67
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 68
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 69
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 70
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 71
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 72
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 73
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 74
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 75
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 76
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 77
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 78
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 79
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 80
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 81
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 82
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 83
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 84
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 85
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 86
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 365 MovieClip Frame 87
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 15
this.gotoAndStop(1);
Symbol 366 MovieClip Frame 16
_root.mbullets.gotoAndStop(1);
_root.gun3.gotoAndStop(1);
Symbol 368 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
if (_root.guntype == "M4A1") {
m4s.play();
}
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 2
_root.m4am.nextFrame();
Symbol 385 MovieClip Frame 4
gotoAndStop (1);
Symbol 387 MovieClip Frame 1
_root.moveright = true;
Symbol 387 MovieClip Frame 50
_root.moveright = false;
Symbol 403 MovieClip Frame 1
stop();
Instance of Symbol 397 MovieClip "hit" in Symbol 403 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
Symbol 403 MovieClip Frame 13
gotoAndStop (1);
Symbol 403 MovieClip Frame 14
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 15
gotoAndStop (1);
Symbol 494 MovieClip Frame 17
if (_root.guntype == "flamer") {
_root.rsc.r2.play();
} else {
_root.rsc.r1.play();
}
Symbol 495 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 27
gotoAndStop (1);
Symbol 500 MovieClip Frame 28
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
stop();
Symbol 527 MovieClip Frame 40
stop();
_root.gun3.gotoAndStop(1);
_root.mbullets.gotoAndStop(1);
Symbol 533 Button
on (release, keyPress "<Enter>") {
Selection.setFocus(null);
if (_root.message == "a") {
} else if (_root.message == "dead") {
_root.speech.bye.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "ack! im dead!";
} else if (_root.message == "crap") {
_root.speech.crap.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "this is pure crap btw";
} else if (_root.message == "doomed") {
_root.speech.doomed.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "we're all doomed!";
} else if (_root.message == "doomed") {
_root.speech.doomed.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "we're all doomed!";
} else if (_root.message == "first blood") {
_root.speech.firstblood.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "the first blood of war";
} else if (_root.message == "playing?") {
_root.speech.hello.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "are you still playing?";
} else if (_root.message == "watch this") {
_root.speech.watch.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "watch this";
} else if (_root.message == "god") {
_root.health.gotoAndStop("god");
_root.help.help = "GOD MODE!! Effect will wear off if you collect health...";
_root.help.play();
} else if (_root.message == "ungod") {
_root.health.gotoAndStop(1);
_root.help.help = "de-activated god mode...";
_root.help.play();
} else if (_root.message == "suicide") {
_root.health.gotoAndStop(60);
} else if (_root.message == "loaded") {
_root.pistol = "yes";
_root.m4a1 = "yes";
_root.m4am.gotoAndStop(2);
_root.shotgun = "yes";
_root.flamer = "yes";
_root.ammo = 7;
_root.gun3.gotoAndStop(1);
_root.help.help = "LOADED ALL WEAPONS!!!";
_root.help.play();
} else {
_root.sb.play();
_root.sb.talk = _root.message;
}
}
on (keyPress "<Backspace>") {
_root.message = "";
}
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 59
stop();
Symbol 546 MovieClip Frame 60
_root.red.gotoAndPlay(2);
_visible = 0;
Symbol 546 MovieClip Frame 61
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 2
_root.stopAllSounds();
_root.dead = true;
Symbol 608 MovieClip Frame 114
tellTarget ("_root") {
gotoAndStop ("lose");
};
Symbol 610 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 2
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 3
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 4
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 5
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 6
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 8
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 614 MovieClip Frame 20
gotoAndStop (1);
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 2
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 616 MovieClip Frame 3
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 616 MovieClip Frame 5
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 616 MovieClip Frame 20
gotoAndStop (1);
Symbol 659 MovieClip Frame 12
stop();
_root.score = _root.score + 40;
Symbol 660 MovieClip Frame 1
stop();
Symbol 665 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 671 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 28
stop();
Symbol 682 MovieClip Frame 1
stop();
_root.checkpoint1 = false;
Instance of Symbol 675 MovieClip in Symbol 682 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = false;
}
Symbol 682 MovieClip Frame 2
_root.checkpoint1 = true;
stop();
Symbol 685 MovieClip Frame 1
stop();
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 665 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.health._currentframe != 61)) {
_root.regen.play();
this.gotoAndStop(11);
}
}
Instance of Symbol 270 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.firearm.gotoAndStop(1);
_root.pistol = "yes";
this.nextFrame();
_root.help.help = "Switch weapons by using the number keys";
_root.help.play();
_root.ammo = 7;
}
}
Instance of Symbol 665 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.health._currentframe != 61)) {
_root.regen.play();
this.gotoAndStop(11);
}
}
Instance of Symbol 668 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.black.play();
}
}
Instance of Symbol 671 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "shotgun";
_root.gun.gotoAndStop(1);
_root.shotgun = "yes";
this.nextFrame();
}
}
Instance of Symbol 674 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "M4A1";
_root.m4a1 = "yes";
_root.gun3.gotoAndStop(1);
this.nextFrame();
_root.help.help = "TIPS: Replenish M4A1 ammo by collecting ammo boxes";
_root.help.play();
}
}
Instance of Symbol 682 MovieClip "check1" in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (this.hitTest(_root.player)) {
gotoAndStop (2);
}
}
}
Instance of Symbol 685 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.rsc.r1.play();
_root.m4am.gotoAndStop(2);
this.nextFrame();
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 687 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.nextFrame();
}
}
Instance of Symbol 698 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player._x = _root.player._x - 3;
}
}
Instance of Symbol 700 MovieClip "gear" in Symbol 702 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
Instance of Symbol 698 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player._x = _root.player._x - 3;
}
}
Instance of Symbol 698 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player._x = _root.player._x - 3;
}
}
Instance of Symbol 700 MovieClip "gear1" in Symbol 702 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
Instance of Symbol 257 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Symbol 712 MovieClip Frame 32
stop();
_root.score = _root.score + 30;
Symbol 713 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 6
gotoAndStop (1);
Symbol 730 Button
on (release, keyPress "<Enter>") {
Selection.setFocus(null);
if (_root.message == "a") {
} else if (_root.message == "god") {
_root.health.gotoAndStop("god");
_root.help.help = "GOD MODE!!";
_root.help.play();
} else if (_root.message == "dead") {
_root.health.gotoAndStop(60);
} else if (_root.message == "ungod") {
_root.health.gotoAndStop(1);
_root.help.help = "de-activated god mode...";
_root.help.play();
} else if (_root.message == "loaded") {
_root.pistol = "yes";
_root.m4a1 = "yes";
_root.m4am.gotoAndStop(2);
_root.shotgun = "yes";
_root.flamer = "yes";
_root.ammo = 7;
_root.gun3.gotoAndStop(1);
_root.help.help = "LOADED ALL WEAPONS!!!";
_root.rsc.r1.play();
_root.help.play();
} else {
_root.sb.play();
_root.sb.talk = _root.message;
}
}
on (keyPress "<Backspace>") {
_root.message = "";
}
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 2
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 3
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 4
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 5
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 6
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 7
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 8
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 9
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 10
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 11
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 12
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 13
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 14
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 15
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 16
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 17
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 18
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 19
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 20
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 21
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 22
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 23
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 24
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 25
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 26
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 27
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 28
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 29
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 30
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 31
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 32
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 33
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 34
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 35
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 36
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 37
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 38
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 39
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 40
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 41
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 42
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 43
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 44
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 45
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 46
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 47
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 48
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 49
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 50
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 51
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 52
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 53
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 54
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 55
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 56
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 57
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 58
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 59
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 60
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 61
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 62
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 63
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 64
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 65
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 66
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 67
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 68
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 69
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 734 MovieClip Frame 70
if (_root.health._currentframe == "god") {
gotoAndStop (1);
} else {
_root.health.prevFrame();
}
Symbol 743 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 1
stop();
Instance of Symbol 665 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.gotoAndStop(1);
this.gotoAndStop(11);
}
}
Instance of Symbol 661 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 661 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
}
Instance of Symbol 270 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "pistol";
_root.gun.gotoAndStop(1);
_root.gun.firearm.gotoAndStop(1);
_root.pistol = "yes";
this.nextFrame();
_root.help.help = "Switch weapons by using the number keys";
_root.help.play();
}
}
Instance of Symbol 665 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.gotoAndStop(1);
this.gotoAndStop(11);
}
}
Instance of Symbol 661 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 20) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 20) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx + 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x <= (startx + 1)) {
distance = newx - _x;
_xscale = 100;
} else if (_x >= newx) {
distance = startx - _x;
_xscale = -100;
}
if (distance > 0) {
_x = (_x + movespeed);
} else if (distance < 0) {
_x = (_x - movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 257 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
startx = _x;
newx = startx - 180;
movespeed = 4;
}
onClipEvent (enterFrame) {
if (death._currentframe >= 20) {
this.stop();
}
if (death._currentframe < 20) {
_root.ground.hitTest(_x, _y, true);
if (_x >= (startx - 1)) {
distance = _x - newx;
_xscale = 100;
} else if (_x <= newx) {
distance = _x - startx;
_xscale = -100;
}
if (distance > 0) {
_x = (_x - movespeed);
} else if (distance < 0) {
_x = (_x + movespeed);
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("gib");
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop(2);
}
} else if (_root.guntype == "flamer") {
this.death.nextFrame();
this.death.burn.play();
this.death.body.gotoAndStop(3);
} else {
this.death.nextFrame();
this.death.blood.play();
this.death.body.gotoAndStop("2");
}
} else {
movespeed = 4;
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe < 20) {
if (this.hitTest(_root.player)) {
_root.damage.play();
}
}
}
Instance of Symbol 743 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.nextFrame();
_root.help.help = "HINT: Bridge of corpses...";
_root.help.play();
}
}
Instance of Symbol 668 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.black.play();
}
}
Instance of Symbol 747 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.guntype = "flamer";
_root.gun.gotoAndStop(1);
_root.flamer = "yes";
this.nextFrame();
}
}
Instance of Symbol 687 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.nextFrame();
}
}
Instance of Symbol 687 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.health.nextFrame();
}
}
Symbol 750 MovieClip Frame 1
stop();
Instance of Symbol 751 MovieClip in Symbol 752 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 6) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 6) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 6) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
}
Instance of Symbol 751 MovieClip in Symbol 752 MovieClip Frame 1
onClipEvent (enterFrame) {
if (death._currentframe == 6) {
this.stop();
if (this.hitTest(_root.mbullets)) {
this.death.blood.play();
}
if (this.hitTest(_root.bullets)) {
this.death.blood.play();
}
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.blood.play();
}
}
}
if (death._currentframe != 6) {
if (_root.knife._currentframe > 1) {
if (this.hitTest(_root.knife)) {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.bullets)) {
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
};
_root.bullets.wtype.ex.play();
if (_root.guntype == "shotgun") {
if (_root.ko == true) {
this.death.gotoAndStop("die");
} else {
this.death.nextFrame();
this.death.blood.play();
}
} else {
this.death.nextFrame();
this.death.blood.play();
}
}
if (this.hitTest(_root.mbullets)) {
this.death.nextFrame();
this.death.blood.play();
}
if (this.hitTest(_root.hit)) {
this.death.nextFrame();
this.death.blood.play();
}
}
}
onClipEvent (enterFrame) {
if (death._currentframe != 6) {
if (this.hitTest(_root.player)) {
_root.damage.nextFrame();
}
}
}
Symbol 758 MovieClip Frame 36
stop();
_root.score = _root.score + 30;
Symbol 759 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (hitTest(_root.bullets)) {
_root.pains.play();
_parent.hurt();
}
if (hitTest(_root.mbullets)) {
_root.pains.play();
_parent.hurt();
}
if (hitTest(_root.knife.hit)) {
_root.pains.play();
_parent.hurt();
}
};
Symbol 806 MovieClip Frame 1
_visible = false;
Instance of Symbol 806 MovieClip in Symbol 834 MovieClip Frame 5
onClipEvent (enterFrame) {
if (hitTest(_root.player) && (_root.player.walk._currentframe != 18)) {
_root.bossdamage.play();
_root.player.bloodspurt.play();
}
}
Symbol 834 MovieClip Frame 26
_parent.gotoAndStop("idle");
Instance of Symbol 806 MovieClip in Symbol 837 MovieClip Frame 22
onClipEvent (enterFrame) {
if (hitTest(_root.player)) {
_root.bossdamage.play();
_root.player.bloodspurt.play();
}
}
Symbol 837 MovieClip Frame 42
_parent.gotoAndStop("idle");
Symbol 868 MovieClip Frame 1
_root.bullets.wtype.ex.play();
Symbol 868 MovieClip Frame 13
_root.score = _root.score + 20;
Symbol 868 MovieClip Frame 34
_root.createCoin(_parent._x, _parent._y - 40);
_root.createCoin(_parent._x, _parent._y - 40);
_root.createCoin(_parent._x, _parent._y - 40);
_root.createCoin(_parent._x, _parent._y - 40);
_root.createCoin(_parent._x, _parent._y - 40);
Symbol 868 MovieClip Frame 36
_parent.onEnterFrame = null;
Symbol 868 MovieClip Frame 72
stop();
_root.blackwin.play();
Symbol 869 MovieClip Frame 1
function hurt() {
bosshealth.gotoAndPlay(2);
if (_root.guntype == "pistol") {
life = life - 5;
} else if (_root.guntype == "shotgun") {
if (totaldist <= 100) {
life = life - 20;
} else if ((totaldist > 100) && (totaldist <= 200)) {
life = life - 10;
} else if (totaldist > 200) {
life = life - 5;
}
} else if (_root.guntype == "M4A1") {
life = life - 7;
} else if (_root.guntype == "knife") {
life = life - 10;
} else {
life = life - 10;
}
pain.play();
tellTarget ("_root.bullets") {
xmove = null;
ymove = null;
wtype.ex.play();
};
}
stop();
onEnterFrame = function () {
xdis = _x - _root.player._x;
ydis = _y - _root.player._y;
totaldist = Math.sqrt((xdis * xdis) + (ydis * ydis));
if (!gVars) {
speed = 7;
grav = 1;
life = 2500;
gVars = true;
}
if (_root.enemyjump.hitTest(_x, _y, true)) {
}
jump = true;
while (_root.ground.hitTest(_x + 40, _y - 50, true)) {
_x = (_x-1);
_x = (_x-1);
if (random(3) == 1) {
jump = true;
}
jump = true;
}
while (_root.ground.hitTest(_x - 40, _y - 50, true)) {
_x = (_x+1);
_x = (_x+1);
if (random(3) == 1) {
jump = true;
}
}
if (grav == 0) {
jump = false;
}
if (jump == true) {
gotoAndStop ("run");
_y = (_y - 20);
}
if (life <= 0) {
gotoAndStop ("die");
}
if (hitTest(_root.black)) {
active = true;
} else {
active = false;
}
if (!_root.ground.hitTest(_x, _y, true)) {
grav = grav + 6;
_y = (_y + grav);
}
grav = 0;
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
_y = (_y-1);
grav = 0;
}
};
Instance of Symbol 802 MovieClip in Symbol 869 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.active) {
if (random(30) == 1) {
_parent.gotoAndStop("run");
}
if (random(6) == 1) {
if ((_root.player._x > (_parent._x + 50)) || (_root.player._x < (_parent._x - 50))) {
_parent.gotoAndStop("run");
}
}
}
}
Instance of Symbol 806 MovieClip in Symbol 869 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(400) == 1) {
_parent.gotoAndStop("attack2");
}
if (hitTest(_root.player)) {
if (random(20) == 1) {
_parent.gotoAndStop("attack");
} else if (random(20) == 2) {
_parent.gotoAndStop("attack2");
}
}
}
Instance of Symbol 50 MovieClip in Symbol 869 MovieClip Frame 1
onClipEvent (load) {
l = _parent.life;
}
Instance of Symbol 808 MovieClip in Symbol 869 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.active) {
if (random(8) > 4) {
if (!_parent.jump) {
if (_root.player._x > (_parent._x + 50)) {
_parent._xscale = 100;
}
if (_root.player._x < (_parent._x - 50)) {
_parent._xscale = -100;
}
}
}
if (_parent._xscale == 100) {
_parent._x = _parent._x + _parent.speed;
}
if (_parent._xscale == -100) {
_parent._x = _parent._x - _parent.speed;
}
if (random(10) == 5) {
_parent.gotoAndStop("idle");
}
}
}
Symbol 878 Button
on (release, keyPress "<Enter>") {
Selection.setFocus(null);
if (_root.message == "a") {
} else if (_root.message == "dead") {
_root.speech.bye.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "ack! im dead!";
} else if (_root.message == "crap") {
_root.speech.crap.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "this is pure crap btw";
} else if (_root.message == "doomed") {
_root.speech.doomed.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "we're all doomed!";
} else if (_root.message == "doomed") {
_root.speech.doomed.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "we're all doomed!";
} else if (_root.message == "first blood") {
_root.speech.firstblood.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "the first blood of war";
} else if (_root.message == "playing?") {
_root.speech.hello.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "are you still playing?";
} else if (_root.message == "watch this") {
_root.speech.watch.play();
_root.player.torso.play();
_root.sb.play();
_root.sb.talk = "watch this";
} else if (_root.message == "god") {
_root.health.gotoAndStop("god");
_root.help.help = "GOD MODE!! Effect will wear off if you collect health...";
_root.help.play();
} else if (_root.message == "ungod") {
_root.health.gotoAndStop(1);
_root.help.help = "de-activated god mode...";
_root.help.play();
} else if (_root.message == "loaded") {
_root.pistol = "yes";
_root.m4a1 = "yes";
_root.m4am.gotoAndStop(2);
_root.shotgun = "yes";
_root.flamer = "yes";
_root.ammo = 7;
_root.gun3.gotoAndStop(1);
_root.help.help = "LOADED ALL WEAPONS!!!";
_root.help.play();
} else {
_root.sb.play();
_root.sb.talk = _root.message;
}
}
on (keyPress "<Backspace>") {
_root.message = "";
}
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 56
tellTarget ("_root") {
play();
};
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 2
_root.health.nextFrame();
_root.player.bloodspurt.play();
Symbol 883 MovieClip Frame 3
_root.health.nextFrame();
Symbol 883 MovieClip Frame 4
_root.health.nextFrame();
Symbol 883 MovieClip Frame 5
_root.health.nextFrame();
Symbol 883 MovieClip Frame 6
_root.health.nextFrame();
Symbol 883 MovieClip Frame 7
_root.health.nextFrame();
Symbol 883 MovieClip Frame 8
_root.health.nextFrame();
Symbol 883 MovieClip Frame 9
_root.health.nextFrame();
Symbol 883 MovieClip Frame 10
_root.health.nextFrame();
Symbol 883 MovieClip Frame 11
_root.health.nextFrame();
Symbol 883 MovieClip Frame 12
_root.health.nextFrame();
Symbol 883 MovieClip Frame 13
_root.health.nextFrame();
Symbol 883 MovieClip Frame 14
_root.health.nextFrame();
Symbol 883 MovieClip Frame 15
_root.health.nextFrame();
Symbol 883 MovieClip Frame 16
_root.health.nextFrame();
Symbol 883 MovieClip Frame 17
_root.health.nextFrame();
Symbol 883 MovieClip Frame 18
_root.health.nextFrame();
Symbol 883 MovieClip Frame 19
_root.health.nextFrame();
Symbol 883 MovieClip Frame 20
gotoAndStop (1);
Symbol 889 Button
on (press) {
_root.score = 0;
_root.ammo = 0;
_root.guntype = "knife";
_root.mek = "no";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamethrower = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
on (press, keyPress "<Enter>") {
if (_root.pass == "FROM HELL") {
gotoAndPlay (357);
_root.ammo = 0;
} else if (_root.pass == "from hell") {
gotoAndPlay (357);
_root.ammo = 0;
} else if (_root.pass == "From Hell") {
gotoAndPlay (357);
_root.ammo = 0;
} else if (_root.pass == "from Hell") {
gotoAndPlay (357);
_root.ammo = 0;
} else if (_root.pass == "From hell") {
gotoAndPlay (357);
_root.ammo = 0;
} else if (_root.pass == "Metropolis") {
gotoAndPlay (263);
_root.ammo = 0;
} else if (_root.pass == "METROPOLIS") {
gotoAndPlay (263);
_root.ammo = 0;
} else if (_root.pass == "metropolis") {
gotoAndPlay (263);
_root.ammo = 0;
} else if (_root.pass == "The Raja") {
gotoAndPlay (451);
_root.ammo = 0;
} else if (_root.pass == "THE RAJA") {
gotoAndPlay (451);
_root.ammo = 0;
} else if (_root.pass == "the Raja") {
gotoAndPlay (451);
_root.ammo = 0;
} else if (_root.pass == "The raja") {
gotoAndPlay (451);
_root.ammo = 0;
} else if (_root.pass == "the raja") {
gotoAndPlay (451);
_root.ammo = 0;
} else {
gotoAndPlay (169);
_root.ammo = 0;
}
}
Symbol 890 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Symbol 909 Button
on (press) {
_root.score = 0;
_root.ammo = 0;
_root.guntype = "knife";
_root.mek = "no";
_root.pistol = "no";
_root.shotgun = "no";
_root.flamethrower = "no";
_root.m4a1 = "no";
_root.rpg = "no";
_root.checkpoint1.gotoAndStop(1);
_root.checkpoint1 = false;
}
on (press, keyPress "<Enter>") {
if (_root.pass == "FROM HELL") {
gotoAndPlay (264);
_root.ammo = 0;
} else if (_root.pass == "from hell") {
gotoAndPlay (264);
_root.ammo = 0;
} else if (_root.pass == "From Hell") {
gotoAndPlay (264);
_root.ammo = 0;
} else if (_root.pass == "from Hell") {
gotoAndPlay (264);
_root.ammo = 0;
} else if (_root.pass == "From hell") {
gotoAndPlay (264);
_root.ammo = 0;
} else if (_root.pass == "Metropolis") {
gotoAndPlay (170);
_root.ammo = 0;
} else if (_root.pass == "METROPOLIS") {
gotoAndPlay (170);
_root.ammo = 0;
} else if (_root.pass == "metropolis") {
gotoAndPlay (170);
_root.ammo = 0;
} else if (_root.pass == "The Raja") {
gotoAndPlay (358);
_root.ammo = 0;
} else if (_root.pass == "THE RAJA") {
gotoAndPlay (358);
_root.ammo = 0;
} else if (_root.pass == "the Raja") {
gotoAndPlay (358);
_root.ammo = 0;
} else if (_root.pass == "The raja") {
gotoAndPlay (358);
_root.ammo = 0;
} else if (_root.pass == "the raja") {
gotoAndPlay (358);
_root.ammo = 0;
} else {
gotoAndPlay (169);
_root.ammo = 0;
}
}
Instance of Symbol 911 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.checkpoint1 == true) {
_alpha = 100;
} else {
alpha = 0;
}
}
Symbol 914 Button
on (press) {
if (_root.checkpoint1 == true) {
_root.score = 0;
_root.ammo = 0;
_root.guntype = "knife";
_root.mek = "no";
_root.pistol = "yes";
_root.shotgun = "yes";
_root.flamethrower = "no";
_root.m4a1 = "no";
_root.rpg = "no";
gotoAndPlay (263);
} else {
}
}