Frame 1 (24 B)
Stage.showMenu = false;
Frame 179 (20 B)
_quality = "HIGH";
Instance of Symbol 17 MovieClip "pl" in Frame 179 (115 B)
onClipEvent (load) {
if (_root.getBytesLoaded() >= (_root.getBytesTotal() - 1)) {
this._visible = false;
}
}
Frame 180 (8 B)
stop();
Instance of Symbol 32 MovieClip "logo" in Frame 180 (44 B)
onClipEvent (load) {
var canPlay = false;
}
Frame 212 (1.48 KiB) ●
function Mission(aCarAvailable, aAmmoToCollect, aFoodToCollect, aZombiesToKill, aSpawnRate, aSpawnAtStart, aMissionTitle, aSoldierCount) {
this.carAvailable = aCarAvailable;
this.ammoToCollect = aAmmoToCollect;
this.foodToCollect = aFoodToCollect;
this.zombiesToKill = aZombiesToKill;
this.spawnRate = aSpawnRate;
this.spawnAtStart = aSpawnAtStart;
this.missionTitle = aMissionTitle;
this.soldierCount = aSoldierCount;
return(this);
}
Stage.showMenu = false;
var confirmedKills = 0;
var deadChars = "";
var EASY = 0;
var MEDIUM = 1;
var HARD = 2;
var INSANE = 3;
var difficulty = NORMAL;
Mouse.show();
var currentMissionIndex = 0;
var messageToCrackers = "Well done! You've decompiled the game. If you're interested in how it works, feel free to get in touch. Make no mistake, however - if anyone rips off my work without consulting me, I will not hesitate to sue. That is fair, isn't it?";
var MODE_SURVIVAL = 0;
var MODE_MISSION = 1;
var MODE_DODGEMS = 2;
var gameMode = MODE_SURVIVAL;
var survivalMode = false;
var currentMission;
var survival = new Mission(false, -1, -1, -1, 100, 0, "Survival", 6);
var mission1 = new Mission(false, 0, 0, 15, 100, 2, "Dawn Patrol", 6);
var mission2 = new Mission(false, 2, 0, 0, 85, 7, "Survival Instinct", 6);
var mission3 = new Mission(true, 0, 0, 30, 60, 12, "Lone Gunman", 1);
var mission4 = new Mission(false, 0, 2, 40, 70, 8, "Night of the Rotten", 6);
var mission5 = new Mission(false, 0, 0, 0, 55, 30, "Babysitting", 7);
stop();
Instance of Symbol 49 MovieClip in Frame 212 (115 B)
onClipEvent (load) {
if (_root.getBytesLoaded() >= (_root.getBytesTotal() - 1)) {
this._visible = false;
}
}
Instance of Symbol 69 MovieClip "theStatic" in Frame 212 (81 B)
onClipEvent (enterFrame) {
var rnd = (random(23) + 1);
this.gotoAndStop(rnd);
}
Frame 217 (8 B)
stop();
Frame 220 (84 B)
Stage.showMenu = false;
confirmedKills = 0;
stopAllSounds();
_quality = "HIGH";
Frame 221 (8 B)
stop();
Frame 225 (8 B)
stop();
Frame 226 (22 B)
_root.deadChars = "";
Frame 260 (17 B)
stopAllSounds();
Frame 261 (60 B)
if (gameMode == MODE_SURVIVAL) {
gotoAndStop ("game");
}
Frame 262 (1.68 KiB) ●
Mouse.show();
if ((++currentMissionIndex) > 5) {
_root.gotoAndPlay("outroMissions");
}
_root.currentMission = eval ("_root.mission" + currentMissionIndex);
var cml = _root.currentMission.missionTitle;
switch (currentMissionIndex) {
case 1 :
desc = "Troops, we have a situation.\n\nThere have been reports of random assaults.\n\nGet out there and contain the problem!\n\nTIP: the extraction zone will appear in the lower right when your mission is completed.";
break;
case 2 :
desc = "CODE RED: emergency!\n\nWe're dealing with the Living Dead! This is for real, troops!\n\nA chopper has dropped some ammo. We're gonna need that - they're everywhere!\n\nGo out there, gather it, and get back to the extraction zone!";
break;
case 3 :
desc = "Bravo patrol has been wiped out!\n\nKeep the sole survivor alive long enough for us to extract him!\n\nTIP: to drive vehicles, click on a soldier, then click on the vehicle. The arrow keys will then drive that vehicle. Please note that the steering wheel alignment is not reset when you come to a halt. To exit the vehicle, come to a stop and then click on it.";
break;
case 4 :
desc = "Our science team is working on an antidote - but they need medical supplies!\n\nThere are some cases of medical supplies somewhere out there - go grab at least 2, and take out 40 zombies for experimentation purposes, then get to the extraction zone!";
break;
case 5 :
desc = "This is it, commander - we have an antidote! Cover the scientist whilst he gets it to the extraction zone in the South East! You must succeed - AT ALL COSTS! The future of humanity depends upon you!\n\nIf the scientist dies, it's all over for us...";
}
stop();
Instance of Symbol 69 MovieClip "theStatic" in Frame 262 (81 B)
onClipEvent (enterFrame) {
var rnd = (random(23) + 1);
this.gotoAndStop(rnd);
}
Frame 263 (5.6 KiB) ● ●
function dsa() {
fatController.deselectAll();
}
function sa() {
fatController.select(0);
}
function ssa() {
fatController.select(1);
}
function ssb() {
fatController.select(2);
}
function tq() {
if (_quality == "MEDIUM") {
_quality = "LOW";
} else {
_quality = "MEDIUM";
}
}
function kas() {
var i = 0;
while (i <= fatController.squadCount) {
eval ("_root.playingArea.hero" + i).health = -1;
eval ("_root.playingArea.hero" + i).gotoAndPlay("die");
i++;
}
}
function kaz() {
var _local1 = 0;
while (_local1 < fatController.zombies.length) {
curZombie = fatController.zombies[_local1];
curZombie.health = 0;
curZombie.gotoAndPlay("die");
curZombie.action = DYING;
_local1++;
}
}
function setCurrentHero(h) {
fatController.deselectAll();
if (h.health <= 0) {
return(undefined);
}
_root.currentHero = h;
_root.currentHero.activationBorder._visible = true;
soundControl.soldierA();
}
function absDelete(item) {
item.swapDepths(0);
removeMovieClip(item);
}
function regenTerrain() {
var i = 0;
while (i <= pondCount) {
var tmp = eval ("_root.playingArea.pond" + i);
if (_root.currentMissionIndex == 5) {
absDelete(tmp);
} else {
var clash = true;
while (clash) {
clash = false;
tmp._x = random(spawnDimension) + spawnXMod;
tmp._y = random(spawnDimension) + spawnYMod;
var j = 0;
while (j < i) {
if (tmp.hitZone.hitTest(eval ("_root.playingArea.pond" + j).hitZone)) {
clash = true;
break;
}
j++;
}
if (clash && ((++iterations) > MAX_ITERATIONS)) {
_root.absDelete(tmp);
clash = false;
}
}
}
i++;
}
iterations = 0;
var i = 0;
while (i <= bushesCount) {
var tmp = eval ("_root.playingArea.bushes" + i);
var clash = true;
while (clash) {
clash = false;
tmp._x = random(spawnDimension) + spawnXMod;
tmp._y = random(spawnDimension) + spawnYMod;
var j = 0;
while (j <= pondCount) {
if (tmp.hitTest(eval ("_root.playingArea.pond" + j).hitZone)) {
clash = true;
break;
}
j++;
}
if (!clash) {
var j = 0;
while (j < i) {
if (tmp.hitTest(eval ("_root.playingArea.bushes" + j).hitZone)) {
clash = true;
break;
}
j++;
}
}
if (clash && ((++iterations) > MAX_ITERATIONS)) {
_root.absDelete(tmp);
clash = false;
}
}
i++;
}
iterations = 0;
var i = 0;
while (i <= rocksCount) {
var tmp = eval ("_root.playingArea.rocks" + i);
var clash = true;
while (clash) {
clash = false;
tmp._x = random(spawnDimension) + spawnXMod;
tmp._y = random(spawnDimension) + spawnYMod;
var j = 0;
while (j <= pondCount) {
if (tmp.hitTest(eval ("_root.playingArea.pond" + j).hitZone)) {
clash = true;
break;
}
j++;
}
if (!clash) {
var j = 0;
while (j <= bushesCount) {
if (tmp.hitTest(eval ("_root.playingArea.bushes" + j).hitZone)) {
clash = true;
break;
}
j++;
}
}
if (!clash) {
var j = 0;
while (j < i) {
if (tmp.hitTest(eval ("_root.playingArea.rocks" + j))) {
clash = true;
break;
}
j++;
}
}
if (clash && ((++iterations) > MAX_ITERATIONS)) {
_root.absDelete(tmp);
clash = false;
}
}
i++;
}
}
function itemInPond(item) {
if (_root.currentMissionIndex == 5) {
return(undefined);
}
var i = 0;
while (i <= pondCount) {
if (item.hitTest(eval ("_root.playingArea.pond" + i).hitZone)) {
return(true);
}
i++;
}
}
function itemInBushes(item) {
var i = 0;
while (i <= bushesCount) {
if (item.hitTest(eval ("_root.playingArea.bushes" + i).hitZone)) {
return(true);
}
i++;
}
}
Stage.showMenu = true;
var ammoToCollect = _root.currentMission.ammoToCollect;
var foodToCollect = _root.currentMission.foodToCollect;
var zombiesToKill = _root.currentMission.zombiesToKill;
if (_root.survivalMode) {
clearConditions._visible = false;
}
_quality = "MEDIUM";
var spawnXMod = 50;
var spawnYMod = 90;
var movieDimension = 640;
var minPlayingAreaX = ((movieDimension * -1) - 100);
var minPlayingAreaY = (movieDimension * -1);
var maxPlayingAreaX = 0;
var maxPlayingAreaY = 0;
var scrollAmount = 7;
var currentHero = null;
var targetX = 0;
var targetY = 0;
var FRAME_UNTIL_REANIMATION = 100;
if (_root.difficulty == _root.EASY) {
FRAME_UNTIL_REANIMATION = 200;
} else if (_root.difficulty == _root.HARD) {
FRAME_UNTIL_REANIMATION = 60;
} else if (_root.difficulty == _root.INSANE) {
FRAME_UNTIL_REANIMATION = 30;
}
var keyListener = new Object();
keyListener.onKeyUp = function () {
if (Key.getCode() == 49) {
ssa();
} else if (Key.getCode() == 50) {
ssb();
} else if (Key.getCode() == 65) {
sa();
} else if (Key.getCode() == 68) {
dsa();
}
};
Key.addListener(keyListener);
var spawnDimension = 850;
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
myContextMenu.customItems.push(new ContextMenuItem("Deselect all troops", dsa));
myContextMenu.customItems.push(new ContextMenuItem("Select all troops", sa));
myContextMenu.customItems.push(new ContextMenuItem("Select squad 1", ssa));
myContextMenu.customItems.push(new ContextMenuItem("Select squad 2", ssb));
myContextMenu.customItems.push(new ContextMenuItem("Toggle graphic quality", tq));
this.menu = myContextMenu;
Mouse.hide();
stop();
var pondCount = 0;
var bushesCount = 3;
var rocksCount = 2;
var iterations = 0;
var MAX_ITERATIONS = 3;
regenTerrain();
Instance of Symbol 479 MovieClip "soundControl" in Frame 263 (996 B)
onClipEvent (load) {
function deathMoan() {
this.gotoAndPlay("moan" + random(14));
}
function moan() {
ticks = baseMoan + random(64);
this.gotoAndPlay("moan" + (14 + random(28)));
}
function soldierA() {
if (_parent.fatController.deadCount > _parent.fatController.squadCount) {
return(undefined);
}
this.gotoAndPlay("soldiera" + random(5));
}
function soldierB() {
if (_parent.fatController.deadCount > _parent.fatController.squadCount) {
return(undefined);
}
this.gotoAndPlay("soldierb" + random(6));
}
function soldierC() {
if (_parent.fatController.deadCount > _parent.fatController.squadCount) {
return(undefined);
}
this.gotoAndPlay("soldierc" + random(2));
}
function soldierD() {
if (_parent.fatController.deadCount > _parent.fatController.squadCount) {
return(undefined);
}
this.gotoAndPlay("soldierd" + random(3));
}
var ticks = 20;
var baseMoan = 200;
}
onClipEvent (enterFrame) {
if ((--ticks) == 0) {
moan();
}
}
Instance of Symbol 480 MovieClip in Frame 263 (555 B)
onClipEvent (enterFrame) {
if (this.hitTest(_parent.cursor)) {
if (_root.playingArea._y < _root.maxPlayingAreaY) {
_root.playingArea._y = _root.playingArea._y + _root.scrollAmount;
if (Key.isDown(16)) {
_root.playingArea._y = _root.playingArea._y + _root.scrollAmount;
}
if (_parent.cursor.arrowSel > 0) {
if (_parent.cursor.arrowSel == 3) {
_parent.cursor.arrowSel--;
} else {
_parent.cursor.arrowSel++;
}
} else {
_parent.cursor.arrowSel = 1;
}
_parent.cursor.gotoAndPlay("arrowSel");
}
}
}
Instance of Symbol 480 MovieClip in Frame 263 (555 B)
onClipEvent (enterFrame) {
if (this.hitTest(_parent.cursor)) {
if (_root.playingArea._y > _root.minPlayingAreaY) {
_root.playingArea._y = _root.playingArea._y - _root.scrollAmount;
if (Key.isDown(16)) {
_root.playingArea._y = _root.playingArea._y - _root.scrollAmount;
}
if (_parent.cursor.arrowSel > 0) {
if (_parent.cursor.arrowSel == 7) {
_parent.cursor.arrowSel--;
} else {
_parent.cursor.arrowSel++;
}
} else {
_parent.cursor.arrowSel = 5;
}
_parent.cursor.gotoAndPlay("arrowSel");
}
}
}
Instance of Symbol 480 MovieClip in Frame 263 (463 B)
onClipEvent (enterFrame) {
if (this.hitTest(_parent.cursor)) {
if (_root.playingArea._x > _root.minPlayingAreaX) {
_root.playingArea._x = _root.playingArea._x - _root.scrollAmount;
if (Key.isDown(16)) {
_root.playingArea._x = _root.playingArea._x - _root.scrollAmount;
}
if (_parent.cursor.arrowSel > 0) {
_parent.cursor.arrowSel++;
} else {
_parent.cursor.arrowSel = 3;
}
_parent.cursor.gotoAndPlay("arrowSel");
}
}
}
Instance of Symbol 480 MovieClip in Frame 263 (463 B)
onClipEvent (enterFrame) {
if (this.hitTest(_parent.cursor)) {
if (_root.playingArea._x < _root.maxPlayingAreaX) {
_root.playingArea._x = _root.playingArea._x + _root.scrollAmount;
if (Key.isDown(16)) {
_root.playingArea._x = _root.playingArea._x + _root.scrollAmount;
}
if (_parent.cursor.arrowSel > 0) {
_parent.cursor.arrowSel++;
} else {
_parent.cursor.arrowSel = 7;
}
_parent.cursor.gotoAndPlay("arrowSel");
}
}
}
Instance of Symbol 480 MovieClip in Frame 263 (231 B)
onClipEvent (enterFrame) {
if (((!_parent.cursor.dontChange) && (_parent.cursor.hitTest(this))) && (_parent.cursor._currentFrame >= 3)) {
_parent.cursor.gotoAndStop(1);
_parent.cursor.canControl = true;
}
}
Instance of Symbol 482 MovieClip in Frame 263 (1.04 KiB) ●
onClipEvent (load) {
var STAY_NIGHT_FOR = 700;
var TICKS_BETWEEN_CHANGE = 3;
this._alpha = 0;
var tick = 20;
var pauseTicks = 30;
var alphaIncrement = 1;
}
onClipEvent (enterFrame) {
if (this._visible) {
var moveAmount;
var dist = _root.fatController.calcDistance(this, _root.cursor);
moveAmount = dist / 2;
if (moveAmount > 27) {
moveAmount = 27;
} else if (moveAmount < 7) {
moveAmount = 7;
}
_root.fatController.moveItemTowards(this, _root.cursor._x, _root.cursor._y, moveAmount);
}
if (pauseTicks > 0) {
if ((--pauseTicks) <= 0) {
if (alphaIncrement == 1) {
this._x = _root.cursor._x;
this._y = _root.cursor._y;
}
this._visible = true;
}
return(undefined);
}
if ((--tick) <= 0) {
this._alpha = this._alpha + alphaIncrement;
tick = TICKS_BETWEEN_CHANGE;
}
if (this._alpha > 85) {
this._alpha = 84;
alphaIncrement = -1;
pauseTicks = STAY_NIGHT_FOR;
} else if (this._alpha < 5) {
this._alpha = 6;
this._visible = false;
alphaIncrement = 1;
pauseTicks = STAY_NIGHT_FOR;
}
}
Instance of Symbol 501 MovieClip "fatController" in Frame 263 (16.37 KiB) ● ● ●
onClipEvent (load) {
function moveItemTowards(item, targetX, targetY, walkDistance) {
if (item.facingRight && (targetX < item._x)) {
item._xscale = -100;
item.facingRight = false;
} else if ((!item.facingRight) && (targetX >= item._x)) {
item._xscale = 100;
item.facingRight = true;
}
if (_parent.itemInBushes(item)) {
walkDistance = walkDistance / 3;
} else if (_parent.itemInPond(item)) {
if (item.isSoldier) {
walkDistance = walkDistance / POND_SPEED_LOSS;
} else {
_parent.soundControl.gotoAndPlay("splash");
item.gotoAndPlay("sink");
item.health = 0;
walkDistance = 0;
item.action = DYING;
return(undefined);
}
}
var _local6 = true;
var _local5 = targetX - item._x;
var _local7 = targetY - item._y;
var _local4;
var _local8;
_local4 = walkDistance * (Math.abs(_local5) / (Math.abs(_local5) + Math.abs(_local7)));
_local8 = walkDistance - _local4;
if (Math.abs(_local5) > walkDistance) {
if (item._x > targetX) {
item._x = item._x - _local4;
} else {
item._x = item._x + _local4;
}
_local6 = false;
}
if (Math.abs(_local7) > walkDistance) {
if (item._y > targetY) {
item._y = item._y - _local8;
} else {
item._y = item._y + _local8;
}
_local6 = false;
}
if (_local6 && (item.isSoldier)) {
item.action = STAND_GROUND;
}
}
function calcDistance(clip1, clip2) {
var _local1 = clip1._x - clip2._x;
var _local2 = clip1._y - clip2._y;
return(Math.sqrt((_local1 * _local1) + (_local2 * _local2)));
}
function attackTargetEnemyIfInRange(ch) {
if (ch.action == ATTACKING) {
return(undefined);
}
if ((calcDistance(ch, ch.targetEnemy) < ch.range) && (ch.targetEnemy.health > 0)) {
ch.action = ATTACKING;
ch.gotoAndPlay("attack");
}
}
function deselectAll() {
var i = 0;
while (i <= squadCount) {
eval ("_root.playingArea.hero" + i).activationBorder._visible = false;
i++;
}
}
function select(n) {
deselectAll();
var aSel = false;
switch (n) {
case 0 :
var i = 0;
while (i <= squadCount) {
if (eval ("_root.playingArea.hero" + i).action < _root.fatController.DRIVING) {
eval ("_root.playingArea.hero" + i).activationBorder._visible = true;
aSel = true;
}
i++;
}
if (aSel) {
_root.soundControl.soldierA();
}
return;
case 1 :
var i = 0;
while (i < 3) {
if (eval ("_root.playingArea.hero" + i).action < _root.fatController.DRIVING) {
eval ("_root.playingArea.hero" + i).activationBorder._visible = true;
aSel = true;
}
i++;
}
if (aSel) {
_root.soundControl.soldierA();
}
return;
case 2 :
var i = 3;
while (i <= squadCount) {
if (eval ("_root.playingArea.hero" + i).action < _root.fatController.DRIVING) {
eval ("_root.playingArea.hero" + i).activationBorder._visible = true;
aSel = true;
}
i++;
}
if (!aSel) {
break;
}
_root.soundControl.soldierA();
}
}
function setCurrentTarget(t) {
var i = 0;
while (i <= squadCount) {
var h = eval ("_root.playingArea.hero" + i);
if (h.activationBorder._visible) {
h.targetEnemy = t;
h.targetEnemyDist = calcDistance(h, t);
h.action = TARGETING;
}
i++;
}
_root.soundControl.soldierC();
}
function setWaypoint() {
var absX = (_parent.cursor._x - _parent.playingArea._x);
var absY = (_parent.cursor._y - _parent.playingArea._y);
var selIndexX = 0;
var selIndexY = 0;
var doSound = false;
var i = 0;
while (i <= squadCount) {
var h = eval ("_root.playingArea.hero" + i);
if (h.activationBorder._visible) {
h.targetX = absX + (selIndexX * 22);
h.targetY = absY + (selIndexY * 34);
h.action = MOVING;
h.gotoAndPlay(1);
if ((++selIndexX) == 3) {
selIndexX = 0;
selIndexY++;
}
h.actionBuffer = _root.cursor.nextBuffer;
doSound = true;
}
i++;
}
if (doSound) {
_root.playingArea.waypoint._x = absX;
_root.playingArea.waypoint._y = absY;
_root.playingArea.waypoint.gotoAndPlay(1);
_root.soundControl.soldierB();
}
}
function spawnZombie() {
var _local2 = 0;
var _local1 = 0;
var _local3 = random(4);
if (_local3 == 0) {
_local2 = 0;
_local1 = random(1260) + 20;
} else if (_local3 == 1) {
_local2 = random(1170) - 20;
_local1 = 1190;
} else if (_local3 == 2) {
_local2 = 1280;
_local1 = random(1260) + 20;
} else {
_local2 = random(1170) - 20;
_local1 = 0;
}
spawnZombieInner(_local2, _local1, false);
}
function spawnZombieInner(theX, theY, forceSpawn) {
counter = startCounter;
if (startCounter > (counterDecrement + 2)) {
startCounter = startCounter - counterDecrement;
}
if (_root.soundControl.baseMoan > 20) {
_root.soundControl.baseMoan = _root.soundControl.baseMoan - 2;
}
var insertLoc = -1;
if (zombieCount > maxZombies) {
var curZombie;
var doneFade = false;
var i = 0;
while (i < zombies.length) {
if (zombies[i].action == GONE) {
_root.absDelete(zombies[i]);
insertLoc = i;
break;
}
if ((!doneFade) && (zombies[i].action == TOTALLY_DEAD)) {
zombies[i].action = FADING;
zombies[i].gotoAndPlay("fade");
doneFade = true;
}
i++;
}
if ((!forceSpawn) && (insertLoc == -1)) {
return(false);
}
}
var newZombie;
zombieCount++;
var prot;
if (forceSpawn) {
prot = _root.playingArea.protoZombieExSoldier;
} else {
var zombieD = random(40);
if (zombieD < 20) {
prot = _root.playingArea.protoZombie0;
} else if (zombieD < 30) {
prot = _root.playingArea.protoZombie1;
} else if (zombieD < 34) {
prot = _root.playingArea.protoZombie2;
} else if (zombieD < 38) {
prot = _root.playingArea.protoZombie4;
} else {
prot = _root.playingArea.protoZombie3;
}
}
duplicateMovieClip (prot, "zombie" + zombieCount, ++nextZombieAbs);
newZombie = eval ("_root.playingArea.zombie" + zombieCount);
newZombie.health = prot.health;
newZombie.range = prot.range;
newZombie.walkDistance = prot.walkDistance;
newZombie.isSoldier = false;
newZombie._visible = true;
newZombie.action = TARGETING;
if (zombieD == 38) {
newZombie._x = random(_root.playingArea._width - 300) + 150;
newZombie._y = random(_root.playingArea._height - 300) + 150;
newZombie.action = 0;
} else {
newZombie._x = theX;
newZombie._y = theY;
}
newZombie.swapDepths(++zombieLiveNextDepth);
if (insertLoc == -1) {
zombies.push(newZombie);
} else {
zombies[insertLoc] = newZombie;
}
return(true);
}
function blamPanels() {
var i = 0;
while (i <= squadCount) {
_root.absDelete(eval ("_root.bgPanel.panel" + i));
i++;
}
}
function hitTestSquad(item) {
var i = 0;
while (i <= squadCount) {
if (eval ("_root.playingArea.hero" + i).hitTest(item)) {
return(true);
}
i++;
}
return(false);
}
function hitTestWholeSquad(item) {
var r = false;
var i = 0;
while (i <= squadCount) {
var ch = eval ("_root.playingArea.hero" + i);
if (ch.health > 0) {
if (!ch.hitTest(item)) {
return(false);
}
r = true;
}
i++;
}
return(r);
}
function showExit() {
_parent.clearConditions.gotoAndStop(2);
_root.playingArea.extractionZone._visible = true;
_root.playingArea.extractionZone.play();
}
function missionUp() {
_root.gotoAndPlay("missionUp");
}
var zombieLiveNextDepth = 20000;
var zombieDeadNextDepth = 10000;
var deadCount = 0;
_parent.ammoToCollect = _root.currentMission.ammoToCollect;
_parent.foodToCollect = _root.currentMission.foodToCollect;
_parent.zombiesToKill = _root.currentMission.zombiesToKill;
var startCounter = _root.currentMission.spawnRate;
var counterDecrement = 1;
if (_root.difficulty == _root.EASY) {
counterDecrement = 1;
startCounter = startCounter * 1.4;
} else if (_root.difficulty == _root.HARD) {
counterDecrement = 2;
startCounter = startCounter * 0.8;
} else if (_root.difficulty == _root.INSANE) {
counterDecrement = 2;
startCounter = startCounter * 0.7;
}
_root.playingArea.protoZombie0.stop();
_root.playingArea.protoZombie0._visible = false;
_root.playingArea.protoZombie1.stop();
_root.playingArea.protoZombie1._visible = false;
_root.playingArea.protoZombie2.stop();
_root.playingArea.protoZombie2._visible = false;
_root.playingArea.protoZombie3.stop();
_root.playingArea.protoZombie3._visible = false;
_root.playingArea.protoZombie4.stop();
_root.playingArea.protoZombie4._visible = false;
var zTypes = 4;
var counter = 1;
var zombieCount = -1;
var zombies = new Array();
var maxZombies = 32;
var POND_SPEED_LOSS = 2;
var POND_HEALTH_LOSS = 0.25;
var squadCount = 0;
var STAND_GROUND = 0;
var MOVING = 1;
var TARGETING = 2;
var PRE_ATTACK = 3;
var ATTACKING = 4;
var TAKE_HIT = 5;
var DRIVING = 6;
var DYING = 7;
var TOTALLY_DEAD = 8;
var BURIED = 9;
var FADING = 10;
var GONE = 11;
squadCount = 0;
while (squadCount <= 10) {
if (eval ("_root.playingArea.hero" + squadCount) == null) {
squadCount--;
break;
}
squadCount++;
}
var i = 0;
while (i <= squadCount) {
ch = eval ("_root.playingArea.hero" + i);
if (i >= _root.currentMission.soldierCount) {
_root.absDelete(ch);
} else {
if (_root.deadChars.indexOf(("|" + ch.charName) + "|") > -1) {
ch.health = 0;
ch.startHealth = 1;
ch.gotoAndStop("buried");
ch.action = BURIED;
deadCount++;
} else {
ch.activationBorder._visible = false;
ch.targetX = ch._x;
ch.targetY = ch._y;
ch.targetEnemy = null;
ch.action = STAND_GROUND;
if (_root.difficulty == _root.EASY) {
ch.health = (ch.startHealth = 200);
} else if (_root.difficulty == _root.HARD) {
ch.health = (ch.startHealth = 60);
} else if (_root.difficulty == _root.INSANE) {
ch.health = (ch.startHealth = 40);
} else {
ch.health = (ch.startHealth = 100);
}
ch.targetEnemyDist = 999999 /* 0x0F423F */;
while (_root.itemInPond(ch)) {
ch._y++;
}
}
duplicateMovieClip (_root.bgPanel.panelTemplate, "panel" + i, 10 + i);
eval ("_root.bgPanel.panel" + i)._x = 503 - _root.bgPanel._x;
eval ("_root.bgPanel.panel" + i)._y = (5 + (i * _root.bgPanel.panelTemplate._height)) - _root.bgPanel._y;
eval ("_root.bgPanel.panel" + i).charName = ch.charName;
eval ("_root.bgPanel.panel" + i).charRole = ch.charRole;
}
i++;
}
squadCount = _root.currentMission.soldierCount - 1;
_root.absDelete(_root.bgPanel.panelTemplate);
while (_root.itemInPond(_root.playingArea.car)) {
_root.playingArea.car._y++;
}
if (!_root.currentMission.carAvailable) {
_root.absDelete(_root.playingArea.car);
} else {
_root.playingArea.car._x = 150;
_root.playingArea.car._y = 150;
}
if (!_root.survivalMode) {
if (_parent.ammoToCollect > 0) {
var i = 0;
while (i < (_parent.ammoToCollect + 1)) {
duplicateMovieClip (_root.playingArea.protoAmmoCrate, "ammocrate" + i, 127 + i);
var tmp = eval ("_root.playingArea.ammocrate" + i);
tmp._x = random(_parent.spawnDimension) + _parent.spawnXMod;
tmp._y = random(_parent.spawnDimension) + _parent.spawnYMod;
while (_root.itemInPond(tmp)) {
tmp._x = random(_parent.spawnDimension) + _parent.spawnXMod;
tmp._y = random(_parent.spawnDimension) + _parent.spawnYMod;
}
i++;
}
}
if (_parent.foodToCollect > 0) {
var i = 0;
while (i < (_parent.foodToCollect + 1)) {
duplicateMovieClip (_root.playingArea.protoFoodCrate, "foodcrate" + i, 227 + i);
var tmp = eval ("_root.playingArea.foodcrate" + i);
tmp._x = random(_parent.spawnDimension) + _parent.spawnXMod;
tmp._y = random(_parent.spawnDimension) + _parent.spawnYMod;
while (_root.itemInPond(tmp)) {
tmp._x = random(_parent.spawnDimension) + _parent.spawnXMod;
tmp._y = random(_parent.spawnDimension) + _parent.spawnYMod;
}
i++;
}
}
}
var nextZombieAbs = 0;
var i = 0;
while (i < _root.currentMission.spawnAtStart) {
spawnZombie();
i++;
}
}
onClipEvent (enterFrame) {
if (_parent.fadeOut.b) {
return(undefined);
}
if (deadCount > squadCount) {
_parent.fadeOut.b = true;
_parent.fadeOut.play();
Key.removeListener(_root.keyListener);
return(undefined);
}
if ((--counter) == 0) {
spawnZombie();
}
var ch;
var distance;
var i = 0;
while (i < zombies.length) {
zombies[i].targetEnemy = null;
zombies[i].targetEnemyDist = 9999999 /* 0x98967F */;
i++;
}
var allDead = true;
var i = 0;
while (i <= squadCount) {
ch = eval ("_root.playingArea.hero" + i);
if (ch.health > 0) {
eval ("_root.bgPanel.panel" + i).health._xscale = (ch.health / ch.startHealth) * 100;
allDead = false;
} else {
eval ("_root.bgPanel.panel" + i).gotoAndStop(2);
}
if (ch.action < DRIVING) {
if (ch.action == MOVING) {
moveItemTowards(ch, ch.targetX, ch.targetY, ch.walkDistance);
} else if (ch.action == TARGETING) {
if ((ch.targetEnemy == null) || (ch.targetEnemy.action >= DYING)) {
ch.targetEnemy = null;
ch.action = STAND_GROUND;
} else {
moveItemTowards(ch, ch.targetEnemy._x, ch.targetEnemy._y, ch.walkDistance);
attackTargetEnemyIfInRange(ch);
}
} else if (ch.action == STAND_GROUND) {
ch.gotoAndStop(1);
attackTargetEnemyIfInRange(ch);
} else if (ch.action == ATTACKING) {
if ((ch.targetEnemy == null) || (ch.targetEnemy.action >= DYING)) {
ch.targetEnemy = null;
ch.action = STAND_GROUND;
} else if (ch.targetEnemy.health <= 0) {
ch.targetEnemy = null;
ch.targetEnemyDist = 999999 /* 0x0F423F */;
ch.action = STAND_GROUND;
}
}
if (_root.itemInPond(ch)) {
ch.health = ch.health - POND_HEALTH_LOSS;
if (ch.health <= 0) {
_parent.soundControl.gotoAndPlay("splash");
ch.gotoAndPlay("splash");
ch.action = DYING;
return(undefined);
}
}
var j = 0;
while (j < zombies.length) {
curZombie = zombies[j];
if (curZombie.action < DYING) {
if (ch.hitTest(curZombie)) {
if (curZombie.action == ATTACKING) {
ch.health = ch.health - curZombie.attackDamage;
if (curZombie.attackDamage < 0) {
if (ch.health > 100) {
ch.health = 100;
}
} else {
_parent.soundControl.gotoAndPlay("chomp");
if (ch.health <= 0) {
ch.gotoAndPlay("die");
ch.action = DYING;
} else {
ch.blood.play();
if (ch.targetEnemy == null) {
ch.targetEnemy = curZombie;
ch.targetEnemyDist = calcDistance(ch, curZombie);
}
}
}
} else if (curZombie.action == PRE_ATTACK) {
} else {
curZombie.action = PRE_ATTACK;
curZombie.gotoAndPlay("chomp");
}
}
distance = calcDistance(ch, curZombie);
if (distance < curZombie.targetEnemyDist) {
curZombie.targetEnemyDist = distance;
curZombie.targetEnemy = ch;
if (((curZombie.walkDistance != 0) && (ch.action == STAND_GROUND)) && (distance < ch.targetEnemyDist)) {
ch.targetEnemy = curZombie;
ch.targetEnemyDist = distance;
}
}
}
j++;
}
}
i++;
}
var i = 0;
while (i < zombies.length) {
curZombie = zombies[i];
if (((curZombie.health > 0) && ((_parent.playingArea.car.moveSpeedCurrent > 1) || (_parent.playingArea.car.moveSpeedCurrent < -1))) && (curZombie.hitTest(_parent.playingArea.car))) {
curZombie.health = 0;
curZombie.gotoAndPlay("die");
curZombie.swapDepths(++zombieDeadNextDepth);
curZombie.action = DYING;
} else if (curZombie.action < TAKE_HIT) {
if (curZombie.health <= 0) {
curZombie.gotoAndPlay("die");
curZombie.swapDepths(++zombieDeadNextDepth);
curZombie.action = DYING;
}
if ((curZombie.targetEnemy == null) && (_root.playingArea.car != null)) {
curZombie.targetEnemy = _root.playingArea.car;
}
moveItemTowards(curZombie, curZombie.targetEnemy._x, curZombie.targetEnemy._y, curZombie.walkDistance);
}
i++;
}
if ((!_root.survivalMode) && (!_root.playingArea.extractionZone._visible)) {
if (_parent.ammoToCollect < 0) {
_parent.ammoToCollect = 0;
} else if (_parent.foodToCollect < 0) {
_parent.foodToCollect = 0;
} else if (_parent.zombiesToKill < 0) {
_parent.zombiesToKill = 0;
}
if (((_parent.ammoToCollect <= 0) && (_parent.foodToCollect <= 0)) && (_parent.zombiesToKill <= 0)) {
showExit();
}
}
if (allDead) {
deadCount = 100;
}
}
Instance of Symbol 512 MovieClip "clearConditions" in Frame 263 (67 B)
onClipEvent (enterFrame) {
_root.currentMission.ammoToCollect--;
}
Instance of Symbol 516 MovieClip "help" in Frame 263 (46 B)
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 519 MovieClip "fadeOut" in Frame 263 (47 B)
onClipEvent (load) {
var b = false;
stop();
}
Instance of Symbol 528 MovieClip "cursor" in Frame 263 (254 B)
onClipEvent (load) {
var canCommand = true;
startDrag ("", true);
var arrowSel = 0;
var dontChange = false;
var NOTHING = 0;
var BURY = 1;
var DRIVE = 2;
var nextBuffer = NOTHING;
}
onClipEvent (enterFrame) {
arrowSel = 0;
dontChange = false;
}
Frame 264 (697 B)
Stage.showMenu = false;
Mouse.show();
var ranking = "Private";
if (_root.confirmedKills > 500) {
ranking = "Supreme commander";
} else if (_root.confirmedKills > 350) {
ranking = "General";
} else if (_root.confirmedKills > 250) {
ranking = "Major";
} else if (_root.confirmedKills > 150) {
ranking = "Captain";
} else if (_root.confirmedKills > 100) {
ranking = "Lieutenant";
} else if (_root.confirmedKills > 50) {
ranking = "Sergeant major";
} else if (_root.confirmedKills > 35) {
ranking = "Master Sergeant";
} else if (_root.confirmedKills > 25) {
ranking = "Sergeant";
} else if (_root.confirmedKills > 10) {
ranking = "Corporal";
}
Instance of Symbol 69 MovieClip "theStatic" in Frame 264 (81 B)
onClipEvent (enterFrame) {
var rnd = (random(23) + 1);
this.gotoAndStop(rnd);
}
Frame 265 (8 B)
stop();
Frame 266 (48 B)
Stage.showMenu = false;
Mouse.show();
stop();
Instance of Symbol 69 MovieClip "theStatic" in Frame 266 (81 B)
onClipEvent (enterFrame) {
var rnd = (random(23) + 1);
this.gotoAndStop(rnd);
}
Symbol 17 MovieClip Frame 1 (63 B)
var loadedbytes = 0;
var totalbytes = 0;
var percentage = 0;
Symbol 17 MovieClip Frame 2 (267 B)
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
percentage = Math.ceil((loadedbytes / totalbytes) * 200);
if (percentage > 100) {
this._visible = false;
_parent.logo.canPlay = true;
}
_root.crawler._x = (percentage / 100) * 600;
Symbol 17 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 31 Button (70 B)
on (release) {
getURL ("http://www.freeworldgroup.com/", "_BLANK");
}
Symbol 32 MovieClip Frame 55 (59 B)
if (canPlay) {
play();
} else {
gotoAndPlay ("p");
}
Symbol 32 MovieClip Frame 117 (29 B)
_root.gotoAndPlay("introM");
Symbol 36 Button (50 B)
on (release) {
_root.gotoAndPlay("preloader2");
}
Symbol 45 MovieClip Frame 1 (17 B)
stopAllSounds();
Symbol 45 MovieClip Frame 847 (33 B)
_root.gotoAndPlay("preloader2");
Symbol 45 MovieClip Frame 856 (8 B)
stop();
Symbol 49 MovieClip Frame 1 (63 B)
var loadedbytes = 0;
var totalbytes = 0;
var percentage = 0;
Symbol 49 MovieClip Frame 2 (227 B)
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
percentage = Math.ceil((loadedbytes / totalbytes) * 100);
if (loadedbytes >= totalbytes) {
this._visible = false;
_parent.play();
stop();
}
Symbol 49 MovieClip Frame 3 (17 B)
gotoAndPlay (2);
Symbol 74 Button (84 B)
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_BLANK");
}
Symbol 102 MovieClip Frame 1 (29 B)
gotoAndPlay(random(21) + 2);
Symbol 104 Button (131 B)
on (release) {
gameMode = MODE_MISSION;
_root.survivalMode = false;
_root.currentMissionIndex = 0;
gotoAndPlay ("startGame");
}
Symbol 105 Button (121 B)
on (release) {
gameMode = MODE_SURVIVAL;
survivalMode = true;
currentMission = survival;
gotoAndPlay ("startGame");
}
Symbol 106 Button (42 B)
on (release) {
gotoAndStop ("credits");
}
Symbol 107 Button (40 B)
on (release) {
gotoAndStop ("intro");
}
Symbol 108 Button (47 B)
on (release) {
gotoAndStop ("instructions");
}
Symbol 109 Button (69 B)
on (release) {
getURL ("http://www.freeworldgroup.com", "_BLANK");
}
Symbol 116 Button (41 B)
on (release) {
gotoAndStop ("start1");
}
Symbol 118 Button (67 B)
on (release) {
getURL ("http://www.prevelation.com/", "_BLANK");
}
Symbol 119 Button (66 B)
on (release) {
getURL ("http://www.bellends.co.uk/", "_BLANK");
}
Symbol 120 Button (62 B)
on (release) {
getURL ("http://www.gavd.co.uk/", "_BLANK");
}
Symbol 132 Button (30 B)
on (release) {
nextFrame();
}
Symbol 135 Button (68 B)
on (release) {
getURL ("http://www.humanbeatbox.com/", "_BLANK");
}
Symbol 138 Button (65 B)
on (release) {
getURL ("http://www.vwfband.co.uk/", "_BLANK");
}
Symbol 146 Button (61 B)
on (release) {
getURL ("http://www.no2id.net/", "_BLANK");
}
Symbol 147 Button (70 B)
on (release) {
getURL ("http://www.freeworldgroup.com/", "_BLANK");
}
Symbol 152 MovieClip Frame 1 (8 B)
stop();
Symbol 161 Button (102 B)
on (release) {
if (this.action < _root.fatController.DRIVING) {
_root.setCurrentHero(this);
}
}
Symbol 169 MovieClip Frame 1 (8 B)
stop();
Symbol 181 MovieClip Frame 7 (8 B)
stop();
Symbol 183 Button (41 B)
on (release) {
gotoAndStop ("buried");
}
Symbol 190 MovieClip Frame 8 (17 B)
gotoAndPlay (1);
Symbol 190 MovieClip Frame 9 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 190 MovieClip Frame 20 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -4);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 190 MovieClip Frame 76 (76 B)
this.action = _parent._parent.fatController.STAND_GROUND;
gotoAndPlay (1);
Symbol 190 MovieClip Frame 77 (85 B)
var prevAction = this.action;
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 190 MovieClip Frame 82 (120 B)
if (this.health > 0) {
this.action = prevAction;
} else {
this.action = _parent._parent.fatController.DYING;
}
Symbol 190 MovieClip Frame 83 (101 B)
this.action = _parent._parent.fatController.DYING;
this.health = 0;
_root.soundControl.soldierD();
Symbol 190 MovieClip Frame 105 (58 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
Symbol 190 MovieClip Frame 106 (33 B)
_root.fatController.deadCount++;
Symbol 190 MovieClip Frame 108 (58 B)
var framesTilReanimation = _root.FRAME_UNTIL_REANIMATION;
Symbol 190 MovieClip Frame 110 (103 B)
if ((--framesTilReanimation) == 0) {
nextFrame();
} else {
gotoAndStop ("waitForReanimation");
}
Symbol 190 MovieClip Frame 111 (49 B)
this.action = _root.fatController.GONE;
play();
Symbol 190 MovieClip Frame 129 (71 B)
_root.fatController.spawnZombieInner(this._x, this._y, true);
stop();
Symbol 190 MovieClip Frame 130 (37 B)
action = _root.fatController.BURIED;
Symbol 215 MovieClip Frame 13 (8 B)
stop();
Symbol 218 MovieClip Frame 1 (8 B)
stop();
Symbol 218 MovieClip Frame 14 (32 B)
_root.absDelete(this);
stop();
Symbol 218 MovieClip Frame 28 (118 B)
if (passenger != null) {
passenger.health = 0;
passenger.gotoAndPlay("dead");
}
_root.absDelete(this);
stop();
Symbol 235 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 190 MovieClip in Symbol 235 MovieClip Frame 2 (31 B)
onClipEvent (load) {
stop();
}
Symbol 236 Button (57 B)
on (release) {
_root.difficulty = _root.EASY;
play();
}
Symbol 237 Button (59 B)
on (release) {
_root.difficulty = _root.NORMAL;
play();
}
Symbol 238 Button (57 B)
on (release) {
_root.difficulty = _root.HARD;
play();
}
Symbol 239 Button (41 B)
on (release) {
gotoAndStop ("start1");
}
Symbol 240 Button (59 B)
on (release) {
_root.difficulty = _root.INSANE;
play();
}
Symbol 249 Button (25 B)
on (release) {
play();
}
Symbol 253 Button (362 B)
on (press) {
if (!_parent.cursor.canCommand) {
return(undefined);
}
if (dragBox.dragging) {
doStuff();
} else {
dragStart();
}
}
on (release) {
if (_parent.cursor.canCommand) {
doStuff();
}
}
on (rollOver) {
if (!_root.cursor.dontChange) {
_root.cursor.gotoAndStop(1);
}
}
on (rollOut) {
dragBox._visible = false;
dragBox.dragging = false;
}
Symbol 263 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 196 MovieClip in Symbol 263 MovieClip Frame 1 (149 B)
onClipEvent (enterFrame) {
if (_parent._visible) {
if (_root.fatController.hitTestWholeSquad(this)) {
_root.fatController.missionUp();
}
}
}
Symbol 263 MovieClip Frame 3 (8 B)
stop();
Symbol 266 Button (142 B)
on (release) {
_root.fatController.setCurrentTarget(this);
}
on (rollOver) {
_root.cursor.dontChange = true;
_root.cursor.gotoAndStop(2);
}
Symbol 269 MovieClip Frame 1 (8 B)
stop();
Symbol 282 MovieClip Frame 24 (8 B)
stop();
Symbol 288 MovieClip Frame 16 (17 B)
gotoAndPlay (1);
Symbol 288 MovieClip Frame 17 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 288 MovieClip Frame 20 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 288 MovieClip Frame 21 (64 B)
blood.play();
blood1.play();
_root.soundControl.deathMoan();
Symbol 288 MovieClip Frame 22 (15 B)
blood2.play();
Symbol 288 MovieClip Frame 45 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 288 MovieClip Frame 107 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 288 MovieClip Frame 112 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 288 MovieClip Frame 113 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 288 MovieClip Frame 122 (35 B)
this.action = 1;
gotoAndPlay (1);
Symbol 288 MovieClip Frame 138 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 288 MovieClip Frame 154 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 301 MovieClip Frame 14 (8 B)
stop();
Symbol 305 Button (109 B)
on (release) {
_root.fatController.setCurrentTarget(this);
}
on (rollOver) {
_root.cursor.gotoAndStop(2);
}
Symbol 307 MovieClip Frame 16 (17 B)
gotoAndPlay (1);
Symbol 307 MovieClip Frame 17 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 307 MovieClip Frame 20 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 307 MovieClip Frame 21 (32 B)
_root.soundControl.deathMoan();
Symbol 307 MovieClip Frame 45 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 307 MovieClip Frame 107 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 307 MovieClip Frame 112 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 307 MovieClip Frame 113 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 307 MovieClip Frame 122 (35 B)
this.action = 1;
gotoAndPlay (1);
Symbol 307 MovieClip Frame 138 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 307 MovieClip Frame 154 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 313 MovieClip Frame 7 (8 B)
stop();
Symbol 323 MovieClip Frame 9 (17 B)
gotoAndPlay (1);
Symbol 323 MovieClip Frame 10 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 323 MovieClip Frame 13 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 323 MovieClip Frame 14 (32 B)
_root.soundControl.deathMoan();
Symbol 323 MovieClip Frame 38 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 323 MovieClip Frame 100 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 323 MovieClip Frame 105 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 323 MovieClip Frame 106 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 323 MovieClip Frame 111 (35 B)
this.action = 1;
gotoAndPlay (1);
Symbol 323 MovieClip Frame 127 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 323 MovieClip Frame 143 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 336 MovieClip Frame 9 (17 B)
gotoAndPlay (1);
Symbol 336 MovieClip Frame 10 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 336 MovieClip Frame 13 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 336 MovieClip Frame 14 (32 B)
_root.soundControl.deathMoan();
Symbol 336 MovieClip Frame 38 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 336 MovieClip Frame 100 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 336 MovieClip Frame 105 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 336 MovieClip Frame 106 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 336 MovieClip Frame 115 (35 B)
this.action = 1;
gotoAndPlay (1);
Symbol 336 MovieClip Frame 131 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 336 MovieClip Frame 148 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 353 MovieClip Frame 31 (8 B)
stop();
Symbol 358 MovieClip Frame 16 (17 B)
gotoAndPlay (1);
Symbol 358 MovieClip Frame 17 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 358 MovieClip Frame 20 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 358 MovieClip Frame 21 (32 B)
_root.soundControl.deathMoan();
Symbol 358 MovieClip Frame 45 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 358 MovieClip Frame 107 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 358 MovieClip Frame 112 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 358 MovieClip Frame 113 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 358 MovieClip Frame 122 (35 B)
this.action = 1;
gotoAndPlay (1);
Symbol 358 MovieClip Frame 138 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 358 MovieClip Frame 154 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 359 Button (102 B)
on (release) {
if (this.action < _root.fatController.DRIVING) {
_root.setCurrentHero(this);
}
}
Symbol 388 MovieClip Frame 7 (8 B)
stop();
Symbol 389 Button (41 B)
on (release) {
gotoAndStop ("buried");
}
Symbol 395 MovieClip Frame 8 (17 B)
gotoAndPlay (1);
Symbol 395 MovieClip Frame 9 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 395 MovieClip Frame 11 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 14 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 18 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 22 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 26 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 30 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 34 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -1);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 395 MovieClip Frame 86 (76 B)
this.action = _parent._parent.fatController.STAND_GROUND;
gotoAndPlay (1);
Symbol 395 MovieClip Frame 87 (85 B)
var prevAction = this.action;
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 395 MovieClip Frame 92 (120 B)
if (this.health > 0) {
this.action = prevAction;
} else {
this.action = _parent._parent.fatController.DYING;
}
Symbol 395 MovieClip Frame 93 (101 B)
this.action = _parent._parent.fatController.DYING;
this.health = 0;
_root.soundControl.soldierD();
Symbol 395 MovieClip Frame 115 (58 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
Symbol 395 MovieClip Frame 116 (101 B)
_root.fatController.deadCount++;
_root.deadChars = _root.deadChars + (("|" + this.charName) + "|");
Symbol 395 MovieClip Frame 117 (58 B)
var framesTilReanimation = _root.FRAME_UNTIL_REANIMATION;
Symbol 395 MovieClip Frame 119 (103 B)
if ((--framesTilReanimation) == 0) {
nextFrame();
} else {
gotoAndPlay ("waitForReanimation");
}
Symbol 395 MovieClip Frame 120 (49 B)
this.action = _root.fatController.GONE;
play();
Symbol 395 MovieClip Frame 138 (71 B)
_root.fatController.spawnZombieInner(this._x, this._y, true);
stop();
Symbol 395 MovieClip Frame 139 (37 B)
action = _root.fatController.BURIED;
Symbol 395 MovieClip Frame 166 (169 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
_root.fatController.deadCount++;
_root.deadChars = _root.deadChars + (("|" + this.charName) + "|");
stop();
Symbol 403 Button (41 B)
on (release) {
gotoAndStop ("buried");
}
Symbol 409 MovieClip Frame 8 (17 B)
gotoAndPlay (1);
Symbol 409 MovieClip Frame 9 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 409 MovieClip Frame 20 (144 B)
_root.fatController.moveItemTowards(targetEnemy, _x, _y, -4);
targetEnemy.health = targetEnemy.health - this.power;
targetEnemy.blood.play();
Symbol 409 MovieClip Frame 76 (76 B)
this.action = _parent._parent.fatController.STAND_GROUND;
gotoAndPlay (1);
Symbol 409 MovieClip Frame 77 (85 B)
var prevAction = this.action;
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 409 MovieClip Frame 82 (120 B)
if (this.health > 0) {
this.action = prevAction;
} else {
this.action = _parent._parent.fatController.DYING;
}
Symbol 409 MovieClip Frame 83 (101 B)
this.action = _parent._parent.fatController.DYING;
this.health = 0;
_root.soundControl.soldierD();
Symbol 409 MovieClip Frame 105 (58 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
Symbol 409 MovieClip Frame 106 (101 B)
_root.fatController.deadCount++;
_root.deadChars = _root.deadChars + (("|" + this.charName) + "|");
Symbol 409 MovieClip Frame 108 (58 B)
var framesTilReanimation = _root.FRAME_UNTIL_REANIMATION;
Symbol 409 MovieClip Frame 110 (103 B)
if ((--framesTilReanimation) == 0) {
nextFrame();
} else {
gotoAndPlay ("waitForReanimation");
}
Symbol 409 MovieClip Frame 111 (49 B)
this.action = _root.fatController.GONE;
play();
Symbol 409 MovieClip Frame 129 (71 B)
_root.fatController.spawnZombieInner(this._x, this._y, true);
stop();
Symbol 409 MovieClip Frame 150 (37 B)
action = _root.fatController.BURIED;
Symbol 409 MovieClip Frame 163 (169 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
_root.fatController.deadCount++;
_root.deadChars = _root.deadChars + (("|" + this.charName) + "|");
stop();
Symbol 419 MovieClip Frame 7 (8 B)
stop();
Symbol 420 MovieClip Frame 8 (17 B)
gotoAndPlay (1);
Symbol 420 MovieClip Frame 9 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 420 MovieClip Frame 13 (55 B)
this.action = _parent._parent.fatController.ATTACKING;
Symbol 420 MovieClip Frame 16 (56 B)
this.action = _parent._parent.fatController.PRE_ATTACK;
Symbol 420 MovieClip Frame 22 (76 B)
this.action = _parent._parent.fatController.STAND_GROUND;
gotoAndPlay (1);
Symbol 420 MovieClip Frame 23 (54 B)
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 420 MovieClip Frame 28 (97 B)
if (health > 0) {
this.action = _parent._parent.fatController.MOVING;
gotoAndPlay (1);
}
Symbol 420 MovieClip Frame 29 (32 B)
_root.soundControl.deathMoan();
Symbol 420 MovieClip Frame 51 (171 B)
this.action = _root.fatController.TOTALLY_DEAD;
_root.confirmedKills++;
_root.zombiesToKill--;
if (_root.zombiesToKill < 0) {
_root.zombiesToKill = 0;
}
stop();
Symbol 420 MovieClip Frame 81 (44 B)
action = _root.fatController.GONE;
stop();
Symbol 420 MovieClip Frame 82 (49 B)
this.action = _root.fatController.GONE;
stop();
Symbol 420 MovieClip Frame 103 (49 B)
this.action = _root.fatController.GONE;
stop();
Instance of Symbol 423 MovieClip in Symbol 424 MovieClip Frame 1 (196 B)
onClipEvent (enterFrame) {
if (_root.fatController.hitTestSquad(this)) {
_root.ammoToCollect--;
if (_root.ammoToCollect < 0) {
_root.ammoToCollect = 0;
}
_root.absDelete(this);
}
}
Instance of Symbol 426 MovieClip in Symbol 427 MovieClip Frame 1 (128 B)
onClipEvent (enterFrame) {
if (_root.fatController.hitTestSquad(this)) {
_root.foodToCollect--;
_root.absDelete(this);
}
}
Symbol 437 MovieClip Frame 15 (8 B)
stop();
Symbol 438 MovieClip Frame 9 (17 B)
gotoAndPlay (1);
Symbol 438 MovieClip Frame 11 (76 B)
this.action = _parent._parent.fatController.STAND_GROUND;
gotoAndPlay (1);
Symbol 438 MovieClip Frame 12 (85 B)
var prevAction = this.action;
this.action = _parent._parent.fatController.TAKE_HIT;
Symbol 438 MovieClip Frame 17 (120 B)
if (this.health > 0) {
this.action = prevAction;
} else {
this.action = _parent._parent.fatController.DYING;
}
Symbol 438 MovieClip Frame 18 (101 B)
this.action = _parent._parent.fatController.DYING;
this.health = 0;
_root.soundControl.soldierD();
Symbol 438 MovieClip Frame 39 (58 B)
this.action = _parent._parent.fatController.TOTALLY_DEAD;
Symbol 438 MovieClip Frame 41 (42 B)
_root.fatController.deadCount++;
stop();
Symbol 440 MovieClip Frame 21 (8 B)
stop();
Symbol 446 MovieClip Frame 1 (862 B)
function dragStart() {
dragBox.dragging = true;
dragBox._x = _xmouse;
dragBox._y = _ymouse;
dragBox._width = 1;
dragBox._height = 1;
dragBox._visible = true;
}
function dragEnd() {
var isAct = false;
var i = 0;
while (i <= _parent.fatController.squadCount) {
var h = eval ("hero" + i);
if (h.action < _root.fatController.DRIVING) {
if (dragBox.hitTest(h)) {
h.activationBorder._visible = true;
isAct = true;
} else {
h.activationBorder._visible = false;
}
}
i++;
}
if (isAct) {
_root.soundControl.soldierA();
}
}
function doStuff() {
if ((dragBox._width < MIN_DRAG_AREA) && (dragBox._height < MIN_DRAG_AREA)) {
_root.fatController.setWaypoint();
} else {
dragEnd();
}
dragBox._visible = false;
dragBox.dragging = false;
}
var MIN_DRAG_AREA = 4;
stop();
Instance of Symbol 263 MovieClip "extractionZone" in Symbol 446 MovieClip Frame 1 (307 B)
onClipEvent (load) {
if (_root.currentMissionIndex == 5) {
this._visible = true;
this.play();
} else {
this._visible = false;
while (_root.itemInPond(this)) {
_root.playingArea.pond0._x = _root.playingArea.pond0._x - 25;
_root.playingArea.pond0._y = _root.playingArea.pond0._y - 25;
}
}
}
Instance of Symbol 288 MovieClip "protoZombie0" in Symbol 446 MovieClip Frame 1 (473 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 1;
var health = 15;
var range = 5;
var attackDamage = 5;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.2;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.5;
}
}
Instance of Symbol 307 MovieClip "protoZombie1" in Symbol 446 MovieClip Frame 1 (475 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 1.2;
var health = 50;
var range = 6;
var attackDamage = 6;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.2;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.5;
}
}
Instance of Symbol 323 MovieClip "protoZombie2" in Symbol 446 MovieClip Frame 1 (474 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 2.2;
var health = 9;
var range = 4;
var attackDamage = 5;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.1;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.3;
}
}
Instance of Symbol 336 MovieClip "protoZombie3" in Symbol 446 MovieClip Frame 1 (476 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 0.7;
var health = 200;
var range = 8;
var attackDamage = 8;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.2;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.5;
}
}
Instance of Symbol 358 MovieClip "protoZombie4" in Symbol 446 MovieClip Frame 1 (473 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 1;
var health = 79;
var range = 6;
var attackDamage = 7;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.2;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.5;
}
}
Instance of Symbol 395 MovieClip "hero2" in Symbol 446 MovieClip Frame 1 (405 B)
onClipEvent (load) {
this.swapDepths(19993);
var facingRight = false;
var charName = "Pt. R. Crawford";
var charRole = "Assault";
var isSoldier = true;
var range = 150;
var power = 1;
var walkDistance = 2.1;
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 395 MovieClip "hero0" in Symbol 446 MovieClip Frame 1 (475 B)
onClipEvent (load) {
this.swapDepths(19991);
var facingRight = false;
var charName = "Sgt. D. Hughes";
if (_root.currentMissionIndex == 3) {
charName = "Pt. O. Mason";
}
var charRole = "Assault";
var isSoldier = true;
var range = 150;
var power = 2;
var walkDistance = 2.1;
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 395 MovieClip "hero1" in Symbol 446 MovieClip Frame 1 (404 B)
onClipEvent (load) {
this.swapDepths(19992);
var facingRight = false;
var charName = "Pt. J. Shields";
var charRole = "Assault";
var isSoldier = true;
var range = 150;
var power = 2;
var walkDistance = 2.1;
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 409 MovieClip "hero3" in Symbol 446 MovieClip Frame 1 (402 B)
onClipEvent (load) {
this.swapDepths(19994);
var facingRight = true;
var charName = "Cpl. M. Guest";
var charRole = "Sniper";
var isSoldier = true;
var range = 364;
var power = 14;
var walkDistance = 1.4;
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 409 MovieClip "hero4" in Symbol 446 MovieClip Frame 1 (404 B)
onClipEvent (load) {
this.swapDepths(19995);
var facingRight = true;
var charRole = "Sniper";
var isSoldier = true;
var range = 255;
var power = 12;
var walkDistance = 1.2;
var charName = "Pt. J. Reynolds";
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 409 MovieClip "hero5" in Symbol 446 MovieClip Frame 1 (403 B)
onClipEvent (load) {
this.swapDepths(19996);
var facingRight = true;
var charName = "Pt. D. Johnson";
var charRole = "Sniper";
var isSoldier = true;
var range = 255;
var power = 12;
var walkDistance = 1.2;
var actionBuffer = 0;
}
onClipEvent (enterFrame) {
if (this.action == _root.fatController.TOTALLY_DEAD) {
if (this.hitTest(_root.cursor)) {
_root.cursor.gotoAndStop("bury");
}
}
}
Instance of Symbol 420 MovieClip "protoZombieExSoldier" in Symbol 446 MovieClip Frame 1 (476 B)
onClipEvent (load) {
var facingRight = true;
var isSoldier = false;
var walkDistance = 1.4;
var health = 80;
var range = 6;
var attackDamage = 12;
if (_root.difficulty == _root.EASY) {
health = health * 0.4;
walkDistance = walkDistance * 0.8;
} else if (_root.difficulty == _root.HARD) {
health = health * 1.2;
walkDistance = walkDistance * 1.2;
} else if (_root.difficulty == _root.INSANE) {
health = health * 1.8;
walkDistance = walkDistance * 1.5;
}
}
Instance of Symbol 438 MovieClip "hero6" in Symbol 446 MovieClip Frame 1 (579 B)
onClipEvent (load) {
var facingRight = false;
var charName = "Prof. T. Roberts";
var charRole = "Scientist";
var isSoldier = true;
var range = 0;
var power = 0;
var walkDistance = 1.5;
var actionBuffer = 0;
this.health = (this.startHealth = 35);
}
onClipEvent (enterFrame) {
this.targetX = 1030;
this.targetY = 950;
this.action = _root.fatController.MOVING;
this.actionBuffer = _root.fatController.MOVING;
if (this.hitTest(_parent.extractionZone)) {
_root.gotoAndStop("outroMissions");
} else if (this.health < 0) {
_root.fatController.deadCount = 100;
}
}
Instance of Symbol 442 MovieClip "dragBox" in Symbol 446 MovieClip Frame 1 (315 B)
onClipEvent (load) {
var dragging = false;
var startW = this._width;
var startH = this._height;
}
onClipEvent (enterFrame) {
if (dragging) {
var w = (_parent._xmouse - this._x);
var h = (_parent._ymouse - this._y);
this._xscale = startW * (w / startW);
this._yscale = (startH * (h / startH)) * 1.5;
}
}
Instance of Symbol 445 MovieClip "theBorder" in Symbol 446 MovieClip Frame 1 (47 B)
onClipEvent (load) {
this.swapDepths(29000);
}
Instance of Symbol 218 MovieClip "car" in Symbol 446 MovieClip Frame 1 (3.71 KiB) ●
onClipEvent (load) {
function passengerOut() {
passenger._x = this._x - 40;
passenger._y = this._y - 40;
passenger._visible = true;
passenger.action = 0;
occupied = false;
passenger = null;
}
var health = 100;
this.swapDepths(19998);
var crashed = false;
var BUSH_MOVE_SPEED = 1;
var MOVING_NEUTRAL = 0;
var MOVING_FORWARDS = 1;
var MOVING_BACKWARDS = 2;
var MOVING_BRAKING = 3;
var moveState = MOVING_NEUTRAL;
var moveSpeedIncrement = 0.2;
var moveSpeedCurrent = 0.2;
var rotateSpeedIncrement = 0.4;
var maxSpeedForwards = 10;
var maxSpeedBackwards = -5;
var MAX_TURN_RIGHT = 5;
var MAX_TURN_LEFT = -5;
var currentWheelAlignment = 0;
var occupied = false;
var passenger = null;
}
onClipEvent (enterFrame) {
if (this.health <= 0) {
return(undefined);
}
if (!occupied) {
var sq = 0;
var ch;
var i = 0;
while (i <= _root.fatController.squadCount) {
ch = eval ("_root.playingArea.hero" + i);
if (((!occupied) && (ch.actionBuffer == _root.cursor.DRIVE)) && (this.hitTest(ch))) {
occupied = true;
ch.activationBorder._visible = false;
ch._visible = false;
ch.action = _root.fatController.DRIVING;
passenger = ch;
}
if (eval ("_root.playingArea.hero" + i).activationBorder._visible) {
sq++;
}
i++;
}
if (this.hitTest(_parent._parent.cursor)) {
if (sq == 0) {
_parent._parent.cursor.gotoAndStop("enterCarDisabled");
} else {
_parent._parent.cursor.gotoAndStop("enterCarEnabled");
}
}
return(undefined);
}
if (this.hitTest(_parent._parent.cursor)) {
_parent._parent.cursor.gotoAndStop("exitCar");
}
if (Key.isDown(39)) {
if (currentWheelAlignment < MAX_TURN_RIGHT) {
currentWheelAlignment = currentWheelAlignment + rotateSpeedIncrement;
if (currentWheelAlignment < 0) {
currentWheelAlignment = currentWheelAlignment + rotateSpeedIncrement;
}
}
} else if (Key.isDown(37)) {
if (currentWheelAlignment > MAX_TURN_LEFT) {
currentWheelAlignment = currentWheelAlignment - rotateSpeedIncrement;
if (currentWheelAlignment > 0) {
currentWheelAlignment = currentWheelAlignment - rotateSpeedIncrement;
}
}
}
if (Key.isDown(38)) {
if (moveSpeedCurrent < maxSpeedForwards) {
moveSpeedCurrent = moveSpeedCurrent + moveSpeedIncrement;
}
} else if (Key.isDown(40)) {
if (moveSpeedCurrent > maxSpeedBackwards) {
moveSpeedCurrent = moveSpeedCurrent - moveSpeedIncrement;
}
} else if (moveSpeedCurrent > 0) {
moveSpeedCurrent = moveSpeedCurrent - moveSpeedIncrement;
if (moveSpeedCurrent < 0) {
moveSpeedCurrent = 0;
}
} else if (moveSpeedCurrent < 0) {
moveSpeedCurrent = moveSpeedCurrent + moveSpeedIncrement;
if (moveSpeedCurrent > 0) {
moveSpeedCurrent = 0;
}
}
if (moveSpeedCurrent > 0) {
_rotation = (_rotation + currentWheelAlignment);
if (_root.itemInBushes(this)) {
if (moveSpeedCurrent > BUSH_MOVE_SPEED) {
moveSpeedCurrent = BUSH_MOVE_SPEED;
}
}
} else if (moveSpeedCurrent < 0) {
_rotation = (_rotation - currentWheelAlignment);
if (_root.itemInBushes(this)) {
if (moveSpeedCurrent < (BUSH_MOVE_SPEED * -1)) {
moveSpeedCurrent = BUSH_MOVE_SPEED * -1;
}
}
}
if (_root.itemInPond(this)) {
this.gotoAndPlay("splash");
_root.soundControl.gotoAndPlay("splash");
this.health = 0;
return(undefined);
}
if ((moveSpeedCurrent > 0.4) || (moveSpeedCurrent < -0.4)) {
angle = _rotation * (Math.PI/180);
}
this._x = this._x + (moveSpeedCurrent * Math.sin(angle));
this._y = this._y - (moveSpeedCurrent * Math.cos(angle));
if (this._x < 40) {
this._x = 40;
} else if (this._x > 1150) {
this._x = 1150;
}
if (this._y < 95) {
this._y = 95;
} else if (this._y > 1110) {
this._y = 1110;
}
}
Symbol 479 MovieClip Frame 1 (8 B)
stop();
Symbol 479 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 5 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 7 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 9 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 11 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 13 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 15 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 17 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 19 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 21 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 23 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 25 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 27 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 29 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 31 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 33 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 35 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 37 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 39 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 41 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 43 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 45 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 47 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 49 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 51 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 53 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 55 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 57 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 59 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 61 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 63 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 65 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 67 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 69 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 71 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 73 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 75 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 77 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 79 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 81 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 83 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 85 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 87 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 89 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 91 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 93 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 95 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 97 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 99 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 101 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 103 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 105 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 107 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 109 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 111 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 113 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 115 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 117 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 119 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 121 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 123 (17 B)
gotoAndStop (1);
Symbol 479 MovieClip Frame 125 (17 B)
gotoAndStop (1);
Symbol 493 MovieClip Frame 1 (8 B)
stop();
Instance of Symbol 493 MovieClip "panelTemplate" in Symbol 496 MovieClip Frame 1 (48 B)
onClipEvent (load) {
this.charHealth = "101";
}
Symbol 512 MovieClip Frame 1 (8 B)
stop();
Symbol 514 Button (66 B)
on (release) {
insInner.gotoAndStop(1);
this._visible = false;
}
Symbol 517 Button (61 B)
on (release) {
help.gotoAndStop(1);
help._visible = true;
}
Symbol 519 MovieClip Frame 13 (64 B)
_parent.fatController.blamPanels();
_root.soundControl.moan();
Symbol 519 MovieClip Frame 25 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 32 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 54 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 61 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 82 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 87 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 100 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 124 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 152 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 171 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 183 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 192 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 207 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 222 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 236 (27 B)
_root.soundControl.moan();
Symbol 519 MovieClip Frame 246 (28 B)
_root.gotoAndStop("outro");
Symbol 526 Button (55 B)
on (release) {
_root.playingArea.car.passengerOut();
}
Symbol 528 MovieClip Frame 1 (51 B)
nextBuffer = NOTHING;
canCommand = true;
stop();
Symbol 528 MovieClip Frame 2 (71 B)
nextBuffer = NOTHING;
canCommand = true;
dontChange = true;
stop();
Symbol 528 MovieClip Frame 3 (83 B)
nextBuffer = NOTHING;
canCommand = false;
gotoAndStop(_currentframe + arrowSel);
Symbol 528 MovieClip Frame 12 (40 B)
nextBuffer = DRIVE;
dontChange = true;
Symbol 528 MovieClip Frame 13 (42 B)
nextBuffer = NOTHING;
dontChange = true;
Symbol 528 MovieClip Frame 14 (42 B)
nextBuffer = NOTHING;
dontChange = true;
Symbol 528 MovieClip Frame 15 (59 B)
dontChange = true;
canCommand = true;
nextBuffer = BURY;
Symbol 534 Button (40 B)
on (release) {
gotoAndPlay ("start");
}
Symbol 538 Button (40 B)
on (release) {
gotoAndPlay ("start");
}