Frame 1
function submitOurScoreSurvive(playerName, playerScore) {
hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pauseScreen.playerName;
Tosend.score = _root.pauseScreen.kill;
Tosend.gameId = "52";
Tosend.gameVersion = "1.0";
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(3).toString() + random(7).toString()) + random(1).toString()) + random(1).toString()) + random(4).toString()) + random(4).toString()) + random(3).toString()) + random(9).toString()) + random(2).toString()) + random(4).toString()) + random(5).toString()) + random(9).toString()) + random(9).toString()) + random(8).toString()) + random(4).toString()) + random(9).toString()) + random(6).toString()) + random(2).toString()) + random(7).toString()) + random(7).toString()) + random(9).toString()) + random(1).toString()) + random(5).toString()) + random(0).toString()) + random(5).toString()) + random(0).toString()) + random(5).toString()) + random(1).toString()) + random(2).toString()) + random(4).toString()) + random(2).toString()) + random(5).toString()) + random(1).toString()) + random(3).toString()) + random(6).toString()) + random(5).toString()) + random(7).toString()) + random(9).toString()) + random(4).toString()) + random(0).toString()) + random(4).toString()) + random(0).toString()) + random(9).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(3).toString()) + random(4).toString()) + random(6).toString()) + random(1).toString()) + random(2).toString()) + random(5).toString()) + random(2).toString()) + random(8).toString()) + random(6).toString()) + random(7).toString()) + random(8).toString()) + random(1).toString()) + random(9).toString()) + random(1).toString()) + random(5).toString()) + random(1).toString()) + random(6).toString()) + random(7).toString()) + random(4).toString()) + random(3).toString()) + random(2).toString()) + random(2).toString()) + random(3).toString()) + random(7).toString()) + random(2).toString()) + random(7).toString()) + random(7).toString()) + random(2).toString()) + random(2).toString()) + random(6).toString()) + random(6).toString()) + random(6).toString()) + random(1).toString()) + random(3).toString()) + random(7).toString()) + random(4).toString()) + random(9).toString()) + random(0).toString()) + random(2).toString()) + random(5).toString()) + random(8).toString()) + random(1).toString()) + random(6).toString()) + random(7).toString()) + random(2).toString()) + random(2).toString()) + random(9).toString()) + random(9).toString()) + random(9).toString()) + random(4).toString()) + random(2).toString()) + random(1).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(9).toString()) + random(3).toString()) + random(6).toString()) + random(1).toString()) + random(6).toString()) + random(3).toString()) + random(7).toString()) + random(2).toString()) + random(5).toString()) + random(0).toString()) + random(0).toString()) + random(9).toString()) + random(9).toString()) + random(0).toString()) + random(1).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(0).toString()) + random(6).toString()) + random(5).toString()) + random(3).toString()) + random(5).toString()) + random(5).toString()) + random(2).toString()) + random(9).toString()) + random(7).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
hsOutput.text = "Your score was submitted.";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=52", "_BLANK");
} else if (this.ok == 0) {
hsOutput.text = "Problem occured !";
} else if (this.ok == 2) {
hsOutput.text = "Please update game file.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScoreBean(playerName, playerScore) {
hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pauseScreen.playerName;
Tosend.score = _root.pauseScreen.kill;
Tosend.gameId = "53";
Tosend.gameVersion = "1.0";
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(1).toString() + random(4).toString()) + random(8).toString()) + random(2).toString()) + random(2).toString()) + random(2).toString()) + random(7).toString()) + random(4).toString()) + random(0).toString()) + random(5).toString()) + random(8).toString()) + random(3).toString()) + random(7).toString()) + random(4).toString()) + random(3).toString()) + random(0).toString()) + random(6).toString()) + random(2).toString()) + random(1).toString()) + random(5).toString()) + random(1).toString()) + random(3).toString()) + random(3).toString()) + random(9).toString()) + random(7).toString()) + random(9).toString()) + random(3).toString()) + random(2).toString()) + random(4).toString()) + random(4).toString()) + random(6).toString()) + random(5).toString()) + random(9).toString()) + random(5).toString()) + random(8).toString()) + random(1).toString()) + random(7).toString()) + random(5).toString()) + random(6).toString()) + random(8).toString()) + random(1).toString()) + random(5).toString()) + random(1).toString()) + random(9).toString()) + random(0).toString()) + random(4).toString()) + random(0).toString()) + random(7).toString()) + random(7).toString()) + random(2).toString()) + random(2).toString()) + random(8).toString()) + random(5).toString()) + random(5).toString()) + random(7).toString()) + random(2).toString()) + random(5).toString()) + random(1).toString()) + random(5).toString()) + random(9).toString()) + random(5).toString()) + random(2).toString()) + random(4).toString()) + random(5).toString()) + random(7).toString()) + random(2).toString()) + random(7).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(3).toString()) + random(0).toString()) + random(9).toString()) + random(4).toString()) + random(0).toString()) + random(0).toString()) + random(8).toString()) + random(0).toString()) + random(7).toString()) + random(5).toString()) + random(3).toString()) + random(9).toString()) + random(4).toString()) + random(8).toString()) + random(5).toString()) + random(2).toString()) + random(1).toString()) + random(0).toString()) + random(3).toString()) + random(6).toString()) + random(9).toString()) + random(8).toString()) + random(9).toString()) + random(4).toString()) + random(4).toString()) + random(6).toString()) + random(7).toString()) + random(1).toString()) + random(1).toString()) + random(6).toString()) + random(5).toString()) + random(4).toString()) + random(6).toString()) + random(4).toString()) + random(9).toString()) + random(7).toString()) + random(4).toString()) + random(7).toString()) + random(7).toString()) + random(2).toString()) + random(3).toString()) + random(0).toString()) + random(1).toString()) + random(7).toString()) + random(9).toString()) + random(7).toString()) + random(9).toString()) + random(0).toString()) + random(8).toString()) + random(3).toString()) + random(7).toString()) + random(7).toString()) + random(2).toString()) + random(7).toString()) + random(2).toString()) + random(6).toString()) + random(3).toString()) + random(9).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
hsOutput.text = "Your score was submitted.";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=53", "_BLANK");
} else if (this.ok == 0) {
hsOutput.text = "Problem occured !";
} else if (this.ok == 2) {
hsOutput.text = "Please update game file.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
function submitOurScoreZombie(playerName, playerScore) {
hsOutput.text = "Sending...";
Tosend = new LoadVars();
Tosend.name = _root.pauseScreen.playerName;
Tosend.score = _root.pauseScreen.kill;
Tosend.gameId = "54";
Tosend.gameVersion = "1.0";
Tosend.key = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((random(0).toString() + random(8).toString()) + random(9).toString()) + random(4).toString()) + random(6).toString()) + random(5).toString()) + random(0).toString()) + random(1).toString()) + random(4).toString()) + random(5).toString()) + random(4).toString()) + random(7).toString()) + random(5).toString()) + random(6).toString()) + random(9).toString()) + random(0).toString()) + random(4).toString()) + random(9).toString()) + random(3).toString()) + random(4).toString()) + random(5).toString()) + random(8).toString()) + random(7).toString()) + random(4).toString()) + random(0).toString()) + random(8).toString()) + random(7).toString()) + random(5).toString()) + random(7).toString()) + random(4).toString()) + random(0).toString()) + random(8).toString()) + random(2).toString()) + random(0).toString()) + random(3).toString()) + random(8).toString()) + random(6).toString()) + random(3).toString()) + random(0).toString()) + random(1).toString()) + random(9).toString()) + random(5).toString()) + random(8).toString()) + random(4).toString()) + random(1).toString()) + random(8).toString()) + random(5).toString()) + random(6).toString()) + random(7).toString()) + random(8).toString()) + random(0).toString()) + random(3).toString()) + random(6).toString()) + random(7).toString()) + random(7).toString()) + random(6).toString()) + random(6).toString()) + random(4).toString()) + random(2).toString()) + random(4).toString()) + random(9).toString()) + random(3).toString()) + random(2).toString()) + random(1).toString()) + random(3).toString()) + random(5).toString()) + random(0).toString()) + random(9).toString()) + random(9).toString()) + random(1).toString()) + random(0).toString()) + random(8).toString()) + random(6).toString()) + random(9).toString()) + random(2).toString()) + random(7).toString()) + random(7).toString()) + random(7).toString()) + random(4).toString()) + random(5).toString()) + random(6).toString()) + random(4).toString()) + random(8).toString()) + random(3).toString()) + random(1).toString()) + random(5).toString()) + random(0).toString()) + random(8).toString()) + random(0).toString()) + random(2).toString()) + random(2).toString()) + random(9).toString()) + random(5).toString()) + random(4).toString()) + random(1).toString()) + random(9).toString()) + random(0).toString()) + random(1).toString()) + random(8).toString()) + random(9).toString()) + random(2).toString()) + random(9).toString()) + random(7).toString()) + random(8).toString()) + random(8).toString()) + random(0).toString()) + random(6).toString()) + random(5).toString()) + random(8).toString()) + random(0).toString()) + random(0).toString()) + random(4).toString()) + random(4).toString()) + random(9).toString()) + random(8).toString()) + random(6).toString()) + random(4).toString()) + random(8).toString()) + random(5).toString()) + random(4).toString()) + random(1).toString()) + random(7).toString()) + random(4).toString()) + random(6).toString()) + random(2).toString()) + random(5).toString()) + random(6).toString()) + random(2).toString();
Tosend.sendAndLoad("http://scores.crazymonkeygames.com/hs/regscores.php", Tosend, "POST");
Tosend.onLoad = function (ok) {
if (ok) {
if (this.ok == 1) {
hsOutput.text = "Your score was submitted.";
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=54", "_BLANK");
} else if (this.ok == 0) {
hsOutput.text = "Problem occured !";
} else if (this.ok == 2) {
hsOutput.text = "Please update game file.";
getURL ("http://scores.crazymonkeygames.com/hs/pleaseupdate.php ", "_blank");
}
}
};
}
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
stage.showMenu = false;
fscommand ("trapallkeys", "true");
stop();
Instance of Symbol 213 MovieClip in Frame 1
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 1) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 2
mySharedObject = SharedObject.getLocal("userData");
_root.saveFile = mySharedObject.data.saveFile;
if (_root.saveFile == true) {
_root.completeLevel = mySharedObject.data.completeLevel;
_root.playerName = mySharedObject.data.playerName;
_root.beaten = mySharedObject.data.beaten;
_root.ammoCount = mySharedObject.data.ammoCount;
_root.haveGuns = mySharedObject.data.haveGuns;
_root.outfit = mySharedObject.data.outfit;
_root.highScores = mySharedObject.data.highScores;
_quality = mySharedObject.data.quality;
} else {
_root.completeLevel = 0;
_root.beaten = false;
_root.playerName = "Anonymous";
_root.haveGuns = new Array(0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ammoCount = new Array(200, 0, 0, 0, 0);
_root.highScores = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.outfit = new Array(1, 1, 1);
_root._quality = "HIGH";
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.completeLevel = _root.completeLevel;
mySharedObject.data.beaten = _root.beaten;
mySharedObject.data.ammoCount = _root.ammoCount;
mySharedObject.data.playerName = _root.playerName;
mySharedObject.data.haveGuns = _root.haveGuns;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.highScores = _root.highScores;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
}
head = outfit[0];
body = outfit[1];
foot = outfit[2];
highOne = highScores[0];
highTwo = highScores[1];
highThree = highScores[2];
highfour = highScores[3];
highFive = highScores[4];
highSix = highScores[5];
highBeanSurvive = highScores[6];
highZombieSurvive = highScores[7];
highSuperSurvive = highScores[8];
_root.qual = _root._quality;
_root._quality = "HIGH";
Instance of Symbol 359 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 2
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 2) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 213 MovieClip in Frame 3
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 3) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 4
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 4
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 4
onClipEvent (load) {
if (_name != "shell") {
_x = _root.shellDupX;
soundplay = 0;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 4
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 701 MovieClip "hand2" in Frame 4
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 4
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 4
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 4
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 4
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 4
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
bossBar._visible = false;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 4
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
if (_root.beaten == false) {
gun = random(3) + 2;
} else {
gun = random(11) + 2;
}
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = random(60);
} else {
dupChance = random(20) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 4
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 4) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 4
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (18);
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 4
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
musicOff = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 4) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 4
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 4) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 4
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 4) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 5
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 5
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 5
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 5) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 6
pause = false;
Instance of Symbol 1143 MovieClip "level" in Frame 6
onClipEvent (load) {
card = false;
}
Instance of Symbol 1134 MovieClip "card" in Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 627 MovieClip "bullet" in Frame 6
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 6
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 6
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 6
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 6
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 6
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
bossBar._visible = false;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 6
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
if (_root.beaten == false) {
gun = random(6) + 2;
} else {
gun = random(11) + 2;
}
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = random(60);
} else {
dupChance = random(20) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 6
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 6) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 6
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (20);
}
Instance of Symbol 701 MovieClip "hand2" in Frame 6
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 6
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 6
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 6
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 6) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 6
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 6) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 6
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 6) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 7
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 7
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 7
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 7) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 8
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 8
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 8
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 8
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 8
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 8
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 8
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.beaten == false) {
bossBar.bossBar._xscale = _root.enemy1.health;
} else {
bossBar.bossBar._xscale = _root.enemy1.health / 5;
}
if (bossBar.bossBar._xscale < 0) {
bossBar.bossBar._xscale = 0;
}
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 8
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
gun = random(11) + 2;
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = 2;
} else {
dupChance = random(60) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 8
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 8) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 8
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (20);
}
Instance of Symbol 1207 MovieClip "enemy1" in Frame 8
onClipEvent (load) {
gun = 12;
active = true;
if (_root.beaten == true) {
health = 500;
} else {
health = 100;
}
speed = 4;
dist = random(300);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (health > 0) {
while (_root.ground.hitTest(_x, _y + 127, true)) {
_y = (_y - 1);
}
hand._x = ene.head._x;
hand._y = ene.head._y + 15;
decide = random(75) + 1;
if (decide == 1) {
speed = -5;
_xscale = 100;
gotoAndStop (1);
} else if (decide == 25) {
speed = 5;
_xscale = -100;
gotoAndStop (1);
} else if (decide == 50) {
gotoAndStop (4);
speed = 0;
}
if (speed > 0) {
if (!_root.ground.hitTest(_x + 60, _y - 100, true)) {
_x = (_x + speed);
gotoAndStop (1);
} else {
speed = speed * -1;
}
} else if (speed < 0) {
if (!_root.ground.hitTest(_x - 60, _y - 100, true)) {
_x = (_x + speed);
gotoAndStop (1);
} else {
speed = speed * -1;
}
} else if (jump == true) {
soundFX = false;
if (gravity < 0) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (4);
}
if (_root.character._x > _x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (!(_root.ground.hitTest(_x, _y + 128, true) && (_root.ground.hitTest(_x, _y + 130, true)))) {
gravity = gravity + 2;
jump = true;
}
if (_root.ground.hitTest(_x, _y + 128, true) && (gravity > 0)) {
jump = false;
gravity = 0;
while (_root.ground.hitTest(_x, _y + 127, true)) {
_y = (_y - 1);
}
if (soundFX == false) {
_root.soundEffects.gotoandplay(16);
soundFX = true;
}
}
if (_root.character._y < (_y - 300)) {
jump = true;
gravity = -40;
_y = (_y - 1);
}
_y = (_y + gravity);
} else {
gotoAndStop (5);
}
}
while (_root.ground.hitTest(_x, _y + 127, true)) {
_y = (_y - 1);
}
}
Instance of Symbol 701 MovieClip "hand2" in Frame 8
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 40, 40, 20, 20, 20, 35, 35, 30, 20, 20, 10, 75, 30, 15, 10, 30);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 8
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 8
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 8
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 8) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 8
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 8) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 8
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 8) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 9
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 9
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 9
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 9) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 10
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 10
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 10
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 10
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 10
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 10
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 10
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
bossBar._visible = false;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 10
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
if (_root.beaten == false) {
gun = random(9) + 2;
} else {
gun = random(11) + 2;
}
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = random(40);
} else {
dupChance = random(20) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 10
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 10) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 10
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (24);
}
Instance of Symbol 701 MovieClip "hand2" in Frame 10
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 10
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 10
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 10
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 10
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 10) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 10
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 10) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 11
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 11
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 11
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 11) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 12
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 12
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 12
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 12
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 12
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 12
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 12
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
bossBar._visible = false;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 12
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
gun = random(11) + 2;
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = random(30);
} else {
dupChance = random(20) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 12
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 12) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 12
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (26);
}
Instance of Symbol 701 MovieClip "hand2" in Frame 12
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 12
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 12
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 12
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 12) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 12
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 12) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 12
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 12) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 13
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 13
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 13
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 13) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 14
stop();
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 14
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
} else if (_root.level.enemy.hitTest(_x, _y, true)) {
if (_root.level.enemy.head.hitTest(_x, _y, true)) {
hit = true;
_root.level.enemy.health = _root.level.enemy.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (16);
}
}
if (_root.level.enemy.hitTest(_x, _y, true) && (!_root.level.enemy.head.hitTest(_x, _y, true))) {
hit = true;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 14
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 14
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 14
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 14
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 14
onClipEvent (load) {
pistol = _root.ammoCount[0];
smg = _root.ammoCount[1];
rifle = _root.ammoCount[3];
shotgun = _root.ammoCount[4];
magnum = _root.ammoCount[2];
kill = 0;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.beaten == false) {
bossBar.bossBar._xscale = _root.level.enemy.health / 3;
} else {
bossBar.bossBar._xscale = _root.level.enemy.health / 6;
}
if (bossBar.bossBar._xscale < 0) {
bossBar.bossBar._xscale = 0;
}
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 14
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
gun = random(11) + 2;
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (_root.beaten == false) {
dupChance = 5;
} else {
dupChance = random(30) + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 14
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else if (item == 4) {
gotoAndStop (6);
} else if ((item == 5) && (beaten == true)) {
gotoAndStop (6);
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 14) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 14
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (22);
}
Instance of Symbol 701 MovieClip "hand2" in Frame 14
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 14
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
if (health < 1) {
stopAllSounds();
_root.gotoandstop(19);
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 14
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 14
onClipEvent (load) {
killNeed = new Array(150, 175, 50, 200, 225, 75);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root.beaten == false) {
if (_root._currentframe == 4) {
mission = "Objective 01: Make it to the industrial sector of Sunset City alive.";
} else if (_root._currentframe == 6) {
mission = "Objective 02: Find the key card and meet your contact outside of Sunset City's industrial sector.";
} else if (_root._currentframe == 8) {
mission = "Objective 03: Fight to survive.";
} else if (_root._currentframe == 10) {
mission = "Objective 04: Find a way through the underground passage.";
} else if (_root._currentframe == 12) {
mission = "Objective 05: Survive the onslaught of Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 06: Destroy the Hades prototype.";
}
} else {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
if (_root._currentframe == 4) {
mission = "Objective 07: Kill 150 Systems Corp. mercenaries.";
} else if (_root._currentframe == 6) {
mission = "Objective 08: Kill 175 Systems Corp. mercenaries.";
} else if (_root._currentframe == 8) {
mission = "Objective 09: Kill 50 Systems Corp. mercenaries and destroy your opponent.";
} else if (_root._currentframe == 10) {
mission = "Objective 10: Kill 200 Systems Corp. mercenaries.";
} else if (_root._currentframe == 12) {
mission = "Objective 11: Kill 225 Systems Corp. mercenaries.";
} else if (_root._currentframe == 14) {
mission = "Objective 12: Kill 75 Systems Corp. mercenaries and destroy the Hades prototype.";
}
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (3);
}
if (_currentframe == 3) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (_root.beaten == true) {
if (((_root._currentframe == 4) && (kill > killNeed[0])) && (_root.haveGuns[7] != 1)) {
weapon = "Dual Pistol Upgrade: HK USP";
_root.haveGuns[7] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if (((_root._currentframe == 6) && (kill > killNeed[1])) && (_root.haveGuns[10] != 1)) {
weapon = "Sub Machinegun Upgrade: Steyer TMP";
_root.haveGuns[10] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 8) && (kill > killNeed[2])) && (_root.haveGuns[20] != 1)) {
weapon = "Machinegun Upgrade: M249 SAW";
_root.haveGuns[20] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if (((_root._currentframe == 10) && (kill > killNeed[3])) && (_root.haveGuns[16] != 1)) {
weapon = "Rifle Upgrade: FN FAL";
_root.haveGuns[16] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
} else if (((_root._currentframe == 12) && (kill > killNeed[4])) && (_root.haveGuns[13] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: IMI Micro Uzi";
_root.haveGuns[13] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if (((_root._currentframe == 14) && (kill > killNeed[5])) && (_root.haveGuns[21] != 1)) {
weapon = "Dual Pistol Upgrade: XM-435 SuperMAG";
_root.haveGuns[21] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
}
} else if ((_root._currentframe == 4) && (_root.haveGuns[8] != 1)) {
weapon = "Sub Machinegun Upgrade: Intratec AB-10";
_root.haveGuns[8] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 6) && (_root.haveguns[14] != 1)) {
weapon = "Rifle Upgrade: HK G36";
_root.haveGuns[14] = 1;
_root.ui.rifle = _root.ui.rifle + 50;
} else if ((_root._currentframe == 8) && (_root.haveGuns[5] != 1)) {
weapon = "Dual Pistol Upgrade: Walther P-99";
_root.haveGuns[5] = 1;
_root.ui.pistol = _root.ui.pistol + 50;
} else if ((_root._currentframe == 10) && (_root.haveGuns[11] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Cobray MAC-10";
_root.haveGuns[11] = 1;
_root.ui.smg = _root.ui.smg + 50;
} else if ((_root._currentframe == 12) && (_root.haveGuns[17] != 1)) {
weapon = "Shotgun Upgrade: Striker-12";
_root.haveGuns[17] = 1;
_root.ui.shotgun = _root.ui.shotgun + 50;
} else if ((_root._currentframe == 14) && (_root.haveGuns[4] != 1)) {
weapon = "Pistol Upgrade: Desert Eagle";
_root.haveGuns[4] = 1;
_root.ui.magnum = _root.ui.magnum + 50;
}
}
}
if (_root._currentframe != 14) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 14
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 14) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 14
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 14) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 15
_root.qual = _root._quality;
_root._quality = "high";
stopAllSounds();
mouse.show();
Instance of Symbol 359 MovieClip in Frame 15
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 15
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 15) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 16
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 16
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 16
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 16
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 16
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 16
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 832 MovieClip "ui" in Frame 16
onClipEvent (load) {
pistol = 500;
smg = 0;
rifle = 0;
shotgun = 0;
magnum = 0;
kill = 0;
bossBar._visible = false;
}
onClipEvent (enterFrame) {
bar._xscale = _root.character.health * 5;
if (_root.character.health < 8) {
bar.play();
}
gun = _root.hand1.names[_root.hand1.gunNum];
if (pistol > 500) {
pistol = 500;
}
if (smg > 999) {
smg = 999;
}
if (rifle > 999) {
rifle = 999;
}
if (shotgun > 500) {
shotgun = 500;
}
if (magnum > 500) {
magnum = 500;
}
if (pistol < 0) {
pistol = 0;
}
if (smg < 0) {
smg = 0;
}
if (rifle < 0) {
rifle = 0;
}
if (shotgun < 0) {
shotgun = 0;
}
if (magnum > 500) {
magnum = 500;
}
if (magnum < 0) {
magnum = 0;
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 16
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 16) {
removeMovieClip("");
}
}
Instance of Symbol 891 MovieClip "soundEffects" in Frame 16
onClipEvent (load) {
stopAllSounds();
chance = random(5) + 1;
if (chance == 1) {
gotoAndPlay (18);
} else if (chance == 2) {
gotoAndPlay (20);
} else if (chance == 3) {
gotoAndPlay (22);
} else if (chance == 4) {
gotoAndPlay (24);
} else if (chance == 5) {
gotoAndPlay (26);
}
}
Instance of Symbol 701 MovieClip "hand2" in Frame 16
onClipEvent (load) {
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 3, 1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = (_root.character._y + 5);
gunNum = _root.hand1.gunNum;
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (key.isdown(70)) {
_rotation = (myDegrees + 180);
} else {
_rotation = myDegrees;
}
if (_root.hand1.fire == true) {
if (wait < 3) {
wait = wait + 1;
}
} else {
wait = 0;
}
if (wait == 3) {
gun.play();
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
_root.hand1.i++;
duplicateMovieClip ("_root.link", "link" + _root.hand1.i, _root.hand1.i);
} else {
_root.hand1.i++;
duplicateMovieClip ("_root.shell", "shell" + _root.hand1.i, _root.hand1.i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
} else if (bulletType[gunNum] == 3) {
_root.hand1.i++;
duplicateMovieClip ("_root.bullet", "bullet" + _root.hand1.i, _root.hand1.i);
}
gun._rotation = gun._rotation + recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation > 0) {
gun._rotation = gun._rotation - 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (_root.hand1.gun._currentframe != 1) {
gun.play();
}
}
}
Instance of Symbol 713 MovieClip "character" in Frame 16
onClipEvent (load) {
jump = false;
hit = false;
health = 20;
headGore = 1;
bodyGore = 1;
_root.dup = 200;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (health < 1) {
_root.pause = true;
_root.pauseScreen.end = true;
}
if (((key.isdown(65) || (key.isdown(37))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == -100)) {
gotoAndStop (3);
speed = -10;
} else if (_xscale == 100) {
gotoAndStop (4);
speed = -6;
} else {
gotoAndStop (2);
speed = -6;
}
} else if (((key.isdown(68) || (key.isdown(39))) && (jump == false)) && (fall == false)) {
hit = false;
if ((key.isdown(key.shift) || (key.isdown(17))) && (_xscale == 100)) {
gotoAndStop (3);
speed = 10;
} else if (_xscale == -100) {
gotoAndStop (4);
speed = 6;
} else {
gotoAndStop (2);
speed = 6;
}
} else if (jump == true) {
hit = false;
jumpTimer = 0;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_xscale = scale;
_root.hand1._yscale = scale;
_root.hand2._yscale = scale;
if ((((!key.isdown(87)) && (awsd == true)) || ((!key.isdown(38)) && (udlr == true))) && (double == false)) {
double = true;
}
if ((((key.isdown(87) || (key.isdown(38))) && (double == true)) && (dJump == false)) && (back == false)) {
if (((key.isdown(65) || (key.isdown(37))) && (_xscale == 100)) || ((key.isdown(68) || (key.isdown(39))) && (_xscale == -100))) {
gotoAndStop (7);
} else {
gotoAndStop (11);
}
dj.gotoandplay(1);
dJump = true;
gravity = -23;
}
if ((back == true) && (dJump == false)) {
gotoAndStop (7);
}
if ((dJump == false) && (back == false)) {
if (gravity < 0) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (fall == true) {
hit = false;
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
fall = false;
gravity = 0;
}
gotoAndStop (6);
if ((key.isdown(key.shift) || (key.isdown(17))) && (key.isdown(65) || (key.isdown(37)))) {
speed = -10;
} else if (key.isdown(65) || (key.isdown(37))) {
speed = -6;
} else if ((key.isdown(68) || (key.isdown(39))) && (key.isdown(key.shift) || (key.isdown(17)))) {
speed = 10;
} else if (key.isdown(68) || (key.isdown(39))) {
speed = 6;
} else {
speed = 0;
}
} else if (((key.isdown(83) || (key.isdown(40))) && (jump == false)) && (fall == false)) {
gotoAndStop (10);
speed = 0;
} else if (hit == true) {
speed = 0;
} else {
gotoAndStop (1);
speed = 0;
}
if (((key.isdown(87) || (key.isdown(38))) && (jump == false)) && (jumpTimer == 4)) {
if (key.isdown(87)) {
awsd = true;
udlr = false;
} else if (key.isdown(38)) {
awsd = false;
udlr = true;
}
hit = false;
if (_currentframe == 4) {
back = true;
gravity = -25;
} else {
gravity = -20;
back = false;
}
jump = true;
scale = _xscale;
double = false;
dJump = false;
_y = (_y - 1);
}
if (!_root.ground.hitTest(_x, _y + 40, true)) {
if (gravity < 41) {
gravity = gravity + 2;
} else {
gravity = 41;
}
if (jump == false) {
fall = true;
}
}
if (jumpTimer < 4) {
jumpTimer = jumpTimer + 1;
}
m = 0;
while (m < math.abs(speed)) {
if ((speed > 0) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + 1);
} else if ((speed < 0) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - 1);
} else {
m = 50;
speed = 0;
}
m++;
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 1)) {
jump = false;
fall = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
if (health > 20) {
health = 20;
}
if (health < 0) {
health = 0;
}
_x = math.round(_x);
_y = math.round(_y);
if (_x < 320) {
m = 0;
while (m < 20) {
_x = (_x + 1);
_root.hand1._x = _root.hand1._x + 1;
_root.hand2._x = _root.hand2._x + 1;
_root.enemy1._x = _root.enemy1._x + 1;
_root.enemy2._x = _root.enemy2._x + 1;
_root.enemy3._x = _root.enemy3._x + 1;
_root.enemy4._x = _root.enemy4._x + 1;
_root.enemy5._x = _root.enemy5._x + 1;
_root.enemy6._x = _root.enemy6._x + 1;
_root.level._x = _root.level._x + 1;
_root.ground._x = _root.ground._x + 1;
_root.bg._x = _root.bg._x + 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_x > 320) {
m = 0;
while (m < 20) {
_x = (_x - 1);
_root.hand1._x = _root.hand1._x - 1;
_root.hand2._x = _root.hand2._x - 1;
_root.enemy1._x = _root.enemy1._x - 1;
_root.enemy2._x = _root.enemy2._x - 1;
_root.enemy3._x = _root.enemy3._x - 1;
_root.enemy4._x = _root.enemy4._x - 1;
_root.enemy5._x = _root.enemy5._x - 1;
_root.enemy6._x = _root.enemy6._x - 1;
_root.level._x = _root.level._x - 1;
_root.ground._x = _root.ground._x - 1;
_root.bg._x = _root.bg._x - 0.1;
if (_x == 320) {
m = 20;
}
m++;
}
}
if (_y < 250) {
m = 0;
while (m < 40) {
_y = (_y + 1);
_root.hand1._y = _root.hand1._y + 1;
_root.hand2._y = _root.hand2._y + 1;
_root.enemy1._y = _root.enemy1._y + 1;
_root.enemy2._y = _root.enemy2._y + 1;
_root.enemy3._y = _root.enemy3._y + 1;
_root.enemy4._y = _root.enemy4._y + 1;
_root.enemy5._y = _root.enemy5._y + 1;
_root.enemy6._y = _root.enemy6._y + 1;
_root.level._y = _root.level._y + 1;
_root.ground._y = _root.ground._y + 1;
_root.bg._y = _root.bg._y + 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
if (_y > 250) {
m = 0;
while (m < 40) {
_y = (_y - 1);
_root.hand1._y = _root.hand1._y - 1;
_root.hand2._y = _root.hand2._y - 1;
_root.enemy1._y = _root.enemy1._y - 1;
_root.enemy2._y = _root.enemy2._y - 1;
_root.enemy3._y = _root.enemy3._y - 1;
_root.enemy4._y = _root.enemy4._y - 1;
_root.enemy5._y = _root.enemy5._y - 1;
_root.enemy6._y = _root.enemy6._y - 1;
_root.level._y = _root.level._y - 1;
_root.ground._y = _root.ground._y - 1;
_root.bg._y = _root.bg._y - 0.1;
if (_y == 250) {
m = 40;
}
m++;
}
}
}
}
Instance of Symbol 806 MovieClip "hand1" in Frame 16
onClipEvent (load) {
have = _root.haveGuns;
machineGun = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1);
bulletType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3);
shellType = new Array(0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 3, 1);
ammoType = new Array(0, 0, 1, 1, 5, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 5, 4, 4, 4, 3, 1);
beltFed = new Array(0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1);
pow = new Array(0, 1, 2, 2, 8, 1, 1, 2, 2, 2, 3, 1, 1, 2, 2, 2, 8, 2, 2, 2, 3, 4);
recoil = new Array(0, 1, 30, 25, 30, 40, 35, 30, 20, 20, 20, 35, 30, 25, 20, 15, 20, 75, 25, 20, 10, 30);
names = new Array(0, "Unarmed", "SV Infinity 1911", "MK-23 SOCOM", "Desert Eagle", "Dual Walther P-99", "Dual Beretta 92FS", "Dual HK USP", "Intratec AB-10", "HK MP5K", "Steyer TMP", "Dual Cobray MAC-10", "Dual Glock 18", "Dual Micro Uzi", "HK G-36", "GIAT Famas", "FN FAL", "Striker 12", "Benelli M4", "Pancor Jackhammer", "FN M249 SAW", "Dual XM-435 SuperMag");
gunNum = 2;
i = 350;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
fire = true;
} else {
_root.soundEffects.gotoandplay(2);
}
} else if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol > 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg > 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle > 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun > 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum > 0))) {
gun.play();
} else if (_currentframe != 1) {
_root.soundEffects.gotoandplay(2);
}
}
}
onClipEvent (mouseUp) {
if (_root.pause == false) {
if (machineGun[gunNum] == 2) {
fire = false;
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = _root.character._x;
_y = _root.character._y;
if (fire == true) {
gun.play();
}
gotoAndStop(gunNum);
_root.hand2.gotoandstop(gunNum);
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
if ((_rotation < -90) || (_rotation > 90)) {
_root.character._xscale = -100;
_yscale = -100;
_root.hand2._yscale = -100;
if (getDepth() > _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
} else {
_root.character._xscale = 100;
_yscale = 100;
_root.hand2._yscale = 100;
if (getDepth() < _root.hand2.getDepth()) {
swapDepths(_root.hand2);
}
}
if (gun._currentframe == 2) {
if (ammoType[gunNum] == 1) {
_root.ui.pistol = _root.ui.pistol - 1;
} else if (ammoType[gunNum] == 2) {
_root.ui.smg = _root.ui.smg - 1;
} else if (ammoType[gunNum] == 3) {
_root.ui.rifle = _root.ui.rifle - 1;
} else if (ammoType[gunNum] == 4) {
_root.ui.shotgun = _root.ui.shotgun - 1;
} else if (ammoType[gunNum] == 5) {
_root.ui.magnum = _root.ui.magnum - 1;
}
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.bulletDupX = gun.pointsOne.x;
_root.bulletDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.shellDupX = gun.pointsTwo.x;
_root.shellDupY = gun.pointsTwo.y;
_root.shellDupRot = _rotation + gun._rotation;
if (beltFed[gunNum] == 2) {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
i++;
duplicateMovieClip ("_root.link", "link" + i, i);
} else {
i++;
duplicateMovieClip ("_root.shell", "shell" + i, i);
}
_root.shellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
a++;
}
} else if (bulletType[gunNum] == 3) {
i++;
duplicateMovieClip ("_root.bullet", "bullet" + i, i);
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
if (i > 450) {
i = 350;
}
if ((((((ammoType[gunNum] == 1) && (_root.ui.pistol <= 0)) || ((ammoType[gunNum] == 2) && (_root.ui.smg <= 0))) || ((ammoType[gunNum] == 3) && (_root.ui.rifle <= 0))) || ((ammoType[gunNum] == 4) && (_root.ui.shotgun <= 0))) || ((ammoType[gunNum] == 5) && (_root.ui.magnum <= 0))) {
fire = false;
}
}
}
on (keyPress "e") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "0") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "<Insert>") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "E") {
if (_root.pause == false) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
}
while (have[gunNum] == 0) {
gunNum = gunNum + 1;
if (gunNum > 21) {
gunNum = 1;
break;
}
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "1") {
if (_root.pause == false) {
if (have[4] == 1) {
gunNum = 4;
} else if (have[3] == 1) {
gunNum = 3;
} else if (have[2] == 1) {
gunNum = 2;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "2") {
if (_root.pause == false) {
if (have[7] == 1) {
gunNum = 7;
} else if (have[6] == 1) {
gunNum = 6;
} else if (have[5] == 1) {
gunNum = 5;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "3") {
if (_root.pause == false) {
if (have[10] == 1) {
gunNum = 10;
} else if (have[9] == 1) {
gunNum = 9;
} else if (have[8] == 1) {
gunNum = 8;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "4") {
if (_root.pause == false) {
if (have[13] == 1) {
gunNum = 13;
} else if (have[12] == 1) {
gunNum = 12;
} else if (have[11] == 1) {
gunNum = 11;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "5") {
if (_root.pause == false) {
if (have[16] == 1) {
gunNum = 16;
} else if (have[15] == 1) {
gunNum = 15;
} else if (have[14] == 1) {
gunNum = 14;
}
fire = false;
hand2.fire = false;
}
}
on (keyPress "6") {
if (_root.pause == false) {
if (have[19] == 1) {
gunNum = 19;
} else if (have[18] == 1) {
gunNum = 18;
} else if (have[17] == 1) {
gunNum = 17;
}
fire = false;
hand2.fire = false;
}
}
Instance of Symbol 1628 MovieClip "enem" in Frame 16
onClipEvent (load) {
if (_name != "enem") {
_xscale = 80;
_yscale = 80;
health = 8;
stSpeed = random(10) + 1;
speed = stSpeed;
dist = 30;
active = true;
jump = false;
side = random(2) + 1;
if (side == 1) {
_x = -100;
} else {
_x = 740;
}
_y = 200;
} else {
stop();
bean.stop();
_root.enemyDep = 10;
_root.dup = 200;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enem") {
if ((((_x > (_root.character._x + dist)) && (hurt == false)) && (health > 0)) && (jump == false)) {
if (!_root.ground.hitTest(_x - 15, _y, true)) {
_x = (_x - speed);
jumpChance = random(20) + 1;
if (jumpChance == 1) {
gravity = -30;
_y = (_y - 1);
jump = true;
}
}
_xscale = 80;
gotoAndStop (2);
} else if ((((_x < (_root.character._x - dist)) && (hurt == false)) && (health > 0)) && (jump == false)) {
if (!_root.ground.hitTest(_x + 15, _y, true)) {
_x = (_x + speed);
jumpChance = random(20) + 1;
if (jumpChance == 1) {
_y = (_y - 1);
gravity = -30;
jump = true;
}
}
_xscale = -80;
gotoAndStop (2);
} else if ((hurt == true) && (health > 0)) {
gotoAndStop (3);
} else if (jump == true) {
gotoAndStop (3);
gravity = gravity + 2;
} else if (health < 1) {
gotoAndStop (4);
_root.spawnX = _x;
_root.spawnY = _y;
_xscale = -80;
if (-80) {
_root.spawnSca = -100;
} else {
_root.spawnSca = 100;
}
if (duplicated < 1) {
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
duplicated++;
_name = "noName";
}
hurt = false;
} else {
gotoAndStop (1);
}
if (!_root.ground.hitTest(_x, _y + 23, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
} else {
gravity = 0;
hurt = false;
jump = false;
}
while (_root.ground.hitTest(_x, _y + 22, true)) {
_y = (_y - 1);
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
if (hitTest(_root.character)) {
speed = 3;
} else {
speed = stSpeed;
}
} else {
stop();
bean.stop();
if (time == 1) {
dupChance = 2;
} else if (time < 60) {
dupChance = 2;
} else if ((time > 60) && (time < 120)) {
dupChance = random(30) + 1;
} else if ((time > 120) && (time < 150)) {
dupChance = random(20) + 1;
} else if ((time > 150) && (time < 190)) {
dupChance = random(10) + 1;
} else if ((time > 190) && (time < 220)) {
dupChance = random(3) + 1;
} else if (time > 220) {
dupChance = random(2) + 1;
}
time = time + 1;
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
} else if (_root.enemy5.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy5", _root.enemyDep);
} else if (_root.enemy6.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy6", _root.enemyDep);
}
}
}
}
if (_root._currentframe != 16) {
_root.menuScreen.gotoandstop(3);
removeMovieClip("");
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 16
onClipEvent (load) {
killNeed = new Array(149, 199, 39);
end = false;
kill = 0;
countNum = 1;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root._currentframe == 16) {
mission = "Survive the onslaught of HORRIBLE beans!";
} else if (_root._currentframe == 17) {
mission = "Survive as many enemies as you can!";
} else if (_root._currentframe == 18) {
mission = "Survive an endless attack!";
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (4);
}
if (_currentframe == 4) {
i = 0;
while (i < countNum) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
i = countNum;
}
i++;
}
if ((i = countNum)) {
countNum = countNum + 1;
}
if (kill == _root.ui.kill) {
nextLevel._visible = true;
if (((_root._currentframe == 16) && (kill > killNeed[0])) && (_root.haveGuns[9] != 1)) {
weapon = "Sub Machinegun Upgrade: HK MP5K";
_root.haveGuns[9] = 1;
} else if (((_root._currentframe == 17) && (kill > killNeed[1])) && (_root.haveGuns[12] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Glock 18";
_root.haveGuns[12] = 1;
} else if (((_root._currentframe == 18) && (kill > killNeed[1])) && (_root.haveGuns[19] != 1)) {
weapon = "Shotgun Upgrade: PANCOR Jackhammer";
_root.haveGuns[19] = 1;
}
}
}
if (_root._currentframe != 16) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 16
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 16) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 16
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 16) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 17
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 17
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 17
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 17
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 17
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 17
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 17
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 17) {
removeMovieClip("");
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 17
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 18;
gun = 1;
headHealth = 18;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(30) + 20;
speed = random(3) + 3;
hurt = false;
dead = false;
bodyGore = random(7) + 1;
headGore = random(4) + 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (time > 60) {
dupChance = random(3) + 1;
} else {
time = time + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 17) {
_root.menuScreen.gotoandstop(3);
removeMovieClip("");
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 17
onClipEvent (load) {
killNeed = new Array(149, 199, 39);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root._currentframe == 16) {
mission = "Survive the onslaught of HORRIBLE beans!";
} else if (_root._currentframe == 17) {
mission = "Survive as many enemies as you can!";
} else if (_root._currentframe == 18) {
mission = "Survive an endless attack!";
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (4);
}
if (_currentframe == 4) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (((_root._currentframe == 16) && (kill > killNeed[0])) && (_root.haveGuns[9] != 1)) {
weapon = "Sub Machinegun Upgrade: HK MP5K";
_root.haveGuns[9] = 1;
} else if (((_root._currentframe == 17) && (kill > killNeed[1])) && (_root.haveGuns[12] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Glock 18";
_root.haveGuns[12] = 1;
} else if (((_root._currentframe == 18) && (kill > killNeed[1])) && (_root.haveGuns[19] != 1)) {
weapon = "Shotgun Upgrade: PANCOR Jackhammer";
_root.haveGuns[19] = 1;
}
}
}
if (_root._currentframe != 17) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 17
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 17) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 17
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 17) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 18
pause = false;
Instance of Symbol 627 MovieClip "bullet" in Frame 18
onClipEvent (load) {
if (_name != "bullet") {
_x = _root.bulletDupX;
_y = _root.bulletDupY;
if (_root.hand1._currentframe == 21) {
explosive = true;
}
pow = _root.hand1.pow[_root.hand1.gunNum];
_rotation = _root.shellDupRot;
if (_root.shellType == 4) {
gotoAndPlay (9);
_rotation = (_rotation + ((-20 + random(40)) + 1));
shotgun = true;
} else {
_rotation = (_rotation + ((-5 + random(10)) + 1));
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
if (_root.enemy1.hitTest(_x, _y, true)) {
if (_root.enemy1.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(5);
}
_root.enemy1.health = _root.enemy1.health - pow;
_root.enemy1.headHealth = _root.enemy1.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
if (((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) {
_root.enemy1.gotoandstop(6);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy1.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy1.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy1._currentframe != 3) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (chance == 1)) {
_root.enemy1.gotoandstop(7);
}
_root.enemy1.health = _root.enemy1.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy2.hitTest(_x, _y, true)) {
if (_root.enemy2.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(5);
}
_root.enemy2.health = _root.enemy2.health - pow;
_root.enemy2.headHealth = _root.enemy2.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
if (((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) {
_root.enemy2.gotoandstop(6);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy2.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy2.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy2._currentframe != 3) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (chance == 1)) {
_root.enemy2.gotoandstop(7);
}
_root.enemy2.health = _root.enemy2.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy3.hitTest(_x, _y, true)) {
if (_root.enemy3.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(5);
}
_root.enemy3.health = _root.enemy3.health - pow;
_root.enemy3.headHealth = _root.enemy3.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
if (((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) {
_root.enemy3.gotoandstop(6);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy3.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy3.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy3._currentframe != 3) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (chance == 1)) {
_root.enemy3.gotoandstop(7);
}
_root.enemy3.health = _root.enemy3.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy4.hitTest(_x, _y, true)) {
if (_root.enemy4.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(5);
}
_root.enemy4.health = _root.enemy4.health - pow;
_root.enemy4.headHealth = _root.enemy4.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
if (((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) {
_root.enemy4.gotoandstop(6);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy4.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy4.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy4._currentframe != 3) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (chance == 1)) {
_root.enemy4.gotoandstop(7);
}
_root.enemy4.health = _root.enemy4.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy5.hitTest(_x, _y, true)) {
if (_root.enemy5.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(5);
}
_root.enemy5.health = _root.enemy5.health - pow;
_root.enemy5.headHealth = _root.enemy5.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
if (((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) {
_root.enemy5.gotoandstop(6);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy5.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy5.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy5._currentframe != 3) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (chance == 1)) {
_root.enemy5.gotoandstop(7);
}
_root.enemy5.health = _root.enemy5.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
if (_root.enemy6.hitTest(_x, _y, true)) {
if (_root.enemy6.ene.head.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(5);
}
_root.enemy6.health = _root.enemy6.health - pow;
_root.enemy6.headHealth = _root.enemy6.headHealth - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.body.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
if (((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) {
_root.enemy6.gotoandstop(6);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot1.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
} else if (_root.enemy6.ene.foot2.hitTest(_x, _y, true)) {
hit = true;
_root.enemy6.hurt = true;
chance = random(2) + 1;
if ((((_root.enemy6._currentframe != 3) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (chance == 1)) {
_root.enemy6.gotoandstop(7);
}
_root.enemy6.health = _root.enemy6.health - pow;
i = 20;
if (explosive == true) {
gotoAndStop (8);
} else {
gotoAndStop (15);
}
}
}
i++;
}
}
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "shell" in Frame 18
onClipEvent (load) {
if (_name != "shell") {
soundplay = 0;
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.shellType);
_rotation = _root.shellDupRot;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (timer > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 634 MovieClip "link" in Frame 18
onClipEvent (load) {
if (_name != "link") {
_x = _root.shellDupX;
_y = _root.shellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
_rotation = _root.hand1._rotation;
if (_root.character._xscale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "link") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 627 MovieClip "enemyBullet" in Frame 18
onClipEvent (load) {
if (_name != "enemyBullet") {
_x = _root.enemyDupX;
_y = _root.enemyDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
pow = 1;
if (_root.eneScale == 100) {
_rotation = _root.eneShellDupRot;
} else {
_rotation = (-_root.eneShellDupRot);
}
_rotation = (_rotation + ((-20 + random(40)) + 1));
if (_root.eneShellType == 4) {
gotoAndPlay (9);
shotgun = true;
}
rot = _rotation + 90;
speed = 10;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyBullet") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
if (hit != true) {
i = 0;
while (i < 15) {
_x = (_x + x);
_y = (_y + y);
if (_root.ground.hitTest(_x, _y, true)) {
i = 20;
hit = true;
gotoAndStop (7);
}
if (_root.character.hitTest(_x, _y, true)) {
if (_root.character.char.head.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
} else if (_root.character.char.body.hitTest(_x, _y, true)) {
hit = true;
_root.character.hit = true;
_root.character.gotoandstop(9);
_root.character.health = _root.character.health - pow;
i = 20;
gotoAndStop (15);
}
}
i++;
}
}
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 632 MovieClip "enemyShell" in Frame 18
onClipEvent (load) {
if (_name != "enemyShell") {
soundplay = 0;
_x = _root.eneShellDupX;
_y = _root.eneShellDupY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gotoAndStop(_root.eneShellType);
_rotation = _root.eneShellDupRot;
if (_root.eneScale == 100) {
rot = _rotation;
} else {
rot = _rotation - 180;
}
speed = 12;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (_root.character._xscale == -100) {
x = x + random(10);
} else {
x = x - random(10);
}
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "enemyShell") {
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
time = time + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + x);
y = y + 1;
if (_root.ground.hitTest(_x, _y, true)) {
y = y * -0.5;
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
bounce = bounce + 1;
}
if (_root.ground.hitTest(_x + 15, _y, true) || (_root.ground.hitTest(_x - 15, _y, true))) {
x = x * -0.5;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (_root.ground.hitTest(_x, _y - 15, true)) {
y = 3;
if (soundplay == 0) {
_root.soundEffects.gotoandplay(28);
soundPlay = soundPlay + 1;
} else if (soundplay == 1) {
_root.soundEffects.gotoandplay(30);
soundPlay = soundPlay + 1;
}
}
if (time > 30) {
_alpha = (_alpha - 10);
}
if (_alpha < 1) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 1);
}
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 879 MovieClip "drop" in Frame 18
onClipEvent (load) {
if (_name != "drop") {
_x = _root.dropX;
_y = _root.dropY;
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
gravity = -6;
item = random(10) + 1;
if (item < 4) {
removeMovieClip("");
} else {
itemRan = random(5) + 1;
if (((((((_root.hand1.have[8] == 1) || (_root.hand1.have[9] == 1)) || (_root.hand1.have[10] == 1)) || (_root.hand1.have[11] == 1)) || (_root.hand1.have[12] == 1)) || (_root.hand1.have[13] == 1)) && (itemRan == 1)) {
gotoAndStop (2);
} else if ((((_root.hand1.have[14] == 1) || (_root.hand1.have[15] == 1)) || (_root.hand1.have[20] == 1)) && (itemRan == 2)) {
gotoAndStop (3);
} else if ((((_root.hand1.have[17] == 1) || (_root.hand1.have[18] == 1)) || (_root.hand1.have[19] == 1)) && (itemRan == 3)) {
gotoAndStop (4);
} else if (((_root.hand1.have[4] == 1) || (_root.hand1.have[16] == 1)) && (itemRan == 4)) {
gotoAndStop (5);
} else {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drop") {
if ((((_x < -200) || (_x > 840)) || (_y < -200)) || (_y > 600)) {
removeMovieClip("");
}
while (_root.ground.hitTest(_x, _y + 9, true)) {
_y = (_y - 1);
}
if (_root.character.hitTest(_x, _y, true)) {
_root.soundEffects.gotoandplay(8);
if (_currentframe == 1) {
_root.ui.pistol = _root.ui.pistol + 15;
removeMovieClip("");
} else if (_currentframe == 2) {
_root.ui.smg = _root.ui.smg + 30;
removeMovieClip("");
} else if (_currentframe == 3) {
_root.ui.rifle = _root.ui.rifle + 30;
removeMovieClip("");
} else if (_currentframe == 4) {
_root.ui.shotgun = _root.ui.shotgun + 7;
removeMovieClip("");
} else if (_currentframe == 5) {
_root.ui.magnum = _root.ui.magnum + 3;
removeMovieClip("");
} else if (_currentframe == 6) {
_root.character.health = _root.character.health + 10;
removeMovieClip("");
}
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
_y = (_y + gravity);
gravity = gravity + 1;
}
_x = (_x - _root.character.speed);
_y = (_y - _root.character.gravity);
}
}
if (_root._currentframe != 18) {
removeMovieClip("");
}
}
Instance of Symbol 874 MovieClip "enem" in Frame 18
onClipEvent (load) {
if (_name == "enem") {
_root.enemyDep = 10;
gotoAndStop (1);
ene.stop();
hand._rotation = 0;
hand.shootchance = 100;
head = 1;
body = 1;
foot = 1;
headGore = 1;
bodyGore = 1;
} else {
xChance = random(2) + 1;
if (xChance == 1) {
_x = 750;
} else {
_x = -150;
}
_y = 200;
active = true;
health = 8;
gun = random(11) + 2;
headHealth = 8;
head = random(50) + 1;
body = random(34) + 1;
foot = random(15) + 1;
dist = random(200) + 50;
speed = random(3) + 3;
hurt = false;
dead = false;
headGore = 1;
bodyGore = 1;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "enem") {
hand._rotation = 0;
hand.shootchance = 100;
if (time > 70) {
dupChance = 1;
} else {
time = time + 1;
}
if (dupChance == 1) {
if (_root.enemy1.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy1", _root.enemyDep);
} else if (_root.enemy2.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy2", _root.enemyDep);
} else if (_root.enemy3.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy3", _root.enemyDep);
} else if (_root.enemy4.active != true) {
_root.enemyDep++;
if (_root.enemyDep > 80) {
_root.enemyDep = 10;
}
duplicateMovieClip ("_parent.enem", "enemy4", _root.enemyDep);
}
}
} else {
if (dead == false) {
if (hurt == false) {
if (_root.character._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if ((_root.character._x > (_x + dist)) && (!_root.ground.hitTest(_x + 20, _y, true))) {
_x = (_x + speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if ((_root.character._x < (_x - dist)) && (!_root.ground.hitTest(_x - 20, _y, true))) {
_x = (_x - speed);
if (jump == false) {
gotoAndStop (2);
} else if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (jump == true) {
if (_root.ground.hitTest(_x, _y + 40, true) && (gravity > 0)) {
jump = false;
gravity = 0;
}
if ((_root.ground.hitTest(_x, _y - 40, true) && (_root.ground.hittest(_x, _y - 70, true))) && (gravity < 0)) {
gravity = 5;
}
_x = (_x + jSpeed);
hurt = false;
if (gravity < 0) {
gotoAndStop (3);
} else {
gotoAndStop (4);
}
} else if (fall == true) {
hurt = false;
gotoAndStop (4);
} else {
gotoAndStop (1);
}
}
m = 0;
while (m < math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
hurt = false;
gravity = 0;
m = 50;
}
} else if (gravity < 0) {
_y = (_y - 1);
}
m++;
}
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (!_root.ground.hitTest(_x, _y + 41, true)) {
hurt = false;
gravity = gravity + 2;
if (jump == false) {
fall = true;
}
}
if ((_root.ground.hitTest(_x + 20, _y, true) && (_xscale == 100)) || (_root.ground.hitTest(_x - 20, _y, true) && (_xscale == -100))) {
jump = true;
hurt = false;
gravity = -25;
if (_root.character._x > _x) {
jSpeed = speed;
} else {
jSpeed = -speed;
}
}
if (_root.ground.hitTest(_x, _y + 41, true) && (_currentframe == 4)) {
jump = true;
hurt = false;
gravity = 0;
gotoAndStop (1);
}
} else {
jump = false;
fall = false;
if (counterDone != 1) {
_root.ui.kill = _root.ui.kill + 1;
counterDone = 1;
}
deadTimer = deadTimer + 1;
if (deadTimer > 90) {
_alpha = (_alpha - 10);
}
if (_alpha < 10) {
this.removemovieclip("");
}
if (_root.ground.hitTest(_x, _y + 40, true)) {
gravity = 0;
if (jump == false) {
while (_root.ground.hitTest(_x, _y + 39, true)) {
_y = (_y - 1);
}
}
if (headHealth < 1) {
if (choose != true) {
headGore = random(4) + 1;
choose = true;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
}
}
if (headHealth == 8) {
if (choose != true) {
bodyGore = random(7) + 1;
_root.dropX = _x;
_root.dropy = _y;
_root.dup++;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
} else if (choose != true) {
bodyGore = random(7) + 1;
headGore = random(4) + 1;
_root.dup++;
_root.dropX = _x;
_root.dropy = _y;
if (_root.dup > 275) {
_root.dup = 200;
}
duplicateMovieClip ("_root.drop", "drop" + _root.dup, _root.dup);
choose = true;
}
if ((health < 1) && (_currentframe < 8)) {
if (headHealth < 1) {
gotoAndStop (8);
} else {
dieChance = random(3) + 1;
if (dieChance == 1) {
gotoAndStop (9);
} else if (dieChance == 2) {
gotoAndStop (10);
} else if (dieChance == 3) {
gotoAndStop (11);
}
}
}
} else {
gravity = gravity + 1;
_y = (_y + gravity);
}
}
if (health < 1) {
health = 0;
dead = true;
}
if ((((_y > 800) || (_y < -400)) || (_x < -400)) || (_x > 1000)) {
removeMovieClip("");
}
}
if (_root.ground.hitTest(_x, _y + 41, true)) {
jump = false;
fall = false;
gravity = 0;
}
}
if (_root._currentframe != 18) {
_root.menuScreen.gotoandstop(3);
removeMovieClip("");
}
}
Instance of Symbol 986 MovieClip "pauseScreen" in Frame 18
onClipEvent (load) {
killNeed = new Array(149, 199, 39);
end = false;
kill = 0;
startDepth = getDepth();
}
onClipEvent (enterFrame) {
if (key.isdown(80) && (_root.pause == false)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
}
if (end == false) {
if (_root.pause == true) {
_root.hand1.fire = false;
_root.hand2.fire = false;
swapDepths(500);
gotoAndStop (2);
if (_root._currentframe == 16) {
mission = "Survive the onslaught of HORRIBLE beans!";
} else if (_root._currentframe == 17) {
mission = "Survive as many enemies as you can!";
} else if (_root._currentframe == 18) {
mission = "Survive an endless attack!";
}
} else {
swapDepths(startDepth);
gotoAndStop (1);
}
} else {
swapDepths(500);
gotoAndStop (4);
}
if (_currentframe == 4) {
if (kill < _root.ui.kill) {
kill = kill + 1;
nextLevel._visible = false;
snd = snd + 1;
if (snd > 2) {
snd = 0;
}
if (snd == 2) {
_root.soundEffects.gotoandplay(12);
}
} else {
nextLevel._visible = true;
if (((_root._currentframe == 16) && (kill > killNeed[0])) && (_root.haveGuns[9] != 1)) {
weapon = "Sub Machinegun Upgrade: HK MP5K";
_root.haveGuns[9] = 1;
} else if (((_root._currentframe == 17) && (kill > killNeed[1])) && (_root.haveGuns[12] != 1)) {
weapon = "Dual Sub Machinegun Upgrade: Glock 18";
_root.haveGuns[12] = 1;
} else if (((_root._currentframe == 18) && (kill > killNeed[2])) && (_root.haveGuns[19] != 1)) {
weapon = "Shotgun Upgrade: PANCOR Jackhammer";
_root.haveGuns[19] = 1;
}
}
}
if (_root._currentframe != 18) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 992 MovieClip in Frame 18
onClipEvent (load) {
swapDepths(599);
}
onClipEvent (enterFrame) {
if (_root._currentframe != 18) {
swapDepths(1);
removeMovieClip("");
}
if (_root.pause == false) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
} else {
mouse.show();
}
}
onClipEvent (mouseDown) {
cursor.play();
}
Instance of Symbol 213 MovieClip in Frame 18
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 18) {
swapDepths(1);
removeMovieClip("");
}
}
Frame 19
mouse.show();
Instance of Symbol 359 MovieClip in Frame 19
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
mouse.hide();
}
Instance of Symbol 213 MovieClip in Frame 19
onClipEvent (load) {
swapDepths(600);
}
onClipEvent (enterFrame) {
if (_currentframe != 19) {
swapDepths(1);
removeMovieClip("");
}
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Instance of Symbol 100 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.bodyGore);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent._parent.bodyGore);
}
Symbol 141 MovieClip Frame 1
stop();
Instance of Symbol 141 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.headGore);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent._parent.headGore);
}
Instance of Symbol 91 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 192 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 206 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 7 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_parent._parent.getBytesLoaded() / _parent._parent.getBytesTotal()) * 100);
if (_xscale == 100) {
_parent.play();
}
}
Symbol 210 MovieClip Frame 536
stop();
Instance of Symbol 7 MovieClip in Symbol 210 MovieClip Frame 536
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_root.gotoandstop(2);
}
}
Instance of Symbol 210 MovieClip in Symbol 211 MovieClip Frame 1
on (release) {
if (_currentframe < 329) {
getURL ("http://www.crazymonkeygames.com", "_blank");
} else {
getURL ("http://www.diseasedproductions.net", "_blank");
}
}
Symbol 226 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(8);
}
Symbol 233 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(14);
}
Symbol 235 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(6);
}
Symbol 237 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(12);
}
Symbol 239 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
if (_root.completeLevel == 0) {
_root.gotoandstop(3);
} else {
_root.gotoandstop(4);
}
}
Symbol 241 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(10);
}
Symbol 257 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(18);
}
Symbol 260 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(17);
}
Symbol 263 Button
on (release) {
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(16);
}
Symbol 267 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=53", "_BLANK");
}
Symbol 268 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=54", "_BLANK");
}
Symbol 269 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=52", "_BLANK");
}
Symbol 274 Button
on (release) {
_root.completeLevel = 0;
_root.beaten = false;
_root.haveGuns = new Array(0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ammoCount = new Array(200, 0, 0, 0, 0);
_root.highScores = new Array(0, 0, 0, 0, 0, 0, 0, 0);
_root._quality = "HIGH";
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.completeLevel = _root.completeLevel;
mySharedObject.data.beaten = _root.beaten;
mySharedObject.data.ammoCount = _root.ammoCount;
mySharedObject.data.haveGuns = _root.haveGuns;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.highScores = _root.highScores;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(3);
}
Symbol 286 Button
on (release) {
getURL ("http://www.diseasedproductions.net", "_blank");
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Instance of Symbol 218 MovieClip in Symbol 287 MovieClip Frame 1
onClipEvent (load) {
speed = random(4) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -109) {
_y = 105;
speed = random(4) + 1;
}
}
Symbol 287 MovieClip Frame 2
btnOne._visible = false;
btnTwo._visible = false;
btnThree._visible = false;
btnFour._visible = false;
btnFive._visible = false;
btnSix._visible = false;
if (_root.completeLevel == 0) {
btnOne._visible = true;
one = _root.highOne;
two = "";
three = "";
four = "";
five = "";
six = "";
} else if (_root.completeLevel == 1) {
btnOne._visible = true;
btnTwo._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = "";
four = "";
five = "";
six = "";
} else if (_root.completeLevel == 2) {
btnOne._visible = true;
btnTwo._visible = true;
btnThree._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = _root.highThree;
four = "";
five = "";
six = "";
} else if (_root.completeLevel == 3) {
btnOne._visible = true;
btnTwo._visible = true;
btnThree._visible = true;
btnFour._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = _root.highThree;
four = _root.highFour;
five = "";
six = "";
} else if (_root.completeLevel == 4) {
btnOne._visible = true;
btnTwo._visible = true;
btnThree._visible = true;
btnFour._visible = true;
btnFive._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = _root.highThree;
four = _root.highFour;
five = _root.highFive;
six = "";
} else if (_root.completeLevel == 5) {
btnOne._visible = true;
btnTwo._visible = true;
btnThree._visible = true;
btnFour._visible = true;
btnFive._visible = true;
btnSix._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = _root.highThree;
four = _root.highFour;
five = _root.highFive;
six = _root.highSix;
} else if (_root.completeLevel == 6) {
btnOne._visible = true;
btnTwo._visible = true;
btnThree._visible = true;
btnFour._visible = true;
btnFive._visible = true;
btnSix._visible = true;
one = _root.highOne;
two = _root.highTwo;
three = _root.highThree;
four = _root.highFour;
five = _root.highFive;
six = _root.highSix;
}
stop();
Symbol 287 MovieClip Frame 3
bean = _root.highScores[6];
zombie = _root.highScores[7];
superScore = _root.highScores[8];
Instance of Symbol 91 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 291 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.head);
}
Symbol 296 Button
on (release) {
_root.head = _root.head + 1;
if (_root.head > 50) {
_root.head = 1;
}
}
Symbol 297 Button
on (release) {
_root.foot = _root.foot + 1;
if (_root.foot > 15) {
_root.foot = 1;
}
}
Symbol 298 Button
on (release) {
_root.head = _root.head - 1;
if (_root.head < 1) {
_root.head = 50;
}
}
Symbol 299 Button
on (release) {
_root.body = _root.body + 1;
if (_root.body > 34) {
_root.body = 1;
}
}
Symbol 300 Button
on (release) {
_root.body = _root.body - 1;
if (_root.body < 1) {
_root.body = 34;
}
}
Symbol 301 Button
on (release) {
_root.foot = _root.foot - 1;
if (_root.foot < 1) {
_root.foot = 15;
}
}
Symbol 325 Button
on (release) {
_root.menuScreen.gotoandstop(4);
}
Symbol 330 Button
on (release) {
_root.menuScreen.gotoandstop(2);
}
Symbol 335 Button
on (release) {
_root.menuScreen.gotoandstop(1);
}
Symbol 340 Button
on (release) {
_root.menuScreen.gotoandstop(3);
}
Symbol 345 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 352 Button
on (release) {
getURL ("http://www.crazymonkeygames.com/Thing-Thing-Series.php", "_blank");
}
Symbol 357 Button
on (release) {
_root.menuScreen.gotoandstop(6);
}
Symbol 365 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 91 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 366 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 366 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.head);
}
Instance of Symbol 91 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 91 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 369 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_parent.head);
}
Symbol 388 Button
on (release) {
play();
}
Symbol 414 MovieClip Frame 1
_name = "body";
Symbol 416 MovieClip Frame 1
_name = "head";
Instance of Symbol 366 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 442 MovieClip Frame 8
stop();
Symbol 442 MovieClip Frame 17
stop();
Symbol 442 MovieClip Frame 26
stop();
Symbol 442 MovieClip Frame 35
stop();
Symbol 442 MovieClip Frame 44
stop();
Symbol 442 MovieClip Frame 53
stop();
Symbol 442 MovieClip Frame 62
stop();
Symbol 442 MovieClip Frame 71
stop();
Symbol 442 MovieClip Frame 80
stop();
Symbol 442 MovieClip Frame 89
stop();
Symbol 442 MovieClip Frame 98
stop();
Symbol 442 MovieClip Frame 107
stop();
Symbol 442 MovieClip Frame 116
stop();
Symbol 442 MovieClip Frame 117
stopAllSounds();
_root.nextframe();
Symbol 451 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 1
stop();
Instance of Symbol 544 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.pause = true;
_root.pauseScreen.end = true;
_root.enemy1.removemovieclip("");
_root.enemy2.removemovieclip("");
_root.enemy3.removemovieclip("");
_root.enemy4.removemovieclip("");
_root.enemy5.removemovieclip("");
_root.enemy6.removemovieclip("");
}
}
Instance of Symbol 546 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hand1.have[6] == 1) {
swapDepths(1);
removeMovieClip("");
}
if (hitTest(_root.character)) {
_root.hand1.have[6] = 1;
_root.hand1.gunNum = 6;
_root.ui.pistol = _root.ui.pistol + 50;
_root.soundEffects.gotoandplay(4);
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 582 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (load) {
scale = random(50) + 75;
_xscale = scale;
_yscale = scale;
_alpha = (random(50) + 50);
}
Symbol 600 MovieClip Frame 9
_parent.removemovieclip("");
Symbol 603 MovieClip Frame 2
stop();
Symbol 626 MovieClip Frame 11
_parent.removemovieclip("");
Symbol 626 MovieClip Frame 22
_parent.removemovieclip("");
Symbol 626 MovieClip Frame 33
_parent.removemovieclip("");
Symbol 626 MovieClip Frame 44
_parent.removemovieclip("");
Instance of Symbol 590 MovieClip in Symbol 627 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Symbol 627 MovieClip Frame 6
removeMovieClip("");
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 7
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 7
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 7
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 7
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 7
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 603 MovieClip in Symbol 627 MovieClip Frame 8
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_alpha == 100) {
if ((((hitTest(_root.enemy1) && (_root.enemy1._currentframe != 3)) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (_root.enemy1.dead == false)) {
_root.enemy1.gotoandstop(5);
_root.enemy1.health = _root.enemy1.health - 4;
_root.enemy1.hurt = true;
}
if ((((hitTest(_root.enemy2) && (_root.enemy12._currentframe != 3)) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (_root.enemy2.dead == false)) {
_root.enemy2.gotoandstop(5);
_root.enemy2.health = _root.enemy2.health - 4;
_root.enemy2.hurt = true;
}
if ((((hitTest(_root.enemy3) && (_root.enemy3._currentframe != 3)) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (_root.enemy3.dead == false)) {
_root.enemy3.gotoandstop(5);
_root.enemy3.health = _root.enemy3.health - 4;
_root.enemy3.hurt = true;
}
if ((((hitTest(_root.enemy4) && (_root.enemy4._currentframe != 3)) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (_root.enemy4.dead == false)) {
_root.enemy4.gotoandstop(5);
_root.enemy4.health = _root.enemy4.health - 4;
_root.enemy4.hurt = true;
}
if ((((hitTest(_root.enemy5) && (_root.enemy5._currentframe != 3)) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (_root.enemy5.dead == false)) {
_root.enemy5.gotoandstop(5);
_root.enemy5.health = _root.enemy5.health - 4;
_root.enemy5.hurt = true;
}
if ((((hitTest(_root.enemy6) && (_root.enemy6._currentframe != 3)) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (_root.enemy6.dead == false)) {
_root.enemy6.gotoandstop(5);
_root.enemy6.health = _root.enemy6.health - 4;
_root.enemy6.hurt = true;
}
}
_alpha = (_alpha - 12);
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 8
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Symbol 627 MovieClip Frame 14
removeMovieClip("");
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 15
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 50));
_yscale = _xscale;
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 15
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 50));
_yscale = _xscale;
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 15
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 50));
_yscale = _xscale;
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 15
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 50));
_yscale = _xscale;
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 627 MovieClip Frame 15
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 50));
_yscale = _xscale;
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 16
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 16
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 16
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 16
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 627 MovieClip Frame 16
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Symbol 641 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 1
stop();
Instance of Symbol 641 MovieClip "fist" in Symbol 649 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (_currentframe < 3)) {
if ((((hitTest(_root.enemy1.ene.head) && (_root.enemy1._currentframe != 3)) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (_root.enemy1.dead == false)) {
_root.enemy1.gotoandstop(5);
_root.enemy1.health = _root.enemy1.health - 1;
_root.enemy1.hurt = true;
} else if ((((hitTest(_root.enemy2.ene.head) && (_root.enemy12._currentframe != 3)) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (_root.enemy2.dead == false)) {
_root.enemy2.gotoandstop(5);
_root.enemy2.health = _root.enemy2.health - 1;
_root.enemy2.hurt = true;
} else if ((((hitTest(_root.enemy3.ene.head) && (_root.enemy3._currentframe != 3)) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (_root.enemy3.dead == false)) {
_root.enemy3.gotoandstop(5);
_root.enemy3.health = _root.enemy3.health - 1;
_root.enemy3.hurt = true;
} else if ((((hitTest(_root.enemy4.ene.head) && (_root.enemy4._currentframe != 3)) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (_root.enemy4.dead == false)) {
_root.enemy4.gotoandstop(5);
_root.enemy4.health = _root.enemy4.health - 1;
_root.enemy4.hurt = true;
} else if ((((hitTest(_root.enemy5.ene.head) && (_root.enemy5._currentframe != 3)) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (_root.enemy5.dead == false)) {
_root.enemy5.gotoandstop(5);
_root.enemy5.health = _root.enemy5.health - 1;
_root.enemy5.hurt = true;
} else if ((((hitTest(_root.enemy6.ene.head) && (_root.enemy6._currentframe != 3)) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (_root.enemy6.dead == false)) {
_root.enemy6.gotoandstop(5);
_root.enemy6.health = _root.enemy6.health - 1;
_root.enemy6.hurt = true;
}
}
}
Instance of Symbol 648 MovieClip "fist" in Symbol 649 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (_currentframe < 3)) {
if ((((hitTest(_root.enemy1.ene.head) && (_root.enemy1._currentframe != 3)) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (_root.enemy1.dead == false)) {
_root.enemy1.gotoandstop(5);
_root.enemy1.health = _root.enemy1.health - 1;
_root.enemy1.hurt = true;
} else if ((((hitTest(_root.enemy2.ene.head) && (_root.enemy12._currentframe != 3)) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (_root.enemy2.dead == false)) {
_root.enemy2.gotoandstop(5);
_root.enemy2.health = _root.enemy2.health - 1;
_root.enemy2.hurt = true;
} else if ((((hitTest(_root.enemy3.ene.head) && (_root.enemy3._currentframe != 3)) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (_root.enemy3.dead == false)) {
_root.enemy3.gotoandstop(5);
_root.enemy3.health = _root.enemy3.health - 1;
_root.enemy3.hurt = true;
} else if ((((hitTest(_root.enemy4.ene.head) && (_root.enemy4._currentframe != 3)) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (_root.enemy4.dead == false)) {
_root.enemy4.gotoandstop(5);
_root.enemy4.health = _root.enemy4.health - 1;
_root.enemy4.hurt = true;
} else if ((((hitTest(_root.enemy5.ene.head) && (_root.enemy5._currentframe != 3)) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (_root.enemy5.dead == false)) {
_root.enemy5.gotoandstop(5);
_root.enemy5.health = _root.enemy5.health - 1;
_root.enemy5.hurt = true;
} else if ((((hitTest(_root.enemy6.ene.head) && (_root.enemy6._currentframe != 3)) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (_root.enemy6.dead == false)) {
_root.enemy6.gotoandstop(5);
_root.enemy6.health = _root.enemy6.health - 1;
_root.enemy6.hurt = true;
}
}
}
Symbol 655 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 663 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 669 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 678 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 685 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 685 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 692 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 692 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 700 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 700 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 701 MovieClip Frame 1
stop();
Instance of Symbol 649 MovieClip in Symbol 701 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (mouseDown) {
if (_root.hand1.fist.fist._currentframe != 1) {
fist.play();
}
}
Instance of Symbol 655 MovieClip "gun" in Symbol 701 MovieClip Frame 5
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 663 MovieClip "gun" in Symbol 701 MovieClip Frame 6
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 669 MovieClip "gun" in Symbol 701 MovieClip Frame 7
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 678 MovieClip "gun" in Symbol 701 MovieClip Frame 11
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 685 MovieClip "gun" in Symbol 701 MovieClip Frame 12
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 692 MovieClip "gun" in Symbol 701 MovieClip Frame 13
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 700 MovieClip "gun" in Symbol 701 MovieClip Frame 21
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 91 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Instance of Symbol 91 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Instance of Symbol 134 MovieClip "head" in Symbol 704 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 91 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Instance of Symbol 91 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 706 MovieClip Frame 5
stop();
Symbol 706 MovieClip Frame 6
gotoAndStop (5);
Instance of Symbol 91 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 707 MovieClip Frame 24
gotoAndPlay (10);
Instance of Symbol 91 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 708 MovieClip Frame 34
gotoAndPlay (20);
Instance of Symbol 91 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 709 MovieClip Frame 7
_parent.hit = false;
_parent.gotoandstop(1);
Instance of Symbol 91 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 710 MovieClip Frame 7
_parent.hit = false;
_parent.gotoandstop(1);
Instance of Symbol 91 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 711 MovieClip Frame 35
gotoAndPlay (7);
Instance of Symbol 91 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 91 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.head);
}
Symbol 712 MovieClip Frame 38
gotoAndPlay (24);
Symbol 713 MovieClip Frame 1
stop();
Instance of Symbol 192 MovieClip "char" in Symbol 713 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 703 MovieClip "char" in Symbol 713 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 704 MovieClip "char" in Symbol 713 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 705 MovieClip "char" in Symbol 713 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 706 MovieClip "char" in Symbol 713 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 707 MovieClip "char" in Symbol 713 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 708 MovieClip "dj" in Symbol 713 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 709 MovieClip "char" in Symbol 713 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 710 MovieClip "char" in Symbol 713 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 711 MovieClip "char" in Symbol 713 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 712 MovieClip "dj" in Symbol 713 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Symbol 721 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 726 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 728 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 728 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 733 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 733 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 734 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 739 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 739 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 745 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 365 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 750 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 365 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 758 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 758 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 759 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 759 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 765 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 765 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 770 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 775 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 775 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 780 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 782 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 782 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 365 MovieClip in Symbol 782 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 590 MovieClip in Symbol 782 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Symbol 788 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 590 MovieClip in Symbol 788 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Symbol 793 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 199 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 590 MovieClip in Symbol 793 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Symbol 798 MovieClip Frame 1
stop();
Instance of Symbol 199 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 196 MovieClip in Symbol 798 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 805 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 805 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 806 MovieClip Frame 1
stop();
Instance of Symbol 649 MovieClip "fist" in Symbol 806 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (mouseDown) {
this.fist.play();
}
Instance of Symbol 206 MovieClip "gun" in Symbol 806 MovieClip Frame 2
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 721 MovieClip "gun" in Symbol 806 MovieClip Frame 3
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 726 MovieClip "gun" in Symbol 806 MovieClip Frame 4
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 728 MovieClip "gun" in Symbol 806 MovieClip Frame 5
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 733 MovieClip "gun" in Symbol 806 MovieClip Frame 6
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 734 MovieClip "gun" in Symbol 806 MovieClip Frame 7
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 739 MovieClip "gun" in Symbol 806 MovieClip Frame 8
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 745 MovieClip "gun" in Symbol 806 MovieClip Frame 9
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 750 MovieClip "gun" in Symbol 806 MovieClip Frame 10
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 758 MovieClip "gun" in Symbol 806 MovieClip Frame 11
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 759 MovieClip "gun" in Symbol 806 MovieClip Frame 12
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 765 MovieClip "gun" in Symbol 806 MovieClip Frame 13
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 770 MovieClip "gun" in Symbol 806 MovieClip Frame 14
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 775 MovieClip "gun" in Symbol 806 MovieClip Frame 15
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 780 MovieClip "gun" in Symbol 806 MovieClip Frame 16
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 782 MovieClip "gun" in Symbol 806 MovieClip Frame 17
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 788 MovieClip "gun" in Symbol 806 MovieClip Frame 18
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 793 MovieClip "gun" in Symbol 806 MovieClip Frame 19
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 798 MovieClip "gun" in Symbol 806 MovieClip Frame 20
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 805 MovieClip "gun" in Symbol 806 MovieClip Frame 21
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 833 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 833 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 833 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 833 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 191 MovieClip "head" in Symbol 833 MovieClip Frame 30
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 835 MovieClip Frame 1
stop();
Symbol 836 MovieClip Frame 1
stop();
Instance of Symbol 835 MovieClip in Symbol 836 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_parent.hand1._currentframe > 10)) {
play();
if (((_currentframe > 7) && (_currentframe < 11)) && (dmg != 1)) {
_root.character.health = _root.character.health - 1;
_root.character.hit = true;
_root.character.gotoandstop(8);
dmg = 1;
}
}
if (_currentframe == 1) {
dmg = 0;
}
}
Instance of Symbol 835 MovieClip "hand1" in Symbol 836 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
play();
if (((_currentframe > 7) && (_currentframe < 11)) && (dmg != 1)) {
_root.character.health = _root.character.health - 1;
_root.character.hit = true;
_root.character.gotoandstop(8);
dmg = 1;
}
}
if (_currentframe == 1) {
dmg = 0;
}
} else {
stop();
}
}
Instance of Symbol 206 MovieClip "gun" in Symbol 836 MovieClip Frame 2
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 721 MovieClip "gun" in Symbol 836 MovieClip Frame 3
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 726 MovieClip "gun" in Symbol 836 MovieClip Frame 4
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 739 MovieClip "gun" in Symbol 836 MovieClip Frame 5
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 745 MovieClip "gun" in Symbol 836 MovieClip Frame 6
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 750 MovieClip "gun" in Symbol 836 MovieClip Frame 7
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 770 MovieClip "gun" in Symbol 836 MovieClip Frame 8
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 775 MovieClip "gun" in Symbol 836 MovieClip Frame 9
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 780 MovieClip "gun" in Symbol 836 MovieClip Frame 10
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 782 MovieClip "gun" in Symbol 836 MovieClip Frame 11
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 788 MovieClip "gun" in Symbol 836 MovieClip Frame 12
onClipEvent (load) {
xStart = _x;
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 837 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 838 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 838 MovieClip Frame 5
stop();
Instance of Symbol 91 MovieClip "foot1" in Symbol 839 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 839 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 839 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 839 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 839 MovieClip Frame 24
gotoAndPlay (10);
Instance of Symbol 91 MovieClip "foot1" in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 840 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 840 MovieClip Frame 7
_parent.hurt = false;
_parent.gotoandstop(1);
Instance of Symbol 91 MovieClip "foot1" in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 841 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 841 MovieClip Frame 7
_parent.hurt = false;
_parent.gotoandstop(1);
Instance of Symbol 91 MovieClip "foot1" in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 842 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 842 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 842 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 842 MovieClip Frame 26
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 842 MovieClip Frame 26
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Symbol 842 MovieClip Frame 29
_parent.hurt = false;
_parent.gotoandstop(1);
Instance of Symbol 91 MovieClip "foot1" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 626 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (12);
} else if (chance == 2) {
gotoAndPlay (23);
} else if (chance == 3) {
gotoAndPlay (34);
} else {
gotoAndPlay (1);
}
_xscale = (-(random(50) + 100));
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 859 MovieClip in Symbol 870 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Symbol 870 MovieClip Frame 30
stop();
Instance of Symbol 91 MovieClip "foot1" in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 871 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 871 MovieClip Frame 24
stop();
Instance of Symbol 91 MovieClip "foot1" in Symbol 872 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 872 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 872 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 872 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 91 MovieClip "foot1" in Symbol 872 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 872 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Symbol 872 MovieClip Frame 17
stop();
Instance of Symbol 91 MovieClip "foot1" in Symbol 873 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 91 MovieClip "foot2" in Symbol 873 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 873 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 873 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 873 MovieClip Frame 25
stop();
Symbol 874 MovieClip Frame 1
stop();
Instance of Symbol 833 MovieClip "ene" in Symbol 874 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 836 MovieClip "hand" in Symbol 874 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.gun);
machineGun = new Array(0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1);
bulletType = new Array(0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
shellType = new Array(0, 0, 1, 1, 2, 1, 1, 1, 3, 3, 3, 4, 4);
recoil = new Array(0, 1, 30, 25, 30, 20, 20, 20, 20, 20, 20, 75, 25);
gunNum = _currentframe;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
myRadians = Math.atan2(_root.character._y - _parent._y, _root.character._x - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (_parent._xscale == 100) {
_rotation = myDegrees;
} else {
_rotation = (-myDegrees);
}
_xscale = _parent._xscale;
_yscale = _parent._xscale;
shootChance = random(60) + 1;
if (shootChance == 1) {
if (machineGun[gunNum] == 1) {
gun.play();
} else if (machineGun[gunNum] == 2) {
fire = true;
}
}
if (fire == true) {
gun.play();
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
if (gun._currentframe == 2) {
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.enemyDupX = gun.pointsOne.x;
_root.enemyDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.eneShellDupX = gun.pointsTwo.x;
_root.eneShellDupY = gun.pointsTwo.y;
_root.eneShellDupRot = _rotation + gun._rotation;
_root.eneScale = _parent._xscale;
_root.hand1.i++;
duplicateMovieClip ("_root.enemyShell", "shell" + _root.hand.i, _root.hand1.i);
_root.eneShellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
Instance of Symbol 837 MovieClip "ene" in Symbol 874 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 838 MovieClip "ene" in Symbol 874 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 839 MovieClip "ene" in Symbol 874 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 840 MovieClip "ene" in Symbol 874 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 841 MovieClip "ene" in Symbol 874 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 842 MovieClip "ene" in Symbol 874 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 836 MovieClip "hand" in Symbol 874 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_parent.gun);
machineGun = new Array(0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1);
bulletType = new Array(0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
shellType = new Array(0, 0, 1, 1, 2, 1, 1, 1, 3, 3, 3, 4, 4);
recoil = new Array(0, 1, 30, 25, 30, 20, 20, 20, 20, 20, 20, 75, 25);
gunNum = _currentframe;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
myRadians = Math.atan2(_root.character._y - _parent._y, _root.character._x - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (_parent._xscale == 100) {
_rotation = myDegrees;
} else {
_rotation = (-myDegrees);
}
_xscale = _parent._xscale;
_yscale = _parent._xscale;
shootChance = 50;
if (shootChance == 1) {
if (machineGun[gunNum] == 1) {
gun.play();
} else if (machineGun[gunNum] == 2) {
fire = true;
}
}
if (fire == true) {
gun.play();
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
if (gun._currentframe == 2) {
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.enemyDupX = gun.pointsOne.x;
_root.enemyDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.eneShellDupX = gun.pointsTwo.x;
_root.eneShellDupY = gun.pointsTwo.y;
_root.eneShellDupRot = _rotation + gun._rotation;
_root.eneScale = _parent._xscale;
_root.hand1.i++;
duplicateMovieClip ("_root.enemyShell", "shell" + _root.hand.i, _root.hand1.i);
_root.eneShellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
Instance of Symbol 870 MovieClip in Symbol 874 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_currentframe < 30)) {
play();
} else {
stop();
}
}
Instance of Symbol 871 MovieClip in Symbol 874 MovieClip Frame 9
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_currentframe < 24)) {
play();
} else {
stop();
}
}
Instance of Symbol 872 MovieClip in Symbol 874 MovieClip Frame 10
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_currentframe < 17)) {
play();
} else {
stop();
}
}
Instance of Symbol 873 MovieClip in Symbol 874 MovieClip Frame 11
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_currentframe < 25)) {
play();
} else {
stop();
}
}
Symbol 879 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 3
gotoAndStop (1);
Symbol 891 MovieClip Frame 5
gotoAndStop (1);
Symbol 891 MovieClip Frame 7
gotoAndStop (1);
Symbol 891 MovieClip Frame 9
gotoAndStop (1);
Symbol 891 MovieClip Frame 11
gotoAndStop (1);
Symbol 891 MovieClip Frame 13
gotoAndStop (1);
Symbol 891 MovieClip Frame 15
gotoAndStop (1);
Symbol 891 MovieClip Frame 17
gotoAndStop (1);
Symbol 891 MovieClip Frame 19
gotoAndStop (1);
Symbol 891 MovieClip Frame 21
gotoAndStop (1);
Symbol 891 MovieClip Frame 23
gotoAndStop (1);
Symbol 891 MovieClip Frame 25
gotoAndStop (1);
Symbol 891 MovieClip Frame 27
gotoAndStop (1);
Symbol 891 MovieClip Frame 29
gotoAndStop (1);
Symbol 891 MovieClip Frame 31
gotoAndStop (1);
Symbol 919 MovieClip Frame 14
stop();
Symbol 925 Button
on (release) {
_root.pause = false;
}
Symbol 930 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Symbol 935 Button
on (release) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "LOW";
}
}
Symbol 940 Button
on (release) {
sure.gotoandstop(2);
}
Symbol 944 Button
on (release) {
musicOff = false;
stopMusic._visible = true;
startMusic._visible = false;
if (_root._currentframe == 4) {
frame = 18;
} else if (_root._currentframe == 6) {
frame = 20;
} else if (_root._currentframe == 8) {
frame = 20;
} else if (_root._currentframe == 10) {
frame = 24;
} else if (_root._currentframe == 12) {
frame = 26;
} else if (_root._currentframe == 14) {
frame = 22;
}
_root.soundEffects.gotoandplay(frame);
}
Symbol 948 Button
on (release) {
stopAllSounds();
musicOff = true;
stopMusic._visible = false;
startMusic._visible = true;
}
Symbol 955 Button
on (release) {
_root.outfit = new Array(_root.head, _root.body, _root.foot);
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.playerName = _root.playerName;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
_root.pause = false;
stopAllSounds();
_root.gotoandstop(2);
}
Symbol 960 Button
on (release) {
gotoAndStop (1);
}
Symbol 961 MovieClip Frame 1
stop();
Symbol 969 Button
on (release) {
if (_root._currentframe == 4) {
if (_root.completeLevel < 1) {
_root.completeLevel = 1;
}
if (_root.ui.kill > _root.highScores[0]) {
_root.highScores[0] = _root.ui.kill;
}
} else if (_root._currentframe == 6) {
if (_root.completeLevel < 2) {
_root.completeLevel = 2;
}
if (_root.ui.kill > _root.highScores[1]) {
_root.highScores[1] = _root.ui.kill;
}
} else if (_root._currentframe == 8) {
if (_root.completeLevel < 3) {
_root.completeLevel = 3;
}
if (_root.ui.kill > _root.highScores[2]) {
_root.highScores[2] = _root.ui.kill;
}
} else if (_root._currentframe == 10) {
if (_root.completeLevel < 4) {
_root.completeLevel = 4;
}
if (_root.ui.kill > _root.highScores[3]) {
_root.highScores[3] = _root.ui.kill;
}
} else if (_root._currentframe == 12) {
if (_root.completeLevel < 5) {
_root.completeLevel = 5;
}
if (_root.ui.kill > _root.highScores[4]) {
_root.highScores[4] = _root.ui.kill;
}
} else if (_root._currentframe == 14) {
if (_root.completeLevel < 6) {
_root.completeLevel = 6;
}
_root.beaten = true;
if (_root.ui.kill > _root.highScores[5]) {
_root.highScores[5] = _root.ui.kill;
}
}
_root.haveGuns = _root.hand1.have;
_root.ammoCount = new Array(_root.ui.pistol, _root.ui.smg, _root.ui.magnum, _root.ui.rifle, _root.ui.shotgun);
_root.outfit = new Array(_root.head, _root.body, _root.foot);
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.completeLevel = _root.completeLevel;
mySharedObject.data.beaten = _root.beaten;
mySharedObject.data.ammoCount = _root.ammoCount;
mySharedObject.data.playerName = _root.playerName;
mySharedObject.data.haveGuns = _root.haveGuns;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.highScores = _root.highScores;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
_root.pause = false;
end = false;
_root.nextframe();
stopAllSounds();
gotoAndStop (1);
swapDepths(startDepth);
}
Symbol 977 Button
on (release) {
if ((_root.ui.kill > _root.highScores[6]) && (_root._currentframe == 16)) {
_root.highScores[6] = _root.ui.kill;
}
if ((_root.ui.kill > _root.highScores[7]) && (_root._currentframe == 17)) {
_root.highScores[7] = _root.ui.kill;
}
if ((_root.ui.kill > _root.highScores[8]) && (_root._currentframe == 18)) {
_root.highScores[8] = _root.ui.kill;
}
_root.haveGuns = _root.hand1.have;
_root.outfit = new Array(_root.head, _root.body, _root.foot);
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.haveGuns = _root.haveGuns;
mySharedObject.data.playerName = _root.playerName;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.highScores = _root.highScores;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
_root.pause = false;
end = false;
stopAllSounds();
_root.gotoandstop(2);
gotoAndStop (1);
swapDepths(startDepth);
}
Symbol 981 Button
on (release) {
if (done != true) {
if (_root._currentframe == 16) {
_root.submitOurScoreBean();
} else if (_root._currentframe == 17) {
_root.submitOurScoreZombie();
} else if (_root._currentframe == 18) {
_root.submitOurScoreSurvive();
}
done = true;
}
}
Symbol 985 Button
on (release) {
if (_root._currentframe == 16) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=53", "_BLANK");
} else if (_root._currentframe == 17) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=54", "_BLANK");
} else if (_root._currentframe == 18) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=52", "_BLANK");
}
}
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 2
if (musicOff == true) {
startMusic._visible = true;
stopMusic._visible = false;
} else {
startMusic._visible = false;
stopMusic._visible = true;
}
Instance of Symbol 919 MovieClip in Symbol 986 MovieClip Frame 2
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 986 MovieClip Frame 4
playerName = _root.playerName;
Symbol 991 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1003 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1003 MovieClip Frame 8
stop();
Symbol 1003 MovieClip Frame 17
stop();
Symbol 1003 MovieClip Frame 26
stop();
Symbol 1003 MovieClip Frame 35
stop();
Symbol 1003 MovieClip Frame 36
stopAllSounds();
_root._quality = _root.qual;
_root.nextFrame();
Symbol 1023 MovieClip Frame 1
stop();
Symbol 1136 MovieClip Frame 1
stop();
Symbol 1143 MovieClip Frame 1
stop();
Instance of Symbol 1134 MovieClip in Symbol 1143 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.card._visible = true;
_root.soundEffects.gotoandplay(14);
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 544 MovieClip in Symbol 1143 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.pause = true;
_root.pauseScreen.end = true;
_root.enemy1.removemovieclip("");
_root.enemy2.removemovieclip("");
_root.enemy3.removemovieclip("");
_root.enemy4.removemovieclip("");
_root.enemy5.removemovieclip("");
_root.enemy6.removemovieclip("");
}
}
Instance of Symbol 1136 MovieClip in Symbol 1143 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hand1.have[3] == 1) {
swapDepths(1);
removeMovieClip("");
}
if (hitTest(_root.character)) {
_root.hand1.have[3] = 1;
_root.hand1.gunNum = 3;
_root.ui.pistol = _root.ui.pistol + 50;
_root.soundEffects.gotoandplay(4);
swapDepths(1);
removeMovieClip("");
}
}
Symbol 1150 MovieClip Frame 1
stop();
Symbol 1150 MovieClip Frame 83
gotoAndStop (82);
Instance of Symbol 1150 MovieClip in Symbol 1151 MovieClip Frame 1
onClipEvent (load) {
_alpha = 200;
}
onClipEvent (enterFrame) {
if ((_root.card._visible == true) && (hitTest(_root.character))) {
play();
}
}
Instance of Symbol 366 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1170 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1170 MovieClip Frame 8
stop();
Symbol 1170 MovieClip Frame 17
stop();
Symbol 1170 MovieClip Frame 26
stop();
Symbol 1170 MovieClip Frame 35
stop();
Symbol 1170 MovieClip Frame 44
stop();
Symbol 1170 MovieClip Frame 53
stop();
Symbol 1170 MovieClip Frame 62
stop();
Symbol 1170 MovieClip Frame 71
stop();
Symbol 1170 MovieClip Frame 80
stop();
Symbol 1170 MovieClip Frame 81
stopAllSounds();
_root._quality = _root.qual;
_root.nextFrame();
_root.nextFrame();
Instance of Symbol 91 MovieClip in Symbol 1182 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.foot);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 91 MovieClip in Symbol 1182 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.foot);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.foot);
}
Instance of Symbol 134 MovieClip "body" in Symbol 1182 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.body);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.body);
}
Instance of Symbol 191 MovieClip "head" in Symbol 1182 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.head);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent.head);
}
Symbol 1195 MovieClip Frame 1
stop();
Instance of Symbol 1182 MovieClip "head" in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Symbol 1195 MovieClip Frame 11
stop();
Symbol 1197 MovieClip Frame 6
gotoAndStop (5);
Symbol 1198 MovieClip Frame 24
gotoAndPlay (6);
Symbol 1205 MovieClip Frame 6
stop();
Symbol 1206 MovieClip Frame 1
stopAllSounds();
Symbol 1206 MovieClip Frame 76
_root.ui.kill = _root.ui.kill + 1;
_x = 0;
_y = 0;
stop();
Instance of Symbol 544 MovieClip in Symbol 1206 MovieClip Frame 76
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.pause = true;
_root.pauseScreen.end = true;
_root.enemy1.removemovieclip("");
_root.enemy2.removemovieclip("");
_root.enemy3.removemovieclip("");
_root.enemy4.removemovieclip("");
_root.enemy5.removemovieclip("");
_root.enemy6.removemovieclip("");
}
}
Instance of Symbol 836 MovieClip "hand" in Symbol 1207 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent.gun);
machineGun = new Array(0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1);
bulletType = new Array(0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
shellType = new Array(0, 0, 1, 1, 2, 1, 1, 1, 3, 3, 3, 4, 4);
recoil = new Array(0, 1, 30, 25, 30, 20, 20, 20, 20, 20, 20, 75, 25);
gunNum = _currentframe;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
myRadians = Math.atan2(_root.character._y - _parent._y, _root.character._x - _parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
if (_parent._xscale == 100) {
_rotation = myDegrees;
} else {
_rotation = (-myDegrees);
}
_xscale = _parent._xscale;
_yscale = _parent._xscale;
shootChance = random(60) + 1;
if (shootChance == 1) {
if (machineGun[gunNum] == 1) {
gun.play();
} else if (machineGun[gunNum] == 2) {
fire = true;
}
}
if (fire == true) {
gun.play();
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
if (gun._currentframe == 2) {
gun.pointsOne = new Object();
gun.pointsOne.x = gun.barrel._x;
gun.pointsOne.y = gun.barrel._y;
localToGlobal(gun.pointsOne);
_root.enemyDupX = gun.pointsOne.x;
_root.enemyDupY = gun.pointsOne.y;
gun.pointsTwo = new Object();
gun.pointsTwo.x = gun.eject._x;
gun.pointsTwo.y = gun.eject._y;
localToGlobal(gun.pointsTwo);
_root.eneShellDupX = gun.pointsTwo.x;
_root.eneShellDupY = gun.pointsTwo.y;
_root.eneShellDupRot = _rotation + gun._rotation;
_root.eneScale = _parent._xscale;
_root.hand1.i++;
duplicateMovieClip ("_root.enemyShell", "shell" + _root.hand.i, _root.hand1.i);
_root.eneShellType = shellType[gunNum];
if (bulletType[gunNum] == 1) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
} else if (bulletType[gunNum] == 2) {
a = 0;
while (a < 6) {
_root.hand1.i++;
duplicateMovieClip ("_root.enemyBullet", "bullet" + _root.hand1.i, _root.hand1.i);
a++;
}
}
gun._rotation = gun._rotation - recoil[gunNum];
gun._x = gun._x - (recoil[gunNum] / 2);
}
if (gun._rotation < 0) {
gun._rotation = gun._rotation + 5;
}
if (gun._x < gun.xStart) {
gun._x = gun._x + 2.5;
}
}
}
Instance of Symbol 1196 MovieClip "ene" in Symbol 1207 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1197 MovieClip "ene" in Symbol 1207 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1198 MovieClip "ene" in Symbol 1207 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1199 MovieClip "ene" in Symbol 1207 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1206 MovieClip in Symbol 1207 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 366 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1213 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1213 MovieClip Frame 8
stop();
Symbol 1213 MovieClip Frame 17
stop();
Symbol 1213 MovieClip Frame 18
stopAllSounds();
_root._quality = _root.qual;
_root.nextFrame();
Symbol 1217 MovieClip Frame 1
stop();
Symbol 1308 MovieClip Frame 1
stop();
Symbol 1333 MovieClip Frame 1
stop();
Instance of Symbol 544 MovieClip in Symbol 1333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.character.gravity == 0)) {
_root.pause = true;
_root.pauseScreen.end = true;
_root.enemy1.removemovieclip("");
_root.enemy2.removemovieclip("");
_root.enemy3.removemovieclip("");
_root.enemy4.removemovieclip("");
_root.enemy5.removemovieclip("");
_root.enemy6.removemovieclip("");
}
}
Instance of Symbol 544 MovieClip in Symbol 1333 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((hitTest(_root.character) && (_root.character.gravity == 0)) && (done != true)) {
_root.pause = true;
_root.hand1.fire = false;
_root.hand2.fire = false;
_root.cutscene.play();
done = true;
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1308 MovieClip in Symbol 1333 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hand1.have[18] == 1) {
swapDepths(1);
removeMovieClip("");
}
if (hitTest(_root.character)) {
_root.hand1.have[18] = 1;
_root.hand1.gunNum = 18;
_root.ui.shotgun = _root.ui.shotgun + 50;
_root.soundEffects.gotoandplay(4);
swapDepths(1);
removeMovieClip("");
}
}
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 2
_root.qual = _root._quality;
_root._quality = "high";
swapDepths(510);
hand1.fire = false;
hand2.fire = false;
Instance of Symbol 366 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 371 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1343 MovieClip Frame 2
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1343 MovieClip Frame 9
stop();
Symbol 1343 MovieClip Frame 18
stop();
Symbol 1343 MovieClip Frame 27
stop();
Symbol 1343 MovieClip Frame 29
_root.pause = false;
_root._quality = _root.qual;
swapDepths(1);
removeMovieClip("");
Instance of Symbol 366 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1353 MovieClip Frame 8
stop();
Symbol 1353 MovieClip Frame 17
stop();
Instance of Symbol 366 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1353 MovieClip Frame 19
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1353 MovieClip Frame 26
stop();
Symbol 1353 MovieClip Frame 27
stopAllSounds();
_root._quality = _root.qual;
_root.nextFrame();
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1499 MovieClip Frame 1
stop();
Instance of Symbol 544 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.character.gravity == 0)) {
_root.pause = true;
_root.pauseScreen.end = true;
_root.enemy1.removemovieclip("");
_root.enemy2.removemovieclip("");
_root.enemy3.removemovieclip("");
_root.enemy4.removemovieclip("");
_root.enemy5.removemovieclip("");
_root.enemy6.removemovieclip("");
}
}
Instance of Symbol 1460 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hand1.have[15] == 1) {
swapDepths(1);
removeMovieClip("");
}
if (hitTest(_root.character)) {
_root.hand1.have[15] = 1;
_root.hand1.gunNum = 15;
_root.ui.rifle = _root.ui.rifle + 50;
_root.soundEffects.gotoandplay(4);
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 366 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1508 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1508 MovieClip Frame 8
stop();
Symbol 1508 MovieClip Frame 17
stop();
Symbol 1508 MovieClip Frame 26
stop();
Symbol 1508 MovieClip Frame 27
stopAllSounds();
_root._quality = _root.qual;
_root.nextFrame();
Instance of Symbol 1521 MovieClip in Symbol 1523 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 1535 MovieClip Frame 1
stop();
Instance of Symbol 603 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_alpha == 100) {
if ((((hitTest(_root.enemy1) && (_root.enemy1._currentframe != 3)) && (_root.enemy1._currentframe != 4)) && (_root.enemy1._currentframe != 7)) && (_root.enemy1.dead == false)) {
_root.enemy1.gotoandstop(5);
_root.enemy1.health = _root.enemy1.health - 4;
_root.enemy1.hurt = true;
}
if ((((hitTest(_root.enemy2) && (_root.enemy12._currentframe != 3)) && (_root.enemy2._currentframe != 4)) && (_root.enemy2._currentframe != 7)) && (_root.enemy2.dead == false)) {
_root.enemy2.gotoandstop(5);
_root.enemy2.health = _root.enemy2.health - 4;
_root.enemy2.hurt = true;
}
if ((((hitTest(_root.enemy3) && (_root.enemy3._currentframe != 3)) && (_root.enemy3._currentframe != 4)) && (_root.enemy3._currentframe != 7)) && (_root.enemy3.dead == false)) {
_root.enemy3.gotoandstop(5);
_root.enemy3.health = _root.enemy3.health - 4;
_root.enemy3.hurt = true;
}
if ((((hitTest(_root.enemy4) && (_root.enemy4._currentframe != 3)) && (_root.enemy4._currentframe != 4)) && (_root.enemy4._currentframe != 7)) && (_root.enemy4.dead == false)) {
_root.enemy4.gotoandstop(5);
_root.enemy4.health = _root.enemy4.health - 4;
_root.enemy4.hurt = true;
}
if ((((hitTest(_root.enemy5) && (_root.enemy5._currentframe != 3)) && (_root.enemy5._currentframe != 4)) && (_root.enemy5._currentframe != 7)) && (_root.enemy5.dead == false)) {
_root.enemy5.gotoandstop(5);
_root.enemy5.health = _root.enemy5.health - 4;
_root.enemy5.hurt = true;
}
if ((((hitTest(_root.enemy6) && (_root.enemy6._currentframe != 3)) && (_root.enemy6._currentframe != 4)) && (_root.enemy6._currentframe != 7)) && (_root.enemy6.dead == false)) {
_root.enemy6.gotoandstop(5);
_root.enemy6.health = _root.enemy6.health - 4;
_root.enemy6.hurt = true;
}
}
_alpha = (_alpha - 12);
_xscale = (_xscale + 10);
_yscale = (_yscale + 10);
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 600 MovieClip in Symbol 1555 MovieClip Frame 1
onClipEvent (load) {
_xscale = (-random(150));
_rotation = (-90 + random(180));
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1517 MovieClip in Symbol 1556 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (15);
}
Symbol 1556 MovieClip Frame 40
gotoAndPlay (1);
Instance of Symbol 1553 MovieClip in Symbol 1556 MovieClip Frame 76
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (hit != true)) {
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - 1;
hit = true;
}
}
Symbol 1556 MovieClip Frame 95
gotoAndPlay (1);
Symbol 1556 MovieClip Frame 122
gotoAndPlay (108);
Instance of Symbol 1553 MovieClip in Symbol 1556 MovieClip Frame 156
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (hit != true)) {
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - 1;
hit = true;
}
}
Symbol 1556 MovieClip Frame 177
gotoAndPlay (1);
Instance of Symbol 1517 MovieClip in Symbol 1556 MovieClip Frame 188
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (hit != true)) {
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - 1;
hit = true;
}
}
Instance of Symbol 1517 MovieClip in Symbol 1556 MovieClip Frame 196
onClipEvent (load) {
gotoAndPlay (15);
}
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (hit != true)) {
_root.character.hit = true;
_root.character.gotoandstop(8);
_root.character.health = _root.character.health - 1;
hit = true;
}
}
Symbol 1556 MovieClip Frame 202
gotoAndPlay (1);
Instance of Symbol 1517 MovieClip in Symbol 1556 MovieClip Frame 202
onClipEvent (load) {
gotoAndPlay (15);
}
Symbol 1556 MovieClip Frame 230
stop();
Symbol 1556 MovieClip Frame 231
gotoAndStop (230);
Symbol 1558 MovieClip Frame 1
stop();
Instance of Symbol 1556 MovieClip "enemy" in Symbol 1558 MovieClip Frame 1
onClipEvent (load) {
speed = 25;
if (_root.beaten == false) {
health = 300;
} else {
health = 600;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
if (health > 0) {
attack = random(200);
if ((attack == 1) && (_currentframe < 41)) {
gotoAndPlay (41);
}
if ((attack == 35) && (_currentframe < 41)) {
gotoAndPlay (123);
}
if (hitArea.hitTest(_root.character) && (_currentframe < 41)) {
gotoAndPlay (178);
}
if ((attack == 70) && (_currentframe < 41)) {
gotoAndPlay (96);
if (_xscale == 100) {
runRight = false;
runLeft = true;
} else {
runLeft = false;
runRight = true;
}
}
if (runLeft == true) {
if (_x >= -385) {
_x = (_x - speed);
} else {
_x = -385;
}
}
if (runRight == true) {
if (_x <= 1645) {
_x = (_x + speed);
} else {
_x = 1645;
}
}
if ((_x <= -385) && (runLeft == true)) {
gotoAndPlay (1);
_xscale = (_xscale * -1);
runLeft = false;
}
if ((_x >= 1644) && (runRight == true)) {
gotoAndPlay (1);
_xscale = (_xscale * -1);
runRight = false;
}
} else if (_currentframe < 203) {
gotoAndPlay (203);
}
} else {
stop();
}
}
Instance of Symbol 366 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
head = _root.head;
body = _root.body;
foot = _root.foot;
}
Instance of Symbol 369 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
head = 34;
body = 9;
foot = 1;
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 371 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < -130) {
speed = random(5) + 1;
_y = -25;
}
}
Instance of Symbol 373 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Instance of Symbol 373 MovieClip in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
speed = random(5) + 1;
}
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
_y = (_y - speed);
if (_y < 60) {
speed = random(5) + 1;
_y = 164;
}
}
Symbol 1575 MovieClip Frame 8
stop();
Symbol 1575 MovieClip Frame 17
stop();
Symbol 1575 MovieClip Frame 26
stop();
Symbol 1575 MovieClip Frame 35
stop();
Symbol 1575 MovieClip Frame 44
stop();
Symbol 1575 MovieClip Frame 150
stopAllSounds();
_root._quality = _root.qual;
_root.gotoandstop(2);
Symbol 1579 MovieClip Frame 1
stop();
Symbol 1595 MovieClip Frame 1
stop();
Instance of Symbol 1595 MovieClip in Symbol 1610 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1610 MovieClip Frame 8
if (hitTest(_root.character)) {
_root.character.health = _root.character.health - 1;
_root.character.hit = true;
_root.character.gotoandstop(9);
}
Symbol 1610 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1610 MovieClip Frame 29
stop();
Symbol 1610 MovieClip Frame 43
stop();
Symbol 1610 MovieClip Frame 46
stop();
Symbol 1610 MovieClip Frame 47
gotoAndPlay (11);
Symbol 1613 MovieClip Frame 1
stop();
Instance of Symbol 1595 MovieClip in Symbol 1619 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1619 MovieClip Frame 10
gotoAndPlay (6);
Instance of Symbol 1595 MovieClip in Symbol 1624 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1624 MovieClip Frame 12
gotoAndPlay (8);
Instance of Symbol 1610 MovieClip "bean" in Symbol 1628 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1619 MovieClip "bean" in Symbol 1628 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1624 MovieClip "bean" in Symbol 1628 MovieClip Frame 3
onClipEvent (load) {
rot = random(20) + 1;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_rotation = (_rotation + rot);
play();
} else {
stop();
}
}
Instance of Symbol 1626 MovieClip in Symbol 1628 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - 12);
_rotation = (_rotation + 1);
if (_alpha < 0) {
_root.ui.kill = _root.ui.kill + 1;
_parent.removemovieclip("");
}
}
}
Symbol 1636 MovieClip Frame 61
swapDepths(1);
removeMovieClip("");
Symbol 1647 Button
on (release) {
_root.outfit = new Array(_root.head, _root.body, _root.foot);
_root.saveFile = true;
mySharedObject = SharedObject.getLocal("userData");
mySharedObject.data.playerName = _root.playerName;
mySharedObject.data.outfit = _root.outfit;
mySharedObject.data.saveFile = _root.saveFile;
mySharedObject.data.quality = _root._quality;
mySharedObject.flush();
stopAllSounds();
_root.gotoandstop(2);
}
Symbol 1648 MovieClip Frame 34
stop();