Frame 1
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
bar._xscale = percentDone;
kbl = Math.round((getBytesTotal() - getBytesLoaded()) / 1024);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay ("loaded");
}
Frame 2
gotoAndPlay ("load_loop");
Frame 223
_root.chooser = 1;
stop();
Instance of Symbol 226 MovieClip in Frame 223
onClipEvent (enterFrame) {
this.gotoAndPlay(_root.chooser);
if (Key.isDown(13)) {
if (_root.chooser == 1) {
_root.gotoAndPlay("intro");
} else if (_root.chooser == 2) {
_root.gotoAndPlay("info");
}
}
}
Frame 288
stop();
Frame 289
stop();
Instance of Symbol 290 MovieClip in Frame 306
on (keyPress "<Enter>") {
_root.gotoAndPlay("game");
}
Frame 1460
function shoot(x, y, angle, speed, damage) {
((!ib) ? ((ib = 500)) : (ib++));
((ib == 550) ? ((ib = 500)) : null);
_root.attachMovie("bullet", "bullet" + ib, ib);
_root["bullet" + ib]._x = x;
_root["bullet" + ib]._y = y;
_root["bullet" + ib].speed = speed;
_root["bullet" + ib]._rotation = angle;
}
function grenade(x, y, angle) {
((!ib) ? ((ib = 500)) : (ib++));
((ib == 550) ? ((ib = 500)) : null);
_root.attachMovie("grenade", "bullet" + ib, ib);
_root["bullet" + ib]._x = x;
_root["bullet" + ib]._y = y;
_root["bullet" + ib]._rotation = angle;
}
function nextlevel() {
_root.level++;
_root.level_zombies = (_root.level + 4) + Math.round(_root.level / 5);
_root.zombies_to_kill = _root.level_zombies;
_root.zombies_killed = 0;
_root.levelmessage.play();
var _local2 = _root.level_zombies;
while (_local2 > 0) {
_root.createzombie();
_local2--;
}
}
function createzombie() {
((!iz) ? ((iz = 1)) : (iz++));
((iz == 100) ? ((iz = 1)) : null);
if (_root.level > 25) {
factor = 1;
} else if (_root.level > 20) {
factor = random(1);
} else if (_root.level > 15) {
factor = random(5);
} else if (_root.level > 10) {
factor = random(10);
} else if (_root.level > 5) {
factor = random(20);
} else {
factor = 3;
}
if (factor == 1) {
_root.attachMovie("zombie2", "zombie" + iz, iz + 1000);
} else {
_root.attachMovie("zombie", "zombie" + iz, iz + 1000);
}
_root["zombie" + iz]._x = (_root.ground._x + random(1500)) - 750;
_root["zombie" + iz]._y = -20;
}
function shell(x, y, type, angle) {
((!is) ? ((is = 551)) : (is++));
((is == 600) ? ((is = 551)) : null);
_root.attachMovie(type, "shell" + is, is);
_root["shell" + is]._x = x;
_root["shell" + is]._y = y;
_root["shell" + is]._rotation = angle;
}
function explosion(x, y) {
((!ie) ? ((ie = 700)) : (ie++));
((ie == 750) ? ((ie = 700)) : null);
_root.attachMovie("explosion", "explosion" + ie, ie);
_root["explosion" + ie]._x = x;
_root["explosion" + ie]._y = y;
}
function equip_weapon(type) {
_root.hero_arms.types.gotoAndStop(type);
}
function create_flame(x, y, size) {
((!iF) ? ((iF = 2000)) : (iF++));
((iF == 2100) ? ((iF = 2000)) : null);
_root.attachMovie("flame", "flame" + iF, iF);
_root["flame" + iF]._x = x;
_root["flame" + iF]._y = y;
_root["flame" + iF]._xscale = size;
_root["flame" + iF]._yscale = size;
}
function shoot_flame(x, y, angle) {
((!ifs) ? ((ifs = 2200)) : (ifs++));
((ifs == 2300) ? ((ifs = 2200)) : null);
_root.attachMovie("flame_t", "flame" + ifs, ifs);
_root["flame" + ifs]._x = x;
_root["flame" + ifs]._y = y;
_root["flame" + ifs]._rotation = angle;
}
function explosion_create_hitbox(x, y) {
_root.attachMovie("explosion_hitbox", "explosion_hitbox", 999999);
_root.explosion_hitbox._x = x;
_root.explosion_hitbox._y = y;
}
function create_crate(x, y) {
((!ic) ? ((ic = 3000)) : (ic++));
((ic == 3015) ? ((ic = 3000)) : null);
_root.attachMovie("crate", "crate" + ic, ic);
_root["crate" + ic]._x = x;
_root["crate" + ic]._y = y;
}
function create_crate_medic(x, y) {
((!ic) ? ((ic = 3000)) : (ic++));
((ic == 3015) ? ((ic = 3000)) : null);
_root.attachMovie("cratem", "crate" + ic, ic);
_root["crate" + ic]._x = x;
_root["crate" + ic]._y = y;
}
function hero_message(mess) {
_root.heroMessage = mess;
_root.Message.play();
}
function create_cursor() {
_root.attachMovie("cursor", "cursor", 9000);
Mouse.hide();
}
function remove_cursor() {
_root.cursor.removeMovieClip();
Mouse.show();
removeMovieClip(_root.cursor);
}
function game_over() {
var _local3 = 1;
while (_local3 <= 100) {
removeMovieClip(_root["zombie" + _local3]);
_local3++;
}
var _local2 = 500;
while (_local2 <= 550) {
removeMovieClip(_root["bullet" + _local2]);
_local2++;
}
_local2 = 700;
while (_local2 <= 750) {
removeMovieClip(_root["explosion" + _local2]);
_local2++;
}
_local2 = 551;
while (_local2 <= 600) {
removeMovieClip(_root["shell" + _local2]);
_local2++;
}
_local2 = 2000;
while (_local2 <= 2100) {
if (_root["flame" + _local2]) {
removeMovieClip(_root["flame" + _local2]);
}
_local2++;
}
_local2 = 2200;
while (_local2 <= 2300) {
if (_root["flame" + _local2]) {
removeMovieClip(_root["flame" + _local2]);
}
_local2++;
}
_local2 = 3000;
while (_local2 <= 3015) {
if (_root["crate" + _local2]) {
removeMovieClip(_root["crate" + _local2]);
}
_local2++;
}
_root.remove_cursor();
_root.gotoAndPlay("gameover");
}
p226_ammo = 15;
p226_ammomax = 15;
p226_loader = 20;
shotgun_ammo = 8;
shotgun_ammomax = 8;
shotgun_loader = 60;
uzi_ammo = 50;
uzi_ammomax = 50;
uzi_loader = 5;
mp5_ammo = 30;
mp5_ammomax = 30;
mp5_loader = 5;
grenade_ammo = 20;
flamer_ammo = 250;
flamer_loader = 0;
score = 0;
_root.level = 0;
_root.level_zombies = 3;
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta > 0) {
if (_root.weapon_number == 1) {
_root.equip_weapon("shotgun");
_root.weapon_number = 2;
} else if (_root.weapon_number == 2) {
_root.equip_weapon("uzi");
_root.weapon_number = 3;
} else if (_root.weapon_number == 3) {
_root.equip_weapon("mp5");
_root.weapon_number = 4;
} else if (_root.weapon_number == 4) {
_root.equip_weapon("flamer");
_root.weapon_number = 5;
} else if (_root.weapon_number == 5) {
_root.equip_weapon("grenade");
_root.weapon_number = 6;
} else if (_root.weapon_number == 6) {
_root.equip_weapon("p226");
_root.weapon_number = 1;
}
} else if (delta < 0) {
if (_root.weapon_number == 3) {
_root.equip_weapon("shotgun");
_root.weapon_number = 2;
} else if (_root.weapon_number == 4) {
_root.equip_weapon("uzi");
_root.weapon_number = 3;
} else if (_root.weapon_number == 5) {
_root.equip_weapon("mp5");
_root.weapon_number = 4;
} else if (_root.weapon_number == 6) {
_root.equip_weapon("flamer");
_root.weapon_number = 5;
} else if (_root.weapon_number == 1) {
_root.equip_weapon("grenade");
_root.weapon_number = 6;
} else if (_root.weapon_number == 2) {
_root.equip_weapon("p226");
_root.weapon_number = 1;
}
}
};
Mouse.addListener(mouseListener);
Frame 1461
stop();
Frame 1462
_root.gotoAndStop("game");
Frame 1463
bob = random(2) + 1;
trace(bob);
gotoAndStop(bob +1612);
_root.remove_cursor();
Frame 1464
_root.remove_cursor();
Frame 1466
_root.gotoAndStop("highscores");
Frame 1467
stop();
Frame 1468
_root.gotoAndStop("highscores");
Symbol 9 MovieClip Frame 50
this.gotoAndPlay(5);
Symbol 66 MovieClip Frame 1
_root.zombies_killed++;
_root.score = _root.score + 200;
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 15
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 22
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 24
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 46
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 57
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 66 MovieClip Frame 69
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Symbol 66 MovieClip Frame 74
removeMovieClip(_parent._parent);
Symbol 69 MovieClip Frame 1
_root.zombies_killed++;
_root.score = _root.score + 300;
Instance of Symbol 21 MovieClip in Symbol 69 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Symbol 69 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Instance of Symbol 21 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 14
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Symbol 84 MovieClip Frame 17
if (_root.hero.hitTest(_parent._parent)) {
_root.hero.health = _root.hero.health - 5;
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 17
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Symbol 84 MovieClip Frame 25
_parent.gotoAndStop("idle");
Instance of Symbol 21 MovieClip in Symbol 84 MovieClip Frame 25
onClipEvent (load) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
onClipEvent (enterFrame) {
this.gotoAndStop(this._parent._parent._parent.weapon);
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 89 MovieClip [zombie2] Frame 1
speed = 1.2 + (random(8) / 8);
weapon = random(7) + 1;
grav = 5;
gravb = grav;
grav = 0;
jumppower = 10;
health = 10;
jump = 0;
groundforce = grav;
onfire = false;
exploded = false;
Symbol 89 MovieClip [zombie2] Frame 2
if (exploded == false) {
if (health > 0) {
if (_root.hero.hitTest(this)) {
if (arms_anims._currentframe == 1) {
arms_anims.gotoAndStop("attack");
}
} else {
if ((_root.hero._x - _x) > 0) {
_x = (_x + speed);
_xscale = 100;
anims.gotoAndStop("run");
}
if ((_root.hero._x - _x) < 0) {
_x = (_x - speed);
_xscale = -100;
anims.gotoAndStop("run");
}
}
if (_root.ground.hitTest(this._x + 5, this._y - 15, true)) {
_x = (_x - speed);
}
if (_root.ground.hitTest(this._x - 5, this._y - 15, true)) {
_x = (_x + speed);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y - grav);
}
_y = (_y + grav);
if (!_root.ground.hitTest(this._x, this._y + 1, true)) {
if (grav == 0) {
grav = 2;
}
grav = grav + 0.5;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y + 0.5, true)) {
_y = (_y - 0.1);
}
if ((_x < -100) or (_x > 650)) {
_visible = false;
} else {
_visible = true;
}
if (onfire == true) {
_root.create_flame(_x + (random(15) - 7), (_y - 20) + (random(15) - 7), random(50) + 50);
health = health - 0.03;
}
} else {
anims.gotoAndStop("die");
arms_anims.gotoAndStop("die");
}
if (_root.explosion_hitbox.hitTest(this)) {
emove = (this._x - _root.explosion_hitbox._x) / 10;
egrav = -15 - random(10);
anims.gotoAndStop("exploded");
arms_anims.gotoAndStop("die");
erot = random(50);
_y = (_y - 20);
exploded = true;
}
} else if (exploded == true) {
egrav++;
_y = (_y + egrav);
_x = (_x + emove);
_rotation = (_rotation + erot);
_root.create_flame(_x + (random(15) - 7), _y + (random(15) - 7), random(50) + 50);
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
}
Symbol 89 MovieClip [zombie2] Frame 3
gotoAndPlay (2);
Symbol 93 MovieClip Frame 50
this.gotoAndPlay(5);
Symbol 130 MovieClip Frame 1
_root.zombies_killed++;
_root.score = _root.score + 100;
Symbol 130 MovieClip Frame 42
removeMovieClip(_parent._parent);
Symbol 134 MovieClip Frame 1
_root.zombies_killed++;
_root.score = _root.score + 150;
Symbol 134 MovieClip Frame 2
stop();
Symbol 136 MovieClip [zombie] Frame 1
speed = 1 + (random(6) / 6);
grav = 5;
gravb = grav;
grav = 0;
jumppower = 10;
health = 3;
jump = 0;
groundforce = grav;
mouseClicked = false;
onfire = false;
exploded = false;
Symbol 136 MovieClip [zombie] Frame 2
if (exploded == false) {
if (health > 0) {
if (_root.hero.hitTest(this)) {
_root.hero.health = _root.hero.health - 0.5;
}
if ((_root.hero._x - _x) > 0) {
_x = (_x + speed);
_xscale = 100;
}
if ((_root.hero._x - _x) < 0) {
_x = (_x - speed);
_xscale = -100;
}
anims.gotoAndStop("run");
if (_root.ground.hitTest(this._x + 5, this._y - 15, true)) {
_x = (_x - speed);
}
if (_root.ground.hitTest(this._x - 5, this._y - 15, true)) {
_x = (_x + speed);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y - grav);
}
_y = (_y + grav);
if (!_root.ground.hitTest(this._x, this._y + 1, true)) {
if (grav == 0) {
grav = 2;
}
grav = grav + 0.5;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y + 0.5, true)) {
_y = (_y - 0.1);
}
if ((_x < -100) or (_x > 650)) {
_visible = false;
} else {
_visible = true;
}
if (onfire == true) {
_root.create_flame(_x + (random(15) - 7), (_y - 20) + (random(15) - 7), random(50) + 50);
health = health - 0.03;
}
if (_root.explosion_hitbox.hitTest(this)) {
emove = (this._x - _root.explosion_hitbox._x) / 10;
egrav = -15 - random(10);
anims.gotoAndStop("exploded");
erot = random(50);
_y = (_y - 20);
exploded = true;
}
} else {
anims.gotoAndStop("die");
}
} else if (exploded == true) {
egrav++;
_y = (_y + egrav);
_x = (_x + emove);
_rotation = (_rotation + erot);
_root.create_flame(_x + (random(15) - 7), _y + (random(15) - 7), random(50) + 50);
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
}
Symbol 136 MovieClip [zombie] Frame 3
gotoAndPlay (2);
Symbol 138 MovieClip [bullet] Frame 1
px = speed * Math.cos((Math.PI/180) * _rotation);
py = speed * Math.sin((Math.PI/180) * _rotation);
_x = (_x + (20 * Math.cos((Math.PI/180) * _rotation)));
_y = (_y + (20 * Math.sin((Math.PI/180) * _rotation)));
going = 1;
Symbol 138 MovieClip [bullet] Frame 2
_x = (_x + px);
_y = (_y + py);
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
var aza = 105;
while (aza > 0) {
if (_root["zombie" + aza] and (_root["zombie" + aza].health > 0)) {
if (_root["zombie" + aza].headshot.hitTest(this._x, this._y, false)) {
_root["zombie" + aza].health = _root["zombie" + aza].health - 2;
trace("headshot");
_root.score = _root.score + 25;
removeMovieClip(this);
}
if (_root["zombie" + aza].body.hitTest(this._x, this._y, false)) {
_root["zombie" + aza].health = _root["zombie" + aza].health - 1;
trace("bodyshot");
_root.score = _root.score + 15;
removeMovieClip(this);
}
}
aza--;
}
if ((((_x < 0) or (_x > 550)) or (_y < 0)) or (_y > 400)) {
removeMovieClip(this);
}
Symbol 138 MovieClip [bullet] Frame 3
gotoAndPlay (2);
Symbol 141 MovieClip [shell2] Frame 1
rotspeed = random(40) + 40;
grav = -2;
xspeed = random(10) - 5;
_x = (_x + (12 * Math.cos((Math.PI/180) * _rotation)));
_y = (_y + (10 * Math.sin((Math.PI/180) * _rotation)));
Symbol 141 MovieClip [shell2] Frame 2
_rotation = (_rotation + rotspeed);
_y = (_y + grav);
_x = (_x + xspeed);
grav++;
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
Symbol 141 MovieClip [shell2] Frame 3
gotoAndPlay (2);
Symbol 144 MovieClip [shell1] Frame 1
rotspeed = random(40) + 40;
grav = -2;
xspeed = random(10) - 5;
_x = (_x + (12 * Math.cos((Math.PI/180) * _rotation)));
_y = (_y + (10 * Math.sin((Math.PI/180) * _rotation)));
Symbol 144 MovieClip [shell1] Frame 2
_rotation = (_rotation + rotspeed);
_y = (_y + grav);
_x = (_x + xspeed);
grav++;
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
Symbol 144 MovieClip [shell1] Frame 3
gotoAndPlay (2);
Symbol 146 MovieClip [grenade] Frame 1
px = 10 * Math.cos((Math.PI/180) * _rotation);
py = 10 * Math.sin((Math.PI/180) * _rotation);
_x = (_x + (25 * Math.cos((Math.PI/180) * _rotation)));
_y = (_y + (25 * Math.sin((Math.PI/180) * _rotation)));
timer = 50;
rot = random(50) - 25;
bounce = -5;
Symbol 146 MovieClip [grenade] Frame 2
if (timer <= 0) {
_root.explosion(this._x, this._y);
removeMovieClip(this);
}
py = py + 0.4;
if (_root.ground.hitTest(_x + (px * 1.04), _y - 0.1, true) and (!_root.ground.hitTest(_x, _y + 1, true))) {
px = px / -1;
}
if (_root.ground.hitTest(_x, _y + py, true)) {
py = bounce;
bounce = bounce / 1.5;
px = px / 1.9;
rot = random(100) - 50;
}
_rotation = (_rotation + rot);
_x = (_x + px);
_y = (_y + py);
timer--;
Symbol 146 MovieClip [grenade] Frame 3
gotoAndPlay (2);
Symbol 172 MovieClip [explosion] Frame 2
_root.explosion_create_hitbox(_x, _y);
Symbol 172 MovieClip [explosion] Frame 31
removeMovieClip(this);
Symbol 175 MovieClip [flame_t] Frame 1
speed = (random(10) + 15) / 5;
px = speed * Math.cos((Math.PI/180) * _rotation);
py = speed * Math.sin((Math.PI/180) * _rotation);
_x = (_x + (20 * Math.cos((Math.PI/180) * _rotation)));
_y = (_y + (20 * Math.sin((Math.PI/180) * _rotation)));
_xscale = (30 - random(5));
_yscale = (30 - random(5));
test = 0;
Symbol 175 MovieClip [flame_t] Frame 2
_x = (_x + px);
_y = (_y + py);
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
_alpha = (_alpha - 4);
if (_alpha <= 0) {
removeMovieClip(this);
}
test++;
if ((test == 5) and (_alpha > 20)) {
var aza = 105;
while (aza > 0) {
if (_root["zombie" + aza] and (_root["zombie" + aza].health > 0)) {
if (_root["zombie" + aza].body.hitTest(this)) {
_root["zombie" + aza].onfire = true;
}
}
aza--;
}
test = 0;
}
Symbol 175 MovieClip [flame_t] Frame 3
gotoAndPlay (2);
Symbol 177 MovieClip [flame] Frame 1
speed = (random(5) + 5) / 5;
Symbol 177 MovieClip [flame] Frame 2
_xscale = (_xscale - 3);
_yscale = (_yscale - 3);
_y = (_y - speed);
if (_xscale < 10) {
removeMovieClip(this);
}
Symbol 177 MovieClip [flame] Frame 3
gotoAndPlay (2);
Symbol 179 MovieClip [explosion_hitbox] Frame 2
removeMovieClip(this);
Symbol 182 MovieClip [crate] Frame 1
grav = 3;
Symbol 182 MovieClip [crate] Frame 2
if (!_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y + grav);
}
if (_root.hero.hitTest(this)) {
whichGun = random(5) + 1;
if (whichGun == 1) {
_root.p226_loader = _root.p226_loader + 5;
_root.hero_message("+ P226 ammo");
} else if (whichGun == 2) {
_root.shotgun_loader = _root.shotgun_loader + 32;
_root.hero_message("+ shotgun shells");
} else if (whichGun == 3) {
_root.uzi_loader = _root.uzi_loader + 5;
_root.hero_message("+ Mac10 ammo");
} else if (whichGun == 4) {
_root.mp5_loader = _root.mp5_loader + 5;
_root.hero_message("+ Mp5 ammo");
} else if (whichGun == 5) {
_root.flamer_ammo = _root.flamer_ammo + 300;
_root.hero_message("+ gas");
} else if (whichGun == 6) {
_root.grenade_ammo = _root.grenade_ammo + 5;
_root.hero_message("+ grenades");
}
removeMovieClip(this);
}
Symbol 182 MovieClip [crate] Frame 3
gotoAndPlay (2);
Symbol 184 MovieClip [cursor] Frame 1
_x = _root._xmouse;
_y = _root._ymouse;
Symbol 184 MovieClip [cursor] Frame 2
gotoAndPlay (1);
Symbol 187 MovieClip [cratem] Frame 1
grav = 3;
Symbol 187 MovieClip [cratem] Frame 2
if (!_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y + grav);
}
if (_root.hero.hitTest(this)) {
if (_root.hero.health <= 50) {
_root.hero.health = _root.hero.health + 50;
} else {
_root.hero.health = 100;
}
removeMovieClip(this);
}
Symbol 187 MovieClip [cratem] Frame 3
gotoAndPlay (2);
Symbol 197 Button
on (press) {
_root.getURL("http://www.armorgames.com", "_blank", "GET");
}
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 230 Button
on (keyPress "<Up>") {
_root.chooser = 1;
trace(_root.chooser);
}
on (keyPress "<Down>") {
_root.chooser = 2;
trace(_root.chooser);
}
Symbol 265 Button
on (press) {
_root.gotoAndStop("info_page2");
}
Symbol 266 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 275 Button
on (press) {
_root.gotoAndStop("info_page1");
}
Symbol 307 MovieClip Frame 16
this.gotoAndPlay(5);
Symbol 316 MovieClip Frame 16
this.gotoAndPlay(5);
Symbol 318 MovieClip Frame 1
function worldmove(x, y) {
_root.ground._x = _root.ground._x + x;
_root.ground._y = _root.ground._y + y;
_root.ground2._x = _root.ground2._x + x;
_root.ground2._y = _root.ground2._y + y;
var _local5 = 1;
while (_local5 <= 100) {
_root["zombie" + _local5]._x = _root["zombie" + _local5]._x + x;
_root["zombie" + _local5]._y = _root["zombie" + _local5]._y + y;
_local5++;
}
var _local4 = 500;
while (_local4 <= 550) {
_root["bullet" + _local4]._x = _root["bullet" + _local4]._x + x;
_root["bullet" + _local4]._y = _root["bullet" + _local4]._y + y;
_local4++;
}
_local4 = 700;
while (_local4 <= 750) {
_root["explosion" + _local4]._x = _root["explosion" + _local4]._x + x;
_root["explosion" + _local4]._y = _root["explosion" + _local4]._y + y;
_local4++;
}
_local4 = 551;
while (_local4 <= 600) {
_root["shell" + _local4]._x = _root["shell" + _local4]._x + x;
_root["shell" + _local4]._y = _root["shell" + _local4]._y + y;
_local4++;
}
_local4 = 2000;
while (_local4 <= 2100) {
if (_root["flame" + _local4]) {
_root["flame" + _local4]._x = _root["flame" + _local4]._x + x;
_root["flame" + _local4]._y = _root["flame" + _local4]._y + y;
}
_local4++;
}
_local4 = 2200;
while (_local4 <= 2300) {
if (_root["flame" + _local4]) {
_root["flame" + _local4]._x = _root["flame" + _local4]._x + x;
_root["flame" + _local4]._y = _root["flame" + _local4]._y + y;
}
_local4++;
}
_local4 = 3000;
while (_local4 <= 3015) {
if (_root["crate" + _local4]) {
_root["crate" + _local4]._x = _root["crate" + _local4]._x + x;
_root["crate" + _local4]._y = _root["crate" + _local4]._y + y;
}
_local4++;
}
}
speed = 5;
grav = 5;
health = 100;
gravb = grav;
grav = 0;
jumppower = 10;
jump = 0;
groundforce = grav;
mouseClicked = false;
crate_timer = 40;
_root.weapon_number = 1;
_root.hero_side = "right";
_root.nextlevel();
_root.create_cursor();
Symbol 318 MovieClip Frame 2
if (health <= 0) {
_root.game_over();
}
crate_timer--;
if (crate_timer == 0) {
if (_root.score > 20) {
_root.score = _root.score - 20;
}
timeForCrate = random(40);
if (timeForCrate == 0) {
_root.create_crate(_x - 0.5, _y - 400);
trace("___CRATE CREATED___");
}
if (timeForCrate == 1) {
_root.create_crate_medic(_x - 0.5, _y - 400);
trace("___CRATE CREATED___");
}
crate_timer = 40;
}
((_root._xmouse >= _x) ? ((_root.hero_side = "right")) : ((_root.hero_side = "left")));
((_root.hero_side == "right") ? ((this._xscale = 100)) : ((this._xscale = -100)));
if (Key.isDown(68)) {
if (!_root.ground.hitTest(this._x + 7, this._y - 15, true)) {
worldmove(-speed, 0);
}
if (_root.hero_side == "right") {
anims.gotoAndStop("run");
} else if (_root.hero_side == "left") {
anims.gotoAndStop("backrun");
}
}
if (Key.isDown(65)) {
if (!_root.ground.hitTest(this._x - 8, this._y - 15, true)) {
worldmove(speed, 0);
}
if (_root.hero_side == "right") {
anims.gotoAndStop("backrun");
} else if (_root.hero_side == "left") {
anims.gotoAndStop("run");
}
}
if ((!Key.isDown(65)) and (!Key.isDown(68))) {
anims.gotoAndStop("idle");
}
if (_root.ground.hitTest(this._x + 5, this._y - 15, true)) {
worldmove(speed, 0);
}
if (_root.ground.hitTest(this._x - 5, this._y - 15, true)) {
worldmove(-speed, 0);
}
if (Key.isDown(87)) {
if (_root.ground.hitTest(this._x, this._y + 1, true)) {
jump = jumppower;
}
}
if (jump > 0) {
grav = 0;
jump = jump - 1;
_y = (_y - jump);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_y = (_y - grav);
}
_y = (_y + grav);
if (!_root.ground.hitTest(this._x, this._y + 1, true)) {
if (grav == 0) {
grav = 2;
}
grav = grav + 0.5;
} else {
grav = 0;
}
while (_root.ground.hitTest(this._x, this._y + 0.5, true)) {
_y = (_y - 0.1);
}
_root.hero_arms._y = _root.hero._y - 25;
_root.hero_arms._x = _root.hero._x;
_root.onMouseDown = function () {
mouseClicked = true;
};
_root.onMouseUp = function () {
mouseClicked = false;
};
if (mouseClicked) {
if (_root.hero_arms.types.anims._currentframe == 1) {
trace("bang");
if ((_root.weapon_number == 1) and (_root.p226_ammo > 0)) {
_root.p226_ammo--;
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(10)) - 5, 8, 1);
_root.shell(_root.hero_arms._x, _root.hero_arms._y, "shell1", _root.hero_arms._rotation);
_root.hero_arms.types.anims.gotoAndStop("shoot");
mouseClicked = false;
}
if ((_root.weapon_number == 2) and (_root.shotgun_ammo > 0)) {
_root.shotgun_ammo--;
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(30)) - 15, 8, 1);
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(30)) - 15, 7, 1);
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(30)) - 15, 7.5, 1);
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(30)) - 15, 6.5, 1);
_root.hero_arms.types.anims.gotoAndStop("shoot");
mouseClicked = false;
}
if ((_root.weapon_number == 3) and (_root.uzi_ammo > 0)) {
_root.uzi_ammo--;
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(10)) - 5, 8, 1);
_root.shell(_root.hero_arms._x, _root.hero_arms._y, "shell1", _root.hero_arms._rotation);
_root.hero_arms.types.anims.gotoAndStop("shoot");
}
if ((_root.weapon_number == 4) and (_root.mp5_ammo > 0)) {
_root.mp5_ammo--;
_root.shoot(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(6)) - 3, 7, 1);
_root.shell(_root.hero_arms._x, _root.hero_arms._y, "shell1", _root.hero_arms._rotation);
_root.hero_arms.types.anims.gotoAndStop("shoot");
}
if ((_root.weapon_number == 5) and (_root.flamer_ammo > 0)) {
_root.flamer_ammo--;
_root.shoot_flame(_root.hero_arms._x, _root.hero_arms._y, (_root.hero_arms._rotation + random(6)) - 3);
_root.hero_arms.types.anims.gotoAndStop("shoot");
}
if ((_root.weapon_number == 6) and (_root.grenade_ammo > 0)) {
_root.grenade_ammo--;
_root.hero_arms.types.anims.gotoAndStop("shoot");
mouseClicked = false;
}
}
}
if (Key.isDown(82)) {
if (((_root.hero_arms.types.anims._currentframe == 1) and (_root.hub.display_loader > 0)) and (_root.weapon_number == 1)) {
_root.hero_arms.types.anims.gotoAndStop("reload");
}
if ((((_root.hero_arms.types.anims._currentframe == 1) and (_root.hub.display_loader > 0)) and (_root.shotgun_ammo < _root.shotgun_ammomax)) and (_root.weapon_number == 2)) {
_root.hero_arms.types.anims.gotoAndStop("reload");
}
if (((_root.hero_arms.types.anims._currentframe == 1) and (_root.hub.display_loader > 0)) and (_root.weapon_number == 3)) {
_root.hero_arms.types.anims.gotoAndStop("reload");
}
if (((_root.hero_arms.types.anims._currentframe == 1) and (_root.hub.display_loader > 0)) and (_root.weapon_number == 4)) {
_root.hero_arms.types.anims.gotoAndStop("reload");
}
}
_root.hero_arms._rotation = Math.atan2(_root._ymouse - _root.hero_arms._y, _root._xmouse - _root.hero_arms._x) / (Math.PI/180);
if (_root.hero_side == "right") {
_root.hero_arms._yscale = 100;
}
if (_root.hero_side == "left") {
_root.hero_arms._yscale = -100;
}
if (_root.zombies_to_kill == _root.zombies_killed) {
_root.nextlevel();
}
if (Key.isDown(49)) {
_root.equip_weapon("p226");
_root.weapon_number = 1;
}
if (Key.isDown(50)) {
_root.equip_weapon("shotgun");
_root.weapon_number = 2;
}
if (Key.isDown(51)) {
_root.equip_weapon("uzi");
_root.weapon_number = 3;
}
if (Key.isDown(52)) {
_root.equip_weapon("mp5");
_root.weapon_number = 4;
}
if (Key.isDown(53)) {
_root.equip_weapon("flamer");
_root.weapon_number = 5;
}
if (Key.isDown(54)) {
_root.equip_weapon("grenade");
_root.weapon_number = 6;
}
_root.Message._x = _x;
_root.Message._y = _y - 30;
Symbol 318 MovieClip Frame 3
gotoAndPlay (2);
Symbol 324 MovieClip Frame 1
stop();
Instance of Symbol 332 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(6) - 1);
}
Symbol 341 MovieClip Frame 9
this._parent.gotoAndStop("idle");
Symbol 358 MovieClip Frame 25
_root.p226_ammo = _root.p226_ammomax;
_root.p226_loader--;
this._parent.gotoAndStop("idle");
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 3
stop();
Instance of Symbol 332 MovieClip in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(6) - 1);
}
Symbol 388 MovieClip Frame 19
_root.shell(_root.hero_arms._x, _root.hero_arms._y, "shell2", _root.hero_arms._rotation);
Symbol 388 MovieClip Frame 26
this._parent.gotoAndStop("idle");
Symbol 404 MovieClip Frame 21
_root.shotgun_ammo++;
_root.shotgun_loader--;
this._parent.gotoAndStop("idle");
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 3
stop();
Instance of Symbol 332 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(6) - 1);
}
Symbol 413 MovieClip Frame 7
this._parent.gotoAndStop("idle");
Symbol 444 MovieClip Frame 55
_root.uzi_ammo = _root.uzi_ammomax;
_root.uzi_loader--;
this._parent.gotoAndStop("idle");
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
stop();
Symbol 445 MovieClip Frame 3
stop();
Symbol 458 MovieClip Frame 8
this._parent.gotoAndStop("idle");
Symbol 510 MovieClip Frame 60
_root.mp5_ammo = _root.mp5_ammomax;
_root.mp5_loader--;
this._parent.gotoAndStop("idle");
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Instance of Symbol 514 MovieClip in Symbol 516 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.grenade_ammo == 0) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 516 MovieClip Frame 2
stop();
Symbol 526 MovieClip Frame 7
_root.grenade(_root.hero_arms._x, _root.hero_arms._y, _root.hero_arms._rotation);
Symbol 526 MovieClip Frame 14
this._parent.gotoAndStop("idle");
Symbol 531 MovieClip Frame 2
this._parent.gotoAndStop("idle");
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 4
stop();
Symbol 533 MovieClip Frame 5
stop();
Symbol 533 MovieClip Frame 6
stop();
Symbol 534 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 536 MovieClip in Symbol 547 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = _root.hero.health;
}
Symbol 547 MovieClip Frame 2
if (_root.weapon_number == 1) {
display_ammo = _root.p226_ammo;
display_loader = _root.p226_loader;
} else if (_root.weapon_number == 2) {
display_ammo = _root.shotgun_ammo;
display_loader = _root.shotgun_loader;
} else if (_root.weapon_number == 3) {
display_ammo = _root.uzi_ammo;
display_loader = _root.uzi_loader;
} else if (_root.weapon_number == 4) {
display_ammo = _root.mp5_ammo;
display_loader = _root.mp5_loader;
} else if (_root.weapon_number == 5) {
display_ammo = _root.flamer_ammo;
display_loader = _root.flamer_loader;
}
Symbol 547 MovieClip Frame 3
gotoAndPlay (2);
Symbol 563 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 569 MovieClip Frame 2
counter = _root.zombies_to_kill - _root.zombies_killed;
Symbol 569 MovieClip Frame 3
gotoAndPlay (2);
Symbol 582 Button
on (press) {
_root.gotoAndPlay("menu");
}
Symbol 583 Button
on (press) {
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
}
on (release) {
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
_root.gotoAndStop("highscores");
}
Symbol 598 Button
on (release) {
name = _root.username;
score = _root.score;
game = "Ultimate Down";
loadVariables ("http://www.armorgames.com/highscores/postScore.php", this, "POST");
getURL ("http://www.armorgames.com/highscores/viewScores.php?game=" + game, "_blank");
_root.gotoAndPlay("menu");
}