Frame 1
stop();
Instance of Symbol 173 MovieClip in Frame 1
on (release) {
getURL ("http://www.y8.com", "_blank");
}
Frame 2
_root.myClip.swapDepths(9999999);
var p1 = new Sound();
p1.attachSound("SFX_PowerUpA_02");
var hightab = 1;
var zdeath = 0;
stop();
_root._quality = "LOW";
var highscorecounter = 0;
var bggfx = 1;
var nrEnemies = 8;
var difficulty = 0.005;
var lowstat = 1;
var addsign = random(6);
var highscorerr = 0;
var highstat = 11;
var xp = 1;
var damager = 1;
var weapon = 0;
var damagelevel = 0;
var damagegfx = 1;
var shootspeedlevel = 0;
var experienceup = 1;
var adstop = 0;
var levelscreen = 0;
var weaponswapped = 1;
var lvl = 1;
var gamescreen = 0;
var loadered = 0;
this.onEnterFrame = function () {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
_root.preloading.swapDepths(99999);
if ((Key.isDown(90) && (_root.preloading.preloader._currentframe == 3)) && (adstop == 1)) {
p1.start();
_root.fade.gotoAndPlay(2);
_root.titles.removeMovieClip();
_root.loader.removeMovieClip();
_root.loading.removeMovieClip();
this.removeMovieClip();
_root.bars.removeMovieClip();
_root.preloading.gotoAndPlay(2);
_root.gotoAndStop(3);
}
_root.bggfx = 2;
};
_global.game.resume();
_root.adstop = 1;
Instance of Symbol 176 MovieClip "bars" in Frame 2
onClipEvent (load) {
this.swapDepths(99998);
var loaddone = 0;
}
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) {
percent = 0;
}
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
this.gotoAndStop(per);
if ((percent > 99) && (loaddone == 0)) {
_root.loadered = 1;
_root.loading.gotoAndStop(2);
}
}
Instance of Symbol 115 MovieClip [fades] "fade" in Frame 2
onClipEvent (load) {
this.swapDepths(999999999);
}
Frame 3
stop();
holder = 0;
var p1 = new Sound();
p1.attachSound("SFX_PowerUpA_02");
_root.fade.swapDepths(99999999);
if (_root.bggfx >= 5) {
_root.bggfx = 2;
}
_root.newbg.gotoAndStop(_root.bggfx);
if (addsign == 0) {
_root.newbg.thesign.gotoAndStop(1);
}
if (addsign == 1) {
_root.newbg.thesign.gotoAndStop(2);
}
if (addsign == 2) {
_root.newbg.thesign.gotoAndStop(3);
}
if (addsign == 3) {
_root.newbg.thesign.gotoAndStop(4);
}
if (addsign == 4) {
_root.newbg.thesign.gotoAndStop(5);
}
if (addsign == 5) {
_root.newbg.thesign.gotoAndStop(6);
}
if (addsign == 6) {
addsign = 0;
}
if (highscorerr == 1) {
_root.painmovie.gotoAndStop(2);
}
menutimer = getTimer() + 800;
var carhit = new Sound();
carhit.attachSound("sfx_gibland_01");
var lvl1pain = new Sound();
lvl1pain.attachSound("VO_Smack_Driveby_01");
var lvl1pain1 = new Sound();
lvl1pain1.attachSound("SFX_CarSkidCrash_03");
if (_root.levelscreen >= 1) {
gotoAndStop (4);
stopAllSounds();
}
this.onEnterFrame = function () {
if (Key.isDown(90) && (menutimer <= getTimer())) {
if (highscorerr == 1) {
zdeath = 0;
gotoAndStop (4);
stopAllSounds();
} else {
gotoAndStop (4);
stopAllSounds();
}
}
};
Instance of Symbol 113 MovieClip [newbg] "newbg" in Frame 3
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
}
Instance of Symbol 216 MovieClip [painmovie] "painmovie" in Frame 3
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(29300);
}
Frame 4
function loader() {
if (weapon == 0) {
bulletDelay = 220 - shootspeedlevel;
_root.clipsize.weaponno = 0;
_root.clipsize.csize = 9;
_root.clipsize.csizemax = 9;
_root.clipsize.gotoAndStop(9);
_root.Ship.top.gotoAndStop(1);
weaponshoot = 11;
weaponreload = 21;
bullety = -5;
pistolload.start();
_root.Ship.top.gotoAndPlay(weaponreload);
weaponswapped = 0;
}
if (weapon == 1) {
bulletDelay = 1000 - shootspeedlevel;
_root.clipsize.weaponno = 1;
_root.clipsize.csize = 6;
_root.clipsize.csizemax = 6;
_root.clipsize.gotoAndStop(36);
_root.Ship.top.gotoAndStop(70);
weaponshoot = 80;
weaponreload = 125;
bullety = 0;
shotgunload.start();
_root.Ship.top.gotoAndPlay(weaponreload);
weaponswapped = 0;
}
if (weapon == 2) {
bulletDelay = 140 - shootspeedlevel;
_root.clipsize.csize = 15;
_root.clipsize.csizemax = 15;
_root.clipsize.gotoAndStop(30);
_root.Ship.top.gotoAndStop(186);
weaponshoot = 196;
weaponreload = 221;
bullety = 2;
mgload.start();
_root.Ship.top.gotoAndPlay(weaponreload);
weaponswapped = 0;
}
if (weapon == 3) {
bulletDelay = 550 - shootspeedlevel;
_root.clipsize.weaponno = 3;
_root.clipsize.csize = 2;
_root.clipsize.csizemax = 2;
_root.clipsize.gotoAndStop(38);
_root.Ship.top.gotoAndStop(332);
weaponshoot = 337;
weaponreload = 360;
bullety = 2;
_root.Ship.top.gotoAndPlay(weaponreload);
pistolload.start();
weaponswapped = 0;
}
if (weapon == 4) {
bulletDelay = 1000 - shootspeedlevel;
_root.clipsize.weaponno = 4;
_root.clipsize.csize = 2;
_root.clipsize.csizemax = 2;
_root.clipsize.gotoAndStop(40);
_root.Ship.top.gotoAndStop(262);
weaponshoot = 271;
weaponreload = 292;
bullety = 2;
_root.Ship.top.gotoAndPlay(weaponreload);
weaponswapped = 0;
rktreload.start();
}
if (weapon == 5) {
bulletDelay = 150;
_root.clipsize.weaponno = 5;
_root.clipsize.csize = 2;
_root.clipsize.csizemax = 2;
_root.clipsize.gotoAndStop(42);
_root.Ship.top.gotoAndStop(406);
weaponshoot = 438;
weaponreload = 410;
bullety = 2;
_root.Ship.top.gotoAndPlay(weaponreload);
weaponswapped = 0;
chainload.start();
chainidle.start();
}
_root.clipsize.update();
reloadtimer = (getTimer() + 1000) - _root.shootspeedlevel;
_root.level.gotoAndStop(_root.lvl);
}
function shellmanager() {
if (shellno >= nrShells) {
shellno = 1;
_root["shells" + shellno]._x = _root.Ship._x;
_root["shells" + shellno]._y = _root.Ship._y + 10;
if (weapon != 1) {
_root["shells" + shellno].gotoAndPlay(1);
}
if (weapon == 1) {
_root["shells" + shellno].gotoAndPlay(143);
}
} else {
shellno = shellno + 1;
_root["shells" + shellno]._x = _root.Ship._x;
_root["shells" + shellno]._y = _root.Ship._y + 10;
_root["shells" + shellno].gotoAndPlay(1);
if (weapon != 1) {
_root["shells" + shellno].gotoAndPlay(1);
}
if (weapon == 1) {
_root["shells" + shellno].gotoAndPlay(143);
}
}
}
function bodymanager(bx, by, dir) {
if (bodyno >= nrBody) {
bodyno = 1;
_root["body" + bodyno]._x = bx;
_root["body" + bodyno]._y = by + 25;
btype = random(3) + 1;
if (btype == 1) {
_root["body" + bodyno].gotoAndPlay(1);
}
if (btype == 2) {
_root["body" + bodyno].gotoAndPlay(21);
}
if (btype == 3) {
_root["body" + bodyno].gotoAndPlay(45);
}
if (dir == 2) {
_root["body" + bodyno]._xscale = 150;
}
if (dir == 1) {
_root["body" + bodyno]._xscale = -150;
}
} else {
bodyno = bodyno + 1;
_root["body" + bodyno]._x = bx;
_root["body" + bodyno]._y = by + 25;
btype = random(3) + 1;
if (btype == 1) {
_root["body" + bodyno].gotoAndPlay(1);
}
if (btype == 2) {
_root["body" + bodyno].gotoAndPlay(21);
}
if (btype == 3) {
_root["body" + bodyno].gotoAndPlay(45);
}
if (dir == 2) {
_root["body" + bodyno]._xscale = 150;
}
if (dir == 1) {
_root["body" + bodyno]._xscale = -150;
}
}
}
function bulletmanager() {
if (bulletno >= (nrbullet - 1)) {
bulletno = 1;
_root["bullet" + bulletno].reseter();
_root["bullet" + bulletno].fire.gotoAndStop(1);
_root["bullet" + bulletno].fire.bulletguts.gotoAndStop(damagegfx);
_root["bullet" + bulletno]._x = _root.Ship._x;
_root["bullet" + bulletno]._y = (_root.Ship._y + _root["bullet" + bulletno].spray) + bullety;
_root["bullet" + bulletno].damage = damager + damagelevel;
_root["bullet" + bulletno].spray = (bulletspray + random(5)) - random(5);
_root["bullet" + bulletno].facedir = _root.Ship.facedir;
if (_root.weapon == 4) {
_root["bullet" + bulletno].fire.gotoAndStop(16);
} else {
_root["bullet" + bulletno].fire.gotoAndPlay(1);
_root["bullet" + bulletno].fire.bulletguts.gotoAndStop(damagegfx);
}
if (_root.Ship.facedir == 1) {
_root["bullet" + bulletno]._xscale = -200;
_root["bullet" + bulletno]._yscale = 200;
}
if (_root.Ship.facedir == 2) {
_root["bullet" + bulletno]._xscale = 200;
_root["bullet" + bulletno]._yscale = 200;
}
} else {
bulletno = bulletno + 1;
_root["bullet" + bulletno].reseter();
_root["bullet" + bulletno].fire.gotoAndStop(1);
_root["bullet" + bulletno].fire.bulletguts.gotoAndStop(damagegfx);
_root["bullet" + bulletno]._x = _root.Ship._x;
_root["bullet" + bulletno]._y = (_root.Ship._y + _root["bullet" + bulletno].spray) + bullety;
_root["bullet" + bulletno].damage = damager + damagelevel;
_root["bullet" + bulletno].spray = (bulletspray + random(5)) - random(5);
_root["bullet" + bulletno].facedir = _root.Ship.facedir;
if (_root.weapon == 4) {
_root["bullet" + bulletno].fire.gotoAndStop(16);
} else {
_root["bullet" + bulletno].fire.gotoAndPlay(1);
}
if (_root.Ship.facedir == 1) {
_root["bullet" + bulletno]._xscale = -200;
_root["bullet" + bulletno]._yscale = 200;
}
if (_root.Ship.facedir == 2) {
_root["bullet" + bulletno]._xscale = 200;
_root["bullet" + bulletno]._yscale = 200;
}
}
}
function shooter() {
bulletmanager();
_root.Ship.freezetimer = getTimer() + 150;
if ((weapon != 4) && (weapon != 5)) {
shellmanager();
}
bulletReady = false;
currentTime = getTimer();
_root.clipsize.csize = _root.clipsize.csize - 1;
_root.clipsize.update();
_root.Ship.top.gotoAndPlay(weaponshoot);
var _local2 = random(3);
}
_root.fade.gotoAndPlay(1);
_root.fade.swapDepths(999999999);
_root.shells.removeMovieClip();
_root.Bullet.removeMovieClip();
_root.body.removeMovieClip();
totalkills = 0;
this.shells.stop();
_root.Ship._xscale = 200;
_root.Ship._yscale = 200;
_root.stop();
var mainVar = 0;
_root.painmovie.removeMovieClip();
this.Ship.gunfx.gotoAndStop(59);
var pickupno = 0;
var bodyx = 0;
var bodyy = 0;
var bulletSpeed = 100;
var bulletReady = true;
var reloadReady = true;
var reminder = 0;
var shootblocker = 1;
var bulletspray = 0;
var gameover = 0;
var bullety = -5;
var shotgunsfxtimer = 0;
var bosspercent = 0;
var nrShells = 10;
var bulletno = 1;
var nrbullet = 5;
var bulletdepth = 44000;
var bloodno = 1;
var shelldepth = -500;
var shellno = 1;
var blooddepth = -10000;
var barrier = 290;
var ztimer1 = 0;
var shotguncount = 0;
var shotguncounter = 0;
var nrBody = 15;
var bodydepth = -8000;
var bodyno = 1;
var w0 = 49;
var w1 = 50;
var w2 = 51;
var w3 = 52;
var w4 = 53;
var w5 = 54;
var R = 88;
var kup = 38;
var kdown = 40;
var kleft = 37;
var kright = 39;
var RKEY = 16;
var nrEnemies1 = nrEnemies;
var levelquota = 140;
var flagger = 0;
var shotgunfire = new Sound();
shotgunfire.attachSound("SFX_ShotFire_13");
var mgfire = new Sound();
mgfire.attachSound("SFX_MacFire_03");
var pistolfire = new Sound();
pistolfire.attachSound("SFX_PistolFire_03");
var mgload = new Sound();
mgload.attachSound("SFX_MacLoad_07");
var shotgunload = new Sound();
shotgunload.attachSound("SFX_ShotLoad_22");
var pistolload = new Sound();
pistolload.attachSound("SFX_PistolLoad_08");
var mgnone = new Sound();
mgnone.attachSound("sfx_macempty_01");
var shotgunnone = new Sound();
shotgunnone.attachSound("sfx_shotempty_01");
var pistolnone = new Sound();
pistolnone.attachSound("sfx_pistolempty_01");
var zidle1 = new Sound();
zidle1.attachSound("VO_Zombie_Woman_01a");
var zidle2 = new Sound();
zidle2.attachSound("VO_Zombie_Raar_05a");
var zidle3 = new Sound();
zidle3.attachSound("VO_Zombie_Raar_03a");
var zidle4 = new Sound();
zidle4.attachSound("VO_Zombie_Raar_01a");
var zidle5 = new Sound();
zidle5.attachSound("VO_Zombie_Moan_05a");
var zidle6 = new Sound();
zidle6.attachSound("VO_Zombie_Moan_04a");
var zidle7 = new Sound();
zidle7.attachSound("VO_Zombie_Moan_03a");
var zidle8 = new Sound();
zidle8.attachSound("VO_Zombie_Moan_02a");
var zidle0 = new Sound();
zidle0.attachSound("VO_Zombie_Moan_01a");
var zboss = new Sound();
zboss.attachSound("VO_Zombie_Boss_16");
var zboss1 = new Sound();
zboss1.attachSound("VO_Zombie_Boss_15");
var plvlup = new Sound();
plvlup.attachSound("VO_McPain_Win_10");
var pkill4 = new Sound();
pkill4.attachSound("VO_McPain_Win_18a");
var pkill5 = new Sound();
pkill5.attachSound("VO_McPain_Win_14a");
var pkill6 = new Sound();
pkill6.attachSound("VO_McPain_Win_07a");
var pkill7 = new Sound();
pkill7.attachSound("VO_McPain_Win_02a");
var pkill0 = new Sound();
pkill0.attachSound("VO_McPain_Win_18a");
var pinj1 = new Sound();
pinj1.attachSound("VO_McPain_Injured_18a");
var pinj2 = new Sound();
pinj2.attachSound("VO_McPain_Injured_14a");
var pinj0 = new Sound();
pinj0.attachSound("VO_McPain_Injured_08a");
var pkill1 = new Sound();
pkill1.attachSound("VO_McPain_Killing_06a");
var pkill2 = new Sound();
pkill2.attachSound("VO_McPain_Killing_05a");
var pkill3 = new Sound();
pkill3.attachSound("VO_McPain_Killing_01a");
var pdead = new Sound();
pdead.attachSound("VO_McPain_Injured_12a");
var winner = new Sound();
winner.attachSound("VO_McPain_Powerup_05a");
var chainimpact = new Sound();
chainimpact.attachSound("SFX_ChainImpact_04");
var boltimpact = new Sound();
boltimpact.attachSound("SFX_BoltImpact_02");
var mgimpact = new Sound();
mgimpact.attachSound("SFX_MacImpact_04");
var pistolimpact = new Sound();
pistolimpact.attachSound("SFX_MacImpact_04");
var shotgunimpact = new Sound();
shotgunimpact.attachSound("SFX_ShotImpact_06");
var rktimpact = new Sound();
rktimpact.attachSound("SFX_RockMeat2_04");
var newempty = new Sound();
newempty.attachSound("SFX_ReLoadLoop_05");
var boltshoot = new Sound();
boltshoot.attachSound("SFX_BoltFire_02");
var boltreload = new Sound();
boltreload.attachSound("SFX_BoltLoad_02");
var pistolshell = new Sound();
pistolshell.attachSound("SFX_PistolShell_05");
var shotgunshell = new Sound();
shotgunshell.attachSound("SFX_ShotShell_06");
var chainidle = new Sound();
chainidle.attachSound("SFX_ChainFireR_03");
var chainattack = new Sound();
chainattack.attachSound("SFX_ChainFireO_08");
var chainload = new Sound();
chainload.attachSound("SFX_ChainLoad_03");
var rktshoot = new Sound();
rktshoot.attachSound("SFX_RockFire_03");
var rktreload = new Sound();
rktreload.attachSound("SFX_RockLoad_07");
var rktempty = new Sound();
rktempty.attachSound("SFX_ReLoadLoop_05");
var rktimpact = new Sound();
rktimpact.attachSound("SFX_RockImpact_04");
var cratehit = new Sound();
cratehit.attachSound("SFX_CrateDrop_09");
var heli = new Sound();
heli.attachSound("SFX_Heli_03");
var helidrop = new Sound();
helidrop.attachSound("SFX_HeliDrop_03");
var mus = new Sound();
mus.attachSound("MUSIC_ThemeEditA_Short");
var mus1 = new Sound();
mus1.attachSound("MUSIC_ThemeEditB_Short");
var mus2 = new Sound();
mus2.attachSound("MUSIC_ThemeEditC_Short");
var winstopper = 0;
var wintimer = 0;
var rkttimer = 0;
var deadblocktimer = 0;
winner.start();
i = 1;
while (i < nrShells) {
_root.shells.duplicateMovieClip("shells" + i, shelldepth);
shelldepth = shelldepth + 1;
_root["shells" + i].gotoAndStop(142);
i++;
}
i = 1;
while (i < nrBody) {
_root.body.duplicateMovieClip("body" + i, bodydepth);
bodydepth = bodydepth - 1;
i++;
}
i = 1;
while (i < nrbullet) {
_root.Bullet.duplicateMovieClip("bullet" + i, bulletdepth);
bulletdepth = bulletdepth + 1;
i++;
}
i = 1;
while (i < nrEnemies) {
_root.Enemy0.duplicateMovieClip("Enemy" + i, _root.getNextHighestDepth());
i++;
}
var i = 0;
var deadreset = 0;
var music = new Sound();
music.attachSound("Ambient06");
music.start();
loader();
this.onEnterFrame = function () {
if ((reloadtimer <= getTimer()) && (shootblocker == 1)) {
shootblocker = 0;
}
if (reminder <= getTimer()) {
_root.newbg.errr.clickme.gotoAndPlay(2);
reminder = getTimer() + 9000;
}
if (deadreset == 1) {
i = 0;
while (i < nrEnemies) {
_root["Enemy" + i].removeMovieClip();
i++;
}
i = 0;
while (i < nrbullet) {
_root["bullet" + i].removeMovieClip();
i++;
}
i = 0;
while (i < nrBody) {
_root["body" + i].removeMovieClip();
i++;
}
deadreset = 0;
addsign = addsign + 1;
_root.gotoAndStop(3);
}
music.onSoundComplete = function () {
music.start();
};
if (((weapon == 4) && (this.clipsize.csize <= 1)) && (_root.Ship.top.rktidle1._currentframe == 1)) {
_root.Ship.top.rktidle1.gotoAndStop(2);
}
if (((weapon == 4) && (this.clipsize.csize >= 2)) && (_root.Ship.top.rktidle1._currentframe == 2)) {
_root.Ship.top.rktidle1.gotoAndStop(1);
}
if ((_root.gameover == 1) && (flagger == 0)) {
_root.undead.gotoAndStop(2);
_root.reloader.removeMovieClip();
_root.highscorerr = 1;
if (_root.highscorecounter == 0) {
_root.highscorecounter = getTimer() + 1500;
}
if (((_root.highscorecounter <= getTimer()) && (_root.deadreset == 0)) && (deadblocktimer <= getTimer())) {
_root.deadreset = 1;
_root.fade.gotoAndPlay(2);
p1.start();
nrEnemies = 10;
difficulty = 0.005;
lowstat = 1;
highstat = 11;
xp = 1;
damager = 1;
weapon = 0;
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
experienceup = 1;
levelscreen = 0;
weaponswapped = 1;
lvl = 1;
bggfx = 2;
stopAllSounds();
_root.hp.removeMovieClip();
_root.Ship.removeMovieClip();
_root.Bullet.removeMovieClip();
_root.pickup.removeMovieClip();
_root.shells.removeMovieClip();
_root.clipsize.removeMovieClip();
_root.spitweapons.removeMovieClip();
_root.Enemy0.removeMovieClip();
_root.Enemy1.removeMovieClip();
_root.Enemy2.removeMovieClip();
_root.Enemy3.removeMovieClip();
_root.Enemy4.removeMovieClip();
_root.Enemy5.removeMovieClip();
_root.Enemy6.removeMovieClip();
_root.Enemy7.removeMovieClip();
_root.Enemy8.removeMovieClip();
_root.Enemy9.removeMovieClip();
_root.Enemy10.removeMovieClip();
_root.Enemy11.removeMovieClip();
_root.Enemy12.removeMovieClip();
_root.Enemy13.removeMovieClip();
_root.Enemy14.removeMovieClip();
_root.Enemy15.removeMovieClip();
_root.Enemy16.removeMovieClip();
_root.Enemy17.removeMovieClip();
_root.Enemy18.removeMovieClip();
_root.Enemy19.removeMovieClip();
_root.Enemy20.removeMovieClip();
_root.undead.removeMovieClip();
_root.baby.removeMovieClip();
_root.newbg.removeMovieClip();
_root.loader.removeMovieClip();
_root.loading.removeMovieClip();
_root.reloader.removeMovieClip();
_root.level.removeMovieClip();
_root.chopper.removeMovieClip();
_root.crate.removeMovieClip();
_root.removeMovieClip();
_root.popup.removeMovieClip();
music.stop();
}
}
if ((((totalkills >= levelquota) && (flagger == 0)) && (nrEnemies1 <= 0)) && (winstopper == 0)) {
_root.undead.gotoAndStop(3);
_root.addvan.gotoAndPlay(2);
wintimer = getTimer() + 5000;
_root.bggfx = _root.bggfx + 1;
winstopper = 1;
}
if (((wintimer <= getTimer()) && (winstopper == 1)) && (nrEnemies1 <= 0)) {
_root.fade.gotoAndPlay(2);
stopAllSounds();
_root.hp.removeMovieClip();
_root.Ship.removeMovieClip();
_root.Bullet.removeMovieClip();
_root.pickup.removeMovieClip();
_root.shells.removeMovieClip();
_root.spitweapons.removeMovieClip();
_root.Enemy0.removeMovieClip();
_root.Enemy1.removeMovieClip();
_root.Enemy2.removeMovieClip();
_root.Enemy3.removeMovieClip();
_root.Enemy4.removeMovieClip();
_root.Enemy5.removeMovieClip();
_root.Enemy6.removeMovieClip();
_root.Enemy7.removeMovieClip();
_root.Enemy8.removeMovieClip();
_root.Enemy9.removeMovieClip();
_root.Enemy10.removeMovieClip();
_root.Enemy11.removeMovieClip();
_root.Enemy12.removeMovieClip();
_root.Enemy13.removeMovieClip();
_root.Enemy14.removeMovieClip();
_root.Enemy15.removeMovieClip();
_root.Enemy16.removeMovieClip();
_root.Enemy17.removeMovieClip();
_root.Enemy18.removeMovieClip();
_root.Enemy19.removeMovieClip();
_root.Enemy20.removeMovieClip();
_root.clipsize.removeMovieClip();
_root.undead.removeMovieClip();
_root.baby.removeMovieClip();
_root.newbg.removeMovieClip();
_root.loader.removeMovieClip();
_root.loading.removeMovieClip();
_root.reloader.removeMovieClip();
_root.level.removeMovieClip();
_root.chopper.removeMovieClip();
_root.crate.removeMovieClip();
_root.popup.removeMovieClip();
_root.removeMovieClip();
music.stop();
_root.levelscreen = _root.levelscreen + 1;
if (nrEnemies <= 15) {
nrEnemies = nrEnemies + 2;
}
_root.difficulty = _root.difficulty + 0.0001;
_root.deadreset = 1;
}
if (ztimer <= getTimer()) {
_root["zidle" + random(9)].start();
ztimer = getTimer() + 8000;
}
if (((Key.isDown(RKEY) && (reloadtimer <= getTimer())) && (_root.gameover == 0)) || ((Key.isDown(R) && (reloadtimer <= getTimer())) && (_root.gameover == 0))) {
reloaded();
_root.Ship.top.gotoAndPlay(weaponreload);
bulletReady = false;
currentTime = getTimer() + 100;
reloadtimer = getTimer() + 900;
_root.clipsize.reset();
reloadReady = false;
_root.reloader.gotoAndPlay(16);
shootblocker = 1;
if (weapon == 0) {
pistolload.start();
}
if (weapon == 1) {
shotgunload.start();
}
if (weapon == 2) {
mgload.start();
}
if (weapon == 3) {
boltreload.start();
}
if (weapon == 4) {
rktreload.start();
}
if (weapon == 5) {
chainload.start();
}
}
if ((((weaponswapped == 1) && (weapon == 0)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 220 - shootspeedlevel;
this.clipsize.weaponno = 0;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(1);
weaponshoot = 11;
weaponreload = 21;
bullety = -5;
pistolload.start();
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
_root.reloader.gotoAndPlay(16);
weaponswapped = 0;
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
if ((((weaponswapped == 1) && (weapon == 1)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 1000 - shootspeedlevel;
this.clipsize.weaponno = 1;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(70);
weaponshoot = 80;
weaponreload = 125;
bullety = 0;
shotgunload.start();
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
_root.reloader.gotoAndPlay(16);
weaponswapped = 0;
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
if ((((weaponswapped == 1) && (weapon == 2)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 140 - shootspeedlevel;
this.clipsize.weaponno = 2;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(186);
weaponshoot = 196;
weaponreload = 221;
bullety = 2;
mgload.start();
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
_root.reloader.gotoAndPlay(16);
weaponswapped = 0;
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
if ((((weaponswapped == 1) && (weapon == 3)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 550 - shootspeedlevel;
this.clipsize.weaponno = 3;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(332);
weaponshoot = 337;
weaponreload = 360;
bullety = 2;
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
pistolload.start();
_root.reloader.gotoAndPlay(16);
weaponswapped = 0;
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
if ((((weaponswapped == 1) && (weapon == 4)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 1000 - shootspeedlevel;
this.clipsize.weaponno = 4;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(262);
weaponshoot = 271;
weaponreload = 292;
bullety = 2;
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
_root.reloader.gotoAndPlay(16);
weaponswapped = 0;
rktreload.start();
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
if (((Key.isDown(90) && (reloadtimer >= getTimer())) && (weapon == 4)) && (rkttimer <= getTimer())) {
rktempty.start();
rkttimer = getTimer() + 300;
}
if ((((weaponswapped == 1) && (weapon == 5)) && (_root.gameover == 0)) && (reloadtimer <= getTimer())) {
bulletDelay = 150;
this.clipsize.weaponno = 5;
this.clipsize.reset();
_root.Ship.top.gotoAndStop(406);
weaponshoot = 438;
weaponreload = 410;
bullety = 2;
reloadtimer = getTimer() + 1000;
_root.Ship.top.gotoAndPlay(weaponreload);
_root.reloader.gotoAndPlay(23);
weaponswapped = 0;
chainload.start();
chainidle.start();
damagelevel = 0;
damagegfx = 1;
shootspeedlevel = 0;
}
chainidle.onSoundComplete = function () {
if (weapon == 5) {
chainidle.start();
}
};
if (((((bulletReady && (Key.isDown(90))) && (weapon == 5)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
_root.Ship.top.gotoAndPlay(weaponshoot);
_root.chainattack.start();
shoottimer = getTimer() + 550;
_root.Ship.top.chainsawcoll.chainupdate = 0;
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize > 1)) && (weapon == 0)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
damager = 1.5;
shooter();
shoottimer = getTimer() + 60;
pistolfire.start();
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize <= 1)) && (weapon == 0)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
pistolnone.start();
shoottimer = getTimer() + 500;
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize <= 1)) && (weapon == 1)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
shotgunnone.start();
shoottimer = getTimer() + 500;
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize <= 1)) && (weapon == 2)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
mgnone.start();
shoottimer = getTimer() + 500;
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize <= 1)) && (weapon == 3)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
shotgunnone.start();
shoottimer = getTimer() + 500;
}
if (((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize <= 1)) && (weapon == 4)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) && (winstopper == 0)) {
rktempty.start();
shoottimer = getTimer() + 500;
}
if ((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize > 1)) && (weapon == 1)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) {
damager = 2;
shooter();
shoottimer = getTimer() + 60;
shotgunfire.start();
}
if ((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize > 1)) && (weapon == 2)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) {
damager = 1;
shooter();
shoottimer = getTimer() + 60;
mgfire.start();
}
if ((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize > 1)) && (weapon == 3)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) {
damager = 12;
shooter();
shoottimer = getTimer() + 60;
boltshoot.start();
}
if ((((((bulletReady && (Key.isDown(90))) && (shootblocker == 0)) && (this.clipsize.csize > 1)) && (weapon == 4)) && (shoottimer <= getTimer())) && (_root.gameover == 0)) {
damager = 1.3;
shooter();
rktshoot.start();
shoottimer = getTimer() + 60;
} else if ((currentTime + bulletDelay) <= getTimer()) {
bulletReady = true;
}
};
Instance of Symbol 473 MovieClip "Ship" in Frame 4
onClipEvent (load) {
function reset() {
this._parent.clipsize.reset();
}
power = 2.6;
yspeed = 0;
xspeed = 0;
friction = 0.89;
zdepth = 0.4;
var tie = 0;
var astate = 0;
var aastate = 0;
var facedir = 1;
var kickon = 0;
ledge = 100;
redge = 500;
tedge = 250;
bedge = 400;
W = 87;
A = 65;
D = 68;
S = 83;
this._yscale = 200;
reset();
}
onClipEvent (enterFrame) {
if (((astate == 1) && (aastate == 0)) && (kickon == 0)) {
this.gotoAndPlay(25);
}
if ((astate == 0) && (aastate == 1)) {
this.gotoAndStop(1);
}
if ((astate == 2) && (aastate != 2)) {
this.gotoAndPlay(2);
kickon = 1;
}
if ((astate == 3) && (aastate != 3)) {
this.gotoAndPlay(51);
_root.gameover = 1;
}
if ((((xspeed >= -0.5) && (xspeed <= 0.5)) && (yspeed >= -0.5)) && (yspeed <= 0.5)) {
astate = 0;
}
if ((xspeed <= -0.5) | (xspeed >= 0.5)) {
astate = 1;
}
if ((yspeed <= -0.5) | (yspeed >= 0.5)) {
astate = 1;
}
if (((facedir == 1) && (_root.gameover == 0)) && (_root.shoottimer <= getTimer())) {
this._xscale = -200;
}
if (((facedir == 2) && (_root.gameover == 0)) && (_root.shoottimer <= getTimer())) {
this._xscale = 200;
}
if (this.zsorter <= getTimer()) {
this.swapDepths(this._y + 1025);
_root.baby.swapDepths(_root.baby._y + 990);
this.zsorter = getTimer() + 60;
}
if (Key.isDown(37) && (inputtimer <= getTimer())) {
xspeed = xspeed - power;
facedir = 1;
inputtimer = getTimer() + 60;
}
if (Key.isDown(A) && (inputtimer <= getTimer())) {
xspeed = xspeed - power;
facedir = 1;
inputtimer = getTimer() + 60;
}
if (Key.isDown(39) && (inputtimer <= getTimer())) {
xspeed = xspeed + power;
facedir = 2;
inputtimer = getTimer() + 60;
}
if (Key.isDown(D) && (inputtimer <= getTimer())) {
xspeed = xspeed + power;
facedir = 2;
inputtimer = getTimer() + 60;
}
if ((Key.isDown(38) && (this._y >= (_root.barrier + 5))) && (inputtimer <= getTimer())) {
yspeed = yspeed - (power * zdepth);
inputtimer = getTimer() + 60;
}
if ((Key.isDown(W) && (this._y >= (_root.barrier + 5))) && (inputtimer <= getTimer())) {
yspeed = yspeed - (power * zdepth);
inputtimer = getTimer() + 60;
}
if (this._y <= (_root.barrier + 4)) {
yspeed = 0;
}
if (this._y >= 385) {
yspeed = yspeed - 0.6;
}
if (this._x >= 790) {
xspeed = xspeed - 2;
}
if (this._x <= 10) {
xspeed = xspeed + 2;
}
if ((Key.isDown(40) && (inputtimer <= getTimer())) && (this._y <= 380)) {
yspeed = yspeed + (power * zdepth);
inputtimer = getTimer() + 60;
}
if ((Key.isDown(S) && (inputtimer <= getTimer())) && (this._y <= 380)) {
yspeed = yspeed + (power * zdepth);
inputtimer = getTimer() + 60;
}
xspeed = xspeed * friction;
yspeed = yspeed * friction;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
Instance of Symbol 488 MovieClip [clipsize] "clipsize" in Frame 4
onClipEvent (load) {
this.swapDepths(100000);
var reloaderupdater = 0;
this._xscale = 200;
this._yscale = 200;
var weaponno = _root.weapon;
reset();
}
onClipEvent (enterFrame) {
function reset() {
if (weaponno == 0) {
csizemax = 9;
csize = csizemax;
this.gotoAndStop(csize);
}
if (weaponno == 1) {
csizemax = 6;
csize = csizemax;
this.gotoAndStop(csize + 30);
clipupdate = getTimer() + 200;
}
if (weaponno == 2) {
csizemax = 15;
csize = csizemax;
this.gotoAndStop(csize + 15);
clipupdate = getTimer() + 200;
}
if (weaponno == 3) {
csizemax = 2;
csize = csizemax;
this.gotoAndStop(csize + 36);
clipupdate = getTimer() + 200;
}
if (weaponno == 4) {
csizemax = 2;
csize = csizemax;
this.gotoAndStop(csize + 38);
clipupdate = getTimer() + 200;
}
if (weaponno == 5) {
csizemax = 2;
csize = csizemax;
this.gotoAndStop(csize + 41);
clipupdate = getTimer() + 200;
}
}
function update() {
if (weaponno == 0) {
this.gotoAndStop(csize);
}
if (weaponno == 1) {
this.gotoAndStop(csize + 30);
}
if (weaponno == 2) {
this.gotoAndStop(csize + 15);
}
if (weaponno == 3) {
this.gotoAndStop(csize + 36);
}
if (weaponno == 4) {
this.gotoAndStop(csize + 38);
}
}
}
Instance of Symbol 514 MovieClip [Bullet] "Bullet" in Frame 4
onClipEvent (load) {
var spray = 0;
}
onClipEvent (enterFrame) {
function reseter() {
}
}
Instance of Symbol 604 MovieClip [Enemy] "Enemy0" in Frame 4
onClipEvent (load) {
function sub() {
if ((health > 0) && (animations != 5)) {
animations = 4;
this.enemygfx.gotoAndStop(61 + enemytype);
myaccel = 0;
if (_root.shotgunsfxtimer <= getTimer()) {
if (_root.weapon == 0) {
_root.pistolimpact.start();
}
if (_root.weapon == 1) {
_root.shotgunimpact.start();
}
if (_root.weapon == 2) {
_root.mgimpact.start();
}
if (_root.weapon == 3) {
_root.boltimpact.start();
}
if (_root.weapon == 4) {
_root.rktimpact.start();
}
_root.shotgunsfxtimer = getTimer() + 300;
}
}
if ((health <= 0) && (animations != 5)) {
_root.zdeath = _root.zdeath + 1;
_root.bosspercent = _root.bosspercent + 0.02;
_root.bodymanager(this._x, this._y, this.facedir);
_root.xp = _root.xp + (1 * _root.experienceup);
animations = 5;
_root.totalkills = _root.totalkills + 1;
myaccel = 0;
this["wound" + random(4)].start();
if (_root.shotgunsfxtimer <= getTimer()) {
if (_root.weapon == 0) {
_root.pistolimpact.start();
}
if (_root.weapon == 1) {
_root.shotgunimpact.start();
}
if (_root.weapon == 2) {
_root.mgimpact.start();
}
if (_root.weapon == 3) {
_root.boltimpact.start();
}
if (_root.weapon == 4) {
_root.rktimpact.start();
}
_root.shotgunsfxtimer = getTimer() + 300;
}
}
}
function reset() {
this._y = (random(100) + _root.barrier) + 25;
if (spawn == 1) {
this._x = 890;
}
if (spawn == 0) {
this._x = -50;
}
var _local3 = 12;
var _local4 = 0;
xwaitright = getTimer() + 100;
xwaitleft = getTimer() + 100;
animations = 1;
spawn = random(2);
deadstat = 0;
attackstat = 0;
randomdeath = 0;
rotatestat = 0;
instakill = 0;
mySpeed = (random(6) * 0.0009) + _root.difficulty;
mySpeedy = (0.2 + _root.difficulty) + (random(5) / 5);
var _local5 = mySpeed;
enemytyper = random(4) + 1;
if (enemytyper == 1) {
enemytype = 0;
this.health = random(3) + 3;
}
if (enemytyper == 2) {
enemytype = 149;
this.health = random(3) + 3;
}
if (enemytyper == 3) {
enemytype = 299;
this.health = random(3) + 3;
}
if (enemytyper == 4) {
if (_root.bosspercent >= random(100)) {
enemytype = 424;
this.health = 17;
_root.zboss.start();
} else {
enemytyper = random(3) + 1;
}
}
this.enemygfx.gotoAndPlay(1 + enemytype);
}
var deathimptimer = 0;
var enemytype = 0;
var enemytyper = (random(3) + 1);
if (enemytyper == 1) {
enemytype = 0;
}
if (enemytyper == 2) {
enemytype = 149;
}
if (enemytyper == 3) {
enemytype = 299;
}
if (enemytyper == 4) {
enemytype = 424;
}
var spawn = random(2);
var health = (random(3) + 1);
var myaccel = 0;
var attackstat = 0;
var overlapping = 0;
var rotatestat = 0;
this._yscale = 200;
var facedir = 1;
reset();
var injuredsfx = 0;
var shotguncount = 0;
var endgamer = 0;
var wound1 = new Sound();
wound1.attachSound("VO_Zombie_Injured_09");
var wound2 = new Sound();
wound2.attachSound("VO_Zombie_Injured_07");
var wound3 = new Sound();
wound3.attachSound("VO_Zombie_Injured_06");
var wound0 = new Sound();
wound0.attachSound("VO_Zombie_Injured_01");
}
onClipEvent (enterFrame) {
function rotater() {
if ((this.facedir == 2) && (this._xscale != -200)) {
this._xscale = -200;
}
if ((this.facedir == 1) && (this._xscale != 200)) {
this._xscale = 200;
}
}
if (((_root.totalkills >= (_root.levelquota + _root.nrEnemies1)) && (this._x <= -50)) || ((_root.totalkills >= (_root.levelquota + _root.nrEnemies1)) && (this._x >= 850))) {
_root.nrEnemies1 = _root.nrEnemies1 - 1;
this._x = -200;
this._y = -200;
this.removeMovieClip();
}
if (((enemytyper == 4) && (this.instakill == 1)) && (deathimptimer <= getTimer())) {
this.instakill = 0;
this.deathimptimer = getTimer() + 800;
}
if (this.hitTest(_root.Ship.gunfx.shotgunkill) && (this.instakill == 0)) {
if (enemytyper != 4) {
this.instakill = 1;
this.health = 0;
this.sub();
}
if (enemytyper == 4) {
this.instakill = 1;
this.health = this.health - 2;
this.sub();
}
if (_root.shotgunsfxtimer <= getTimer()) {
_root.shotgunimpact.start();
_root.shotgunsfxtimer = getTimer() + 700;
}
_root.xp = _root.xp + 1;
if (_root.shotguncount <= getTimer()) {
var randomizer = random(8);
_root["pkill" + randomizer].start();
_root.shotguncount = getTimer() + 4000;
}
}
if (this.zsorter <= getTimer()) {
this.swapDepths(this._y + 1000);
this.zsorter = getTimer() + 1000;
}
if ((myaccel != 0) && (speedtimer <= getTimer())) {
this._x = this._x + myaccel;
this.speedtimer = getTimer() + 10;
}
if ((((this.hitTest(_root.Ship.coll) && (deadstat == 0)) && (attackstat == 0)) && (this.animations != 2)) && (this.enemyattacktimer <= getTimer())) {
if (this.enemygfx._currentframe <= (25 + enemytype)) {
this.animations = 2;
attackstat = 1;
_root.lowstat = _root.lowstat - 1;
_root.hp.attacked = 1;
_root.hp.process();
_root.Ship.xspeed = _root.Ship.xspeed * 0.3;
this.enemyattacktimer = getTimer() + 500;
if (_root.shotgunsfxtimer <= getTimer()) {
_root.shotgunimpact.start();
shotgunsfxtimer = getTimer + 400;
}
myaccel = myaccel * 0.3;
if ((_root.ztimer1 <= getTimer()) && (enemytyper != 4)) {
_root["zidle" + random(9)].start();
_root.ztimer1 = getTimer() + 9000;
}
if ((_root.ztimer1 <= getTimer()) && (enemytyper == 4)) {
_root.zboss1.start();
_root.ztimer1 = getTimer() + 5000;
}
if (_root.shotguncounter <= getTimer()) {
var randomizer = random(8);
_root["pinj" + randomizer].start();
_root.shotguncounter = getTimer() + 9000;
}
}
}
if ((((this.animations == 1) && (deadstat == 0)) && (attackstat == 0)) && (rotatestat == 0)) {
if (this.enemygfx._currentframe >= (26 + enemytype)) {
this.enemygfx.gotoAndPlay(1 + enemytype);
}
}
if (((this.animations == 2) && (deadstat == 0)) && (attackstat == 1)) {
this.enemygfx.gotoAndPlay(26 + enemytype);
}
if ((((this.animations == 3) && (deadstat == 0)) && (attackstat == 0)) && (rotatestat == 0)) {
this.enemygfx.gotoAndPlay(56 + enemytype);
rotatestat = 1;
}
if ((this.animations == 4) && (deadstat == 0)) {
this.enemygfx.gotoAndStop(61 + enemytype);
}
if (((this.animations == 5) && (deadstat == 0)) && (randomdeath == 2)) {
this.enemygfx.gotoAndPlay(126 + enemytype);
deadstat = 1;
}
if (((this.animations == 5) && (deadstat == 0)) && (randomdeath != 2)) {
var randomdeath = random(2);
if (randomdeath == 1) {
this.enemygfx.gotoAndPlay(71 + enemytype);
this.splats.gotoAndStop(61 + enemytype);
}
if (randomdeath == 0) {
this.enemygfx.gotoAndPlay(96 + enemytype);
}
deadstat = 1;
}
if (((((this._x >= _root.Ship._x) && (xwaitright <= getTimer())) && (myaccel >= (maxSpeed * -1))) && (animations != 5)) && (_root.gameover == 0)) {
myaccel = myaccel - mySpeed;
xwaitleft = getTimer() + 100;
facedir = 1;
this.animations = 1;
rotater();
}
if ((((this._x >= _root.Ship._x) && (xwaitright >= getTimer())) && (animations != 5)) && (_root.gameover == 0)) {
myaccel = myaccel * 0.2;
this.animations = 3;
}
if (((((this._x <= _root.Ship._x) && (xwaitleft <= getTimer())) && (myaccel <= maxSpeed)) && (animations != 5)) && (_root.gameover == 0)) {
myaccel = myaccel + mySpeed;
xwaitright = getTimer() + 100;
facedir = 2;
this.animations = 1;
rotater();
}
if ((((this._x <= _root.Ship._x) && (xwaitleft >= getTimer())) && (animations != 5)) && (_root.gameover == 0)) {
myaccel = myaccel * 0.2;
this.animations = 3;
}
if ((((this._y >= (_root.Ship._y + 18)) && (update <= getTimer())) && (this._y >= _root.barrier)) && (_root.gameover == 0)) {
this._y = this._y - mySpeedy;
update = getTimer() + 80;
}
if (((this._y <= (_root.Ship._y + 18)) && (update <= getTimer())) && (_root.gameover == 0)) {
this._y = this._y + mySpeedy;
update = getTimer() + 80;
}
if ((_root.winstopper == 1) && (endgamer == 0)) {
this.enemygfx.gotoAndStop(71 + enemytype);
endgamer = 1;
}
}
Instance of Symbol 623 MovieClip [shells] "shells" in Frame 4
onClipEvent (load) {
var shelldir = (random(2) + 1);
this._yscale = 200;
if (_root.weapon == 1) {
this.gotoAndPlay(143);
}
if (_root.weapon != 1) {
var animationran = (random(2) + 1);
if (animationran == 1) {
this.gotoAndPlay(1);
}
if (animationran == 2) {
this.gotoAndPlay(72);
}
}
if (shelldir == 2) {
this._xscale = -200;
}
if (shelldir == 1) {
this._xscale = 200;
}
}
onClipEvent (enterFrame) {
function destroy() {
this.removeMovieClip();
}
}
Instance of Symbol 659 MovieClip [hp] "hp" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(80000);
process();
}
onClipEvent (enterFrame) {
function process() {
if (_root.highstat >= 9) {
facestat = 1;
}
if ((_root.highstat >= 6) && (_root.highstat <= 8)) {
facestat = 2;
}
if ((_root.highstat >= 3) && (_root.highstat <= 5)) {
facestat = 3;
}
if ((_root.highstat >= 2) && (_root.highstat <= 3)) {
facestat = 4;
}
if (_root.highstat <= 1) {
facestat = 5;
}
if (((facestat == 1) && (attacked == 0)) && (this.face._currentframe >= 40)) {
this.face.gotoAndPlay(1);
}
if ((((facestat == 2) && (attacked == 0)) && (this.face._currentframe >= 80)) || ((facestat == 2) && (this.face._currentframe <= 39))) {
this.face.gotoAndPlay(40);
}
if ((((facestat == 3) && (attacked == 0)) && (this.face._currentframe >= 120)) || ((facestat == 3) && (this.face._currentframe <= 79))) {
this.face.gotoAndPlay(80);
}
if ((((facestat == 4) && (attacked == 0)) && (this.face._currentframe >= 160)) || ((facestat == 4) && (this.face._currentframe <= 119))) {
this.face.gotoAndPlay(120);
}
if (((facestat == 5) && (attacked == 0)) && (this.face._currentframe <= 159)) {
this.face.gotoAndPlay(160);
}
if ((attacked == 1) && (facestat == 1)) {
this.gotoAndPlay(2);
this.face.gotoAndPlay(30);
attacked = 0;
}
if ((attacked == 1) && (facestat == 2)) {
this.gotoAndPlay(2);
this.face.gotoAndPlay(70);
attacked = 0;
}
if ((attacked == 1) && (facestat == 3)) {
this.gotoAndPlay(2);
this.face.gotoAndPlay(110);
attacked = 0;
}
if ((attacked == 1) && (facestat == 4)) {
this.gotoAndPlay(2);
this.face.gotoAndPlay(150);
attacked = 0;
}
if ((attacked == 1) && (facestat == 5)) {
this.gotoAndPlay(2);
this.face.gotoAndPlay(190);
attacked = 0;
}
}
if ((_root.highstat > 0) && (numberupdater <= getTimer())) {
_root.hp.lowerno.gotoAndStop(_root.lowstat);
_root.hp.higherno.gotoAndStop(_root.highstat);
numberupdater = getTimer() + 500;
}
process();
if ((_root.lowstat <= 0) && (_root.highstat >> 0)) {
_root.highstat = _root.highstat - 1;
_root.lowstat = 10;
}
if ((_root.highstat <= 0) && (this.face._currentframe <= 199)) {
_root.hp.lowerno.gotoAndStop(1);
_root.hp.higherno.gotoAndStop(1);
_root.hp.face.gotoAndStop(200);
_root.Ship.astate = 3;
_root.pdead.start();
_root.gameover == 1;
_root.deadblocktimer = getTimer() + 800;
}
}
Instance of Symbol 705 MovieClip [baby] "baby" in Frame 4
onClipEvent (load) {
function reset() {
this._y = (random(100) + _root.barrier) + 30;
if (spawn == 1) {
this._x = 890;
}
if (spawn == 0) {
this._x = -50;
}
unbootable = 0;
var _local3 = 12;
var _local4 = 0;
this.health = random(3) + 1;
xwaitright = getTimer() + 100;
xwaitleft = getTimer() + 100;
animations = 1;
deadstat = 0;
attackstat = 0;
rotatestat = 0;
instakill = 0;
mySpeed = (random(3) * 0.001) + _root.difficulty;
mySpeedy = 0.2 + _root.difficulty;
var _local5 = mySpeed;
stopper = 0;
gotoAndPlay (2);
}
var spawn = random(2);
var health = (random(3) + 1);
var myaccel = 0;
var attackstat = 0;
var rotatestat = 0;
this._yscale = 200;
var facedir = 1;
var unbootable = 0;
var sfxbaby = new Sound();
sfxbaby.attachSound("sfx_gibland_01");
var sfxbaby1 = new Sound();
sfxbaby1.attachSound("VO_Zombie_Baby_09");
var stopper = 0;
var starttimer = 0;
reset();
}
onClipEvent (enterFrame) {
function rotater() {
if ((((this.facedir == 2) && (this._xscale != -200)) && (this._currentframe <= 25)) && (stopper == 0)) {
this._xscale = -200;
}
if ((((this.facedir == 1) && (this._xscale != 200)) && (this._currentframe <= 25)) && (stopper == 0)) {
this._xscale = 200;
}
}
if (((starttimer <= getTimer()) && (stoptimer == 0)) && (_root.winstopper == 0)) {
starttimer = getTimer() + 10000;
spawn = random(2);
reset();
stoptimer = 1;
}
if (((myaccel != 0) && (speedtimer <= getTimer())) && (stopper == 0)) {
this._x = this._x + myaccel;
this.speedtimer = getTimer() + 10;
}
if (this.hitTest(_root.Ship.coll) && (this._currentframe <= 25)) {
_root.Ship.astate = 2;
gotoAndPlay (27);
_root.Ship.xspeed = _root.Ship.xspeed * 0.6;
if (unbootable == 0) {
sfxbaby.start();
sfxbaby1.start();
unbootable = 1;
}
if ((_root.pickupno == 0) && (_root.pickup.fadetimer <= getTimer())) {
_root.pickup._x = this._x;
_root.pickup._y = this._y - 10;
_root.pickup.pickupflashing.gotoAndStop(random(20) + 1);
_root.level.experience.xp = _root.level.experience.xp + 1;
_root.pickupno = 1;
_root.pickup.fadetimer = getTimer() + 5000;
_root.pickup.gotoAndPlay(2);
}
var randomizer = random(8);
_root["pkill" + randomizer].start();
}
if ((((this._x >= _root.Ship._x) && (xwaitright <= getTimer())) && (myaccel >= (maxSpeed * -1))) && (stopper == 0)) {
myaccel = myaccel - mySpeed;
xwaitleft = getTimer() + 100;
facedir = 1;
rotater();
}
if (((this._x >= _root.Ship._x) && (xwaitright >= getTimer())) && (stopper == 0)) {
myaccel = myaccel * 0.2;
}
if ((((this._x <= _root.Ship._x) && (xwaitleft <= getTimer())) && (myaccel <= maxSpeed)) && (stopper == 0)) {
myaccel = myaccel + mySpeed;
xwaitright = getTimer() + 100;
facedir = 2;
rotater();
}
if (((this._x <= _root.Ship._x) && (xwaitleft >= getTimer())) && (stopper == 0)) {
myaccel = myaccel * 0.2;
this.animations = 3;
}
if ((((this._y >= (_root.Ship._y + 35)) && (update <= getTimer())) && (this._y >= _root.barrier)) && (stopper == 0)) {
this._y = this._y - mySpeedy;
update = getTimer() + 50;
}
if (((this._y <= (_root.Ship._y + 18)) && (update <= getTimer())) && (stopper == 0)) {
this._y = this._y + mySpeedy;
update = getTimer() + 50;
}
}
Instance of Symbol 733 MovieClip [pickup] "pickup" in Frame 4
onClipEvent (load) {
play();
var fadetimer = 0;
var refadetimer = 0;
this._yscale = 200;
this._xscale = 200;
}
onClipEvent (enterFrame) {
if (this.zsorter <= getTimer()) {
this.swapDepths(this._y + 1000);
this.zsorter = getTimer() + 5000;
}
if ((fadetimer <= getTimer()) && (_root.pickupno == 1)) {
_root.pickupno = 0;
this._y = -50;
this._x = -50;
refadetimer = getTimer() + 5000;
}
if ((this.hitTest(_root.Ship.coll) && (_root.pickupno == 1)) && (this._currentframe == 37)) {
gotoAndPlay (39);
_root.xp = _root.xp + 2;
_root.p1.start();
if (_root.pickup.pickupflashing._currentframe <= 12) {
_root.popup.gotoAndPlay(1);
_root.popup.popupinne.gotoAndStop(2);
}
if (((_root.pickup.pickupflashing._currentframe >= 17) && (_root.pickup.pickupflashing._currentframe <= 20)) && (_root.shootspeedlevel <= 59)) {
_root.shootspeedlevel = _root.shootspeedlevel + 20;
_root.bulletDelay = _root.bulletDelay - _root.shootspeedlevel;
_root.popup.gotoAndPlay(1);
_root.popup.popupinne.gotoAndStop(3);
_root.popup.popupinne.weaponnumber.gotoAndStop(_root.weapon + 1);
}
if (((_root.pickup.pickupflashing._currentframe >= 13) && (_root.pickup.pickupflashing._currentframe <= 16)) && (_root.damagelevel <= 1.1)) {
_root.damagelevel = _root.damagelevel + 0.3;
_root.damagegfx = _root.damagegfx + 1;
_root.popup.gotoAndPlay(1);
_root.popup.popupinne.gotoAndStop(4);
_root.popup.popupinne.weaponnumber.gotoAndStop(_root.weapon + 1);
}
}
}
Instance of Symbol 738 MovieClip "reloader" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(59000);
}
onClipEvent (enterFrame) {
if ((_root.clipsize.csize <= 1) && (this._currentframe <= 16)) {
this._x = _root.Ship._x - 55;
this._y = _root.Ship._y - 130;
}
}
Instance of Symbol 746 MovieClip "chopper" in Frame 4
onClipEvent (load) {
this.swapDepths(-600);
this._xscale = 200;
this._yscale = 200;
}
Instance of Symbol 763 MovieClip "level" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(80001);
}
Instance of Symbol 773 MovieClip "crate" in Frame 4
onClipEvent (load) {
this.swapDepths(550);
var pickeduptimer = 0;
var weapontype = 0;
this._xscale = 200;
this._yscale = 200;
}
onClipEvent (enterFrame) {
if (this.innercrate.boxcoll.hitTest(_root.Ship.coll) && (this._currentframe <= 34)) {
_root.spitweapons._x = _root.Ship._x - 25;
_root.spitweapons._y = _root.Ship._y;
_root.spitweapons.innerweapons.gotoAndStop(_root.weapon + 1);
_root.spitweapons.gotoAndPlay(2);
this._parent.weapon = _root.crate.innercrate._currentframe;
this.gotoAndPlay(35);
_root.weaponswapped = 1;
}
if ((pickeduptimer <= getTimer()) && (this._currentframe == 34)) {
this.gotoAndPlay(47);
}
}
Instance of Symbol 783 MovieClip "body" in Frame 4
onClipEvent (load) {
this._yscale = 150;
this._xscale = 150;
}
Instance of Symbol 804 MovieClip "popup" in Frame 4
onClipEvent (load) {
this._yscale = 200;
this._xscale = 200;
this.swapDepths(999990);
}
Instance of Symbol 807 MovieClip "levelupslideup" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(120001);
}
Instance of Symbol 89 MovieClip [spitweapons] "spitweapons" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
}
Instance of Symbol 813 MovieClip "undead" in Frame 4
onClipEvent (load) {
this._xscale = 200;
this.swapDepths(999999);
this._yscale = 200;
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 20
gotoAndStop (1);
Symbol 75 MovieClip [weblink] Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 5
stop();
Symbol 88 MovieClip Frame 6
stop();
Symbol 89 MovieClip [spitweapons] Frame 1
stop();
Symbol 89 MovieClip [spitweapons] Frame 57
this._x = -100;
this._y = -100;
gotoAndStop (1);
Symbol 113 MovieClip [newbg] Frame 1
stop();
Symbol 113 MovieClip [newbg] Frame 3
stop();
Symbol 113 MovieClip [newbg] Frame 4
stop();
Symbol 113 MovieClip [newbg] Frame 5
gotoAndStop (2);
Symbol 115 MovieClip [fades] Frame 30
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 30
stop();
_root.gamescreen = 1;
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 154 Button
on (release) {
getURL ("http://www.playcow.com", "_blank");
}
Symbol 157 Button
on (release) {
getURL ("http://www.facebook.com/pages/PlayCow/126005204300", "_blank");
}
Symbol 160 MovieClip Frame 111
stop();
Symbol 161 MovieClip Frame 1
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.adstop == 1) {
gotoAndStop ("loaded");
}
Symbol 161 MovieClip Frame 2
gotoAndPlay (1);
Symbol 161 MovieClip Frame 3
_root.loadered = 1;
Instance of Symbol 152 MovieClip "startgame" in Symbol 161 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
p1.start();
_root.fade.gotoAndPlay(2);
_root.titles.removeMovieClip();
_root.loader.removeMovieClip();
_root.loading.removeMovieClip();
this.removeMovieClip();
_root.bars.removeMovieClip();
_root.preloading.gotoAndPlay(2);
_root.gotoAndStop(3);
}
Symbol 162 MovieClip [preloading] Frame 1
stop();
Instance of Symbol 161 MovieClip "preloader" in Symbol 162 MovieClip [preloading] Frame 1
onClipEvent (load) {
this._xscale = 200;
this._yscale = 200;
this.swapDepths(1);
}
Symbol 162 MovieClip [preloading] Frame 10
this.removeMovieClip();
Symbol 170 MovieClip Frame 101
stop();
this.target = 0;
this.progress = 0;
this.speed = 0.08;
this.step = 8;
this.stepNum = 0;
this.onEnterFrame = function () {
this.target = (this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100;
this.progress = this.progress + ((this.target - this.progress) * this.speed);
this.stepNum = Math.floor(this.progress / this.step);
if (!this["boxM" + this.stepNum].playTrig) {
this["boxM" + this.stepNum].playTrig = true;
this["boxM" + this.stepNum].gotoAndPlay("onL");
}
if ((this.progress >= 99) and (this.target == 100)) {
this.gotoAndPlay("closeL");
this.onEnterFrame = null;
}
};
Instance of Symbol 169 MovieClip in Symbol 170 MovieClip Frame 112
on (release) {
_root.play();
}
Symbol 170 MovieClip Frame 121
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 100
stop();
Symbol 206 MovieClip Frame 1
play();
Symbol 206 MovieClip Frame 29
_root.lvl1pain.start();
Symbol 206 MovieClip Frame 72
_root.lvl1pain1.start();
Symbol 206 MovieClip Frame 150
_root.carhit.start();
Symbol 206 MovieClip Frame 174
_root.carcrash.start();
Symbol 206 MovieClip Frame 323
stop();
_root.gotoAndStop(4);
Symbol 215 Button
on (release) {
getURL ("http://www.playcow.com", "_blank");
}
Symbol 216 MovieClip [painmovie] Frame 1
stop();
Instance of Symbol 213 MovieClip in Symbol 216 MovieClip [painmovie] Frame 2
on (release) {
getURL ("http://www.playcow.com", "_blank");
}
Symbol 431 MovieClip [top] Frame 1
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 10
_root.Ship.top.gotoAndStop(1);
Symbol 431 MovieClip [top] Frame 11
_parent.gunfx.gotoAndPlay(18);
Symbol 431 MovieClip [top] Frame 20
_root.Ship.top.gotoAndStop(1);
Symbol 431 MovieClip [top] Frame 65
_root.Ship.top.gotoAndStop(1);
Symbol 431 MovieClip [top] Frame 70
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 79
_root.Ship.top.gotoAndStop(70);
Symbol 431 MovieClip [top] Frame 80
_parent.gunfx.gotoAndPlay(1);
Symbol 431 MovieClip [top] Frame 124
_root.Ship.top.gotoAndStop(70);
Symbol 431 MovieClip [top] Frame 184
_root.Ship.top.gotoAndStop(70);
Symbol 431 MovieClip [top] Frame 186
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 191
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 195
_root.Ship.top.gotoAndStop(186);
Symbol 431 MovieClip [top] Frame 196
_parent.gunfx.gotoAndPlay(32);
Symbol 431 MovieClip [top] Frame 206
_parent.gunfx.gotoAndPlay(32);
Symbol 431 MovieClip [top] Frame 216
_parent.gunfx.gotoAndPlay(32);
Symbol 431 MovieClip [top] Frame 220
_root.Ship.top.gotoAndStop(186);
Symbol 431 MovieClip [top] Frame 260
_root.Ship.top.gotoAndStop(186);
Symbol 431 MovieClip [top] Frame 262
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 267
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 270
_root.Ship.top.gotoAndStop(262);
Symbol 431 MovieClip [top] Frame 291
_root.Ship.top.gotoAndStop(262);
Symbol 431 MovieClip [top] Frame 331
_root.Ship.top.gotoAndStop(262);
Symbol 431 MovieClip [top] Frame 332
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 336
_root.Ship.top.Stop();
Symbol 431 MovieClip [top] Frame 347
_parent.gunfx.gotoAndPlay(46);
Symbol 431 MovieClip [top] Frame 359
_root.Ship.top.gotoAndStop(404);
Symbol 431 MovieClip [top] Frame 404
_root.Ship.top.gotoAndStop(404);
Symbol 431 MovieClip [top] Frame 409
_root.Ship.top.gotoAndStop(406);
Symbol 431 MovieClip [top] Frame 437
_root.Ship.top.gotoAndStop(406);
Instance of Symbol 424 MovieClip "chainsawcoll" in Symbol 431 MovieClip [top] Frame 447
onClipEvent (load) {
var chainupdate = 0;
var chainsfxtimer = 0;
}
onClipEvent (enterFrame) {
if ((this._parent._parent._parent.weapon == 5) && (chainupdate <= getTimer())) {
chainupdate = getTimer() + 50;
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root["Enemy" + i].body)) {
_root.Ship.xspeed = 0;
_root.Ship.yspeed = 0;
var splatsrandoms = random(3);
if (splatsrandoms == 1) {
splatsrandom = 1;
}
if (splatsrandoms == 2) {
splatsrandom = 20;
}
if (splatsrandoms == 0) {
splatsrandom = 40;
}
_root["Enemy" + i].splats.gotoAndPlay(splatsrandom);
_root["Enemy" + i].health = _root["Enemy" + i].health - (0.5 + damagelevel);
_root["Enemy" + i].myaccel = _root["Enemy" + i].myaccel * 0.5;
_root["Enemy" + i].sub();
if (chainsfxtimer <= getTimer()) {
_root.chainimpact.start();
chainsfxtimer = getTimer() + 700;
}
}
i++;
}
}
}
Symbol 431 MovieClip [top] Frame 472
_root.Ship.top.gotoAndStop(406);
Symbol 444 MovieClip [gunfx] Frame 12
stop();
Symbol 444 MovieClip [gunfx] Frame 31
stop();
Symbol 444 MovieClip [gunfx] Frame 45
stop();
Symbol 444 MovieClip [gunfx] Frame 59
stop();
Symbol 473 MovieClip Frame 1
stop();
aastate = 0;
kickon = 0;
Symbol 473 MovieClip Frame 2
play();
aastate = 2;
play();
Symbol 473 MovieClip Frame 24
gotoAndStop (1);
aastate = 0;
astate = 0;
kickon = 0;
Symbol 473 MovieClip Frame 25
aastate = 1;
play();
Symbol 473 MovieClip Frame 50
gotoAndPlay (25);
aastate = 1;
Symbol 473 MovieClip Frame 51
aastate = 3;
Symbol 473 MovieClip Frame 65
stop();
stop();
aastate = 3;
power = 0;
Symbol 481 MovieClip Frame 1
stop();
Symbol 488 MovieClip [clipsize] Frame 1
stop();
Symbol 488 MovieClip [clipsize] Frame 16
stop();
Symbol 488 MovieClip [clipsize] Frame 31
stop();
Symbol 488 MovieClip [clipsize] Frame 37
stop();
Symbol 488 MovieClip [clipsize] Frame 38
stop();
Symbol 488 MovieClip [clipsize] Frame 39
stop();
Symbol 488 MovieClip [clipsize] Frame 40
stop();
Symbol 488 MovieClip [clipsize] Frame 41
stop();
Symbol 488 MovieClip [clipsize] Frame 42
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 3
stop();
Symbol 510 MovieClip Frame 15
stop();
Symbol 510 MovieClip Frame 16
stop();
Symbol 510 MovieClip Frame 17
play();
Symbol 510 MovieClip Frame 38
stop();
_parent.facedir = 0;
_parent._x = -100;
_parent._y = -100;
Symbol 514 MovieClip [Bullet] Frame 1
var bulletstop = 0;
this.onEnterFrame = function () {
if ((this.facedir == 1) && (bulletstop == 0)) {
this._x = this._x - 55;
}
if ((this.facedir == 2) && (bulletstop == 0)) {
this._x = this._x + 55;
}
if (this.facedir == 0) {
this._x = -100;
this._y = -100;
bulletstop = 0;
}
if ((this._x > 1050) | (this.x < -550)) {
facedir = 0;
}
i = 0;
while (i < _root.nrEnemies) {
if (this.fire.hitTest(_root["Enemy" + i].body)) {
if (_root.weapon != 4) {
var _local3 = random(3);
if (_local3 == 1) {
splatsrandom = 1;
}
if (_local3 == 2) {
splatsrandom = 20;
}
if (_local3 == 0) {
splatsrandom = 40;
}
_root["Enemy" + i].splats.gotoAndPlay(splatsrandom);
_root["Enemy" + i].health = _root["Enemy" + i].health - this.damage;
_root["Enemy" + i].sub();
if (_root["Enemy" + i].enemytyper == 4) {
_root["Enemy" + i].myaccel = _root["Enemy" + i].myaccel * 0.97;
}
if (_root["Enemy" + i].enemytyper != 4) {
_root["Enemy" + i].myaccel = _root["Enemy" + i].myaccel * 0.2;
}
}
if ((_root.weapon != 3) && (_root.weapon != 4)) {
facedir = 0;
}
if (_root.weapon == 3) {
this.damage = this.damage * 0.3;
}
if ((_root.weapon == 4) && (bulletstop == 0)) {
bulletstop = 1;
this.fire.gotoAndPlay(17);
}
}
i++;
}
};
Instance of Symbol 513 MovieClip in Symbol 514 MovieClip [Bullet] Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ship) && (_parent.bulletstop == 1)) {
_root.hp.highstat = _root.hp.highstat - 1;
_root.hp.lowstat = 0;
}
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root["Enemy" + i].body) && (_parent.bulletstop == 1)) {
_root["Enemy" + i].health = 0;
_root["Enemy" + i].sub();
}
i++;
}
}
Symbol 522 MovieClip [splats] Frame 1
play();
Symbol 522 MovieClip [splats] Frame 10
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 14
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 15
play();
Symbol 522 MovieClip [splats] Frame 17
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 24
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 29
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 36
play();
Symbol 522 MovieClip [splats] Frame 40
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 44
gotoAndStop (45);
Symbol 522 MovieClip [splats] Frame 45
stop();
Symbol 603 MovieClip [enemygfx] Frame 1
play();
Symbol 603 MovieClip [enemygfx] Frame 25
this.gotoAndPlay(1);
Symbol 603 MovieClip [enemygfx] Frame 55
_parent.attackstat = 0;
this.gotoAndStop(1);
Symbol 603 MovieClip [enemygfx] Frame 60
_parent.rotatestat = 0;
Symbol 603 MovieClip [enemygfx] Frame 61
play();
Symbol 603 MovieClip [enemygfx] Frame 70
this.gotoAndStop(1);
Symbol 603 MovieClip [enemygfx] Frame 90
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 95
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 120
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 125
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 137
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 150
play();
Symbol 603 MovieClip [enemygfx] Frame 174
this.gotoAndPlay(150);
Symbol 603 MovieClip [enemygfx] Frame 209
_parent.attackstat = 0;
this.gotoAndStop(150);
Symbol 603 MovieClip [enemygfx] Frame 210
play();
Symbol 603 MovieClip [enemygfx] Frame 219
this.gotoAndStop(150);
Symbol 603 MovieClip [enemygfx] Frame 244
stop();
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 268
stop();
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 274
stop();
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 286
stop();
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 300
play();
Symbol 603 MovieClip [enemygfx] Frame 324
this.gotoAndPlay(300);
Symbol 603 MovieClip [enemygfx] Frame 354
_parent.attackstat = 0;
this.gotoAndPlay(300);
Symbol 603 MovieClip [enemygfx] Frame 359
_parent.rotatestat = 0;
Symbol 603 MovieClip [enemygfx] Frame 360
play();
Symbol 603 MovieClip [enemygfx] Frame 369
this.gotoAndPlay(300);
Symbol 603 MovieClip [enemygfx] Frame 394
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 410
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 414
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 424
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 425
play();
Symbol 603 MovieClip [enemygfx] Frame 449
this.gotoAndPlay(425);
Symbol 603 MovieClip [enemygfx] Frame 479
_parent.attackstat = 0;
this.gotoAndPlay(425);
Symbol 603 MovieClip [enemygfx] Frame 484
_parent.rotatestat = 0;
Symbol 603 MovieClip [enemygfx] Frame 485
play();
Symbol 603 MovieClip [enemygfx] Frame 494
this.gotoAndPlay(425);
Symbol 603 MovieClip [enemygfx] Frame 519
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 535
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 539
_parent.reset();
Symbol 603 MovieClip [enemygfx] Frame 550
_parent.reset();
Symbol 604 MovieClip [Enemy] Frame 1
Symbol 623 MovieClip [shells] Frame 33
_root.pistolshell.start();
Symbol 623 MovieClip [shells] Frame 71
stop();
Symbol 623 MovieClip [shells] Frame 104
_root.pistolshell.start();
Symbol 623 MovieClip [shells] Frame 142
stop();
Symbol 623 MovieClip [shells] Frame 178
_root.shotgunshell.start();
Symbol 623 MovieClip [shells] Frame 213
stop();
Symbol 658 MovieClip [face] Frame 29
gotoAndPlay (1);
Symbol 658 MovieClip [face] Frame 39
gotoAndPlay (1);
Symbol 658 MovieClip [face] Frame 60
gotoAndPlay (40);
Symbol 658 MovieClip [face] Frame 79
gotoAndPlay (40);
Symbol 658 MovieClip [face] Frame 101
gotoAndPlay (9);
Symbol 658 MovieClip [face] Frame 109
gotoAndPlay (80);
Symbol 658 MovieClip [face] Frame 119
gotoAndPlay (80);
Symbol 658 MovieClip [face] Frame 149
gotoAndPlay (120);
Symbol 658 MovieClip [face] Frame 159
gotoAndPlay (120);
Symbol 658 MovieClip [face] Frame 190
gotoAndPlay (160);
Symbol 659 MovieClip [hp] Frame 20
gotoAndStop (1);
Symbol 705 MovieClip [baby] Frame 25
gotoAndPlay (1);
Symbol 705 MovieClip [baby] Frame 119
stop();
this._x = -50;
this._y = -50;
gotoAndStop (1);
stopper = 1;
starttimer = getTimer() + 10000;
stoptimer = 0;
Symbol 732 MovieClip [pickupflashing] Frame 1
stop();
Symbol 732 MovieClip [pickupflashing] Frame 2
stop();
Symbol 732 MovieClip [pickupflashing] Frame 3
stop();
Symbol 732 MovieClip [pickupflashing] Frame 4
stop();
Symbol 732 MovieClip [pickupflashing] Frame 5
stop();
Symbol 732 MovieClip [pickupflashing] Frame 6
stop();
Symbol 732 MovieClip [pickupflashing] Frame 7
stop();
Symbol 732 MovieClip [pickupflashing] Frame 8
stop();
Symbol 732 MovieClip [pickupflashing] Frame 9
stop();
Symbol 732 MovieClip [pickupflashing] Frame 10
stop();
Symbol 732 MovieClip [pickupflashing] Frame 11
stop();
Symbol 732 MovieClip [pickupflashing] Frame 12
stop();
Symbol 732 MovieClip [pickupflashing] Frame 13
stop();
Symbol 732 MovieClip [pickupflashing] Frame 17
stop();
Symbol 733 MovieClip [pickup] Frame 1
stop();
Symbol 733 MovieClip [pickup] Frame 37
stop();
Symbol 733 MovieClip [pickup] Frame 38
play();
Symbol 733 MovieClip [pickup] Frame 52
stop();
_root.pickupno = 0;
this._y = -50;
this._x = -50;
refadetimer = getTimer() + 5000;
Symbol 738 MovieClip Frame 15
gotoAndPlay (1);
Symbol 738 MovieClip Frame 23
this._x = -100;
this._y = -100;
gotoAndPlay (1);
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 112
_root.crate.gotoAndPlay(2);
_root.helidrop.start();
Symbol 746 MovieClip Frame 113
_root.crate.gotoAndPlay(2);
Symbol 746 MovieClip Frame 124
gotoAndStop (1);
Symbol 748 MovieClip Frame 10
gotoAndStop (1);
Symbol 751 MovieClip Frame 1
stop();
Symbol 751 MovieClip Frame 2
stop();
Symbol 751 MovieClip Frame 3
stop();
Symbol 751 MovieClip Frame 4
stop();
Symbol 751 MovieClip Frame 5
stop();
Symbol 751 MovieClip Frame 6
stop();
Symbol 752 MovieClip Frame 20
gotoAndStop (1);
Symbol 752 MovieClip Frame 50
gotoAndStop (1);
Symbol 763 MovieClip Frame 1
stop();
Instance of Symbol 748 MovieClip "experience" in Symbol 763 MovieClip Frame 1
onClipEvent (load) {
_root.level.innerrank.innermost.gotoAndStop(_root.lvl);
var weaponrand = 0;
}
onClipEvent (enterFrame) {
if (_root.xp != this._xscale) {
_root.xp = _root.xp + (4 * _root.experienceup);
this._xscale = _root.xp;
this.gotoAndPlay(2);
_root.level.innerrank.gotoAndPlay(1);
}
if (((_root.xp >= 100) && (_root.crate._currentframe >= 2)) && (_root.crate._currentframe <= 46)) {
_root.crate.gotoAndPlay(47);
}
if ((_root.xp >= 100) && (_root.crate._currentframe == 1)) {
_root.crate.pickeduptimer = getTimer() + 12000;
_root.lvl = _root.lvl + 1;
_root.level.gotoAndStop(_root.lvl);
_root.level.innerrank.innermost.gotoAndStop(_root.lvl);
_root.level.innerrank.gotoAndPlay(21);
_root.levelupslideup.gotoAndPlay(2);
_root.levelupslideup._x = _root.Ship._x - 80;
_root.levelupslideup._y = _root.Ship._y - 80;
_root.crate._x = 200 + random(400);
_root.plvlup.start();
_root.xp = 1;
this._xscale = _root.xp;
_root.chopper.gotoAndPlay(2);
_root.mus1.start();
_root.heli.start();
_root.experienceup = _root.experienceup * 0.5;
_root.popup.gotoAndPlay(2);
_root.popup.popupinne.gotoAndStop(1);
if (_root.lvl == 1) {
_root.crate.innercrate.gotoAndStop(1);
}
if (_root.lvl == 2) {
_root.crate.innercrate.gotoAndStop(1);
}
if (_root.lvl == 3) {
_root.crate.innercrate.gotoAndStop(2);
}
if (_root.lvl == 4) {
_root.crate.innercrate.gotoAndStop(3);
}
if (_root.lvl == 5) {
_root.crate.innercrate.gotoAndStop(5);
}
if (_root.lvl == 6) {
_root.crate.innercrate.gotoAndStop(4);
}
}
}
Symbol 763 MovieClip Frame 2
stop();
Symbol 763 MovieClip Frame 3
stop();
Symbol 763 MovieClip Frame 4
stop();
Symbol 763 MovieClip Frame 5
stop();
Symbol 763 MovieClip Frame 6
stop();
Symbol 771 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 2
stop();
Symbol 771 MovieClip Frame 3
stop();
Symbol 771 MovieClip Frame 4
stop();
Symbol 771 MovieClip Frame 5
stop();
Symbol 773 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 9
_root.cratehit.start();
Symbol 773 MovieClip Frame 34
stop();
Symbol 773 MovieClip Frame 46
gotoAndStop (1);
Symbol 773 MovieClip Frame 55
gotoAndStop (1);
Symbol 783 MovieClip Frame 1
play();
Symbol 783 MovieClip Frame 20
stop();
Symbol 783 MovieClip Frame 21
play();
Symbol 783 MovieClip Frame 44
stop();
Symbol 783 MovieClip Frame 45
play();
Symbol 783 MovieClip Frame 81
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
stop();
Symbol 800 MovieClip Frame 3
stop();
Symbol 800 MovieClip Frame 4
stop();
Symbol 800 MovieClip Frame 5
stop();
Symbol 800 MovieClip Frame 6
stop();
Symbol 803 MovieClip Frame 1
stop();
Symbol 803 MovieClip Frame 2
stop();
Symbol 803 MovieClip Frame 3
stop();
Symbol 803 MovieClip Frame 4
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 95
gotoAndStop (1);
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 66
stop();
this._x = -100;
this._y = -100;
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 2
stop();
Symbol 813 MovieClip Frame 3
stop();
Instance of Symbol 812 MovieClip [wintime] "wintime" in Symbol 813 MovieClip Frame 3
onClipEvent (load) {
var wimtimez = (getTimer() + 100);
}