Combined Code
frame 1 {
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._alpha = 100;
stopAllSounds();
}
}
function deadClick() {}
function gotoMySite() {
getURL('http://www.avgames.co.uk', '_blank');
}
urls_allowed = ['www.stoneagegames.com', 'stoneagegames.com'];
sitelock(urls_allowed);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem('© 2008 stoneagegames.com', deadClick);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem('Designed by avgames.co.uk', gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + '%';
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(4);
}
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 15 {
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 19 {
}
instance of movieClip 19 {
onClipEvent (release) {
getURL('http://www.stoneagegames.com', '_blank');
}
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
stopAllSounds();
}
movieClip 24 {
}
movieClip 31 {
}
movieClip 32 {
}
movieClip 33 lineThing {
frame 48 {
this.removeMovieClip();
}
}
movieClip 36 target_mc {
}
movieClip 38 {
}
movieClip 39 ammoclips {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 40 shotFlash {
frame 5 {
this.removeMovieClip();
}
}
movieClip 42 {
}
movieClip 43 gun {
}
movieClip 45 fadeOut {
frame 80 {
this.removeMovieClip();
}
}
movieClip 46 ammoclipsStone {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
frame 4 {
stopAllSounds();
gotoAndStop('title');
}
movieClip 59 {
frame 1 {
_root.stop();
}
frame 89 {
_root.play();
}
}
instance of movieClip 59 {
onClipEvent (release) {
getURL('http://www.stoneagegames.com', '_blank');
}
}
frame 5 {
gotoAndStop('title');
}
frame 16 {
stop();
mission = 1;
hand.onEnterFrame = function () {
if (bow.hitTest(_xmouse, _ymouse, true)) {
bow.gotoAndStop('ove');
} else {
bow.gotoAndStop('off');
}
hand._x = _xmouse;
};
bow.onRelease = function () {
stopAllSounds();
gotoAndStop('intro');
};
}
movieClip 64 {
}
movieClip 65 {
}
movieClip 66 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 69 {
}
movieClip 77 {
}
movieClip 78 {
}
movieClip 79 {
}
movieClip 80 {
}
movieClip 81 {
}
movieClip 82 {
frame 12 {
stop();
}
}
button 85 {
on (release) {
gotoAndPlay(2);
_root.soundstatus = 'off';
}
}
movieClip 86 {
frame 11 {
stop();
}
}
movieClip 89 {
}
button 90 {
on (release) {
gotoAndPlay(1);
_root.soundstatus = 'on';
}
}
movieClip 91 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 95 {
}
movieClip 96 sound_contr {
instance of movieClip 95 {
onClipEvent (load) {
_root.soundstatus = 'on';
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == 'on') {
step = 5;
}
if (_root.soundstatus == 'off') {
step = -5;
}
maxvolume += step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
}
}
instance of movieClip 19 {
onClipEvent (release) {
getURL('http://www.stoneagegames.com', '_blank');
}
}
frame 17 {
stop();
carryOn = 'null';
lineThing.removeMovieClip();
gun.removeMovieClip();
if (playerKilled) {
showSequence.gotoAndStop('died');
} else {
stopAllSounds();
showSequence.gotoAndStop('failed');
}
yes.onRelease = function () {
carryOn = 'true';
};
no.onRelease = function () {
carryOn = 'false';
};
cont.onEnterFrame = function () {
if (carryOn == 'false') {
gotoAndStop('title');
}
if (carryOn == 'true') {
if (mission == 1) {
gotoAndStop('mission1');
}
if (mission == 2) {
gotoAndStop('mission2');
}
if (mission == 3) {
gotoAndStop('mission3');
}
if (mission == 4) {
gotoAndStop('mission4');
}
if (mission == 5) {
gotoAndStop('mission5');
}
if (mission == 6) {
gotoAndStop('mission6');
}
if (mission == 7) {
gotoAndStop('mission7');
}
if (mission == 8) {
gotoAndStop('mission8');
}
if (mission == 9) {
gotoAndStop('mission9');
}
}
};
}
movieClip 104 {
frame 25 {
stop();
}
}
movieClip 124 {
frame 155 {
stop();
}
}
movieClip 128 {
frame 20 {
stop();
}
}
movieClip 145 {
frame 155 {
stop();
}
}
movieClip 146 {
frame 31 {
stop();
}
}
movieClip 147 {
frame 155 {
stop();
}
}
movieClip 150 {
}
movieClip 157 {
frame 80 {
stop();
}
}
movieClip 168 {
frame 149 {
stop();
}
}
movieClip 175 {
frame 80 {
stop();
}
}
movieClip 176 {
frame 239 {
stop();
}
}
movieClip 177 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 180 {
}
movieClip 181 {
frame 20 {
stop();
}
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 185 {
frame 20 {
stop();
}
}
movieClip 187 {
}
movieClip 188 {
frame 20 {
stop();
}
}
movieClip 190 {
}
movieClip 192 {
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission1');
}
}
movieClip 194 {
frame 1 {
_root.stop();
}
frame 1336 {
_root.play();
}
}
frame 19 {
stopAllSounds();
play();
}
frame 20 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar2._xscale = enemy2_attackingTimer;
bar3._xscale = enemy3_attackingTimer;
if (enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
} else {
bar1.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
} else {
bar2.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
} else {
bar3.gotoAndStop('ready');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene2');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking) {
++enemy1_idleTimer;
if (enemy1_idleTimer > 224) {
enemy1_attacking = true;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking) {
++enemy2_idleTimer;
if (enemy2_idleTimer > 284) {
enemy2_attacking = true;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking) {
++enemy3_idleTimer;
if (enemy3_idleTimer > 64) {
enemy3_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy1.gotoAndStop('back');
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = 0;
enemy2_idleTimer = 0;
enemy2.gotoAndStop('back');
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = 0;
enemy3_idleTimer = 0;
enemy3.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 1;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 100, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
rock1.onPress = function () {};
rock2.onPress = function () {};
rock3.onPress = function () {};
cover.onPress = function () {};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 198 {
}
movieClip 216 {
frame 25 {
stop();
}
}
movieClip 218 {
frame 50 {
stop();
}
}
movieClip 223 {
frame 10 {
stop();
}
}
movieClip 240 {
frame 27 {
stop();
}
}
movieClip 241 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 250 {
frame 50 {
stop();
}
}
movieClip 256 {
frame 11 {
stop();
}
}
movieClip 257 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 259 {
}
movieClip 266 {
frame 50 {
stop();
}
}
movieClip 272 {
frame 11 {
stop();
}
}
movieClip 273 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 275 {
}
movieClip 277 {
}
movieClip 279 {
}
movieClip 282 {
}
movieClip 286 {
}
movieClip 289 {
}
movieClip 293 {
}
movieClip 295 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 303 {
}
movieClip 304 {
frame 170 {
stop();
}
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission2');
}
}
movieClip 308 {
frame 1 {
_root.stop();
}
frame 562 {
_root.play();
}
}
frame 22 {
stopAllSounds();
stop();
}
movieClip 315 {
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m2');
}
}
frame 23 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar1._x = enemy1._x;
bar2._xscale = enemy2_attackingTimer;
bar2._x = enemy2._x;
bar3._xscale = enemy3_attackingTimer;
if (enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
} else {
bar1.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
} else {
bar2.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
} else {
bar3.gotoAndStop('ready');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene3');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking) {
++enemy3_idleTimer;
if (enemy3_idleTimer > 64) {
enemy3_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = 0;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = 0;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = 0;
enemy3_idleTimer = 0;
enemy3.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 2;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
npcSpeed = 1.5;
npc1run = false;
npc2run = false;
npc3run = false;
npc4run = false;
npc5run = false;
npc6run = false;
npc1left = true;
npc2left = false;
npc3left = false;
npc4left = true;
npc5left = true;
npc6left = false;
npcKilled = false;
enemy1left = true;
enemy2left = false;
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_walking = true;
enemy2_walking = true;
enemy1_wtf = false;
enemy2_wtf = false;
enemy1_wtf_timer = 0;
enemy2_wtf_timer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
panic = true;
enemy2_walking = false;
enemy2_wtf = true;
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
panic = true;
enemy1_walking = false;
enemy1_wtf = true;
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
hut1.onPress = function () {};
hut2.onPress = function () {};
hut3.onPress = function () {};
hut4.onPress = function () {};
hut5.onPress = function () {};
hut6.onPress = function () {};
hut7.onPress = function () {};
hut8.onPress = function () {};
cover.onPress = function () {};
npc1.onEnterFrame = function () {
if (panic) {
npcSpeed = 4;
npc1.gotoAndStop('run');
npc2.gotoAndStop('run');
npc3.gotoAndStop('run');
npc4.gotoAndStop('run');
npc5.gotoAndStop('run');
npc6.gotoAndStop('run');
}
if (enemy1_alive) {
if (enemy1_walking) {
if (enemy1left) {
enemy1._xscale = -70;
enemy1._x -= 1.7;
} else {
enemy1._xscale = 70;
enemy1._x += 1.7;
}
}
}
if (enemy1._x < 10) {
enemy1left = false;
}
if (enemy1._x > 630) {
enemy1left = true;
}
if (enemy2_alive) {
if (enemy2_walking) {
if (enemy2left) {
enemy2._xscale = 100;
enemy2._x -= 2;
} else {
enemy2._xscale = -100;
enemy2._x += 2;
}
}
}
if (enemy2._x < 10) {
enemy2left = false;
}
if (enemy2._x > 630) {
enemy2left = true;
}
if (npc1left) {
npc1._xscale = 70;
npc1._x -= npcSpeed;
} else {
npc1._xscale = -70;
npc1._x += npcSpeed;
}
if (npc2left) {
npc2._xscale = -20;
npc2._x -= npcSpeed;
} else {
npc2._xscale = 20;
npc2._x += npcSpeed;
}
if (npc3left) {
npc3._xscale = -20;
npc3._x -= npcSpeed;
} else {
npc3._xscale = 20;
npc3._x += npcSpeed;
}
if (npc4left) {
npc4._xscale = 20;
npc4._x -= npcSpeed;
} else {
npc4._xscale = -20;
npc4._x += npcSpeed;
}
if (npc5left) {
npc5._xscale = 20;
npc5._x -= npcSpeed;
} else {
npc5._xscale = -20;
npc5._x += npcSpeed;
}
if (npc6left) {
npc6._xscale = -60;
npc6._x -= npcSpeed;
} else {
npc6._xscale = 60;
npc6._x += npcSpeed;
}
if (npc1._x < -25) {
npc1left = false;
}
if (npc1._x > 660) {
npc1left = true;
}
if (npc2._x < -25) {
npc2left = false;
}
if (npc2._x > 660) {
npc2left = true;
}
if (npc3._x < -25) {
npc3left = false;
}
if (npc3._x > 660) {
npc3left = true;
}
if (npc4._x < -25) {
npc4left = false;
}
if (npc4._x > 660) {
npc4left = true;
}
if (npc5._x < -25) {
npc5left = false;
}
if (npc5._x > 660) {
npc5left = true;
}
if (npc6._x < -25) {
npc6left = false;
}
if (npc6._x > 660) {
npc6left = true;
}
};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 320 {
}
movieClip 322 {
}
movieClip 324 {
}
movieClip 334 {
}
movieClip 340 {
}
movieClip 353 {
}
movieClip 359 {
}
movieClip 384 {
}
movieClip 385 {
frame 42 {
stop();
}
}
movieClip 391 {
}
movieClip 395 {
}
movieClip 396 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 405 {
}
movieClip 410 {
}
movieClip 423 {
}
movieClip 440 {
frame 42 {
stop();
}
}
movieClip 446 {
}
movieClip 447 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 448 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 449 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 452 {
}
movieClip 462 {
}
movieClip 463 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 464 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 473 {
}
movieClip 480 {
}
movieClip 493 {
}
movieClip 512 {
frame 42 {
stop();
}
}
movieClip 518 {
}
movieClip 524 {
frame 10 {
stop();
}
}
movieClip 527 {
frame 50 {
stop();
}
}
movieClip 529 {
frame 1 {
stop();
}
}
movieClip 537 {
frame 50 {
stop();
}
}
movieClip 544 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 568 {
frame 27 {
stop();
}
}
movieClip 571 {
frame 50 {
stop();
}
}
movieClip 572 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 574 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 577 {
}
movieClip 580 {
}
frame 24 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission3');
}
}
movieClip 584 {
frame 1 {
_root.stop();
}
frame 270 {
_root.play();
}
}
frame 25 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m3');
}
}
frame 26 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar1._x = enemy1._x;
bar2._xscale = enemy2_attackingTimer;
bar2._x = enemy2._x;
bar3._xscale = enemy3_attackingTimer;
bar3._x = enemy3._x;
bar4._xscale = enemy4_attackingTimer;
bar4._x = enemy4._x;
bar5._xscale = enemy5_attackingTimer;
bar5._x = enemy5._x;
if (enemy1_attackingTimer > 0 && enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
}
if (enemy1_attackingTimer > 35) {
bar1.gotoAndStop('ready');
}
if (enemy1_attackingTimer < 0) {
bar1.gotoAndStop('minus');
}
if (enemy2_attackingTimer > 0 && enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
}
if (enemy2_attackingTimer > 35) {
bar2.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 0) {
bar2.gotoAndStop('minus');
}
if (enemy3_attackingTimer > 0 && enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
}
if (enemy3_attackingTimer > 35) {
bar3.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 0) {
bar3.gotoAndStop('minus');
}
if (enemy4_attackingTimer > 0 && enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
}
if (enemy4_attackingTimer > 35) {
bar4.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 0) {
bar4.gotoAndStop('minus');
}
if (enemy5_attackingTimer > 0 && enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
}
if (enemy5_attackingTimer > 35) {
bar5.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 0) {
bar5.gotoAndStop('minus');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene4');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive && !enemy4_alive && !enemy5_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive || enemy5_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 10) {
ammoclips.gotoAndStop('10c');
}
if (ammo == 9) {
ammoclips.gotoAndStop('9c');
}
if (ammo == 8) {
ammoclips.gotoAndStop('8c');
}
if (ammo == 7) {
ammoclips.gotoAndStop('7c');
}
if (ammo == 6) {
ammoclips.gotoAndStop('6c');
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking && !enemy3_wtf && !enemy3_walking) {
enemy3_attacking = true;
}
if (!enemy3_attacking && enemy3_wtf && !enemy3_walking) {
++enemy3_wtf_timer;
enemy3.gotoAndStop('wtf');
if (enemy3_wtf_timer == 99) {
enemy3_wtf = false;
enemy3_wtf_timer = 0;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking && !enemy4_wtf && !enemy4_walking) {
enemy4_attacking = true;
}
if (!enemy4_attacking && enemy4_wtf && !enemy4_walking) {
++enemy4_wtf_timer;
enemy4.gotoAndStop('wtf');
if (enemy4_wtf_timer == 99) {
enemy4_wtf = false;
enemy4_wtf_timer = 0;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
if (panic) {
++enemy5_idleTimer;
}
if (enemy5_idleTimer > 284) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy3_idleTimer = 0;
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy4_idleTimer = 0;
}
}
}
if (enemy5_alive) {
if (enemy5_attacking) {
enemy5.gotoAndStop('aim');
++enemy5_attackingTimer;
if (enemy5_attackingTimer > 50) {
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
enemy5.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 3;
once = 0;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclipsStone', 'ammoclips', _root.getNextHighestDepth(), {'_x': 30, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
enemy5_alive = true;
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
npcSpeed = 0;
npc1run = false;
npc2run = false;
npc3run = false;
npc4run = false;
npc5run = false;
npc6run = false;
npc1left = true;
npc2left = false;
npc3left = true;
npc4left = false;
npc5left = true;
npc6left = false;
npcKilled = false;
enemy1left = true;
enemy2left = false;
enemy3left = true;
enemy4left = true;
ammo = 10;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_walking = true;
enemy2_walking = true;
enemy3_walking = true;
enemy4_walking = true;
enemy1_wtf = false;
enemy2_wtf = false;
enemy3_wtf = false;
enemy4_wtf = false;
enemy1_wtf_timer = 0;
enemy2_wtf_timer = 0;
enemy3_wtf_timer = 0;
enemy4_wtf_timer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy4_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy4_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
enemy4_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive || enemy5_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
if (once == 0) {
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy1_walking = false;
enemy2_walking = false;
enemy4_walking = false;
once = 1;
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
once = 1;
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
enemy5.onPress = function () {
if (enemy5_alive) {
enemy5_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
};
hut1.onPress = function () {};
hut2.onPress = function () {};
hut3.onPress = function () {};
hut4.onPress = function () {};
hut5.onPress = function () {};
rock1.onPress = function () {};
cover.onPress = function () {};
npc1.onEnterFrame = function () {
if (panic) {
npcSpeed = 4;
npc1.gotoAndStop('run');
npc2.gotoAndStop('run');
npc3.gotoAndStop('run');
npc4.gotoAndStop('run');
npc5.gotoAndStop('run');
npc6.gotoAndStop('run');
}
if (enemy1_alive) {
if (enemy1_walking) {
if (enemy1left) {
enemy1._xscale = -70;
enemy1._x -= 1.7;
} else {
enemy1._xscale = 70;
enemy1._x += 1.7;
}
}
}
if (enemy1._x < 10) {
enemy1left = false;
}
if (enemy1._x > 400) {
enemy1left = true;
}
if (enemy2_alive) {
if (enemy2_walking) {
if (enemy2left) {
enemy2._xscale = 100;
enemy2._x -= 2;
} else {
enemy2._xscale = -100;
enemy2._x += 2;
}
}
}
if (enemy2._x < 10) {
enemy2left = false;
}
if (enemy2._x > 400) {
enemy2left = true;
}
if (enemy3_alive) {
if (enemy3_walking) {
if (enemy3left) {
enemy3._xscale = -70;
enemy3._x -= 2;
} else {
enemy3._xscale = 70;
enemy3._x += 2;
}
}
}
if (enemy3._x < 10) {
enemy3left = false;
}
if (enemy3._x > 400) {
enemy3left = true;
}
if (enemy4_alive) {
if (enemy4_walking) {
if (enemy4left) {
enemy4._xscale = -100;
enemy4._x -= 2;
} else {
enemy4._xscale = 100;
enemy4._x += 2;
}
}
}
if (enemy4._x < 10) {
enemy4left = false;
}
if (enemy4._x > 400) {
enemy4left = true;
}
if (npc1left) {
npc1._xscale = 60;
npc1._x -= npcSpeed;
} else {
npc1._xscale = -60;
npc1._x += npcSpeed;
}
if (npc2left) {
npc2._xscale = -60;
npc2._x -= npcSpeed;
} else {
npc2._xscale = 60;
npc2._x += npcSpeed;
}
if (npc3left) {
npc3._xscale = -20;
npc3._x -= npcSpeed;
} else {
npc3._xscale = 20;
npc3._x += npcSpeed;
}
if (npc4left) {
npc4._xscale = 20;
npc4._x -= npcSpeed;
} else {
npc4._xscale = -20;
npc4._x += npcSpeed;
}
if (npc5left) {
npc5._xscale = 20;
npc5._x -= npcSpeed;
} else {
npc5._xscale = -20;
npc5._x += npcSpeed;
}
if (npc6left) {
npc6._xscale = -20;
npc6._x -= npcSpeed;
} else {
npc6._xscale = 20;
npc6._x += npcSpeed;
}
if (npc1._x < -25) {
npc1left = false;
}
if (npc1._x > 660) {
npc1left = true;
}
if (npc2._x < -25) {
npc2left = false;
}
if (npc2._x > 660) {
npc2left = true;
}
if (npc3._x < -25) {
npc3left = false;
}
if (npc3._x > 660) {
npc3left = true;
}
if (npc4._x < -25) {
npc4left = false;
}
if (npc4._x > 660) {
npc4left = true;
}
if (npc5._x < -25) {
npc5left = false;
}
if (npc5._x > 660) {
npc5left = true;
}
if (npc6._x < -25) {
npc6left = false;
}
if (npc6._x > 660) {
npc6left = true;
}
};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 594 {
}
movieClip 596 {
}
movieClip 598 {
}
movieClip 607 {
}
movieClip 609 {
}
movieClip 615 {
}
movieClip 624 {
}
movieClip 637 {
}
movieClip 641 {
}
movieClip 658 {
}
movieClip 659 {
frame 42 {
stop();
}
}
movieClip 665 {
}
movieClip 669 {
}
movieClip 670 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 671 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 672 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 677 {
}
movieClip 686 {
}
movieClip 699 {
}
movieClip 716 {
frame 42 {
stop();
}
}
movieClip 722 {
}
movieClip 723 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 726 {
}
movieClip 736 {
}
movieClip 737 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 746 {
}
movieClip 752 {
}
movieClip 765 {
}
movieClip 778 {
frame 42 {
stop();
}
}
movieClip 784 {
}
movieClip 790 {
frame 10 {
stop();
}
}
movieClip 792 {
frame 1 {
stop();
}
}
movieClip 798 {
frame 1 {
stop();
}
}
movieClip 805 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 812 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 831 {
frame 27 {
stop();
}
}
movieClip 832 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 833 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 834 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 837 {
}
movieClip 839 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 840 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 843 {
}
movieClip 846 {
}
frame 27 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission4');
}
}
movieClip 849 {
frame 1 {
_root.stop();
}
frame 299 {
_root.play();
}
}
frame 28 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m4');
}
}
frame 29 {
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene5');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive && !enemy4_alive && !enemy5_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (oneAttack == 0) {
if (enemy1.hitTest(girl) || enemy2.hitTest(girl) || enemy3.hitTest(girl) || enemy4.hitTest(girl) || enemy5.hitTest(girl)) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (ammo == 0) {
if (oneAttack == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive || enemy5_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 4;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 100, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy5_alive = true;
girlAttack = 0;
oneAttack = 1;
doAttack = false;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive || enemy5_alive) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
};
enemy1.onPress = function () {
if (ammo > 0) {
if (enemy1_alive) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
}
};
enemy2.onPress = function () {
if (ammo > 0) {
if (enemy2_alive) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
}
};
enemy3.onPress = function () {
if (ammo > 0) {
if (enemy3_alive) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
}
};
enemy4.onPress = function () {
if (ammo > 0) {
if (enemy4_alive) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
}
};
enemy5.onPress = function () {
if (ammo > 0) {
if (enemy5_alive) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
}
};
trees.onPress = function () {};
target_mc.onEnterFrame = function () {
if (oneAttack == 1) {
if (enemy1.hitTest(girl)) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
}
if (oneAttack == 1) {
if (enemy2.hitTest(girl)) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
}
if (oneAttack == 1) {
if (enemy3.hitTest(girl)) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
}
if (oneAttack == 1) {
if (enemy4.hitTest(girl)) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
}
if (oneAttack == 1) {
if (enemy5.hitTest(girl)) {
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
}
if (doAttack) {
blonde.gotoAndStop('attack');
++girlAttack;
if (girlAttack == 14) {
doAttack = false;
oneAttack = 0;
blonde.gotoAndStop('run');
}
}
if (oneAttack == 1) {
if (enemy1.hitTest(girl) || enemy2.hitTest(girl) || enemy3.hitTest(girl) || enemy4.hitTest(girl) || enemy5.hitTest(girl)) {
doAttack = true;
}
}
if (enemy1_alive) {
enemy1._x += 3;
}
if (enemy2_alive) {
enemy2._x += 4;
}
if (enemy3_alive) {
enemy3._x += 4;
}
if (enemy4_alive) {
enemy4._x += 6;
}
if (enemy5_alive) {
enemy5._x += 6;
}
if (!enemy1_alive) {
enemy1._x -= 8;
}
if (!enemy2_alive) {
enemy2._x -= 8;
}
if (!enemy3_alive) {
enemy3._x -= 8;
}
if (!enemy4_alive) {
enemy4._x -= 8;
}
if (!enemy5_alive) {
enemy5._x -= 8;
}
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
showAmmo();
stageOver();
stageCompleted();
shaker();
};
}
movieClip 856 {
}
movieClip 858 {
}
movieClip 861 {
}
movieClip 881 {
}
movieClip 882 {
}
movieClip 883 {
}
movieClip 887 {
}
movieClip 901 {
}
movieClip 909 {
}
movieClip 910 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 923 {
}
movieClip 932 {
}
movieClip 945 {
}
movieClip 962 {
}
movieClip 963 {
frame 42 {
stop();
}
}
movieClip 969 {
}
movieClip 973 {
}
movieClip 979 {
frame 10 {
stop();
}
}
movieClip 985 {
frame 1 {
stop();
}
}
movieClip 992 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 999 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1018 {
frame 27 {
stop();
}
}
movieClip 1024 {
}
movieClip 1025 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1027 {
}
movieClip 1030 {
}
movieClip 1033 {
}
movieClip 1035 {
}
movieClip 1037 {
}
frame 30 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission5');
}
}
movieClip 1039 {
frame 1 {
_root.stop();
}
frame 825 {
_root.play();
}
}
frame 31 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m5');
}
}
frame 32 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar1._x = raft1._x;
bar2._xscale = enemy2_attackingTimer;
bar2._x = raft2._x;
bar3._xscale = enemy3_attackingTimer;
bar3._x = raft3._x;
bar4._xscale = enemy4_attackingTimer;
bar4._x = raft4._x;
bar5._xscale = enemy5_attackingTimer;
bar5._x = enemy5._x;
if (enemy1_attackingTimer > 0 && enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
}
if (enemy1_attackingTimer > 35) {
bar1.gotoAndStop('ready');
}
if (enemy1_attackingTimer < 0) {
bar1.gotoAndStop('minus');
}
if (enemy2_attackingTimer > 0 && enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
}
if (enemy2_attackingTimer > 35) {
bar2.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 0) {
bar2.gotoAndStop('minus');
}
if (enemy3_attackingTimer > 0 && enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
}
if (enemy3_attackingTimer > 35) {
bar3.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 0) {
bar3.gotoAndStop('minus');
}
if (enemy4_attackingTimer > 0 && enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
}
if (enemy4_attackingTimer > 35) {
bar4.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 0) {
bar4.gotoAndStop('minus');
}
if (enemy5_attackingTimer > 0 && enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
}
if (enemy5_attackingTimer > 35) {
bar5.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 0) {
bar5.gotoAndStop('minus');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene6');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive && !enemy4_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 10) {
ammoclips.gotoAndStop('10c');
}
if (ammo == 9) {
ammoclips.gotoAndStop('9c');
}
if (ammo == 8) {
ammoclips.gotoAndStop('8c');
}
if (ammo == 7) {
ammoclips.gotoAndStop('7c');
}
if (ammo == 6) {
ammoclips.gotoAndStop('6c');
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking && !enemy3_wtf && !enemy3_walking) {
enemy3_attacking = true;
}
if (!enemy3_attacking && enemy3_wtf && !enemy3_walking) {
++enemy3_wtf_timer;
enemy3.gotoAndStop('wtf');
if (enemy3_wtf_timer == 99) {
enemy3_wtf = false;
enemy3_wtf_timer = 0;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking && !enemy4_wtf && !enemy4_walking) {
enemy4_attacking = true;
}
if (!enemy4_attacking && enemy4_wtf && !enemy4_walking) {
++enemy4_wtf_timer;
enemy4.gotoAndStop('wtf');
if (enemy4_wtf_timer == 99) {
enemy4_wtf = false;
enemy4_wtf_timer = 0;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
if (panic) {
++enemy5_idleTimer;
}
if (enemy5_idleTimer > 284) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = Math.round(Math.random() * -5) + 5;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = Math.round(Math.random() * -10) + 10;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = Math.round(Math.random() * -5) + 5;
enemy3_idleTimer = 0;
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = Math.round(Math.random() * -10) + 10;
enemy4_idleTimer = 0;
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 5;
once = 0;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclipsStone', 'ammoclips', _root.getNextHighestDepth(), {'_x': 30, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
enemy5_alive = true;
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
npcSpeed = 0;
npc1run = false;
npc2run = false;
npc3run = false;
npc4run = false;
npc5run = false;
npc6run = false;
npc1left = true;
npc2left = false;
npc3left = true;
npc4left = false;
npc5left = true;
npc6left = false;
npcKilled = false;
enemy1left = true;
enemy2left = false;
enemy3left = true;
enemy4left = true;
ammo = 10;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_walking = true;
enemy2_walking = true;
enemy3_walking = true;
enemy4_walking = true;
enemy1_wtf = false;
enemy2_wtf = false;
enemy3_wtf = false;
enemy4_wtf = false;
enemy1_wtf_timer = 0;
enemy2_wtf_timer = 0;
enemy3_wtf_timer = 0;
enemy4_wtf_timer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy4_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy4_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
enemy4_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
if (once == 0) {
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy1_walking = false;
enemy2_walking = false;
enemy4_walking = false;
once = 1;
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
once = 1;
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
enemy5.onPress = function () {
if (enemy5_alive) {
enemy5_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
};
raft1.onPress = function () {};
raft2.onPress = function () {};
raft3.onPress = function () {};
raft4.onPress = function () {};
raft5.onPress = function () {};
rock1.onPress = function () {};
cover.onPress = function () {};
raft1.onEnterFrame = function () {
raft1._x = enemy1._x - 120;
raft2._x = enemy2._x - 50;
raft3._x = enemy3._x + 40;
raft4._x = enemy4._x + 50;
if (panic) {
npcSpeed = 4;
npc1.gotoAndStop('run');
npc2.gotoAndStop('run');
npc3.gotoAndStop('run');
npc4.gotoAndStop('run');
npc5.gotoAndStop('run');
npc6.gotoAndStop('run');
}
if (enemy1_alive) {
if (enemy1left) {
enemy1._xscale = -100;
enemy1._x -= 1.7;
} else {
enemy1._xscale = 100;
enemy1._x += 1.7;
}
}
if (enemy1._x < 10) {
enemy1left = false;
}
if (enemy1._x > 400) {
enemy1left = true;
}
if (enemy2_alive) {
if (enemy2left) {
enemy2._xscale = -70;
enemy2._x -= 2;
} else {
enemy2._xscale = 70;
enemy2._x += 2;
}
}
if (enemy2._x < 10) {
enemy2left = false;
}
if (enemy2._x > 400) {
enemy2left = true;
}
if (enemy3_alive) {
if (enemy3left) {
enemy3._xscale = 70;
enemy3._x -= 2;
} else {
enemy3._xscale = -70;
enemy3._x += 2;
}
}
if (enemy3._x < 10) {
enemy3left = false;
}
if (enemy3._x > 400) {
enemy3left = true;
}
if (enemy4_alive) {
if (enemy4left) {
enemy4._xscale = 100;
enemy4._x -= 2;
} else {
enemy4._xscale = -100;
enemy4._x += 2;
}
}
if (enemy4._x < 10) {
enemy4left = false;
}
if (enemy4._x > 400) {
enemy4left = true;
}
if (npc1left) {
npc1._xscale = 60;
npc1._x -= npcSpeed;
} else {
npc1._xscale = -60;
npc1._x += npcSpeed;
}
if (npc2left) {
npc2._xscale = -60;
npc2._x -= npcSpeed;
} else {
npc2._xscale = 60;
npc2._x += npcSpeed;
}
if (npc3left) {
npc3._xscale = -20;
npc3._x -= npcSpeed;
} else {
npc3._xscale = 20;
npc3._x += npcSpeed;
}
if (npc4left) {
npc4._xscale = 20;
npc4._x -= npcSpeed;
} else {
npc4._xscale = -20;
npc4._x += npcSpeed;
}
if (npc5left) {
npc5._xscale = 20;
npc5._x -= npcSpeed;
} else {
npc5._xscale = -20;
npc5._x += npcSpeed;
}
if (npc6left) {
npc6._xscale = -20;
npc6._x -= npcSpeed;
} else {
npc6._xscale = 20;
npc6._x += npcSpeed;
}
if (npc1._x < -25) {
npc1left = false;
}
if (npc1._x > 660) {
npc1left = true;
}
if (npc2._x < -25) {
npc2left = false;
}
if (npc2._x > 660) {
npc2left = true;
}
if (npc3._x < -25) {
npc3left = false;
}
if (npc3._x > 660) {
npc3left = true;
}
if (npc4._x < -25) {
npc4left = false;
}
if (npc4._x > 660) {
npc4left = true;
}
if (npc5._x < -25) {
npc5left = false;
}
if (npc5._x > 660) {
npc5left = true;
}
if (npc6._x < -25) {
npc6left = false;
}
if (npc6._x > 660) {
npc6left = true;
}
};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 1051 {
}
movieClip 1060 {
}
movieClip 1073 {
}
movieClip 1090 {
}
movieClip 1091 {
frame 42 {
stop();
}
}
movieClip 1097 {
}
movieClip 1099 {
frame 1 {
stop();
}
}
movieClip 1105 {
frame 10 {
stop();
}
}
movieClip 1111 {
frame 1 {
stop();
}
}
movieClip 1118 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1125 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1144 {
frame 27 {
stop();
}
}
movieClip 1145 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1152 {
}
movieClip 1154 {
}
movieClip 1155 {
}
movieClip 1156 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1157 {
}
movieClip 1158 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1159 {
}
movieClip 1161 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1162 {
}
movieClip 1165 {
}
movieClip 1168 {
}
frame 33 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission6');
}
}
movieClip 1171 {
frame 1 {
_root.stop();
}
frame 256 {
_root.play();
}
}
frame 34 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m6');
}
}
frame 35 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar1._x = enemy1._x;
bar2._xscale = enemy2_attackingTimer;
bar2._x = enemy2._x;
bar3._xscale = enemy3_attackingTimer;
bar3._x = enemy3._x;
bar4._xscale = enemy4_attackingTimer;
bar4._x = enemy4._x;
bar5._xscale = enemy5_attackingTimer;
bar5._x = enemy5._x;
if (enemy1_attackingTimer > 0 && enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
}
if (enemy1_attackingTimer > 35) {
bar1.gotoAndStop('ready');
}
if (enemy1_attackingTimer < 0) {
bar1.gotoAndStop('minus');
}
if (enemy2_attackingTimer > 0 && enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
}
if (enemy2_attackingTimer > 35) {
bar2.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 0) {
bar2.gotoAndStop('minus');
}
if (enemy3_attackingTimer > 0 && enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
}
if (enemy3_attackingTimer > 35) {
bar3.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 0) {
bar3.gotoAndStop('minus');
}
if (enemy4_attackingTimer > 0 && enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
}
if (enemy4_attackingTimer > 35) {
bar4.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 0) {
bar4.gotoAndStop('minus');
}
if (enemy5_attackingTimer > 0 && enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
}
if (enemy5_attackingTimer > 35) {
bar5.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 0) {
bar5.gotoAndStop('minus');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene7');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive && !enemy4_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 10) {
ammoclips.gotoAndStop('10c');
}
if (ammo == 9) {
ammoclips.gotoAndStop('9c');
}
if (ammo == 8) {
ammoclips.gotoAndStop('8c');
}
if (ammo == 7) {
ammoclips.gotoAndStop('7c');
}
if (ammo == 6) {
ammoclips.gotoAndStop('6c');
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking && !enemy3_wtf && !enemy3_walking) {
enemy3_attacking = true;
}
if (!enemy3_attacking && enemy3_wtf && !enemy3_walking) {
++enemy3_wtf_timer;
enemy3.gotoAndStop('wtf');
if (enemy3_wtf_timer == 99) {
enemy3_wtf = false;
enemy3_wtf_timer = 0;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking && !enemy4_wtf && !enemy4_walking) {
enemy4_attacking = true;
}
if (!enemy4_attacking && enemy4_wtf && !enemy4_walking) {
++enemy4_wtf_timer;
enemy4.gotoAndStop('wtf');
if (enemy4_wtf_timer == 99) {
enemy4_wtf = false;
enemy4_wtf_timer = 0;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
if (panic) {
++enemy5_idleTimer;
}
if (enemy5_idleTimer > 284) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy3_idleTimer = 0;
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy4_idleTimer = 0;
}
}
}
if (enemy5_alive) {
if (enemy5_attacking) {
enemy5.gotoAndStop('aim');
++enemy5_attackingTimer;
if (enemy5_attackingTimer > 50) {
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
enemy5.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 6;
once = 0;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 30, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
enemy5_alive = true;
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
npcSpeed = 0;
npc1run = false;
npc2run = false;
npc3run = false;
npc4run = false;
npc5run = false;
npc6run = false;
npc1left = true;
npc2left = false;
npc3left = false;
npc4left = true;
npc5left = true;
npc6left = false;
npcKilled = false;
enemy1left = true;
enemy2left = false;
enemy3left = false;
enemy4left = false;
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_walking = true;
enemy2_walking = true;
enemy3_walking = true;
enemy4_walking = true;
enemy1_wtf = false;
enemy2_wtf = false;
enemy3_wtf = false;
enemy4_wtf = false;
enemy1_wtf_timer = 0;
enemy2_wtf_timer = 0;
enemy3_wtf_timer = 0;
enemy4_wtf_timer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy4_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy4_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
enemy4_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
if (enemy1.hitTest(hitter) && enemy2.hitTest(hitter) && enemy3.hitTest(hitter) && enemy4.hitTest(hitter)) {
panic = true;
if (once == 0) {
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
}
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
if (enemy1.hitTest(hitter) && enemy2.hitTest(hitter) && enemy3.hitTest(hitter) && enemy4.hitTest(hitter)) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
}
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
if (enemy1.hitTest(hitter) && enemy2.hitTest(hitter) && enemy3.hitTest(hitter) && enemy4.hitTest(hitter)) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy4_walking = false;
once = 1;
}
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
if (enemy1.hitTest(hitter) && enemy2.hitTest(hitter) && enemy3.hitTest(hitter) && enemy4.hitTest(hitter)) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
once = 1;
}
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
hut1.onPress = function () {};
hut2.onPress = function () {};
hut3.onPress = function () {};
hut4.onPress = function () {};
hut5.onPress = function () {};
rock1.onPress = function () {};
cover.onPress = function () {};
npc1.onEnterFrame = function () {
if (panic) {
npcSpeed = 4;
npc1.gotoAndStop('run');
npc2.gotoAndStop('run');
npc3.gotoAndStop('run');
npc4.gotoAndStop('run');
npc5.gotoAndStop('run');
npc6.gotoAndStop('run');
}
if (enemy1_alive) {
if (enemy1_walking) {
if (enemy1left) {
enemy1._xscale = -100;
enemy1._x -= 1.7;
} else {
enemy1._xscale = 100;
enemy1._x += 1.7;
}
}
}
if (enemy1._x < 10) {
enemy1left = false;
}
if (enemy1._x > 400) {
enemy1left = true;
}
if (enemy2_alive) {
if (enemy2_walking) {
if (enemy2left) {
enemy2._xscale = 100;
enemy2._x -= 2;
} else {
enemy2._xscale = -100;
enemy2._x += 2;
}
}
}
if (enemy2._x < 10) {
enemy2left = false;
}
if (enemy2._x > 400) {
enemy2left = true;
}
if (enemy3_alive) {
if (enemy3_walking) {
if (enemy3left) {
enemy3._xscale = -100;
enemy3._x -= 2;
} else {
enemy3._xscale = 100;
enemy3._x += 2;
}
}
}
if (enemy3._x < 10) {
enemy3left = false;
}
if (enemy3._x > 400) {
enemy3left = true;
}
if (enemy4_alive) {
if (enemy4_walking) {
if (enemy4left) {
enemy4._xscale = -100;
enemy4._x -= 2;
} else {
enemy4._xscale = 100;
enemy4._x += 2;
}
}
}
if (enemy4._x < 10) {
enemy4left = false;
}
if (enemy4._x > 400) {
enemy4left = true;
}
if (npc1left) {
npc1._xscale = 100;
npc1._x -= npcSpeed;
} else {
npc1._xscale = -100;
npc1._x += npcSpeed;
}
if (npc2left) {
npc2._xscale = -100;
npc2._x -= npcSpeed;
} else {
npc2._xscale = 100;
npc2._x += npcSpeed;
}
if (npc3left) {
npc3._xscale = 100;
npc3._x -= npcSpeed;
} else {
npc3._xscale = -100;
npc3._x += npcSpeed;
}
if (npc4left) {
npc4._xscale = -100;
npc4._x -= npcSpeed;
} else {
npc4._xscale = 100;
npc4._x += npcSpeed;
}
if (npc5left) {
npc5._xscale = 100;
npc5._x -= npcSpeed;
} else {
npc5._xscale = -100;
npc5._x += npcSpeed;
}
if (npc6left) {
npc6._xscale = -100;
npc6._x -= npcSpeed;
} else {
npc6._xscale = 100;
npc6._x += npcSpeed;
}
if (npc1._x < -25) {
npc1left = false;
}
if (npc1._x > 660) {
npc1left = true;
}
if (npc2._x < -25) {
npc2left = false;
}
if (npc2._x > 660) {
npc2left = true;
}
if (npc3._x < -25) {
npc3left = false;
}
if (npc3._x > 660) {
npc3left = true;
}
if (npc4._x < -25) {
npc4left = false;
}
if (npc4._x > 660) {
npc4left = true;
}
if (npc5._x < -25) {
npc5left = false;
}
if (npc5._x > 660) {
npc5left = true;
}
if (npc6._x < -25) {
npc6left = false;
}
if (npc6._x > 660) {
npc6left = true;
}
};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 1178 {
}
movieClip 1184 {
}
movieClip 1193 {
}
movieClip 1206 {
}
movieClip 1210 {
}
movieClip 1227 {
}
movieClip 1228 {
frame 42 {
stop();
}
}
movieClip 1234 {
}
movieClip 1238 {
}
movieClip 1239 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1244 {
}
movieClip 1253 {
}
movieClip 1266 {
}
movieClip 1283 {
frame 42 {
stop();
}
}
movieClip 1289 {
}
movieClip 1290 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1291 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1292 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1301 {
}
movieClip 1307 {
}
movieClip 1320 {
}
movieClip 1333 {
frame 42 {
stop();
}
}
movieClip 1339 {
}
movieClip 1341 {
frame 1 {
stop();
}
}
movieClip 1347 {
frame 10 {
stop();
}
}
movieClip 1353 {
frame 1 {
stop();
}
}
movieClip 1360 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1367 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1386 {
frame 27 {
stop();
}
}
movieClip 1387 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1388 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1389 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1390 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1392 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1393 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1396 {
}
frame 36 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission7');
}
}
movieClip 1399 {
frame 1 {
_root.stop();
}
frame 352 {
_root.play();
}
}
frame 37 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m7');
}
}
frame 38 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar1._x = enemy1._x;
bar2._xscale = enemy2_attackingTimer;
bar2._x = enemy2._x;
bar3._xscale = enemy3_attackingTimer;
bar3._x = enemy3._x;
bar4._xscale = enemy4_attackingTimer;
bar4._x = enemy4._x;
bar5._xscale = enemy5_attackingTimer;
bar5._x = enemy5._x;
if (enemy1_attackingTimer > 0 && enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
}
if (enemy1_attackingTimer > 35) {
bar1.gotoAndStop('ready');
}
if (enemy1_attackingTimer < 0) {
bar1.gotoAndStop('minus');
}
if (enemy2_attackingTimer > 0 && enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
}
if (enemy2_attackingTimer > 35) {
bar2.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 0) {
bar2.gotoAndStop('minus');
}
if (enemy3_attackingTimer > 0 && enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
}
if (enemy3_attackingTimer > 35) {
bar3.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 0) {
bar3.gotoAndStop('minus');
}
if (enemy4_attackingTimer > 0 && enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
}
if (enemy4_attackingTimer > 35) {
bar4.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 0) {
bar4.gotoAndStop('minus');
}
if (enemy5_attackingTimer > 0 && enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
}
if (enemy5_attackingTimer > 35) {
bar5.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 0) {
bar5.gotoAndStop('minus');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene8');
}
}
function stageOver() {
if (!enemy1_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (enemy1_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 10) {
ammoclips.gotoAndStop('10c');
}
if (ammo == 9) {
ammoclips.gotoAndStop('9c');
}
if (ammo == 8) {
ammoclips.gotoAndStop('8c');
}
if (ammo == 7) {
ammoclips.gotoAndStop('7c');
}
if (ammo == 6) {
ammoclips.gotoAndStop('6c');
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking && !enemy3_wtf && !enemy3_walking) {
enemy3_attacking = true;
}
if (!enemy3_attacking && enemy3_wtf && !enemy3_walking) {
++enemy3_wtf_timer;
enemy3.gotoAndStop('wtf');
if (enemy3_wtf_timer == 99) {
enemy3_wtf = false;
enemy3_wtf_timer = 0;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking && !enemy4_wtf && !enemy4_walking) {
enemy4_attacking = true;
}
if (!enemy4_attacking && enemy4_wtf && !enemy4_walking) {
++enemy4_wtf_timer;
enemy4.gotoAndStop('wtf');
if (enemy4_wtf_timer == 99) {
enemy4_wtf = false;
enemy4_wtf_timer = 0;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
if (panic) {
++enemy5_idleTimer;
}
if (enemy5_idleTimer > 284) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy3_idleTimer = 0;
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy4_idleTimer = 0;
}
}
}
if (enemy5_alive) {
if (enemy5_attacking) {
enemy5.gotoAndStop('aim');
++enemy5_attackingTimer;
if (enemy5_attackingTimer > 50) {
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
enemy5.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 7;
once = 0;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 30, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
enemy5_alive = true;
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
npcSpeed = 0;
npc1run = false;
npc2run = false;
npc3run = false;
npc4run = false;
npc5run = false;
npc6run = false;
npc1left = true;
npc2left = false;
npc3left = true;
npc4left = false;
npc5left = true;
npc6left = false;
npcKilled = false;
enemy1left = true;
enemy2left = false;
enemy3left = true;
enemy4left = true;
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_alive = true;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
if (once == 0) {
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy1_walking = false;
enemy2_walking = false;
enemy4_walking = false;
once = 1;
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
once = 1;
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
enemy5.onPress = function () {
if (enemy5_alive) {
enemy5_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
};
hut1.onPress = function () {};
hut2.onPress = function () {};
hut3.onPress = function () {};
hut4.onPress = function () {};
hut5.onPress = function () {};
rock1.onPress = function () {};
cover.onPress = function () {};
npc1.onEnterFrame = function () {
if (panic) {
npcSpeed = 4;
npc1.gotoAndStop('run');
npc2.gotoAndStop('run');
npc3.gotoAndStop('run');
npc4.gotoAndStop('run');
npc5.gotoAndStop('run');
npc6.gotoAndStop('run');
}
if (enemy1_alive) {
if (enemy1_walking) {
if (enemy1left) {
enemy1._xscale = -70;
enemy1._x -= 1.7;
} else {
enemy1._xscale = 70;
enemy1._x += 1.7;
}
}
}
if (enemy1._x < 10) {
enemy1left = false;
}
if (enemy1._x > 400) {
enemy1left = true;
}
if (enemy2_alive) {
if (enemy2_walking) {
if (enemy2left) {
enemy2._xscale = 100;
enemy2._x -= 2;
} else {
enemy2._xscale = -100;
enemy2._x += 2;
}
}
}
if (enemy2._x < 10) {
enemy2left = false;
}
if (enemy2._x > 400) {
enemy2left = true;
}
if (enemy3_alive) {
if (enemy3_walking) {
if (enemy3left) {
enemy3._xscale = -70;
enemy3._x -= 2;
} else {
enemy3._xscale = 70;
enemy3._x += 2;
}
}
}
if (enemy3._x < 10) {
enemy3left = false;
}
if (enemy3._x > 400) {
enemy3left = true;
}
if (enemy4_alive) {
if (enemy4_walking) {
if (enemy4left) {
enemy4._xscale = -100;
enemy4._x -= 2;
} else {
enemy4._xscale = 100;
enemy4._x += 2;
}
}
}
if (enemy4._x < 10) {
enemy4left = false;
}
if (enemy4._x > 400) {
enemy4left = true;
}
if (npc1left) {
npc1._xscale = 100;
npc1._x -= npcSpeed;
} else {
npc1._xscale = -100;
npc1._x += npcSpeed;
}
if (npc2left) {
npc2._xscale = -100;
npc2._x -= npcSpeed;
} else {
npc2._xscale = 100;
npc2._x += npcSpeed;
}
if (npc3left) {
npc3._xscale = -100;
npc3._x -= npcSpeed;
} else {
npc3._xscale = 100;
npc3._x += npcSpeed;
}
if (npc4left) {
npc4._xscale = 100;
npc4._x -= npcSpeed;
} else {
npc4._xscale = -100;
npc4._x += npcSpeed;
}
if (npc1._x < -25) {
npc1left = false;
}
if (npc1._x > 660) {
npc1left = true;
}
if (npc2._x < -25) {
npc2left = false;
}
if (npc2._x > 660) {
npc2left = true;
}
if (npc3._x < -25) {
npc3left = false;
}
if (npc3._x > 660) {
npc3left = true;
}
if (npc4._x < -25) {
npc4left = false;
}
if (npc4._x > 660) {
npc4left = true;
}
if (npc5._x < -25) {
npc5left = false;
}
if (npc5._x > 660) {
npc5left = true;
}
if (npc6._x < -25) {
npc6left = false;
}
if (npc6._x > 660) {
npc6left = true;
}
};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 1415 {
}
movieClip 1416 {
}
movieClip 1417 {
}
movieClip 1422 {
}
movieClip 1431 {
}
movieClip 1444 {
}
movieClip 1448 {
}
movieClip 1469 {
}
movieClip 1470 {
frame 42 {
stop();
}
}
movieClip 1476 {
}
movieClip 1480 {
}
movieClip 1481 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1487 {
}
movieClip 1496 {
}
movieClip 1509 {
}
movieClip 1522 {
frame 42 {
stop();
}
}
movieClip 1528 {
}
movieClip 1530 {
frame 1 {
stop();
}
}
movieClip 1536 {
frame 10 {
stop();
}
}
movieClip 1542 {
frame 1 {
stop();
}
}
movieClip 1549 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1556 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1575 {
frame 27 {
stop();
}
}
movieClip 1576 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1585 {
}
movieClip 1596 {
}
movieClip 1607 {
}
movieClip 1608 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1609 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1610 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1612 {
}
movieClip 1614 {
}
movieClip 1616 {
}
movieClip 1618 {
}
movieClip 1620 {
}
movieClip 1622 {
}
movieClip 1626 {
}
frame 39 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission8');
}
}
movieClip 1628 {
frame 1 {
_root.stop();
}
frame 338 {
_root.play();
}
}
frame 40 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m8');
}
}
frame 41 {
function addIndicator() {
bar1._xscale = enemy1_attackingTimer;
bar2._xscale = enemy2_attackingTimer;
bar3._xscale = enemy3_attackingTimer;
bar4._xscale = enemy4_attackingTimer;
bar5._xscale = enemy5_attackingTimer;
if (enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
} else {
bar1.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
} else {
bar2.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
} else {
bar3.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
} else {
bar4.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
} else {
bar5.gotoAndStop('ready');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('cutscene9');
}
}
function stageOver() {
if (!enemy1_alive && !enemy2_alive && !enemy3_alive && !enemy4_alive && !enemy5_alive) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (ammo == 0) {
if (enemy1_alive || enemy2_alive || enemy3_alive) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50 || enemy5_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking) {
++enemy1_idleTimer;
if (enemy1_idleTimer > 224) {
enemy1_attacking = true;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking) {
++enemy2_idleTimer;
if (enemy2_idleTimer > 284) {
enemy2_attacking = true;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking) {
++enemy3_idleTimer;
if (enemy3_idleTimer > 64) {
enemy3_attacking = true;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking) {
++enemy4_idleTimer;
if (enemy4_idleTimer > 315) {
enemy4_attacking = true;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
++enemy5_idleTimer;
if (enemy5_idleTimer > 184) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy1.gotoAndStop('back');
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = 0;
enemy2_idleTimer = 0;
enemy2.gotoAndStop('back');
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = 0;
enemy3_idleTimer = 0;
enemy3.gotoAndStop('back');
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = 0;
enemy4_idleTimer = 0;
enemy4.gotoAndStop('back');
}
}
}
if (enemy5_alive) {
if (enemy5_attacking) {
enemy5.gotoAndStop('aim');
++enemy5_attackingTimer;
if (enemy5_attackingTimer > 50) {
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
enemy5.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 8;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 100, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy5_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy4_attacking = false;
enemy5_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy4_attackingTimer = 0;
enemy5_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
enemy4_idleTimer = 0;
enemy5_idleTimer = 0;
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive || enemy5_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
enemy5.onPress = function () {
if (enemy5_alive) {
enemy5_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy5_alive = false;
enemy5.gotoAndStop('dead');
}
};
rock1.onPress = function () {};
rock2.onPress = function () {};
rock3.onPress = function () {};
rock4.onPress = function () {};
rock5.onPress = function () {};
cover.onPress = function () {};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 1635 {
}
movieClip 1637 {
}
movieClip 1639 {
}
movieClip 1641 {
}
movieClip 1643 {
}
movieClip 1645 {
}
movieClip 1647 {
}
movieClip 1650 {
}
frame 42 {
play();
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('mission9');
}
}
movieClip 1652 {
frame 1 {
_root.stop();
}
frame 267 {
_root.play();
}
}
frame 43 {
stopAllSounds();
stop();
}
instance of movieClip 315 {
onClipEvent (release) {
stopAllSounds();
_root.gotoAndStop('m9');
}
}
frame 44 {
function addIndicator() {
if (!bighit) {
--bigtime;
bigguy.gotoAndStop('raw');
if (bigtime == 0) {
bighit = true;
bigguy.gotoAndStop('idle');
bigtime = 46;
}
}
bar1._xscale = enemy1_attackingTimer;
bar2._xscale = enemy2_attackingTimer;
bar3._xscale = enemy3_attackingTimer;
bar4._xscale = enemy4_attackingTimer;
if (enemy1_attackingTimer > 0 && enemy1_attackingTimer < 35) {
bar1.gotoAndStop('normal');
}
if (enemy1_attackingTimer > 35) {
bar1.gotoAndStop('ready');
}
if (enemy1_attackingTimer < 0) {
bar1.gotoAndStop('minus');
}
if (enemy2_attackingTimer > 0 && enemy2_attackingTimer < 35) {
bar2.gotoAndStop('normal');
}
if (enemy2_attackingTimer > 35) {
bar2.gotoAndStop('ready');
}
if (enemy2_attackingTimer < 0) {
bar2.gotoAndStop('minus');
}
if (enemy3_attackingTimer > 0 && enemy3_attackingTimer < 35) {
bar3.gotoAndStop('normal');
}
if (enemy3_attackingTimer > 35) {
bar3.gotoAndStop('ready');
}
if (enemy3_attackingTimer < 0) {
bar3.gotoAndStop('minus');
}
if (enemy4_attackingTimer > 0 && enemy4_attackingTimer < 35) {
bar4.gotoAndStop('normal');
}
if (enemy4_attackingTimer > 35) {
bar4.gotoAndStop('ready');
}
if (enemy4_attackingTimer < 0) {
bar4.gotoAndStop('minus');
}
if (enemy5_attackingTimer > 0 && enemy5_attackingTimer < 35) {
bar5.gotoAndStop('normal');
}
if (enemy5_attackingTimer > 35) {
bar5.gotoAndStop('ready');
}
if (enemy5_attackingTimer < 0) {
bar5.gotoAndStop('minus');
}
}
function stageCompleted() {
if (stageCompletedTimer == 80) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('end');
}
}
function stageOver() {
if (bignum < 0) {
if (stageCompletedTimer == 0) {
_root.attachMovie('fadeOut', 'fadeOut', _root.getNextHighestDepth());
}
++stageCompletedTimer;
}
if (!takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
playerKilled = true;
Mouse.show();
gotoAndStop('reset');
}
}
if (npcKilled) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
if (ammo == 0) {
if (bignum > 0) {
stopAllSounds();
target_mc.removeMovieClip();
ammoclips.removeMovieClip();
lineThing.removeMovieClip();
gun.removeMovieClip();
inGame = false;
Mouse.show();
gotoAndStop('reset');
}
}
}
function showAmmo() {
if (ammo < 0) {
ammo = 0;
}
if (ammo == 10) {
ammoclips.gotoAndStop('10c');
}
if (ammo == 9) {
ammoclips.gotoAndStop('9c');
}
if (ammo == 8) {
ammoclips.gotoAndStop('8c');
}
if (ammo == 7) {
ammoclips.gotoAndStop('7c');
}
if (ammo == 6) {
ammoclips.gotoAndStop('6c');
}
if (ammo == 5) {
ammoclips.gotoAndStop('5c');
}
if (ammo == 4) {
ammoclips.gotoAndStop('4c');
}
if (ammo == 3) {
ammoclips.gotoAndStop('3c');
}
if (ammo == 2) {
ammoclips.gotoAndStop('2c');
}
if (ammo == 1) {
ammoclips.gotoAndStop('1c');
}
if (ammo == 0) {
ammoclips.gotoAndStop('0c');
}
}
function covering() {
if (cover._y == 170) {
takingCover = true;
} else {
takingCover = false;
}
if (takingCover) {
if (enemy1_attackingTimer == 50 || enemy2_attackingTimer == 50 || enemy3_attackingTimer == 50 || enemy4_attackingTimer == 50) {
smash_sound.start();
++shake;
}
}
if (_ymouse > 350) {
cover._y -= 50;
} else {
cover._y += 50;
}
if (cover._y > 370) {
cover._y = 370;
}
if (cover._y < 170) {
cover._y = 170;
}
}
function enemies_idle() {
if (enemy1_alive) {
if (!enemy1_attacking && !enemy1_wtf && !enemy1_walking) {
enemy1_attacking = true;
}
if (!enemy1_attacking && enemy1_wtf && !enemy1_walking) {
++enemy1_wtf_timer;
enemy1.gotoAndStop('wtf');
if (enemy1_wtf_timer == 99) {
enemy1_wtf = false;
enemy1_wtf_timer = 0;
}
}
}
if (enemy2_alive) {
if (!enemy2_attacking && !enemy2_wtf && !enemy2_walking) {
enemy2_attacking = true;
}
if (!enemy2_attacking && enemy2_wtf && !enemy2_walking) {
++enemy2_wtf_timer;
enemy2.gotoAndStop('wtf');
if (enemy2_wtf_timer == 99) {
enemy2_wtf = false;
enemy2_wtf_timer = 0;
}
}
}
if (enemy3_alive) {
if (!enemy3_attacking && !enemy3_wtf && !enemy3_walking) {
enemy3_attacking = true;
}
if (!enemy3_attacking && enemy3_wtf && !enemy3_walking) {
++enemy3_wtf_timer;
enemy3.gotoAndStop('wtf');
if (enemy3_wtf_timer == 99) {
enemy3_wtf = false;
enemy3_wtf_timer = 0;
}
}
}
if (enemy4_alive) {
if (!enemy4_attacking && !enemy4_wtf && !enemy4_walking) {
enemy4_attacking = true;
}
if (!enemy4_attacking && enemy4_wtf && !enemy4_walking) {
++enemy4_wtf_timer;
enemy4.gotoAndStop('wtf');
if (enemy4_wtf_timer == 99) {
enemy4_wtf = false;
enemy4_wtf_timer = 0;
}
}
}
if (enemy5_alive) {
if (!enemy5_attacking) {
if (panic) {
++enemy5_idleTimer;
}
if (enemy5_idleTimer > 284) {
enemy5_attacking = true;
}
}
}
}
function enemies_attacking() {
if (enemy1_alive) {
if (enemy1_attacking) {
enemy1.gotoAndStop('aim');
++enemy1_attackingTimer;
if (enemy1_attackingTimer > 50) {
enemy1_attacking = false;
enemy1_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy1_idleTimer = 0;
}
}
}
if (enemy2_alive) {
if (enemy2_attacking) {
enemy2.gotoAndStop('aim');
++enemy2_attackingTimer;
if (enemy2_attackingTimer > 50) {
enemy2_attacking = false;
enemy2_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy2_idleTimer = 0;
}
}
}
if (enemy3_alive) {
if (enemy3_attacking) {
enemy3.gotoAndStop('aim');
++enemy3_attackingTimer;
if (enemy3_attackingTimer > 50) {
enemy3_attacking = false;
enemy3_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy3_idleTimer = 0;
}
}
}
if (enemy4_alive) {
if (enemy4_attacking) {
enemy4.gotoAndStop('aim');
++enemy4_attackingTimer;
if (enemy4_attackingTimer > 50) {
enemy4_attacking = false;
enemy4_attackingTimer = Math.round(Math.random() * -42) + -32;
enemy4_idleTimer = 0;
}
}
}
if (enemy5_alive) {
if (enemy5_attacking) {
enemy5.gotoAndStop('aim');
++enemy5_attackingTimer;
if (enemy5_attackingTimer > 50) {
enemy5_attacking = false;
enemy5_attackingTimer = 0;
enemy5_idleTimer = 0;
enemy5.gotoAndStop('back');
}
}
}
}
function shaker() {
if (shake == 0) {
_root._x = 0;
_root._y = 0;
} else {
if (shake == 1) {
shake += 1;
_root._x += 3;
_root._y += 3;
} else {
if (shake == 2) {
shake += 1;
_root._y -= 5;
_root._x -= 5;
} else {
if (shake > 2) {
shake = 0;
_root._x += 2;
_root._y += 2;
}
}
}
}
}
stop();
smash_sound = new Sound();
smash_sound.attachSound('crash.wav');
inGame = true;
playerKilled = false;
mission = 9;
once = 0;
bignum = 5;
bighit = true;
bigtime = 46;
_root.attachMovie('target_mc', 'target_mc', _root.getNextHighestDepth());
_root.attachMovie('ammoclips', 'ammoclips', _root.getNextHighestDepth(), {'_x': 30, '_y': 0});
_root.attachMovie('gun', 'gun', _root.getNextHighestDepth(), {'_x': 0, '_y': 360});
panic = false;
enemy1left = true;
enemy2left = false;
enemy3left = true;
enemy4left = true;
ammo = 5;
shake = 0;
stageCompletedTimer = 0;
takingCover = false;
enemy1_walking = true;
enemy2_walking = true;
enemy3_walking = true;
enemy4_walking = true;
enemy1_wtf = false;
enemy2_wtf = false;
enemy3_wtf = false;
enemy4_wtf = false;
enemy1_wtf_timer = 0;
enemy2_wtf_timer = 0;
enemy3_wtf_timer = 0;
enemy4_wtf_timer = 0;
enemy1_alive = true;
enemy2_alive = true;
enemy3_alive = true;
enemy4_alive = true;
enemy1_attacking = false;
enemy2_attacking = false;
enemy3_attacking = false;
enemy4_attacking = false;
enemy1_attackingTimer = 0;
enemy2_attackingTimer = 0;
enemy3_attackingTimer = 0;
enemy4_attackingTimer = 0;
enemy1_idleTimer = 0;
enemy2_idleTimer = 0;
enemy3_idleTimer = 0;
enemy4_idleTimer = 0;
bigguy.onPress = function () {
if (bighit) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
--bignum;
bighit = false;
}
};
_root.onMouseDown = function () {
if (inGame) {
if (enemy1_alive || enemy2_alive || enemy3_alive || enemy4_alive) {
if (!takingCover) {
if (!ammo == 0) {
--ammo;
_root.attachMovie('shotFlash', 'shotFlash', _root.getNextHighestDepth());
}
}
}
}
};
enemy1.onPress = function () {
if (enemy1_alive) {
if (once == 0) {
enemy2_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy2_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy1_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy1_alive = false;
enemy1.gotoAndStop('dead');
}
};
enemy2.onPress = function () {
if (enemy2_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy3_wtf = true;
enemy4_wtf = true;
}
enemy1_walking = false;
enemy3_walking = false;
enemy4_walking = false;
once = 1;
enemy2_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy2_alive = false;
enemy2.gotoAndStop('dead');
}
};
enemy3.onPress = function () {
if (enemy3_alive) {
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy4_wtf = true;
}
panic = true;
enemy1_walking = false;
enemy2_walking = false;
enemy4_walking = false;
once = 1;
enemy3_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy3_alive = false;
enemy3.gotoAndStop('dead');
}
};
enemy4.onPress = function () {
if (enemy4_alive) {
panic = true;
if (once == 0) {
enemy1_wtf = true;
enemy2_wtf = true;
enemy3_wtf = true;
}
enemy1_walking = false;
enemy2_walking = false;
enemy3_walking = false;
once = 1;
enemy4_attackingTimer = 0;
_root.attachMovie('lineThing', 'lineThing', _root.getNextHighestDepth(), {'_x': 0, '_y': 20});
enemy4_alive = false;
enemy4.gotoAndStop('dead');
}
};
hut1.onPress = function () {};
hut2.onPress = function () {};
hut3.onPress = function () {};
hut4.onPress = function () {};
hut5.onPress = function () {};
rock1.onPress = function () {};
cover.onPress = function () {};
npc1.onEnterFrame = function () {};
npc1.onPress = function () {
npcKilled = true;
};
npc2.onPress = function () {
npcKilled = true;
};
npc3.onPress = function () {
npcKilled = true;
};
npc4.onPress = function () {
npcKilled = true;
};
npc5.onPress = function () {
npcKilled = true;
};
npc6.onPress = function () {
npcKilled = true;
};
target_mc.onEnterFrame = function () {
if (inGame) {
Mouse.hide();
}
this._x = _xmouse;
this._y = _ymouse;
gun._x = _xmouse;
ammoclips.swapDepths(_root.getNextHighestDepth());
target_mc.swapDepths(_root.getNextHighestDepth());
shotFlash.swapDepths(_root.getNextHighestDepth());
gun.swapDepths(_root.getNextHighestDepth());
fadeOut.swapDepths(_root.getNextHighestDepth());
enemies_idle();
enemies_attacking();
covering();
showAmmo();
stageOver();
stageCompleted();
shaker();
addIndicator();
};
}
movieClip 1668 {
}
movieClip 1669 {
}
movieClip 1670 {
}
movieClip 1678 {
}
movieClip 1687 {
}
movieClip 1698 {
}
movieClip 1699 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1705 {
}
movieClip 1714 {
}
movieClip 1727 {
}
movieClip 1744 {
}
movieClip 1745 {
frame 42 {
stop();
}
}
movieClip 1751 {
}
movieClip 1755 {
}
movieClip 1757 {
frame 1 {
stop();
}
}
movieClip 1763 {
frame 10 {
stop();
}
}
movieClip 1769 {
frame 1 {
stop();
}
}
movieClip 1776 {
frame 1 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1783 {
frame 1 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1802 {
frame 27 {
stop();
}
}
movieClip 1803 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1804 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1806 {
}
movieClip 1807 {
}
movieClip 1809 {
}
movieClip 1811 {
}
movieClip 1812 {
}
movieClip 1813 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1814 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1816 {
}
movieClip 1817 {
}
movieClip 1820 {
}
instance of movieClip 192 {
onClipEvent (release) {
stopAllSounds();
_root.nextFrame();
}
}
movieClip 1822 {
frame 1 {
_root.stop();
}
frame 1030 {
_root.play();
}
}
frame 46 {
stop();
}
instance of movieClip 19 {
onClipEvent (release) {
getURL('http://www.stoneagegames.com', '_blank');
}
}
button 1827 {
on (release) {
getURL('http://www.stoneagegames.com/', '_blank');
}
}
button 1830 {
on (release) {
gotoAndStop('title');
}
}
frame 120 {
gotoAndStop('title');
}