Frame 2
stop();
Frame 5
stop();
music1 = new Sound();
music1.attachSound("song2");
music1.start();
Frame 25
stop();
pistol = 1;
smg = 0;
shotgun = 0;
rifle = 0;
gun = 1;
light = 0;
health = 100;
score = 0;
var reloadtime = new Array(90);
var ammo = new Array(90);
var clip = new Array(90);
var clipsize = new Array(90);
var damage = new Array(90);
ammo[10] = 99999 /* 0x01869F */;
clip[10] = 99999 /* 0x01869F */;
clipsize[10] = 99999 /* 0x01869F */;
reloadtime[10] = 30;
damage[10] = 0.5;
ammo[1] = 25;
clip[1] = 8;
clipsize[1] = 8;
reloadtime[1] = 30;
damage[1] = 2;
ammo[2] = 0;
clip[2] = 0;
clipsize[2] = 20;
reloadtime[2] = 50;
damage[2] = 2;
ammo[3] = 0;
clip[3] = 0;
clipsize[3] = 6;
reloadtime[3] = 50;
damage[3] = 2;
ammo[4] = 0;
clip[4] = 0;
clipsize[4] = 5;
reloadtime[4] = 40;
damage[4] = 15;
reloader._width = 1;
spawndelay = 130;
needkill = 5;
money = 10;
day = 0;
Frame 26
stop();
Frame 30
stop();
Mouse.hide();
music1.stop();
onscreen = 0;
enemycounter = 0;
day++;
attachMovie("man", "man", 9899);
man._width = 36.41;
man._height = 46.5;
attachMovie("dayt", "dayt", 20000);
dayt.txt.text = "Day: " + day;
dayt._x = -50;
dayt._y = -50;
music1 = new Sound();
music1.attachSound("song2");
music1.start();
svar = 25000;
attachMovie("knifeammo", "knifeammo", 9910);
attachMovie("pistolammo", "pistolammo", 9911);
attachMovie("smgammo", "smgammo", 9912);
attachMovie("shotgunammo", "shotgunammo", 9913);
attachMovie("rifleammo", "rifleammo", 9914);
attachMovie("guns", "guns", 9915);
guns._x = 15;
guns._y = 10;
knifeammo._y = 40;
pistolammo._y = 40;
smgammo._y = 40;
shotgunammo._y = 40;
rifleammo._y = 40;
knifeammo._x = 3;
pistolammo._x = 75;
smgammo._x = 140;
shotgunammo._x = 230;
rifleammo._x = 350;
attachMovie("aimer", "aimer", 10000);
attachMovie("darkness", "darkness", 9900);
if (light == 1) {
attachMovie("darkness1", "darkness", 9900);
}
if (light == 2) {
attachMovie("darkness2", "darkness", 9900);
}
attachMovie("reloaderback", "reloaderback", 10003);
attachMovie("reloader", "reloader", 10002);
attachMovie("healthbarback", "healthbarback", 10004);
attachMovie("healthbar", "healthbar", 10005);
attachMovie("healthword", "healthword", 10006);
attachMovie("reloadword", "reloadword", 10007);
reloaderback._x = 569;
reloaderback._y = 30;
reloader._x = 570;
reloader._y = 30;
healthbarback._x = 569;
healthbarback._y = 14;
healthbar._x = 570;
healthbar._y = 14;
healthword._x = 512;
healthword._y = 3;
reloadword._x = 510;
reloadword._y = 27;
man._x = 330;
man._y = 240;
radius = 17;
nextlevel = false;
deadvar = 100;
shotgunbullets = 50;
moving = false;
man.stop();
holdingtrigger = false;
delay = 10;
delaytimer = 0;
manual_reloading = false;
reloading = false;
manual_re_timer = 0;
re_timer = 0;
fired = 550;
spawntimer = 0;
evar = 7000;
shooting = false;
shoot_timer = 0;
var start_x;
var start_y;
var start_x2;
var start_y2;
bvar = 1000;
var brot;
killcount = 0;
music1.onSoundComplete = function () {
music1.start();
};
if (gun == 10) {
man.person.gotoAndStop(1);
}
if (gun == 1) {
man.person.gotoAndStop(10);
}
if (gun == 2) {
man.person.gotoAndStop(16);
}
if (gun == 3) {
man.person.gotoAndStop(24);
}
if (gun == 4) {
man.person.gotoAndStop(28);
}
aimer.onEnterFrame = function () {
if (moving == false) {
man.legs.stop();
}
if (moving == true) {
man.legs.play();
}
if (shooting == true) {
man.person.play();
}
if (_root.attacking == true) {
}
dayt._alpha--;
if (dayt._alpha <= 0) {
dayt.removeMovieClip();
}
darkness._x = man._x;
darkness._y = man._y;
darkness._rotation = man._rotation;
if (health <= 0) {
nextlevel = true;
killcount = 0;
nextlevel = true;
darkness.removeMovieClip();
aimer.removeMovieClip();
man.removeMovieClip();
wall.removeMovieClip();
guns.removeMovieClip();
knifeammo.removeMovieClip();
pistolammo.removeMovieClip();
smgammo.removeMovieClip();
shotgunammo.removeMovieClip();
rifleammo.removeMovieClip();
reloader.removeMovieClip();
reloaderback.removeMovieClip();
healthbar.removeMovieClip();
healthbarback.removeMovieClip();
healthword.removeMovieClip();
reloadword.removeMovieClip();
Mouse.show();
_root.gotoAndPlay(35);
}
if (killcount >= needkill) {
killcount = 0;
nextlevel = true;
darkness.removeMovieClip();
aimer.removeMovieClip();
man.removeMovieClip();
wall.removeMovieClip();
gotoAndPlay (40);
reloader.removeMovieClip();
reloaderback.removeMovieClip();
healthbar.removeMovieClip();
healthbarback.removeMovieClip();
healthword.removeMovieClip();
reloadword.removeMovieClip();
guns.removeMovieClip();
knifeammo.removeMovieClip();
pistolammo.removeMovieClip();
smgammo.removeMovieClip();
shotgunammo.removeMovieClip();
rifleammo.removeMovieClip();
}
aimer._x = _root._xmouse;
aimer._y = _root._ymouse;
radians = Math.atan2(_root._ymouse - man._y, _root._xmouse - man._x);
degrees = (radians / Math.PI) * 180;
man._rotation = degrees;
speed = 4;
moving = false;
if (!_root.wall.hitTest(man._x, man._y, true)) {
if (Key.isDown(65)) {
man._x = man._x - speed;
moving = true;
}
if (Key.isDown(68)) {
man._x = man._x + speed;
moving = true;
}
if (Key.isDown(87)) {
man._y = man._y - speed;
moving = true;
}
if (Key.isDown(83)) {
man._y = man._y + speed;
moving = true;
}
}
while (_root.wall.hitTest(man._x, man._y + radius, true)) {
man._y--;
}
while (_root.wall.hitTest(man._x, man._y - radius, true)) {
man._y++;
}
while (_root.wall.hitTest(man._x - radius, man._y, true)) {
man._x++;
}
while (_root.wall.hitTest(man._x + radius, man._y, true)) {
man._x--;
}
while (man._x < 15) {
man._x++;
}
while (man._x > 645) {
man._x--;
}
while (man._y < 15) {
man._y++;
}
while (man._y > 465) {
man._y--;
}
radius = 15;
if ((Key.isDown(49) and (manual_reloading == false)) and (reloading == false)) {
gun = 10;
man.person.gotoAndStop(1);
}
if ((Key.isDown(50) and (manual_reloading == false)) and (reloading == false)) {
gun = 1;
man.person.gotoAndStop(10);
}
if (((Key.isDown(51) and (smg >= 1)) and (manual_reloading == false)) and (reloading == false)) {
gun = 2;
man.person.gotoAndStop(16);
}
if (((Key.isDown(52) and (shotgun >= 1)) and (manual_reloading == false)) and (reloading == false)) {
gun = 3;
man.person.gotoAndStop(24);
}
if (((Key.isDown(53) and (rifle >= 1)) and (manual_reloading == false)) and (reloading == false)) {
gun = 4;
man.person.gotoAndStop(28);
}
if (gun == 10) {
delay = 25;
guns.knifepic.gotoAndStop(2);
guns.pistolpic.gotoAndStop(1);
guns.smgpic.gotoAndStop(1);
guns.shotgunpic.gotoAndStop(1);
guns.riflepic.gotoAndStop(1);
}
if (gun == 1) {
delay = 13;
guns.knifepic.gotoAndStop(1);
guns.pistolpic.gotoAndStop(2);
guns.smgpic.gotoAndStop(1);
guns.shotgunpic.gotoAndStop(1);
guns.riflepic.gotoAndStop(1);
}
if (gun == 2) {
delay = 3;
guns.knifepic.gotoAndStop(1);
guns.pistolpic.gotoAndStop(1);
guns.smgpic.gotoAndStop(2);
guns.shotgunpic.gotoAndStop(1);
guns.riflepic.gotoAndStop(1);
}
if (gun == 3) {
delay = 30;
guns.knifepic.gotoAndStop(1);
guns.pistolpic.gotoAndStop(1);
guns.smgpic.gotoAndStop(1);
guns.shotgunpic.gotoAndStop(2);
guns.riflepic.gotoAndStop(1);
}
if (gun == 4) {
delay = 25;
guns.knifepic.gotoAndStop(1);
guns.pistolpic.gotoAndStop(1);
guns.smgpic.gotoAndStop(1);
guns.shotgunpic.gotoAndStop(1);
guns.riflepic.gotoAndStop(2);
}
delaytimer++;
if ((reloading == false) && (manual_reloading == false)) {
if ((delaytimer >= delay) && (holdingtrigger == true)) {
delaytimer = 0;
fire();
}
}
if (clip[gun] != clipsize[gun]) {
if (Key.isDown(82)) {
if (reloading == false) {
if (gun != 10) {
manual_reloading = true;
}
}
}
}
if (manual_reloading == true) {
manual_re_timer++;
}
if (reloading == true) {
re_timer++;
}
if (manual_re_timer >= reloadtime[gun]) {
manual_reloading = false;
manual_re_timer = 0;
manualreload();
}
if (re_timer >= reloadtime[gun]) {
reloading = false;
re_timer = 0;
reload();
}
if (re_timer == 17) {
if (gun != 10) {
mysound2 = new Sound();
mysound2.attachSound("reload");
mysound2.start();
}
}
if (manual_re_timer == 17) {
mysound2 = new Sound();
mysound2.attachSound("reload");
mysound2.start();
}
display1 = (clip[1] + " / ") + ammo[1];
display2 = (clip[2] + " / ") + ammo[2];
display3 = (clip[3] + " / ") + ammo[3];
display4 = (clip[4] + " / ") + ammo[4];
knifeammo.txt.text = "Unlimited";
pistolammo.txt.text = display1;
smgammo.txt.text = display2;
shotgunammo.txt.text = display3;
rifleammo.txt.text = display4;
if (reloading == true) {
re_time = reloadtime[gun];
re_decimal = re_timer / re_time;
re_percent = re_decimal * 87;
reloader._width = re_percent;
}
if (manual_reloading == true) {
re_time = reloadtime[gun];
re_decimal = manual_re_timer / re_time;
re_percent = re_decimal * 87;
reloader._width = re_percent;
}
if ((reloading == false) && (manual_reloading == false)) {
reloader._width = 0;
}
healthtext.text = "Health";
healthpercent = health / 100;
healthpercent = healthpercent * 84;
healthbar._width = healthpercent;
if (gun == 10) {
hitline10._x = man._x;
hitline10._y = man._y;
hitline10._rotation = man._rotation;
}
if (shoot_timer >= 1) {
shooting = false;
}
if (shooting == true) {
shoot_timer++;
}
spawntimer++;
if (((spawntimer >= spawndelay) and (enemycounter < needkill)) and (onscreen < 10)) {
spawntimer = 0;
num = Math.round(Math.random() * 5) - 2;
if (day >= 3) {
num++;
}
if (day >= 7) {
num++;
}
if (day >= 12) {
num++;
}
if (num < 1) {
num = 1;
}
var c;
c = num;
while (c > 0) {
side = Math.round(Math.random() * 3);
enemycounter++;
if (side == 0) {
start_x = -50;
start_y = Math.round((Math.random() * 580) - 50);
}
if (side == 1) {
start_x = Math.round((Math.random() * 730) - 50);
start_y = -50;
}
if (side == 2) {
start_x = 680;
start_y = Math.round((Math.random() * 580) - 50);
}
if (side == 3) {
start_x = Math.round((Math.random() * 730) - 50);
start_y = 530;
}
evar++;
etype = Math.round(Math.random() * 2);
if (day >= 2) {
etype = etype + Math.round(Math.random());
}
if (day >= 4) {
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
}
if (day >= 9) {
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
}
if (day >= 12) {
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
etype = etype + Math.round(Math.random());
}
if (etype <= 1) {
spawned = attachMovie("enemy1", "e" + evar, evar, {_x:start_x, _y:start_y});
type = 1;
}
if (etype == 2) {
spawned = attachMovie("enemy2", "e" + evar, evar, {_x:start_x, _y:start_y});
type = 2;
}
if (etype == 3) {
spawned = attachMovie("enemy3", "e" + evar, evar, {_x:start_x, _y:start_y});
type = 3;
}
if (etype == 4) {
spawned = attachMovie("enemy4", "e" + evar, evar, {_x:start_x, _y:start_y});
type = 4;
}
if (etype >= 5) {
spawned = attachMovie("enemy5", "e" + evar, evar, {_x:start_x, _y:start_y});
type = 5;
}
spawned.ai = false;
_root["e" + evar]._width = 45;
_root["e" + evar]._height = 30;
spawned.onEnterFrame = function () {
this.type = type;
if (this.ai == false) {
radians = Math.atan2(man._y - this._y, man._x - this._x);
degrees = (radians / Math.PI) * 180;
this._rotation = degrees;
this.dirx = Math.cos((degrees * Math.PI) / 180) * 90;
this.diry = Math.sin((degrees * Math.PI) / 180) * 90;
}
a = this._x - man._x;
b = this._y - man._y;
a = a * a;
b = b * b;
c = a + b;
c = Math.sqrt(c);
dist = c;
if (_root.wall.hitTest(this._x + (this.dirx * 0.5), this._y + (this.diry * 0.5), true)) {
this._x = this._x - (this.dirx / 50);
this._y = this._y - (this.diry / 50);
this.ai = true;
this.counter = 0;
}
if (this.ai == true) {
radians = Math.atan2(man._y - this._y, man._x - this._x);
degrees = (radians / Math.PI) * 180;
this._rotation = degrees;
this.counter++;
this.aidir = Math.round(Math.random());
if ((this.aidir = 0)) {
degrees = degrees + 90;
}
if ((this.aidir = 1)) {
degrees = degrees - 90;
}
this.dirx = Math.cos((degrees * Math.PI) / 180) * 60;
this.diry = Math.sin((degrees * Math.PI) / 180) * 60;
if (this.counter >= 20) {
this.ai = false;
this.counter = 0;
}
}
if ((!_root.wall.hitTest(this._x + (this.dirx * 0.5), this._y + (this.diry * 0.5), true)) and (dist >= 40)) {
this._x = this._x + (this.dirx / 50);
this._y = this._y + (this.diry / 50);
}
a = this._x - man._x;
b = this._y - man._y;
a = a * a;
b = b * b;
c = a + b;
c = Math.sqrt(c);
this.dist = c;
if ((this.health > 0) && (this.type * 3)) {
} else {
this.health = this.type * 3;
}
if (nextlevel == true) {
this.removeMovieClip();
}
var _local3;
_local3 = fired;
while (_local3 > (fired - 50)) {
if (this.hitTest(_root["bullet" + _local3]._x, _root["bullet" + _local3]._y, true)) {
_root["bullet" + _local3].removeMovieClip();
this._x = this._x - (this.dirx / 20);
this._y = this._y - (this.diry / 20);
bvar++;
blood_x = this._x;
blood_y = this._y;
brot = this._rotation - 180;
brot = brot + (Math.round(Math.random() * 40) - 20);
bloodhit = attachMovie("blood", "b" + bvar, bvar, {_x:blood_x, _y:blood_y});
_root["b" + bvar]._width = Math.round(Math.random() * 90) + 50;
_root["b" + bvar]._height = Math.round((Math.random() * 100) - 10);
_root["b" + bvar]._rotation = brot;
bloodhit.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 10) {
this.removeMovieClip();
}
if (nextlevel == true) {
this.removeMovieClip();
}
};
this.health = this.health - damage[gun];
if (this.health < 1) {
deadvar++;
deadbod = attachMovie("deadzomb", "d" + deadvar, deadvar, {_x:this._x, _y:this._y});
_root["d" + deadvar]._rotation = this._rotation;
money = money + ((this.type * 3) + 2);
score = score + ((this.type * 2) + 1);
killcount++;
this.removeMovieClip();
onscreen--;
}
deadbod.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha <= 10) {
this.removeMovieClip();
}
if (nextlevel == true) {
this.removeMovieClip();
}
};
}
_local3--;
}
};
c--;
}
}
};
aimer.onMouseDown = function () {
holdingtrigger = true;
};
aimer.onMouseUp = function () {
holdingtrigger = false;
};
fire = function () {
if (gun == 3) {
shotgunbullets = 0;
}
if (clip[gun] > 0) {
clip[gun]--;
gunshoteffects();
} else if (ammo[gun] > 0) {
reloading = true;
}
};
gunshoteffects = function () {
if (gun == 3) {
bullets = 5;
}
if (gun != 3) {
bullets = 1;
}
if (gun == 10) {
bullets = 10;
}
var _local3;
_local3 = 0;
while (_local3 < bullets) {
shooting = true;
shoot_timer = 0;
mysound22 = new Sound();
if (gun == 10) {
}
if (gun == 4) {
mysound22.attachSound("gunshot");
}
if ((gun == 3) and (_local3 == 1)) {
mysound22.attachSound("shotgunshot");
}
if ((gun == 1) or (gun == 2)) {
mysound22.attachSound("pistolshot");
}
mysound22.start();
fired++;
rad = Math.atan2(_ymouse - man._y, _xmouse - man._x);
deg = (rad / Math.PI) * 180;
start_x = man._x + (30 * Math.cos((deg * Math.PI) / 180));
start_y = man._y + (30 * Math.sin((deg * Math.PI) / 180));
if (gun == 10) {
start_x = man._x - (5 * Math.cos((deg * Math.PI) / 180));
start_y = man._y - (5 * Math.sin((deg * Math.PI) / 180));
}
firebullet = attachMovie("bullet", "bullet" + fired, fired, {_x:start_x, _y:start_y});
if (gun == 2) {
deg = deg + Math.round((Math.random() * 12) - 6);
}
if ((gun != 3) and (gun != 10)) {
deg = deg + Math.round((Math.random() * 6) - 3);
_root["bullet" + fired]._rotation = deg;
firebullet.dirx = Math.cos((deg * Math.PI) / 180) * 40;
firebullet.diry = Math.sin((deg * Math.PI) / 180) * 40;
}
if (gun == 3) {
shotgunbullets++;
multby = Math.random();
multby = multby * 0.3;
multby = multby + 1;
deg = deg + Math.round((Math.random() * 20) - 10);
_root["bullet" + fired]._rotation = deg;
firebullet.dirx = Math.cos((deg * Math.PI) / 180) * 40;
firebullet.diry = Math.sin((deg * Math.PI) / 180) * 40;
firebullet.dirx = firebullet.dirx * multby;
firebullet.diry = firebullet.diry * multby;
}
if (gun == 10) {
shotgunbullets++;
deg = deg + Math.round((Math.random() * 90) - 70);
_root["bullet" + fired]._rotation = deg;
firebullet.dirx = Math.cos((deg * Math.PI) / 180) * 40;
firebullet.diry = Math.sin((deg * Math.PI) / 180) * 40;
}
firebullet.onEnterFrame = function () {
if (gun == 10) {
this._alpha = 0;
a = this._x - man._x;
b = this._y - man._y;
a = a * a;
b = b * b;
c = a + b;
c = Math.sqrt(c);
dist = c;
if (dist >= 15) {
this.removeMovieClip();
}
}
this._x = this._x + this.dirx;
this._y = this._y + this.diry;
if (_root.wall.hitTest(this._x, this._y, true) or _root.wall.hitTest(this._x - (this.dirx / 2), this._y - (this.diry / 2), true)) {
this.removeMovieClip();
}
};
_local3++;
}
};
reload = function () {
if (ammo[gun] >= clipsize[gun]) {
diff = clipsize[gun] - clip[gun];
ammo[gun] = ammo[gun] - diff;
clip[gun] = clip[gun] + diff;
} else {
clip[gun] = ammo[gun];
ammo[gun] = 0;
}
};
manualreload = function () {
if ((ammo[gun] + clip[gun]) < clipsize[gun]) {
clip[gun] = ammo[gun] + clip[gun];
ammo[gun] = 0;
} else {
diff = clipsize[gun] - clip[gun];
ammo[gun] = ammo[gun] - diff;
clip[gun] = clip[gun] + diff;
}
};
Instance of Symbol 202 MovieClip [wall] "wall" in Frame 30
/* no clip actions */
Frame 35
stop();
scorebox.text = "Score: " + score;
Frame 40
stop();
attachMovie("aimer", "aimer", 10000);
timer = 0;
smg1 = 75;
shotgun1 = 125;
rifle1 = 165;
if (smg == 1) {
buysmg._x = 3000;
attachMovie("purchased", "p1", 3000);
p1._x = x1;
p1._y = y1;
}
if (shotgun == 1) {
buyshotgun._x = 3000;
attachMovie("purchased", "p2", 3001);
p2._x = x2;
p2._y = y2;
}
if (rifle == 1) {
buyrifle._x = 3000;
attachMovie("purchased", "p3", 3002);
p3._x = x3;
p3._y = y3;
}
aimer.onEnterFrame = function () {
if (timer > 0) {
timer--;
}
if (timer <= 0) {
nomoney._y = -100;
}
healthtxt.text = "Health: " + health;
moneybox.text = "Money: " + money;
scorebox.text = "Score: " + score;
ammo1.text = "Current: " + (ammo[1] + clip[1]);
ammo2.text = "Current: " + (ammo[2] + clip[2]);
ammo3.text = "Current: " + (ammo[3] + clip[3]);
ammo4.text = "Current: " + (ammo[4] + clip[4]);
aimer._x = _root._xmouse;
aimer._y = _root._ymouse;
if (smg == 1) {
}
if (shotgun == 1) {
}
if (rifle == 1) {
}
};
Frame 45
stop();
timer = 0;
if (light > 1) {
lightbut._x = 3000;
attachMovie("purchased", "p11", 3000);
p11._x = x11;
p11._y = y11;
price.text = " ";
}
aimer.onEnterFrame = function () {
lightlvl.text = "Upgrade Level: " + light;
pricetxt.text = "Cost: " + price;
moneybox.text = "Money: " + money;
scorebox.text = ("Health: " + health) + "%";
aimer._x = _root._xmouse;
aimer._y = _root._ymouse;
if (timer > 0) {
timer--;
}
if (timer <= 0) {
nomoney._y = -100;
}
if (light == 0) {
price = 40;
}
if (light == 1) {
price = 80;
}
if (light == 2) {
pricetxt.text = " ";
}
};
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 9
if (_root.gun == 10) {
gotoAndPlay (1);
}
if (_root.gun == 1) {
gotoAndPlay (10);
}
if (_root.gun == 2) {
gotoAndPlay (16);
}
if (_root.gun == 3) {
gotoAndPlay (24);
}
if (_root.gun == 4) {
gotoAndPlay (28);
}
Symbol 67 MovieClip Frame 10
stop();
Symbol 67 MovieClip Frame 15
if (_root.gun == 10) {
gotoAndPlay (1);
}
if (_root.gun == 1) {
gotoAndPlay (10);
}
if (_root.gun == 2) {
gotoAndPlay (16);
}
if (_root.gun == 3) {
gotoAndPlay (24);
}
if (_root.gun == 4) {
gotoAndPlay (28);
}
Symbol 67 MovieClip Frame 16
stop();
Symbol 67 MovieClip Frame 23
if (_root.gun == 10) {
gotoAndPlay (1);
}
if (_root.gun == 1) {
gotoAndPlay (10);
}
if (_root.gun == 2) {
gotoAndPlay (16);
}
if (_root.gun == 3) {
gotoAndPlay (24);
}
if (_root.gun == 4) {
gotoAndPlay (28);
}
Symbol 67 MovieClip Frame 24
stop();
Symbol 67 MovieClip Frame 27
if (_root.gun == 10) {
gotoAndPlay (1);
}
if (_root.gun == 1) {
gotoAndPlay (10);
}
if (_root.gun == 2) {
gotoAndPlay (16);
}
if (_root.gun == 3) {
gotoAndPlay (24);
}
if (_root.gun == 4) {
gotoAndPlay (28);
}
Symbol 67 MovieClip Frame 28
stop();
Symbol 67 MovieClip Frame 33
if (_root.gun == 10) {
gotoAndPlay (1);
}
if (_root.gun == 1) {
gotoAndPlay (10);
}
if (_root.gun == 2) {
gotoAndPlay (16);
}
if (_root.gun == 3) {
gotoAndPlay (24);
}
if (_root.gun == 4) {
gotoAndPlay (28);
}
Symbol 76 MovieClip [gun0] Frame 1
stop();
Symbol 85 MovieClip [enemy1] Frame 12
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 85 MovieClip [enemy1] Frame 22
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 85 MovieClip [enemy1] Frame 33
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 85 MovieClip [enemy1] Frame 43
if (_root.dist >= 55) {
gotoAndPlay (1);
}
if (_root.dist <= 55) {
_root.attacking = true;
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
Symbol 85 MovieClip [enemy1] Frame 45
_root.attacking = false;
Symbol 85 MovieClip [enemy1] Frame 50
if (_root.dist <= 55) {
_root.health = _root.health - 10;
}
Symbol 129 MovieClip [enemy3] Frame 12
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 129 MovieClip [enemy3] Frame 22
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 129 MovieClip [enemy3] Frame 33
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 129 MovieClip [enemy3] Frame 43
if (_root.dist >= 55) {
gotoAndPlay (1);
}
if (_root.dist <= 55) {
_root.attacking = true;
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
Symbol 129 MovieClip [enemy3] Frame 45
_root.attacking = false;
Symbol 129 MovieClip [enemy3] Frame 50
if (_root.dist <= 55) {
_root.health = _root.health - 15;
}
Symbol 132 MovieClip [enemy4] Frame 12
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 132 MovieClip [enemy4] Frame 22
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 132 MovieClip [enemy4] Frame 33
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 132 MovieClip [enemy4] Frame 43
if (_root.dist >= 55) {
gotoAndPlay (1);
}
if (_root.dist <= 55) {
_root.attacking = true;
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
Symbol 132 MovieClip [enemy4] Frame 45
_root.attacking = false;
Symbol 132 MovieClip [enemy4] Frame 50
if (_root.dist <= 55) {
_root.health = _root.health - 20;
}
Symbol 133 MovieClip [enemy5] Frame 12
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 133 MovieClip [enemy5] Frame 22
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 133 MovieClip [enemy5] Frame 33
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 133 MovieClip [enemy5] Frame 43
if (_root.dist >= 55) {
gotoAndPlay (1);
}
if (_root.dist <= 55) {
_root.attacking = true;
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
Symbol 133 MovieClip [enemy5] Frame 45
_root.attacking = false;
Symbol 133 MovieClip [enemy5] Frame 50
if (_root.dist <= 55) {
_root.health = _root.health - 25;
}
Symbol 140 MovieClip [enemy2] Frame 12
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 140 MovieClip [enemy2] Frame 22
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 140 MovieClip [enemy2] Frame 33
if (_root.dist <= 40) {
gotoAndPlay (43);
}
Symbol 140 MovieClip [enemy2] Frame 43
if (_root.dist >= 55) {
gotoAndPlay (1);
}
if (_root.dist <= 55) {
_root.attacking = true;
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
if (_root.dist >= 40) {
gotoAndPlay (1);
}
Symbol 140 MovieClip [enemy2] Frame 45
_root.attacking = false;
Symbol 140 MovieClip [enemy2] Frame 50
if (_root.dist <= 55) {
_root.health = _root.health - 10;
}
Symbol 164 MovieClip [knifepic] Frame 1
stop();
Symbol 164 MovieClip [knifepic] Frame 2
stop();
Symbol 170 MovieClip [pistolpic] Frame 1
stop();
Symbol 170 MovieClip [pistolpic] Frame 2
stop();
Symbol 211 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 219 Button
on (release) {
_root.play();
}
Symbol 220 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 220 MovieClip Frame 2
gotoAndPlay (1);
Symbol 224 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 231 MovieClip Frame 81
_root.play();
_root.play();
Symbol 236 MovieClip Frame 112
zomb = new Sound();
zomb.attachSound("growl1");
zomb.stop();
zomb.start();
Symbol 236 MovieClip Frame 119
_root.play();
Symbol 236 MovieClip Frame 123
stop();
Symbol 245 Button
on (release) {
gotoAndPlay (26);
}
Symbol 247 Button
on (release) {
getURL ("http://www.nosignalhome.com", _blank);
}
Symbol 251 Button
on (release) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 262 Button
on (release) {
gotoAndPlay (25);
}
Symbol 266 Button
on (release) {
play();
}
Symbol 277 Button
on (release) {
gotoAndStop (25);
}
Symbol 280 Button
on (release) {
nextlevel = false;
spawndelay = spawndelay - 3;
needkill = needkill * 1.15;
gotoAndPlay (45);
p1.removeMovieClip();
p2.removeMovieClip();
p3.removeMovieClip();
}
Symbol 285 Button
on (release) {
if (money < shotgun1) {
nomoney._y = 160;
timer = 10;
}
if (money >= shotgun1) {
money = money - shotgun1;
shotgun = 1;
x2 = buyshotgun._x;
y2 = buyshotgun._y;
buyshotgun._x = 3000;
attachMovie("purchased", "p2", 3001);
p2._x = x2;
p2._y = y2;
}
}
Symbol 286 Button
on (release) {
if (money < rifle1) {
nomoney._y = 160;
timer = 10;
}
if (money >= rifle1) {
money = money - rifle1;
rifle = 1;
x3 = buyrifle._x;
y3 = buyrifle._y;
buyrifle._x = 3000;
attachMovie("purchased", "p3", 3002);
p3._x = x3;
p3._y = y3;
}
}
Symbol 287 Button
on (release) {
if (money < 5) {
nomoney._y = 160;
timer = 10;
}
if (money >= 5) {
money = money - 5;
ammo[1] = ammo[1] + 5;
}
}
Symbol 288 Button
on (release) {
if (money < 20) {
nomoney._y = 160;
timer = 10;
}
if (money >= 20) {
money = money - 20;
ammo[4] = ammo[4] + 5;
}
}
Symbol 289 Button
on (release) {
if (money < smg1) {
nomoney._y = 160;
timer = 10;
}
if (money >= smg1) {
money = money - smg1;
smg = 1;
x1 = buysmg._x;
y1 = buysmg._y;
buysmg._x = 3000;
attachMovie("purchased", "p1", 3000);
p1._x = x1;
p1._y = y1;
}
}
Symbol 290 Button
on (release) {
if (money < 15) {
nomoney._y = 160;
timer = 10;
}
if (money >= 15) {
money = money - 15;
ammo[3] = ammo[3] + 6;
}
}
Symbol 291 Button
on (release) {
if (money < 10) {
nomoney._y = 160;
timer = 10;
}
if (money >= 10) {
money = money - 10;
ammo[2] = ammo[2] + 20;
}
}
Symbol 314 Button
on (release) {
gotoAndPlay (30);
p11.removeMovieClip();
}
Symbol 315 Button
on (release) {
gotoAndPlay (40);
p11.removeMovieClip();
}
Symbol 316 Button
on (release) {
if (money < 60) {
nomoney._y = 160;
timer = 10;
}
if (health < 100) {
if (money >= 60) {
money = money - 60;
health = health + 50;
}
}
if (health > 100) {
health = 100;
}
}
Symbol 317 Button
on (release) {
if (money < 12) {
nomoney._y = 160;
timer = 10;
}
if (health < 100) {
if (money >= 12) {
money = money - 12;
health = health + 10;
}
}
if (health > 100) {
health = 100;
}
}
Symbol 318 Button
on (release) {
if (money < 7) {
nomoney._y = 160;
timer = 10;
}
if (health < 100) {
if (money >= 7) {
money = money - 7;
health = health + 5;
}
}
if (health > 100) {
health = 100;
}
}
Symbol 319 Button
on (release) {
if (money < 80) {
nomoney._y = 160;
timer = 10;
}
if (health < 100) {
if (money >= 80) {
money = money - 80;
health = health + 100;
}
}
if (health > 100) {
health = 100;
}
}
Symbol 320 Button
on (release) {
if (money < price) {
nomoney._y = 160;
timer = 10;
}
if (money >= price) {
money = money - price;
light++;
}
if (light > 1) {
x11 = lightbut._x;
y11 = lightbut._y;
lightbut._x = 3000;
attachMovie("purchased", "p11", 3000);
p11._x = x11;
p11._y = y11;
}
}