Frame 1
stop();
Instance of Symbol 40 MovieClip in Frame 1
onClipEvent (load) {
if (_root.initialize != true) {
_root.initialize = true;
} else {
gotoAndStop (3);
}
}
Frame 2
stop();
gotoFrame = false;
frame = _currentframe;
q = 0;
story = 1;
enemies = [guard1];
messages = [[guard1, "Hey, you in there. Mr. Rhodes says that we're having some problems with our recording equipment, so we're waiting for a bit.\n(press space to cycle chat windows)"], [man, "...ugh...my shoulder..."], [guard1, "Well, I hope you enjoy your stay...Take a nice walk around your cell, I'm sure you'll find it real nice.\n\n(Use W, S, A, and D to move)"], [man, "Asshole..."], [guard1, "(If text doesn't fit in one window, use the up and down arrow keys to scroll.)\n\nWell, I think we're gonna be here a while. There was some kind of power failure in the building. We're still trying to figure out what's wrong."], [guard1, "*RING*\n\nHello? Oh, hello Mr. Rhodes. Yes? Alright. Yes."], [man, "Well, maybe there's something I can use in here...Better start looking quick.\n\n(Walk around your cell.)"]];
cMessage = messages[0][1];
speech.reset();
finishSpeech = false;
_root.onEnterFrame = function () {
if (((man.health <= 0) && (man.health != undefined)) && (deathscreen._currentframe == 1)) {
deathscreen.play();
}
if (man.arms._currentframe == 1) {
ammo = "Infinite";
}
if (man.arms._currentframe == 2) {
ammo = man.ammo[1];
}
if (man.arms._currentframe == 3) {
ammo = man.ammo[2];
}
if (gotoFrame != true) {
if (init == "continue") {
if (room == 8) {
gotoAndStop (8);
man._x = 275;
man._y = 375;
story = 14;
messages = [[man, "Okay, so the guys said that I can't take my pistol in here, in case I have to go through any security. But how the hell can I shut down an entire company?\n\nDamnit! I don't even know where my office is."]];
man.attack = false;
man.ammo[1] = 0;
man.arms.gotoAndStop(1);
}
if (room == 11) {
gotoAndStop (11);
man._x = 525;
man.attack = false;
story = 19;
messages = [[man, "Yes! This is my office! It's just as boring as I remember it being.\n\nOkay, so now that I'm here, what can I do?"]];
}
if (room == 16) {
gotoAndStop (16);
story = 31;
messages = [[man, "The jeep?"]];
}
}
gotoFrame = true;
}
if (finishSpeech == true) {
finishSpeech = false;
if (story == 1) {
story = 2;
}
if (story == 3) {
man.attack = true;
guard1.attack = true;
story = 4;
messages = [[man, "Damn!\n\n(Click to punch. Hold E to block.)"]];
speech.reset();
}
if (story == 13) {
nextFrame();
story = 14;
messages = [[man, "Okay, so the guys said that I can't take my pistol in here, in case I have to go through any security. But how the hell can I shut down an entire company?\n\nDamnit! I don't even know where my office is."]];
man.attack = false;
man.ammo[1] = 0;
man.arms.gotoAndStop(1);
speech.reset();
}
if (story == 16.5) {
story = 17;
}
if (story == 16) {
guy.play();
story = 16.5;
messages = [[man, "Have a nice day."], [man, "Alright, so I still have to think of a way to shut down this company in one fell swoop. But how am I ever going to pull that off?"], [man, "I can't really bomb the place, so that's out of the question.\n\nI'll just have to keep thinking."], [man, "Alright, here we are-top floor."]];
speech.reset();
}
if (story == 20) {
story = 21;
}
if (story == 26) {
story = 27;
man.attack = true;
}
if (story == 29) {
story = 30;
}
if (story == "finale") {
nextFrame();
}
}
if ((story == 2) && (man._y < 50)) {
guard1.ytar = 255;
guard1.xtar = 75;
guard1.target = man;
walls.door.play();
messages = [[guard1, "Turns out there's been a change of plans, pal."], [man, "What's going on?"], [guard1, "Rhodes has decided that the speech isn't going to be happening any time soon."], [guard1, "So I get to kill you instead."]];
speech.reset();
story = 3;
}
if ((story == 4) && (guard1.health <= 0)) {
story = 5;
messages = [[man, "Ha! Rhodes is still underestimating me. Why the hell would he send someone to kill me if they didn't even have a gun?\nHmmm...Yes! He's got the key to my cell.\nWait...This guy DOES have a gun...why didn't he use it?\n\nOh. It's out of ammo. What's going on here?"]];
speech.reset();
walls.door._visible = false;
door.gotoAndStop(2);
}
if ((story == 5) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
story = 6;
man._x = 15;
man.rise = (man.run = 0);
}
if ((story == 6) && (man._y < 195)) {
messages = [[man, "Jesus! What happened here? Looks like I just missed the fight."], [dyingMan, "You...Who are you?"], [man, "I'm Jason Greene."], [dyingMan, "Jason...Jason Greene. We came here to save you. We were so close...We came in here...there were three of them, and three of us. We got two of theirs...they got all of us...that one went into your cell's room."], [man, "He must have used all his ammo out here...So he didn't have any when he got to me."], [dyingMan, "Yes...it looks like we may have succeeded after all..."], [man, "But...Why would anyone want to save me? I've done so many horrible things to so many people..."], [dyingMan, "We were told that you couldn't remember what had happened...I can see now...that this is true. There is another squad...look for them...they might still have some alive."], [man, "What don't I know?\n\nSir?\n\nDamnit! He's died on me."]];
speech.reset();
story = 7;
}
if ((story == 7) && (man.hitTest(exit))) {
doorSound.play();
nextFrame();
story = 8;
man._x = 15;
man.rise = (man.run = 0);
}
if (((story == 8) && (man.ammo[1] != 0)) && (sentAmmoMessage != true)) {
sentAmmoMessage = true;
messages = [[man, "Ammo...It's about time.\n\n(Use the left and right arrow keys to switch weapons, and click to fire.)"]];
speech.reset();
}
if ((story == 8) && (bodyCount == 3)) {
messages = [[man, "This is just like before...At least I have the lights on this time. I've got to find out what that man was talking about-Maybe I'm not as bad as I've been told."]];
speech.reset();
story = 10;
}
if ((story == 10) && (man.hitTest(exit))) {
doorSound.play();
nextFrame();
story = 11;
man._x = 15;
man.rise = (man.run = 0);
messages = [[guard1, "There he is! Shoot him!"]];
speech.reset();
}
if ((story == 11) && (man.hitTest(exit))) {
story = 12;
nextFrame();
doorSound.play();
man._x = 15;
man.rise = (man.run = 0);
messages = [[jeep, "Mr. Greene! Get in! We're getting you out of this hellhole!"], [man, "It's about time you showed up!"], [jeep, "Get in the back and we'll get going."]];
speech.reset();
man.attack = false;
}
if ((story == 12) && (man.hitTest(exit))) {
story = 13;
nextFrame();
messages = [[man, "Alright, I want some answers. For starters, just where the hell are we?"], [jeep, "We're in Colorado. Rhodes wasn't lying before-That building was used for testing of Reverb's product."], [man, "Okay. But what was the product? I don't even know what my company was creating."], [jeep, "We called it \"Divilous.\" It meant \"Like a God.\" It was a mind control serum. We program a computer with information-commands, memories, anything. Our machines would make a fluid that altered the mind so that the target would do exactly what we told them."], [man, "That's...that's unbelieveable! But why did we have to test on humans?"], [jeep, "Because we don't understand an animal's brain well enough to make the chemicals suited to them. The product was intended for humans, so it was tested on humans."], [man, "And human testing is frowned upon, so we couldn't test in the open. Correct?"], [jeep, "No. The thought of this product itself was frowned upon. We were developing it for the military."], [man, "To use on our soldiers?"], [jeep, "Yes. We could make a chemical so that not one person in our army would fear the enemy, mourn for the dead, or doubt the cause. An team without emotion is a team without loss."], [man, "Hmm, I can see why we weren't so popular."], [jeep, "Exactly. Even you started to think that it was a bad idea to keep making this product. So we made a serum for you. It was supposed to make you want to continue production."], [jeep, "And it worked, for a while. But then, the product failed. Something happened that we hadn't seen before. Its effects wore off, and you immediately forgot the last 2 years of your life."], [man, "That's why I couldn't remember anything? And who were those people that attacked me?"], [jeep, "Most of them were guards for the company, trying to stop your escape. A few of them, however, were Divilous test subjects. The side effects that you went through became more common as we continued testing. Some forgot their entire existence, some went insane. You were lucky."], [man, "So where are we headed?"], [jeep, "We're headed to Denver. That's where Reverb is based."], [man, "What? Why are we going there?"], [jeep, "Because you're going to shut down the company."], [man, "Aren't they looking for me? I won't make it two steps in there!"], [jeep, "No, they don't know of what happened in that building. They still think that you are the figure of authority."], [man, "So how do I shut down an entire company?"], [jeep, "That's up to you to figure out."]];
speech.reset();
}
if ((story == 14) && (man.hitTest(talktodesk))) {
messages = [[desker, "Hello, sir. How may I help you?\n\nOh! Good afternoon, Mr. Greene. Back from your vacation already?"], [man, "Uh, yeah, I decided to get back to work; don't want to fall behind, now, do we?"], [desker, "No sir!"], [man, "That's the spirit! Tell your manager that I'm giving you a raise."], [desker, "Thank you very much, sir!"], [man, "(So far, so good.\n\nNow then, to find my office. It's probably on the top floor, knowing me.)"]];
speech.reset();
story = 15;
}
if ((story == 15) && (man.hitTest(exit))) {
story = 16;
nextFrame();
man._x = 215;
man.rise = (man.run = 0);
}
if ((story == 17) && (man.hitTest(walls.exit))) {
nextFrame();
story = 18;
man._x = 535;
man.rise = (man.run = 0);
messages = [[man, "Alright, well, this looks familiar. That's a good sign, I suppose."]];
speech.reset();
}
if ((story == 18) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
story = 19;
man._x = 535;
man.rise = (man.run = 0);
messages = [[man, "Yes! This is my office! It's just as boring as I remember it being.\n\nOkay, so now that I'm here, what can I do?"]];
speech.reset();
}
if ((story == 19) && (man.hitTest(getshotgun))) {
man.ammo[2] = 30;
story = 20;
messages = [[man, "There's a message on my computer...\n\nIt says \"My name is Jason Greene, and I am going to shut down Reverb Incorporated.\"\nHmm, I must have left this for myself before they gave me the dose of Divilous."], [man, "Okay...well, I still don't have any method of doing that...Well, I'll have to improvise a little."], [man, "Hmm, there's something under my desk...\n\n...A shotgun...? I'd better not waste any ammo just yet."], [man, "What's this? There's a note here, too.\n\n\"Jason, you truly interest me. You want to shut your own company down, now? Well, seeing as we both have the same goal, I'll handle that for you. However...This does not make us allies. You still owe a debt to those that were tested upon. Here's my offer. You can come and find me-I'm up here on this floor with you. Whether you succeed or not, I can guarantee that Reverb will be through. -rhodes"]];
speech.reset();
}
if ((story == 21) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
man._x = 535;
man._y = 200;
story = 22;
man.rise = (man.run = 0);
}
if ((story == 22) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
man._x = 535;
man._y = 200;
story = 23;
man.rise = (man.run = 0);
}
if ((story == 23) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
man._x = 535;
story = 24;
}
if ((story == 24) && (man.hitTest(thebox))) {
puzzlebox._x = 0;
thebox._visible = false;
story = 25;
}
if ((story == 25) && (man.hitTest(exit))) {
nextFrame();
doorSound.play();
story = 26;
messages = [[man, "Rhodes!"], [rhodes, "Hello, Jason. Congratulations on a job well done, so far. However, you don't have much left to do here."], [man, "I'll kill you, Rhodes, just you wait."], [rhodes, "You seem a bit aggressive today! Well, so be it. Let's play."]];
speech.reset();
}
if (story == 28) {
story = 29;
messages = [[man, "It's about time someone killed you, you bastard."], [_root, "Jason! Fantastic work. Always a fighter, eh? You've just got that fighting spirit, is all!"], [man, "What the hell? Rhodes, is that you?"], [_root, "And a sharp one! My, you're very well rounded, aren't you? It's no wonder you're holding such high authority in Reverb Incorporated."], [man, "Where the hell are you, Rhodes?!"], [_root, "Intercom again, Jason. I have a quick question for you. Doesn't this all seem a little strange to you? None of this seems even a little odd?"], [man, "Well, yeah, but I'm just dealing with it. What else am I supposed to do?"], [_root, "Just a quick question, that's all. Oh, also-Good luck, Jason."], [man, "Good luck? Good luck for what?"]];
speech.reset();
}
if ((story == 30) && (man.hitTest(exit))) {
story = 31;
nextFrame();
doorSound.play();
messages = [[man, "The jeep?"]];
speech.reset();
man._x = 530;
}
if ((story == 31) && (man.hitTest(exit))) {
nextFrame();
story = 32;
}
if (_currentframe != frame) {
frame = _currentframe;
trans._alpha = 100;
}
};
Instance of Symbol 94 MovieClip "man" in Frame 2
onClipEvent (load) {
weapon = 0;
ammo = ["inf", 0, 0];
dead = false;
hitF = false;
hitRight = false;
hitLeft = false;
attack = false;
health = 15;
rise = (run = 0);
decay = 0.7;
moving = false;
h = (w = 20);
clicking = new Object();
clicking.onMouseDown = function () {
if (attack == true) {
if (arms._currentframe == 1) {
if (arms.weapon._currentframe == 1) {
arms.weapon.play();
}
if ((arms.weapon._currentframe >= 13) && (arms.weapon._currentframe <= 18)) {
arms.weapon.gotoAndPlay(26);
}
}
if (arms._currentframe == 2) {
if (ammo[1] > 0) {
ammo[1]--;
arms.weapon.gotoAndPlay(2);
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1.5;
rot = (arms._rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
}
}
if ((arms._currentframe == 3) && (arms.weapon._currentframe == 1)) {
if (ammo[2] > 0) {
ammo[2]--;
arms.weapon.gotoAndPlay(2);
rot = (arms._rotation * Math.PI) / 180;
x = _x;
y = _y;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation + 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation - 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
j = 0;
while (j < 4) {
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
dx = Math.cos((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
dy = Math.sin((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 5);
y = y + (dy * 5);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1.5;
rot = (arms._rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
j++;
}
}
}
}
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39) && (hitRight == false)) {
hitRight = true;
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
while (ammo[weapon] == 0) {
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(39)) {
hitRight = false;
}
if (Key.isDown(37) && (hitLeft == false)) {
hitLeft = true;
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
while (ammo[weapon] == 0) {
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(37)) {
hitLeft = false;
}
if ((arms._currentframe == 1) && ((arms.weapon._currentframe == 10) || (arms.weapon._currentframe == 30))) {
for (i in _root.enemies) {
dx = _root.enemies[i]._x - _x;
dy = _root.enemies[i]._y - _y;
rot = Math.atan2(dy, dx);
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 40) {
if (_root.enemies[i].hitTest(arms.weapon.hit)) {
_root.punch.play();
_root.enemies[i].health--;
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
}
}
}
}
if (arms._currentframe == 2) {
}
moving = false;
if (Key.isDown(65)) {
run = run - 0.8;
moving = true;
}
if (Key.isDown(68)) {
run = run + 0.8;
moving = true;
}
if (Key.isDown(87)) {
rise = rise - 0.8;
moving = true;
}
if (Key.isDown(83)) {
rise = rise + 0.8;
moving = true;
}
_x = (_x + run);
if (run > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x - 0.3);
}
}
}
} else if (run < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x + 0.3);
}
}
}
}
_y = (_y + rise);
if (rise > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y - 0.3);
}
}
}
} else if (rise < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y + 0.3);
}
}
}
}
run = run * decay;
rise = rise * decay;
if (Math.abs(run) < 0.1) {
run = 0;
}
if (Math.abs(rise) < 0.1) {
rise = 0;
}
if ((_x - (w / 2)) < 0) {
_x = (w / 2);
}
if ((_x + (w / 2)) > 550) {
_x = (550 - (w / 2));
}
if ((_y - (h / 2)) < 0) {
_y = (h / 2);
}
if ((_y + (h / 2)) > 400) {
_y = (400 - (h / 2));
}
legs._rotation = (Math.atan2(rise, run) * 180) / Math.PI;
if (moving == true) {
legs.play();
}
if (moving == false) {
if ((legs._currentframe == 6) || (legs._currentframe == 16)) {
legs.stop();
}
}
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
arms._rotation = (Math.atan2(dy, dx) * 180) / Math.PI;
if (attack == true) {
if ((arms.weapon._currentframe == 1) && (Key.isDown(69))) {
arms.weapon.gotoAndStop(43);
}
}
if ((arms.weapon._currentframe == 43) && (!Key.isDown(69))) {
arms.weapon.gotoAndStop(1);
}
} else {
_visible = false;
Mouse.removeListener(clicking);
}
}
Instance of Symbol 119 MovieClip "guard1" in Frame 2
onClipEvent (load) {
color = 255;
xtar = (ytar = (target = undefined));
attack = false;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
}
Instance of Symbol 121 MovieClip "door" in Frame 2
onClipEvent (enterFrame) {
if (_currentframe == 2) {
if (((_root.man._y > 230) && (_root.man._x > 135)) && (_rotation == 0)) {
rot = -180;
}
if (rot != undefined) {
_rotation = (_rotation + ((rot - _rotation) / 8));
}
}
}
Instance of Symbol 132 MovieClip in Frame 2
onClipEvent (load) {
count = 0;
_root.cMessage = _root.messages[0][1];
hitSpace = false;
}
onClipEvent (enterFrame) {
count++;
oM = _root.cMessage;
_root.cMessage = _root.messages[0][1];
if (_root.cMessage != oM) {
count = 0;
}
if (count > 10) {
_x = _root.messages[0][0]._x;
_y = _root.messages[0][0]._y;
} else {
_x = -1000;
}
if ((_x + _width) > 550) {
if ((_y - 120) > 0) {
gotoAndStop (2);
} else {
gotoAndStop (4);
}
} else if ((_y - 120) < 0) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
if (_currentframe <= 2) {
minY = -131;
} else {
minY = 47;
}
if (Key.isDown(32) && (hitSpace == false)) {
hitSpace = true;
_root.messages.splice(0, 1);
scroller._y = minY;
if (_root.messages.length == 0) {
_root.finishSpeech = true;
}
}
if (Key.isDown(32) == false) {
hitSpace = false;
}
if (Key.isDown(38)) {
if (scroller._y < minY) {
scroller._y = scroller._y + 2;
}
}
if (Key.isDown(40)) {
if (scroller._y > ((minY - scroller.textbox.textHeight) + 80)) {
scroller._y = scroller._y - 2;
}
}
}
Instance of Symbol 192 MovieClip "trans" in Frame 2
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Frame 4
enemies = [guard1, guard2, guard3];
bodyCount = 0;
Instance of Symbol 119 MovieClip "guard1" in Frame 4
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Instance of Symbol 119 MovieClip "guard3" in Frame 4
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Instance of Symbol 119 MovieClip "guard2" in Frame 4
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Instance of Symbol 198 MovieClip "mag1" in Frame 4
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.man.body.hitTest(this)) {
_root.man.ammo[1] = _root.man.ammo[1] + 20;
_x = -1000;
}
}
Frame 5
enemies = [guard1, guard2, guard3];
Instance of Symbol 198 MovieClip "mag1" in Frame 5
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_root.man.body.hitTest(this)) {
_root.man.ammo[1] = _root.man.ammo[1] + 20;
_x = -1000;
}
}
Instance of Symbol 201 MovieClip "guard1" in Frame 5
onClipEvent (load) {
count = 0;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 201 MovieClip "guard2" in Frame 5
onClipEvent (load) {
count = 0;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 201 MovieClip "guard3" in Frame 5
onClipEvent (load) {
count = 0;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 204 MovieClip "jeep" in Frame 7
onClipEvent (load) {
x = _x;
y = _y;
rise = (run = 0);
}
onClipEvent (enterFrame) {
rise = rise + ((random(10) / 10) - 0.5);
run = run + ((random(10) / 10) - 0.5);
_x = (_x + run);
_y = (_y + rise);
if (_x > (x + 10)) {
_x = (x + 10);
run = -0.6 * run;
}
if (_x < (x - 10)) {
_x = (x - 10);
run = -0.6 * run;
}
if (_y > (y + 10)) {
_y = (y + 10);
rise = -0.6 * rise;
}
if (_y < (y - 10)) {
_y = (y - 10);
rise = -0.6 * rise;
}
_root.man._x = _x + 20;
_root.man._y = _y + 60;
_root.man.legs.gotoAndStop(6);
}
Frame 8
room = 8;
Frame 11
room = 11;
Frame 12
enemies = [guard1, guard2, guard3];
man.attack = true;
Instance of Symbol 119 MovieClip "guard1" in Frame 12
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Instance of Symbol 119 MovieClip "guard2" in Frame 12
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Instance of Symbol 119 MovieClip "guard3" in Frame 12
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
_root.bodyCount++;
}
}
Frame 13
enemies = [guard1, guard2, guard3, guard4, guard5, guard6];
Instance of Symbol 119 MovieClip "guard1" in Frame 13
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
}
}
Instance of Symbol 119 MovieClip "guard2" in Frame 13
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
}
}
Instance of Symbol 119 MovieClip "guard3" in Frame 13
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = true;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
_root.punch.play();
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (dead != true)) {
dead = true;
}
}
Instance of Symbol 201 MovieClip "guard5" in Frame 13
onClipEvent (load) {
count = 40;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 201 MovieClip "guard6" in Frame 13
onClipEvent (load) {
count = 40;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 201 MovieClip "guard4" in Frame 13
onClipEvent (load) {
count = 40;
x1 = (y1 = 0);
color = 255;
health = 7;
shoot = true;
}
onClipEvent (enterFrame) {
count++;
if ((((shoot == true) && (_root.man.health > 0)) && (count > 60)) && (_x > 0)) {
x1 = x1 + ((_root.man._x - x1) / 10);
y1 = y1 + ((_root.man._y - y1) / 10);
rot = ((_rotation + 90) * Math.PI) / 180;
x2 = Math.cos(rot) * 10;
y2 = Math.sin(rot) * 10;
_rotation = ((Math.atan2(y1 - (_y + y2), x1 - (_x + x2)) * 180) / Math.PI);
if (random(30) == 0) {
x = _x;
y = _y;
rot = (_rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((_rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
i = 0;
while (i < 1) {
if (_root.man.hitTest(x, y, true)) {
_root.man.health = _root.man.health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1.5;
rot = (_rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
shoot = false;
}
go = false;
}
i++;
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _x;
_root["muzzleflash" + _root.q]._y = _y;
_root["muzzleflash" + _root.q]._rotation = _rotation;
_root.q++;
}
}
}
Instance of Symbol 94 MovieClip "man" in Frame 14
onClipEvent (load) {
weapon = 0;
ammo = ["inf", 0, 0];
dead = false;
hitF = false;
hitRight = false;
hitLeft = false;
attack = true;
health = 15;
rise = (run = 0);
decay = 0.7;
moving = false;
h = (w = 20);
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39) && (hitRight == false)) {
hitRight = true;
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
while (ammo[weapon] == 0) {
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(39)) {
hitRight = false;
}
if (Key.isDown(37) && (hitLeft == false)) {
hitLeft = true;
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
while (ammo[weapon] == 0) {
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(37)) {
hitLeft = false;
}
if ((arms._currentframe == 1) && ((arms.weapon._currentframe == 10) || (arms.weapon._currentframe == 30))) {
for (i in _root.enemies) {
dx = _root.enemies[i]._x - _x;
dy = _root.enemies[i]._y - _y;
rot = Math.atan2(dy, dx);
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 40) {
if (_root.enemies[i].hitTest(arms.weapon.hit)) {
_root.enemies[i].health--;
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
}
}
}
}
moving = false;
if (Key.isDown(65)) {
run = run - 0.8;
moving = true;
}
if (Key.isDown(68)) {
run = run + 0.8;
moving = true;
}
if (Key.isDown(87)) {
rise = rise - 0.8;
moving = true;
}
if (Key.isDown(83)) {
rise = rise + 0.8;
moving = true;
}
_x = (_x + run);
if (run > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x - 0.3);
}
}
}
} else if (run < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x + 0.3);
}
}
}
}
_y = (_y + rise);
if (rise > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y - 0.3);
}
}
}
} else if (rise < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y + 0.3);
}
}
}
}
run = run * decay;
rise = rise * decay;
if (Math.abs(run) < 0.1) {
run = 0;
}
if (Math.abs(rise) < 0.1) {
rise = 0;
}
if ((_x - (w / 2)) < 0) {
_x = (w / 2);
}
if ((_x + (w / 2)) > 550) {
_x = (550 - (w / 2));
}
if ((_y - (h / 2)) < 0) {
_y = (h / 2);
}
if ((_y + (h / 2)) > 400) {
_y = (400 - (h / 2));
}
legs._rotation = (Math.atan2(rise, run) * 180) / Math.PI;
if (moving == true) {
legs.play();
}
if (moving == false) {
if ((legs._currentframe == 6) || (legs._currentframe == 16)) {
legs.stop();
}
}
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
arms._rotation = (Math.atan2(dy, dx) * 180) / Math.PI;
if (attack == true) {
if ((arms.weapon._currentframe == 1) && (Key.isDown(69))) {
arms.weapon.gotoAndStop(43);
}
}
if ((arms.weapon._currentframe == 43) && (!Key.isDown(69))) {
arms.weapon.gotoAndStop(1);
}
} else {
_visible = false;
Mouse.removeListener(clicking);
}
}
Frame 15
enemies = [rhodes];
Instance of Symbol 94 MovieClip "man" in Frame 15
onClipEvent (load) {
weapon = 0;
ammo = ["inf", 0, 5];
dead = false;
hitF = false;
hitRight = false;
hitLeft = false;
attack = false;
health = 15;
rise = (run = 0);
decay = 0.7;
moving = false;
h = (w = 20);
clicking = new Object();
clicking.onMouseDown = function () {
if (attack == true) {
if (arms._currentframe == 1) {
if (arms.weapon._currentframe == 1) {
arms.weapon.play();
}
if ((arms.weapon._currentframe >= 13) && (arms.weapon._currentframe <= 18)) {
arms.weapon.gotoAndPlay(26);
}
}
if (arms._currentframe == 2) {
if (ammo[1] > 0) {
ammo[1]--;
arms.weapon.gotoAndPlay(2);
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1.5;
rot = (arms._rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
}
}
if ((arms._currentframe == 3) && (arms.weapon._currentframe == 1)) {
if (ammo[2] > 0) {
ammo[2]--;
arms.weapon.gotoAndPlay(2);
rot = (arms._rotation * Math.PI) / 180;
x = _x;
y = _y;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation + 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation - 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
j = 0;
while (j < 4) {
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
dx = Math.cos((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
dy = Math.sin((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 5);
y = y + (dy * 5);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1.5;
rot = (arms._rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
j++;
}
}
}
}
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39) && (hitRight == false)) {
hitRight = true;
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
while (ammo[weapon] == 0) {
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(39)) {
hitRight = false;
}
if (Key.isDown(37) && (hitLeft == false)) {
hitLeft = true;
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
while (ammo[weapon] == 0) {
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(37)) {
hitLeft = false;
}
if ((arms._currentframe == 1) && ((arms.weapon._currentframe == 10) || (arms.weapon._currentframe == 30))) {
for (i in _root.enemies) {
dx = _root.enemies[i]._x - _x;
dy = _root.enemies[i]._y - _y;
rot = Math.atan2(dy, dx);
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 40) {
if (_root.enemies[i].hitTest(arms.weapon.hit)) {
_root.enemies[i].health--;
_root.punch.play();
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
}
}
}
}
if (arms._currentframe == 2) {
}
moving = false;
if (Key.isDown(65)) {
run = run - 0.8;
moving = true;
}
if (Key.isDown(68)) {
run = run + 0.8;
moving = true;
}
if (Key.isDown(87)) {
rise = rise - 0.8;
moving = true;
}
if (Key.isDown(83)) {
rise = rise + 0.8;
moving = true;
}
_x = (_x + run);
if (run > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x - 0.3);
}
}
}
} else if (run < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x + 0.3);
}
}
}
}
_y = (_y + rise);
if (rise > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y - 0.3);
}
}
}
} else if (rise < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y + 0.3);
}
}
}
}
run = run * decay;
rise = rise * decay;
if (Math.abs(run) < 0.1) {
run = 0;
}
if (Math.abs(rise) < 0.1) {
rise = 0;
}
if ((_x - (w / 2)) < 0) {
_x = (w / 2);
}
if ((_x + (w / 2)) > 550) {
_x = (550 - (w / 2));
}
if ((_y - (h / 2)) < 0) {
_y = (h / 2);
}
if ((_y + (h / 2)) > 400) {
_y = (400 - (h / 2));
}
legs._rotation = (Math.atan2(rise, run) * 180) / Math.PI;
if (moving == true) {
legs.play();
}
if (moving == false) {
if ((legs._currentframe == 6) || (legs._currentframe == 16)) {
legs.stop();
}
}
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
arms._rotation = (Math.atan2(dy, dx) * 180) / Math.PI;
if (attack == true) {
if ((arms.weapon._currentframe == 1) && (Key.isDown(69))) {
arms.weapon.gotoAndStop(43);
}
}
if ((arms.weapon._currentframe == 43) && (!Key.isDown(69))) {
arms.weapon.gotoAndStop(1);
}
} else {
_visible = false;
Mouse.removeListener(clicking);
}
}
Instance of Symbol 119 MovieClip "rhodes" in Frame 15
onClipEvent (load) {
color = 255;
xtar = (ytar = undefined);
target = _root.man;
attack = false;
health = 5;
}
onClipEvent (enterFrame) {
if (xtar != undefined) {
_rotation = ((Math.atan2(ytar - _y, xtar - _x) * 180) / Math.PI);
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 3));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 3));
dx = xtar - _x;
dy = ytar - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 2) {
xtar = (ytar = undefined);
}
} else if (target != undefined) {
_rotation = ((Math.atan2(target._y - _y, target._x - _x) * 180) / Math.PI);
if (attack == true) {
dx = target._x - _x;
dy = target._y - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > 25) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * 2));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * 2));
} else {
play();
}
if ((_currentframe == 13) && (dist < 30)) {
if ((hitTest(_root.man.arms.weapon.hit) && (_root.man.arms._currentframe == 1)) && (_root.man.arms.weapon._currentframe == 43)) {
} else {
_root.man.run = _root.man.run + (Math.cos((_rotation * Math.PI) / 180) * 2);
_root.man.rise = _root.man.rise + (Math.sin((_rotation * Math.PI) / 180) * 2);
_root.man.health--;
if (_root.man.health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.man._x;
_root.death["ragdoll" + _root.q]._y = _root.man._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin((_rotation * Math.PI) / 180) * speed;
_root.death["ragdoll" + _root.q].head.color = 0;
_root.q++;
_root.man.dead = true;
xtar = (ytar = (target = undefined));
}
}
}
}
}
if ((health <= 0) && (_root.story == 27)) {
_root.story = 28;
}
}
Frame 16
room = 16;
Instance of Symbol 94 MovieClip "man" in Frame 16
onClipEvent (load) {
weapon = 0;
ammo = ["inf", 0, 0];
dead = false;
hitF = false;
hitRight = false;
hitLeft = false;
attack = false;
health = 15;
rise = (run = 0);
decay = 0.7;
moving = false;
h = (w = 20);
clicking = new Object();
clicking.onMouseDown = function () {
if (attack == true) {
if (arms._currentframe == 1) {
if (arms.weapon._currentframe == 1) {
arms.weapon.play();
}
if ((arms.weapon._currentframe >= 13) && (arms.weapon._currentframe <= 18)) {
arms.weapon.gotoAndPlay(26);
}
}
if (arms._currentframe == 2) {
arms.weapon.gotoAndPlay(2);
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 12);
y = y + (Math.sin(rot) * 12);
dx = Math.cos(rot);
dy = Math.sin(rot);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 10);
y = y + (Math.sin(rot) * 10);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 3);
y = y + (dy * 3);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
}
if ((arms._currentframe == 3) && (arms.weapon._currentframe == 1)) {
if (ammo[2] > 0) {
ammo[2]--;
arms.weapon.gotoAndPlay(2);
rot = (arms._rotation * Math.PI) / 180;
x = _x;
y = _y;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation + 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
duplicateMovieClip (_root.shotgunflash, "shotflash" + _root.q, _root.q);
_root["shotflash" + _root.q]._x = x;
_root["shotflash" + _root.q]._y = y;
_root["shotflash" + _root.q]._rotation = arms._rotation - 35;
_root["shotflash" + _root.q]._xscale = 50;
_root.q++;
j = 0;
while (j < 4) {
x = _x;
y = _y;
rot = (arms._rotation * Math.PI) / 180;
x = x + (Math.cos(rot) * 20);
y = y + (Math.sin(rot) * 20);
dx = Math.cos((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
dy = Math.sin((((arms._rotation + random(11)) - 5) * Math.PI) / 180);
rot = ((arms._rotation + 90) * Math.PI) / 180;
x = x + (Math.cos(rot) * 5);
y = y + (Math.sin(rot) * 5);
_root.createEmptyMovieClip("bullet" + _root.q, _root.q);
q = _root.q;
_root["bullet" + _root.q].lineStyle(1, 16777215);
_root["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 5);
y = y + (dy * 5);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
if (_root.walls.hitTest(x, y, true)) {
go = false;
}
for (i in _root.enemies) {
if (_root.enemies[i].hitTest(x, y, true)) {
_root.enemies[i].health = _root.enemies[i].health - 3;
j = 0;
while (j < 2) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = x;
_root.death.blood["blood" + _root.q]._y = y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
j++;
}
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1.5;
rot = (arms._rotation * Math.PI) / 180;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
go = false;
}
}
}
_root["bullet" + q].lineTo(x, y);
_root["bullet" + q].onEnterFrame = function () {
if (this.deleteMe == true) {
removeMovieClip(this);
}
this.deleteMe = true;
};
_root.q++;
j++;
}
}
}
}
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (dead == false) {
if (Key.isDown(39) && (hitRight == false)) {
hitRight = true;
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
while (ammo[weapon] == 0) {
weapon++;
if (weapon == ammo.length) {
weapon = 0;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(39)) {
hitRight = false;
}
if (Key.isDown(37) && (hitLeft == false)) {
hitLeft = true;
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
while (ammo[weapon] == 0) {
weapon--;
if (weapon == -1) {
weapon = ammo.length - 1;
}
}
arms.gotoAndStop(weapon + 1);
}
if (!Key.isDown(37)) {
hitLeft = false;
}
if ((arms._currentframe == 1) && ((arms.weapon._currentframe == 10) || (arms.weapon._currentframe == 30))) {
for (i in _root.enemies) {
dx = _root.enemies[i]._x - _x;
dy = _root.enemies[i]._y - _y;
rot = Math.atan2(dy, dx);
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 40) {
if (_root.enemies[i].hitTest(arms.weapon.hit)) {
_root.enemies[i].health--;
if (_root.enemies[i].health <= 0) {
duplicateMovieClip (_root.death.ragdollgen, "ragdoll" + _root.q, _root.q);
_root.death["ragdoll" + _root.q]._x = _root.enemies[i]._x;
_root.death["ragdoll" + _root.q]._y = _root.enemies[i]._y;
speed = (random(10) / 10) + 1;
_root.death["ragdoll" + _root.q].head.run = Math.cos(rot) * speed;
_root.death["ragdoll" + _root.q].head.rise = Math.sin(rot) * speed;
_root.death["ragdoll" + _root.q].head.color = _root.enemies[i].color;
_root.q++;
_root.enemies[i]._x = -1000;
_root.enemies[i].attack = false;
_root.enemies[i].target = (_root.enemies[i].xtar = (_root.enemies[i].ytar = undefined));
}
}
}
}
}
if (arms._currentframe == 2) {
}
moving = false;
if (Key.isDown(65)) {
run = run - 0.8;
moving = true;
}
if (Key.isDown(68)) {
run = run + 0.8;
moving = true;
}
if (Key.isDown(87)) {
rise = rise - 0.8;
moving = true;
}
if (Key.isDown(83)) {
rise = rise + 0.8;
moving = true;
}
_x = (_x + run);
if (run > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x - 0.3);
}
}
}
} else if (run < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_x = (_x + 0.3);
}
}
}
}
_y = (_y + rise);
if (rise > 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y - 0.3);
}
}
}
} else if (rise < 0) {
for (i in _root.walls) {
if (body.hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (body.hitTest(_root.walls[i])) {
_y = (_y + 0.3);
}
}
}
}
run = run * decay;
rise = rise * decay;
if (Math.abs(run) < 0.1) {
run = 0;
}
if (Math.abs(rise) < 0.1) {
rise = 0;
}
if ((_x - (w / 2)) < 0) {
_x = (w / 2);
}
if ((_x + (w / 2)) > 550) {
_x = (550 - (w / 2));
}
if ((_y - (h / 2)) < 0) {
_y = (h / 2);
}
if ((_y + (h / 2)) > 400) {
_y = (400 - (h / 2));
}
legs._rotation = (Math.atan2(rise, run) * 180) / Math.PI;
if (moving == true) {
legs.play();
}
if (moving == false) {
if ((legs._currentframe == 6) || (legs._currentframe == 16)) {
legs.stop();
}
}
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
arms._rotation = (Math.atan2(dy, dx) * 180) / Math.PI;
if (attack == true) {
if ((arms.weapon._currentframe == 1) && (Key.isDown(69))) {
arms.weapon.gotoAndStop(43);
}
}
if ((arms.weapon._currentframe == 43) && (!Key.isDown(69))) {
arms.weapon.gotoAndStop(1);
}
} else {
_visible = false;
Mouse.removeListener(clicking);
}
}
Frame 17
stopAllSounds();
Instance of Symbol 231 MovieClip "man" in Frame 17
onClipEvent (load) {
health = 15;
}
Instance of Symbol 230 MovieClip "man" in Frame 18
onClipEvent (load) {
count = 0;
if (_root._currentframe == 18) {
_yscale = 50;
_xscale = 50;
}
rise = (run = 0);
decay = 0.8;
turboNum = 0;
turbo = false;
x = _x;
y = _y;
ox = 0;
oy = 0;
health = 15;
}
onClipEvent (enterFrame) {
if (_root.targetter._currentframe >= 121) {
health = 0;
}
if (health <= 0) {
x = -10000;
}
if (_root._currentframe == 18) {
count++;
if (Key.isDown(65)) {
run = run - 0.4;
}
if (Key.isDown(68)) {
run = run + 0.4;
}
if (Key.isDown(87)) {
rise = rise - 0.4;
}
if (Key.isDown(83)) {
rise = rise + 0.4;
}
if (Key.isDown(16) && (count > 620)) {
turbo = true;
} else {
turbo = false;
}
if ((x < 0) && (health > 0)) {
x = 0;
run = 0;
}
if (x > 550) {
x = 550;
run = 0;
}
if (y < 0) {
y = 0;
rise = 0;
}
if (y > 300) {
y = 300;
rise = 0;
}
x = x + run;
y = y + rise;
run = run * 0.9;
rise = rise * 0.9;
_rotation = (run * 5);
if (turbo == true) {
if (_root.ship._y < 440) {
_root.ship._y = _root.ship._y + 2;
}
_root.ship.ytar = 440;
if (turboNum < 30) {
turboNum = turboNum + 1;
}
} else {
_root.ship.ytar = 181.8;
if (turboNum > 0) {
turboNum = turboNum - 1;
}
}
if (turboNum > 0) {
filter = new flash.filters.BlurFilter();
filter.blurY = (turboNum / 2) + random(5);
filter.blurX = 0;
filter.quality = 1;
this.filters = [filter];
} else {
this.filters = [];
}
_x = x;
_y = y;
if (turboNum == 0) {
_root._x = (random(10) / 5) - 0.5;
_root._y = (random(10) / 5) - 0.5;
} else {
_root._x = random(turboNum / 6) - (turboNum / 12);
_root._y = random(turboNum / 6) - (turboNum / 12);
}
}
if (count >= 3000) {
_root.nextFrame();
}
}
Instance of Symbol 256 MovieClip "ship" in Frame 18
onClipEvent (load) {
_y = 960;
rise = 0;
ytar = 181.8;
decay = 0.7;
a = 0;
count = 0;
}
onClipEvent (enterFrame) {
if (_y < 350) {
count++;
}
if (count == 150) {
count = 0;
if (random(2) == 0) {
lGun.play();
} else {
rGun.play();
}
}
if (_root.targetter._currentframe >= 121) {
_y = 500;
}
a = a + 0.0698131700797732;
_yscale = ((Math.sin(a) * 10) + 100);
_xscale = ((Math.sin(a) * 10) + 100);
if (Math.abs(ytar - _y) > 20) {
rise = rise + (((ytar - _y) / Math.abs(ytar - _y)) * 0.3);
}
if (((_y > 420) && (_root.man.count > 620)) && (_root.targetter._currentframe == 1)) {
_root.targetter._visible = true;
_root.targetter.play();
} else if ((_y < 420) && (_root.targetter._currentframe < 121)) {
_root.targetter._visible = false;
_root.targetter.gotoAndStop(1);
}
_y = (_y + rise);
rise = rise * decay;
}
Instance of Symbol 269 MovieClip "targetter" in Frame 18
onClipEvent (load) {
_visible = false;
stop();
}
onClipEvent (enterFrame) {
_x = (_x + ((_root.man._x - _x) / 6));
_y = (_y + ((_root.man._y - _y) / 6));
if (_currentframe >= 121) {
_x = 275;
_y = 200;
}
}
Frame 19
messages = [[sci2, "I still can't believe that we've gone through this."], [man, "What the hell...? Where...where am I?"], [sci1, "Good, he's awake! Hello, Mr. Greene. How was your rest? Wait, I already know."], [man, "What's going on?"], [sci2, "God damnit, this is always the worst part."], [sci1, "Mr. Greene, you've been put in a controlled sleep. We can alter and monitor your dreams using that device to your left there."], [man, "But...why...?"], [sci1, "It's a standard procedure. All people holding extreme authority are required to take an EC test to verify their qualification."], [man, "EC?"], [sci1, "Extreme Circumstances. We force you into a dream where you experience a far fetched and irrational situation. The way you respond is used for or against you."], [man, "And...?"], [sci1, "You showed an excess of agressive behavior throughout the tests. Such reactions are not safe for someone with so much power as you."], [man, "So what happens now?"], [sci1, "Whether or not you retain your position as CEO is based upon these tests.\n\nAnd you have failed."]];
story = "finale";
Symbol 6 Button
on (release) {
gotoAndStop (2);
}
Symbol 22 Button
on (release) {
getURL ("http://www.stickpage.com", "_blank");
}
Symbol 23 MovieClip Frame 211
_parent.gotoAndStop(3);
Symbol 31 Button
on (release) {
_parent.init = "beginning";
_parent.gotoAndStop(2);
}
Symbol 34 Button
on (release) {
_root.init = "continue";
_root.gotoAndStop(2);
}
Symbol 39 Button
on (release) {
getURL ("http://www.stickpage.com/", _blank);
}
Symbol 40 MovieClip Frame 1
stop();
if (_root.room == undefined) {
_root.room = 1;
Stage.showMenu = false;
}
Instance of Symbol 9 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
_parent.playbutton._visible = false;
}
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_parent.playbutton._visible = true;
}
}
Instance of Symbol 35 MovieClip in Symbol 40 MovieClip Frame 3
onClipEvent (load) {
if (_root.room == 1) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.room == 1) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 45 MovieClip "head" in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
frame = _root._currentframe;
haveIHit = 0;
myColor = new Color(this);
myColor.setRGB(color);
vrise = 0;
y = 40;
gravity = -1;
decay = 0.7;
rr = new Array();
i = 0;
while (i < 11) {
rr.push([random(5) - 2, random(5) - 2]);
i++;
}
pts = [["x", "y"], [0, 0], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8], [0, 0], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8], [random(17) - 8, random(17) - 8]];
bars = [[0, 1, 8], [1, 2, 7], [1, 3, 7], [2, 4, 7], [3, 5, 7], [1, 6, 20], [6, 7, 9], [6, 8, 9], [7, 9, 9], [8, 10, 9]];
maxbars = [[2, 3, 3], [7, 8, 3]];
}
onClipEvent (enterFrame) {
if (_root._currentframe != frame) {
removeMovieClip(_parent);
}
if ((_parent._name != "ragdollgen") && (halt != true)) {
_x = (_x + run);
if (run > 0) {
for (i in _root.walls) {
if (hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (hitTest(_root.walls[i])) {
_x = (_x - 0.3);
}
run = -0.5 * run;
}
}
} else if (run < 0) {
for (i in _root.walls) {
if (hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (hitTest(_root.walls[i])) {
_x = (_x + 0.3);
}
run = -0.5 * run;
}
}
}
_y = (_y + rise);
if (rise > 0) {
for (i in _root.walls) {
if (hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (hitTest(_root.walls[i])) {
_y = (_y - 0.3);
}
rise = -0.5 * rise;
}
}
} else if (rise < 0) {
for (i in _root.walls) {
if (hitTest(_root.walls[i]) && (_root.walls[i]._visible == true)) {
while (hitTest(_root.walls[i])) {
_y = (_y + 0.3);
}
rise = -0.5 * rise;
}
}
}
if ((_x + _parent._x) > (550 - (_width / 2))) {
run = -0.5 * run;
_x = (540 - _parent._x);
}
if ((_x + _parent._x) < (_width / 2)) {
run = -0.5 * run;
_x = ((_width / 2) - _parent._x);
}
if ((_y + _parent._y) > (400 - (_height / 2))) {
rise = -0.5 * rise;
_y = ((400 - (_height / 2)) - _parent._y);
}
if ((_y + _parent._y) < (_height / 2)) {
rise = -0.5 * rise;
_y = ((_height / 2) - _parent._y);
}
y = y + vrise;
vrise = vrise + gravity;
if (y < 0) {
if (haveIHit == 0) {
haveIHit = 1;
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = _x + _parent._x;
_root.death.blood["blood" + _root.q]._y = _y + _parent._y;
_root.death.blood["blood" + _root.q]._xscale = (_root.death.blood["blood" + _root.q]._yscale = vrise * 4);
_root.death.blood["blood" + _root.q]._rotation = random(360);
_root.q++;
i = 0;
while (i < 5) {
duplicateMovieClip (_root.death.blood.bloodgen, "blood" + _root.q, _root.q);
_root.death.blood["blood" + _root.q]._x = _x + _parent._x;
_root.death.blood["blood" + _root.q]._y = _y + _parent._y;
_root.death.blood["blood" + _root.q].myType = "fly";
_root.q++;
i++;
}
}
y = 0;
vrise = -0.4 * vrise;
run = run * decay;
rise = rise * decay;
}
_yscale = (80 + (y / 2));
_xscale = (80 + (y / 2));
_parent.clear();
_parent.lineStyle(4, color);
for (i in maxbars) {
a = maxbars[i][0];
b = maxbars[i][1];
max = maxbars[i][2];
x1 = pts[a][0];
y1 = pts[a][1];
x2 = pts[b][0];
y2 = pts[b][1];
ax = x2 - x1;
ay = y2 - y1;
dist = Math.sqrt((ax * ax) + (ay * ay));
if (dist < max) {
diff = dist - max;
rot = Math.atan2(ay, ax);
x1 = x1 + ((Math.cos(rot) * diff) / 2);
y1 = y1 + ((Math.sin(rot) * diff) / 2);
x2 = x2 - ((Math.cos(rot) * diff) / 2);
y2 = y2 - ((Math.sin(rot) * diff) / 2);
pts[b][0] = x2;
pts[b][1] = y2;
}
}
for (i in bars) {
a = bars[i][0];
b = bars[i][1];
max = bars[i][2];
x1 = pts[a][0];
y1 = pts[a][1];
if (x1 == "x") {
x1 = _x;
y1 = _y;
} else {
x1 = x1 + rr[a][0];
rr[a][0] = rr[a][0] * decay;
pts[a][0] = x1;
y1 = y1 + rr[a][1];
rr[a][1] = rr[a][1] * decay;
pts[a][1] = y1;
}
x2 = pts[b][0];
y2 = pts[b][1];
ax = x2 - x1;
ay = y2 - y1;
dist = Math.sqrt((ax * ax) + (ay * ay));
if (dist > max) {
rot = Math.atan2(ay, ax);
x2 = (pts[b][0] = x1 + (Math.cos(rot) * max));
y2 = (pts[b][1] = y1 + (Math.sin(rot) * max));
}
_parent.moveTo(x1, y1);
_parent.lineTo(x2, y2);
}
if ((Math.abs(run) < 0.1) && (Math.abs(rise) < 0.1)) {
halt = true;
}
}
}
Symbol 50 MovieClip Frame 60
stop();
Instance of Symbol 50 MovieClip "bloodgen" in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
frame = _root._currentframe;
if (myType == "fly") {
_rotation = random(360);
rise = random(5) - 2;
run = random(5) - 2;
erise = random(5) + 5;
y = 0;
gravity = -1;
stop();
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != frame) {
removeMovieClip(this);
}
if (myType == "fly") {
_x = (_x + run);
_y = (_y + rise);
y = y + erise;
erise = erise + gravity;
_yscale = (50 + (y / 2));
_xscale = (50 + (y / 2));
if (y < 0) {
myType = undefined;
rise = (run = (gravity = (y = 0)));
_yscale = 20;
_xscale = 20;
play();
}
}
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 25
gotoAndStop (1);
Symbol 73 MovieClip Frame 42
gotoAndStop (1);
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
duplicateMovieClip (_root.muzzleflash, "muzzleflash" + _root.q, _root.q);
_root["muzzleflash" + _root.q]._x = _root.man._x + _root.man.run;
_root["muzzleflash" + _root.q]._y = _root.man._y + _root.man.rise;
_root["muzzleflash" + _root.q]._rotation = _parent._rotation;
_root.q++;
Symbol 92 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Instance of Symbol 56 MovieClip "legs" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Symbol 98 MovieClip Frame 1
if (_name == "muzzleflash") {
stop();
}
Symbol 98 MovieClip Frame 6
removeMovieClip(this);
Symbol 102 MovieClip Frame 1
if (_name == "shotgunflash") {
stop();
}
Symbol 102 MovieClip Frame 7
removeMovieClip(this);
Symbol 108 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 23
gotoAndStop (1);
Symbol 121 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip in Symbol 143 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = ((_root.man.health / 15) * 100);
if (_yscale == 0) {
_visible = false;
}
}
Symbol 150 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 154 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 158 Button
on (release) {
_root._quality = "LOW";
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 165 Button
on (release) {
if (_root.main._currentframe < 5) {
_root.main.gotoAndStop(1);
_root.lights.gotoAndStop(1);
_root.main.man.setup(50, 200, false);
_root.messages = ["Damn, looks like the lights are off. I think...yeah, here's my flashlight.\n\n(Hit F to turn on your flashlight.)"];
_root.messageCount = 0;
}
}
Symbol 166 Button
on (release) {
_root.gotoAndStop(1);
Mouse.removeListener(_root.man.clicking);
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 17
stop();
Symbol 178 Button
on (release) {
if (count == 0) {
count = 1;
} else {
count = 0;
}
}
Symbol 179 Button
on (release) {
if (count == 4) {
count = "BOMB DEACTIVATED";
} else {
count = 0;
}
}
Symbol 180 Button
on (release) {
if (count == 2) {
count = 3;
} else {
count = 0;
}
}
Symbol 181 Button
on (release) {
if (count == 1) {
count = 2;
} else {
count = 0;
}
}
Symbol 182 Button
on (release) {
if (count == 3) {
count = 4;
} else {
count = 0;
}
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 29
stop();
Instance of Symbol 171 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
clicking = new Object();
clicking.onMouseDown = function () {
_parent.ball.rise = _parent.ball.rise - 4;
};
Mouse.addListener(clicking);
}
Instance of Symbol 173 MovieClip "ball" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
y = _y;
rise = 0;
gravity = 1;
}
onClipEvent (enterFrame) {
rise = rise + gravity;
_y = (_y + rise);
if (_y > y) {
_y = y;
rise = -0.6 * rise;
}
if (_y < 70) {
_visible = false;
}
}
Instance of Symbol 173 MovieClip "ball2" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
y = _y;
rise = 0;
gravity = 0.5;
}
onClipEvent (enterFrame) {
rise = rise + gravity;
_y = (_y + rise);
if (_y > y) {
_y = y;
rise = -0.6 * rise;
}
if (_y < 70) {
_visible = false;
_parent.buttons._visible = true;
}
}
Instance of Symbol 176 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_parent.count = 0;
_visible = false;
clicking = new Object();
clicking.onMouseDown = function () {
if ((_currentframe >= 16) && (_visible == true)) {
_parent.ball2.rise = -8;
} else {
gotoAndPlay (1);
}
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (_parent.ball._visible == false) {
_visible = true;
}
}
Instance of Symbol 184 MovieClip "buttons" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
clicking = new Object();
clicking.onMouseDown = function () {
if (count == "BOMB DEACTIVATED") {
_parent._x = 5000;
}
};
Mouse.addListener(clicking);
}
Instance of Symbol 188 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
clicking = new Object();
clicking.onMouseDown = function () {
if (((_root._ymouse > 350) && (_parent.note._x > 550)) && (_currentframe == 1)) {
play();
}
};
Mouse.addListener(clicking);
}
Instance of Symbol 190 MovieClip "note" in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
clicking = new Object();
clicking.onMouseDown = function () {
if (_parent._x == 0) {
_x = 10000;
}
};
Mouse.addListener(clicking);
}
Symbol 218 MovieClip Frame 67
stop();
_root.messages = [[this, "Oh, hello there, Mr. Greene! Wasn't expecting to see you back here so soon! How was your vacation?"], [_root.man, "Eh...it was getting a bit out of hand, so I decided to head back here."], [this, "A wise decision! If you're on vacation, and you're not having a good time, you can just go home!"], [_root.man, "Um, yeah, that's the spirit!\n\n(I really need to stop saying that...)"], [this, "Ah, here's my floor. Have a nice day, Mr. Greene!"]];
_root.speech.reset();
Symbol 218 MovieClip Frame 113
stop();
Instance of Symbol 56 MovieClip "legs" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Symbol 231 MovieClip Frame 163
_root.nextFrame();
Symbol 245 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
_rotation = random(360);
gotoAndPlay(random(20));
Symbol 255 MovieClip Frame 1
stop();
Instance of Symbol 245 MovieClip "rGun" in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_currentframe > 23) && (_currentframe < 43)) && (this.hitArea.hitTest(_root.man._x, _root.man._y, true))) {
_root.targetter.gotoAndPlay(121);
_root.targetter._visible = true;
}
}
Instance of Symbol 245 MovieClip "lGun" in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_currentframe > 23) && (_currentframe < 43)) && (this.hitArea.hitTest(_root.man._x, _root.man._y, true))) {
_root.targetter.gotoAndPlay(121);
_root.targetter._visible = true;
}
}
Instance of Symbol 255 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
rot = ((Math.atan2(_root.man._y - (_y + _parent._y), _root.man._x - (_x + _parent._x)) * 180) / Math.PI) + 90;
if (((random(300) && (_parent._y < 350)) && (_root.man.count > 700)) && (_root.man.turbo == false)) {
play();
}
}
_rotation = (_rotation + ((rot - _rotation) / 10));
if (this.laser.hitTest(_root.man)) {
_root.targetter.gotoAndPlay(121);
_root.targetter._visible = true;
}
}
Symbol 261 MovieClip Frame 811
stop();
Symbol 269 MovieClip Frame 175
stop();
Symbol 279 MovieClip Frame 93
stop();