Frame 1
Stage.showMenu = false;
_root.soundon = 1;
MochiAd.showPreloaderAd({id:"2956201738b32811", res:"500x500"});
Frame 2
_root.gamepaused = 0;
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if (server.indexOf("UNGROUNDED.NET") != -1) {
_root.playingfrom = "newgrounds";
} else if (server.indexOf("THORGAMING.COM") != -1) {
_root.playingfrom = "thorgaming";
} else {
_root.playingfrom = "othersites";
getURL ("http://www.thorgaming.com/flasharcade/");
}
}
box1 = prefix;
_root.attachMovie("zombiewavecomplete", "zombiewavecomplete", 4996);
_root.zombiewavecomplete._x = -450;
_root.zombiewavecomplete._y = 200;
_root.attachMovie("blacktoscores", "blacktoscores", 5000);
_root.blacktoscores._x = 0;
_root.blacktoscores._y = 0;
_root.attachMovie("ammotypemovie", "ammotypemovie", 4997);
_root.ammotypemovie._x = 18;
_root.ammotypemovie._y = 417;
_root.attachMovie("bloodscratch", "bloodscratch", 4998);
_root.bloodscratch._x = 250;
_root.bloodscratch._y = 250;
_root.attachMovie("bulletscratch", "bulletscratch", 4999);
_root.bulletscratch._x = 250;
_root.bulletscratch._y = 250;
playtrack();
_root.manhealth = 200;
_root.shotgunratefire = 0;
_root.extrablood = "off";
_root.shots = 0;
_root.hits = 0;
_root.staminadrain = 0;
_root.pistolratefire = 0;
_root.pistolaccuracy = 0;
_root.shotgunaccuracy = 0;
_root.smgaccuracy = 0;
_root.pistolskillnext = 5;
_root.shotgunskillnext = 5;
_root.smgskillnext = 5;
_root.pistolskill = 0;
_root.shotgunskill = 0;
_root.smgskill = 0;
_root.score = 0;
_root.bullettimeready = 1;
_root.speedupsound = 0;
_root.bullettime = 1;
_root.playingtune = 1;
_root.zombiespeed = 1;
_root.zombiehealthup = 0;
_root.zombiespawn = 1;
_root.zombiehealth = 1;
_root.zombieskilled = 0;
_root.stamina = 100;
_root.counter = 600;
_root.pistolammo = 7;
_root.shotgunammo = 8;
_root.smgammo = 30;
_root.pistolreserve = 35;
_root.shotgunreserve = 24;
_root.smgreserve = 30;
_root.inclip = _root.pistolreserve;
_root.ammo = _root.pistolammo;
_root.barrelnumber = 10;
_root.zombienumber = 1;
_root.numberofguys = 15;
_root.soundon = 1;
System.security.allowDomain("*");
_root.theenemydamping = 0.6;
_root.thedamping = 0.8;
_root.rememberx = 0;
_root.remembery = 0;
_root.enemybossheild = 5;
_root.enemiesdefeated = 0;
_root.bossesdefeated = 0;
_root.gamepaused = 0;
_root.mainmusicplaying = "yes";
_root.enemyroundhealth = 0;
_root.targetmovienumber = 0;
_root.enemybosshealth = 1000;
_root.counter1 = 4000;
_root.counter = 3000;
_root.enemyseparation = 0;
_root.chargelowerlimit = 50;
_root.reboundbounce = 0.5;
_root.enemydiehealth = 0;
_root.rocketspeed = 34;
_root.score = 0;
_root.energyvar = 100;
_root.j = 3000;
_root.ready = 1;
_root.weaponcharge = 30;
_root.player1lives = 3;
_root.maphud.themaphud._visible = 1;
_root.shaker._visible = 0;
_global.playtrack = function () {
if (_root.playingtune == 0) {
_root.tune.stop();
_root.playingtune = 1;
tune = new Sound(_root);
tune.attachSound("tune");
tune.start(0, 9999999);
} else {
_root.playingtune = 0;
_root.tune.stop();
tune = new Sound(_root);
tune.attachSound("tune1");
tune.start(0, 999999);
}
};
_global.setuplevel = function () {
function clump_about2() {
if (_root.gamepaused == 0) {
if (this.alive == 1) {
if (_root.targetsleft == 0) {
if (_root.theroundcomplete == 0) {
if (_root.numberofguys >= _root.roundcomplete) {
_root.wavecompletemovie.play();
} else {
_root.numberofguys = _root.numberofguys + 1;
_root.wave = _root.wave + 1;
_root.rocketspeed = _root.rocketspeed - 0.5;
_root.enemyseparation = 0;
_root.targetsleft = _root.numberofguys;
_root.wavenumber.play();
}
}
}
myRadians = Math.atan2((_root._ymouse - this._y) - 250, (_root._xmouse - this._x) - 250);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 130;
hitvelocity = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
this.vx = this.vx * kDamp;
this.vy = this.vy * kDamp;
this.vx = this.vx + (gTx * kGravWeight);
this.vy = this.vy + (gTy * kGravWeight);
var _local5 = 0;
var _local4 = 0;
var _local3 = guys.length - 1;
while (_local3 >= 0) {
if ((guys[_local3] != this) && (this.hitTest(guys[_local3]))) {
var _local7 = (this._x + this.vx) - guys[_local3]._x;
var _local6 = (this._y + this.vy) - guys[_local3]._y;
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = (this.radius + guys[_local3].radius) - _local9;
if (_local10 > 0) {
var _local8 = (_local10 * kCollisionDamp) / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
}
}
_local3--;
}
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
var _local7 = -(this._x + this.vx);
var _local6 = -(this._y + this.vy);
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = _local9 - ((SW / 2) - this.radius);
if (_local10 > 0) {
var _local8 = (_local10 * 2.2) / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
}
}
}
function clump_about() {
if (_root.gamepaused == 0) {
if (this.alive == 1) {
if (this.enemytype == 1) {
if (Math.random() < (0.02 / ((_root.bullettime / 2) + 0.5))) {
enemyshootsmg(15, this);
this.zombie.gotoAndPlay(2);
}
}
myRadians = Math.atan2(_root.objcell_mc.man._y - this._y, _root.objcell_mc.man._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 280;
if (this.zombie.head.hitTest(_root.objcell_mc.man)) {
this.attacking = 1;
zombieTimer.setInterval(zombiewait, 1000);
if (this.enemytype == 0) {
if (_root.bullettime > 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(2);
}
}
if (this._x < _root.objcell_mc.man._x) {
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx + 2;
}
if (this._x > _root.objcell_mc.man._x) {
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx - 2;
}
if (this._y > _root.objcell_mc.man._y) {
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy - 2;
}
if (this._y < _root.objcell_mc.man._y) {
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy + 2;
}
}
if (this.enemytype == 0) {
if (this.attacking == 1) {
if (this.attacklength > 500) {
this.attacklength = 0;
this.attacking = 0;
this.gotoAndStop(1);
} else {
if (_root.bullettime > 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(2);
}
this.attacklength = this.attacklength + 1;
}
} else if (_root.bullettime > 1) {
this.gotoAndStop(5);
} else {
this.gotoAndStop(1);
}
}
if (this._x < _root.objcell_mc.man._x) {
this.vx = this.vx + ((Math.random() * this.speed) / _root.bullettime);
}
if (this._x > _root.objcell_mc.man._x) {
this.vx = this.vx - ((Math.random() * this.speed) / _root.bullettime);
}
if (this._y > _root.objcell_mc.man._y) {
this.vy = this.vy - ((Math.random() * this.speed) / _root.bullettime);
}
if (this._y < _root.objcell_mc.man._y) {
this.vy = this.vy + ((Math.random() * this.speed) / _root.bullettime);
}
} else {
this.vy = 0;
this.vx = 0;
}
this.vx = this.vx * enemykDamp;
this.vy = this.vy * enemykDamp;
var _local5 = 0;
var _local4 = 0;
var _local3 = guys.length - 1;
while (_local3 >= 0) {
if ((guys[_local3] != this) && (this.hitTest(guys[_local3]))) {
var _local7 = (this._x + this.vx) - guys[_local3]._x;
var _local6 = (this._y + this.vy) - guys[_local3]._y;
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = (this.radius + guys[_local3].radius) - _local9;
if (_local10 > 0) {
var _local8 = _local10 / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
}
}
_local3--;
}
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
var _local7 = -(this._x + this.vx);
var _local6 = -(this._y + this.vy);
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = _local9 - ((SW / 2) - this.radius);
if (_local10 > 0) {
var _local8 = (_local10 * 2.2) / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
}
}
function clump_about3() {
if (_root.gamepaused == 0) {
this.vx = this.vx * enemykDamp;
this.vy = this.vy * enemykDamp;
var _local5 = 0;
var _local4 = 0;
var _local3 = guys.length - 1;
while (_local3 >= 0) {
if ((guys[_local3] != this) && (this.hitTest(guys[_local3]))) {
var _local7 = (this._x + this.vx) - guys[_local3]._x;
var _local6 = (this._y + this.vy) - guys[_local3]._y;
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = (this.radius + guys[_local3].radius) - _local9;
if (_local10 > 0) {
var _local8 = _local10 / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
}
}
_local3--;
}
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
var _local7 = -(this._x + this.vx);
var _local6 = -(this._y + this.vy);
var _local9 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local10 = _local9 - ((SW / 2) - this.radius);
if (_local10 > 0) {
var _local8 = (_local10 * 2.2) / _local9;
_local5 = _local5 + (_local7 * _local8);
_local4 = _local4 + (_local6 * _local8);
this.vx = this.vx + _local5;
this.vy = this.vy + _local4;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
}
}
_root.thebackground.nextFrame();
_root.isreloading = 0;
_root.objcell_mc.removeMovieClip(this);
_root.targetsleft = _root.numberofguys;
var _local16 = 0;
var kGravWeight = 0.6;
var kDamp = _root.thedamping;
var enemykDamp = _root.theenemydamping;
var kCollisionDamp = 0.6;
var kSpinR = ((kSpin * Math.PI) / 180);
stop();
var SW = 800;
var _local15 = 800;
var _local17 = 57.2957795130823;
var _local18 = (Math.PI/180);
var gTx = 0;
var gTy = 0;
var guys = [];
_root.createEmptyMovieClip("objcell_mc", 1);
objcell_mc._x = 250;
objcell_mc._y = 250;
var _local4 = objcell_mc.attachMovie("man", "man", 2500);
guys.push(_local4);
_local4._x = _root.rememberx;
_local4._y = _root.remembery;
_local4.health = _root.manhealth;
_local4.vx = (_local4.vy = 0);
_local4.lx = (_local4.ly = 0);
_local4.radius = 15;
_local4.alive = 1;
var _local8 = 128 + random(127);
_local4.onEnterFrame = clump_about2;
_global.makeBalls = function () {
_root.therandomnumber = Math.random();
_root.theenemytype = random(2);
var _local2 = objcell_mc.attachMovie("enemytarget" + _root.theenemytype, "enemytarget" + _root.zombienumber, _root.zombienumber + 3000);
guys.push(_local2);
_local2.health = _root.zombiehealth;
_local2.enemytype = _root.theenemytype;
if (_root.therandomnumber > 0.7) {
_local2._y = -300;
_local2._x = -270 + Math.floor(Math.random() * 511);
} else if (_root.therandomnumber > 0.4) {
_local2._y = 300;
_local2._x = -270 + Math.floor(Math.random() * 511);
} else if (_root.therandomnumber > 0.3) {
_local2._x = -300;
_local2._y = -270 + Math.floor(Math.random() * 511);
} else {
_local2._x = 300;
_local2._y = -270 + Math.floor(Math.random() * 511);
}
_local2.attacklength = 0;
_local2.speed = 0.7 + ((_root.zombiespeed / 25) * Math.random());
_local2.vx = 0;
_local2.vy = 0;
_local2.lx = 0;
_local2.ly = 0;
_local2.radius = 15;
var _local3 = 128 + random(127);
_local2.alive = 1;
_local2.onEnterFrame = clump_about;
_root.zombienumber = _root.zombienumber + 1;
};
_global.makeBarrel = function () {
i = 1;
while (i < _root.barrelnumber) {
_root.barrelrandomnumber = random(3);
var _local2 = objcell_mc.attachMovie("barrel" + _root.barrelrandomnumber, "barrel" + i, i + 2000);
guys.push(_local2);
_local2.health = 10;
_local2.barreltype = _root.barrelrandomnumber;
_local2._y = -230 + Math.floor(Math.random() * 461);
_local2._x = -230 + Math.floor(Math.random() * 461);
_local2.vx = 0;
_local2.vy = 0;
_local2.lx = 0;
_local2.ly = 0;
_local2.radius = 20;
_local2._rotation = random(200);
var _local3 = 128 + random(127);
_local2.onEnterFrame = clump_about3;
i++;
}
};
_root.objcell_mc.onEnterFrame = function () {
if (_root.gamepaused == 0) {
var _local3 = guys.length - 1;
while (_local3 >= 0) {
var _local2 = guys[_local3];
var _local4 = Math.sqrt((_local2._x * _local2._x) + (_local2._y * _local2._y));
var _local5 = Math.atan2(_local2._y, _local2._x);
_local2._x = Math.cos(_local5 + kSpinR) * _local4;
_local2._y = Math.sin(_local5 + kSpinR) * _local4;
_local3--;
}
}
};
};
_global.enemyshootsmg = function (speed, mc) {
if (_root.bullettime > 1) {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistolslow");
autofiresound.start(0, 1);
} else {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistol");
autofiresound.start(0, 1);
}
d++;
if (d > 300) {
d = 100;
}
bullet6 = _root.attachMovie("bullet", "b" + d, d);
var _local5 = Math.atan2(_root.objcell_mc.man._y - mc._y, _root.objcell_mc.man._x - mc._x);
var _local8 = (_local5 / Math.PI) * 180;
var _local7 = Math.cos((_local5 + (-(0.05 - (_root.smgaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.smgaccuracy / 500)) - (-(0.05 - (_root.smgaccuracy / 500)))))) * speed;
var _local6 = Math.sin((_local5 + (-(0.05 - (_root.smgaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.smgaccuracy / 500)) - (-(0.05 - (_root.smgaccuracy / 500)))))) * speed;
bullet6.xv = _local7;
bullet6.yv = _local6;
bullet6._x = mc._x + 250;
bullet6._y = mc._y + 250;
bullet6._rotation = _local8;
bullet6.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
if (this.hitTest(_root.objcell_mc.man.body)) {
if (_root.hitting10 == 0) {
_root.hitting10 = 1;
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc.man._x > mc._x) {
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx + 3;
}
if (_root.objcell_mc.man._x < mc._x) {
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx - 3;
}
if (_root.objcell_mc.man._y > mc._y) {
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy + 3;
}
if (_root.objcell_mc.man._y < mc._y) {
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy - 3;
}
if (_root.objcell_mc.man.health > 0) {
_root.objcell_mc.man.health = _root.objcell_mc.man.health - 2;
_root.bulletscratch._rotation = Math.random() * 200;
_root.bulletscratch.play();
} else if (_root.objcell_mc.man.alive == 1) {
_root.objcell_mc.man.alive = 0;
_root.objcell_mc.man.gotoAndStop(4);
_root.bloodscratch.play();
_root.bloodscratch._rotation = Math.random() * 200;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
} else {
_root.hitting10 = 0;
}
var _local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting11 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting11 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > mc._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < mc._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > mc._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < mc._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting11 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
};
_global.rotMouse = function () {
var _local5 = (_root._xmouse - this._x) - 250;
var _local3 = (_root._ymouse - this._y) - 250;
var _local4 = Math.atan2(_local3, _local5);
var _local6 = (_local4 / Math.PI) * 180;
return(_local6);
};
d = 100;
_global.shootshotgun = function (speed, mc) {
if (_root.bullettime > 1) {
autofiresound = new Sound(_root);
autofiresound.attachSound("shotgunslow");
autofiresound.start(0, 1);
} else {
autofiresound = new Sound(_root);
autofiresound.attachSound("shotgun");
autofiresound.start(0, 1);
}
d++;
if (d > 300) {
d = 100;
}
bullet = _root.attachMovie("bullet", "b" + d, d);
var _local7 = Math.atan2((_root._ymouse - mc._y) - 250, (_root._xmouse - mc._x) - 250);
var _local10 = (_local7 / Math.PI) * 180;
var _local9 = Math.cos((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
var _local8 = Math.sin((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
bullet.xv = _local9;
bullet.yv = _local8;
bullet._x = mc._x + 250;
bullet._y = mc._y + 250;
bullet._rotation = _local10;
bullet.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
var _local3 = 0;
while (_local3 <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + _local3].zombie.head)) {
if (_root.objcell_mc["enemytarget" + _local3].alive == 1) {
if (_root.hitting1 == 0) {
_root.hitting1 = 1;
_root.shotgunskill = _root.shotgunskill + 1;
_root.hits = _root.hits + 1;
if (_root.shotgunskill == _root.shotgunskillnext) {
_root.shotgunskillnext = _root.shotgunskillnext * 2;
_root.shotgunratefire = _root.shotgunratefire + 1;
_root.shotgunaccuracy = _root.shotgunaccuracy + 1;
_root.ammotypemovie.weaponupgrade.play();
}
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx - 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy - 3;
}
if (_root.objcell_mc["enemytarget" + _local3].health > 0) {
_root.objcell_mc["enemytarget" + _local3].health = _root.objcell_mc["enemytarget" + _local3].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(3);
}
_root.score = _root.score + 333;
_root.objcell_mc["enemytarget" + _local3].alive = 0;
_root.objcell_mc["enemytarget" + _local3].zombie.thenumber = _local3;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting1 = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting3 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting3 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting3 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
d++;
if (d > 300) {
d = 100;
}
bullet1 = _root.attachMovie("bullet", "b" + d, d);
_local7 = Math.atan2((_root._ymouse - mc._y) - 250, (_root._xmouse - mc._x) - 250);
_local10 = (_local7 / Math.PI) * 180;
_local9 = Math.cos((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
_local8 = Math.sin((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
bullet1.xv = _local9;
bullet1.yv = _local8;
bullet1._x = mc._x + 250;
bullet1._y = mc._y + 250;
bullet1._rotation = _local10;
bullet1.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
var _local3 = 0;
while (_local3 <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + _local3].zombie.head)) {
if (_root.objcell_mc["enemytarget" + _local3].alive == 1) {
if (_root.hitting1 == 0) {
_root.hitting1 = 1;
_root.shotgunskill = _root.shotgunskill + 1;
_root.hits = _root.hits + 1;
if (_root.shotgunskill == _root.shotgunskillnext) {
_root.shotgunskillnext = _root.shotgunskillnext * 2;
_root.shotgunratefire = _root.shotgunratefire + 1;
_root.shotgunaccuracy = _root.shotgunaccuracy + 1;
_root.ammotypemovie.weaponupgrade.play();
}
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx - 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy - 3;
}
if (_root.objcell_mc["enemytarget" + _local3].health > 0) {
_root.objcell_mc["enemytarget" + _local3].health = _root.objcell_mc["enemytarget" + _local3].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(3);
}
_root.score = _root.score + 333;
_root.objcell_mc["enemytarget" + _local3].alive = 0;
_root.objcell_mc["enemytarget" + _local3].zombie.thenumber = _local3;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting1 = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting3 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting3 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting3 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
d++;
if (d > 300) {
d = 100;
}
bullet2 = _root.attachMovie("bullet", "b" + d, d);
_local7 = Math.atan2((_root._ymouse - mc._y) - 250, (_root._xmouse - mc._x) - 250);
_local10 = (_local7 / Math.PI) * 180;
_local9 = Math.cos((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
_local8 = Math.sin((_local7 + (-(0.2 - (_root.shotgunaccuracy / 500)))) + (Math.random() * ((0.2 - (_root.shotgunaccuracy / 500)) - (-(0.2 - (_root.shotgunaccuracy / 500)))))) * speed;
bullet2.xv = _local9;
bullet2.yv = _local8;
bullet2._x = mc._x + 250;
bullet2._y = mc._y + 250;
bullet2._rotation = _local10;
bullet2.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
var _local3 = 0;
while (_local3 <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + _local3].zombie.head)) {
if (_root.objcell_mc["enemytarget" + _local3].alive == 1) {
if (_root.hitting1 == 0) {
_root.hitting1 = 1;
_root.shotgunskill = _root.shotgunskill + 1;
_root.hits = _root.hits + 1;
if (_root.shotgunskill == _root.shotgunskillnext) {
_root.shotgunskillnext = _root.shotgunskillnext * 2;
_root.shotgunaccuracy = _root.shotgunaccuracy + 1;
_root.shotgunratefire = _root.shotgunratefire + 1;
_root.ammotypemovie.weaponupgrade.play();
}
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx - 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy - 3;
}
if (_root.objcell_mc["enemytarget" + _local3].health > 0) {
_root.objcell_mc["enemytarget" + _local3].health = _root.objcell_mc["enemytarget" + _local3].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(3);
}
_root.objcell_mc["enemytarget" + _local3].alive = 0;
_root.objcell_mc["enemytarget" + _local3].zombie.thenumber = _local3;
_root.score = _root.score + 333;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting1 = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting3 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting3 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting3 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
};
_global.shootpistol = function (speed, mc) {
if (_root.bullettime > 1) {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistolslow");
autofiresound.start(0, 1);
} else {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistol");
autofiresound.start(0, 1);
}
d++;
if (d > 300) {
d = 100;
}
bullet = _root.attachMovie("bullet", "b" + d, d);
var _local5 = Math.atan2((_root._ymouse - mc._y) - 250, (_root._xmouse - mc._x) - 250);
var _local9 = (_local5 / Math.PI) * 180;
var _local8 = Math.cos((_local5 + (-(0.05 - (_root.pistolaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.pistolaccuracy / 500)) - (-(0.05 - (_root.pistolaccuracy / 500)))))) * speed;
var _local7 = Math.sin((_local5 + (-(0.05 - (_root.pistolaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.pistolaccuracy / 500)) - (-(0.05 - (_root.pistolaccuracy / 500)))))) * speed;
bullet.xv = _local8;
bullet.yv = _local7;
bullet._x = mc._x + 250;
bullet._y = mc._y + 250;
bullet._rotation = _local9;
bullet.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
var _local3 = 0;
while (_local3 <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + _local3].zombie.head)) {
if (_root.objcell_mc["enemytarget" + _local3].alive == 1) {
if (_root.hitting1 == 0) {
_root.hitting1 = 1;
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.pistolskill = _root.pistolskill + 1;
_root.hits = _root.hits + 1;
if (_root.pistolskill == _root.pistolskillnext) {
_root.pistolskillnext = _root.pistolskillnext * 2;
_root.pistolratefire = _root.pistolratefire + 1;
_root.pistolaccuracy = _root.pistolaccuracy + 1;
_root.ammotypemovie.weaponupgrade.play();
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx - 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy - 3;
}
if (_root.objcell_mc["enemytarget" + _local3].health > 0) {
_root.objcell_mc["enemytarget" + _local3].health = _root.objcell_mc["enemytarget" + _local3].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(3);
}
_root.score = _root.score + 1000;
_root.objcell_mc["enemytarget" + _local3].alive = 0;
_root.objcell_mc["enemytarget" + _local3].zombie.thenumber = _local3;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting1 = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting3 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting3 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting3 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
};
_global.shootsmg = function (speed, mc) {
if (_root.bullettime > 1) {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistolslow");
autofiresound.start(0, 1);
} else {
autofiresound = new Sound(_root);
autofiresound.attachSound("pistol");
autofiresound.start(0, 1);
}
d++;
if (d > 300) {
d = 100;
}
bullet5 = _root.attachMovie("bullet", "b" + d, d);
var _local5 = Math.atan2((_root._ymouse - mc._y) - 250, (_root._xmouse - mc._x) - 250);
var _local9 = (_local5 / Math.PI) * 180;
var _local8 = Math.cos((_local5 + (-(0.05 - (_root.smgaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.smgaccuracy / 500)) - (-(0.05 - (_root.smgaccuracy / 500)))))) * speed;
var _local7 = Math.sin((_local5 + (-(0.05 - (_root.smgaccuracy / 500)))) + (Math.random() * ((0.05 - (_root.smgaccuracy / 500)) - (-(0.05 - (_root.smgaccuracy / 500)))))) * speed;
bullet5.xv = _local8;
bullet5.yv = _local7;
bullet5._x = mc._x + 250;
bullet5._y = mc._y + 250;
bullet5._rotation = _local9;
bullet5.onEnterFrame = function () {
if (_root.gamepaused == 0) {
this._x = this._x + (this.xv / _root.bullettime);
this._y = this._y + (this.yv / _root.bullettime);
if (this.hitTest(_root.stage)) {
var _local3 = 0;
while (_local3 <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + _local3].zombie.head)) {
if (_root.objcell_mc["enemytarget" + _local3].alive == 1) {
if (_root.hitting1 == 0) {
_root.hitting1 = 1;
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.hits = _root.hits + 1;
_root.smgskill = _root.smgskill + 1;
if (_root.smgskill == _root.smgskillnext) {
_root.smgaccuracy = _root.smgaccuracy + 1;
_root.smgskillnext = _root.smgskillnext * 2;
_root.ammotypemovie.weaponupgrade.play();
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + _local3].vx = _root.objcell_mc["enemytarget" + _local3].vx - 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy + 3;
}
if (_root.objcell_mc["enemytarget" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + _local3].vy = _root.objcell_mc["enemytarget" + _local3].vy - 3;
}
if (_root.objcell_mc["enemytarget" + _local3].health > 0) {
_root.objcell_mc["enemytarget" + _local3].health = _root.objcell_mc["enemytarget" + _local3].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + _local3].gotoAndStop(3);
}
_root.score = _root.score + 1000;
_root.objcell_mc["enemytarget" + _local3].alive = 0;
_root.objcell_mc["enemytarget" + _local3].zombie.thenumber = _local3;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting1 = 0;
}
_local3++;
}
_local3 = 0;
while (_local3 <= _root.barrelnumber) {
if (this.hitTest(_root.objcell_mc["barrel" + _local3])) {
if (_root.hitting3 == 0) {
if (_root.objcell_mc["barrel" + _local3].barreltype < 2) {
_root.hitting3 = 1;
if (Math.random() > 0.5) {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
} else {
deflectsound = new Sound(_root);
deflectsound.attachSound("ric");
deflectsound.start(0, 1);
}
_root.attachMovie("explosion2", "explosion" + _root.j, _root.j, {_x:this._x, _y:this._y, _rotation:((this._rotation - 90) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["barrel" + _local3]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx + 4;
}
if (_root.objcell_mc["barrel" + _local3]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["barrel" + _local3].vx = _root.objcell_mc["barrel" + _local3].vx - 4;
}
if (_root.objcell_mc["barrel" + _local3]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy + 4;
}
if (_root.objcell_mc["barrel" + _local3]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["barrel" + _local3].vy = _root.objcell_mc["barrel" + _local3].vy - 4;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
} else {
_root.hitting3 = 0;
}
_local3++;
}
} else {
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
};
_global.changetored = function () {
if (_root.ammotype == 1) {
_root.shotgunreserve = _root.inclip;
_root.inclip = _root.pistolreserve;
_root.shotgunammo = _root.ammo;
_root.ammo = _root.pistolammo;
}
if (_root.ammotype == 2) {
_root.smgreserve = _root.inclip;
_root.inclip = _root.pistolreserve;
_root.smgammo = _root.ammo;
_root.ammo = _root.pistolammo;
}
if (_root.bullettime > 1) {
theredsound = new Sound(_root);
theredsound.attachSound("redsoundslow");
theredsound.start(0, 1);
} else {
theredsound = new Sound(_root);
theredsound.attachSound("redsound");
theredsound.start(0, 1);
}
_root.isreloading = 0;
_root.ammotypemovie.smgbullets._visible = 0;
_root.ammotypemovie.smglabel._visible = 0;
_root.ammotypemovie.shotgunbullets._visible = 0;
_root.ammotypemovie.shotgunlabel._visible = 0;
_root.ammotypemovie.pistolbullets._visible = 1;
_root.ammotypemovie.pistollabel._visible = 1;
_root.ammotype = 0;
_root.objcell_mc.man.gotoAndStop("pistol");
_root.ammotypemovie.red.gotoAndPlay(2);
_root.ammotypemovie.green.gotoAndStop(1);
_root.ammotypemovie.blue.gotoAndStop(1);
};
_global.changetogreen = function () {
if (_root.ammotype == 0) {
_root.pistolreserve = _root.inclip;
_root.inclip = _root.shotgunreserve;
_root.pistolammo = _root.ammo;
_root.ammo = _root.shotgunammo;
}
if (_root.ammotype == 2) {
_root.smgreserve = _root.inclip;
_root.inclip = _root.shotgunreserve;
_root.smgammo = _root.ammo;
_root.ammo = _root.shotgunammo;
}
if (_root.bullettime > 1) {
theredsound = new Sound(_root);
theredsound.attachSound("greensoundslow");
theredsound.start(0, 1);
} else {
theredsound = new Sound(_root);
theredsound.attachSound("greensound");
theredsound.start(0, 1);
}
_root.isreloading = 0;
_root.ammotypemovie.smgbullets._visible = 0;
_root.ammotypemovie.smglabel._visible = 0;
_root.ammotypemovie.shotgunbullets._visible = 1;
_root.ammotypemovie.shotgunlabel._visible = 1;
_root.ammotypemovie.pistolbullets._visible = 0;
_root.ammotypemovie.pistollabel._visible = 0;
_root.ammotype = 1;
_root.objcell_mc.man.gotoAndStop("shotgun");
_root.ammotypemovie.red.gotoAndStop(1);
_root.ammotypemovie.green.gotoAndPlay(2);
_root.ammotypemovie.blue.gotoAndStop(1);
};
_global.changetoblue = function () {
if (_root.ammotype == 0) {
_root.pistolreserve = _root.inclip;
_root.inclip = _root.smgreserve;
_root.pistolammo = _root.ammo;
_root.ammo = _root.smgammo;
}
if (_root.ammotype == 1) {
_root.shotgunreserve = _root.inclip;
_root.inclip = _root.smgreserve;
_root.shotgunammo = _root.ammo;
_root.ammo = _root.smgammo;
}
if (_root.bullettime > 1) {
theredsound = new Sound(_root);
theredsound.attachSound("bluesoundslow");
theredsound.start(0, 1);
} else {
theredsound = new Sound(_root);
theredsound.attachSound("bluesound");
theredsound.start(0, 1);
}
_root.isreloading = 0;
_root.ammotypemovie.smgbullets._visible = 1;
_root.ammotypemovie.smglabel._visible = 1;
_root.ammotypemovie.shotgunbullets._visible = 0;
_root.ammotypemovie.shotgunlabel._visible = 0;
_root.ammotypemovie.pistolbullets._visible = 0;
_root.ammotypemovie.pistollabel._visible = 0;
_root.ammotype = 2;
_root.objcell_mc.man.gotoAndStop("smg");
_root.ammotypemovie.red.gotoAndStop(1);
_root.ammotypemovie.green.gotoAndStop(1);
_root.ammotypemovie.blue.gotoAndPlay(2);
};
Instance of Symbol 416 MovieClip in Frame 3
onClipEvent (load) {
function bullettimewait() {
_root.bullettimeready = 1;
clearInterval(myTimer1);
}
}
onClipEvent (mouseUp) {
_root.autofire = 0;
}
onClipEvent (mouseDown) {
function wait() {
_root.ready = 1;
clearInterval(myTimer);
}
if (_root.gamepaused == 0) {
if (_root.objcell_mc.man.alive == 1) {
if (_root.isreloading == 0) {
if (_root.ready == 1) {
if (_root.ammo > 0) {
if (_root.ammotype == 0) {
_root.objcell_mc.man.weapon.play();
shootpistol(35, _root.objcell_mc.man);
_root.ready = 0;
_root.ammo = _root.ammo - 1;
_root.shots = _root.shots + 1;
myTimer = setInterval(wait, (400 - (_root.pistolratefire * 15)) * _root.bullettime);
} else if (_root.ammotype == 1) {
_root.objcell_mc.man.weapon.play();
shootshotgun(35, _root.objcell_mc.man);
_root.ready = 0;
_root.ammo = _root.ammo - 1;
_root.shots = _root.shots + 3;
myTimer = setInterval(wait, (1000 - (_root.shotgunratefire * 15)) * _root.bullettime);
} else if (_root.ammotype == 2) {
_root.autofire = 1;
}
} else if (_root.bullettime > 1) {
noammo = new Sound(_root);
noammo.attachSound("dryfireslow");
noammo.start(0, 1);
} else {
noammo = new Sound(_root);
noammo.attachSound("dryfire");
noammo.start(0, 1);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(80)) {
if (_root.pausedbuttondown == 0) {
_root.pausedbuttondown = 1;
if (_root.gamepaused == 0) {
_root.pausedmovie.gotoAndPlay(2);
_root.gamepaused = 1;
} else {
_root.pausedmovie.gotoAndPlay(91);
_root.gamepaused = 0;
}
}
} else {
_root.pausedbuttondown = 0;
}
if (_root.gamepaused == 0) {
if (Key.isDown(69) or Key.isDown(191)) {
if (_root.kickbuttondown == 0) {
_root.kickbuttondown = 1;
if (_root.bullettime > 1) {
_root.objcell_mc.man.kick.gotoAndPlay("slowmo");
} else {
_root.objcell_mc.man.kick.gotoAndPlay(2);
}
}
} else {
_root.kickbuttondown = 0;
}
if (Key.isDown(82) or Key.isDown(17)) {
if (_root.reloading == 0) {
_root.reloading = 1;
if (_root.ammotype == 0) {
if (_root.inclip > 0) {
_root.isreloading = 1;
_root.ready = 0;
if (_root.inclip >= 7) {
if (_root.ammo == -1) {
_root.inclip = _root.inclip - 7;
} else {
_root.inclip = _root.inclip - (7 - _root.ammo);
}
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
_root.ammo = 7;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
if (_root.ammo <= 0) {
_root.ammo = _root.inclip;
_root.inclip = 0;
} else {
_root.thevar = _root.ammo + _root.inclip;
if (_root.thevar < 7) {
_root.ammo = _root.ammo + _root.inclip;
_root.inclip = 0;
} else {
_root.ammor = 7 - _root.ammo;
_root.ammo = _root.ammo + _root.ammor;
_root.inclip = _root.inclip - _root.ammor;
}
}
}
}
}
if (_root.ammotype == 2) {
if (_root.inclip > 0) {
_root.isreloading = 1;
_root.ready = 0;
if (_root.inclip >= 30) {
if (_root.ammo == -1) {
_root.inclip = _root.inclip - 30;
} else {
_root.inclip = _root.inclip - (30 - _root.ammo);
}
_root.ammo = 30;
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
} else {
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
if (_root.ammo <= 0) {
_root.ammo = _root.inclip;
_root.inclip = 0;
} else {
_root.thevar = _root.ammo + _root.inclip;
if (_root.thevar < 30) {
_root.ammo = _root.ammo + _root.inclip;
_root.inclip = 0;
} else {
_root.ammor = 30 - _root.ammo;
_root.ammo = _root.ammo + _root.ammor;
_root.inclip = _root.inclip - _root.ammor;
}
}
}
}
}
if (_root.ammotype == 1) {
if (_root.inclip > 0) {
_root.isreloading = 1;
_root.ready = 0;
if (_root.inclip >= 8) {
if (_root.ammo == -1) {
_root.inclip = _root.inclip - 8;
} else {
_root.inclip = _root.inclip - (8 - _root.ammo);
}
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
_root.ammo = 8;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc.man.weapon.gotoAndPlay("reloadslow");
} else {
_root.objcell_mc.man.weapon.gotoAndPlay("reload");
}
if (_root.ammo <= 0) {
_root.ammo = _root.inclip;
_root.inclip = 0;
} else {
_root.thevar = _root.ammo + _root.inclip;
if (_root.thevar < 8) {
_root.ammo = _root.ammo + _root.inclip;
_root.inclip = 0;
} else {
_root.ammor = 8 - _root.ammo;
_root.ammo = _root.ammo + _root.ammor;
_root.inclip = _root.inclip - _root.ammor;
}
}
}
}
}
if (_root.inclip < 0) {
_root.inclip = 0;
}
}
} else {
_root.reloading = 0;
}
if (Math.random() < ((0.005 + (0.001 * _root.zombiespawn)) / _root.bullettime)) {
if (_root.zombienumber <= 30) {
makeBalls();
}
}
if (_root.ammo == -1) {
_root.displayammo = 0;
} else {
_root.displayammo = _root.ammo;
}
_root.ammotypemovie.thehealthbar.healthbar._xscale = _root.objcell_mc.man.health / 2;
_root.ammotypemovie.thestaminabar.staminabar._xscale = _root.stamina;
if (_root.autofire == 1) {
if (Math.random() < (0.3 / ((_root.bullettime / 2) + 0.5))) {
if (_root.ammo > 0) {
_root.ammo = _root.ammo - 1;
_root.shots = _root.shots + 1;
_root.objcell_mc.man.weapon.play();
shootsmg(35, _root.objcell_mc.man);
}
}
}
if (Key.isDown(49)) {
if (reddown == 0) {
reddown = 1;
changetored();
}
} else {
reddown = 0;
}
if (Key.isDown(50)) {
if (greendown == 0) {
greendown = 1;
changetogreen();
}
} else {
greendown = 0;
}
if (Key.isDown(51)) {
if (bluedown == 0) {
bluedown = 1;
changetoblue();
}
} else {
bluedown = 0;
}
if (Key.isDown(16)) {
if (_root.stamina > 0) {
_root.stamina = _root.stamina - (0.5 - _root.staminadrain);
_root.run = 1;
} else {
_root.runsound.stop();
_root.run = 0;
}
} else {
_root.run = 0;
}
if (_root.stamina <= 99) {
_root.stamina = _root.stamina + 0.25;
}
if (Key.isDown(32)) {
if (_root.bullettimeready == 1) {
if (_root.stamina > 0) {
_root.stamina = _root.stamina - (0.5 - _root.staminadrain);
if (_root.speedupsound == 0) {
_root.speedupsound = 1;
speedsound = new Sound(_root);
speedsound.attachSound("slowdown");
speedsound.start(0, 1);
_root.slowmo.gotoAndPlay(2);
}
_root.bullettime = 4;
} else if (_root.speedupsound == 1) {
panting = new Sound(_root);
panting.attachSound("pant");
panting.start(0, 3);
myTimer1 = setInterval(bullettimewait, 3000);
_root.speedupsound = 0;
_root.bullettimeready = 0;
_root.slowmo.gotoAndPlay("speedup");
speedsound = new Sound(_root);
speedsound.attachSound("speedup");
speedsound.start(0, 1);
_root.bullettime = 1;
}
}
} else {
if (_root.speedupsound == 1) {
_root.speedupsound = 0;
_root.slowmo.gotoAndPlay("speedup");
speedsound = new Sound(_root);
speedsound.attachSound("speedup");
speedsound.start(0, 1);
}
_root.bullettime = 1;
}
if (Key.isDown(68) or Key.isDown(39)) {
if (_root.run == 0) {
if (_root.bullettime > 1) {
_root.walksoundslow.play();
} else {
_root.walksound.play();
}
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx + (0.9 / _root.bullettime);
} else {
if (_root.bullettime > 1) {
_root.walksound.play();
} else {
_root.runsound.play();
}
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx + (1.5 / _root.bullettime);
}
}
if (Key.isDown(65) or Key.isDown(37)) {
if (_root.run == 0) {
if (_root.bullettime > 1) {
_root.walksoundslow.play();
} else {
_root.walksound.play();
}
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx - (0.9 / _root.bullettime);
} else {
if (_root.bullettime > 1) {
_root.walksound.play();
} else {
_root.runsound.play();
}
_root.objcell_mc.man.vx = _root.objcell_mc.man.vx - (1.5 / _root.bullettime);
}
}
if (Key.isDown(83) or Key.isDown(40)) {
if (_root.run == 0) {
if (_root.bullettime > 1) {
_root.walksoundslow.play();
} else {
_root.walksound.play();
}
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy + (0.9 / _root.bullettime);
} else {
if (_root.bullettime > 1) {
_root.walksound.play();
} else {
_root.runsound.play();
}
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy + (1.5 / _root.bullettime);
}
}
if (Key.isDown(87) or Key.isDown(38)) {
if (_root.run == 0) {
if (_root.bullettime > 1) {
_root.walksoundslow.play();
} else {
_root.walksound.play();
}
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy - (0.9 / _root.bullettime);
} else {
if (_root.bullettime > 1) {
_root.walksound.play();
} else {
_root.runsound.play();
}
_root.objcell_mc.man.vy = _root.objcell_mc.man.vy - (1.5 / _root.bullettime);
}
}
}
}
onClipEvent (keyUp) {
_root.walksoundslow.stop();
_root.walksound.stop();
_root.runsound.stop();
}
Frame 4
setuplevel();
makeBarrel();
makeBalls();
playtrack();
changetored();
Frame 5
i = 1;
while (i < 50) {
_root["bloodpatch" + i].removeMovieClip();
i++;
}
_root.scorestatus = "Name First!";
if (_root.shots > 0) {
_root.myvalue = Math.round((_root.hits / _root.shots) * 100);
_root.accuracy = _root.myvalue + "%";
_root.accuracybonus = _root.myvalue * 50;
_root.score = _root.score + _root.myvalue;
} else {
_root.accuracy = "N/A";
_root.accuracybonus = "N/A";
}
Symbol 27 MovieClip [zombiewavecomplete] Frame 1
stop();
Symbol 27 MovieClip [zombiewavecomplete] Frame 60
_root.staminadrain = _root.staminadrain + 0.01;
_root.zombienumber = 1;
_root.zombieskilled = 0;
_root.zombiespeed = _root.zombiespeed + 1;
_root.zombiespawn = _root.zombiespawn + 1;
_root.manhealth = _root.objcell_mc.man.health;
playtrack();
if (_root.zombiehealthup == 3) {
_root.zombiehealth = _root.zombiehealth + 1;
_root.zombiehealthup = 0;
} else {
_root.zombiehealthup = _root.zombiehealthup + 1;
}
setuplevel();
makeBarrel();
makeBalls();
Symbol 32 MovieClip Frame 15
stop();
Symbol 33 MovieClip [explosion2] Frame 25
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 38 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 10
this._visible = 0;
gotoAndPlay (1);
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip Frame 10
onClipEvent (enterFrame) {
this._visible = 0;
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 28) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 29) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 30) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 23) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 24) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 25) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 26) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 27) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 18) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 19) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 20) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 21) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 22) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 17) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 4) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 5) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 6) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 9) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 8) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 11) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 3) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 13) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 14) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 16) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 15) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 12) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 10) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 7) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 2) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 1) {
this._visible = 1;
} else {
this.play();
}
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 10
gotoAndPlay (1);
this._visible = 0;
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip Frame 10
onClipEvent (enterFrame) {
this._visible = 0;
}
Instance of Symbol 47 MovieClip "pistol2" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 2) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol3" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 3) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol4" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 4) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol7" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo == 7) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol6" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 6) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol5" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 5) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 47 MovieClip "pistol1" in Symbol 48 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 1) {
this._visible = 1;
} else {
this.play();
}
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 10
gotoAndPlay (1);
this._visible = 0;
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip Frame 10
onClipEvent (enterFrame) {
this._visible = 0;
}
Instance of Symbol 52 MovieClip "shell3" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 3) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell4" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 4) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell5" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 5) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell6" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 6) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell7" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 7) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell8" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 8) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell2" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 2) {
this._visible = 1;
} else {
this.play();
}
}
Instance of Symbol 52 MovieClip "shell1" in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.displayammo >= 1) {
this._visible = 1;
} else {
this.play();
}
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 10
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 10
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 10
stop();
Symbol 92 MovieClip Frame 40
stop();
Symbol 93 MovieClip [explosion] Frame 5
if (_root.extrablood == "on") {
_root.attachMovie("bloodpatch", "bloodpatch" + _root.bloods, _root.bloods, {_x:(this._x + -30) + (Math.random() * 60), _y:(this._y + -30) + (Math.random() * 60), _rotation:this._rotation - 90});
if (_root.bloods > -50) {
_root.bloods = _root.bloods - 1;
} else {
_root.bloods = -1;
}
}
Symbol 93 MovieClip [explosion] Frame 25
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.objcell_mc.man)) {
if (_root.objcell_mc.man.health > 0) {
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc.man._x + 250, _y:_root.objcell_mc.man._y + 250, _rotation:((_root.objcell_mc.man._rotation - 90) + -40) + (Math.random() * 80)});
_root.j = _root.j + 1;
_root.objcell_mc.man.health = _root.objcell_mc.man.health - 2;
_root.bloodscratch._rotation = Math.random() * 200;
_root.bloodscratch.play();
} else if (_root.objcell_mc.man.alive == 1) {
_root.objcell_mc.man.alive = 0;
_root.objcell_mc.man.gotoAndStop(4);
_root.bloodscratch.play();
_root.bloodscratch._rotation = Math.random() * 200;
}
}
}
Instance of Symbol 110 MovieClip in Symbol 133 MovieClip Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.objcell_mc.man)) {
if (_root.objcell_mc.man.health > 0) {
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc.man._x + 250, _y:_root.objcell_mc.man._y + 250, _rotation:((_root.objcell_mc.man._rotation - 90) + -40) + (Math.random() * 80)});
_root.j = _root.j + 1;
_root.objcell_mc.man.health = _root.objcell_mc.man.health - 2;
_root.bloodscratch._rotation = Math.random() * 200;
_root.bloodscratch.play();
} else if (_root.objcell_mc.man.alive == 1) {
_root.objcell_mc.man.alive = 0;
_root.objcell_mc.man.gotoAndStop(4);
_root.bloodscratch.play();
_root.bloodscratch._rotation = Math.random() * 200;
}
}
}
Symbol 144 MovieClip Frame 74
mc = _root.attachMovie("ammopickup", "ammopickup" + _root.counter, _root.counter, {_x:_root.objcell_mc["enemytarget" + thenumber]._x + 250, _y:_root.objcell_mc["enemytarget" + thenumber]._y + 250});
_root.counter = _root.counter + 1;
if (_root.counter >= 620) {
_root.counter = 600;
}
_root.colourflavour = random(3);
mc.ammocratetype = _root.colourflavour;
mc.gotoAndPlay(_root.colourflavour + 1);
mc._rotation = random(200);
mc.onEnterFrame = function () {
if (_root.objcell_mc.man.hitTest(this)) {
if (this.ammocratetype == 0) {
if (_root.ammotype == 0) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.pistolreserve = _root.pistolreserve + (_root.zombiehealth * 2);
}
} else if (this.ammocratetype == 1) {
if (_root.ammotype == 1) {
_root.inclip = _root.inclip + _root.zombiehealth;
} else {
_root.shotgunreserve = _root.shotgunreserve + _root.zombiehealth;
}
} else if (this.ammocratetype == 2) {
if (_root.ammotype == 2) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.smgreserve = _root.smgreserve + (_root.zombiehealth * 2);
}
}
if (_root.bullettime > 1) {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reloadslow");
_root.energypickupaudio.start(0, 1);
} else {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reload");
_root.energypickupaudio.start(0, 1);
}
this.removeMovieClip();
}
};
Symbol 144 MovieClip Frame 75
if (_root.zombieskilled == 29) {
_root.zombiewavecomplete.play();
} else {
_root.zombieskilled = _root.zombieskilled + 1;
}
removeMovieClip(_root.objcell_mc["enemytarget" + thenumber]);
Instance of Symbol 110 MovieClip in Symbol 147 MovieClip Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.objcell_mc.man)) {
if (_root.objcell_mc.man.health > 0) {
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc.man._x + 250, _y:_root.objcell_mc.man._y + 250, _rotation:((_root.objcell_mc.man._rotation - 90) + -40) + (Math.random() * 80)});
_root.j = _root.j + 1;
_root.objcell_mc.man.health = _root.objcell_mc.man.health - 2;
_root.bloodscratch._rotation = Math.random() * 200;
_root.bloodscratch.play();
} else if (_root.objcell_mc.man.alive == 1) {
_root.objcell_mc.man.alive = 0;
_root.objcell_mc.man.gotoAndStop(4);
_root.bloodscratch.play();
_root.bloodscratch._rotation = Math.random() * 200;
}
}
}
Instance of Symbol 110 MovieClip in Symbol 147 MovieClip Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(_root.objcell_mc.man)) {
if (_root.objcell_mc.man.health > 0) {
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc.man._x + 250, _y:_root.objcell_mc.man._y + 250, _rotation:((_root.objcell_mc.man._rotation - 90) + -40) + (Math.random() * 80)});
_root.j = _root.j + 1;
_root.objcell_mc.man.health = _root.objcell_mc.man.health - 2;
_root.bloodscratch._rotation = Math.random() * 200;
_root.bloodscratch.play();
} else if (_root.objcell_mc.man.alive == 1) {
_root.objcell_mc.man.alive = 0;
_root.objcell_mc.man.gotoAndStop(4);
_root.bloodscratch.play();
_root.bloodscratch._rotation = Math.random() * 200;
}
}
}
Symbol 151 MovieClip Frame 86
mc = _root.attachMovie("ammopickup", "ammopickup" + _root.counter, _root.counter, {_x:_root.objcell_mc["enemytarget" + thenumber]._x + 250, _y:_root.objcell_mc["enemytarget" + thenumber]._y + 250});
_root.counter = _root.counter + 1;
if (_root.counter >= 620) {
_root.counter = 600;
}
_root.colourflavour = random(3);
mc.ammocratetype = _root.colourflavour;
mc.gotoAndPlay(_root.colourflavour + 1);
mc._rotation = random(200);
mc.onEnterFrame = function () {
if (_root.objcell_mc.man.hitTest(this)) {
if (this.ammocratetype == 0) {
if (_root.ammotype == 0) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.pistolreserve = _root.pistolreserve + (_root.zombiehealth * 2);
}
} else if (this.ammocratetype == 1) {
if (_root.ammotype == 1) {
_root.inclip = _root.inclip + _root.zombiehealth;
} else {
_root.shotgunreserve = _root.shotgunreserve + _root.zombiehealth;
}
} else if (this.ammocratetype == 2) {
if (_root.ammotype == 2) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.smgreserve = _root.smgreserve + (_root.zombiehealth * 2);
}
}
if (_root.bullettime > 1) {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reloadslow");
_root.energypickupaudio.start(0, 1);
} else {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reload");
_root.energypickupaudio.start(0, 1);
}
this.removeMovieClip();
}
};
Symbol 151 MovieClip Frame 87
if (_root.zombieskilled == 29) {
_root.zombiewavecomplete.play();
} else {
_root.zombieskilled = _root.zombieskilled + 1;
}
removeMovieClip(_root.objcell_mc["enemytarget" + thenumber]);
Symbol 152 MovieClip [enemytarget1] Frame 1
stop();
Symbol 152 MovieClip [enemytarget1] Frame 2
stop();
Symbol 152 MovieClip [enemytarget1] Frame 3
stop();
Symbol 152 MovieClip [enemytarget1] Frame 4
stop();
Symbol 152 MovieClip [enemytarget1] Frame 5
stop();
Symbol 152 MovieClip [enemytarget1] Frame 6
stop();
Symbol 200 MovieClip Frame 59
mc = _root.attachMovie("ammopickup", "ammopickup" + _root.counter, _root.counter, {_x:_root.objcell_mc["enemytarget" + thenumber]._x + 250, _y:_root.objcell_mc["enemytarget" + thenumber]._y + 250});
_root.counter = _root.counter + 1;
if (_root.counter >= 620) {
_root.counter = 600;
}
_root.colourflavour = random(3);
mc.ammocratetype = _root.colourflavour;
mc.gotoAndPlay(_root.colourflavour + 1);
mc._rotation = random(200);
mc.onEnterFrame = function () {
if (_root.objcell_mc.man.hitTest(this)) {
if (this.ammocratetype == 0) {
if (_root.ammotype == 0) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.pistolreserve = _root.pistolreserve + (_root.zombiehealth * 2);
}
} else if (this.ammocratetype == 1) {
if (_root.ammotype == 1) {
_root.inclip = _root.inclip + _root.zombiehealth;
} else {
_root.shotgunreserve = _root.shotgunreserve + _root.zombiehealth;
}
} else if (this.ammocratetype == 2) {
if (_root.ammotype == 2) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.smgreserve = _root.smgreserve + (_root.zombiehealth * 2);
}
}
if (_root.bullettime > 1) {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reloadslow");
_root.energypickupaudio.start(0, 1);
} else {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reload");
_root.energypickupaudio.start(0, 1);
}
this.removeMovieClip();
}
};
Symbol 200 MovieClip Frame 60
if (_root.zombieskilled == 29) {
_root.zombiewavecomplete.play();
} else {
_root.zombieskilled = _root.zombieskilled + 1;
}
removeMovieClip(_root.objcell_mc["enemytarget" + thenumber]);
Symbol 203 MovieClip Frame 87
mc = _root.attachMovie("ammopickup", "ammopickup" + _root.counter, _root.counter, {_x:_root.objcell_mc["enemytarget" + thenumber]._x + 250, _y:_root.objcell_mc["enemytarget" + thenumber]._y + 250});
_root.counter = _root.counter + 1;
if (_root.counter >= 620) {
_root.counter = 600;
}
_root.colourflavour = random(3);
mc.ammocratetype = _root.colourflavour;
mc.gotoAndPlay(_root.colourflavour + 1);
mc._rotation = random(200);
mc.onEnterFrame = function () {
if (_root.objcell_mc.man.hitTest(this)) {
if (this.ammocratetype == 0) {
if (_root.ammotype == 0) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.pistolreserve = _root.pistolreserve + (_root.zombiehealth * 2);
}
} else if (this.ammocratetype == 1) {
if (_root.ammotype == 1) {
_root.inclip = _root.inclip + _root.zombiehealth;
} else {
_root.shotgunreserve = _root.shotgunreserve + _root.zombiehealth;
}
} else if (this.ammocratetype == 2) {
if (_root.ammotype == 2) {
_root.inclip = _root.inclip + (_root.zombiehealth * 2);
} else {
_root.smgreserve = _root.smgreserve + (_root.zombiehealth * 2);
}
}
if (_root.bullettime > 1) {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reloadslow");
_root.energypickupaudio.start(0, 1);
} else {
_root.energypickupaudio = new Sound(_root);
_root.energypickupaudio.attachSound("reload");
_root.energypickupaudio.start(0, 1);
}
this.removeMovieClip();
}
};
Symbol 203 MovieClip Frame 88
if (_root.zombieskilled == 29) {
_root.zombiewavecomplete.play();
} else {
_root.zombieskilled = _root.zombieskilled + 1;
}
removeMovieClip(_root.objcell_mc["enemytarget" + thenumber]);
Symbol 204 MovieClip [enemytarget0] Frame 1
stop();
Symbol 204 MovieClip [enemytarget0] Frame 2
stop();
Symbol 204 MovieClip [enemytarget0] Frame 3
stop();
Symbol 204 MovieClip [enemytarget0] Frame 4
stop();
Symbol 204 MovieClip [enemytarget0] Frame 5
stop();
Symbol 204 MovieClip [enemytarget0] Frame 6
stop();
Symbol 208 MovieClip [bloodpatch] Frame 462
stop();
Symbol 220 MovieClip [blacktoscores] Frame 1
stop();
Symbol 220 MovieClip [blacktoscores] Frame 133
_root.gotoAndStop("scores");
_root.objcell_mc.removeMovieClip();
this.removeMovieClip();
Symbol 226 MovieClip [bulletscratch] Frame 1
stop();
Symbol 229 MovieClip [bloodscratch] Frame 1
stop();
Symbol 237 MovieClip [ammopickup] Frame 1
stop();
Symbol 237 MovieClip [ammopickup] Frame 2
stop();
Symbol 237 MovieClip [ammopickup] Frame 3
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 6
gotoAndPlay (1);
Symbol 260 MovieClip Frame 21
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 260 MovieClip Frame 66
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 273 MovieClip Frame 1
stop();
Instance of Symbol 268 MovieClip "foot" in Symbol 273 MovieClip Frame 9
onClipEvent (enterFrame) {
var i = 0;
while (i <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + i].zombie)) {
if (_root.objcell_mc["enemytarget" + i].alive == 1) {
if (_root.kicking1 == 0) {
_root.kicking1 = 1;
if (_root.bullettime > 1) {
kicksound = new Sound(_root);
kicksound.attachSound("fleshslow");
kicksound.start(0, 1);
} else {
kicksound = new Sound(_root);
kicksound.attachSound("flesh");
kicksound.start(0, 1);
}
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc["enemytarget" + i]._x + 250, _y:_root.objcell_mc["enemytarget" + i]._y + 250, _rotation:((_root.objcell_mc["enemytarget" + i]._rotation - 180) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + i]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + i].vx = _root.objcell_mc["enemytarget" + i].vx + 6;
}
if (_root.objcell_mc["enemytarget" + i]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + i].vx = _root.objcell_mc["enemytarget" + i].vx - 6;
}
if (_root.objcell_mc["enemytarget" + i]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + i].vy = _root.objcell_mc["enemytarget" + i].vy + 6;
}
if (_root.objcell_mc["enemytarget" + i]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + i].vy = _root.objcell_mc["enemytarget" + i].vy - 6;
}
if (_root.objcell_mc["enemytarget" + i].health > 0) {
_root.objcell_mc["enemytarget" + i].health = _root.objcell_mc["enemytarget" + i].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + i].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + i].gotoAndStop(3);
}
_root.score = _root.score + 2000;
_root.objcell_mc["enemytarget" + i].alive = 0;
_root.objcell_mc["enemytarget" + i].zombie.thenumber = i;
}
}
}
} else {
_root.kicking1 = 0;
}
i++;
}
}
Symbol 273 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 268 MovieClip "foot" in Symbol 273 MovieClip Frame 40
onClipEvent (enterFrame) {
var i = 0;
while (i <= _root.zombienumber) {
if (this.hitTest(_root.objcell_mc["enemytarget" + i].zombie)) {
if (_root.objcell_mc["enemytarget" + i].alive == 1) {
if (_root.kicking1 == 0) {
_root.kicking1 = 1;
_root.attachMovie("explosion", "explosion" + _root.j, _root.j, {_x:_root.objcell_mc["enemytarget" + i]._x + 250, _y:_root.objcell_mc["enemytarget" + i]._y + 250, _rotation:((_root.objcell_mc["enemytarget" + i]._rotation - 180) + -20) + (Math.random() * 40)});
_root.j = _root.j + 1;
if (_root.j > 3015) {
_root.j = 3000;
}
_root.shaker.gotoAndPlay("lighthit");
if (_root.objcell_mc["enemytarget" + i]._x > _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + i].vx = _root.objcell_mc["enemytarget" + i].vx + 6;
}
if (_root.objcell_mc["enemytarget" + i]._x < _root.objcell_mc.man._x) {
_root.objcell_mc["enemytarget" + i].vx = _root.objcell_mc["enemytarget" + i].vx - 6;
}
if (_root.objcell_mc["enemytarget" + i]._y > _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + i].vy = _root.objcell_mc["enemytarget" + i].vy + 6;
}
if (_root.objcell_mc["enemytarget" + i]._y < _root.objcell_mc.man._y) {
_root.objcell_mc["enemytarget" + i].vy = _root.objcell_mc["enemytarget" + i].vy - 6;
}
if (_root.objcell_mc["enemytarget" + i].health > 0) {
_root.objcell_mc["enemytarget" + i].health = _root.objcell_mc["enemytarget" + i].health - 1;
} else {
if (_root.bullettime > 1) {
_root.objcell_mc["enemytarget" + i].gotoAndStop(6);
} else {
_root.objcell_mc["enemytarget" + i].gotoAndStop(3);
}
_root.score = _root.score + 2000;
_root.objcell_mc["enemytarget" + i].alive = 0;
_root.objcell_mc["enemytarget" + i].zombie.thenumber = i;
}
}
}
} else {
_root.kicking1 = 0;
}
i++;
}
}
Symbol 273 MovieClip Frame 69
gotoAndStop (1);
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 6
gotoAndPlay (1);
Symbol 280 MovieClip Frame 21
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 280 MovieClip Frame 60
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 6
gotoAndPlay (1);
Symbol 293 MovieClip Frame 21
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 293 MovieClip Frame 70
_root.ready = 1;
_root.isreloading = 0;
gotoAndPlay (1);
Symbol 308 MovieClip Frame 21
_root.blacktoscores.play();
stop();
Symbol 309 MovieClip [man] Frame 1
stop();
Symbol 309 MovieClip [man] Frame 2
stop();
Symbol 309 MovieClip [man] Frame 3
stop();
Symbol 309 MovieClip [man] Frame 4
stop();
Symbol 454 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local10);
}
}
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 30
stop();
Symbol 321 MovieClip Frame 30
stop();
Symbol 324 Button
on (release) {
if (_root.extrablood == "on") {
_root.extrablood = "off";
} else {
_root.extrablood = "on";
}
}
Symbol 334 Button
on (release) {
if (_root.soundon == 1) {
_root.soundon = 0;
} else {
_root.soundon = 1;
}
}
Instance of Symbol 335 MovieClip in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundon == 0) {
this.gotoAndStop(1);
_root.tune.setVolume(0);
} else {
_root.tune.setVolume(100);
this.play();
}
}
Symbol 340 Button
on (release) {
getURL ("http://www.steampowered.com", "_blank");
}
Symbol 345 Button
on (release) {
getURL ("http://www.thorgaming.com/highscores/index.php?game=21&diff=1&order=top", "_blank");
}
Symbol 349 Button
on (release) {
_root.play();
}
Symbol 394 MovieClip Frame 1
_root.stop();
playtrack();
play();
Symbol 394 MovieClip Frame 246
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 3
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 45
gotoAndStop (1);
Symbol 406 MovieClip Frame 76
gotoAndStop (1);
Symbol 412 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 424 Button
on (release) {
_root.thebackground.gotoAndStop(1);
_root.gotoAndPlay(2);
}
Symbol 430 Button
on (release) {
getURL ("http://www.thorgaming.com/flasharcade/", "_blank");
}
Symbol 440 Button
on (release) {
System.security.allowDomain("thorgaming.com");
_root.buttonhit = new Sound(_root);
_root.buttonhit.attachSound("buttonhit");
_root.buttonhit.start(0, 1);
_root.scorestatus = "Please Wait";
_root.scoreboard.thescoreboard.submitbutton._visible = 0;
_root.serverList = new LoadVars();
_root.serverList.load((((("http://www.thorgaming.com/highscores/submit.php?op=Submit&game_id=21&game_name=" + _root.name) + "&game_score=") + _root.score) + "&game_diff=1&nocache=") + random(65000));
_root.serverList.onLoad = function (true) {
if (_root.serverList.result == "ok") {
_root.song.stop();
getURL ("http://www.thorgaming.com/highscores/index.php?game=21&diff=1&order=top", "_blank");
_root.scoreboard.thescoreboard.submitbutton._visible = 1;
_root.thebackground.gotoAndStop(1);
_root.gotoAndPlay(2);
} else {
_root.scoreboard.thescoreboard.submitbutton._visible = 1;
_root.scorestatus = "Please retry";
}
};
}
on (rollOver) {
_root.menubeep = new Sound(_root);
_root.menubeep.attachSound("menubeep");
_root.menubeep.start(0, 1);
}
on (rollOver) {
drop = new Sound(this);
drop.attachSound("drop");
drop.start(0, 1);
}
Symbol 453 MovieClip Frame 30
stop();