Frame 1
function doSomething() {
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Aliens, the board game.", doSomething);
MENU.customItems.push(Functioned);
_root.menu = MENU;
preload = new Sound(this);
preload.attachSound("preloader");
preload.start(0, 1);
preload.setVolume(100);
Frame 644
stop();
Frame 674
_root.JasonRulez = true;
trace("START!");
_root.attachMovie("soundmenu", "soundmenu", 50000);
_root.soundmenu._x = 666.4;
_root.soundmenu._y = -188.7;
function queenDeath(alienName) {
_root.aliensArray[alienName].queenHit = _root.aliensArray[alienName].queenHit + 1;
tempData = _root.aliensArray[alienName].queenHit - 5;
if (_root.calculateRandom(1, 8) > tempData) {
_root.actionarea["alien" + alienName].gotoAndPlay("hit");
} else {
_root.actionarea["alien" + alienName].gotoAndPlay("death");
_root.aliensArray[alienName][2] = "dead";
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
}
}
function waitCheck(alienName) {
if (_root.aliensArray[alienName].wait == true) {
p = 0;
while (p < _root.aliensArray.length) {
_root.aliensArray[p].wait = null;
_root.actionarea["alien" + alienName]._visible = true;
p++;
}
}
}
function shootFlame1(marineName, alienName) {
if (_root.marineData[marineName][_root.marineData[marineName][12]][2] == "flame unit") {
_root.actionarea.attachMovie("flameUnitShot", "flame" + marineName, 10000 + marineName);
_root.actionarea["flame" + marineName]._x = (_root.marineData[marineName][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["flame" + marineName]._y = (_root.marineData[marineName][6] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["flame" + marineName]._rotation = _root.actionarea[_root.marineData[marineName][0]]._rotation;
}
}
function shootFlame2(marineName, alienName) {
if (alienName != null) {
alienDeath = _root.calculateRandom(0, 1);
if (_root.aliensArray[alienName].queen == true) {
_root.queenDeath(alienName);
} else {
_root.actionarea["alien" + alienName].gotoAndPlay("deathFlame");
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.aliensArray[alienName][2] = "dead";
}
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] != null) {
trace(_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] + " is roasted!!!");
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][8] = 0;
if (_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][10] != false) {
marineID = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1];
trace(_root.marineData[_root.marineData[marineID][10]][0] + " is roasted too !!!!!");
roastMarine = _root.marineData[marineID][10];
}
_root.marineDamage(_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1], 3);
if (roastMarine != null) {
_root.marineDamage(roastMarine, 3);
roastMarine = null;
}
}
p = 0;
while (p < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[p]] == "inc") {
_root.marineDamage(_root.marineOrder[p], 3);
trace("Roast inc Marine " + _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[p]]);
}
p++;
}
_root.actionarea[_root.marineData[marineName][0]].alienName = null;
}
_root.gotoAndPlay("makeButtons");
}
function shootFlame3(marineName, alienName) {
_root.actionarea[_root.marineData[marineName][0]].gotoAndStop("normal" + _root.marineData[marineName][12]);
}
function shootGun1(marineName, alienName) {
}
function shootGun2(marineName, alienName) {
if (alienName != null) {
alienDeath = _root.calculateRandom(0, 1);
if (_root.aliensArray[alienName].queen == true) {
_root.queenDeath(alienName);
} else {
_root.actionarea["alien" + alienName].gotoAndPlay("death" + alienDeath);
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.aliensArray[alienName][2] = "dead";
}
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] != null) {
trace(_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] + " is free!!!");
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][8] = 0;
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][2] = "target";
}
p = 0;
while (p < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[p]] == "inc") {
trace(_root.marineData[_root.marineOrder[p]][0] + " is free too!!!");
_root.marineData[_root.marineOrder[p]][8] = 0;
}
p++;
}
_root.actionarea[_root.marineData[marineName][0]].alienName = null;
}
_root.gotoAndPlay("makeButtons");
_root.acidSplash(alienName);
}
function shootGun3(marineName, alienName) {
_root.actionarea[_root.marineData[marineName][0]].gotoAndStop("normal" + _root.marineData[marineName][12]);
}
function shootMachineGun1(marineName, alienName) {
}
function shootMachineGun2(marineName, alienName) {
if (alienName != null) {
alienDeath = _root.calculateRandom(0, 1);
if (_root.aliensArray[alienName].queen == true) {
_root.queenDeath(alienName);
} else {
_root.actionarea["alien" + alienName].gotoAndPlay("death" + alienDeath);
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.aliensArray[alienName][2] = "dead";
}
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] != null) {
trace(_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] + " is free!!!");
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][8] = 0;
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][2] = "target";
}
p = 0;
while (p < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[p]] == "inc") {
trace(_root.marineData[_root.marineOrder[p]][0] + " is free too!!!");
_root.marineData[_root.marineOrder[p]][8] = 0;
}
p++;
}
_root.acidSplash(alienName);
secondAlienTarget = [];
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
if ((_root.mapArray[(_root.aliensArray[alienName][0] + t) - 1][(_root.aliensArray[alienName][1] + u) - 1][2] != null) && (_root.aliensArray[_root.mapArray[(_root.aliensArray[alienName][0] + t) - 1][(_root.aliensArray[alienName][1] + u) - 1][2]][2] != "combat")) {
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
yDiff = ((_root.aliensArray[alienName][0] + t) - 1) - _root.marineData[_root.marineSelect][6];
xDiff = ((_root.aliensArray[alienName][1] + u) - 1) - _root.marineData[_root.marineSelect][7];
if (Math.abs(yDiff) > Math.abs(xDiff)) {
yInc = yDiff / Math.abs(yDiff);
xInc = xDiff / Math.abs(yDiff);
loop = Math.abs(yDiff);
direction = y;
} else {
yInc = yDiff / Math.abs(xDiff);
xInc = xDiff / Math.abs(xDiff);
loop = Math.abs(xDiff);
direction = x;
}
while (loop != loopLocation) {
currentYDist = 20 + (yInc * (21 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (21 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
currentYDist = 20 + (yInc * (59 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (59 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
if ((Math.floor(tempY) != tempArray[tempArray.length - 1][0]) || (Math.floor(tempX) != tempArray[tempArray.length - 1][1])) {
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
}
loopLocation = loopLocation + 1;
}
g = 0;
while (g < tempArray.length) {
if (g == 0) {
calcThisDirectionX = tempArray[g][1] - _root.marineData[_root.marineSelect][7];
calcThisDirectionY = tempArray[g][0] - _root.marineData[_root.marineSelect][6];
} else {
calcThisDirectionX = tempArray[g][1] - tempArray[g - 1][1];
calcThisDirectionY = tempArray[g][0] - tempArray[g - 1][0];
}
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
trace("*** thisAngleCount = " + calcThisAngle);
directionBlocked = false;
if (g == 0) {
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] == 2) {
directionBlocked = true;
}
} else if (_root.mapArray[tempArray[g - 1][0]][tempArray[g - 1][1]][4][calcThisAngle] == 2) {
directionBlocked = true;
}
if ((_root.mapArray[tempArray[g][0]][tempArray[g][1]][0] == 4) || (directionBlocked == true)) {
LOS = false;
}
g++;
}
if ((yDiff == 0) && (xDiff == 0)) {
LOS = false;
}
if ((LOS == true) && (_root.aliensArray[alienName][2] != "combat")) {
secondAlienTarget[secondAlienTarget.length] = _root.mapArray[(_root.aliensArray[alienName][0] + t) - 1][(_root.aliensArray[alienName][1] + u) - 1][2];
}
}
u++;
}
t++;
}
if ((_root.actionarea[_root.marineData[marineName][0]].secondAlien == null) && (_root.marineData[marineName][9] < 2)) {
secondAlienArray = [];
mainAlienYdiff = Math.abs(_root.aliensArray[alienName][0] - _root.marineData[marineName][6]);
mainAlienXdiff = Math.abs(_root.aliensArray[alienName][1] - _root.marineData[marineName][7]);
if (mainAlienXdiff > mainAlienYdiff) {
mainAlienDist = mainAlienXdiff;
} else {
mainAlienDist = mainAlienYdiff;
}
m = 0;
while (m < _root.secondAlienTarget.length) {
yDiff = Math.abs(_root.aliensArray[_root.secondAlienTarget[m]][0] - _root.marineData[marineName][6]);
xDiff = Math.abs(_root.aliensArray[_root.secondAlienTarget[m]][1] - _root.marineData[marineName][7]);
if (yDiff > xDiff) {
AlienDist = yDiff;
} else {
AlienDist = xDiff;
}
if (mainAlienDist == 1) {
MGtargetRange = 1;
}
if (mainAlienDist == 2) {
MGtargetRange = 2;
}
if (mainAlienDist > 2) {
MGtargetRange = 3;
}
if (mainAlienDist > 4) {
MGtargetRange = 4;
}
if (mainAlienDist > 6) {
MGtargetRange = 5;
}
if (AlienDist == 1) {
MGsecondRange = 1;
}
if (AlienDist == 2) {
MGsecondRange = 2;
}
if (AlienDist > 2) {
MGsecondRange = 3;
}
if (AlienDist > 4) {
MGsecondRange = 4;
}
if (AlienDist > 6) {
MGsecondRange = 5;
}
if ((MGsecondRange <= MGtargetRange) && (_root.actionarea["alien" + _root.secondAlienTarget[m]].visible != false)) {
secondAlienArray[secondAlienArray.length] = _root.secondAlienTarget[m];
_root.actionarea[_root.marineData[marineName][0]].secondAlien = true;
}
m++;
}
trace("secondAlienArray.length " + secondAlienArray.length);
if (_root.actionarea[_root.marineData[marineName][0]].secondAlien == true) {
n = 0;
while (n < secondAlienArray.length) {
_root.actionarea.attachMovie("machineGunKill", "machineGunKill" + secondAlienArray[n], 9500 + secondAlienArray[n]);
_root.actionarea["machineGunKill" + secondAlienArray[n]]._x = _root.aliensArray[secondAlienArray[n]][1] * _root.tileSize;
_root.actionarea["machineGunKill" + secondAlienArray[n]]._y = _root.aliensArray[secondAlienArray[n]][0] * _root.tileSize;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "machineGunKill" + secondAlienArray[n];
_root.actionarea["machineGunKill" + secondAlienArray[n]].alienName = secondAlienArray[n];
_root.actionarea["machineGunKill" + secondAlienArray[n]].marineName = marineName;
n++;
}
_root.actionarea.attachMovie("machineGunKillCancel", "machineGunKillCancel", 9500 + secondAlienArray.length);
_root.actionarea.machineGunKillCancel._x = (_root.marineData[marineName][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea.machineGunKillCancel._y = (_root.marineData[marineName][6] * _root.tileSize) + (_root.tileSize / 2);
_root.marineButtonsArray[_root.marineButtonsArray.length] = "machineGunKillCancel";
} else {
_root.gotoAndPlay("makeButtons");
}
} else {
_root.actionarea[_root.marineData[marineName][0]].alienName = null;
_root.actionarea[_root.marineData[marineName][0]].secondAlien = null;
_root.gotoAndPlay("makeButtons");
}
} else {
_root.gotoAndPlay("makeButtons");
}
}
function shootMachineGun3(marineName, alienName) {
_root.actionarea[_root.marineData[marineName][0]].gotoAndStop("normal" + _root.marineData[marineName][12]);
}
function shootMachineGun4(marineName, alienName) {
Ydist = _root.aliensArray[alienName][0] - _root.marineData[marineName][6];
Xdist = _root.aliensArray[alienName][1] - _root.marineData[marineName][7];
_root.actionarea[_root.marineData[marineName][0]].alienName = alienName;
_root.actionarea[_root.marineData[marineName][0]]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
_root.actionarea[_root.marineData[marineName][0]].gotoAndPlay("shoot" + _root.marineData[marineName][12]);
}
function shootGrenade() {
_root.actionarea.attachMovie("grenadeExplosion", "explosion", 50000);
if (_root.JasonRulez == true) {
grenadeCheck = _root.calculateRandom(0, 9);
trace("grenadeCheck " + grenadeCheck);
if (grenadeCheck < 3) {
tempGrenXY = [];
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
yDiff = ((_root.grenadeY + t) - 1) - _root.marineData[_root.marineSelect][6];
xDiff = ((_root.grenadeX + u) - 1) - _root.marineData[_root.marineSelect][7];
if (Math.abs(yDiff) > Math.abs(xDiff)) {
yInc = yDiff / Math.abs(yDiff);
xInc = xDiff / Math.abs(yDiff);
loop = Math.abs(yDiff);
direction = y;
} else {
yInc = yDiff / Math.abs(xDiff);
xInc = xDiff / Math.abs(xDiff);
loop = Math.abs(xDiff);
direction = x;
}
trace((("yInc " + yInc) + " xInc ") + xInc);
while (loop != loopLocation) {
currentYDist = 20 + (yInc * (21 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (21 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
currentYDist = 20 + (yInc * (59 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (59 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
if ((Math.floor(tempY) != tempArray[tempArray.length - 1][0]) || (Math.floor(tempX) != tempArray[tempArray.length - 1][1])) {
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
}
loopLocation = loopLocation + 1;
}
g = 0;
while (g < tempArray.length) {
if (g == 0) {
calcThisDirectionX = tempArray[g][1] - _root.marineData[_root.marineSelect][7];
calcThisDirectionY = tempArray[g][0] - _root.marineData[_root.marineSelect][6];
} else {
calcThisDirectionX = tempArray[g][1] - tempArray[g - 1][1];
calcThisDirectionY = tempArray[g][0] - tempArray[g - 1][0];
}
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (g == 0) {
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
} else if (_root.mapArray[tempArray[g - 1][0]][tempArray[g - 1][1]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
if ((_root.mapArray[tempArray[g][0]][tempArray[g][1]][0] == 4) || (directionBlocked == true)) {
LOS = false;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "flame unit") {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][1] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
}
if ((tempArray[g][1] == tempArray[g - 1][1]) && (tempArray[g][0] == tempArray[g - 1][0])) {
LOS = true;
}
g++;
}
if ((yDiff == 0) && (xDiff == 0)) {
LOS = false;
}
trace(LOS);
if ((_root.mapArray[(_root.grenadeY + t) - 1][(_root.grenadeX + u) - 1][0] < 1) && (LOS == true)) {
tempGrenXY[tempGrenXY.length] = [(_root.grenadeY + t) - 1, (_root.grenadeX + u) - 1];
}
u++;
}
t++;
}
grenadeCheck = _root.calculateRandom(0, tempGrenXY.length - 1);
_root.grenadeY = tempGrenXY[grenadeCheck][0];
_root.grenadeX = tempGrenXY[grenadeCheck][1];
_root.actionarea.explosion._x = (_root.grenadeX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea.explosion._y = (_root.grenadeY * _root.tileSize) + (_root.tileSize / 2);
} else {
_root.actionarea.explosion._x = (_root.grenadeX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea.explosion._y = (_root.grenadeY * _root.tileSize) + (_root.tileSize / 2);
}
} else {
_root.actionarea.explosion._x = (_root.grenadeX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea.explosion._y = (_root.grenadeY * _root.tileSize) + (_root.tileSize / 2);
}
}
function setMarine() {
_root.cocoonMarines = [];
_root.marineData = [];
_root.marineData[0] = ["Hudson", 2, "target", "", "", [0, 0]];
_root.marineData[0][3] = [0, 1, "pistol"];
_root.marineData[0][3][0] = [[2, 1, 0], [6, 2, 1, 0]];
_root.marineData[0][3][1] = [[0], [4, 0]];
_root.marineData[0][4] = [0, 1, "pulse rifle"];
_root.marineData[0][4][0] = [[5, 3, 2, 1, 0], [12, 9, 7, 6, 4]];
_root.marineData[0][4][1] = [[2, 0], [9, 6, 4, 3, 1]];
_root.marineData[0][8] = 0;
_root.marineData[0][9] = 0;
_root.marineData[0][10] = null;
_root.marineData[0][11] = 1;
_root.marineData[0][12] = null;
_root.marineData[0][14] = null;
_root.marineData[1] = ["Drake", 2, "target", "", "", [1, 0]];
_root.marineData[1][3] = [0, 1, "machine gun"];
_root.marineData[1][3][0] = [[8, 6, 3, 2, 1], [13, 9, 8, 7, 6]];
_root.marineData[1][3][1] = [[5, 3, 0], [10, 6, 5, 4, 3]];
_root.marineData[1][4] = [0, 1, "flame unit"];
_root.marineData[1][4][0] = [[8, 6, 4], [14, 13, 9]];
_root.marineData[1][4][1] = [[5, 3, 1], [11, 10, 6]];
_root.marineData[1][8] = 0;
_root.marineData[1][9] = 0;
_root.marineData[1][10] = null;
_root.marineData[1][11] = 1;
_root.marineData[1][12] = null;
_root.marineData[1][14] = null;
_root.marineData[2] = ["Vasquez", 2, "target", "", "", [1, 0]];
_root.marineData[2][3] = [0, 1, "machine gun"];
_root.marineData[2][3][0] = [[8, 6, 3, 2, 1], [13, 9, 8, 7, 6]];
_root.marineData[2][3][1] = [[5, 3, 0], [10, 6, 5, 4, 3]];
_root.marineData[2][4] = [0, 1, "pulse rifle"];
_root.marineData[2][4][0] = [[6, 4, 2, 1, 0], [13, 9, 8, 7, 5]];
_root.marineData[2][4][1] = [[3, 1], [10, 6, 5, 4, 2]];
_root.marineData[2][8] = 0;
_root.marineData[2][9] = 0;
_root.marineData[2][10] = null;
_root.marineData[2][11] = 1;
_root.marineData[2][12] = null;
_root.marineData[2][14] = null;
_root.marineData[3] = ["Dietrich", 2, "target", "", "", [0, 0]];
_root.marineData[3][3] = [0, 1, "flame unit"];
_root.marineData[3][3][0] = [[7, 5, 3], [13, 9, 8]];
_root.marineData[3][3][1] = [[4, 2, 0], [10, 6, 5]];
_root.marineData[3][4] = [0, 1, "pistol"];
_root.marineData[3][4][0] = [[2, 1, 0], [6, 2, 1, 0]];
_root.marineData[3][4][1] = [[0], [4, 0]];
_root.marineData[3][8] = 0;
_root.marineData[3][9] = 0;
_root.marineData[3][10] = null;
_root.marineData[3][11] = 1;
_root.marineData[3][12] = null;
_root.marineData[3][14] = null;
_root.marineData[4] = ["Frost", 2, "target", "", "", [0, 0]];
_root.marineData[4][3] = [0, 1, "pistol"];
_root.marineData[4][3][0] = [[2, 1, 0], [6, 2, 1, 0]];
_root.marineData[4][3][1] = [[0], [4, 0]];
_root.marineData[4][4] = [0, 1, "flame unit"];
_root.marineData[4][4][0] = [[7, 5, 3], [13, 9, 8]];
_root.marineData[4][4][1] = [[4, 2, 0], [10, 6, 5]];
_root.marineData[4][8] = 0;
_root.marineData[4][9] = 0;
_root.marineData[4][10] = null;
_root.marineData[4][11] = 1;
_root.marineData[4][12] = null;
_root.marineData[4][14] = null;
_root.marineData[5] = ["Hicks", 3, "target", "", "", [1, 0]];
_root.marineData[5][3] = [0, 1, "shotgun"];
_root.marineData[5][3][0] = [[8, 6, 2, 1, 0], [13, 9, 8, 6, 4], [14, 10, 9, 7, 5]];
_root.marineData[5][3][1] = [[5, 3], [10, 6, 5, 3, 1], [11, 7, 6, 4, 2]];
_root.marineData[5][4] = [0, 1, "pulse rifle"];
_root.marineData[5][4][0] = [[7, 4, 3, 2, 1], [13, 9, 8, 7, 6], [14, 13, 9, 8, 7]];
_root.marineData[5][4][1] = [[4, 1, 0], [10, 6, 5, 4, 3], [11, 10, 6, 5, 4]];
_root.marineData[5][8] = 0;
_root.marineData[5][9] = 0;
_root.marineData[5][10] = null;
_root.marineData[5][11] = 1;
_root.marineData[5][12] = null;
_root.marineData[5][14] = null;
_root.marineData[6] = ["Apone", 3, "target", "", "", [1, 0]];
_root.marineData[6][3] = [0, 1, "flame unit"];
_root.marineData[6][3][0] = [[8, 6, 4], [14, 13, 9], [15, 14, 10]];
_root.marineData[6][3][1] = [[5, 3, 1], [11, 10, 6], [12, 11, 7]];
_root.marineData[6][4] = [0, 1, "pulse rifle"];
_root.marineData[6][4][0] = [[7, 4, 3, 2, 1], [13, 9, 8, 7, 6], [14, 13, 9, 8, 7]];
_root.marineData[6][4][1] = [[4, 1, 0], [10, 6, 5, 4, 3], [11, 10, 6, 5, 4]];
_root.marineData[6][8] = 0;
_root.marineData[6][9] = 0;
_root.marineData[6][10] = null;
_root.marineData[6][11] = 1;
_root.marineData[6][12] = null;
_root.marineData[6][14] = null;
_root.marineData[7] = ["Wierzbowski", 2, "target", "", "", [0, 0]];
_root.marineData[7][3] = [0, 1, "flame unit"];
_root.marineData[7][3][0] = [[7, 5, 3], [13, 9, 8]];
_root.marineData[7][3][1] = [[4, 2, 0], [10, 6, 5]];
_root.marineData[7][4] = [0, 1, "pistol"];
_root.marineData[7][4][0] = [[2, 1, 0], [6, 2, 1, 0]];
_root.marineData[7][4][1] = [[0], [4, 0]];
_root.marineData[7][8] = 0;
_root.marineData[7][9] = 0;
_root.marineData[7][10] = null;
_root.marineData[7][11] = 1;
_root.marineData[7][12] = null;
_root.marineData[7][14] = null;
_root.marineData[8] = ["Crowe", 2, "target", "", "", [0, 0]];
_root.marineData[8][3] = [0, 1, "pistol"];
_root.marineData[8][3][0] = [[2, 1, 0, -1], [6, 2, 1, 0]];
_root.marineData[8][3][1] = [[0], [4, 0]];
_root.marineData[8][4] = [0, 1, "pulse rifle"];
_root.marineData[8][4][0] = [[5, 3, 2, 1, 0], [12, 9, 7, 6, 4]];
_root.marineData[8][4][1] = [[2, 0], [9, 6, 4, 3, 1]];
_root.marineData[8][8] = 0;
_root.marineData[8][9] = 0;
_root.marineData[8][10] = null;
_root.marineData[8][11] = 1;
_root.marineData[8][12] = null;
_root.marineData[8][14] = null;
_root.marineData[9] = ["Burke", 2, "target", "", "", [0, 0]];
_root.marineData[9][3] = [0, 1, "none"];
_root.marineData[9][4] = [0, 1, "none"];
_root.marineData[9][8] = 0;
_root.marineData[9][9] = 0;
_root.marineData[9][10] = null;
_root.marineData[9][11] = 0;
_root.marineData[9][12] = null;
_root.marineData[9][14] = null;
_root.marineData[10] = ["Newt", 2, "target", "", "", [0, 0]];
_root.marineData[10][3] = [0, 1, "none"];
_root.marineData[10][4] = [0, 1, "none"];
_root.marineData[10][8] = 0;
_root.marineData[10][9] = 0;
_root.marineData[10][10] = null;
_root.marineData[10][11] = 0;
_root.marineData[10][12] = null;
_root.marineData[10][14] = null;
_root.marineData[11] = ["Ripley", 3, "target", "", "", [1, 0]];
_root.marineData[11][3] = [0, 1, "pulse rifle"];
_root.marineData[11][3][0] = [[4, 2, 1, 0, 0], [9, 8, 6, 5, 3], [13, 9, 8, 6, 5]];
_root.marineData[11][3][1] = [[1], [6, 5, 3, 2, 0], [10, 6, 5, 3, 2]];
_root.marineData[11][4] = [0, 1, "pulse rifle"];
_root.marineData[11][4][0] = [[4, 2, 1, 0, 0], [9, 8, 6, 5, 3], [13, 9, 8, 6, 5]];
_root.marineData[11][4][1] = [[1], [6, 5, 3, 2, 0], [10, 6, 5, 3, 2]];
_root.marineData[11][8] = 0;
_root.marineData[11][9] = 0;
_root.marineData[11][10] = null;
_root.marineData[11][11] = 0;
_root.marineData[11][12] = null;
_root.marineData[11][13] = [0, 1, "flame unit"];
_root.marineData[11][13][0] = [[6, 4, 2], [12, 9, 7], [13, 10, 9]];
_root.marineData[11][13][1] = [[3, 1], [9, 6, 4], [10, 7, 6]];
_root.marineData[11][14] = null;
_root.marineData[12] = ["Gorman", 2, "target", "", "", [0, 0]];
_root.marineData[12][3] = [0, 1, "pulse rifle"];
_root.marineData[12][3][0] = [[5, 3, 2, 1, 0], [11, 9, 7, 6, 4]];
_root.marineData[12][3][1] = [[2, 0], [8, 6, 4, 3, 1]];
_root.marineData[12][4] = [0, 1, "pistol"];
_root.marineData[12][4][0] = [[2, 1, 0], [5, 2, 1, 0]];
_root.marineData[12][4][1] = [[0], [3, 0]];
_root.marineData[12][8] = 0;
_root.marineData[12][9] = 0;
_root.marineData[12][10] = null;
_root.marineData[12][11] = 0;
_root.marineData[12][12] = null;
_root.marineData[12][14] = null;
}
_root.setMarine();
function OPsealDoor() {
checkMarine = 0;
w = 0;
while (w < _root.marineOrder.length) {
if (((_root.marineData[_root.marineOrder[w]][6] < 14) && (_root.marineData[_root.marineOrder[w]][7] < 11)) && (_root.marineData[_root.marineOrder[w]][9] < 2)) {
checkMarine = 1;
}
w++;
}
if (checkMarine != 1) {
w = 0;
while (w < _root.marineOrder.length) {
if ((_root.marineData[_root.marineOrder[w]][6] < 14) && (_root.marineData[_root.marineOrder[w]][7] < 11)) {
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea["gun" + _root.marineOrder[w]]);
if (_root.marineData[_root.marineOrder[w]][9] != 3) {
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].healthMonitor.gotoAndStop("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].heartRateMonitor.heartRate1.gotoAndStop("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].heartRateMonitor.heartRate2.gotoAndStop("incapacitated");
_root.marineData[_root.marineOrder[w]][9] = 2;
}
_root.mapArray[_root.marineData[_root.marineOrder[w]][6]][_root.marineData[_root.marineOrder[w]][7]][1] = null;
_root.mapArray[_root.marineData[_root.marineOrder[w]][6]][_root.marineData[_root.marineOrder[w]][7]][3][_root.marineOrder[w]] = false;
if (_root.mapArray[_root.marineData[_root.marineOrder[w]][6]][_root.marineData[_root.marineOrder[w]][7]][3].length != 0) {
z = 0;
while (z < _root.mapArray[_root.marineData[_root.marineOrder[w]][6]][_root.marineData[_root.marineOrder[w]][7]][3].length) {
_root.mapArray[_root.marineData[_root.marineOrder[w]][6]][_root.marineData[_root.marineOrder[w]][7]][3][z] = null;
z++;
}
}
}
w++;
}
_root.aliensInRoom = 0;
w = 0;
while (w < _root.aliensArray.length) {
if (((_root.aliensArray[w][0] < 14) && (_root.aliensArray[w][1] < 11)) && (_root.aliensArray[w][2] != "out")) {
removeMovieClip(_root.actionarea["alien" + w]);
if (_root.aliensArray[w][2] != "dead") {
_root.aliensArray[w][2] = "out";
_root.aliensInRoom = _root.aliensInRoom + 1;
}
_root.mapArray[_root.aliensArray[w][0]][_root.aliensArray[w][1]][2] = null;
_root.mapArray[_root.aliensArray[w][0]][_root.aliensArray[w][1]][5][0] = _root.mapArray[_root.aliensArray[w][0]][_root.aliensArray[w][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[w][0]][_root.aliensArray[w][1]][5][1] = _root.mapArray[_root.aliensArray[w][0]][_root.aliensArray[w][1]][5][1] - 1;
}
}
w++;
}
trace("Aliens in room 2" + _root.aliensInRoom);
_root.actionarea.mainMap.opMap.fog1._alpha = 100;
}
}
function calculateRandom(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function marineDamage(marineID, damageType) {
if (damageType == 3) {
trace("damage category is 3");
if (_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] == marineID) {
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] = null;
}
if (_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] == "inc") {
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] = false;
}
if (_root.marineData[marineID][9] < 2) {
if ((marineID == 11) && (_root.mapName == "rescue")) {
gunType = "combo";
} else {
gunType = _root.marineData[marineID][_root.marineData[marineID][12]][2];
}
_root.actionarea.attachMovie("gun" + gunType, "gun" + marineID, 450 + marineID);
_root.actionarea["gun" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._rotation = _root.calculateRandom(0, 360);
}
_root.marineData[marineID][9] = 3;
if (_root.marineData[marineID][2] != "carried") {
_root.marineData[marineID][2] = "dead";
_root.actionarea[_root.marineData[marineID][0]].gotoAndPlay("dead");
_root.actionarea[_root.marineData[marineID][0]].swapDepths(500 + marineID);
}
_root.actionarea.attachMovie("bannerDead", "bannerDead" + marineID, 4000 + marineID);
_root.actionarea["bannerDead" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerDead" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize * 0.5);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].healthMonitor.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate1.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate2.gotoAndPlay("dead");
} else if ((damageType == 2) && (_root.marineData[marineID][9] >= 2)) {
trace("damage category is 2");
if (_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] == marineID) {
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] = null;
}
if (_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] == "inc") {
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] = false;
}
if (_root.marineData[marineID][9] < 2) {
if ((marineID == 11) && (_root.mapName == "rescue")) {
gunType = "combo";
} else {
gunType = _root.marineData[marineID][_root.marineData[marineID][12]][2];
}
_root.actionarea.attachMovie("gun" + gunType, "gun" + marineID, 450 + marineID);
_root.actionarea["gun" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._rotation = _root.calculateRandom(0, 360);
}
_root.marineData[marineID][9] = 3;
if (_root.marineData[marineID][2] != "carried") {
_root.marineData[marineID][2] = "dead";
_root.actionarea[_root.marineData[marineID][0]].gotoAndPlay("dead");
_root.actionarea[_root.marineData[marineID][0]].swapDepths(500 + marineID);
}
_root.actionarea.attachMovie("bannerDead", "bannerDead" + marineID, 4000 + marineID);
_root.actionarea["bannerDead" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerDead" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize * 0.5);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].healthMonitor.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate1.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate2.gotoAndPlay("dead");
} else if ((damageType == 2) && (_root.marineData[marineID][9] < 2)) {
trace("damage category is 2.2");
if (_root.marineData[marineID][9] < 2) {
if ((marineID == 11) && (_root.mapName == "rescue")) {
gunType = "combo";
} else {
gunType = _root.marineData[marineID][_root.marineData[marineID][12]][2];
}
_root.actionarea.attachMovie("gun" + gunType, "gun" + marineID, 450 + marineID);
_root.actionarea["gun" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._rotation = _root.calculateRandom(0, 360);
}
_root.marineData[marineID][9] = 2;
if (_root.marineData[marineID][2] != "carried") {
_root.marineData[marineID][2] = "incapacitated";
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] = null;
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] = "inc";
_root.actionarea[_root.marineData[marineID][0]].gotoAndPlay("incapacitated");
_root.actionarea[_root.marineData[marineID][0]].swapDepths(500 + marineID);
}
_root.actionarea.attachMovie("bannerIncapacitated", "bannerIncapacitated" + marineID, 4000 + marineID);
_root.actionarea["bannerIncapacitated" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerIncapacitated" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize * 0.5);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].healthMonitor.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate1.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2t["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate2.gotoAndPlay("incapacitated");
} else if ((damageType == 1) && (_root.marineData[marineID][9] > 1)) {
trace("damage category is 1");
} else if ((damageType == 1) && (_root.marineData[marineID][9] == 1)) {
trace("damage category is 1.2");
if (_root.marineData[marineID][9] < 2) {
if ((marineID == 11) && (_root.mapName == "rescue")) {
gunType = "combo";
} else {
gunType = _root.marineData[marineID][_root.marineData[marineID][12]][2];
}
_root.actionarea.attachMovie("gun" + gunType, "gun" + marineID, 450 + marineID);
_root.actionarea["gun" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + _root.calculateRandom(0, 40);
_root.actionarea["gun" + marineID]._rotation = _root.calculateRandom(0, 360);
}
_root.marineData[marineID][9] = 2;
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][1] = null;
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][marineID] = "inc";
if (_root.marineData[marineID][2] != "carried") {
_root.marineData[marineID][2] = "incapacitated";
_root.actionarea[_root.marineData[marineID][0]].gotoAndPlay("incapacitated");
_root.actionarea[_root.marineData[marineID][0]].swapDepths(500 + marineID);
}
_root.actionarea.attachMovie("bannerIncapacitated", "bannerIncapacitated" + marineID, 4000 + marineID);
_root.actionarea["bannerIncapacitated" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerIncapacitated" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize * 0.5);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].healthMonitor.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate1.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate2.gotoAndPlay("incapacitated");
} else {
_root.marineData[marineID][9] = 1;
trace("damage category is 1.3");
_root.actionarea.attachMovie("bannerWounded", "bannerWounded" + marineID, 4000 + marineID);
_root.actionarea["bannerWounded" + marineID]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerWounded" + marineID]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize * 0.5);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].healthMonitor.gotoAndPlay("wounded");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate1.gotoAndPlay("wounded");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[marineID][0]].heartRateMonitor.heartRate2.gotoAndPlay("wounded");
}
if (((_root.marineData[marineID][9] > 1) && (_root.marineData[marineID][10] != null)) && (_root.marineData[marineID][2] != "carried")) {
removeMovieClip(_root.actionarea[_root.marineData[marineID][0]]["inc" + _root.marineData[marineID][10]]);
_root.actionarea.attachMovie(_root.marineData[_root.marineData[marineID][10]][0], _root.marineData[_root.marineData[marineID][10]][0], 500 + _root.marineData[marineID][10]);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]._rotation = _root.calculateRandom(0, 360);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]].gotoAndPlay("incapacitated");
_root.actionarea.attachMovie(_root.marineData[_root.marineData[marineID][10]][0] + "Name", _root.marineData[_root.marineData[marineID][10]][0] + "Name", 15000 + _root.marineData[marineID][10]);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0] + "Name"]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0] + "Name"]._y = _root.marineData[marineID][6] * _root.tileSize;
_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0] + "Name"]._visible = false;
trace("IN THE IF - " + _root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]._x);
_root.marineData[_root.marineData[marineID][10]][2] = "incapacitated";
_root.marineData[_root.marineData[marineID][10]][6] = _root.marineData[marineID][6];
_root.marineData[_root.marineData[marineID][10]][7] = _root.marineData[marineID][7];
_root.mapArray[_root.marineData[marineID][6]][_root.marineData[marineID][7]][3][_root.marineData[marineID][10]] = "inc";
_root.marineData[_root.marineData[marineID][10]][10] = null;
_root.marineData[marineID][10] = null;
}
if ((_root.marineData[marineID][2] == "carried") && (_root.marineData[marineID][9] == 3)) {
trace("ahhh.. what? " + _root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]["inc" + marineID]._x);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineData[marineID][10]][0]]["inc" + marineID]);
_root.actionarea.attachMovie(_root.marineData[marineID][0], _root.marineData[marineID][0], 500 + marineID);
_root.actionarea[_root.marineData[marineID][0]]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[marineID][0]]._y = (_root.marineData[marineID][6] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[marineID][0]].gotoAndPlay("dead");
_root.actionarea[_root.marineData[marineID][0]]._rotation = _root.calculateRandom(0, 360);
_root.marineData[marineID][2] = "dead";
_root.marineData[marineID][6] = _root.marineData[_root.marineData[marineID][10]][6];
_root.marineData[marineID][7] = _root.marineData[_root.marineData[marineID][10]][7];
_root.actionarea.attachMovie(_root.marineData[marineID][0] + "Name", _root.marineData[marineID][0] + "Name", 15000 + marineID);
_root.actionarea[_root.marineData[marineID][0] + "Name"]._x = (_root.marineData[marineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[marineID][0] + "Name"]._y = _root.marineData[marineID][6] * _root.tileSize;
_root.actionarea[_root.marineData[marineID][0] + "Name"]._visible = false;
_root.marineData[_root.marineData[marineID][10]][10] = null;
_root.marineData[marineID][10] = null;
}
trace((_root.marineData[marineID][0] + " damage: ") + _root.marineData[marineID][9]);
}
function alienCombat(alien, marine) {
if (_root.aliensArray[alien].queen == true) {
combatResult = _root.queenCombat[_root.calculateRandom(0, 9) + _root.marineData[marine][5][0]];
} else {
combatResult = _root.aliensCombat[_root.calculateRandom(0, 9) + _root.marineData[marine][5][0]];
}
trace((_root.marineData[marine][0] + " is ") + combatResult);
if (marine == 9) {
if (combatResult == "normal") {
combatResult = "grabbed";
}
if (combatResult == "combat") {
combatResult = "grabbed";
}
}
if (marine == 10) {
if (combatResult == "dead") {
combatResult = "incapacitated";
}
}
if (combatResult == "queenDead") {
marineDamage(marine, 3);
}
if (combatResult == "queenIncapacitated") {
marineDamage(marine, 2);
}
if (combatResult == "queenWounded") {
marineDamage(marine, 1);
}
if (combatResult == "queenCombat") {
}
if (combatResult == "dead") {
_root.marineData[marine][8] = 1;
marineDamage(marine, 3);
}
if (combatResult == "incapacitated") {
_root.marineData[marine][8] = 1;
marineDamage(marine, 2);
}
if (combatResult == "wounded") {
_root.marineData[marine][8] = 1;
marineDamage(marine, 1);
}
if (combatResult == "grabbed") {
_root.marineData[marine][8] = 1;
}
if (combatResult == "normal") {
_root.alienSelect = alien;
_root.marineSelect = marine;
trace((("set Select for throw = alien" + _root.alienSelect) + " marine") + _root.marineSelect);
_root.userInputExpected = true;
gotoAndPlay ("throwStunned");
}
if (_root.marineData[marine][8] == 1) {
_root.actionarea["alien" + alien].gotoAndPlay("grabbed");
_root.actionarea.attachMovie("bannerGrabbed", "bannerGrabbed" + marine, 6000 + marineD);
_root.actionarea["bannerGrabbed" + marine]._x = (_root.marineData[marine][7] * _root.tileSize) + (_root.tileSize * 0.5);
_root.actionarea["bannerGrabbed" + marine]._y = (_root.marineData[marine][6] * _root.tileSize) + (_root.tileSize * 1.5);
}
}
function acidSplash(acidAlienName) {
trace("ACID");
acidArray = [];
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
calcThisDirectionX = ((_root.aliensArray[acidAlienName][1] + u) - 1) - _root.aliensArray[acidAlienName][1];
calcThisDirectionY = ((_root.aliensArray[acidAlienName][0] + t) - 1) - _root.aliensArray[acidAlienName][0];
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
if (_root.mapArray[_root.aliensArray[acidAlienName][0]][_root.aliensArray[acidAlienName][1]][4][calcThisAngle] > 1) {
} else {
if (_root.marineData[_root.mapArray[(_root.aliensArray[acidAlienName][0] + t) - 1][(_root.aliensArray[acidAlienName][1] + u) - 1][1]][10] != null) {
acidArray[acidArray.length] = _root.marineData[_root.mapArray[(_root.aliensArray[acidAlienName][0] + t) - 1][(_root.aliensArray[acidAlienName][1] + u) - 1][1]][10];
}
if (_root.mapArray[(_root.aliensArray[acidAlienName][0] + t) - 1][(_root.aliensArray[acidAlienName][1] + u) - 1][1] != null) {
acidArray[acidArray.length] = _root.mapArray[(_root.aliensArray[acidAlienName][0] + t) - 1][(_root.aliensArray[acidAlienName][1] + u) - 1][1];
}
p = 0;
while (p < _root.marineOrder.length) {
if (_root.mapArray[(_root.aliensArray[acidAlienName][0] + t) - 1][(_root.aliensArray[acidAlienName][1] + u) - 1][3][_root.marineOrder[p]] == "inc") {
acidArray[acidArray.length] = _root.marineOrder[p];
}
p++;
}
}
u++;
}
t++;
}
trace("acidArray " + acidArray);
p = 0;
while (p < acidArray.length) {
acidRoll = _root.calculateRandom(1, 10);
if (acidRoll < 4) {
_root.actionarea.attachMovie("acidSpray", "acidSpray" + acidArray[p], 7000 + acidArray[p]);
_root.actionarea["acidSpray" + acidArray[p]]._x = _root.marineData[acidArray[p]][7] * _root.tileSize;
_root.actionarea["acidSpray" + acidArray[p]]._y = _root.marineData[acidArray[p]][6] * _root.tileSize;
_root.marineDamage(acidArray[p], acidRoll);
trace((("ACID! " + _root.marineData[acidArray[p]][0]) + "'s health is ") + _root.marineData[acidArray[p]][9]);
}
p++;
}
}
_root.queenCombat = ["queenDead", "queenDead", "queenIncapacitated", "queenIncapacitated", "queenIncapacitated", "queenWounded", "queenWounded", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat", "queenCombat"];
_root.aliensCombat = ["dead", "incapacitated", "incapacitated", "wounded", "wounded", "grabbed", "grabbed", "combat", "combat", "normal", "normal", "normal", "normal", "normal", "normal"];
_root.onEnterFrame = function () {
t = 0;
while (t < _root.marineOrder.length) {
_root.actionarea[_root.marineData[_root.marineOrder[t]][0] + "Name"]._visible = false;
t++;
}
testX = Math.floor(_root.actionarea._xmouse / 40);
testY = Math.floor(_root.actionarea._ymouse / 40);
MarineAtThisPlace = [];
if (_root.mapArray[testY][testX][1] != null) {
MarineAtThisPlace[MarineAtThisPlace.length] = _root.mapArray[testY][testX][1];
}
t = 0;
while (t < _root.marineOrder.length) {
if ((_root.mapArray[testY][testX][3][_root.marineOrder[t]] == "inc") && (_root.actionarea[_root.marineData[_root.marineOrder[t]][0]]._visible == true)) {
MarineAtThisPlace[MarineAtThisPlace.length] = _root.marineOrder[t];
}
t++;
}
t = 0;
while (t < _root.marineOrder.length) {
if (((testX == _root.marineData[_root.marineOrder[t]][7]) && (testY == _root.marineData[_root.marineOrder[t]][6])) && (_root.marineData[_root.marineOrder[t]][9] == 3)) {
MarineAtThisPlace[MarineAtThisPlace.length] = _root.marineOrder[t];
}
t++;
}
t = 0;
while (t < MarineAtThisPlace.length) {
_root.actionarea[_root.marineData[MarineAtThisPlace[t]][0] + "Name"]._visible = true;
_root.actionarea[_root.marineData[MarineAtThisPlace[t]][0] + "Name"]._x = (testX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[MarineAtThisPlace[t]][0] + "Name"]._y = (testY * _root.tileSize) - (t * 18);
t++;
}
if (_root.grenade == 1) {
_root.actionarea.grenadeIcon._x = (testX * 40) + 20;
_root.actionarea.grenadeIcon._y = (testY * 40) + 20;
_root.grenadeX = testX;
_root.grenadeY = testY;
Ydist = _root.grenadeY - _root.marineData[_root.marineSelect][6];
Xdist = _root.grenadeX - _root.marineData[_root.marineSelect][7];
_root.actionarea[_root.marineData[_root.marineSelect][0]]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
if (_root.mapArray[_root.grenadeY][_root.grenadeX][0] < 3) {
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
yDiff = _root.grenadeY - _root.marineData[_root.marineSelect][6];
xDiff = _root.grenadeX - _root.marineData[_root.marineSelect][7];
if (Math.abs(yDiff) > Math.abs(xDiff)) {
yInc = yDiff / Math.abs(yDiff);
xInc = xDiff / Math.abs(yDiff);
loop = Math.abs(yDiff);
direction = y;
} else {
yInc = yDiff / Math.abs(xDiff);
xInc = xDiff / Math.abs(xDiff);
loop = Math.abs(xDiff);
direction = x;
}
trace((("yInc " + yInc) + " xInc ") + xInc);
while (loop != loopLocation) {
currentYDist = 20 + (yInc * (21 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (21 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
currentYDist = 20 + (yInc * (59 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (59 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
if ((Math.floor(tempY) != tempArray[tempArray.length - 1][0]) || (Math.floor(tempX) != tempArray[tempArray.length - 1][1])) {
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
}
loopLocation = loopLocation + 1;
}
g = 0;
while (g < tempArray.length) {
if (g == 0) {
calcThisDirectionX = tempArray[g][1] - _root.marineData[_root.marineSelect][7];
calcThisDirectionY = tempArray[g][0] - _root.marineData[_root.marineSelect][6];
} else {
calcThisDirectionX = tempArray[g][1] - tempArray[g - 1][1];
calcThisDirectionY = tempArray[g][0] - tempArray[g - 1][0];
}
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (g == 0) {
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
} else if (_root.mapArray[tempArray[g - 1][0]][tempArray[g - 1][1]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
if ((_root.mapArray[tempArray[g][0]][tempArray[g][1]][0] == 4) || (directionBlocked == true)) {
LOS = false;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "flame unit") {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][1] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
}
if ((tempArray[g][1] == tempArray[g - 1][1]) && (tempArray[g][0] == tempArray[g - 1][0])) {
LOS = true;
}
g++;
}
if ((yDiff == 0) && (xDiff == 0)) {
LOS = false;
}
trace(LOS);
_root.actionarea.grenadeIcon._visible = true;
if (LOS == false) {
_root.actionarea.grenadeIcon.cross._visible = false;
_root.actionarea.grenadeIcon.LOS._visible = true;
_root.actionarea.grenadeIcon.button._visible = false;
} else {
_root.actionarea.grenadeIcon.cross._visible = true;
_root.actionarea.grenadeIcon.LOS._visible = false;
_root.actionarea.grenadeIcon.button._visible = true;
}
} else {
_root.actionarea.grenadeIcon._visible = false;
}
}
};
_root.SFvolume = 100;
_root.STvolume = 50;
Instance of Symbol 1097 MovieClip "actionarea" in Frame 674
/* no clip actions */
Frame 675
soundtrack = new Sound(_root.soundmenu);
soundtrack.attachSound("menumusic");
soundtrack.start(0, 99);
soundtrack.setVolume(_root.STvolume);
stop();
Frame 677
function selectMarine(marineID) {
if (_root["plaque" + _root.marineData[marineID][0]].number._currentframe == 17) {
_root["plaque" + _root.marineData[marineID][0]].number.gotoAndStop(currentNum + 1);
currentNum = currentNum + 1;
} else {
clearedSpace = _root["plaque" + _root.marineData[marineID][0]].number._currentframe;
b = 0;
while (b < _root.marinesInMission.length) {
if ((_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe > clearedSpace) && (_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe != 17)) {
_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number.gotoAndStop(_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe - 1);
}
b++;
}
_root["plaque" + _root.marineData[marineID][0]].number.gotoAndStop(17);
currentNum = currentNum - 1;
}
if (currentNum == _root.marineNumberLimit) {
b = 0;
while (b < _root.marinesInMission.length) {
trace(_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe);
if (_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe != 17) {
_root.marineOrder[_root["plaque" + _root.marineData[_root.marinesInMission[b]][0]].number._currentframe - 1] = _root.marinesInMission[b];
}
removeMovieClip("plaque" + _root.marineData[_root.marinesInMission[b]][0]);
b++;
}
w = 0;
while (w < _root.marineOrder.length) {
removeMovieClip(_root.plaqueCage.plaqueCage2["blankPlaque" + w]);
_root.plaqueCage.plaqueCage2.attachMovie("plaque" + _root.marineData[_root.marineOrder[w]][0], "plaque" + _root.marineData[_root.marineOrder[w]][0], w + 10);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]._x = 101.25 * w;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]._y = 0;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]._xscale = 75;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]._yscale = 75;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].number._visible = false;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].teamSelectButton._visible = false;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].gotoAndPlay("status");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].actionCounter.gotoAndPlay(_root.marineData[_root.marineOrder[w]][1] + 1);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].weaponMonitor.gotoAndPlay(_root.marineData[_root.marineOrder[w]][_root.marineData[_root.marineOrder[w]][12]][2]);
if (_root.marineData[_root.marineOrder[w]][9] == 1) {
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].healthMonitor.gotoAndPlay("wounded");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].heartRateMonitor.heartRate1.gotoAndPlay("wounded");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].heartRateMonitor.heartRate2.gotoAndPlay("wounded");
}
w++;
}
_root.plaqueCage.plaqueCage2.attachMovie("arrow", "arrow", 50);
_root.plaqueCage.plaqueCage2.arrow._y = 150;
if (_root.mapName == "operations") {
_root.plaqueCage.plaqueCage2.arrow._x = 101.25;
} else {
_root.plaqueCage.plaqueCage2.arrow._x = 0;
}
_root.actionarea.attachMovie(_root.mapName + "Deploy", "Deploy", 400);
_root.actionarea.Deploy._x = 0;
_root.actionarea.Deploy._y = 0;
trace("_root.marineOrder " + _root.marineOrder);
trace("_root.marineOrder.length " + _root.marineOrder.length);
gotoAndPlay ("placeMarines");
}
}
_root.soundmenu.gotoAndStop("volume2");
_root.marineNumberLimit = 0;
if (_root.mapName == "rescue") {
if (_root.marinesInMission.length > 8) {
_root.marineNumberLimit = 8;
} else {
_root.marineNumberLimit = _root.marinesInMission.length;
}
} else {
_root.marineNumberLimit = _root.marinesInMission.length;
}
currentNum = 0;
loopNum = 0;
row = 0;
r = 0;
while (r < 9) {
_root.plaqueCage.plaqueCage2.attachMovie("blankPlaque", "blankPlaque" + r, 1000 + r);
_root.plaqueCage.plaqueCage2["blankPlaque" + r]._x = 101.25 * r;
_root.plaqueCage.plaqueCage2["blankPlaque" + r]._y = 0;
_root.plaqueCage.plaqueCage2["blankPlaque" + r]._xscale = 75;
_root.plaqueCage.plaqueCage2["blankPlaque" + r]._yscale = 75;
r++;
}
if (_root.mapName == "rescue") {
p = 0;
while (p < _root.cocoonMarines.length) {
tempVar = p + _root.marineNumberLimit;
removeMovieClip(_root.plaqueCage.plaqueCage2["blankPlaque" + tempVar]);
_root.plaqueCage.plaqueCage2.attachMovie("plaque" + _root.marineData[_root.cocoonMarines[p]][0], "plaque" + _root.marineData[_root.cocoonMarines[p]][0], tempVar + 10);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]]._x = 101.25 * tempVar;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]]._y = 0;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]]._xscale = 75;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]]._yscale = 75;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].number._visible = false;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].teamSelectButton._visible = false;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].gotoAndPlay("status");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].actionCounter.gotoAndPlay(_root.marineData[_root.cocoonMarines[p]][1] + 1);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].weaponMonitor.gotoAndPlay(_root.marineData[_root.cocoonMarines[p]][_root.marineData[_root.cocoonMarines[p]][12]][2]);
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].healthMonitor.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].heartRateMonitor.heartRate1.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.cocoonMarines[p]][0]].heartRateMonitor.heartRate2.gotoAndPlay("incapacitated");
p++;
}
}
w = 0;
while (w < _root.marinesInMission.length) {
_root.attachMovie("plaque" + _root.marineData[_root.marinesInMission[w]][0], "plaque" + _root.marineData[_root.marinesInMission[w]][0], 3000 + w);
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]]._x = 302 + (140 * loopNum);
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]]._y = 300 + (110 * row);
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]].number.gotoAndStop("blank");
if (_root.marineData[_root.marinesInMission[w]][9] == 0) {
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]].marineStatus = "ACTIVE";
}
if (_root.marineData[_root.marinesInMission[w]][9] == 1) {
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]].marineStatus = "WOUNDED";
}
_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]].weaponChoice.gotoAndPlay(_root.marineData[_root.marinesInMission[w]][_root.marineData[_root.marinesInMission[w]][12]][2]);
if (loopNum < 2) {
loopNum = loopNum + 1;
} else {
loopNum = 0;
row = row + 1;
}
w++;
}
if (_root.mapName == "operations") {
_root["plaque" + _root.marineData[9][0]].teamSelectButton._visible = false;
_root["plaque" + _root.marineData[9][0]].number.gotoAndStop(1);
_root["plaque" + _root.marineData[10][0]].teamSelectButton._visible = false;
_root["plaque" + _root.marineData[10][0]].number.gotoAndStop(2);
_root["plaque" + _root.marineData[11][0]].teamSelectButton._visible = false;
_root["plaque" + _root.marineData[11][0]].number.gotoAndStop(3);
currentNum = 3;
}
_root.tempMarineOrder = [];
if (_root.marinesInMission.length == 1) {
_root.selectMarine(_root.marinesInMission[0]);
}
stop();
Frame 679
function placeMarine(squareY, squareX, clipName) {
_root.marineData[_root.marineOrder[placeCount]][6] = squareY;
_root.marineData[_root.marineOrder[placeCount]][7] = squareX;
_root.mapArray[_root.marineData[_root.marineOrder[placeCount]][6]][_root.marineData[_root.marineOrder[placeCount]][7]][1] = _root.marineOrder[placeCount];
_root.actionarea.attachMovie(_root.marineData[_root.marineOrder[placeCount]][0], _root.marineData[_root.marineOrder[placeCount]][0], 1000 + _root.marineOrder[placeCount]);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0]]._x = (squareX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0]]._y = (squareY * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0]]._rotation = _root.calculateRandom(0, 360);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0]].gotoAndPlay("normal" + _root.marineData[_root.marineOrder[placeCount]][12]);
_root.actionarea.attachMovie(_root.marineData[_root.marineOrder[placeCount]][0] + "Name", _root.marineData[_root.marineOrder[placeCount]][0] + "Name", 15000 + _root.marineOrder[placeCount]);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0] + "Name"]._x = (squareX * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0] + "Name"]._y = squareY * _root.tileSize;
_root.actionarea[_root.marineData[_root.marineOrder[placeCount]][0] + "Name"]._visible = false;
placeCount = placeCount + 1;
removeMovieClip(_root.actionarea["placeMarine" + clipName]);
if (placeCount == _root.marineOrder.length) {
w = 0;
while (w < _root.placeMarineSquares.length) {
removeMovieClip(_root.actionarea["placeMarine" + w]);
w++;
}
removeMovieClip(_root.actionarea.Deploy);
_root.plaqueCage.plaqueCage2.arrow._visible = false;
if (_root.mapName == "rescue") {
p = 0;
while (p < _root.cocoonMarines.length) {
_root.marineOrder[_root.marineOrder.length] = _root.cocoonMarines[p];
p++;
}
}
soundtrack.stop("menumusic");
soundtrack.attachSound(_root.mapName);
soundtrack.start(0, 99);
soundtrack.setVolume(_root.STvolume);
gotoAndPlay ("makeRangeArray");
} else {
_root.plaqueCage.plaqueCage2.arrow._x = 101.25 * placeCount;
}
}
placeCount = 0;
w = 0;
while (w < _root.placeMarineSquares.length) {
_root.actionarea.attachMovie("placeMarine", "placeMarine" + w, w + 10000);
_root.actionarea["placeMarine" + w]._x = _root.placeMarineSquares[w][1] * _root.tileSize;
_root.actionarea["placeMarine" + w]._y = _root.placeMarineSquares[w][0] * _root.tileSize;
_root.actionarea["placeMarine" + w].squareY = _root.placeMarineSquares[w][0];
_root.actionarea["placeMarine" + w].squareX = _root.placeMarineSquares[w][1];
_root.actionarea["placeMarine" + w].clipName = w;
w++;
}
if (_root.mapName == "operations") {
_root.marineData[9][6] = 9;
_root.marineData[9][7] = 7;
_root.mapArray[_root.marineData[9][6]][_root.marineData[9][7]][1] = 9;
_root.actionarea.attachMovie(_root.marineData[9][0], _root.marineData[9][0], 1009);
_root.actionarea[_root.marineData[9][0]]._x = (7 * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[9][0]]._y = (9 * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[9][0]]._rotation = _root.calculateRandom(0, 360);
_root.actionarea[_root.marineData[9][0]].gotoAndPlay("normal" + _root.marineData[9][12]);
_root.actionarea.attachMovie(_root.marineData[9][0] + "Name", _root.marineData[9][0] + "Name", 15009);
_root.actionarea[_root.marineData[9][0] + "Name"]._x = (7 * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[9][0] + "Name"]._y = 9 * _root.tileSize;
_root.actionarea[_root.marineData[9][0] + "Name"]._visible = false;
placeCount = placeCount + 1;
}
stop();
Frame 681
if (_root.burnCorridor == 3) {
gotoAndPlay ("rescueCode");
} else {
trace("THE TURN ARRAY " + _root.turnArray[_root.currentTurn]);
if (_root.mapName == "operations") {
if (_root.burkeDoor1 == 3) {
if (_root.alienDoor1 != 10) {
_root.alienDoor1 = _root.alienDoor1 + 1;
if (_root.alienDoor1 == 10) {
_root.actionarea.door1.gotoAndPlay("doorbusted");
_root.mapArray[13][9][4][225] = null;
_root.mapArray[13][9][4][180] = null;
_root.mapArray[13][9][4][135] = null;
_root.mapArray[13][10][4][180] = null;
_root.mapArray[13][10][4][225] = null;
_root.burkeDoor1 = 4;
if (_root.JasonRulez == true) {
_root.turnArray[_root.currentTurn + 1][_root.turnArray[_root.currentTurn + 1].length] = [3, 1];
_root.turnArray[_root.currentTurn + 2][_root.turnArray[_root.currentTurn + 2].length] = [3, 2];
_root.turnArray[_root.currentTurn + 3][_root.turnArray[_root.currentTurn + 3].length] = [4, 1];
_root.turnArray[_root.currentTurn + 5][_root.turnArray[_root.currentTurn + 5].length] = [4, 1];
_root.turnArray[_root.currentTurn + 6][_root.turnArray[_root.currentTurn + 6].length] = [5, 1];
_root.turnArray[_root.currentTurn + 7][_root.turnArray[_root.currentTurn + 7].length] = [5, 1];
_root.turnArray[_root.currentTurn + 8][_root.turnArray[_root.currentTurn + 8].length] = [6, 1];
_root.turnArray[_root.currentTurn + 9][_root.turnArray[_root.currentTurn + 9].length] = [6, 1];
_root.turnArray[_root.currentTurn + 10][_root.turnArray[_root.currentTurn + 10].length] = [5, 2];
_root.turnArray[_root.currentTurn + 11][_root.turnArray[_root.currentTurn + 11].length] = [5, 1];
_root.turnArray[_root.currentTurn + 12][_root.turnArray[_root.currentTurn + 12].length] = [6, 1];
_root.turnArray[_root.currentTurn + 13][_root.turnArray[_root.currentTurn + 13].length] = [6, 1];
_root.turnArray[_root.currentTurn + 14][_root.turnArray[_root.currentTurn + 14].length] = [3, 2];
_root.turnArray[_root.currentTurn + 14][_root.turnArray[_root.currentTurn + 14].length] = [4, 1];
_root.turnArray[_root.currentTurn + 16][_root.turnArray[_root.currentTurn + 16].length] = [5, 1];
_root.turnArray[_root.currentTurn + 17][_root.turnArray[_root.currentTurn + 17].length] = [6, 1];
_root.turnArray[_root.currentTurn + 18][_root.turnArray[_root.currentTurn + 18].length] = [5, 2];
_root.turnArray[_root.currentTurn + 20][_root.turnArray[_root.currentTurn + 20].length] = [6, 2];
_root.turnArray[_root.currentTurn + 20][_root.turnArray[_root.currentTurn + 20].length] = [4, 1];
_root.turnArray[_root.currentTurn + 21][_root.turnArray[_root.currentTurn + 21].length] = [6, 1];
}
} else {
_root.actionarea.door1.gotoAndPlay("doorbash");
}
}
}
marineInRoomTest = false;
m = 0;
while (m < _root.marineOrder.length) {
trace((("room check >13? <11? " + _root.marineData[_root.marineOrder[m]][6]) + " ") + _root.marineData[_root.marineOrder[m]][7]);
if ((((_root.marineData[_root.marineOrder[m]][2] == "target") && (_root.marineData[_root.marineOrder[m]][6] > 13)) && (_root.marineData[_root.marineOrder[m]][7] < 11)) && (_root.marineData[_root.marineOrder[m]][7] > 7)) {
marineInRoomTest = true;
}
m++;
}
if ((_root.JasonRulez == false) || (marineInRoomTest == true)) {
if (_root.burkeDoor1 == 4) {
trace("_root.aliensInRoom " + _root.aliensInRoom);
if (_root.aliensInRoom > 0) {
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = 13;
_root.aliensArray[newAlien][1] = 10;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 180;
_root.actionarea["alien" + newAlien].gotoAndStop("endofArrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.aliensInRoom = _root.aliensInRoom - 1;
}
if (_root.aliensInRoom > 0) {
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = 13;
_root.aliensArray[newAlien][1] = 9;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 180;
_root.actionarea["alien" + newAlien].gotoAndStop("endofArrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.aliensInRoom = _root.aliensInRoom - 1;
}
if (_root.aliensInRoom > 0) {
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = 12;
_root.aliensArray[newAlien][1] = 10;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 180;
_root.actionarea["alien" + newAlien].gotoAndStop("endofArrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.aliensInRoom = _root.aliensInRoom - 1;
}
if (_root.aliensInRoom > 0) {
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = 12;
_root.aliensArray[newAlien][1] = 9;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 180;
_root.actionarea["alien" + newAlien].gotoAndStop("endofArrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.aliensInRoom = _root.aliensInRoom - 1;
}
}
}
}
if (_root.mapName == "rescue") {
queenRoomCheck = false;
i = 0;
while (i < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[i]].room == _root.queenRoom) {
queenRoomCheck = true;
}
i++;
}
if (queenRoomCheck == true) {
_root.queenRoomWait = _root.queenRoomWait + 1;
}
if (_root.queenRoomWait == 2) {
i = 0;
while (i < _root.aliensArray.length) {
_root.aliensArray[i].wait = null;
i++;
}
}
_root.queenRoomWait;
if ((_root.burnCorridor > 0) && (_root.burnCorridor < 3)) {
_root.burnCorridor = _root.burnCorridor + 1;
}
if (_root.elevatorStatus1 != 1) {
if (_root.elevatorStatus1 == 10) {
_root.elevatorStatus1 = 1;
_root.actionarea.mainMap.map.elevator1.gotoAndPlay("down");
_root.mapArray[2][1][0] = 0;
_root.mapArray[2][2][0] = 0;
_root.mapArray[3][1][0] = 0;
_root.mapArray[3][2][0] = 0;
}
if (_root.elevatorStatus1 == 9) {
_root.elevatorStatus1 = 10;
}
if (_root.elevatorStatus1 == 8) {
_root.elevatorStatus1 = 9;
}
if (_root.elevatorStatus1 == 7) {
_root.elevatorStatus1 = 8;
}
if (_root.elevatorStatus1 == 5) {
_root.elevatorStatus1 = 6;
_root.actionarea.mainMap.map.elevator1.gotoAndPlay("up");
}
if (_root.elevatorStatus1 == 4) {
_root.elevatorStatus1 = 5;
}
if (_root.elevatorStatus1 == 3) {
_root.elevatorStatus1 = 4;
}
if (_root.elevatorStatus1 == 2) {
_root.elevatorStatus1 = 3;
}
}
if (_root.elevatorStatus2 != 1) {
if (_root.elevatorStatus2 == 10) {
_root.elevatorStatus2 = 1;
_root.actionarea.mainMap.map.elevator2.gotoAndPlay("down");
_root.mapArray[2][3][0] = 0;
_root.mapArray[2][4][0] = 0;
_root.mapArray[3][3][0] = 0;
_root.mapArray[3][4][0] = 0;
}
if (_root.elevatorStatus2 == 9) {
_root.elevatorStatus2 = 10;
}
if (_root.elevatorStatus2 == 8) {
_root.elevatorStatus2 = 9;
}
if (_root.elevatorStatus2 == 7) {
_root.elevatorStatus2 = 8;
}
if (_root.elevatorStatus2 == 5) {
_root.elevatorStatus2 = 6;
_root.actionarea.mainMap.map.elevator2.gotoAndPlay("up");
}
if (_root.elevatorStatus2 == 4) {
_root.elevatorStatus2 = 5;
}
if (_root.elevatorStatus2 == 3) {
_root.elevatorStatus2 = 4;
}
if (_root.elevatorStatus2 == 2) {
_root.elevatorStatus2 = 3;
}
}
n = 0;
while (n < 11) {
if ((_root.roomData[n] > 1) && (_root.roomData[n] < 4)) {
_root.roomData[n] = _root.roomData[n] + 1;
randCheck = _root.calculateRandom(1, 100);
trace("randCheck = " + randCheck);
if (randCheck < 63) {
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [n, 1];
}
trace("THE TURN ARRAY AFTER ALIENS " + _root.turnArray[_root.currentTurn]);
}
if (_root.roomData[n] == 1) {
_root.roomData[n] = _root.roomData[n] + 1;
}
n++;
}
_root.rescueAliensArray = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1, 1], [0, 0], [1, 1], [2, 1], [1, 2], [1, 2], [2, 2], [3, 3]];
randCheck2 = _root.calculateRandom(0, 8);
marineBump = 0;
n = 0;
while (n < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[n]][9] < 2) {
marineBump = marineBump + 1;
}
n++;
}
randCheck2 = randCheck2 + marineBump;
n = 0;
while (n < _root.rescueAliensArray[randCheck2][0]) {
stairNum = _root.calculateRandom(11, 19);
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [stairNum, _root.rescueAliensArray[randCheck2][1]];
n++;
}
if (_root.currentTurn == 50) {
_root.meltdown.gotoAndPlay("meltdown");
m = 0;
while (m < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[m]][2] != "out") {
_root.marineData[_root.marineOrder[m]][9] = 3;
}
m++;
}
}
}
if (_root.currentTurn < 9) {
turnText = "0" + (_root.currentTurn + 1);
} else {
turnText = _root.currentTurn + 1;
}
_root.turnMarker.turnMarkerText = "" + turnText;
_root.currentLoop = "makeRangeArray";
n = 0;
while (n < _root.aliensArray.length) {
if (_root.userInputExpected == false) {
trace((("alien" + n) + " is ") + _root.aliensArray[n][2]);
if (_root.aliensArray[n][2] == "combat") {
if (_root.marineData[_root.aliensArray[n][4]][8] == 1) {
trace("remove grabbed marine " + _root.marineData[_root.aliensArray[n][4]][0]);
_root.actionarea["alien" + n].gotoAndPlay("carryAway");
_root.actionarea["alien" + n].alienCage.attachMovie(_root.marineData[_root.aliensArray[n][4]][0], _root.marineData[_root.aliensArray[n][4]][0], 1);
_root.actionarea["alien" + n].alienCage[_root.marineData[_root.aliensArray[n][4]][0]].rotate = _root.actionarea[_root.marineData[_root.aliensArray[n][4]][0]].rotate;
_root.actionarea["alien" + n].alienCage[_root.marineData[_root.aliensArray[n][4]][0]].gotoAndStop(_root.actionarea[_root.marineData[_root.aliensArray[n][4]][0]]._currentframe);
removeMovieClip(_root.actionarea[_root.marineData[_root.aliensArray[n][4]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.aliensArray[n][4]][0] + "Name"]);
if (_root.marineData[_root.aliensArray[n][4]][9] != 3) {
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.aliensArray[n][4]][0]].healthMonitor.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.aliensArray[n][4]][0]].heartRateMonitor.heartRate1.gotoAndPlay("incapacitated");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.aliensArray[n][4]][0]].heartRateMonitor.heartRate2.gotoAndPlay("incapacitated");
_root.marineData[_root.aliensArray[n][4]][9] = 2;
_root.marineData[_root.aliensArray[n][4]][2] = "out";
}
mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][1] = null;
mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][3][_root.aliensArray[n][4]] = false;
if (mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][3].length != 0) {
z = 0;
while (z < mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][3].length) {
if (mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][3][z] == _root.aliensArray[n][4]) {
mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][3][z] = null;
}
z++;
}
}
_root.aliensArray[n][2] = "out";
_root.mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][2] = null;
_root.mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][5][0] = _root.mapArray[_root.marineData[_root.aliensArray[n][4]][6]][_root.marineData[_root.aliensArray[n][4]][7]][5][0] - 1;
} else {
_root.alienSelect = n;
_root.marineSelect = _root.aliensArray[n][4];
alienCombat(n, _root.aliensArray[n][4]);
}
}
}
n++;
}
n = 0;
while (n < _root.aliensArray.length) {
_root.aliensArray[n].moved = false;
n++;
}
trace(_root.turnArray[0][0][1]);
_root.newAlienArrayLocation = _root.turnArray[_root.currentTurn].length - 1;
p = 0;
while (p < _root.turnArray[_root.currentTurn].length) {
_root.tempAlienNum[p] = _root.turnArray[_root.currentTurn][p][1];
p++;
}
gotoAndPlay ("beforeProcessRangeArray");
}
Frame 687
_root.currentLoop = "beforeProcessRangeArray";
gotoAndPlay ("processRangeArray");
Frame 688
if (_root.userInputExpected == false) {
_root.targetRange = [];
n = 0;
while (n < 40) {
_root.targetRange[n] = [];
n++;
}
n = 0;
while (n < _root.aliensArray.length) {
if (((_root.aliensArray[n][2] == "normal") && (_root.aliensArray[n].wait != true)) && (_root.aliensArray[n].moved != true)) {
m = 0;
while (m < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[m]][2] == "target") {
yDiff = Math.abs(_root.aliensArray[n][0] - _root.marineData[_root.marineOrder[m]][6]);
xDiff = Math.abs(_root.aliensArray[n][1] - _root.marineData[_root.marineOrder[m]][7]);
if (yDiff > xDiff) {
Dist = yDiff;
} else {
Dist = xDiff;
}
_root.targetRange[Dist][_root.targetRange[Dist].length] = [n, _root.marineOrder[m]];
}
m++;
}
}
n++;
}
n = 0;
while (n < _root.targetRange.length) {
m = 0;
while (m < _root.targetRange[n].length) {
trace((((("TARGET ARRAY range " + n) + " Alien ") + _root.targetRange[n][m][0]) + " Marine ") + _root.targetRange[n][m][1]);
m++;
}
n++;
}
_root.currentRange = 0;
arrayIsNotBlank = false;
while ((arrayIsNotBlank == false) && (_root.currentRange < 40)) {
if (_root.targetRange[_root.currentRange][0][0] != null) {
arrayIsNotBlank = true;
} else {
_root.currentRange = _root.currentRange + 1;
}
}
trace("arrayIsNotBlank " + arrayIsNotBlank);
if (arrayIsNotBlank == true) {
setSelect = _root.calculateRandom(0, _root.targetRange[_root.currentRange].length - 1);
alienSelect = _root.targetRange[_root.currentRange][setSelect][0];
marineSelect = _root.targetRange[_root.currentRange][setSelect][1];
_root.aliensArray[alienSelect].moved = true;
trace("move alien" + alienSelect);
if (_root.aliensArray[alienSelect].queen == true) {
_root.alienActions = 3;
} else {
_root.alienActions = 4;
}
gotoAndPlay ("moveAlien");
} else if (_root.currentRange >= _root.targetRange.length) {
if (_root.tempAlienNum[_root.newAlienArrayLocation] > 0) {
bonusBug = _root.calculateRandom(0, 9);
if (bonusBug == 0) {
_root.tempAlienNum[_root.newAlienArrayLocation] = _root.tempAlienNum[_root.newAlienArrayLocation] + 1;
trace("BONUS BUG");
}
randNum = _root.calculateRandom(0, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]].length - 1);
randNumX = null;
randNumY = null;
if ((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][5][1]) < 1) {
randNumX = _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1];
randNumY = _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0];
} else {
tempAlienLocationArray = [];
trace("map [5][0]" + _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][0]);
trace("map [5][1]" + _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][1]);
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1];
trace("1 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("1 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0], _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1];
trace("2 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("2 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] - 1];
trace("3 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("3 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if ((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][5][0] < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]];
trace("4 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("4 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1]];
trace("5 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("5 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] - 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1];
trace("6 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("6 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0]][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0], _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1];
trace("7 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("7 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (((_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][0] - _root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][5][1]) < 1) && (_root.mapArray[_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1][_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1][0] < 3)) {
tempAlienLocationArray[tempAlienLocationArray.length] = [_root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][0] + 1, _root["randAlienStart" + _root.turnArray[_root.currentTurn][_root.newAlienArrayLocation][0]][randNum][1] + 1];
trace("8 [0] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][0]);
trace("8 [1] " + tempAlienLocationArray[tempAlienLocationArray.length - 1][1]);
}
if (tempAlienLocationArray.length != 0) {
randNum = _root.calculateRandom(0, tempAlienLocationArray.length - 1);
randNumX = tempAlienLocationArray[randNum][1];
randNumY = tempAlienLocationArray[randNum][0];
}
}
if (randNumX != null) {
trace("Ok this one : " + randNum);
newAlien = _root.aliensArray.length;
trace("NEW ALIEN " + newAlien);
trace((("randNumX " + randNumX) + " randNumY ") + randNumY);
if ((((_root.mapName == "operations") && (_root.burkeDoor1 >= 3)) && (randNumY < 14)) && (randNumX < 11)) {
_root.aliensInRoom = _root.aliensInRoom + 1;
trace("Aliens in room " + _root.aliensInRoom);
} else {
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = randNumY;
_root.aliensArray[newAlien][1] = randNumX;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.aliensArray[newAlien].moved = true;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = _root.calculateRandom(0, 360);
_root.actionarea["alien" + newAlien].gotoAndPlay("arrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
alienSelect = newAlien;
newAlienTargetRange = [];
b = 0;
while (b < 40) {
newAlienTargetRange[b] = [];
b++;
}
m = 0;
while (m < _root.marineData.length) {
if (_root.marineData[m][2] == "target") {
if (_root.aliensArray[alienSelect][0] > _root.marineData[m][6]) {
yDiff = _root.aliensArray[alienSelect][0] - _root.marineData[m][6];
} else {
yDiff = _root.marineData[m][6] - _root.aliensArray[alienSelect][0];
}
if (_root.aliensArray[alienSelect][1] > _root.marineData[m][7]) {
xDiff = _root.aliensArray[alienSelect][1] - _root.marineData[m][7];
} else {
xDiff = _root.marineData[m][7] - _root.aliensArray[alienSelect][1];
}
if (yDiff > xDiff) {
Dist = yDiff;
} else {
Dist = xDiff;
}
newAlienTargetRange[Dist][newAlienTargetRange[Dist].length] = m;
}
m++;
}
trace("check check " + newAlienTargetRange);
marineSelect = null;
p = 0;
while ((marineSelect == null) && (p < newAlienTargetRange.length)) {
if (newAlienTargetRange[p].length != 0) {
marineSelect = newAlienTargetRange[p][_root.calculateRandom(0, newAlienTargetRange[p].length - 1)];
} else {
p = p + 1;
}
}
if ((_root.aliensArray[alienSelect][0] == _root.marineData[marineSelect][6]) && (_root.aliensArray[alienSelect][1] == _root.marineData[marineSelect][7])) {
goalY = _root.marineData[marineSelect][6];
goalX = _root.marineData[marineSelect][7];
}
trace((("move alien" + alienSelect) + " target is ") + _root.marineData[marineSelect][0]);
_root.alienActions = 1;
_root.alienArrive = false;
gotoAndPlay ("waitForArrival");
}
}
_root.tempAlienNum[_root.newAlienArrayLocation] = _root.tempAlienNum[_root.newAlienArrayLocation] - 1;
if (_root.tempAlienNum[_root.newAlienArrayLocation] == 0) {
_root.newAlienArrayLocation = _root.newAlienArrayLocation - 1;
}
} else {
stop();
trace("Alien movement over");
b = 0;
while (b < _root.aliensArray.length) {
if (_root.aliensArray[b][2] == "stunnedInMarine") {
if (_root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][5][1] == _root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][5][0]) {
_root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][5][1] = _root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][5][1] - 1;
_root.aliensArray[b][2] = "normal";
trace((("alien " + b) + " is ") + _root.aliensArray[b][2]);
randPos = _root.calculateRandom(0, 6);
_root.actionarea["alien" + b].gotoAndStop("normal" + randPos);
_root.actionarea["alien" + b].swapDepths(2000 + b);
if (_root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][1] != null) {
_root.marineData[_root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][1]][2] = "combat";
_root.aliensArray[b][2] = "combat";
_root.aliensArray[b][4] = _root.mapArray[_root.aliensArray[b][0]][_root.aliensArray[b][1]][1];
}
}
}
if (_root.aliensArray[b][2] == "stunnedInAlien") {
_root.aliensArray[b][2] = "stunnedInMarine";
trace((("alien " + b) + " is ") + _root.aliensArray[b][2]);
}
b++;
}
_root.marineOrderCurrentPosition = 0;
_root.marineSelect = _root.marineOrder[_root.marineOrderCurrentPosition];
gotoAndPlay ("stop");
}
} else {
stop();
trace(_root.currentRange);
gotoAndPlay ("beforeProcessRangeArray");
}
} else {
trace("waiting for user input");
gotoAndPlay ("userWait");
}
Frame 693
if (_root.alienArrive == false) {
gotoAndPlay ("waitForArrival2");
} else {
gotoAndPlay ("moveAlien");
}
Frame 696
gotoAndPlay ("waitForArrival");
Frame 697
function checkMoveBlockage(thisY, thisX) {
trace("ALIEN MOVE [5][0] " + _root.mapArray[thisY][thisX][5][0]);
trace("ALIEN MOVE [5][1] " + _root.mapArray[thisY][thisX][5][1]);
_root.otherMarineXY = false;
if ((_root.mapArray[thisY][thisX][1] != null) && (_root.mapArray[thisY][thisX][1] != _root.marineSelect)) {
_root.otherMarineXY = true;
}
t = 0;
while (t < _root.alienPreviousMovement.length) {
if ((_root.alienPreviousMovement[t][0] == thisY) && (_root.alienPreviousMovement[t][1] == thisX)) {
_root.otherMarineXY = true;
}
t++;
}
calcThisDirectionX = thisX - _root.aliensArray[alienSelect][1];
calcThisDirectionY = thisY - _root.aliensArray[alienSelect][0];
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
if (_root.mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][4][calcThisAngle] > 0) {
_root.otherMarineXY = true;
}
}
if (_root.userInputExpected == false) {
if (goalY != "") {
trace((((("calc move: alien" + alienSelect) + " to ") + goalY) + " ") + goalX);
realXgoal = (goalX * _root.tileSize) + (_root.tileSize / 2);
realYgoal = (goalY * _root.tileSize) + (_root.tileSize / 2);
if ((_root.actionarea["alien" + alienSelect]._y != realYgoal) || (_root.actionarea["alien" + alienSelect]._x != realXgoal)) {
moveInc = _root.tileSize / 5;
currentY = _root.aliensArray[alienSelect][0];
currentX = _root.aliensArray[alienSelect][1];
yMovement = 0;
xMovement = 0;
if (currentY > goalY) {
yMovement = moveInc * -1;
}
if (currentY < goalY) {
yMovement = moveInc;
}
if (currentY == goalY) {
yMovement = 0;
}
if (currentX > goalX) {
xMovement = moveInc * -1;
}
if (currentX < goalX) {
xMovement = moveInc;
}
if (currentX == goalX) {
xMovement = 0;
}
Xdist = goalX - currentX;
Ydist = goalY - currentY;
_root.actionarea["alien" + alienSelect]._x = _root.actionarea["alien" + alienSelect]._x + xMovement;
_root.actionarea["alien" + alienSelect]._y = _root.actionarea["alien" + alienSelect]._y + yMovement;
_root.actionarea["alien" + alienSelect]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
_root.actionarea["alien" + alienSelect].gotoAndStop(_root.actionarea["alien" + alienSelect]._currentframe + 1);
} else {
mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][2] = null;
mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][5][0] = mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][5][0] - 1;
_root.aliensArray[alienSelect][0] = goalY;
_root.aliensArray[alienSelect][1] = goalX;
mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][2] = alienSelect;
mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][5][0] = mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][5][0] + 1;
if ((goalY == _root.marineData[marineSelect][6]) && (goalX == _root.marineData[marineSelect][7])) {
h = 0;
while (h < _root.targetRange.length) {
i = 0;
while (i < _root.targetRange[h].length) {
if (_root.targetRange[h][i][0][1] == marineSelect) {
_root.targetRange[h][i] = "empty";
}
i++;
}
h++;
}
_root.alienActions = 0;
if (_root.aliensArray[alienSelect].queen == true) {
} else {
_root.marineData[marineSelect][2] = "combat";
_root.aliensArray[alienSelect][2] = "combat";
_root.aliensArray[alienSelect][4] = marineSelect;
alienCombat(alienSelect, marineSelect);
}
}
goalY = "";
goalX = "";
}
gotoAndPlay ("moveAlienRepeat");
} else {
trace("alienActions = " + _root.alienActions);
if (_root.alienActions > 0) {
trace("calc navigation to marineSelect " + marineSelect);
yMovement = 0;
xMovement = 0;
tempNewY = 0;
tempNewX = 0;
destinationY = _root.marineData[marineSelect][6];
destinationX = _root.marineData[marineSelect][7];
if (_root.mapName == "operations") {
if (((_root.aliensArray[alienSelect][1] < 35) && (destinationX > 34)) && (destinationY > 16)) {
destinationY = 16;
destinationX = 37;
}
if ((((destinationX > 30) && (destinationX < 36)) && (destinationY > 18)) && (destinationY < 21)) {
marineInCorridor = true;
} else {
marineInCorridor = false;
}
if (((((_root.aliensArray[alienSelect][0] > 30) && (_root.aliensArray[alienSelect][0] < 36)) && (_root.aliensArray[alienSelect][1] > 18)) && (_root.aliensArray[alienSelect][1] < 21)) && (marineInCorridor == false)) {
destinationY = 18;
destinationX = 30;
}
if ((_root.aliensArray[alienSelect][1] < 11) && (destinationX > 11)) {
destinationY = 15;
destinationX = 11;
}
if (((_root.aliensArray[alienSelect][1] > 10) && (_root.aliensArray[alienSelect][1] < 16)) && (destinationX > 16)) {
destinationY = 13;
destinationX = 16;
}
if (((_root.aliensArray[alienSelect][1] > 14) && (_root.aliensArray[alienSelect][1] < 21)) && (destinationX > 21)) {
destinationY = 18;
destinationX = 21;
}
if (((_root.aliensArray[alienSelect][1] > 20) && (_root.aliensArray[alienSelect][1] < 25)) && (destinationX > 25)) {
destinationY = 16;
destinationX = 25;
}
if (((_root.aliensArray[alienSelect][1] > 24) && (_root.aliensArray[alienSelect][1] < 28)) && (destinationX > 28)) {
destinationY = 20;
destinationX = 28;
}
if (((_root.aliensArray[alienSelect][1] > 27) && (_root.aliensArray[alienSelect][1] < 31)) && (destinationX > 31)) {
destinationY = 16;
destinationX = 31;
}
}
if (_root.aliensArray[alienSelect][0] > destinationY) {
yMovement = -1;
}
if (_root.aliensArray[alienSelect][0] < destinationY) {
yMovement = 1;
}
if (_root.aliensArray[alienSelect][0] == destinationY) {
yMovement = 0;
}
if (_root.aliensArray[alienSelect][1] > destinationX) {
xMovement = -1;
}
if (_root.aliensArray[alienSelect][1] < destinationX) {
xMovement = 1;
}
if (_root.aliensArray[alienSelect][1] == destinationX) {
xMovement = 0;
}
if (goalY == "") {
tempNewX = _root.aliensArray[alienSelect][1] + xMovement;
tempNewY = _root.aliensArray[alienSelect][0] + yMovement;
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if ((xMovement == 0) || (yMovement == 0)) {
if (xMovement == 0) {
test1TempNewY = _root.aliensArray[alienSelect][0] + yMovement;
test1TempNewX = _root.aliensArray[alienSelect][1] + 1;
test2TempNewY = _root.aliensArray[alienSelect][0] + yMovement;
test2TempNewX = _root.aliensArray[alienSelect][1] - 1;
} else {
test1TempNewY = _root.aliensArray[alienSelect][0] + 1;
test1TempNewX = _root.aliensArray[alienSelect][1] + xMovement;
test2TempNewY = _root.aliensArray[alienSelect][0] - 1;
test2TempNewX = _root.aliensArray[alienSelect][1] + xMovement;
}
tempMoveChoice = [];
checkMoveBlockage(test1TempNewY, test1TempNewX);
if (((_root.mapArray[test1TempNewY][test1TempNewX][0] < 3) && (_root.mapArray[test1TempNewY][test1TempNewX][5][0] == _root.mapArray[test1TempNewY][test1TempNewX][5][1])) && (_root.otherMarineXY == false)) {
tempMoveChoice[tempMoveChoice.length] = [test1TempNewY, test1TempNewX];
}
checkMoveBlockage(test2TempNewY, test2TempNewX);
if (((_root.mapArray[test2TempNewY][test2TempNewX][0] < 3) && (_root.mapArray[test2TempNewY][test2TempNewX][5][0] == _root.mapArray[test2TempNewY][test2TempNewX][5][1])) && (_root.otherMarineXY == false)) {
tempMoveChoice[tempMoveChoice.length] = [test2TempNewY, test2TempNewX];
}
if (tempMoveChoice.length != 0) {
MoveChoiceVar = _root.calculateRandom(1, tempMoveChoice.length);
goalX = tempMoveChoice[MoveChoiceVar - 1][1];
goalY = tempMoveChoice[MoveChoiceVar - 1][0];
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
}
if (goalY == "") {
if ((xMovement == 0) || (yMovement == 0)) {
if (xMovement == 0) {
test1TempNewY = _root.aliensArray[alienSelect][0];
test1TempNewX = _root.aliensArray[alienSelect][1] + 1;
test2TempNewY = _root.aliensArray[alienSelect][0];
test2TempNewX = _root.aliensArray[alienSelect][1] - 1;
} else {
test1TempNewY = _root.aliensArray[alienSelect][0] + 1;
test1TempNewX = _root.aliensArray[alienSelect][1];
test2TempNewY = _root.aliensArray[alienSelect][0] - 1;
test2TempNewX = _root.aliensArray[alienSelect][1];
}
tempMoveChoice = [];
checkMoveBlockage(test1TempNewY, test1TempNewX);
if (((_root.mapArray[test1TempNewY][test1TempNewX][0] < 3) && (_root.mapArray[test1TempNewY][test1TempNewX][5][0] == _root.mapArray[test1TempNewY][test1TempNewX][5][1])) && (_root.otherMarineXY == false)) {
tempMoveChoice[tempMoveChoice.length] = [test1TempNewY, test1TempNewX];
}
checkMoveBlockage(test2TempNewY, test2TempNewX);
if (((_root.mapArray[test2TempNewY][test2TempNewX][0] < 3) && (_root.mapArray[test2TempNewY][test2TempNewX][5][0] == _root.mapArray[test2TempNewY][test2TempNewX][5][1])) && (_root.otherMarineXY == false)) {
tempMoveChoice[tempMoveChoice.length] = [test2TempNewY, test2TempNewX];
}
if (tempMoveChoice.length != 0) {
MoveChoiceVar = _root.calculateRandom(1, tempMoveChoice.length);
goalX = tempMoveChoice[MoveChoiceVar - 1][1];
goalY = tempMoveChoice[MoveChoiceVar - 1][0];
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
}
xDiff = Math.abs(_root.aliensArray[alienSelect][1] - _root.marineData[marineSelect][7]);
yDiff = Math.abs(_root.aliensArray[alienSelect][0] - _root.marineData[marineSelect][6]);
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + xMovement;
tempNewY = _root.aliensArray[alienSelect][0];
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1];
tempNewY = _root.aliensArray[alienSelect][0] + yMovement;
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1];
tempNewY = _root.aliensArray[alienSelect][0] + yMovement;
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + xMovement;
tempNewY = _root.aliensArray[alienSelect][0];
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + xMovement;
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0] + yMovement;
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0] + yMovement;
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + xMovement;
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1];
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0];
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0];
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1];
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
_root.alienPreviousMovement[_root.alienPreviousMovement.length] = [goalY, goalX];
}
}
if (goalY == "") {
if (xDiff >= yDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
if (yDiff > xDiff) {
tempNewX = _root.aliensArray[alienSelect][1] + (xMovement * -1);
tempNewY = _root.aliensArray[alienSelect][0] + (yMovement * -1);
}
checkMoveBlockage(tempNewY, tempNewX);
if (((_root.mapArray[tempNewY][tempNewX][0] < 3) && (_root.mapArray[tempNewY][tempNewX][5][0] == _root.mapArray[tempNewY][tempNewX][5][1])) && (_root.otherMarineXY == false)) {
goalY = tempNewY;
goalX = tempNewX;
}
}
if (goalY == "") {
goalX = _root.aliensArray[alienSelect][1];
goalY = _root.aliensArray[alienSelect][0];
}
if (_root.mapArray[goalY][goalX][0] == 1) {
_root.alienActions = _root.alienActions - 2;
if (_root.alienActions < 0) {
goalX = _root.aliensArray[alienSelect][1];
goalY = _root.aliensArray[alienSelect][0];
}
} else {
_root.alienActions = _root.alienActions - 1;
}
trace((((("alien" + alienSelect) + " move to ") + goalY) + " ") + goalX);
gotoAndPlay ("moveAlienRepeat");
} else {
_root.alienPreviousMovement = [];
trace("end of move, goto next alien");
if (_root.aliensArray[alienSelect].queen == true) {
marineArray = [];
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
if (_root.marineData[_root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][1]][9] < 2) {
marineArray[marineArray.length] = _root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][1];
}
u++;
}
t++;
}
if (marineArray.length != 0) {
_root.actionarea["alien" + alienSelect].gotoAndPlay("attack");
}
d = 0;
while (d < 4) {
marineArray = [];
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
calcThisDirectionX = ((_root.aliensArray[alienSelect][1] + u) - 1) - _root.aliensArray[alienSelect][1];
calcThisDirectionY = ((_root.aliensArray[alienSelect][0] + t) - 1) - _root.aliensArray[alienSelect][0];
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
if (_root.mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][4][calcThisAngle] > 1) {
} else {
targetIsOK = true;
if (_root.aliensArray[_root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][2]][2] == "combat") {
targetIsOK = false;
}
if (_root.aliensArray[_root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][2]].queen == true) {
targetIsOK = true;
}
if ((_root.marineData[_root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][1]][9] < 2) && (targetIsOK == true)) {
marineArray[marineArray.length] = _root.mapArray[(_root.aliensArray[alienSelect][0] + t) - 1][(_root.aliensArray[alienSelect][1] + u) - 1][1];
}
}
u++;
}
t++;
}
f = 0;
while (f < marineArray.length) {
trace("OPTION " + marineArray[f]);
f++;
}
if (marineArray.length != 0) {
marineChoice = _root.calculateRandom(0, marineArray.length - 1);
trace("CHOICE " + marineArray[marineChoice]);
alienCombat(alienSelect, marineArray[marineChoice]);
if (_root.marineData[marineArray[marineChoice]][9] > 1) {
h = 0;
while (h < _root.targetRange.length) {
i = 0;
while (i < _root.targetRange[h].length) {
if (_root.targetRange[h][i][0][1] == marineArray[marineChoice]) {
_root.targetRange[h][i] = "empty";
}
i++;
}
h++;
}
}
}
d++;
}
}
gotoAndPlay ("beforeProcessRangeArray");
}
}
} else {
trace("waiting for user input");
gotoAndPlay ("userWait");
}
Frame 705
gotoAndPlay ("moveAlien");
Frame 706
trace("throwstunned");
trace((("set Select at the begining of the throw = alien" + _root.alienSelect) + " marine") + _root.marineSelect);
_root.actionarea.attachMovie("throwStunned", "throwStunned", 8000);
_root.actionarea.throwStunned._x = _root.aliensArray[_root.alienSelect][1] * _root.tileSize;
_root.actionarea.throwStunned._y = _root.aliensArray[_root.alienSelect][0] * _root.tileSize;
_root.actionarea.throwStunned.alienName = _root.alienSelect;
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
calcThisDirectionX = u - 1;
calcThisDirectionY = t - 1;
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (_root.mapArray[_root.aliensArray[_root.alienSelect][0]][_root.aliensArray[_root.alienSelect][1]][4][calcThisAngle] != null) {
directionBlocked = true;
}
if ((_root.mapArray[(_root.aliensArray[_root.alienSelect][0] + t) - 1][(_root.aliensArray[_root.alienSelect][1] + u) - 1][0] >= 4) || (directionBlocked == true)) {
_root.actionarea.throwStunned[("arrow" + t) + u]._visible = false;
}
u++;
}
t++;
}
_root.marineData[_root.marineSelect][2] = "target";
_root.aliensArray[_root.alienSelect][4] = "";
_root.actionarea["alien" + _root.alienSelect].gotoAndPlay("stunned");
trace("STUNNNNNNNNNNNED alien" + _root.alienSelect);
gotoAndPlay ("userWait");
Frame 711
gotoAndPlay ("userWait");
Frame 712
trace("============GOTO MARINE TURN===========");
w = 0;
while (w < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[w]][9] < 2) {
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]].actionCounter.gotoAndStop(_root.marineData[_root.marineOrder[w]][1] + 1);
}
w++;
}
_root.plaqueCage.plaqueCage2.arrow._x = 101.25 * _root.marineOrderCurrentPosition;
_root.plaqueCage.plaqueCage2.arrow._visible = true;
if (_root.mapName == "operations") {
if (_root.snap != 1) {
_root.OPtempActionX = _root.actionarea._x;
_root.OPtempActionY = _root.actionarea._y;
_root.OPtempActionXscale = _root.actionarea._xscale;
_root.OPtempActionYscale = _root.actionarea._yscale;
}
trace(_root.actionarea._x);
trace(_root.actionarea._y);
trace(_root.actionarea._xscale);
trace(_root.actionarea._yscale);
gotoAndPlay ("operationsCode");
} else {
_root.marineOrderCurrentPosition = 0;
gotoAndPlay ("beforeMakeButtons");
}
Frame 714
if (_root.cutMarine != null) {
_root.actionarea[_root.marineData[_root.cutMarine][0]].gotoAndPlay("normal" + _root.marineData[_root.cutMarine][12]);
_root.cutMarine = null;
}
if (_root.door1CutTime == 1) {
_root.actionarea.door1.buttonCutDoorNumber.gotoAndStop("step1");
}
if (_root.door1CutTime == 2) {
_root.actionarea.door1.buttonCutDoorNumber.gotoAndStop("step2");
}
if (((_root.newtDoor1 == 0) && (_root.marineData[10][6] > 13)) && (_root.marineData[10][7] < 11)) {
newtCheck = calculateRandom(1, 10);
if (newtCheck <= 7) {
_root.newtDoor1 = 1;
_root.actionarea.mainMap.opMap.ducts._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare1._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare2._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare3._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare4._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare5._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare6._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare7._visible = true;
_root.actionarea.mainMap.opMap.newtDescitionSquare8._visible = true;
_root.mapArray[15][11][0] = 0;
Ydist = 15 - _root.marineData[10][6];
Xdist = 11 - _root.marineData[10][7];
_root.actionarea.attachMovie(_root.mapName + "Deploy4", "Deploy2", 100);
_root.actionarea.Deploy2._x = 0;
_root.actionarea.Deploy2._y = 0;
_root.actionarea[_root.marineData[10][0]]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
_root.actionarea[_root.marineData[10][0]].gotoAndPlay("thisway");
}
}
if ((_root.burkeDoor1 == 3) && (_root.actionarea.mainMap.opMap.fog1._alpha != 100)) {
_root.OPsealDoor();
}
if ((_root.door1CutTime == 3) && (_root.burkeDoor1 < 2)) {
_root.actionarea.door1.buttonCutDoorNumber.gotoAndPlay("step3");
_root.burkeDoor1 = 2;
_root.actionarea.door1.gotoAndPlay("open");
_root.mapArray[13][9][4][225] = null;
_root.mapArray[13][9][4][180] = null;
_root.mapArray[13][9][4][135] = null;
_root.mapArray[13][10][4][180] = null;
_root.mapArray[13][10][4][225] = null;
_root.mapArray[14][8][4][45] = null;
_root.mapArray[14][9][4][0] = null;
_root.mapArray[14][9][4][45] = null;
_root.mapArray[14][10][4][-45] = null;
_root.mapArray[14][10][4][0] = null;
removeMovieClip(_root.actionarea.Deploy);
_root.actionarea.attachMovie(_root.mapName + "Deploy3", "Deploy", 100);
_root.actionarea.Deploy._x = 0;
_root.actionarea.Deploy._y = 0;
}
if (_root.currentTurn == 6) {
_root.mapArray[9][9][0] = 0;
_root.mapArray[9][10][0] = 0;
_root.actionarea.attachMovie(_root.mapName + "Deploy2", "Deploy", 15);
_root.actionarea.Deploy._x = 0;
_root.actionarea.Deploy._y = 0;
}
if (((_root.marineData[9][6] == 14) && (_root.marineData[9][7] == 9)) && (_root.burkeDoor1 == 0)) {
_root.burkeDoor1 = 1;
_root.actionarea.door1.gotoAndPlay("close");
_root.mapArray[13][9][4][225] = 2;
_root.mapArray[13][9][4][180] = 2;
_root.mapArray[13][9][4][135] = 2;
_root.mapArray[13][10][4][180] = 2;
_root.mapArray[13][10][4][225] = 2;
_root.mapArray[14][8][4][45] = 2;
_root.mapArray[14][9][4][0] = 2;
_root.mapArray[14][9][4][45] = 2;
_root.mapArray[14][10][4][-45] = 2;
_root.mapArray[14][10][4][0] = 2;
}
if (((_root.marineData[9][6] == 14) && (_root.marineData[9][7] == 7)) && (_root.burkeDoor2 == 0)) {
_root.burkeDoor2 = 1;
_root.actionarea.door2.gotoAndPlay("close");
_root.mapArray[14][7][4][90] = 2;
_root.mapArray[14][7][4][135] = 2;
_root.mapArray[14][8][4][270] = 2;
_root.mapArray[14][8][4][225] = 2;
_root.mapArray[15][7][4][45] = 2;
_root.mapArray[15][7][4][90] = 2;
_root.mapArray[15][7][4][135] = 2;
_root.mapArray[15][8][4][-45] = 2;
_root.mapArray[15][8][4][270] = 2;
_root.mapArray[16][8][4][-45] = 2;
}
if ((_root.currentTurn == 12) && (_root.marineData[9][9] < 2)) {
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = 15;
_root.aliensArray[newAlien][1] = 7;
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 0;
_root.actionarea["alien" + newAlien].gotoAndPlay("arrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.actionarea.Burke._rotation = 180;
}
if (((_root.marineData[9][9] < 2) && (_root.currentMarineActions < 2)) && (_root.marineData[9][8] != 1)) {
_root.actionarea._xscale = 200;
_root.actionarea._yscale = 200;
_root.actionarea._x = 512 - ((_root.burkeMoveArray[_root.burkeMove][1] * 40) * (_root.actionarea._xscale / 100));
_root.actionarea._y = 393 - ((_root.burkeMoveArray[_root.burkeMove][0] * 40) * (_root.actionarea._yscale / 100));
if (_root.burkeMove < 22) {
goalY = _root.burkeMoveArray[_root.burkeMove][0];
goalX = _root.burkeMoveArray[_root.burkeMove][1];
gotoAndPlay ("operationsCodeBurkeMove");
} else {
_root.actionarea._x = _root.OPtempActionX;
_root.actionarea._y = _root.OPtempActionY;
_root.actionarea._xscale = _root.OPtempActionXscale;
_root.actionarea._yscale = _root.OPtempActionYscale;
_root.snap = 0;
_root.marineOrderCurrentPosition = 1;
_root.currentMarineActions = 0;
gotoAndPlay ("beforeMakeButtons");
}
} else {
_root.actionarea._x = _root.OPtempActionX;
_root.actionarea._y = _root.OPtempActionY;
_root.actionarea._xscale = _root.OPtempActionXscale;
_root.actionarea._yscale = _root.OPtempActionYscale;
_root.snap = 0;
_root.marineOrderCurrentPosition = 1;
_root.currentMarineActions = 0;
gotoAndPlay ("beforeMakeButtons");
}
Frame 717
if (goalY != "") {
realXgoal = (goalX * _root.tileSize) + (_root.tileSize / 2);
realYgoal = (goalY * _root.tileSize) + (_root.tileSize / 2);
if ((_root.actionarea.Burke._y != realYgoal) || (_root.actionarea.Burke._x != realXgoal)) {
moveInc = _root.tileSize / 10;
currentY = _root.marineData[9][6];
currentX = _root.marineData[9][7];
yMovement = 0;
xMovement = 0;
if (currentY > goalY) {
yMovement = moveInc * -1;
}
if (currentY < goalY) {
yMovement = moveInc;
}
if (currentY == goalY) {
yMovement = 0;
}
if (currentX > goalX) {
xMovement = moveInc * -1;
}
if (currentX < goalX) {
xMovement = moveInc;
}
if (currentX == goalX) {
xMovement = 0;
}
Xdist = goalX - currentX;
Ydist = goalY - currentY;
_root.actionarea.Burke._x = _root.actionarea.Burke._x + xMovement;
_root.actionarea.Burke._y = _root.actionarea.Burke._y + yMovement;
_root.actionarea.Burke._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
} else {
_root.mapArray[_root.marineData[9][6]][_root.marineData[9][7]][1] = null;
_root.marineData[9][6] = goalY;
_root.marineData[9][7] = goalX;
_root.currentMarineActions = _root.currentMarineActions + 1;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[9][0]].actionCounter.gotoAndStop((_root.marineData[9][1] + 1) - _root.currentMarineActions);
_root.mapArray[_root.marineData[9][6]][_root.marineData[9][7]][1] = 9;
_root.burkeMove = _root.burkeMove + 1;
goalY = "";
goalX = "";
if ((_root.marineData[9][6] == 14) && (_root.marineData[9][7] == 9)) {
_root.actionarea.Burke._rotation = 0;
}
}
gotoAndPlay ("operationsCodeBurkeMoveRepeat");
} else {
gotoAndPlay ("operationsCode");
}
Frame 719
_root.RescueTempActionX = _root.actionarea._x;
_root.RescueTempActionY = _root.actionarea._y;
_root.RescueTempActionXscale = _root.actionarea._xscale;
_root.RescueTempActionXscale = _root.actionarea._yscale;
_root.actionarea._xscale = 200;
_root.actionarea._yscale = 200;
_root.actionarea._x = 512 - (680 * (_root.actionarea._xscale / 100));
_root.actionarea._y = 393 - (80 * (_root.actionarea._yscale / 100));
Frame 724
ReturnX = _root.actionarea._x;
ReturnY = _root.actionarea._y;
_root.mapArray[1][16][0] = 4;
_root.mapArray[1][17][0] = 4;
_root.mapArray[1][18][0] = 4;
_root.mapArray[1][19][0] = 4;
_root.mapArray[2][15][0] = 4;
_root.mapArray[2][16][0] = 4;
_root.mapArray[2][17][0] = 4;
_root.mapArray[2][18][0] = 4;
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
Frame 725
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 726
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 727
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 728
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 729
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 730
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
_root.actionarea.attachMovie("hallFire", "hallFire", 7050);
_root.actionarea.hallFire._x = 15 * _root.tileSize;
_root.actionarea.hallFire._y = 2 * _root.tileSize;
s = 0;
while (s < _root.aliensArray.length) {
if (((((_root.aliensArray[s][2] != "dead") && (_root.aliensArray[s][0] > 0)) && (_root.aliensArray[s][0] < 3)) && (_root.aliensArray[s][1] > 14)) && (_root.aliensArray[s][1] < 20)) {
alienName = s;
alienDeath = _root.calculateRandom(0, 1);
if (_root.aliensArray[alienName].queen != true) {
_root.actionarea["alien" + alienName].gotoAndPlay("death" + alienDeath);
} else {
_root.actionarea["alien" + alienName].gotoAndPlay("death");
_root.aliensArray[alienName].queenHit = 20;
}
_root.aliensArray[alienName][2] = "dead";
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.acidSplash(alienName);
}
s++;
}
f = 0;
while (f < _root.marineOrder.length) {
if ((((_root.marineData[_root.marineOrder[f]][6] > 0) && (_root.marineData[_root.marineOrder[f]][6] < 3)) && (_root.marineData[_root.marineOrder[f]][7] > 14)) && (_root.marineData[_root.marineOrder[f]][7] < 20)) {
_root.marineDamage(_root.marineOrder[f], 3);
}
f++;
}
Frame 731
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 732
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 733
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 734
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 735
_root.actionarea._x = ReturnX;
_root.actionarea._y = ReturnY;
Frame 744
_root.actionarea._x = _root.RescueTempActionX;
_root.actionarea._y = _root.RescueTempActionY;
_root.actionarea._xscale = _root.RescueTempActionXscale;
_root.actionarea._yscale = _root.RescueTempActionXscale;
_root.burnCorridor = 4;
gotoAndPlay ("makeRangeArray");
Frame 745
function removeAllbuttons() {
o = 0;
while (o < _root.marineButtonsArray.length) {
removeMovieClip(_root.actionarea[_root.marineButtonsArray[o]]);
trace("remove " + _root.marineButtonsArray[o]);
o++;
}
p = 0;
while (p < _root.marineButtonsArrayShooting.length) {
removeMovieClip(_root.actionarea[_root.marineButtonsArrayShooting[p]]);
trace("remove " + _root.marineButtonsArrayShooting[p]);
p++;
}
trace("what is the the INC ARRAY!!!!!! ?????? " + _root.marineIncButtonsArray);
q = 0;
while (q < _root.marineIncButtonsArray.length) {
removeMovieClip(_root[_root.marineIncButtonsArray[q]]);
trace("remove " + _root.marineIncButtonsArray[q]);
q++;
}
_root.marineIncButtonsArray = [];
_root.marineButtonsArrayShooting = [];
_root.marineButtonsArray = [];
}
Frame 746
removeAllbuttons();
_root.plaqueCage.plaqueCage2.arrow._x = 101.25 * _root.marineOrderCurrentPosition;
_root.plaqueCage.plaqueCage2.arrow._visible = true;
if (_root.marineOrder[_root.marineOrderCurrentPosition] == 10) {
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
if (_root.mapArray[(_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][6] + t) - 1][(_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][7] + u) - 1][1] == 11) {
_root.ripleyNewtCheck = 1;
}
u++;
}
t++;
}
if (_root.marineData[11][9] > 1) {
_root.ripleyNewtCheck = 1;
}
if (_root.ripleyNewtCheck != 1) {
_root.currentMarineActions = _root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][1];
}
}
if (((((_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][9] < 2) && (_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][8] != 1)) && (_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][2] != "out")) && (_root.currentMarineActions < _root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][1])) && (_root.aliensArray[_root.mapArray[_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][6]][_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][7]][2]].queen != true)) {
_root.marineSelect = _root.marineOrder[_root.marineOrderCurrentPosition];
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineSelect][0]].actionCounter.gotoAndStop((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) + 1);
trace(("it is " + _root.marineData[_root.marineSelect][0]) + "'s move time");
_root.actionarea[_root.marineData[_root.marineSelect][0]].swapDepths(1500 + _root.marineSelect);
trace("marine Level " + _root.actionarea[_root.marineData[_root.marineSelect][0]]._level);
_root.actionarea.attachMovie("moveMarine", "moveMarine", 8002);
_root.actionarea.moveMarine._x = _root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][7] * _root.tileSize;
_root.actionarea.moveMarine._y = _root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][6] * _root.tileSize;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "moveMarine";
trace("moveMarine X pos " + _root.actionarea.moveMarine._x);
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
calcThisDirectionX = u - 1;
calcThisDirectionY = t - 1;
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] != null) {
directionBlocked = true;
}
if (((((_root.mapArray[(_root.marineData[_root.marineSelect][6] + t) - 1][(_root.marineData[_root.marineSelect][7] + u) - 1][0] >= 2) || (_root.mapArray[(_root.marineData[_root.marineSelect][6] + t) - 1][(_root.marineData[_root.marineSelect][7] + u) - 1][1] != null)) || (_root.mapArray[(_root.marineData[_root.marineSelect][6] + t) - 1][(_root.marineData[_root.marineSelect][7] + u) - 1][5][0] > 0)) || (_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][2] == "combat")) || (directionBlocked == true)) {
_root.actionarea.moveMarine[("moveMarine" + t) + u]._visible = false;
_root.actionarea.moveMarine[("moveMarine2" + t) + u]._visible = false;
}
if (_root.mapArray[(_root.marineData[_root.marineSelect][6] + t) - 1][(_root.marineData[_root.marineSelect][7] + u) - 1][0] == 1) {
_root.actionarea.moveMarine[("moveMarine" + t) + u]._visible = false;
if ((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) < 2) {
_root.actionarea.moveMarine[("moveMarine2" + t) + u]._visible = false;
}
} else {
_root.actionarea.moveMarine[("moveMarine2" + t) + u]._visible = false;
}
u++;
}
t++;
}
if (_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][2] == "combat") {
_root.actionarea.moveMarine.movePass._visible = false;
}
trace("melee test data 0 " + _root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][5][0]);
trace("melee test data 1 " + _root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][5][1]);
if (_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][2] == "combat") {
_root.actionarea.attachMovie("melee", "melee1", 8001);
_root.actionarea.melee1._x = _root.marineData[_root.marineSelect][7] * _root.tileSize;
_root.actionarea.melee1._y = _root.marineData[_root.marineSelect][6] * _root.tileSize;
_root.actionarea.melee1.alienName = _root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][2];
_root.marineButtonsArray[_root.marineButtonsArray.length] = "melee1";
trace(_root.marineButtonsArray[_root.marineButtonsArray.length - 1]);
}
trace("move onto shooting buttons");
s = 0;
while (s < _root.aliensArray.length) {
if ((((_root.aliensArray[s][2] != "out") && (_root.aliensArray[s][2] != "dead")) && (_root.marineData[_root.marineSelect][2] != "combat")) && (_root.actionarea["alien" + s]._visible != false)) {
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
yDiff = _root.aliensArray[s][0] - _root.marineData[_root.marineSelect][6];
xDiff = _root.aliensArray[s][1] - _root.marineData[_root.marineSelect][7];
if (Math.abs(yDiff) > Math.abs(xDiff)) {
yInc = yDiff / Math.abs(yDiff);
xInc = xDiff / Math.abs(yDiff);
loop = Math.abs(yDiff);
direction = y;
} else {
yInc = yDiff / Math.abs(xDiff);
xInc = xDiff / Math.abs(xDiff);
loop = Math.abs(xDiff);
direction = x;
}
trace((("yInc " + yInc) + " xInc ") + xInc);
while (loop != loopLocation) {
currentYDist = 20 + (yInc * (21 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (21 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
currentYDist = 20 + (yInc * (59 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (59 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineSelect][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineSelect][7] * 40) + currentXDist) / 40;
if ((Math.floor(tempY) != tempArray[tempArray.length - 1][0]) || (Math.floor(tempX) != tempArray[tempArray.length - 1][1])) {
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
}
loopLocation = loopLocation + 1;
}
g = 0;
while (g < tempArray.length) {
if (g == 0) {
calcThisDirectionX = tempArray[g][1] - _root.marineData[_root.marineSelect][7];
calcThisDirectionY = tempArray[g][0] - _root.marineData[_root.marineSelect][6];
} else {
calcThisDirectionX = tempArray[g][1] - tempArray[g - 1][1];
calcThisDirectionY = tempArray[g][0] - tempArray[g - 1][0];
}
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (g == 0) {
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
} else if (_root.mapArray[tempArray[g - 1][0]][tempArray[g - 1][1]][4][calcThisAngle] > 0) {
directionBlocked = true;
}
if ((_root.mapArray[tempArray[g][0]][tempArray[g][1]][0] == 4) || (directionBlocked == true)) {
LOS = false;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "flame unit") {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][1] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != null) {
if (_root.mapArray[tempArray[g][0]][tempArray[g][1]][2] != s) {
LOS = false;
}
}
}
if ((tempArray[g][1] == tempArray[g - 1][1]) && (tempArray[g][0] == tempArray[g - 1][0])) {
LOS = true;
}
g++;
}
if ((yDiff == 0) && (xDiff == 0)) {
LOS = false;
}
trace(LOS);
if (LOS == true) {
trace(("alien" + s) + " is a target");
if (Math.abs(yDiff) > Math.abs(xDiff)) {
Dist = Math.abs(yDiff);
} else {
Dist = Math.abs(xDiff);
}
if (Dist == 1) {
rangeBand = 0;
} else if (Dist == 2) {
rangeBand = 1;
} else if ((Dist > 2) && (Dist < 5)) {
rangeBand = 2;
} else if ((Dist > 4) && (Dist < 7)) {
rangeBand = 3;
} else {
rangeBand = 4;
}
targetNum = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][(_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) - 1][rangeBand];
if ((targetNum != null) || (Dist == 1)) {
_root.actionarea.attachMovie("shooting", "shooting" + s, 9000 + s);
_root.actionarea["shooting" + s]._x = _root.aliensArray[s][1] * _root.tileSize;
_root.actionarea["shooting" + s]._y = _root.aliensArray[s][0] * _root.tileSize;
_root.marineButtonsArrayShooting[_root.marineButtonsArrayShooting.length] = "shooting" + s;
trace(_root.marineButtonsArrayShooting[_root.marineButtonsArray.length - 1]);
_root.actionarea["shooting" + s].alienName = s;
_root.actionarea["shooting" + s].Dist = Dist;
_root.actionarea["shooting" + s].rangeBand = rangeBand;
trace((("shooting target num for range band " + rangeBand) + " is ") + targetNum);
trace((("alien" + s) + " range to marine = ") + Dist);
}
}
}
s++;
}
if ((_root.marineData[_root.marineSelect][10] == null) && (_root.marineSelect != 10)) {
buttonIncriment = 0;
f = 0;
while (f < _root.marineOrder.length) {
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][3][_root.marineOrder[f]] == "inc") {
_root.attachMovie("incMarine", "incMarine" + f, 5000 + f);
_root["incMarine" + f]._x = (buttonIncriment * _root.tileSize) + 15;
_root["incMarine" + f]._y = 200;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "incMarine" + f;
_root["incMarine" + f].gotoAndStop(_root.marineOrder[f] + 1);
buttonIncriment = buttonIncriment + 1;
}
f++;
}
}
if ((_root.marineData[_root.marineSelect][10] != null) && (_root.marineSelect != 10)) {
_root.attachMovie("incMarineDrop", "incMarineDrop", 6000);
_root.incMarineDrop._x = 975;
_root.incMarineDrop._y = 200;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "incMarineDrop";
_root.incMarineDrop.gotoAndStop(_root.marineData[_root.marineSelect][10] + 1);
}
if ((_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "pulse rifle") && (_root.marineData[_root.marineSelect][2] != "combat")) {
_root.attachMovie("grenadeSelectClip", "grenadeSelectClip", 6500);
_root.grenadeSelectClip._x = 880;
_root.grenadeSelectClip._y = 200;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "grenadeSelectClip";
}
if ((_root.marineSelect == 11) && (_root.mapName == "rescue")) {
_root.attachMovie("weaponSwitchClip", "weaponSwitchClip", 6501);
_root.weaponSwitchClip._x = 785;
_root.weaponSwitchClip._y = 200;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "weaponSwitchClip";
if (_root.marineData[_root.marineSelect][12] == 3) {
_root.weaponSwitchClip.gotoAndStop("switch3");
} else {
_root.weaponSwitchClip.gotoAndStop("switch13");
}
}
if (((_root.mapName == "operations") && (_root.marineData[_root.marineSelect][11] > 0)) && (_root.marineData[_root.marineSelect][2] != "combat")) {
if ((((_root.marineData[_root.marineSelect][6] == 13) && (_root.marineData[_root.marineSelect][7] == 10)) && (_root.burkeDoor1 == 1)) && (_root.door1CutTime < 3)) {
_root.actionarea.attachMovie("buttonCutDoor", "cutDoor", 8501);
_root.actionarea.cutDoor._x = 10 * _root.tileSize;
_root.actionarea.cutDoor._y = 14 * _root.tileSize;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "cutDoor";
}
if (((_root.marineData[_root.marineSelect][6] == 14) && (_root.marineData[_root.marineSelect][7] == 10)) && (_root.burkeDoor1 == 2)) {
_root.actionarea.attachMovie("buttonSealDoor", "cutDoor", 8501);
_root.actionarea.cutDoor._x = (11 * _root.tileSize) - 5;
_root.actionarea.cutDoor._y = (13 * _root.tileSize) - 5;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "cutDoor";
}
}
if ((_root.mapName == "rescue") && (_root.marineData[_root.marineSelect][2] != "combat")) {
d = 0;
while (d <= 2) {
e = 0;
while (e <= 2) {
f = 0;
while (f < _root.cocoonMarines.length) {
tempMarineY = (_root.marineData[_root.marineSelect][6] + d) - 1;
trace("cocoon tempMarineY " + tempMarineY);
tempMarineX = (_root.marineData[_root.marineSelect][7] + e) - 1;
trace("cocoon tempMarineX " + tempMarineX);
if (_root.mapArray[tempMarineY][tempMarineX][3][_root.cocoonMarines[f]] == "inc") {
tempMarine = _root.cocoonMarines[f];
} else {
tempMarine = null;
}
trace("cocoon tempMarine " + tempMarine);
squareCheck = _root.marineData[tempMarine][14][0];
trace("cocoon squareCheck " + squareCheck);
calcThisDirectionX = tempMarineX - _root.marineData[_root.marineSelect][7];
calcThisDirectionY = tempMarineY - _root.marineData[_root.marineSelect][6];
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][4][calcThisAngle] > 1) {
squareCheck = null;
}
if (squareCheck != null) {
_root.actionarea.attachMovie("buttonCutCocoon", "cutCocoon" + tempMarine, 8600 + tempMarine);
_root.actionarea["cutCocoon" + tempMarine]._x = _root.marineData[tempMarine][14][2] * _root.tileSize;
_root.actionarea["cutCocoon" + tempMarine]._y = _root.marineData[tempMarine][14][1] * _root.tileSize;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "cutCocoon" + tempMarine;
_root.actionarea["cutCocoon" + tempMarine].cocoonArrow._rotation = _root.actionarea[_root.marineData[tempMarine][0]]._rotation;
_root.actionarea["cutCocoon" + tempMarine].cocoonMarine = tempMarine;
}
f++;
}
e++;
}
d++;
}
}
if (((_root.mapName == "rescue") && (_root.marineSelect == 11)) && (_root.marineData[11][9] != 3)) {
_root.attachMovie("rangeToNewt", "rangeToNewt", 6502);
_root.rangeToNewt._x = 715;
_root.rangeToNewt._y = 200;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "rangeToNewt";
diffY = Math.abs(_root.marineData[11][6] - _root.marineData[10][6]);
diffX = Math.abs(_root.marineData[11][7] - _root.marineData[10][7]);
if (diffY > diffX) {
_root.rangeToNewt.newtRange = diffY + "m";
} else {
_root.rangeToNewt.newtRange = diffX + "m";
}
}
if ((_root.mapName == "rescue") && (_root.marineData[_root.marineSelect][2] != "combat")) {
if (((_root.marineData[_root.marineSelect][6] == 4) && ((_root.marineData[_root.marineSelect][7] == 1) || (_root.marineData[_root.marineSelect][7] == 2))) && (_root.elevatorStatus1 == 6)) {
_root.actionarea.attachMovie("buttonElevatorDown", "elevatorDown", 8501);
_root.actionarea.elevatorDown._x = 1 * _root.tileSize;
_root.actionarea.elevatorDown._y = 3 * _root.tileSize;
_root.actionarea.elevatorDown.elevatorName = 1;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "elevatorDown";
}
if (((_root.marineData[_root.marineSelect][6] == 4) && ((_root.marineData[_root.marineSelect][7] == 3) || (_root.marineData[_root.marineSelect][7] == 4))) && (_root.elevatorStatus2 == 6)) {
_root.actionarea.attachMovie("buttonElevatorDown", "elevatorDown", 8501);
_root.actionarea.elevatorDown._x = 3 * _root.tileSize;
_root.actionarea.elevatorDown._y = 3 * _root.tileSize;
_root.actionarea.elevatorDown.elevatorName = 2;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "elevatorDown";
}
if (((((_root.marineData[_root.marineSelect][6] > 1) && (_root.marineData[_root.marineSelect][6] < 4)) && (_root.marineData[_root.marineSelect][7] > 0)) && (_root.marineData[_root.marineSelect][7] < 3)) && (_root.elevatorStatus1 == 1)) {
_root.actionarea.attachMovie("buttonElevatorUp", "elevatorUp", 8501);
_root.actionarea.elevatorUp._x = 1 * _root.tileSize;
_root.actionarea.elevatorUp._y = 1 * _root.tileSize;
_root.actionarea.elevatorUp.elevatorName = 1;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "elevatorUp";
}
if (((((_root.marineData[_root.marineSelect][6] > 1) && (_root.marineData[_root.marineSelect][6] < 4)) && (_root.marineData[_root.marineSelect][7] > 2)) && (_root.marineData[_root.marineSelect][7] < 5)) && (_root.elevatorStatus2 == 1)) {
_root.actionarea.attachMovie("buttonElevatorUp", "elevatorUp", 8501);
_root.actionarea.elevatorUp._x = 3 * _root.tileSize;
_root.actionarea.elevatorUp._y = 1 * _root.tileSize;
_root.actionarea.elevatorUp.elevatorName = 2;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "elevatorUp";
}
}
trace("_root.marineOrderCurrentPosition :" + _root.marineOrderCurrentPosition);
trace("_root.marineOrder[_root.marineOrderCurrentPosition] :" + _root.marineOrder[_root.marineOrderCurrentPosition]);
trace("_root.marineSelect :" + _root.marineSelect);
trace("_root.currentMarineActions :" + _root.currentMarineActions);
trace("_root.marineSelect condition :" + _root.marineData[_root.marineSelect][2]);
trace("goto button loop");
gotoAndPlay ("makeButtonsLoop");
} else {
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineSelect][0]].actionCounter.gotoAndPlay((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) + 1);
_root.marineOrderCurrentPosition = _root.marineOrderCurrentPosition + 1;
_root.ripleyNewtCheck = 0;
_root.currentMarineActions = 0;
if (_root.marineOrderCurrentPosition >= _root.marineOrder.length) {
trace("Marines are finished");
_root.missionOver = true;
t = 0;
while (t < _root.marineOrder.length) {
trace((_root.marineData[_root.marineOrder[t]][0] + " is ") + _root.marineData[_root.marineOrder[t]][2]);
trace((_root.marineData[_root.marineOrder[t]][0] + " health is ") + _root.marineData[_root.marineOrder[t]][9]);
if ((_root.marineData[_root.marineOrder[t]][2] != "out") && (_root.marineData[_root.marineOrder[t]][9] < 2)) {
_root.missionOver = false;
}
t++;
}
if (_root.missionOver == true) {
trace("=== MISSION OVER ===");
if (_root.marineData[_root.marineSelect][9] < 2) {
_root.actionarea[_root.marineData[_root.marineSelect][0]].swapDepths(1000 + _root.marineSelect);
}
trace("marine Level " + _root.actionarea[_root.marineData[_root.marineSelect][0]]._level);
gotoAndPlay ("stopMarine");
} else {
_root.marineOrderCurrentPosition = 0;
if (_root.marineData[_root.marineSelect][9] < 2) {
_root.actionarea[_root.marineData[_root.marineSelect][0]].swapDepths(1000 + _root.marineSelect);
}
trace("marine Level " + _root.actionarea[_root.marineData[_root.marineSelect][0]]._level);
_root.currentTurn = _root.currentTurn + 1;
t = 0;
while (t < _root.marineOrder.length) {
trace((("Marine Level " + t) + " ") + _root.actionarea[_root.marineData[t][0]]._level);
t++;
}
_root.plaqueCage.plaqueCage2.arrow._visible = false;
gotoAndPlay ("makeRangeArray");
}
}
if (_root.marineData[_root.marineSelect][9] < 2) {
_root.actionarea[_root.marineData[_root.marineSelect][0]].swapDepths(1000 + _root.marineSelect);
}
trace("marine Level " + _root.actionarea[_root.marineData[_root.marineSelect][0]]._level);
gotoAndPlay ("beforeMakeButtons");
}
Frame 750
trace("in the middle of the loop");
stop();
Frame 751
trace("STOP1");
soundtrack.stop(_root.mapName);
soundtrack.attachSound("endmission");
soundtrack.start(0, 1);
soundtrack.setVolume(_root.STvolume);
textVar1 = "";
textVar2 = "";
textVar3 = "";
removeMovieClip(_root.plaqueCage.plaqueCage2.arrow);
_root.attachMovie("summary", "summary", 11000);
_root.summary._x = 512;
_root.summary._y = 250;
textVar1 = "MISSION SUMMARY\n==========================================\n";
_root.summary.summary1 = textVar1;
m = 0;
while (m < _root.marineOrder.length) {
textVar2 = (textVar2 + _root.marineData[_root.marineOrder[m]][0]) + newline;
m++;
}
textVar2 = (textVar2 + "\nTurn: ") + _root.currentTurn;
aliensKilled = 0;
z = 0;
while (z < _root.aliensArray.length) {
if (_root.aliensArray[z][2] == "dead") {
aliensKilled = aliensKilled + 1;
}
z++;
}
textVar2 = (textVar2 + "\nAliens killed: ") + aliensKilled;
_root.summary.summary2 = textVar2;
m = 0;
while (m < _root.marineOrder.length) {
trace(_root.marineData[_root.marineOrder[m]][0]);
trace("_root.marineData[_root.marineOrder[m]][9] " + _root.marineData[_root.marineOrder[m]][9]);
trace("_root.marineData[_root.marineOrder[m]][8] " + _root.marineData[_root.marineOrder[m]][8]);
trace("_root.marineData[_root.marineOrder[m]][2] " + _root.marineData[_root.marineOrder[m]][2]);
if (_root.marineData[_root.marineOrder[m]][9] == 0) {
textVar3 = textVar3 + " active\n";
}
if (_root.marineData[_root.marineOrder[m]][9] == 1) {
textVar3 = textVar3 + " wounded\n";
}
if (_root.marineData[_root.marineOrder[m]][9] == 2) {
if ((_root.marineData[_root.marineOrder[m]][2] == "out") && (_root.marineData[_root.marineOrder[m]][8] != 1)) {
inCocoon = false;
n = 0;
while (n < _root.cocoonMarines.length) {
if (_root.cocoonMarines[n] == _root.marineOrder[m]) {
inCocoon = true;
}
n++;
}
if (inCocoon == true) {
textVar3 = textVar3 + " rescued\n";
} else {
textVar3 = textVar3 + " incapacitated\n";
}
} else {
textVar3 = textVar3 + " MIA\n";
}
}
if (_root.marineData[_root.marineOrder[m]][9] == 3) {
textVar3 = textVar3 + " KIA\n";
}
m++;
}
_root.summary.summary3 = textVar3;
stop();
Frame 754
trace("STOP2");
stop();
Symbol 4 MovieClip [bannerWounded] Frame 45
removeMovieClip(this);
Symbol 7 MovieClip [bannerIncapacitated] Frame 45
removeMovieClip(this);
Symbol 10 MovieClip [bannerGrabbed] Frame 45
removeMovieClip(this);
Symbol 13 MovieClip [bannerDead] Frame 45
removeMovieClip(this);
Symbol 22 Button
on (release, keyPress "z") {
trace("pass shot");
_root.gotoAndPlay("makeButtons");
}
Symbol 34 MovieClip [grenadeExplosion] Frame 1
ReturnX = _root.actionarea._x;
ReturnY = _root.actionarea._y;
gunshot = new Sound(this);
gunshot.attachSound("explosion");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
if (_root.JasonRulez == true) {
this._xscale = 80;
this._yscale = 80;
}
Symbol 34 MovieClip [grenadeExplosion] Frame 2
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 3
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 4
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 5
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 6
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 7
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
s = 0;
while (s < _root.aliensArray.length) {
if (_root.aliensArray[s][2] != "dead") {
alienName = s;
yDiff = _root.grenadeY - _root.aliensArray[alienName][0];
xDiff = _root.grenadeX - _root.aliensArray[alienName][1];
if (Math.abs(yDiff) > Math.abs(xDiff)) {
trueDiff = Math.abs(yDiff);
} else {
trueDiff = Math.abs(xDiff);
}
trace(trueDiff);
if ((trueDiff < 1) && (_root.aliensArray[alienName].queen == true)) {
_root.queenDeath(alienName);
_root.acidSplash(alienName);
}
if ((trueDiff < 2) && (_root.aliensArray[alienName].queen != true)) {
alienDeath = _root.calculateRandom(0, 1);
_root.actionarea["alien" + alienName].gotoAndPlay("death" + alienDeath);
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.aliensArray[alienName][2] = "dead";
_root.acidSplash(alienName);
}
if (trueDiff < 7) {
_root.waitCheck(this.alienName);
}
}
s++;
}
f = 0;
while (f < _root.marineOrder.length) {
trace("_root.marineData[_root.marineOrder[f]][9] " + _root.marineData[_root.marineOrder[f]][9]);
if ((_root.marineData[_root.marineOrder[f]][9] < 3) && (_root.marineData[_root.marineOrder[f]][2] != "out")) {
yDiff = _root.grenadeY - _root.marineData[_root.marineOrder[f]][6];
xDiff = _root.grenadeX - _root.marineData[_root.marineOrder[f]][7];
trace((("GRENADE _root.grenadeX " + _root.grenadeX) + " _root.marineData[_root.marineOrder[f]][7] ") + _root.marineData[_root.marineOrder[f]][7]);
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
if (Math.abs(yDiff) > Math.abs(xDiff)) {
yInc = yDiff / Math.abs(yDiff);
xInc = xDiff / Math.abs(yDiff);
loop = Math.abs(yDiff);
direction = y;
} else {
yInc = yDiff / Math.abs(xDiff);
xInc = xDiff / Math.abs(xDiff);
loop = Math.abs(xDiff);
direction = x;
}
trace(((((((" GRENADE yInc " + yInc) + " xInc ") + xInc) + " loop ") + loop) + " yDiff ") + yDiff);
while (loop != loopLocation) {
currentYDist = 20 + (yInc * (21 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (21 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineOrder[f]][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineOrder[f]][7] * 40) + currentXDist) / 40;
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
currentYDist = 20 + (yInc * (59 + (loopLocation * 40)));
currentXDist = 20 + (xInc * (59 + (loopLocation * 40)));
tempY = ((_root.marineData[_root.marineOrder[f]][6] * 40) + currentYDist) / 40;
tempX = ((_root.marineData[_root.marineOrder[f]][7] * 40) + currentXDist) / 40;
if ((Math.floor(tempY) != tempArray[tempArray.length - 1][0]) || (Math.floor(tempX) != tempArray[tempArray.length - 1][1])) {
tempArray[tempArray.length] = [Math.floor(tempY), Math.floor(tempX)];
}
loopLocation = loopLocation + 1;
}
g = 0;
while (g < tempArray.length) {
if (g == 0) {
calcThisDirectionX = tempArray[g][1] - _root.marineData[_root.marineOrder[f]][7];
calcThisDirectionY = tempArray[g][0] - _root.marineData[_root.marineOrder[f]][6];
} else {
calcThisDirectionX = tempArray[g][1] - tempArray[g - 1][1];
calcThisDirectionY = tempArray[g][0] - tempArray[g - 1][0];
}
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (g == 0) {
if (_root.mapArray[_root.marineData[_root.marineOrder[f]][6]][_root.marineData[_root.marineOrder[f]][7]][4][calcThisAngle] != null) {
directionBlocked = true;
}
} else if (_root.mapArray[tempArray[g - 1][0]][tempArray[g - 1][1]][4][calcThisAngle] != null) {
directionBlocked = true;
}
if ((_root.mapArray[tempArray[g][0]][tempArray[g][1]][0] == 4) || (directionBlocked == true)) {
LOS = false;
}
g++;
}
trace(LOS);
if (LOS == true) {
if (Math.abs(yDiff) > Math.abs(xDiff)) {
trueDiff = Math.abs(yDiff);
} else {
trueDiff = Math.abs(xDiff);
}
if (trueDiff < 2) {
_root.marineDamage(_root.marineOrder[f], 3);
}
if ((trueDiff > 1) && (trueDiff < 4)) {
_root.marineDamage(_root.marineOrder[f], 2);
}
if (_root.JasonRulez == true) {
if ((trueDiff > 3) && (trueDiff < 7)) {
_root.marineDamage(_root.marineOrder[f], 1);
}
} else if ((trueDiff > 3) && (trueDiff < 9)) {
_root.marineDamage(_root.marineOrder[f], 1);
}
}
}
f++;
}
Symbol 34 MovieClip [grenadeExplosion] Frame 8
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 9
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 10
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 11
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 12
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 13
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 14
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 15
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 16
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 34 MovieClip [grenadeExplosion] Frame 17
_root.actionarea._x = ReturnX;
_root.actionarea._y = ReturnY;
_root.gotoAndPlay("makeButtons");
Symbol 34 MovieClip [grenadeExplosion] Frame 66
removeMovieClip(this);
Symbol 40 Button
on (release) {
_root.preload.stop("preloader");
gotoAndPlay (674);
}
Symbol 42 MovieClip Frame 1
this.percent = Math.floor((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) + " % LOADED";
Symbol 42 MovieClip Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.percent = "100 % LOADED";
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 42 MovieClip Frame 3
_root.begin._alpha = 100;
stop();
Symbol 88 MovieClip [queen] Frame 2
aliendeath = new Sound(this);
aliendeath.attachSound("queen1");
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 88 MovieClip [queen] Frame 19
gotoAndStop ("normal0");
Symbol 88 MovieClip [queen] Frame 46
gotoAndStop ("normal0");
Symbol 88 MovieClip [queen] Frame 47
aliendeath = new Sound(this);
aliendeath.attachSound("aliendeath" + _root.calculateRandom(2, 4));
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 88 MovieClip [queen] Frame 70
gotoAndStop ("normal0");
Symbol 88 MovieClip [queen] Frame 71
aliendeath = new Sound(this);
aliendeath.attachSound("aliendeath" + _root.calculateRandom(2, 4));
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
play();
Symbol 88 MovieClip [queen] Frame 92
this.swapDepths(this.alienID + 50);
stop();
Symbol 96 MovieClip Frame 1
Symbol 96 MovieClip Frame 31
gotoAndPlay ("startBurn");
Symbol 97 MovieClip [hallFire] Frame 1
burn = new Sound(this);
burn.attachSound("explosion");
burn.start(0, 1);
burn.setVolume(_root.SFvolume);
Symbol 97 MovieClip [hallFire] Frame 12
stop();
Symbol 102 MovieClip [block] Frame 1
stop();
Symbol 102 MovieClip [block] Frame 2
stop();
Symbol 102 MovieClip [block] Frame 3
stop();
Symbol 102 MovieClip [block] Frame 4
stop();
Symbol 122 MovieClip [flameUnitShot] Frame 29
removeMovieClip(this);
Symbol 129 Button
on (release) {
removeMovieClip(_root.plaqueCage.plaqueCage2.arrow);
removeMovieClip(_root.actionarea.mainMap);
removeMovieClip(_root.actionarea.door1);
removeMovieClip(_root.actionarea.door2);
removeMovieClip(_root.actionarea.Deploy);
removeMovieClip(_root.actionarea.Deploy2);
removeMovieClip(_root.actionarea.hallFire);
removeMovieClip(_root.actionarea.throwStunned);
w = 0;
while (w < _root.aliensArray.length) {
removeMovieClip(_root.actionarea["alien" + w]);
w++;
}
_root.aliensArray = [];
_root.mapArray = [];
_root.vasquezShoot = 0;
_root.marinesInMission = [];
_root.soundtrack.stop("endmission");
if (_root.mapName == "reactor") {
_root.actionarea.attachMovie("operationsMap", "mainMap", 1);
_root.marinesInMission[0] = 9;
_root.marinesInMission[1] = 10;
_root.marinesInMission[2] = 11;
_root.marinesInMission[3] = 12;
}
if (_root.mapName == "operations") {
_root.actionarea.attachMovie("rescueMap", "mainMap", 1);
_root.marineData[10][8] = 1;
}
m = 0;
while (m < _root.marineOrder.length) {
test = true;
if (_root.marineData[_root.marineOrder[m]][8] == 1) {
test = false;
}
if (_root.marineData[_root.marineOrder[m]][2] != "out") {
test = false;
}
if (_root.marineData[_root.marineOrder[m]][9] == 3) {
test = true;
}
if (test == false) {
_root.cocoonMarines[_root.cocoonMarines.length] = _root.marineOrder[m];
}
trace("_root.marineData[_root.marineOrder[m]][9] " + _root.marineData[_root.marineOrder[m]][9]);
if (((_root.marineData[_root.marineOrder[m]][9] == 1) && (_root.marineData[_root.marineOrder[m]][2] == "out")) && (_root.marineData[_root.marineOrder[m]][8] != 1)) {
_root.marineData[_root.marineOrder[m]][9] = 0;
trace("healed wound");
}
if (((_root.marineData[_root.marineOrder[m]][9] == 2) && (_root.marineData[_root.marineOrder[m]][2] == "out")) && (_root.marineData[_root.marineOrder[m]][8] != 1)) {
_root.marineData[_root.marineOrder[m]][9] = 1;
trace("healed incapacitated");
}
trace(_root.marineData[_root.marineOrder[m]][0]);
trace("_root.marineData[_root.marineOrder[m]][9] " + _root.marineData[_root.marineOrder[m]][9]);
trace("_root.marineData[_root.marineOrder[m]][8] " + _root.marineData[_root.marineOrder[m]][8]);
trace("_root.marineData[_root.marineOrder[m]][2] " + _root.marineData[_root.marineOrder[m]][2]);
if (((_root.marineData[_root.marineOrder[m]][9] < 2) && (_root.marineData[_root.marineOrder[m]][2] == "out")) && (_root.marineData[_root.marineOrder[m]][8] != 1)) {
_root.marinesInMission[_root.marinesInMission.length] = _root.marineOrder[m];
}
m++;
}
w = 0;
while (w < _root.marineOrder.length) {
removeMovieClip(_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root["plaque" + _root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea["gun" + _root.marineOrder[w]]);
_root.marineData[_root.marineOrder[w]][6] = null;
_root.marineData[_root.marineOrder[w]][7] = null;
_root.marineData[_root.marineOrder[w]][10] = null;
if (_root.marineData[_root.marineOrder[w]][9] < 2) {
_root.marineData[_root.marineOrder[w]][2] = "target";
}
w++;
}
trace("_root.marinesInMission.length " + _root.marinesInMission.length);
_root.marineOrder = [];
if (_root.meltdown._currentframe != 1) {
_root.meltdown.gotoAndStop("clear");
}
_root.gotoAndPlay("setOrder");
removeMovieClip(_root.summary);
}
Symbol 135 Button
on (release) {
removeMovieClip(_root.actionarea.mainMap);
if (_root.meltdown._currentframe != 1) {
_root.meltdown.gotoAndStop("clear");
}
w = 0;
while (w < _root.marineOrder.length) {
removeMovieClip(_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root["plaque" + _root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea["gun" + _root.marineOrder[w]]);
w++;
}
w = 0;
while (w < _root.aliensArray.length) {
removeMovieClip(_root.actionarea["alien" + w]);
w++;
}
_root.aliensArray = [];
_root.mapArray = [];
_root.marineOrder = [];
_root.setMarine();
_root.vasquezShoot = 0;
_root.soundtrack.stop("endmission");
_root.gotoAndPlay("idle");
removeMovieClip(_root.plaqueCage.plaqueCage2.arrow);
removeMovieClip(_root.summary);
removeMovieClip(_root.actionarea.door1);
removeMovieClip(_root.actionarea.door2);
removeMovieClip(_root.actionarea.Deploy);
removeMovieClip(_root.actionarea.Deploy2);
removeMovieClip(_root.actionarea.hallFire);
removeMovieClip(_root.actionarea.throwStunned);
_root.soundmenu.gotoAndStop("volume1");
}
Symbol 137 MovieClip [summary] Frame 1
if (_root.mapName == "rescue") {
contButton._visible = false;
}
allDead = true;
m = 0;
while (m < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[m]][9] < 2) {
allDead = false;
}
m++;
}
if (allDead == true) {
contButton._visible = false;
}
if (_root.marineData[10][9] == 3) {
contButton._visible = false;
}
Symbol 150 Button
on (release) {
if (_root.tutorial._alpha == 100) {
_root.tutorial._alpha = 0;
} else {
_root.tutorial._alpha = 100;
}
}
Symbol 154 Button
on (release) {
m = 0;
while (m < _root.marineButtonsArray.length) {
removeMovieClip(_root.actionarea[_root.marineButtonsArray[m]]);
trace((("remove " + _root.marineButtonsArray[m]) + " + test =") + test);
m++;
}
m = 0;
while (m < _root.marineButtonsArrayShooting.length) {
removeMovieClip(_root.actionarea[_root.marineButtonsArrayShooting[m]]);
trace("remove " + _root.marineButtonsArrayShooting[m]);
m++;
}
m = 0;
while (m < _root.marineIncButtonsArray.length) {
removeMovieClip(_root[_root.marineIncButtonsArray[m]]);
trace("remove " + _root.marineIncButtonsArray[m]);
m++;
}
_root.marineButtonsArrayShooting = [];
_root.marineButtonsArray = [];
w = 0;
while (w < _root.marinesInMission.length) {
removeMovieClip(_root["blankPlaque" + w]);
removeMovieClip(_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marinesInMission[w]][0]]);
removeMovieClip(_root["plaque" + _root.marineData[_root.marinesInMission[w]][0]]);
w++;
}
w = 0;
while (w < _root.marineOrder.length) {
removeMovieClip(_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[w]][0]]);
removeMovieClip(_root.actionarea["gun" + _root.marineOrder[w]]);
_root.marineData[_root.marineOrder[w]][6] = null;
_root.marineData[_root.marineOrder[w]][7] = null;
_root.marineData[_root.marineOrder[w]][8] = 0;
_root.marineData[_root.marineOrder[w]][9] = 0;
_root.marineData[_root.marineOrder[w]][10] = null;
_root.marineData[_root.marineOrder[w]][2] = "target";
w++;
}
w = 0;
while (w < _root.aliensArray.length) {
removeMovieClip(_root.actionarea["alien" + w]);
w++;
}
removeMovieClip(_root.plaqueCage.plaqueCage2.arrow);
removeMovieClip(_root.actionarea.mainMap);
removeMovieClip(_root.actionarea.Deploy);
removeMovieClip(_root.actionarea.Deploy2);
removeMovieClip(_root.actionarea.door1);
removeMovieClip(_root.actionarea.door2);
removeMovieClip(_root.actionarea.hallFire);
removeMovieClip(_root.actionarea.throwStunned);
removeMovieClip(_root.summary);
_root.aliensArray = [];
_root.mapArray = [];
_root.marineOrder = [];
_root.marinesInMission = [];
_root.setMarine();
_root.vasquezShoot = 0;
_root.soundtrack.stop(_root.mapName);
_root.soundtrack.stop("menumusic");
_root.soundmenu.gotoAndStop("volume1");
if (_root.meltdown._currentframe != 1) {
_root.meltdown.gotoAndStop("clear");
}
_root.gotoAndPlay("idle");
}
Symbol 155 MovieClip [soundmenu] Frame 1
stop();
onEnterFrame = function () {
if ((((this._xmouse > 0) && (this._xmouse < 356)) && (this._ymouse > 0)) && (this._ymouse < 210)) {
_root.soundmenu._y = -50;
_root.soundmenu.gotoAndStop("volume12");
}
};
Symbol 155 MovieClip [soundmenu] Frame 2
_root.clickCheck = 0;
STvolumeSlider.slider._x = _root.STvolume * 2.7;
SFvolumeSlider.slider._x = _root.SFvolume * 2.7;
stop();
onEnterFrame = function () {
if ((((this._xmouse > 0) && (this._xmouse < 356)) && (this._ymouse > 0)) && (this._ymouse < 188.9)) {
} else {
_root.soundmenu._y = -188.7;
_root.soundmenu.gotoAndStop("volume1");
}
if (_root.clickCheck == 1) {
if ((((STvolumeSlider._xmouse >= 0) && (STvolumeSlider._xmouse <= 270)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = (STvolumeSlider._xmouse * 100) / 270;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = STvolumeSlider._xmouse;
}
if ((((STvolumeSlider._xmouse > -10) && (STvolumeSlider._xmouse < 0)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = 0;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = 0;
}
if ((((STvolumeSlider._xmouse > 270) && (STvolumeSlider._xmouse < 280)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = 100;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = 270;
}
if ((((SFvolumeSlider._xmouse >= 0) && (SFvolumeSlider._xmouse <= 270)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = (SFvolumeSlider._xmouse * 100) / 270;
SFvolumeSlider.slider._x = SFvolumeSlider._xmouse;
}
if ((((SFvolumeSlider._xmouse > -10) && (SFvolumeSlider._xmouse < 0)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = 0;
SFvolumeSlider.slider._x = 0;
}
if ((((SFvolumeSlider._xmouse > 270) && (SFvolumeSlider._xmouse < 280)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = 100;
SFvolumeSlider.slider._x = 270;
}
}
};
Instance of Symbol 144 MovieClip "STvolumeSlider" in Symbol 155 MovieClip [soundmenu] Frame 2
onClipEvent (mouseDown) {
_root.clickCheck = 1;
}
onClipEvent (mouseUp) {
_root.clickCheck = 0;
}
Symbol 155 MovieClip [soundmenu] Frame 3
stop();
onEnterFrame = function () {
if ((((this._xmouse > 0) && (this._xmouse < 356)) && (this._ymouse > 0)) && (this._ymouse < 210)) {
_root.soundmenu._y = -50;
_root.soundmenu.gotoAndStop("volume22");
}
};
Symbol 155 MovieClip [soundmenu] Frame 4
_root.clickCheck = 0;
STvolumeSlider.slider._x = _root.STvolume * 2.7;
SFvolumeSlider.slider._x = _root.SFvolume * 2.7;
stop();
onEnterFrame = function () {
if ((((this._xmouse > 0) && (this._xmouse < 356)) && (this._ymouse > 0)) && (this._ymouse < 188.9)) {
} else {
_root.soundmenu._y = -188.7;
_root.soundmenu.gotoAndStop("volume2");
}
if (_root.clickCheck == 1) {
if ((((STvolumeSlider._xmouse >= 0) && (STvolumeSlider._xmouse <= 270)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = (STvolumeSlider._xmouse * 100) / 270;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = STvolumeSlider._xmouse;
}
if ((((STvolumeSlider._xmouse > -10) && (STvolumeSlider._xmouse < 0)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = 0;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = 0;
}
if ((((STvolumeSlider._xmouse > 270) && (STvolumeSlider._xmouse < 280)) && (STvolumeSlider._ymouse >= 0)) && (STvolumeSlider._ymouse <= 35)) {
_root.STvolume = 100;
_root.soundtrack.setVolume(_root.STvolume);
STvolumeSlider.slider._x = 270;
}
if ((((SFvolumeSlider._xmouse >= 0) && (SFvolumeSlider._xmouse <= 270)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = (SFvolumeSlider._xmouse * 100) / 270;
SFvolumeSlider.slider._x = SFvolumeSlider._xmouse;
}
if ((((SFvolumeSlider._xmouse > -10) && (SFvolumeSlider._xmouse < 0)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = 0;
SFvolumeSlider.slider._x = 0;
}
if ((((SFvolumeSlider._xmouse > 270) && (SFvolumeSlider._xmouse < 280)) && (SFvolumeSlider._ymouse >= 0)) && (SFvolumeSlider._ymouse <= 35)) {
_root.SFvolume = 100;
SFvolumeSlider.slider._x = 270;
}
}
};
Instance of Symbol 144 MovieClip "STvolumeSlider" in Symbol 155 MovieClip [soundmenu] Frame 4
onClipEvent (mouseDown) {
_root.clickCheck = 1;
}
onClipEvent (mouseUp) {
_root.clickCheck = 0;
}
Symbol 158 Button
on (release) {
_root.selectMarine(7);
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 4
stop();
Symbol 176 MovieClip Frame 5
stop();
Symbol 176 MovieClip Frame 6
stop();
Symbol 176 MovieClip Frame 7
stop();
Symbol 176 MovieClip Frame 8
stop();
Symbol 176 MovieClip Frame 9
stop();
Symbol 176 MovieClip Frame 10
stop();
Symbol 176 MovieClip Frame 11
stop();
Symbol 176 MovieClip Frame 12
stop();
Symbol 176 MovieClip Frame 13
stop();
Symbol 176 MovieClip Frame 14
stop();
Symbol 176 MovieClip Frame 15
stop();
Symbol 176 MovieClip Frame 16
stop();
Symbol 176 MovieClip Frame 17
stop();
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 185 MovieClip Frame 3
stop();
Symbol 185 MovieClip Frame 4
stop();
Symbol 185 MovieClip Frame 5
stop();
Symbol 185 MovieClip Frame 6
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 4
stop();
Symbol 201 MovieClip Frame 5
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 4
if (this._x < -60) {
this._x = 0;
} else {
this._x = this._x - 1;
}
gotoAndPlay ("active");
Symbol 207 MovieClip Frame 5
stop();
Symbol 207 MovieClip Frame 6
stop();
Symbol 207 MovieClip Frame 7
stop();
Symbol 208 MovieClip Frame 1
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 3
stop();
Symbol 219 MovieClip Frame 4
stop();
Symbol 223 MovieClip [plaqueWierzbowski] Frame 1
stop();
Symbol 223 MovieClip [plaqueWierzbowski] Frame 2
stop();
Symbol 224 Button
on (release) {
_root.selectMarine(2);
}
Symbol 230 MovieClip [plaqueVasquez] Frame 1
stop();
Symbol 230 MovieClip [plaqueVasquez] Frame 2
stop();
Symbol 231 Button
on (release) {
_root.selectMarine(11);
}
Symbol 237 MovieClip [plaqueRipley] Frame 1
stop();
Symbol 237 MovieClip [plaqueRipley] Frame 2
stop();
Symbol 238 Button
on (release) {
_root.selectMarine(9);
}
Symbol 243 MovieClip [plaqueNewt] Frame 1
stop();
Symbol 243 MovieClip [plaqueNewt] Frame 2
stop();
Symbol 244 Button
on (release) {
_root.selectMarine(0);
}
Symbol 249 MovieClip [plaqueHudson] Frame 1
stop();
Symbol 249 MovieClip [plaqueHudson] Frame 2
stop();
Symbol 250 Button
on (release) {
_root.selectMarine(5);
}
Symbol 255 MovieClip [plaqueHicks] Frame 1
stop();
Symbol 255 MovieClip [plaqueHicks] Frame 2
stop();
Symbol 256 Button
on (release) {
_root.selectMarine(12);
}
Symbol 261 MovieClip [plaqueGorman] Frame 1
stop();
Symbol 261 MovieClip [plaqueGorman] Frame 2
stop();
Symbol 262 Button
on (release) {
_root.selectMarine(4);
}
Symbol 267 MovieClip [plaqueFrost] Frame 1
stop();
Symbol 267 MovieClip [plaqueFrost] Frame 2
stop();
Symbol 268 Button
on (release) {
_root.selectMarine(1);
}
Symbol 273 MovieClip [plaqueDrake] Frame 1
stop();
Symbol 273 MovieClip [plaqueDrake] Frame 2
stop();
Symbol 274 Button
on (release) {
_root.selectMarine(3);
}
Symbol 279 MovieClip [plaqueDietrich] Frame 1
stop();
Symbol 279 MovieClip [plaqueDietrich] Frame 2
stop();
Symbol 280 Button
on (release) {
_root.selectMarine(8);
}
Symbol 285 MovieClip [plaqueCrowe] Frame 1
stop();
Symbol 285 MovieClip [plaqueCrowe] Frame 2
stop();
Symbol 289 Button
on (release) {
if (_root.marineOrder.length > 9) {
tempXlocation = ((_root.marineOrder.length - 9) * -1) * 101.25;
if (plaqueCage2._x > tempXlocation) {
plaqueCage2._x = plaqueCage2._x - 50;
}
}
}
Symbol 290 Button
on (release) {
if (plaqueCage2._x <= 3) {
plaqueCage2._x = plaqueCage2._x + 50;
}
}
Symbol 300 MovieClip [plaqueBurke] Frame 1
stop();
Symbol 300 MovieClip [plaqueBurke] Frame 2
stop();
Symbol 301 Button
on (release) {
_root.selectMarine(6);
}
Symbol 306 MovieClip [plaqueApone] Frame 1
stop();
Symbol 306 MovieClip [plaqueApone] Frame 2
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 1
IDname = 7;
alienName = null;
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 333 MovieClip [Wierzbowski] Frame 9
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 333 MovieClip [Wierzbowski] Frame 16
gunshot.start(0, 1);
Symbol 333 MovieClip [Wierzbowski] Frame 23
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 333 MovieClip [Wierzbowski] Frame 28
_root.shootGun3(IDname, alienName);
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 30
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 333 MovieClip [Wierzbowski] Frame 42
_root.shootFlame2(IDname, alienName);
Symbol 333 MovieClip [Wierzbowski] Frame 50
_root.shootFlame3(IDname, alienName);
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 51
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 52
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 53
stop();
Symbol 333 MovieClip [Wierzbowski] Frame 54
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 333 MovieClip [Wierzbowski] Frame 61
gotoAndPlay ("cut2");
Symbol 361 MovieClip [Vasquez] Frame 1
IDname = 2;
alienName = null;
secondAlien = null;
stop();
Symbol 361 MovieClip [Vasquez] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 361 MovieClip [Vasquez] Frame 8
_root.shootGun2(IDname, alienName);
Symbol 361 MovieClip [Vasquez] Frame 20
_root.shootGun3(IDname, alienName);
stop();
Symbol 361 MovieClip [Vasquez] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 361 MovieClip [Vasquez] Frame 39
_root.shootGrenade();
Symbol 361 MovieClip [Vasquez] Frame 41
gotoAndPlay ("normal4");
Symbol 361 MovieClip [Vasquez] Frame 43
trace("THIS IS the vasquez var " + vasquezShoot);
if (_root.vasquezShoot == 0) {
_root.vasquezShoot = 1;
letsrock = new Sound(this);
letsrock.attachSound("letsrock");
letsrock.start(0, 1);
letsrock.setVolume(_root.SFvolume);
} else {
this.gotoAndPlay("shootJump");
}
Symbol 361 MovieClip [Vasquez] Frame 70
gunshot = new Sound(this);
gunshot.attachSound("smartgun" + _root.calculateRandom(0, 1));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
_root.shootMachineGun1(IDname, alienName);
Symbol 361 MovieClip [Vasquez] Frame 74
_root.shootMachineGun2(IDname, alienName);
Symbol 361 MovieClip [Vasquez] Frame 88
_root.shootMachineGun3(IDname, alienName);
stop();
Symbol 361 MovieClip [Vasquez] Frame 89
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 361 MovieClip [Vasquez] Frame 90
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 361 MovieClip [Vasquez] Frame 91
stop();
Symbol 361 MovieClip [Vasquez] Frame 92
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 361 MovieClip [Vasquez] Frame 99
gotoAndPlay ("cut2");
Symbol 389 MovieClip [Ripley] Frame 1
IDname = 11;
alienName = null;
stop();
Symbol 389 MovieClip [Ripley] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 389 MovieClip [Ripley] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 389 MovieClip [Ripley] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 389 MovieClip [Ripley] Frame 22
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 389 MovieClip [Ripley] Frame 38
_root.shootGrenade();
Symbol 389 MovieClip [Ripley] Frame 40
gotoAndPlay ("normal4");
Symbol 389 MovieClip [Ripley] Frame 41
stop();
Symbol 389 MovieClip [Ripley] Frame 42
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 389 MovieClip [Ripley] Frame 49
_root.shootGun2(IDname, alienName);
Symbol 389 MovieClip [Ripley] Frame 57
_root.shootGun3(IDname, alienName);
stop();
Symbol 389 MovieClip [Ripley] Frame 60
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 389 MovieClip [Ripley] Frame 77
_root.shootGrenade();
Symbol 389 MovieClip [Ripley] Frame 79
gotoAndPlay ("normal3");
Symbol 389 MovieClip [Ripley] Frame 81
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 389 MovieClip [Ripley] Frame 88
_root.shootFlame2(IDname, alienName);
Symbol 389 MovieClip [Ripley] Frame 103
_root.shootFlame3(IDname, alienName);
stop();
Symbol 389 MovieClip [Ripley] Frame 104
gunpump.start(0, 1);
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 389 MovieClip [Ripley] Frame 105
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 389 MovieClip [Ripley] Frame 106
stop();
Symbol 399 MovieClip [Newt] Frame 1
IDname = 10;
stop();
Symbol 399 MovieClip [Newt] Frame 2
stop();
Symbol 399 MovieClip [Newt] Frame 3
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 399 MovieClip [Newt] Frame 4
stop();
Symbol 399 MovieClip [Newt] Frame 5
thisway = new Sound(this);
thisway.attachSound("thisway");
thisway.start(0, 1);
thisway.setVolume(_root.SFvolume);
Symbol 399 MovieClip [Newt] Frame 25
gotoAndPlay ("normal4");
Symbol 431 MovieClip [Hudson] Frame 1
IDname = 0;
alienName = null;
stop();
Symbol 431 MovieClip [Hudson] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 431 MovieClip [Hudson] Frame 10
_root.shootGun2(IDname, alienName);
Symbol 431 MovieClip [Hudson] Frame 18
_root.shootGun3(IDname, alienName);
stop();
Symbol 431 MovieClip [Hudson] Frame 21
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 431 MovieClip [Hudson] Frame 37
_root.shootGrenade();
Symbol 431 MovieClip [Hudson] Frame 39
gotoAndPlay ("normal4");
Symbol 431 MovieClip [Hudson] Frame 41
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 431 MovieClip [Hudson] Frame 42
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 431 MovieClip [Hudson] Frame 49
gunshot.start(0, 1);
Symbol 431 MovieClip [Hudson] Frame 55
gunshot.start(0, 1);
Symbol 431 MovieClip [Hudson] Frame 58
_root.shootGun2(IDname, alienName);
Symbol 431 MovieClip [Hudson] Frame 62
_root.shootGun3(IDname, alienName);
stop();
Symbol 431 MovieClip [Hudson] Frame 63
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 431 MovieClip [Hudson] Frame 64
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 431 MovieClip [Hudson] Frame 65
stop();
Symbol 431 MovieClip [Hudson] Frame 66
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 431 MovieClip [Hudson] Frame 73
gotoAndPlay ("cut2");
Symbol 459 MovieClip [Hicks] Frame 1
IDname = 5;
alienName = null;
stop();
Symbol 459 MovieClip [Hicks] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 459 MovieClip [Hicks] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 459 MovieClip [Hicks] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 459 MovieClip [Hicks] Frame 22
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 459 MovieClip [Hicks] Frame 38
_root.shootGrenade();
Symbol 459 MovieClip [Hicks] Frame 40
gotoAndPlay ("normal4");
Symbol 459 MovieClip [Hicks] Frame 42
_root.vasquezShoot = 1;
Symbol 459 MovieClip [Hicks] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("shotgun");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 459 MovieClip [Hicks] Frame 47
gunpump = new Sound(this);
gunpump.attachSound("pump");
gunpump.start(0, 1);
gunpump.setVolume(_root.SFvolume);
Symbol 459 MovieClip [Hicks] Frame 52
gunshot = new Sound(this);
gunshot.attachSound("shotgun");
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 459 MovieClip [Hicks] Frame 54
gunpump.start(0, 1);
Symbol 459 MovieClip [Hicks] Frame 59
_root.shootGun3(IDname, alienName);
stop();
Symbol 459 MovieClip [Hicks] Frame 60
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 459 MovieClip [Hicks] Frame 61
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 459 MovieClip [Hicks] Frame 62
stop();
Symbol 459 MovieClip [Hicks] Frame 63
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 459 MovieClip [Hicks] Frame 70
gotoAndPlay ("cut2");
Symbol 482 MovieClip [Gorman] Frame 1
IDname = 12;
alienName = null;
stop();
Symbol 482 MovieClip [Gorman] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 482 MovieClip [Gorman] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 482 MovieClip [Gorman] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 482 MovieClip [Gorman] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 482 MovieClip [Gorman] Frame 34
_root.shootGrenade();
Symbol 482 MovieClip [Gorman] Frame 36
gotoAndPlay ("normal3");
Symbol 482 MovieClip [Gorman] Frame 38
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 482 MovieClip [Gorman] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 482 MovieClip [Gorman] Frame 52
gunshot.start(0, 1);
Symbol 482 MovieClip [Gorman] Frame 59
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 482 MovieClip [Gorman] Frame 64
_root.shootGun3(IDname, alienName);
stop();
Symbol 482 MovieClip [Gorman] Frame 65
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 482 MovieClip [Gorman] Frame 66
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 482 MovieClip [Gorman] Frame 67
stop();
Symbol 505 MovieClip [Frost] Frame 1
IDname = 4;
alienName = null;
stop();
Symbol 505 MovieClip [Frost] Frame 2
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 505 MovieClip [Frost] Frame 13
_root.shootFlame2(IDname, alienName);
Symbol 505 MovieClip [Frost] Frame 27
_root.shootFlame3(IDname, alienName);
stop();
Symbol 505 MovieClip [Frost] Frame 29
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 505 MovieClip [Frost] Frame 34
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 505 MovieClip [Frost] Frame 41
gunshot.start(0, 1);
Symbol 505 MovieClip [Frost] Frame 48
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 505 MovieClip [Frost] Frame 53
_root.shootGun3(IDname, alienName);
stop();
Symbol 505 MovieClip [Frost] Frame 54
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 505 MovieClip [Frost] Frame 55
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 505 MovieClip [Frost] Frame 56
stop();
Symbol 505 MovieClip [Frost] Frame 57
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 505 MovieClip [Frost] Frame 66
gotoAndPlay ("cut2");
Symbol 526 MovieClip [Drake] Frame 1
IDname = 1;
alienName = null;
secondAlien = null;
stop();
Symbol 526 MovieClip [Drake] Frame 2
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 526 MovieClip [Drake] Frame 11
_root.shootFlame2(IDname, alienName);
Symbol 526 MovieClip [Drake] Frame 25
_root.shootFlame3(IDname, alienName);
stop();
Symbol 526 MovieClip [Drake] Frame 26
stop();
Symbol 526 MovieClip [Drake] Frame 27
gunshot = new Sound(this);
gunshot.attachSound("smartgun" + _root.calculateRandom(0, 1));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
_root.shootMachineGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 526 MovieClip [Drake] Frame 31
_root.shootMachineGun2(IDname, alienName);
Symbol 526 MovieClip [Drake] Frame 43
_root.shootMachineGun3(IDname, alienName);
stop();
Symbol 526 MovieClip [Drake] Frame 45
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 526 MovieClip [Drake] Frame 46
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 526 MovieClip [Drake] Frame 47
stop();
Symbol 526 MovieClip [Drake] Frame 48
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 526 MovieClip [Drake] Frame 55
gotoAndPlay ("cut2");
Symbol 549 MovieClip [Dietrich] Frame 1
IDname = 3;
alienName = null;
IDname = 3;
alienName = null;
stop();
Symbol 549 MovieClip [Dietrich] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 549 MovieClip [Dietrich] Frame 6
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 549 MovieClip [Dietrich] Frame 13
gunshot.start(0, 1);
Symbol 549 MovieClip [Dietrich] Frame 20
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 549 MovieClip [Dietrich] Frame 25
_root.shootGun3(IDname, alienName);
stop();
Symbol 549 MovieClip [Dietrich] Frame 27
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 549 MovieClip [Dietrich] Frame 36
_root.shootFlame2(IDname, alienName);
Symbol 549 MovieClip [Dietrich] Frame 52
_root.shootFlame3(IDname, alienName);
stop();
Symbol 549 MovieClip [Dietrich] Frame 53
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 549 MovieClip [Dietrich] Frame 54
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 549 MovieClip [Dietrich] Frame 55
stop();
Symbol 549 MovieClip [Dietrich] Frame 56
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 549 MovieClip [Dietrich] Frame 63
gotoAndPlay ("cut2");
Symbol 582 MovieClip [Crowe] Frame 1
IDname = 8;
alienName = null;
stop();
Symbol 582 MovieClip [Crowe] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 582 MovieClip [Crowe] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 582 MovieClip [Crowe] Frame 20
_root.shootGun3(IDname, alienName);
stop();
Symbol 582 MovieClip [Crowe] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 582 MovieClip [Crowe] Frame 39
_root.shootGrenade();
Symbol 582 MovieClip [Crowe] Frame 41
gotoAndPlay ("normal4");
Symbol 582 MovieClip [Crowe] Frame 43
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 582 MovieClip [Crowe] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 582 MovieClip [Crowe] Frame 52
gunshot.start(0, 1);
Symbol 582 MovieClip [Crowe] Frame 59
gunshot.start(0, 1);
Symbol 582 MovieClip [Crowe] Frame 63
_root.shootGun2(IDname, alienName);
Symbol 582 MovieClip [Crowe] Frame 67
_root.shootGun3(IDname, alienName);
stop();
Symbol 582 MovieClip [Crowe] Frame 68
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 582 MovieClip [Crowe] Frame 69
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 582 MovieClip [Crowe] Frame 70
stop();
Symbol 582 MovieClip [Crowe] Frame 71
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 582 MovieClip [Crowe] Frame 78
gotoAndPlay ("cut2");
Symbol 592 MovieClip [Burke] Frame 1
IDname = 9;
stop();
Symbol 592 MovieClip [Burke] Frame 2
stop();
Symbol 592 MovieClip [Burke] Frame 3
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 592 MovieClip [Burke] Frame 4
stop();
Symbol 614 MovieClip [Apone] Frame 1
IDname = 6;
alienName = null;
stop();
Symbol 614 MovieClip [Apone] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
gunshot = new Sound(this);
gunshot.attachSound("pulserifle" + _root.calculateRandom(1, 5));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 614 MovieClip [Apone] Frame 10
_root.shootGun2(IDname, alienName);
Symbol 614 MovieClip [Apone] Frame 16
_root.shootGun3(IDname, alienName);
stop();
Symbol 614 MovieClip [Apone] Frame 20
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 614 MovieClip [Apone] Frame 36
_root.shootGrenade();
Symbol 614 MovieClip [Apone] Frame 38
gotoAndPlay ("normal4");
Symbol 614 MovieClip [Apone] Frame 40
flameshot = new Sound(this);
flameshot.attachSound("flameshot");
flameshot.start(0, 1);
flameshot.setVolume(_root.SFvolume);
_root.shootFlame1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 614 MovieClip [Apone] Frame 49
_root.shootFlame2(IDname, alienName);
Symbol 614 MovieClip [Apone] Frame 75
_root.shootFlame3(IDname, alienName);
stop();
Symbol 614 MovieClip [Apone] Frame 76
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 614 MovieClip [Apone] Frame 77
trace(("IDname " + IDname) + " is dead");
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 614 MovieClip [Apone] Frame 78
stop();
Symbol 614 MovieClip [Apone] Frame 79
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 614 MovieClip [Apone] Frame 88
gotoAndPlay ("cut2");
Symbol 657 MovieClip [alien] Frame 1
play();
this._alpha = 50;
this._xscale = 160;
this._yscale = 160;
Symbol 657 MovieClip [alien] Frame 2
this._alpha = 70;
this._xscale = 140;
this._yscale = 140;
Symbol 657 MovieClip [alien] Frame 3
this._alpha = 100;
this._xscale = 120;
this._yscale = 120;
Symbol 657 MovieClip [alien] Frame 4
this._xscale = 100;
this._yscale = 100;
Symbol 657 MovieClip [alien] Frame 10
_root.alienArrive = true;
this.gotoAndStop("normal" + _root.calculateRandom(0, 6));
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
Symbol 657 MovieClip [alien] Frame 27
gotoAndPlay ("normal0");
Symbol 657 MovieClip [alien] Frame 28
aliengrab = new Sound(this);
aliengrab.attachSound("grab");
aliengrab.start(0, 1);
aliengrab.setVolume(_root.SFvolume);
stop();
Symbol 657 MovieClip [alien] Frame 29
stop();
Symbol 657 MovieClip [alien] Frame 30
aliendeath = new Sound(this);
aliendeath.attachSound("aliendeath" + _root.calculateRandom(2, 4));
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
this._rotation = _root.calculateRandom(0, 360);
play();
Symbol 657 MovieClip [alien] Frame 42
this.swapDepths(this.alienID + 50);
stop();
Symbol 657 MovieClip [alien] Frame 47
Symbol 657 MovieClip [alien] Frame 48
aliendeath = new Sound(this);
aliendeath.attachSound("aliendeath" + _root.calculateRandom(2, 4));
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
this._rotation = _root.calculateRandom(0, 360);
Symbol 657 MovieClip [alien] Frame 66
this.swapDepths(this.alienID + 50);
stop();
Symbol 657 MovieClip [alien] Frame 67
this._rotation = _root.calculateRandom(0, 360);
Symbol 657 MovieClip [alien] Frame 77
aliendeath = new Sound(this);
aliendeath.attachSound("flamedeath");
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 657 MovieClip [alien] Frame 103
this.swapDepths(this.alienID + 50);
stop();
Symbol 657 MovieClip [alien] Frame 104
this.gotoAndPlay(this._currentframe + _root.calculateRandom(0, 4));
Symbol 657 MovieClip [alien] Frame 113
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 114
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 115
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 116
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 117
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 118
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 657 MovieClip [alien] Frame 163
removeMovieClip(this);
Symbol 664 MovieClip [acidSpray] Frame 1
acid = new Sound(this);
acid.attachSound("acid");
acid.start(0, 1);
acid.setVolume(_root.SFvolume);
Symbol 664 MovieClip [acidSpray] Frame 44
removeMovieClip(this);
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 693 MovieClip Frame 3
stop();
Symbol 693 MovieClip Frame 4
stop();
Symbol 697 MovieClip Frame 1
_root.mapName = "rescue";
_root.actionarea._xscale = 95;
_root.actionarea._yscale = 95;
_root.actionarea._x = 5;
_root.actionarea._y = 180;
_root.thisMapWeapon = 4;
_root.marineData[0][12] = 4;
_root.marineData[1][12] = 3;
_root.marineData[2][12] = 3;
_root.marineData[3][12] = 3;
_root.marineData[4][12] = 4;
_root.marineData[5][12] = 4;
_root.marineData[6][12] = 3;
_root.marineData[7][12] = 3;
_root.marineData[8][12] = 4;
_root.marineData[9][12] = 4;
_root.marineData[10][12] = 4;
_root.marineData[11][12] = 3;
_root.marineData[12][12] = 3;
_root.tileSize = 40;
_root.mapArray = [];
n = 0;
while (n < 24) {
_root.mapArray[n] = [];
m = 0;
while (m < 30) {
_root.mapArray[n][m] = [];
m++;
}
n++;
}
_root.mapArray[0][0][0] = 4;
_root.mapArray[0][1][0] = 4;
_root.mapArray[0][2][0] = 4;
_root.mapArray[0][3][0] = 4;
_root.mapArray[0][4][0] = 4;
_root.mapArray[0][5][0] = 4;
_root.mapArray[0][6][0] = 4;
_root.mapArray[0][7][0] = 4;
_root.mapArray[0][8][0] = 4;
_root.mapArray[0][9][0] = 4;
_root.mapArray[0][10][0] = 4;
_root.mapArray[0][11][0] = 4;
_root.mapArray[0][12][0] = 4;
_root.mapArray[0][13][0] = 4;
_root.mapArray[0][14][0] = 4;
_root.mapArray[0][15][0] = 4;
_root.mapArray[0][16][0] = 4;
_root.mapArray[0][17][0] = 4;
_root.mapArray[0][18][0] = 4;
_root.mapArray[0][19][0] = 4;
_root.mapArray[0][20][0] = 4;
_root.mapArray[0][21][0] = 4;
_root.mapArray[0][22][0] = 4;
_root.mapArray[0][23][0] = 4;
_root.mapArray[0][24][0] = 4;
_root.mapArray[0][25][0] = 4;
_root.mapArray[0][26][0] = 4;
_root.mapArray[0][27][0] = 4;
_root.mapArray[0][28][0] = 4;
_root.mapArray[0][29][0] = 4;
_root.mapArray[0][30][0] = 4;
_root.mapArray[1][0][0] = 4;
_root.mapArray[1][1][0] = 4;
_root.mapArray[1][2][0] = 4;
_root.mapArray[1][3][0] = 4;
_root.mapArray[1][4][0] = 4;
_root.mapArray[1][5][0] = 0;
_root.mapArray[1][6][0] = 0;
_root.mapArray[1][7][0] = 0;
_root.mapArray[1][8][0] = 0;
_root.mapArray[1][9][0] = 0;
_root.mapArray[1][10][0] = 4;
_root.mapArray[1][11][0] = 0;
_root.mapArray[1][12][0] = 0;
_root.mapArray[1][13][0] = 0;
_root.mapArray[1][14][0] = 0;
_root.mapArray[1][15][0] = 0;
_root.mapArray[1][16][0] = 0;
_root.mapArray[1][17][0] = 0;
_root.mapArray[1][18][0] = 0;
_root.mapArray[1][19][0] = 0;
_root.mapArray[1][20][0] = 0;
_root.mapArray[1][21][0] = 4;
_root.mapArray[1][22][0] = 0;
_root.mapArray[1][23][0] = 4;
_root.mapArray[1][24][0] = 0;
_root.mapArray[1][25][0] = 4;
_root.mapArray[1][26][0] = 4;
_root.mapArray[1][27][0] = 4;
_root.mapArray[1][28][0] = 4;
_root.mapArray[1][29][0] = 4;
_root.mapArray[1][30][0] = 4;
_root.mapArray[2][0][0] = 4;
_root.mapArray[2][1][0] = 0;
_root.mapArray[2][2][0] = 0;
_root.mapArray[2][3][0] = 0;
_root.mapArray[2][4][0] = 0;
_root.mapArray[2][5][0] = 0;
_root.mapArray[2][6][0] = 0;
_root.mapArray[2][7][0] = 2;
_root.mapArray[2][8][0] = 2;
_root.mapArray[2][9][0] = 0;
_root.mapArray[2][10][0] = 0;
_root.mapArray[2][11][0] = 0;
_root.mapArray[2][12][0] = 0;
_root.mapArray[2][13][0] = 0;
_root.mapArray[2][14][0] = 0;
_root.mapArray[2][15][0] = 0;
_root.mapArray[2][16][0] = 0;
_root.mapArray[2][17][0] = 0;
_root.mapArray[2][18][0] = 0;
_root.mapArray[2][19][0] = 0;
_root.mapArray[2][20][0] = 0;
_root.mapArray[2][21][0] = 0;
_root.mapArray[2][22][0] = 4;
_root.mapArray[2][23][0] = 0;
_root.mapArray[2][24][0] = 4;
_root.mapArray[2][25][0] = 0;
_root.mapArray[2][26][0] = 4;
_root.mapArray[2][27][0] = 4;
_root.mapArray[2][28][0] = 4;
_root.mapArray[2][29][0] = 4;
_root.mapArray[2][30][0] = 4;
_root.mapArray[3][0][0] = 4;
_root.mapArray[3][1][0] = 0;
_root.mapArray[3][2][0] = 0;
_root.mapArray[3][3][0] = 0;
_root.mapArray[3][4][0] = 0;
_root.mapArray[3][5][0] = 0;
_root.mapArray[3][6][0] = 0;
_root.mapArray[3][7][0] = 2;
_root.mapArray[3][8][0] = 2;
_root.mapArray[3][9][0] = 0;
_root.mapArray[3][10][0] = 0;
_root.mapArray[3][11][0] = 0;
_root.mapArray[3][12][0] = 0;
_root.mapArray[3][13][0] = 0;
_root.mapArray[3][14][0] = 0;
_root.mapArray[3][15][0] = 0;
_root.mapArray[3][16][0] = 0;
_root.mapArray[3][17][0] = 0;
_root.mapArray[3][18][0] = 0;
_root.mapArray[3][19][0] = 0;
_root.mapArray[3][20][0] = 0;
_root.mapArray[3][21][0] = 0;
_root.mapArray[3][22][0] = 0;
_root.mapArray[3][23][0] = 0;
_root.mapArray[3][24][0] = 0;
_root.mapArray[3][25][0] = 0;
_root.mapArray[3][26][0] = 0;
_root.mapArray[3][27][0] = 0;
_root.mapArray[3][28][0] = 2;
_root.mapArray[3][29][0] = 2;
_root.mapArray[3][30][0] = 4;
_root.mapArray[4][0][0] = 4;
_root.mapArray[4][1][0] = 0;
_root.mapArray[4][2][0] = 0;
_root.mapArray[4][3][0] = 0;
_root.mapArray[4][4][0] = 0;
_root.mapArray[4][5][0] = 0;
_root.mapArray[4][6][0] = 0;
_root.mapArray[4][7][0] = 0;
_root.mapArray[4][8][0] = 0;
_root.mapArray[4][9][0] = 0;
_root.mapArray[4][10][0] = 0;
_root.mapArray[4][11][0] = 0;
_root.mapArray[4][12][0] = 0;
_root.mapArray[4][13][0] = 0;
_root.mapArray[4][14][0] = 0;
_root.mapArray[4][15][0] = 0;
_root.mapArray[4][16][0] = 4;
_root.mapArray[4][17][0] = 0;
_root.mapArray[4][18][0] = 4;
_root.mapArray[4][19][0] = 0;
_root.mapArray[4][20][0] = 0;
_root.mapArray[4][21][0] = 0;
_root.mapArray[4][22][0] = 0;
_root.mapArray[4][23][0] = 0;
_root.mapArray[4][24][0] = 0;
_root.mapArray[4][25][0] = 0;
_root.mapArray[4][26][0] = 0;
_root.mapArray[4][27][0] = 0;
_root.mapArray[4][28][0] = 2;
_root.mapArray[4][29][0] = 2;
_root.mapArray[4][30][0] = 4;
_root.mapArray[5][0][0] = 4;
_root.mapArray[5][1][0] = 0;
_root.mapArray[5][2][0] = 0;
_root.mapArray[5][3][0] = 0;
_root.mapArray[5][4][0] = 0;
_root.mapArray[5][5][0] = 0;
_root.mapArray[5][6][0] = 4;
_root.mapArray[5][7][0] = 0;
_root.mapArray[5][8][0] = 0;
_root.mapArray[5][9][0] = 4;
_root.mapArray[5][10][0] = 0;
_root.mapArray[5][11][0] = 4;
_root.mapArray[5][12][0] = 0;
_root.mapArray[5][13][0] = 0;
_root.mapArray[5][14][0] = 0;
_root.mapArray[5][15][0] = 0;
_root.mapArray[5][16][0] = 0;
_root.mapArray[5][17][0] = 0;
_root.mapArray[5][18][0] = 0;
_root.mapArray[5][19][0] = 0;
_root.mapArray[5][20][0] = 0;
_root.mapArray[5][21][0] = 0;
_root.mapArray[5][22][0] = 0;
_root.mapArray[5][23][0] = 0;
_root.mapArray[5][24][0] = 0;
_root.mapArray[5][25][0] = 0;
_root.mapArray[5][26][0] = 0;
_root.mapArray[5][27][0] = 0;
_root.mapArray[5][28][0] = 0;
_root.mapArray[5][29][0] = 0;
_root.mapArray[5][30][0] = 4;
_root.mapArray[6][0][0] = 4;
_root.mapArray[6][1][0] = 0;
_root.mapArray[6][2][0] = 0;
_root.mapArray[6][3][0] = 0;
_root.mapArray[6][4][0] = 0;
_root.mapArray[6][5][0] = 0;
_root.mapArray[6][6][0] = 4;
_root.mapArray[6][7][0] = 0;
_root.mapArray[6][8][0] = 0;
_root.mapArray[6][9][0] = 0;
_root.mapArray[6][10][0] = 0;
_root.mapArray[6][11][0] = 4;
_root.mapArray[6][12][0] = 0;
_root.mapArray[6][13][0] = 0;
_root.mapArray[6][14][0] = 0;
_root.mapArray[6][15][0] = 0;
_root.mapArray[6][16][0] = 0;
_root.mapArray[6][17][0] = 0;
_root.mapArray[6][18][0] = 0;
_root.mapArray[6][19][0] = 0;
_root.mapArray[6][20][0] = 0;
_root.mapArray[6][21][0] = 4;
_root.mapArray[6][22][0] = 4;
_root.mapArray[6][23][0] = 4;
_root.mapArray[6][24][0] = 0;
_root.mapArray[6][25][0] = 0;
_root.mapArray[6][26][0] = 0;
_root.mapArray[6][27][0] = 0;
_root.mapArray[6][28][0] = 0;
_root.mapArray[6][29][0] = 4;
_root.mapArray[6][30][0] = 4;
_root.mapArray[7][0][0] = 4;
_root.mapArray[7][1][0] = 4;
_root.mapArray[7][2][0] = 0;
_root.mapArray[7][3][0] = 4;
_root.mapArray[7][4][0] = 0;
_root.mapArray[7][5][0] = 0;
_root.mapArray[7][6][0] = 0;
_root.mapArray[7][7][0] = 0;
_root.mapArray[7][8][0] = 0;
_root.mapArray[7][9][0] = 0;
_root.mapArray[7][10][0] = 0;
_root.mapArray[7][11][0] = 0;
_root.mapArray[7][12][0] = 0;
_root.mapArray[7][13][0] = 0;
_root.mapArray[7][14][0] = 0;
_root.mapArray[7][15][0] = 0;
_root.mapArray[7][16][0] = 0;
_root.mapArray[7][17][0] = 4;
_root.mapArray[7][18][0] = 0;
_root.mapArray[7][19][0] = 0;
_root.mapArray[7][20][0] = 0;
_root.mapArray[7][21][0] = 0;
_root.mapArray[7][22][0] = 0;
_root.mapArray[7][23][0] = 0;
_root.mapArray[7][24][0] = 0;
_root.mapArray[7][25][0] = 0;
_root.mapArray[7][26][0] = 0;
_root.mapArray[7][27][0] = 0;
_root.mapArray[7][28][0] = 4;
_root.mapArray[7][29][0] = 0;
_root.mapArray[7][30][0] = 4;
_root.mapArray[8][0][0] = 4;
_root.mapArray[8][1][0] = 0;
_root.mapArray[8][2][0] = 4;
_root.mapArray[8][3][0] = 0;
_root.mapArray[8][4][0] = 0;
_root.mapArray[8][5][0] = 0;
_root.mapArray[8][6][0] = 0;
_root.mapArray[8][7][0] = 0;
_root.mapArray[8][8][0] = 4;
_root.mapArray[8][9][0] = 4;
_root.mapArray[8][10][0] = 4;
_root.mapArray[8][11][0] = 0;
_root.mapArray[8][12][0] = 0;
_root.mapArray[8][13][0] = 0;
_root.mapArray[8][14][0] = 0;
_root.mapArray[8][15][0] = 0;
_root.mapArray[8][16][0] = 0;
_root.mapArray[8][17][0] = 0;
_root.mapArray[8][18][0] = 0;
_root.mapArray[8][19][0] = 0;
_root.mapArray[8][20][0] = 2;
_root.mapArray[8][21][0] = 2;
_root.mapArray[8][22][0] = 0;
_root.mapArray[8][23][0] = 0;
_root.mapArray[8][24][0] = 0;
_root.mapArray[8][25][0] = 0;
_root.mapArray[8][26][0] = 0;
_root.mapArray[8][27][0] = 0;
_root.mapArray[8][28][0] = 0;
_root.mapArray[8][29][0] = 4;
_root.mapArray[8][30][0] = 4;
_root.mapArray[9][0][0] = 4;
_root.mapArray[9][1][0] = 0;
_root.mapArray[9][2][0] = 0;
_root.mapArray[9][3][0] = 0;
_root.mapArray[9][4][0] = 0;
_root.mapArray[9][5][0] = 0;
_root.mapArray[9][6][0] = 0;
_root.mapArray[9][7][0] = 0;
_root.mapArray[9][8][0] = 0;
_root.mapArray[9][9][0] = 0;
_root.mapArray[9][10][0] = 0;
_root.mapArray[9][11][0] = 0;
_root.mapArray[9][12][0] = 0;
_root.mapArray[9][13][0] = 0;
_root.mapArray[9][14][0] = 0;
_root.mapArray[9][15][0] = 0;
_root.mapArray[9][16][0] = 0;
_root.mapArray[9][17][0] = 4;
_root.mapArray[9][18][0] = 0;
_root.mapArray[9][19][0] = 0;
_root.mapArray[9][20][0] = 2;
_root.mapArray[9][21][0] = 2;
_root.mapArray[9][22][0] = 0;
_root.mapArray[9][23][0] = 0;
_root.mapArray[9][24][0] = 0;
_root.mapArray[9][25][0] = 0;
_root.mapArray[9][26][0] = 0;
_root.mapArray[9][27][0] = 0;
_root.mapArray[9][28][0] = 0;
_root.mapArray[9][29][0] = 0;
_root.mapArray[9][30][0] = 4;
_root.mapArray[10][0][0] = 4;
_root.mapArray[10][1][0] = 0;
_root.mapArray[10][2][0] = 0;
_root.mapArray[10][3][0] = 0;
_root.mapArray[10][4][0] = 0;
_root.mapArray[10][5][0] = 0;
_root.mapArray[10][6][0] = 0;
_root.mapArray[10][7][0] = 0;
_root.mapArray[10][8][0] = 0;
_root.mapArray[10][9][0] = 0;
_root.mapArray[10][10][0] = 0;
_root.mapArray[10][11][0] = 0;
_root.mapArray[10][12][0] = 0;
_root.mapArray[10][13][0] = 0;
_root.mapArray[10][14][0] = 0;
_root.mapArray[10][15][0] = 0;
_root.mapArray[10][16][0] = 0;
_root.mapArray[10][17][0] = 4;
_root.mapArray[10][18][0] = 0;
_root.mapArray[10][19][0] = 0;
_root.mapArray[10][20][0] = 0;
_root.mapArray[10][21][0] = 0;
_root.mapArray[10][22][0] = 0;
_root.mapArray[10][23][0] = 0;
_root.mapArray[10][24][0] = 0;
_root.mapArray[10][25][0] = 0;
_root.mapArray[10][26][0] = 0;
_root.mapArray[10][27][0] = 0;
_root.mapArray[10][28][0] = 2;
_root.mapArray[10][29][0] = 2;
_root.mapArray[10][30][0] = 4;
_root.mapArray[11][0][0] = 4;
_root.mapArray[11][1][0] = 0;
_root.mapArray[11][2][0] = 0;
_root.mapArray[11][3][0] = 0;
_root.mapArray[11][4][0] = 4;
_root.mapArray[11][5][0] = 0;
_root.mapArray[11][6][0] = 0;
_root.mapArray[11][7][0] = 0;
_root.mapArray[11][8][0] = 0;
_root.mapArray[11][9][0] = 0;
_root.mapArray[11][10][0] = 0;
_root.mapArray[11][11][0] = 0;
_root.mapArray[11][12][0] = 0;
_root.mapArray[11][13][0] = 0;
_root.mapArray[11][14][0] = 0;
_root.mapArray[11][15][0] = 0;
_root.mapArray[11][16][0] = 0;
_root.mapArray[11][17][0] = 0;
_root.mapArray[11][18][0] = 0;
_root.mapArray[11][19][0] = 0;
_root.mapArray[11][20][0] = 0;
_root.mapArray[11][21][0] = 0;
_root.mapArray[11][22][0] = 0;
_root.mapArray[11][23][0] = 0;
_root.mapArray[11][24][0] = 0;
_root.mapArray[11][25][0] = 0;
_root.mapArray[11][26][0] = 0;
_root.mapArray[11][27][0] = 0;
_root.mapArray[11][28][0] = 2;
_root.mapArray[11][29][0] = 2;
_root.mapArray[11][30][0] = 4;
_root.mapArray[12][0][0] = 4;
_root.mapArray[12][1][0] = 0;
_root.mapArray[12][2][0] = 0;
_root.mapArray[12][3][0] = 0;
_root.mapArray[12][4][0] = 0;
_root.mapArray[12][5][0] = 4;
_root.mapArray[12][6][0] = 2;
_root.mapArray[12][7][0] = 2;
_root.mapArray[12][8][0] = 2;
_root.mapArray[12][9][0] = 0;
_root.mapArray[12][10][0] = 0;
_root.mapArray[12][11][0] = 0;
_root.mapArray[12][12][0] = 0;
_root.mapArray[12][13][0] = 4;
_root.mapArray[12][14][0] = 0;
_root.mapArray[12][15][0] = 2;
_root.mapArray[12][16][0] = 2;
_root.mapArray[12][17][0] = 0;
_root.mapArray[12][18][0] = 0;
_root.mapArray[12][19][0] = 0;
_root.mapArray[12][20][0] = 0;
_root.mapArray[12][21][0] = 0;
_root.mapArray[12][22][0] = 0;
_root.mapArray[12][23][0] = 0;
_root.mapArray[12][24][0] = 0;
_root.mapArray[12][25][0] = 0;
_root.mapArray[12][26][0] = 0;
_root.mapArray[12][27][0] = 0;
_root.mapArray[12][28][0] = 0;
_root.mapArray[12][29][0] = 0;
_root.mapArray[12][30][0] = 4;
_root.mapArray[13][0][0] = 4;
_root.mapArray[13][1][0] = 0;
_root.mapArray[13][2][0] = 0;
_root.mapArray[13][3][0] = 0;
_root.mapArray[13][4][0] = 0;
_root.mapArray[13][5][0] = 0;
_root.mapArray[13][6][0] = 2;
_root.mapArray[13][7][0] = 2;
_root.mapArray[13][8][0] = 2;
_root.mapArray[13][9][0] = 0;
_root.mapArray[13][10][0] = 0;
_root.mapArray[13][11][0] = 0;
_root.mapArray[13][12][0] = 0;
_root.mapArray[13][13][0] = 0;
_root.mapArray[13][14][0] = 0;
_root.mapArray[13][15][0] = 2;
_root.mapArray[13][16][0] = 2;
_root.mapArray[13][17][0] = 0;
_root.mapArray[13][18][0] = 0;
_root.mapArray[13][19][0] = 0;
_root.mapArray[13][20][0] = 0;
_root.mapArray[13][21][0] = 0;
_root.mapArray[13][22][0] = 0;
_root.mapArray[13][23][0] = 0;
_root.mapArray[13][24][0] = 0;
_root.mapArray[13][25][0] = 0;
_root.mapArray[13][26][0] = 0;
_root.mapArray[13][27][0] = 0;
_root.mapArray[13][28][0] = 0;
_root.mapArray[13][29][0] = 0;
_root.mapArray[13][30][0] = 4;
_root.mapArray[14][0][0] = 4;
_root.mapArray[14][1][0] = 0;
_root.mapArray[14][2][0] = 4;
_root.mapArray[14][3][0] = 0;
_root.mapArray[14][4][0] = 0;
_root.mapArray[14][5][0] = 0;
_root.mapArray[14][6][0] = 0;
_root.mapArray[14][7][0] = 0;
_root.mapArray[14][8][0] = 0;
_root.mapArray[14][9][0] = 0;
_root.mapArray[14][10][0] = 0;
_root.mapArray[14][11][0] = 0;
_root.mapArray[14][12][0] = 0;
_root.mapArray[14][13][0] = 0;
_root.mapArray[14][14][0] = 4;
_root.mapArray[14][15][0] = 0;
_root.mapArray[14][16][0] = 0;
_root.mapArray[14][17][0] = 0;
_root.mapArray[14][18][0] = 0;
_root.mapArray[14][19][0] = 0;
_root.mapArray[14][20][0] = 2;
_root.mapArray[14][21][0] = 2;
_root.mapArray[14][22][0] = 0;
_root.mapArray[14][23][0] = 0;
_root.mapArray[14][24][0] = 0;
_root.mapArray[14][25][0] = 0;
_root.mapArray[14][26][0] = 0;
_root.mapArray[14][27][0] = 0;
_root.mapArray[14][28][0] = 0;
_root.mapArray[14][29][0] = 0;
_root.mapArray[14][30][0] = 4;
_root.mapArray[15][0][0] = 4;
_root.mapArray[15][1][0] = 0;
_root.mapArray[15][2][0] = 4;
_root.mapArray[15][3][0] = 0;
_root.mapArray[15][4][0] = 0;
_root.mapArray[15][5][0] = 0;
_root.mapArray[15][6][0] = 0;
_root.mapArray[15][7][0] = 0;
_root.mapArray[15][8][0] = 0;
_root.mapArray[15][9][0] = 0;
_root.mapArray[15][10][0] = 0;
_root.mapArray[15][11][0] = 0;
_root.mapArray[15][12][0] = 0;
_root.mapArray[15][13][0] = 0;
_root.mapArray[15][14][0] = 0;
_root.mapArray[15][15][0] = 0;
_root.mapArray[15][16][0] = 0;
_root.mapArray[15][17][0] = 0;
_root.mapArray[15][18][0] = 0;
_root.mapArray[15][19][0] = 0;
_root.mapArray[15][20][0] = 0;
_root.mapArray[15][21][0] = 0;
_root.mapArray[15][22][0] = 0;
_root.mapArray[15][23][0] = 0;
_root.mapArray[15][24][0] = 0;
_root.mapArray[15][25][0] = 0;
_root.mapArray[15][26][0] = 0;
_root.mapArray[15][27][0] = 0;
_root.mapArray[15][28][0] = 0;
_root.mapArray[15][29][0] = 0;
_root.mapArray[15][30][0] = 4;
_root.mapArray[16][0][0] = 4;
_root.mapArray[16][1][0] = 0;
_root.mapArray[16][2][0] = 0;
_root.mapArray[16][3][0] = 0;
_root.mapArray[16][4][0] = 0;
_root.mapArray[16][5][0] = 0;
_root.mapArray[16][6][0] = 0;
_root.mapArray[16][7][0] = 0;
_root.mapArray[16][8][0] = 0;
_root.mapArray[16][9][0] = 0;
_root.mapArray[16][10][0] = 0;
_root.mapArray[16][11][0] = 0;
_root.mapArray[16][12][0] = 0;
_root.mapArray[16][13][0] = 4;
_root.mapArray[16][14][0] = 0;
_root.mapArray[16][15][0] = 0;
_root.mapArray[16][16][0] = 0;
_root.mapArray[16][17][0] = 0;
_root.mapArray[16][18][0] = 4;
_root.mapArray[16][19][0] = 0;
_root.mapArray[16][20][0] = 0;
_root.mapArray[16][21][0] = 2;
_root.mapArray[16][22][0] = 2;
_root.mapArray[16][23][0] = 2;
_root.mapArray[16][24][0] = 2;
_root.mapArray[16][25][0] = 2;
_root.mapArray[16][26][0] = 2;
_root.mapArray[16][27][0] = 2;
_root.mapArray[16][28][0] = 0;
_root.mapArray[16][29][0] = 0;
_root.mapArray[16][30][0] = 4;
_root.mapArray[17][0][0] = 4;
_root.mapArray[17][1][0] = 4;
_root.mapArray[17][2][0] = 0;
_root.mapArray[17][3][0] = 0;
_root.mapArray[17][4][0] = 0;
_root.mapArray[17][5][0] = 4;
_root.mapArray[17][6][0] = 0;
_root.mapArray[17][7][0] = 0;
_root.mapArray[17][8][0] = 0;
_root.mapArray[17][9][0] = 0;
_root.mapArray[17][10][0] = 2;
_root.mapArray[17][11][0] = 2;
_root.mapArray[17][12][0] = 0;
_root.mapArray[17][13][0] = 0;
_root.mapArray[17][14][0] = 0;
_root.mapArray[17][15][0] = 0;
_root.mapArray[17][16][0] = 0;
_root.mapArray[17][17][0] = 4;
_root.mapArray[17][18][0] = 0;
_root.mapArray[17][19][0] = 4;
_root.mapArray[17][20][0] = 0;
_root.mapArray[17][21][0] = 2;
_root.mapArray[17][22][0] = 3;
_root.mapArray[17][23][0] = 3;
_root.mapArray[17][24][0] = 3;
_root.mapArray[17][25][0] = 3;
_root.mapArray[17][26][0] = 3;
_root.mapArray[17][27][0] = 2;
_root.mapArray[17][28][0] = 0;
_root.mapArray[17][29][0] = 0;
_root.mapArray[17][30][0] = 4;
_root.mapArray[18][0][0] = 4;
_root.mapArray[18][1][0] = 0;
_root.mapArray[18][2][0] = 0;
_root.mapArray[18][3][0] = 0;
_root.mapArray[18][4][0] = 0;
_root.mapArray[18][5][0] = 0;
_root.mapArray[18][6][0] = 4;
_root.mapArray[18][7][0] = 0;
_root.mapArray[18][8][0] = 0;
_root.mapArray[18][9][0] = 4;
_root.mapArray[18][10][0] = 2;
_root.mapArray[18][11][0] = 2;
_root.mapArray[18][12][0] = 0;
_root.mapArray[18][13][0] = 0;
_root.mapArray[18][14][0] = 0;
_root.mapArray[18][15][0] = 0;
_root.mapArray[18][16][0] = 0;
_root.mapArray[18][17][0] = 0;
_root.mapArray[18][18][0] = 4;
_root.mapArray[18][19][0] = 0;
_root.mapArray[18][20][0] = 0;
_root.mapArray[18][21][0] = 2;
_root.mapArray[18][22][0] = 2;
_root.mapArray[18][23][0] = 2;
_root.mapArray[18][24][0] = 2;
_root.mapArray[18][25][0] = 2;
_root.mapArray[18][26][0] = 2;
_root.mapArray[18][27][0] = 2;
_root.mapArray[18][28][0] = 0;
_root.mapArray[18][29][0] = 0;
_root.mapArray[18][30][0] = 4;
_root.mapArray[19][0][0] = 4;
_root.mapArray[19][1][0] = 0;
_root.mapArray[19][2][0] = 4;
_root.mapArray[19][3][0] = 0;
_root.mapArray[19][4][0] = 4;
_root.mapArray[19][5][0] = 0;
_root.mapArray[19][6][0] = 0;
_root.mapArray[19][7][0] = 4;
_root.mapArray[19][8][0] = 0;
_root.mapArray[19][9][0] = 0;
_root.mapArray[19][10][0] = 0;
_root.mapArray[19][11][0] = 0;
_root.mapArray[19][12][0] = 0;
_root.mapArray[19][13][0] = 0;
_root.mapArray[19][14][0] = 0;
_root.mapArray[19][15][0] = 0;
_root.mapArray[19][16][0] = 0;
_root.mapArray[19][17][0] = 4;
_root.mapArray[19][18][0] = 4;
_root.mapArray[19][19][0] = 4;
_root.mapArray[19][20][0] = 0;
_root.mapArray[19][21][0] = 0;
_root.mapArray[19][22][0] = 0;
_root.mapArray[19][23][0] = 0;
_root.mapArray[19][24][0] = 0;
_root.mapArray[19][25][0] = 0;
_root.mapArray[19][26][0] = 0;
_root.mapArray[19][27][0] = 0;
_root.mapArray[19][28][0] = 0;
_root.mapArray[19][29][0] = 0;
_root.mapArray[19][30][0] = 4;
_root.mapArray[20][0][0] = 4;
_root.mapArray[20][1][0] = 4;
_root.mapArray[20][2][0] = 4;
_root.mapArray[20][3][0] = 4;
_root.mapArray[20][4][0] = 4;
_root.mapArray[20][5][0] = 4;
_root.mapArray[20][6][0] = 0;
_root.mapArray[20][7][0] = 4;
_root.mapArray[20][8][0] = 0;
_root.mapArray[20][9][0] = 0;
_root.mapArray[20][10][0] = 4;
_root.mapArray[20][11][0] = 0;
_root.mapArray[20][12][0] = 0;
_root.mapArray[20][13][0] = 0;
_root.mapArray[20][14][0] = 0;
_root.mapArray[20][15][0] = 0;
_root.mapArray[20][16][0] = 0;
_root.mapArray[20][17][0] = 4;
_root.mapArray[20][18][0] = 4;
_root.mapArray[20][19][0] = 4;
_root.mapArray[20][20][0] = 4;
_root.mapArray[20][21][0] = 4;
_root.mapArray[20][22][0] = 4;
_root.mapArray[20][23][0] = 4;
_root.mapArray[20][24][0] = 4;
_root.mapArray[20][25][0] = 4;
_root.mapArray[20][26][0] = 4;
_root.mapArray[20][27][0] = 4;
_root.mapArray[20][28][0] = 4;
_root.mapArray[20][29][0] = 4;
_root.mapArray[20][30][0] = 4;
_root.mapArray[21][5][0] = 4;
_root.mapArray[21][6][0] = 0;
_root.mapArray[21][7][0] = 0;
_root.mapArray[21][8][0] = 0;
_root.mapArray[21][9][0] = 0;
_root.mapArray[21][10][0] = 0;
_root.mapArray[21][11][0] = 0;
_root.mapArray[21][12][0] = 0;
_root.mapArray[21][13][0] = 0;
_root.mapArray[21][14][0] = 0;
_root.mapArray[21][15][0] = 0;
_root.mapArray[21][16][0] = 0;
_root.mapArray[21][17][0] = 4;
_root.mapArray[22][5][0] = 4;
_root.mapArray[22][6][0] = 0;
_root.mapArray[22][7][0] = 0;
_root.mapArray[22][8][0] = 0;
_root.mapArray[22][9][0] = 0;
_root.mapArray[22][10][0] = 0;
_root.mapArray[22][11][0] = 0;
_root.mapArray[22][12][0] = 0;
_root.mapArray[22][13][0] = 0;
_root.mapArray[22][14][0] = 0;
_root.mapArray[22][15][0] = 0;
_root.mapArray[22][16][0] = 0;
_root.mapArray[22][17][0] = 4;
_root.mapArray[23][5][0] = 4;
_root.mapArray[23][6][0] = 0;
_root.mapArray[23][7][0] = 4;
_root.mapArray[23][8][0] = 0;
_root.mapArray[23][9][0] = 0;
_root.mapArray[23][10][0] = 4;
_root.mapArray[23][11][0] = 0;
_root.mapArray[23][12][0] = 0;
_root.mapArray[23][13][0] = 0;
_root.mapArray[23][14][0] = 0;
_root.mapArray[23][15][0] = 0;
_root.mapArray[23][16][0] = 0;
_root.mapArray[23][17][0] = 4;
_root.mapArray[24][5][0] = 4;
_root.mapArray[24][6][0] = 4;
_root.mapArray[24][7][0] = 4;
_root.mapArray[24][8][0] = 4;
_root.mapArray[24][9][0] = 4;
_root.mapArray[24][10][0] = 4;
_root.mapArray[24][11][0] = 4;
_root.mapArray[24][12][0] = 4;
_root.mapArray[24][13][0] = 4;
_root.mapArray[24][14][0] = 4;
_root.mapArray[24][15][0] = 4;
_root.mapArray[24][16][0] = 4;
_root.mapArray[24][17][0] = 4;
_root.placeMarineSquares = [[2, 1], [2, 2], [2, 3], [2, 4], [3, 1], [3, 2], [3, 3], [3, 4]];
_root.marineOrder = [];
n = 0;
while (n < 24) {
m = 0;
while (m < 30) {
_root.mapArray[n][m][1] = null;
_root.mapArray[n][m][2] = null;
_root.mapArray[n][m][3] = [];
_root.mapArray[n][m][4] = [];
p = 0;
while (p < _root.marineData.length) {
_root.mapArray[n][m][3][p] = false;
p++;
}
_root.mapArray[n][m][5] = [0, 0];
m++;
}
n++;
}
_root.mapArray[2][2][4][90] = 2;
_root.mapArray[2][2][4][135] = 2;
_root.mapArray[3][2][4][90] = 2;
_root.mapArray[3][2][4][45] = 2;
_root.mapArray[2][3][4][270] = 2;
_root.mapArray[2][3][4][225] = 2;
_root.mapArray[3][3][4][270] = 2;
_root.mapArray[3][3][4][-45] = 2;
_root.mapArray[2][4][4][45] = 2;
_root.mapArray[2][4][4][90] = 2;
_root.mapArray[2][4][4][135] = 2;
_root.mapArray[3][4][4][90] = 2;
_root.mapArray[3][4][4][45] = 2;
_root.mapArray[2][5][4][270] = 2;
_root.mapArray[2][5][4][225] = 2;
_root.mapArray[3][5][4][270] = 2;
_root.mapArray[3][5][4][-45] = 2;
_root.mapArray[1][5][4][225] = 2;
_root.mapArray[3][5][4][90] = 2;
_root.mapArray[3][5][4][135] = 2;
_root.mapArray[3][6][4][270] = 2;
_root.mapArray[3][6][4][225] = 2;
_root.mapArray[4][5][4][45] = 2;
_root.mapArray[4][5][4][90] = 2;
_root.mapArray[4][5][4][135] = 2;
_root.mapArray[4][6][4][-45] = 2;
_root.mapArray[4][6][4][270] = 2;
_root.mapArray[4][6][4][225] = 2;
_root.mapArray[5][5][4][45] = 2;
_root.mapArray[6][5][4][135] = 2;
_root.mapArray[7][5][4][90] = 2;
_root.mapArray[7][6][4][-45] = 2;
_root.mapArray[7][6][4][270] = 2;
_root.mapArray[7][7][4][180] = 2;
_root.mapArray[8][7][4][0] = 2;
_root.mapArray[8][7][4][45] = 2;
_root.mapArray[7][8][4][225] = 2;
_root.mapArray[3][11][4][90] = 2;
_root.mapArray[3][11][4][135] = 2;
_root.mapArray[4][11][4][45] = 2;
_root.mapArray[4][11][4][90] = 2;
_root.mapArray[4][11][4][135] = 2;
_root.mapArray[3][12][4][270] = 2;
_root.mapArray[3][12][4][225] = 2;
_root.mapArray[4][12][4][-45] = 2;
_root.mapArray[4][12][4][270] = 2;
_root.mapArray[4][12][4][225] = 2;
_root.mapArray[5][12][4][-45] = 2;
_root.mapArray[7][11][4][45] = 2;
_root.mapArray[7][12][4][0] = 2;
_root.mapArray[7][12][4][45] = 2;
_root.mapArray[7][12][4][90] = 2;
_root.mapArray[7][13][4][270] = 2;
_root.mapArray[6][12][4][180] = 2;
_root.mapArray[6][12][4][225] = 2;
_root.mapArray[6][13][4][225] = 2;
_root.mapArray[8][11][4][225] = 2;
_root.mapArray[8][11][4][180] = 2;
_root.mapArray[8][11][4][135] = 2;
_root.mapArray[8][12][4][225] = 2;
_root.mapArray[8][12][4][180] = 2;
_root.mapArray[9][10][4][45] = 2;
_root.mapArray[9][11][4][0] = 2;
_root.mapArray[9][11][4][45] = 2;
_root.mapArray[9][12][4][-45] = 2;
_root.mapArray[9][12][4][0] = 2;
_root.mapArray[10][1][4][180] = 2;
_root.mapArray[10][3][4][180] = 2;
_root.mapArray[10][4][4][225] = 2;
_root.mapArray[10][4][4][135] = 2;
_root.mapArray[10][5][4][180] = 2;
_root.mapArray[10][6][4][225] = 2;
_root.mapArray[11][1][4][0] = 2;
_root.mapArray[11][3][4][0] = 2;
_root.mapArray[11][3][4][45] = 2;
_root.mapArray[11][5][4][-45] = 2;
_root.mapArray[11][5][4][0] = 2;
_root.mapArray[11][5][4][45] = 2;
_root.mapArray[11][5][4][90] = 2;
_root.mapArray[11][5][4][135] = 2;
_root.mapArray[11][6][4][270] = 2;
_root.mapArray[12][6][4][-45] = 2;
_root.mapArray[13][5][4][135] = 2;
_root.mapArray[14][1][4][180] = 2;
_root.mapArray[15][1][4][0] = 2;
_root.mapArray[14][4][4][180] = 2;
_root.mapArray[14][4][4][135] = 2;
_root.mapArray[15][4][4][0] = 2;
_root.mapArray[15][4][4][45] = 2;
_root.mapArray[14][5][4][180] = 2;
_root.mapArray[14][5][4][135] = 2;
_root.mapArray[14][5][4][225] = 2;
_root.mapArray[14][5][4][90] = 2;
_root.mapArray[13][5][4][135] = 1;
_root.mapArray[14][6][4][225] = 2;
_root.mapArray[14][6][4][270] = 2;
_root.mapArray[14][6][4][-45] = 1;
_root.mapArray[15][5][4][0] = 2;
_root.mapArray[15][5][4][45] = 2;
_root.mapArray[15][5][4][-45] = 2;
_root.mapArray[15][5][4][90] = 2;
_root.mapArray[15][6][4][-45] = 2;
_root.mapArray[15][6][4][270] = 2;
_root.mapArray[11][8][4][135] = 1;
_root.mapArray[11][9][4][180] = 2;
_root.mapArray[11][9][4][135] = 2;
_root.mapArray[11][10][4][225] = 2;
_root.mapArray[11][10][4][180] = 2;
_root.mapArray[11][10][4][135] = 2;
_root.mapArray[11][11][4][225] = 2;
_root.mapArray[11][11][4][180] = 2;
_root.mapArray[12][9][4][-45] = 1;
_root.mapArray[12][9][4][0] = 2;
_root.mapArray[12][9][4][45] = 2;
_root.mapArray[12][9][4][90] = 2;
_root.mapArray[12][10][4][-45] = 2;
_root.mapArray[12][10][4][0] = 2;
_root.mapArray[12][10][4][45] = 2;
_root.mapArray[12][10][4][270] = 2;
_root.mapArray[12][11][4][-45] = 2;
_root.mapArray[12][11][4][0] = 2;
_root.mapArray[19][5][4][90] = 2;
_root.mapArray[19][5][4][135] = 2;
_root.mapArray[18][5][4][45] = 2;
_root.mapArray[18][5][4][135] = 2;
_root.mapArray[19][5][4][90] = 2;
_root.mapArray[19][5][4][135] = 2;
_root.mapArray[16][5][4][135] = 2;
_root.mapArray[16][6][4][180] = 2;
_root.mapArray[17][6][4][0] = 2;
_root.mapArray[17][6][4][-45] = 2;
_root.mapArray[17][6][4][225] = 2;
_root.mapArray[19][6][4][270] = 2;
_root.mapArray[19][6][4][-45] = 2;
_root.mapArray[19][6][4][180] = 2;
_root.mapArray[20][6][4][-45] = 2;
_root.mapArray[20][6][4][0] = 2;
_root.mapArray[16][8][4][180] = 2;
_root.mapArray[16][8][4][135] = 2;
_root.mapArray[17][8][4][0] = 2;
_root.mapArray[17][8][4][45] = 2;
_root.mapArray[16][9][4][225] = 2;
_root.mapArray[16][9][4][180] = 2;
_root.mapArray[16][9][4][135] = 2;
_root.mapArray[16][9][4][90] = 2;
_root.mapArray[16][9][4][45] = 2;
_root.mapArray[17][9][4][-45] = 2;
_root.mapArray[17][9][4][0] = 2;
_root.mapArray[17][9][4][45] = 2;
_root.mapArray[15][9][4][45] = 2;
_root.mapArray[15][9][4][90] = 2;
_root.mapArray[15][9][4][135] = 2;
_root.mapArray[14][9][4][90] = 2;
_root.mapArray[14][9][4][135] = 2;
_root.mapArray[14][10][4][270] = 2;
_root.mapArray[14][10][4][225] = 2;
_root.mapArray[15][10][4][-45] = 2;
_root.mapArray[15][10][4][270] = 2;
_root.mapArray[15][10][4][225] = 2;
_root.mapArray[16][10][4][-45] = 2;
_root.mapArray[16][10][4][270] = 2;
_root.mapArray[16][10][4][225] = 2;
_root.mapArray[19][9][4][180] = 2;
_root.mapArray[19][10][4][225] = 2;
_root.mapArray[20][9][4][0] = 2;
_root.mapArray[20][9][4][45] = 2;
_root.mapArray[18][12][4][225] = 1;
_root.mapArray[19][11][4][45] = 1;
_root.mapArray[19][11][4][90] = 2;
_root.mapArray[19][12][4][270] = 2;
_root.mapArray[23][14][4][90] = 2;
_root.mapArray[23][15][4][270] = 2;
_root.mapArray[19][14][4][90] = 2;
_root.mapArray[19][14][4][135] = 2;
_root.mapArray[19][15][4][270] = 2;
_root.mapArray[19][15][4][225] = 2;
_root.mapArray[20][14][4][45] = 2;
_root.mapArray[20][14][4][90] = 2;
_root.mapArray[20][14][4][135] = 2;
_root.mapArray[20][15][4][-45] = 2;
_root.mapArray[20][15][4][270] = 2;
_root.mapArray[20][15][4][225] = 2;
_root.mapArray[21][14][4][45] = 2;
_root.mapArray[21][14][4][90] = 2;
_root.mapArray[21][15][4][-45] = 2;
_root.mapArray[21][15][4][270] = 2;
_root.mapArray[16][11][4][135] = 1;
_root.mapArray[16][12][4][135] = 2;
_root.mapArray[16][12][4][180] = 2;
_root.mapArray[16][14][4][45] = 2;
_root.mapArray[16][14][4][90] = 2;
_root.mapArray[16][14][4][135] = 2;
_root.mapArray[16][14][4][180] = 2;
_root.mapArray[16][14][4][225] = 2;
_root.mapArray[15][14][4][45] = 2;
_root.mapArray[15][14][4][90] = 2;
_root.mapArray[15][14][4][135] = 2;
_root.mapArray[13][14][4][135] = 1;
_root.mapArray[17][12][4][-45] = 1;
_root.mapArray[17][12][4][0] = 2;
_root.mapArray[17][13][4][-45] = 2;
_root.mapArray[17][13][4][45] = 2;
_root.mapArray[17][14][4][0] = 2;
_root.mapArray[17][14][4][45] = 2;
_root.mapArray[17][14][4][90] = 2;
_root.mapArray[17][15][4][270] = 2;
_root.mapArray[17][15][4][-45] = 2;
_root.mapArray[16][15][4][-45] = 2;
_root.mapArray[16][15][4][270] = 2;
_root.mapArray[16][15][4][225] = 2;
_root.mapArray[15][15][4][270] = 2;
_root.mapArray[15][15][4][225] = 2;
_root.mapArray[14][15][4][-45] = 1;
_root.mapArray[14][15][4][225] = 2;
_root.mapArray[2][14][4][135] = 2;
_root.mapArray[3][14][4][90] = 2;
_root.mapArray[3][14][4][135] = 2;
_root.mapArray[4][14][4][45] = 2;
_root.mapArray[4][14][4][90] = 2;
_root.mapArray[4][14][4][135] = 2;
_root.mapArray[5][14][4][45] = 2;
_root.mapArray[5][14][4][90] = 2;
_root.mapArray[2][15][4][135] = 2;
_root.mapArray[2][15][4][180] = 2;
_root.mapArray[2][16][4][135] = 2;
_root.mapArray[2][16][4][180] = 2;
_root.mapArray[2][16][4][225] = 2;
_root.mapArray[2][17][4][135] = 2;
_root.mapArray[2][17][4][180] = 2;
_root.mapArray[2][17][4][225] = 2;
_root.mapArray[2][18][4][180] = 2;
_root.mapArray[2][18][4][225] = 2;
_root.mapArray[2][19][4][225] = 2;
_root.mapArray[3][19][4][270] = 2;
_root.mapArray[4][19][4][-45] = 2;
_root.mapArray[4][19][4][225] = 2;
_root.mapArray[4][19][4][180] = 2;
_root.mapArray[5][19][4][0] = 2;
_root.mapArray[5][19][4][270] = 2;
_root.mapArray[5][19][4][225] = 2;
_root.mapArray[6][19][4][-45] = 2;
_root.mapArray[6][19][4][270] = 2;
_root.mapArray[6][18][4][45] = 2;
_root.mapArray[6][18][4][90] = 2;
_root.mapArray[5][18][4][45] = 2;
_root.mapArray[5][18][4][90] = 2;
_root.mapArray[5][18][4][135] = 2;
_root.mapArray[3][18][4][-45] = 2;
_root.mapArray[3][18][4][0] = 2;
_root.mapArray[3][18][4][45] = 2;
_root.mapArray[3][18][4][90] = 2;
_root.mapArray[3][18][4][135] = 2;
_root.mapArray[3][17][4][-45] = 2;
_root.mapArray[3][17][4][0] = 2;
_root.mapArray[3][17][4][45] = 2;
_root.mapArray[3][16][4][-45] = 2;
_root.mapArray[3][16][4][0] = 2;
_root.mapArray[3][16][4][45] = 2;
_root.mapArray[3][15][4][-45] = 2;
_root.mapArray[3][15][4][0] = 2;
_root.mapArray[3][15][4][45] = 2;
_root.mapArray[3][15][4][270] = 2;
_root.mapArray[3][15][4][225] = 2;
_root.mapArray[4][15][4][-45] = 2;
_root.mapArray[4][15][4][270] = 2;
_root.mapArray[4][15][4][225] = 2;
_root.mapArray[5][15][4][270] = 2;
_root.mapArray[5][15][4][-45] = 2;
_root.mapArray[7][14][4][90] = 2;
_root.mapArray[7][14][4][135] = 2;
_root.mapArray[8][14][4][45] = 2;
_root.mapArray[8][14][4][90] = 2;
_root.mapArray[8][14][4][135] = 2;
_root.mapArray[9][14][4][45] = 2;
_root.mapArray[9][14][4][90] = 2;
_root.mapArray[9][14][4][135] = 2;
_root.mapArray[10][14][4][45] = 2;
_root.mapArray[10][14][4][90] = 2;
_root.mapArray[10][14][4][135] = 2;
_root.mapArray[11][14][4][45] = 2;
_root.mapArray[11][14][4][90] = 2;
_root.mapArray[11][14][4][135] = 2;
_root.mapArray[11][14][4][180] = 2;
_root.mapArray[11][13][4][135] = 2;
_root.mapArray[7][15][4][270] = 2;
_root.mapArray[7][15][4][225] = 2;
_root.mapArray[7][15][4][180] = 2;
_root.mapArray[8][15][4][0] = 2;
_root.mapArray[8][15][4][-45] = 2;
_root.mapArray[8][15][4][270] = 2;
_root.mapArray[8][15][4][225] = 2;
_root.mapArray[9][15][4][-45] = 2;
_root.mapArray[9][15][4][270] = 2;
_root.mapArray[9][15][4][225] = 2;
_root.mapArray[10][15][4][-45] = 2;
_root.mapArray[10][15][4][270] = 2;
_root.mapArray[10][15][4][225] = 2;
_root.mapArray[11][15][4][-45] = 2;
_root.mapArray[11][15][4][270] = 2;
_root.mapArray[11][15][4][225] = 1;
_root.mapArray[12][14][4][-45] = 2;
_root.mapArray[12][14][4][0] = 2;
_root.mapArray[12][14][4][45] = 1;
_root.mapArray[8][17][4][45] = 2;
_root.mapArray[8][18][4][0] = 2;
_root.mapArray[8][18][4][45] = 2;
_root.mapArray[8][18][4][90] = 2;
_root.mapArray[8][18][4][135] = 2;
_root.mapArray[9][18][4][45] = 2;
_root.mapArray[9][18][4][90] = 2;
_root.mapArray[9][18][4][135] = 2;
_root.mapArray[10][18][4][45] = 2;
_root.mapArray[10][18][4][90] = 2;
_root.mapArray[10][18][4][135] = 2;
_root.mapArray[11][18][4][45] = 2;
_root.mapArray[11][18][4][90] = 2;
_root.mapArray[11][18][4][135] = 2;
_root.mapArray[11][18][4][90] = 2;
_root.mapArray[12][18][4][0] = 2;
_root.mapArray[12][18][4][45] = 2;
_root.mapArray[12][19][4][-45] = 2;
_root.mapArray[12][19][4][0] = 2;
_root.mapArray[12][19][4][45] = 2;
_root.mapArray[12][20][4][-45] = 2;
_root.mapArray[12][20][4][0] = 2;
_root.mapArray[11][20][4][180] = 2;
_root.mapArray[11][20][4][225] = 2;
_root.mapArray[11][19][4][135] = 2;
_root.mapArray[11][19][4][180] = 2;
_root.mapArray[11][19][4][225] = 2;
_root.mapArray[11][19][4][270] = 2;
_root.mapArray[11][19][4][-45] = 2;
_root.mapArray[10][19][4][225] = 2;
_root.mapArray[10][19][4][270] = 2;
_root.mapArray[10][19][4][-45] = 2;
_root.mapArray[9][19][4][225] = 2;
_root.mapArray[9][19][4][270] = 2;
_root.mapArray[9][19][4][-45] = 2;
_root.mapArray[8][19][4][225] = 2;
_root.mapArray[8][19][4][270] = 2;
_root.mapArray[7][19][4][225] = 2;
_root.mapArray[7][18][4][225] = 2;
_root.mapArray[7][18][4][180] = 2;
_root.mapArray[11][22][4][135] = 2;
_root.mapArray[11][22][4][180] = 2;
_root.mapArray[11][23][4][135] = 2;
_root.mapArray[11][23][4][180] = 2;
_root.mapArray[11][23][4][225] = 2;
_root.mapArray[11][23][4][90] = 2;
_root.mapArray[11][23][4][45] = 2;
_root.mapArray[10][23][4][90] = 2;
_root.mapArray[10][23][4][135] = 2;
_root.mapArray[10][24][4][270] = 2;
_root.mapArray[10][24][4][225] = 2;
_root.mapArray[11][24][4][-45] = 2;
_root.mapArray[11][24][4][270] = 2;
_root.mapArray[12][24][4][-45] = 2;
_root.mapArray[12][22][4][0] = 2;
_root.mapArray[12][22][4][45] = 2;
_root.mapArray[12][23][4][0] = 2;
_root.mapArray[12][23][4][-45] = 2;
_root.mapArray[4][21][4][180] = 2;
_root.mapArray[4][21][4][135] = 2;
_root.mapArray[4][22][4][225] = 2;
_root.mapArray[4][22][4][180] = 2;
_root.mapArray[4][22][4][135] = 2;
_root.mapArray[4][23][4][225] = 2;
_root.mapArray[4][23][4][180] = 2;
_root.mapArray[4][24][4][225] = 2;
_root.mapArray[5][24][4][270] = 2;
_root.mapArray[5][24][4][225] = 2;
_root.mapArray[6][24][4][270] = 2;
_root.mapArray[6][24][4][225] = 2;
_root.mapArray[6][24][4][-45] = 2;
_root.mapArray[7][24][4][270] = 2;
_root.mapArray[7][24][4][225] = 2;
_root.mapArray[7][24][4][-45] = 2;
_root.mapArray[8][24][4][270] = 2;
_root.mapArray[8][24][4][-45] = 2;
_root.mapArray[5][21][4][0] = 2;
_root.mapArray[5][21][4][45] = 2;
_root.mapArray[5][22][4][0] = 2;
_root.mapArray[5][22][4][45] = 2;
_root.mapArray[5][22][4][-45] = 2;
_root.mapArray[5][23][4][0] = 2;
_root.mapArray[5][23][4][45] = 2;
_root.mapArray[5][23][4][-45] = 2;
_root.mapArray[5][23][4][90] = 2;
_root.mapArray[5][23][4][135] = 2;
_root.mapArray[7][23][4][45] = 2;
_root.mapArray[7][23][4][90] = 2;
_root.mapArray[7][23][4][135] = 2;
_root.mapArray[8][23][4][90] = 2;
_root.mapArray[8][23][4][45] = 2;
_root.mapArray[5][25][4][90] = 2;
_root.mapArray[5][25][4][135] = 2;
_root.mapArray[6][25][4][45] = 2;
_root.mapArray[6][25][4][90] = 2;
_root.mapArray[6][25][4][135] = 2;
_root.mapArray[7][25][4][45] = 2;
_root.mapArray[7][25][4][90] = 2;
_root.mapArray[7][25][4][135] = 2;
_root.mapArray[8][25][4][45] = 2;
_root.mapArray[8][25][4][90] = 2;
_root.mapArray[8][25][4][135] = 2;
_root.mapArray[9][25][4][45] = 2;
_root.mapArray[9][25][4][90] = 2;
_root.mapArray[9][25][4][135] = 2;
_root.mapArray[10][25][4][45] = 2;
_root.mapArray[10][25][4][90] = 2;
_root.mapArray[10][25][4][135] = 2;
_root.mapArray[11][25][4][45] = 2;
_root.mapArray[11][25][4][90] = 2;
_root.mapArray[12][25][4][45] = 2;
_root.mapArray[5][26][4][270] = 2;
_root.mapArray[5][26][4][225] = 2;
_root.mapArray[6][26][4][-45] = 2;
_root.mapArray[6][26][4][270] = 2;
_root.mapArray[6][26][4][225] = 2;
_root.mapArray[7][26][4][-45] = 2;
_root.mapArray[7][26][4][270] = 2;
_root.mapArray[7][26][4][225] = 2;
_root.mapArray[8][26][4][-45] = 2;
_root.mapArray[8][26][4][270] = 2;
_root.mapArray[8][26][4][225] = 2;
_root.mapArray[9][26][4][-45] = 2;
_root.mapArray[9][26][4][270] = 2;
_root.mapArray[9][26][4][225] = 2;
_root.mapArray[10][26][4][-45] = 2;
_root.mapArray[10][26][4][270] = 2;
_root.mapArray[10][26][4][225] = 2;
_root.mapArray[11][26][4][-45] = 2;
_root.mapArray[11][26][4][270] = 2;
_root.mapArray[11][26][4][225] = 2;
_root.mapArray[11][26][4][180] = 2;
_root.mapArray[11][26][4][135] = 2;
_root.mapArray[12][15][4][-45] = 2;
_root.mapArray[12][26][4][0] = 2;
_root.mapArray[12][26][4][45] = 2;
_root.mapArray[12][27][4][-45] = 2;
_root.mapArray[12][27][4][0] = 2;
_root.mapArray[11][27][4][225] = 2;
_root.mapArray[11][27][4][180] = 2;
_root.mapArray[11][27][4][135] = 1;
_root.mapArray[12][28][4][-45] = 1;
_root.mapArray[14][19][4][135] = 1;
_root.mapArray[15][19][4][90] = 2;
_root.mapArray[15][19][4][135] = 2;
_root.mapArray[16][19][4][45] = 2;
_root.mapArray[16][19][4][90] = 2;
_root.mapArray[16][19][4][135] = 2;
_root.mapArray[18][19][4][45] = 2;
_root.mapArray[18][19][4][90] = 2;
_root.mapArray[18][19][4][135] = 2;
_root.mapArray[15][20][4][-45] = 1;
_root.mapArray[15][20][4][270] = 2;
_root.mapArray[15][20][4][225] = 2;
_root.mapArray[16][20][4][-45] = 2;
_root.mapArray[16][20][4][270] = 2;
_root.mapArray[17][20][4][-45] = 2;
_root.mapArray[17][20][4][225] = 2;
_root.mapArray[18][20][4][270] = 2;
_root.mapArray[19][20][4][-45] = 2;
_root.mapArray[13][28][4][180] = 2;
_root.mapArray[13][28][4][135] = 2;
_root.mapArray[13][29][4][180] = 2;
_root.mapArray[13][29][4][225] = 2;
_root.mapArray[14][28][4][0] = 2;
_root.mapArray[14][28][4][45] = 2;
_root.mapArray[14][29][4][0] = 2;
_root.mapArray[14][29][4][-45] = 2;
_root.mapArray[13][21][4][135] = 1;
_root.mapArray[13][22][4][180] = 2;
_root.mapArray[13][22][4][135] = 2;
_root.mapArray[13][23][4][225] = 2;
_root.mapArray[13][23][4][180] = 2;
_root.mapArray[13][23][4][135] = 2;
_root.mapArray[13][24][4][225] = 2;
_root.mapArray[13][24][4][180] = 2;
_root.mapArray[13][24][4][135] = 2;
_root.mapArray[13][25][4][225] = 2;
_root.mapArray[13][25][4][180] = 2;
_root.mapArray[14][22][4][-45] = 1;
_root.mapArray[14][22][4][0] = 2;
_root.mapArray[14][22][4][45] = 2;
_root.mapArray[14][23][4][-45] = 2;
_root.mapArray[14][23][4][0] = 2;
_root.mapArray[14][23][4][45] = 2;
_root.mapArray[14][24][4][-45] = 2;
_root.mapArray[14][24][4][0] = 2;
_root.mapArray[14][24][4][45] = 2;
_root.mapArray[14][25][4][-45] = 2;
_root.mapArray[14][25][4][0] = 2;
_root.roomData = [];
_root.roomData[0] = 0;
_root.roomData[1] = 0;
_root.roomData[2] = 0;
_root.roomData[3] = 0;
_root.roomData[4] = 0;
_root.roomData[5] = 0;
_root.roomData[6] = 0;
_root.roomData[7] = 0;
_root.roomData[8] = 0;
_root.roomData[9] = 0;
_root.roomData[10] = 0;
_root.aliensArray = [];
_root.targetRange = [];
n = 0;
while (n < 40) {
_root.targetRange[n] = [];
n++;
}
_root.frameData = "";
_root.currentLoop = "";
_root.currentRange = 0;
_root.currentMarineActions = 0;
_root.marineButtonsArray = [];
_root.marineButtonsArrayShooting = [];
_root.marineIncButtonsArray = [];
_root.alienSelect = "";
_root.marineSelect = "";
_root.alienActions = "";
_root.userInputExpected = false;
_root.goalX = "";
_root.goalY = "";
_root.killAlien = null;
_root.cocoonSquares = [[22, 6, 6, 90, 22, 5], [22, 10, 6, 0, 23, 10], [23, 12, 6, 0, 24, 12], [23, 13, 6, 0, 24, 13], [17, 13, 6, 180, 16, 13], [19, 20, 0, 0, 20, 20], [17, 29, 0, 270, 17, 30], [9, 29, 10, 270, 9, 30], [6, 28, 10, 270, 6, 29], [7, 22, 9, 180, 6, 22], [7, 23, 9, 180, 6, 23], [10, 16, 7, 270, 10, 17]];
_root.cocoonUsed = [];
t = 0;
while (t < _root.cocoonMarines.length) {
loopCheck = null;
while (loopCheck == null) {
cocoonLocation = _root.calculateRandom(0, _root.cocoonSquares.length - 1);
testLoop = null;
n = 0;
while (n < _root.cocoonUsed.length) {
if (_root.cocoonUsed[n] == cocoonLocation) {
testLoop = 1;
}
n++;
}
if (testLoop == null) {
_root.cocoonUsed[_root.cocoonUsed.length] = cocoonLocation;
loopCheck = 1;
}
}
_root.marineData[_root.cocoonMarines[t]][14] = [];
_root.marineData[_root.cocoonMarines[t]][14][0] = _root.cocoonSquares[cocoonLocation][2];
_root.marineData[_root.cocoonMarines[t]][14][1] = _root.cocoonSquares[cocoonLocation][4];
_root.marineData[_root.cocoonMarines[t]][14][2] = _root.cocoonSquares[cocoonLocation][5];
_root.marineData[_root.cocoonMarines[t]][6] = _root.cocoonSquares[cocoonLocation][0];
_root.marineData[_root.cocoonMarines[t]][7] = _root.cocoonSquares[cocoonLocation][1];
_root.mapArray[_root.marineData[_root.cocoonMarines[t]][6]][_root.marineData[_root.cocoonMarines[t]][7]][1] = _root.cocoonMarines[t];
_root.actionarea.attachMovie(_root.marineData[_root.cocoonMarines[t]][0], _root.marineData[_root.cocoonMarines[t]][0], 500 + _root.cocoonMarines[t]);
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]]._x = (_root.cocoonSquares[cocoonLocation][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]]._y = (_root.cocoonSquares[cocoonLocation][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]]._rotation = _root.cocoonSquares[cocoonLocation][3];
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]].gotoAndPlay("cocoon");
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]]._visible = false;
_root.actionarea.attachMovie(_root.marineData[_root.cocoonMarines[t]][0] + "Name", _root.marineData[_root.cocoonMarines[t]][0] + "Name", 15000 + _root.cocoonMarines[t]);
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0] + "Name"]._x = (_root.cocoonSquares[cocoonLocation][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0] + "Name"]._y = _root.cocoonSquares[cocoonLocation][0] * _root.tileSize;
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0] + "Name"]._visible = false;
_root.marineData[_root.cocoonMarines[t]][8] = 0;
_root.marineData[_root.cocoonMarines[t]][9] = 2;
_root.marineData[_root.cocoonMarines[t]][2] = "incapacitated";
_root.mapArray[_root.marineData[_root.cocoonMarines[t]][6]][_root.marineData[_root.cocoonMarines[t]][7]][1] = null;
_root.mapArray[_root.marineData[_root.cocoonMarines[t]][6]][_root.marineData[_root.cocoonMarines[t]][7]][3][_root.cocoonMarines[t]] = "inc";
_root.mapArray[_root.cocoonSquares[cocoonLocation][0]][_root.cocoonSquares[cocoonLocation][1]][0] = 3;
t++;
}
_root.currentTurn = 0;
_root.turnArray = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
_root.randAlienStart0 = [[14, 23], [14, 25], [14, 28], [15, 20], [16, 29], [18, 20], [19, 22], [19, 24], [19, 29]];
_root.randAlienStart1 = [[11, 1], [11, 3], [12, 1], [13, 2], [13, 4], [13, 5], [14, 1], [14, 4], [14, 5]];
_root.randAlienStart2 = [[15, 4], [15, 5], [16, 1], [17, 2], [18, 1], [18, 5], [19, 1], [19, 3], [19, 5]];
_root.randAlienStart3 = [[12, 9], [14, 6], [14, 8], [14, 9], [15, 6], [15, 8], [15, 9], [16, 8], [16, 9]];
_root.randAlienStart4 = [[17, 6], [17, 8], [17, 9], [18, 7], [18, 8], [19, 6], [19, 9], [19, 10], [19, 11]];
_root.randAlienStart5 = [[12, 10], [12, 11], [13, 13], [13, 14], [14, 10], [15, 14], [16, 10], [16, 12], [16, 14]];
_root.randAlienStart6 = [[17, 12], [20, 6], [20, 9], [21, 14], [23, 6], [23, 8], [23, 9], [23, 11], [23, 14]];
_root.randAlienStart7 = [[8, 15], [8, 17], [8, 18], [9, 15], [9, 18], [10, 15], [10, 18], [11, 15], [11, 18]];
_root.randAlienStart8 = [[3, 16], [3, 17], [3, 18], [4, 15], [4, 17], [5, 15], [5, 18], [6, 18], [7, 15]];
_root.randAlienStart9 = [[5, 21], [5, 23], [6, 19], [8, 19], [8, 22], [9, 19], [9, 22], [11, 19], [11, 22]];
_root.randAlienStart10 = [[3, 27], [6, 26], [7, 26], [7, 29], [8, 28], [9, 26], [10, 26], [11, 26], [11, 27]];
_root.randAlienStart11 = [[2, 7], [2, 8], [3, 7], [3, 8]];
_root.randAlienStart12 = [[3, 28], [3, 29], [4, 28], [4, 29]];
_root.randAlienStart13 = [[8, 20], [8, 21], [9, 20], [9, 21]];
_root.randAlienStart14 = [[10, 28], [11, 29], [10, 28], [11, 29]];
_root.randAlienStart15 = [[12, 6], [12, 7], [12, 8], [13, 6], [13, 7], [13, 8]];
_root.randAlienStart16 = [[12, 15], [12, 16], [13, 15], [13, 16]];
_root.randAlienStart17 = [[14, 20], [14, 21]];
_root.randAlienStart18 = [[17, 10], [17, 11], [18, 10], [18, 11]];
_root.randAlienStart19 = [[16, 21], [16, 22], [16, 23], [16, 24], [16, 25], [16, 26], [16, 27], [17, 21], [17, 27], [18, 21], [18, 22], [18, 23], [18, 24], [18, 25], [18, 26], [18, 27]];
_root.marineOrderCurrentPosition = "";
_root.tempAlienNum = [];
_root.elevatorStatus1 = 1;
_root.elevatorStatus2 = 1;
_root.burnCorridor = 0;
_root.vasquezShoot = 0;
_root.otherMarineXY = false;
_root.alienPreviousMovement = [];
_root.RescueTempActionX = "";
_root.RescueTempActionY = "";
_root.RescueTempActionXscale = "";
_root.RescueTempActionXscale = "";
_root.actionarea.mainMap.map.egg1._visible = false;
_root.actionarea.mainMap.map.egg2._visible = false;
_root.actionarea.mainMap.map.egg3._visible = false;
_root.actionarea.mainMap.map.egg4._visible = false;
_root.actionarea.mainMap.map.egg5._visible = false;
_root.actionarea.mainMap.map.egg6._visible = false;
_root.actionarea.mainMap.map.egg7._visible = false;
_root.actionarea.mainMap.map.egg8._visible = false;
_root.actionarea.mainMap.map.egg9._visible = false;
_root.actionarea.mainMap.map.egg10._visible = false;
_root.actionarea.mainMap.map.egg0._visible = false;
queenStartArray = [1, 2, 3, 4, 5, 8];
_root.queenRoom = queenStartArray[_root.calculateRandom(0, queenStartArray.length - 1)];
_root.queenRoomWait = 0;
trace("THE QUEEN IS IN ROOM " + _root.queenRoom);
queenStart = _root.calculateRandom(0, _root["randAlienStart" + _root.queenRoom].length - 1);
newAlien = _root.aliensArray.length;
_root.alienQueen = newAlien;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = _root["randAlienStart" + _root.queenRoom][queenStart][0];
_root.aliensArray[newAlien][1] = _root["randAlienStart" + _root.queenRoom][queenStart][1];
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.aliensArray[newAlien].queen = true;
_root.aliensArray[newAlien].queenHit = 0;
_root.aliensArray[newAlien].wait = true;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("queen", "alien" + newAlien, 2100 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = _root.calculateRandom(0, 360);
_root.actionarea["alien" + newAlien].gotoAndStop("start");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.actionarea["alien" + newAlien]._visible = false;
Instance of Symbol 697 MovieClip "map" in Symbol 698 MovieClip [rescueMap] Frame 1
/* no clip actions */
Symbol 704 MovieClip Frame 1
_root.mapName = "reactor";
_root.actionarea._xscale = 95;
_root.actionarea._yscale = 95;
_root.actionarea._x = 5;
_root.actionarea._y = 180;
_root.thisMapWeapon = 3;
_root.marineData[0][12] = _root.thisMapWeapon;
_root.marineData[1][12] = _root.thisMapWeapon;
_root.marineData[2][12] = _root.thisMapWeapon;
_root.marineData[3][12] = _root.thisMapWeapon;
_root.marineData[4][12] = _root.thisMapWeapon;
_root.marineData[5][12] = _root.thisMapWeapon;
_root.marineData[6][12] = _root.thisMapWeapon;
_root.marineData[7][12] = _root.thisMapWeapon;
_root.marineData[8][12] = _root.thisMapWeapon;
_root.marineData[9][12] = _root.thisMapWeapon;
_root.marineData[10][12] = _root.thisMapWeapon;
_root.marineData[11][12] = _root.thisMapWeapon;
_root.marineData[12][12] = _root.thisMapWeapon;
_root.tileSize = 40;
_root.mapArray = [];
n = 0;
while (n < 16) {
_root.mapArray[n] = [];
m = 0;
while (m < 27) {
_root.mapArray[n][m] = [];
m++;
}
n++;
}
_root.mapArray[0][0][0] = 4;
_root.mapArray[0][1][0] = 4;
_root.mapArray[0][2][0] = 4;
_root.mapArray[0][3][0] = 4;
_root.mapArray[0][4][0] = 4;
_root.mapArray[0][5][0] = 4;
_root.mapArray[0][6][0] = 4;
_root.mapArray[0][7][0] = 4;
_root.mapArray[0][8][0] = 4;
_root.mapArray[0][9][0] = 4;
_root.mapArray[0][10][0] = 4;
_root.mapArray[0][11][0] = 4;
_root.mapArray[0][12][0] = 4;
_root.mapArray[0][13][0] = 4;
_root.mapArray[0][14][0] = 4;
_root.mapArray[0][15][0] = 4;
_root.mapArray[0][16][0] = 4;
_root.mapArray[0][17][0] = 4;
_root.mapArray[0][18][0] = 4;
_root.mapArray[0][19][0] = 4;
_root.mapArray[0][20][0] = 4;
_root.mapArray[0][21][0] = 4;
_root.mapArray[0][22][0] = 4;
_root.mapArray[0][23][0] = 4;
_root.mapArray[0][24][0] = 4;
_root.mapArray[0][25][0] = 4;
_root.mapArray[0][26][0] = 4;
_root.mapArray[1][0][0] = 4;
_root.mapArray[1][1][0] = 0;
_root.mapArray[1][2][0] = 0;
_root.mapArray[1][3][0] = 4;
_root.mapArray[1][4][0] = 0;
_root.mapArray[1][5][0] = 0;
_root.mapArray[1][6][0] = 0;
_root.mapArray[1][7][0] = 0;
_root.mapArray[1][8][0] = 0;
_root.mapArray[1][9][0] = 0;
_root.mapArray[1][10][0] = 0;
_root.mapArray[1][11][0] = 4;
_root.mapArray[1][12][0] = 4;
_root.mapArray[1][13][0] = 4;
_root.mapArray[1][14][0] = 4;
_root.mapArray[1][15][0] = 0;
_root.mapArray[1][16][0] = 0;
_root.mapArray[1][17][0] = 0;
_root.mapArray[1][18][0] = 0;
_root.mapArray[1][19][0] = 0;
_root.mapArray[1][20][0] = 4;
_root.mapArray[1][21][0] = 4;
_root.mapArray[1][22][0] = 4;
_root.mapArray[1][23][0] = 4;
_root.mapArray[1][24][0] = 0;
_root.mapArray[1][25][0] = 0;
_root.mapArray[1][26][0] = 4;
_root.mapArray[2][0][0] = 4;
_root.mapArray[2][1][0] = 0;
_root.mapArray[2][2][0] = 0;
_root.mapArray[2][3][0] = 0;
_root.mapArray[2][4][0] = 0;
_root.mapArray[2][5][0] = 4;
_root.mapArray[2][6][0] = 0;
_root.mapArray[2][7][0] = 0;
_root.mapArray[2][8][0] = 0;
_root.mapArray[2][9][0] = 0;
_root.mapArray[2][10][0] = 0;
_root.mapArray[2][11][0] = 4;
_root.mapArray[2][12][0] = 4;
_root.mapArray[2][13][0] = 4;
_root.mapArray[2][14][0] = 4;
_root.mapArray[2][15][0] = 0;
_root.mapArray[2][16][0] = 0;
_root.mapArray[2][17][0] = 0;
_root.mapArray[2][18][0] = 0;
_root.mapArray[2][19][0] = 0;
_root.mapArray[2][20][0] = 4;
_root.mapArray[2][21][0] = 4;
_root.mapArray[2][22][0] = 0;
_root.mapArray[2][23][0] = 0;
_root.mapArray[2][24][0] = 0;
_root.mapArray[2][25][0] = 0;
_root.mapArray[2][26][0] = 4;
_root.mapArray[3][0][0] = 4;
_root.mapArray[3][1][0] = 0;
_root.mapArray[3][2][0] = 4;
_root.mapArray[3][3][0] = 0;
_root.mapArray[3][4][0] = 0;
_root.mapArray[3][5][0] = 0;
_root.mapArray[3][6][0] = 0;
_root.mapArray[3][7][0] = 0;
_root.mapArray[3][8][0] = 0;
_root.mapArray[3][9][0] = 4;
_root.mapArray[3][10][0] = 0;
_root.mapArray[3][11][0] = 4;
_root.mapArray[3][12][0] = 0;
_root.mapArray[3][13][0] = 0;
_root.mapArray[3][14][0] = 0;
_root.mapArray[3][15][0] = 0;
_root.mapArray[3][16][0] = 4;
_root.mapArray[3][17][0] = 0;
_root.mapArray[3][18][0] = 0;
_root.mapArray[3][19][0] = 0;
_root.mapArray[3][20][0] = 0;
_root.mapArray[3][21][0] = 0;
_root.mapArray[3][22][0] = 0;
_root.mapArray[3][23][0] = 4;
_root.mapArray[3][24][0] = 0;
_root.mapArray[3][25][0] = 0;
_root.mapArray[3][26][0] = 4;
_root.mapArray[4][0][0] = 4;
_root.mapArray[4][1][0] = 0;
_root.mapArray[4][2][0] = 0;
_root.mapArray[4][3][0] = 0;
_root.mapArray[4][4][0] = 0;
_root.mapArray[4][5][0] = 4;
_root.mapArray[4][6][0] = 0;
_root.mapArray[4][7][0] = 0;
_root.mapArray[4][8][0] = 0;
_root.mapArray[4][9][0] = 0;
_root.mapArray[4][10][0] = 0;
_root.mapArray[4][11][0] = 0;
_root.mapArray[4][12][0] = 0;
_root.mapArray[4][13][0] = 0;
_root.mapArray[4][14][0] = 0;
_root.mapArray[4][15][0] = 0;
_root.mapArray[4][16][0] = 0;
_root.mapArray[4][17][0] = 0;
_root.mapArray[4][18][0] = 0;
_root.mapArray[4][19][0] = 0;
_root.mapArray[4][20][0] = 0;
_root.mapArray[4][21][0] = 0;
_root.mapArray[4][22][0] = 0;
_root.mapArray[4][23][0] = 0;
_root.mapArray[4][24][0] = 0;
_root.mapArray[4][25][0] = 4;
_root.mapArray[4][26][0] = 4;
_root.mapArray[5][0][0] = 4;
_root.mapArray[5][1][0] = 4;
_root.mapArray[5][2][0] = 0;
_root.mapArray[5][3][0] = 0;
_root.mapArray[5][4][0] = 4;
_root.mapArray[5][5][0] = 4;
_root.mapArray[5][6][0] = 4;
_root.mapArray[5][7][0] = 0;
_root.mapArray[5][8][0] = 0;
_root.mapArray[5][9][0] = 4;
_root.mapArray[5][10][0] = 0;
_root.mapArray[5][11][0] = 0;
_root.mapArray[5][12][0] = 0;
_root.mapArray[5][13][0] = 0;
_root.mapArray[5][14][0] = 0;
_root.mapArray[5][15][0] = 0;
_root.mapArray[5][16][0] = 0;
_root.mapArray[5][17][0] = 0;
_root.mapArray[5][18][0] = 0;
_root.mapArray[5][19][0] = 0;
_root.mapArray[5][20][0] = 0;
_root.mapArray[5][21][0] = 0;
_root.mapArray[5][22][0] = 0;
_root.mapArray[5][23][0] = 0;
_root.mapArray[5][24][0] = 0;
_root.mapArray[5][25][0] = 0;
_root.mapArray[5][26][0] = 4;
_root.mapArray[6][0][0] = 4;
_root.mapArray[6][1][0] = 0;
_root.mapArray[6][2][0] = 0;
_root.mapArray[6][3][0] = 0;
_root.mapArray[6][4][0] = 4;
_root.mapArray[6][5][0] = 4;
_root.mapArray[6][6][0] = 4;
_root.mapArray[6][7][0] = 0;
_root.mapArray[6][8][0] = 0;
_root.mapArray[6][9][0] = 0;
_root.mapArray[6][10][0] = 0;
_root.mapArray[6][11][0] = 3;
_root.mapArray[6][12][0] = 3;
_root.mapArray[6][13][0] = 3;
_root.mapArray[6][14][0] = 3;
_root.mapArray[6][15][0] = 3;
_root.mapArray[6][16][0] = 3;
_root.mapArray[6][17][0] = 3;
_root.mapArray[6][18][0] = 0;
_root.mapArray[6][19][0] = 0;
_root.mapArray[6][20][0] = 0;
_root.mapArray[6][21][0] = 4;
_root.mapArray[6][22][0] = 0;
_root.mapArray[6][23][0] = 0;
_root.mapArray[6][24][0] = 0;
_root.mapArray[6][25][0] = 0;
_root.mapArray[6][26][0] = 4;
_root.mapArray[7][0][0] = 0;
_root.mapArray[7][1][0] = 0;
_root.mapArray[7][2][0] = 0;
_root.mapArray[7][3][0] = 0;
_root.mapArray[7][4][0] = 4;
_root.mapArray[7][5][0] = 4;
_root.mapArray[7][6][0] = 4;
_root.mapArray[7][7][0] = 0;
_root.mapArray[7][8][0] = 0;
_root.mapArray[7][9][0] = 0;
_root.mapArray[7][10][0] = 0;
_root.mapArray[7][11][0] = 3;
_root.mapArray[7][12][0] = 3;
_root.mapArray[7][13][0] = 3;
_root.mapArray[7][14][0] = 3;
_root.mapArray[7][15][0] = 3;
_root.mapArray[7][16][0] = 3;
_root.mapArray[7][17][0] = 3;
_root.mapArray[7][18][0] = 0;
_root.mapArray[7][19][0] = 0;
_root.mapArray[7][20][0] = 0;
_root.mapArray[7][21][0] = 0;
_root.mapArray[7][22][0] = 0;
_root.mapArray[7][23][0] = 0;
_root.mapArray[7][24][0] = 0;
_root.mapArray[7][25][0] = 4;
_root.mapArray[7][26][0] = 4;
_root.mapArray[8][0][0] = 4;
_root.mapArray[8][1][0] = 0;
_root.mapArray[8][2][0] = 0;
_root.mapArray[8][3][0] = 0;
_root.mapArray[8][4][0] = 0;
_root.mapArray[8][5][0] = 0;
_root.mapArray[8][6][0] = 0;
_root.mapArray[8][7][0] = 0;
_root.mapArray[8][8][0] = 0;
_root.mapArray[8][9][0] = 0;
_root.mapArray[8][10][0] = 0;
_root.mapArray[8][11][0] = 3;
_root.mapArray[8][12][0] = 3;
_root.mapArray[8][13][0] = 3;
_root.mapArray[8][14][0] = 3;
_root.mapArray[8][15][0] = 3;
_root.mapArray[8][16][0] = 3;
_root.mapArray[8][17][0] = 3;
_root.mapArray[8][18][0] = 0;
_root.mapArray[8][19][0] = 0;
_root.mapArray[8][20][0] = 0;
_root.mapArray[8][21][0] = 0;
_root.mapArray[8][22][0] = 0;
_root.mapArray[8][23][0] = 0;
_root.mapArray[8][24][0] = 0;
_root.mapArray[8][25][0] = 4;
_root.mapArray[8][26][0] = 4;
_root.mapArray[9][0][0] = 4;
_root.mapArray[9][1][0] = 0;
_root.mapArray[9][2][0] = 0;
_root.mapArray[9][3][0] = 0;
_root.mapArray[9][4][0] = 0;
_root.mapArray[9][5][0] = 0;
_root.mapArray[9][6][0] = 0;
_root.mapArray[9][7][0] = 0;
_root.mapArray[9][8][0] = 0;
_root.mapArray[9][9][0] = 0;
_root.mapArray[9][10][0] = 0;
_root.mapArray[9][11][0] = 0;
_root.mapArray[9][12][0] = 0;
_root.mapArray[9][13][0] = 0;
_root.mapArray[9][14][0] = 0;
_root.mapArray[9][15][0] = 0;
_root.mapArray[9][16][0] = 0;
_root.mapArray[9][17][0] = 0;
_root.mapArray[9][18][0] = 0;
_root.mapArray[9][19][0] = 0;
_root.mapArray[9][20][0] = 0;
_root.mapArray[9][21][0] = 0;
_root.mapArray[9][22][0] = 4;
_root.mapArray[9][23][0] = 0;
_root.mapArray[9][24][0] = 0;
_root.mapArray[9][25][0] = 0;
_root.mapArray[9][26][0] = 4;
_root.mapArray[10][0][0] = 4;
_root.mapArray[10][1][0] = 0;
_root.mapArray[10][2][0] = 0;
_root.mapArray[10][3][0] = 0;
_root.mapArray[10][4][0] = 0;
_root.mapArray[10][5][0] = 0;
_root.mapArray[10][6][0] = 0;
_root.mapArray[10][7][0] = 0;
_root.mapArray[10][8][0] = 0;
_root.mapArray[10][9][0] = 0;
_root.mapArray[10][10][0] = 0;
_root.mapArray[10][11][0] = 0;
_root.mapArray[10][12][0] = 0;
_root.mapArray[10][13][0] = 0;
_root.mapArray[10][14][0] = 0;
_root.mapArray[10][15][0] = 0;
_root.mapArray[10][16][0] = 4;
_root.mapArray[10][17][0] = 0;
_root.mapArray[10][18][0] = 0;
_root.mapArray[10][19][0] = 0;
_root.mapArray[10][20][0] = 0;
_root.mapArray[10][21][0] = 0;
_root.mapArray[10][22][0] = 0;
_root.mapArray[10][23][0] = 0;
_root.mapArray[10][24][0] = 0;
_root.mapArray[10][25][0] = 4;
_root.mapArray[10][26][0] = 4;
_root.mapArray[11][0][0] = 4;
_root.mapArray[11][1][0] = 0;
_root.mapArray[11][2][0] = 0;
_root.mapArray[11][3][0] = 0;
_root.mapArray[11][4][0] = 4;
_root.mapArray[11][5][0] = 0;
_root.mapArray[11][6][0] = 0;
_root.mapArray[11][7][0] = 0;
_root.mapArray[11][8][0] = 0;
_root.mapArray[11][9][0] = 0;
_root.mapArray[11][10][0] = 0;
_root.mapArray[11][11][0] = 4;
_root.mapArray[11][12][0] = 0;
_root.mapArray[11][13][0] = 0;
_root.mapArray[11][14][0] = 0;
_root.mapArray[11][15][0] = 0;
_root.mapArray[11][16][0] = 0;
_root.mapArray[11][17][0] = 0;
_root.mapArray[11][18][0] = 0;
_root.mapArray[11][19][0] = 4;
_root.mapArray[11][20][0] = 0;
_root.mapArray[11][21][0] = 0;
_root.mapArray[11][22][0] = 4;
_root.mapArray[11][23][0] = 4;
_root.mapArray[11][24][0] = 0;
_root.mapArray[11][25][0] = 4;
_root.mapArray[11][26][0] = 4;
_root.mapArray[12][0][0] = 4;
_root.mapArray[12][1][0] = 0;
_root.mapArray[12][2][0] = 0;
_root.mapArray[12][3][0] = 0;
_root.mapArray[12][4][0] = 0;
_root.mapArray[12][5][0] = 0;
_root.mapArray[12][6][0] = 0;
_root.mapArray[12][7][0] = 0;
_root.mapArray[12][8][0] = 0;
_root.mapArray[12][9][0] = 0;
_root.mapArray[12][10][0] = 0;
_root.mapArray[12][11][0] = 0;
_root.mapArray[12][12][0] = 0;
_root.mapArray[12][13][0] = 0;
_root.mapArray[12][14][0] = 0;
_root.mapArray[12][15][0] = 4;
_root.mapArray[12][16][0] = 0;
_root.mapArray[12][17][0] = 0;
_root.mapArray[12][18][0] = 0;
_root.mapArray[12][19][0] = 0;
_root.mapArray[12][20][0] = 0;
_root.mapArray[12][21][0] = 0;
_root.mapArray[12][22][0] = 4;
_root.mapArray[12][23][0] = 4;
_root.mapArray[12][24][0] = 0;
_root.mapArray[12][25][0] = 0;
_root.mapArray[12][26][0] = 4;
_root.mapArray[13][0][0] = 4;
_root.mapArray[13][1][0] = 0;
_root.mapArray[13][2][0] = 0;
_root.mapArray[13][3][0] = 0;
_root.mapArray[13][4][0] = 0;
_root.mapArray[13][5][0] = 0;
_root.mapArray[13][6][0] = 0;
_root.mapArray[13][7][0] = 4;
_root.mapArray[13][8][0] = 4;
_root.mapArray[13][9][0] = 0;
_root.mapArray[13][10][0] = 4;
_root.mapArray[13][11][0] = 0;
_root.mapArray[13][12][0] = 0;
_root.mapArray[13][13][0] = 4;
_root.mapArray[13][14][0] = 4;
_root.mapArray[13][15][0] = 4;
_root.mapArray[13][16][0] = 4;
_root.mapArray[13][17][0] = 0;
_root.mapArray[13][18][0] = 4;
_root.mapArray[13][19][0] = 0;
_root.mapArray[13][20][0] = 4;
_root.mapArray[13][21][0] = 4;
_root.mapArray[13][22][0] = 0;
_root.mapArray[13][23][0] = 0;
_root.mapArray[13][24][0] = 0;
_root.mapArray[13][25][0] = 0;
_root.mapArray[13][26][0] = 4;
_root.mapArray[14][0][0] = 4;
_root.mapArray[14][1][0] = 4;
_root.mapArray[14][2][0] = 0;
_root.mapArray[14][3][0] = 0;
_root.mapArray[14][4][0] = 0;
_root.mapArray[14][5][0] = 0;
_root.mapArray[14][6][0] = 4;
_root.mapArray[14][7][0] = 4;
_root.mapArray[14][8][0] = 4;
_root.mapArray[14][9][0] = 0;
_root.mapArray[14][10][0] = 0;
_root.mapArray[14][11][0] = 0;
_root.mapArray[14][12][0] = 0;
_root.mapArray[14][13][0] = 0;
_root.mapArray[14][14][0] = 0;
_root.mapArray[14][15][0] = 0;
_root.mapArray[14][16][0] = 0;
_root.mapArray[14][17][0] = 4;
_root.mapArray[14][18][0] = 0;
_root.mapArray[14][19][0] = 0;
_root.mapArray[14][20][0] = 0;
_root.mapArray[14][21][0] = 4;
_root.mapArray[14][22][0] = 4;
_root.mapArray[14][23][0] = 0;
_root.mapArray[14][24][0] = 4;
_root.mapArray[14][25][0] = 0;
_root.mapArray[14][26][0] = 4;
_root.mapArray[15][0][0] = 4;
_root.mapArray[15][1][0] = 4;
_root.mapArray[15][2][0] = 4;
_root.mapArray[15][3][0] = 4;
_root.mapArray[15][4][0] = 4;
_root.mapArray[15][5][0] = 4;
_root.mapArray[15][6][0] = 4;
_root.mapArray[15][7][0] = 4;
_root.mapArray[15][8][0] = 4;
_root.mapArray[15][9][0] = 4;
_root.mapArray[15][10][0] = 4;
_root.mapArray[15][11][0] = 4;
_root.mapArray[15][12][0] = 4;
_root.mapArray[15][13][0] = 4;
_root.mapArray[15][14][0] = 4;
_root.mapArray[15][15][0] = 4;
_root.mapArray[15][16][0] = 4;
_root.mapArray[15][17][0] = 4;
_root.mapArray[15][18][0] = 4;
_root.mapArray[15][19][0] = 4;
_root.mapArray[15][20][0] = 4;
_root.mapArray[15][21][0] = 4;
_root.mapArray[15][22][0] = 4;
_root.mapArray[15][23][0] = 4;
_root.mapArray[15][24][0] = 4;
_root.mapArray[15][25][0] = 4;
_root.mapArray[15][26][0] = 4;
_root.placeMarineSquares = [[3, 18], [3, 19], [3, 20], [3, 21], [3, 22], [3, 24], [4, 18], [4, 19], [4, 20], [4, 21], [4, 22], [4, 23], [4, 24], [5, 18], [5, 19], [5, 20], [5, 21], [5, 22], [5, 23], [5, 24], [6, 18], [6, 19], [6, 20], [6, 22], [6, 23], [6, 24], [7, 18], [7, 19], [7, 20], [7, 21], [7, 22], [7, 23], [7, 24], [8, 18], [8, 19], [8, 20], [8, 21], [8, 22], [8, 23], [8, 24], [9, 18], [9, 19], [9, 20], [9, 21], [9, 23], [9, 24], [10, 18], [10, 19], [10, 20], [10, 21], [10, 22], [10, 23], [10, 24], [11, 18], [11, 20], [11, 21], [11, 24], [12, 18], [12, 19], [12, 20], [12, 21], [12, 24]];
_root.marineOrder = [];
n = 0;
while (n < 16) {
m = 0;
while (m < 27) {
_root.mapArray[n][m][1] = null;
_root.mapArray[n][m][2] = null;
_root.mapArray[n][m][3] = [];
_root.mapArray[n][m][4] = [];
p = 0;
while (p < _root.marineData.length) {
_root.mapArray[n][m][3][p] = false;
p++;
}
_root.mapArray[n][m][5] = [0, 0];
m++;
}
n++;
}
_root.aliensArray = [];
_root.targetRange = [];
n = 0;
while (n < 40) {
_root.targetRange[n] = [];
n++;
}
_root.frameData = "";
_root.currentLoop = "";
_root.currentRange = 0;
_root.currentMarineActions = 0;
_root.marineButtonsArray = [];
_root.marineButtonsArrayShooting = [];
_root.marineIncButtonsArray = [];
_root.alienSelect = "";
_root.marineSelect = "";
_root.alienActions = "";
_root.userInputExpected = false;
_root.goalX = "";
_root.goalY = "";
_root.killAlien = null;
_root.currentTurn = 0;
_root.turnArray = [[[0, 4]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]], [[0, 2]]];
_root.randAlienStart0 = [[1, 1], [1, 2], [1, 4], [1, 6], [1, 9], [1, 15], [1, 16], [1, 17], [1, 19], [1, 24], [3, 1], [3, 3], [3, 6], [3, 10], [3, 12], [3, 15], [3, 17], [3, 20], [3, 22], [3, 24], [4, 1], [4, 3], [4, 6], [4, 8], [4, 11], [4, 13], [4, 16], [4, 19], [4, 21], [4, 23], [6, 1], [6, 7], [6, 8], [6, 9], [6, 10], [6, 18], [6, 20], [6, 22], [6, 25], [8, 1], [8, 3], [8, 5], [8, 8], [8, 10], [8, 18], [8, 20], [8, 22], [8, 23], [8, 24], [10, 1], [10, 3], [10, 5], [10, 6], [10, 10], [10, 12], [10, 15], [10, 17], [10, 19], [10, 22], [11, 1], [11, 3], [11, 5], [11, 8], [11, 10], [11, 12], [11, 16], [11, 18], [11, 20], [11, 24], [12, 1], [12, 4], [12, 5], [12, 8], [12, 11], [12, 14], [12, 16], [12, 18], [12, 19], [12, 21], [14, 2], [14, 5], [14, 9], [14, 10], [14, 11], [14, 13], [14, 16], [14, 18], [14, 20], [14, 23]];
_root.marineOrderCurrentPosition = "";
_root.tempAlienNum = [];
_root.vasquezShoot = 0;
_root.otherMarineXY = false;
_root.alienPreviousMovement = [];
Instance of Symbol 704 MovieClip "map" in Symbol 705 MovieClip [reactorMap] Frame 1
/* no clip actions */
Symbol 718 MovieClip Frame 1
_root.mapName = "operations";
_root.actionarea._xscale = 130;
_root.actionarea._yscale = 130;
_root.actionarea._x = 220;
_root.actionarea._y = 180;
_root.thisMapWeapon = 4;
_root.marineData[0][12] = _root.thisMapWeapon;
_root.marineData[1][12] = _root.thisMapWeapon;
_root.marineData[2][12] = _root.thisMapWeapon;
_root.marineData[3][12] = _root.thisMapWeapon;
_root.marineData[4][12] = _root.thisMapWeapon;
_root.marineData[5][12] = _root.thisMapWeapon;
_root.marineData[6][12] = _root.thisMapWeapon;
_root.marineData[7][12] = _root.thisMapWeapon;
_root.marineData[8][12] = _root.thisMapWeapon;
_root.marineData[9][12] = _root.thisMapWeapon;
_root.marineData[10][12] = _root.thisMapWeapon;
_root.marineData[11][12] = _root.thisMapWeapon;
_root.marineData[12][12] = _root.thisMapWeapon;
_root.tileSize = 40;
_root.mapArray = [];
n = 0;
while (n < 23) {
_root.mapArray[n] = [];
m = 0;
while (m < 39) {
_root.mapArray[n][m] = [];
m++;
}
n++;
}
_root.mapArray[0][0][0] = 4;
_root.mapArray[0][1][0] = 4;
_root.mapArray[0][2][0] = 4;
_root.mapArray[0][3][0] = 4;
_root.mapArray[0][4][0] = 4;
_root.mapArray[0][5][0] = 4;
_root.mapArray[0][6][0] = 4;
_root.mapArray[0][7][0] = 4;
_root.mapArray[0][8][0] = 4;
_root.mapArray[0][9][0] = 4;
_root.mapArray[0][10][0] = 4;
_root.mapArray[0][11][0] = 4;
_root.mapArray[1][0][0] = 4;
_root.mapArray[1][1][0] = 0;
_root.mapArray[1][2][0] = 0;
_root.mapArray[1][3][0] = 1;
_root.mapArray[1][4][0] = 0;
_root.mapArray[1][5][0] = 0;
_root.mapArray[1][6][0] = 0;
_root.mapArray[1][7][0] = 0;
_root.mapArray[1][8][0] = 0;
_root.mapArray[1][9][0] = 0;
_root.mapArray[1][10][0] = 0;
_root.mapArray[1][11][0] = 4;
_root.mapArray[2][0][0] = 4;
_root.mapArray[2][1][0] = 0;
_root.mapArray[2][2][0] = 0;
_root.mapArray[2][3][0] = 0;
_root.mapArray[2][4][0] = 4;
_root.mapArray[2][5][0] = 0;
_root.mapArray[2][6][0] = 0;
_root.mapArray[2][7][0] = 0;
_root.mapArray[2][8][0] = 0;
_root.mapArray[2][9][0] = 4;
_root.mapArray[2][10][0] = 0;
_root.mapArray[2][11][0] = 4;
_root.mapArray[3][0][0] = 4;
_root.mapArray[3][1][0] = 0;
_root.mapArray[3][2][0] = 0;
_root.mapArray[3][3][0] = 0;
_root.mapArray[3][4][0] = 0;
_root.mapArray[3][5][0] = 0;
_root.mapArray[3][6][0] = 0;
_root.mapArray[3][7][0] = 1;
_root.mapArray[3][8][0] = 0;
_root.mapArray[3][9][0] = 0;
_root.mapArray[3][10][0] = 0;
_root.mapArray[3][11][0] = 4;
_root.mapArray[4][0][0] = 4;
_root.mapArray[4][1][0] = 4;
_root.mapArray[4][2][0] = 1;
_root.mapArray[4][3][0] = 1;
_root.mapArray[4][4][0] = 1;
_root.mapArray[4][5][0] = 1;
_root.mapArray[4][6][0] = 0;
_root.mapArray[4][7][0] = 1;
_root.mapArray[4][8][0] = 0;
_root.mapArray[4][9][0] = 0;
_root.mapArray[4][10][0] = 0;
_root.mapArray[4][11][0] = 4;
_root.mapArray[5][0][0] = 4;
_root.mapArray[5][1][0] = 0;
_root.mapArray[5][2][0] = 0;
_root.mapArray[5][3][0] = 1;
_root.mapArray[5][4][0] = 1;
_root.mapArray[5][5][0] = 0;
_root.mapArray[5][6][0] = 0;
_root.mapArray[5][7][0] = 1;
_root.mapArray[5][8][0] = 1;
_root.mapArray[5][9][0] = 0;
_root.mapArray[5][10][0] = 0;
_root.mapArray[5][11][0] = 4;
_root.mapArray[6][0][0] = 4;
_root.mapArray[6][1][0] = 0;
_root.mapArray[6][2][0] = 0;
_root.mapArray[6][3][0] = 1;
_root.mapArray[6][4][0] = 0;
_root.mapArray[6][5][0] = 0;
_root.mapArray[6][6][0] = 0;
_root.mapArray[6][7][0] = 0;
_root.mapArray[6][8][0] = 0;
_root.mapArray[6][9][0] = 0;
_root.mapArray[6][10][0] = 0;
_root.mapArray[6][11][0] = 4;
_root.mapArray[7][0][0] = 4;
_root.mapArray[7][1][0] = 4;
_root.mapArray[7][2][0] = 0;
_root.mapArray[7][3][0] = 1;
_root.mapArray[7][4][0] = 0;
_root.mapArray[7][5][0] = 0;
_root.mapArray[7][6][0] = 0;
_root.mapArray[7][7][0] = 0;
_root.mapArray[7][8][0] = 0;
_root.mapArray[7][9][0] = 0;
_root.mapArray[7][10][0] = 0;
_root.mapArray[7][11][0] = 4;
_root.mapArray[8][0][0] = 4;
_root.mapArray[8][1][0] = 4;
_root.mapArray[8][2][0] = 0;
_root.mapArray[8][3][0] = 1;
_root.mapArray[8][4][0] = 0;
_root.mapArray[8][5][0] = 0;
_root.mapArray[8][6][0] = 0;
_root.mapArray[8][7][0] = 0;
_root.mapArray[8][8][0] = 0;
_root.mapArray[8][9][0] = 0;
_root.mapArray[8][10][0] = 4;
_root.mapArray[8][11][0] = 4;
_root.mapArray[9][0][0] = 4;
_root.mapArray[9][1][0] = 4;
_root.mapArray[9][2][0] = 0;
_root.mapArray[9][3][0] = 0;
_root.mapArray[9][4][0] = 0;
_root.mapArray[9][5][0] = 4;
_root.mapArray[9][6][0] = 0;
_root.mapArray[9][7][0] = 0;
_root.mapArray[9][8][0] = 4;
_root.mapArray[9][9][0] = 2;
_root.mapArray[9][10][0] = 2;
_root.mapArray[9][11][0] = 4;
_root.mapArray[10][0][0] = 4;
_root.mapArray[10][1][0] = 4;
_root.mapArray[10][2][0] = 0;
_root.mapArray[10][3][0] = 4;
_root.mapArray[10][4][0] = 0;
_root.mapArray[10][5][0] = 0;
_root.mapArray[10][6][0] = 4;
_root.mapArray[10][7][0] = 4;
_root.mapArray[10][8][0] = 4;
_root.mapArray[10][9][0] = 0;
_root.mapArray[10][10][0] = 0;
_root.mapArray[10][11][0] = 4;
_root.mapArray[11][0][0] = 4;
_root.mapArray[11][1][0] = 4;
_root.mapArray[11][2][0] = 4;
_root.mapArray[11][3][0] = 4;
_root.mapArray[11][4][0] = 4;
_root.mapArray[11][5][0] = 4;
_root.mapArray[11][6][0] = 4;
_root.mapArray[11][7][0] = 4;
_root.mapArray[11][8][0] = 4;
_root.mapArray[11][9][0] = 0;
_root.mapArray[11][10][0] = 0;
_root.mapArray[11][11][0] = 4;
_root.mapArray[12][8][0] = 4;
_root.mapArray[12][9][0] = 0;
_root.mapArray[12][10][0] = 0;
_root.mapArray[12][11][0] = 4;
_root.mapArray[12][12][0] = 4;
_root.mapArray[12][13][0] = 4;
_root.mapArray[12][14][0] = 4;
_root.mapArray[12][15][0] = 4;
_root.mapArray[12][16][0] = 4;
_root.mapArray[12][17][0] = 4;
_root.mapArray[12][18][0] = 4;
_root.mapArray[12][19][0] = 4;
_root.mapArray[12][20][0] = 4;
_root.mapArray[13][6][0] = 4;
_root.mapArray[13][7][0] = 4;
_root.mapArray[13][8][0] = 4;
_root.mapArray[13][9][0] = 0;
_root.mapArray[13][10][0] = 0;
_root.mapArray[13][11][0] = 4;
_root.mapArray[13][12][0] = 4;
_root.mapArray[13][13][0] = 0;
_root.mapArray[13][14][0] = 0;
_root.mapArray[13][15][0] = 0;
_root.mapArray[13][16][0] = 0;
_root.mapArray[13][17][0] = 0;
_root.mapArray[13][18][0] = 0;
_root.mapArray[13][19][0] = 0;
_root.mapArray[13][20][0] = 4;
_root.mapArray[13][21][0] = 4;
_root.mapArray[14][6][0] = 4;
_root.mapArray[14][7][0] = 0;
_root.mapArray[14][8][0] = 0;
_root.mapArray[14][9][0] = 0;
_root.mapArray[14][10][0] = 0;
_root.mapArray[14][11][0] = 4;
_root.mapArray[14][12][0] = 4;
_root.mapArray[14][13][0] = 0;
_root.mapArray[14][14][0] = 4;
_root.mapArray[14][15][0] = 0;
_root.mapArray[14][16][0] = 4;
_root.mapArray[14][17][0] = 4;
_root.mapArray[14][18][0] = 4;
_root.mapArray[14][19][0] = 0;
_root.mapArray[14][20][0] = 0;
_root.mapArray[14][21][0] = 4;
_root.mapArray[14][22][0] = 4;
_root.mapArray[14][23][0] = 4;
_root.mapArray[14][24][0] = 4;
_root.mapArray[14][25][0] = 4;
_root.mapArray[14][26][0] = 4;
_root.mapArray[14][27][0] = 4;
_root.mapArray[14][28][0] = 4;
_root.mapArray[14][32][0] = 4;
_root.mapArray[14][33][0] = 4;
_root.mapArray[14][34][0] = 4;
_root.mapArray[14][35][0] = 4;
_root.mapArray[14][36][0] = 4;
_root.mapArray[14][37][0] = 4;
_root.mapArray[14][38][0] = 4;
_root.mapArray[15][6][0] = 4;
_root.mapArray[15][7][0] = 0;
_root.mapArray[15][8][0] = 0;
_root.mapArray[15][9][0] = 0;
_root.mapArray[15][10][0] = 0;
_root.mapArray[15][11][0] = 2;
_root.mapArray[15][12][0] = 0;
_root.mapArray[15][13][0] = 0;
_root.mapArray[15][14][0] = 0;
_root.mapArray[15][15][0] = 0;
_root.mapArray[15][16][0] = 4;
_root.mapArray[15][17][0] = 0;
_root.mapArray[15][18][0] = 0;
_root.mapArray[15][19][0] = 4;
_root.mapArray[15][20][0] = 0;
_root.mapArray[15][21][0] = 4;
_root.mapArray[15][22][0] = 0;
_root.mapArray[15][23][0] = 4;
_root.mapArray[15][24][0] = 4;
_root.mapArray[15][25][0] = 4;
_root.mapArray[15][26][0] = 4;
_root.mapArray[15][27][0] = 0;
_root.mapArray[15][28][0] = 4;
_root.mapArray[15][29][0] = 4;
_root.mapArray[15][30][0] = 4;
_root.mapArray[15][31][0] = 4;
_root.mapArray[15][32][0] = 4;
_root.mapArray[15][33][0] = 0;
_root.mapArray[15][34][0] = 0;
_root.mapArray[15][35][0] = 0;
_root.mapArray[15][36][0] = 0;
_root.mapArray[15][37][0] = 0;
_root.mapArray[15][38][0] = 4;
_root.mapArray[16][6][0] = 4;
_root.mapArray[16][7][0] = 4;
_root.mapArray[16][8][0] = 0;
_root.mapArray[16][9][0] = 0;
_root.mapArray[16][10][0] = 0;
_root.mapArray[16][11][0] = 4;
_root.mapArray[16][12][0] = 4;
_root.mapArray[16][13][0] = 4;
_root.mapArray[16][14][0] = 4;
_root.mapArray[16][15][0] = 4;
_root.mapArray[16][16][0] = 4;
_root.mapArray[16][17][0] = 0;
_root.mapArray[16][18][0] = 4;
_root.mapArray[16][19][0] = 0;
_root.mapArray[16][20][0] = 0;
_root.mapArray[16][21][0] = 4;
_root.mapArray[16][22][0] = 0;
_root.mapArray[16][23][0] = 0;
_root.mapArray[16][24][0] = 0;
_root.mapArray[16][25][0] = 0;
_root.mapArray[16][26][0] = 0;
_root.mapArray[16][27][0] = 4;
_root.mapArray[16][28][0] = 4;
_root.mapArray[16][29][0] = 4;
_root.mapArray[16][30][0] = 0;
_root.mapArray[16][31][0] = 0;
_root.mapArray[16][32][0] = 0;
_root.mapArray[16][33][0] = 0;
_root.mapArray[16][34][0] = 4;
_root.mapArray[16][35][0] = 4;
_root.mapArray[16][36][0] = 4;
_root.mapArray[16][37][0] = 0;
_root.mapArray[16][38][0] = 4;
_root.mapArray[17][7][0] = 4;
_root.mapArray[17][8][0] = 0;
_root.mapArray[17][9][0] = 0;
_root.mapArray[17][10][0] = 0;
_root.mapArray[17][11][0] = 4;
_root.mapArray[17][16][0] = 4;
_root.mapArray[17][17][0] = 4;
_root.mapArray[17][18][0] = 4;
_root.mapArray[17][19][0] = 0;
_root.mapArray[17][20][0] = 4;
_root.mapArray[17][21][0] = 4;
_root.mapArray[17][22][0] = 0;
_root.mapArray[17][23][0] = 4;
_root.mapArray[17][24][0] = 0;
_root.mapArray[17][25][0] = 4;
_root.mapArray[17][26][0] = 0;
_root.mapArray[17][27][0] = 4;
_root.mapArray[17][28][0] = 4;
_root.mapArray[17][29][0] = 4;
_root.mapArray[17][30][0] = 0;
_root.mapArray[17][31][0] = 4;
_root.mapArray[17][32][0] = 4;
_root.mapArray[17][33][0] = 4;
_root.mapArray[17][34][0] = 4;
_root.mapArray[17][35][0] = 0;
_root.mapArray[17][36][0] = 0;
_root.mapArray[17][37][0] = 0;
_root.mapArray[17][38][0] = 4;
_root.mapArray[18][7][0] = 4;
_root.mapArray[18][8][0] = 4;
_root.mapArray[18][9][0] = 4;
_root.mapArray[18][10][0] = 4;
_root.mapArray[18][11][0] = 4;
_root.mapArray[18][18][0] = 4;
_root.mapArray[18][19][0] = 0;
_root.mapArray[18][20][0] = 0;
_root.mapArray[18][21][0] = 0;
_root.mapArray[18][22][0] = 0;
_root.mapArray[18][23][0] = 4;
_root.mapArray[18][24][0] = 0;
_root.mapArray[18][25][0] = 4;
_root.mapArray[18][26][0] = 0;
_root.mapArray[18][27][0] = 4;
_root.mapArray[18][28][0] = 4;
_root.mapArray[18][29][0] = 4;
_root.mapArray[18][30][0] = 0;
_root.mapArray[18][31][0] = 4;
_root.mapArray[18][32][0] = 4;
_root.mapArray[18][33][0] = 4;
_root.mapArray[18][34][0] = 4;
_root.mapArray[18][35][0] = 0;
_root.mapArray[18][36][0] = 4;
_root.mapArray[18][37][0] = 4;
_root.mapArray[18][38][0] = 4;
_root.mapArray[19][18][0] = 4;
_root.mapArray[19][19][0] = 4;
_root.mapArray[19][20][0] = 4;
_root.mapArray[19][21][0] = 4;
_root.mapArray[19][22][0] = 0;
_root.mapArray[19][23][0] = 4;
_root.mapArray[19][24][0] = 4;
_root.mapArray[19][25][0] = 4;
_root.mapArray[19][26][0] = 0;
_root.mapArray[19][27][0] = 0;
_root.mapArray[19][28][0] = 4;
_root.mapArray[19][29][0] = 0;
_root.mapArray[19][30][0] = 0;
_root.mapArray[19][31][0] = 0;
_root.mapArray[19][32][0] = 4;
_root.mapArray[19][33][0] = 0;
_root.mapArray[19][34][0] = 4;
_root.mapArray[19][35][0] = 0;
_root.mapArray[19][36][0] = 0;
_root.mapArray[19][37][0] = 0;
_root.mapArray[19][38][0] = 0;
_root.mapArray[20][21][0] = 4;
_root.mapArray[20][22][0] = 0;
_root.mapArray[20][23][0] = 0;
_root.mapArray[20][24][0] = 4;
_root.mapArray[20][25][0] = 4;
_root.mapArray[20][26][0] = 4;
_root.mapArray[20][27][0] = 0;
_root.mapArray[20][28][0] = 0;
_root.mapArray[20][29][0] = 0;
_root.mapArray[20][30][0] = 4;
_root.mapArray[20][31][0] = 0;
_root.mapArray[20][32][0] = 0;
_root.mapArray[20][33][0] = 0;
_root.mapArray[20][34][0] = 4;
_root.mapArray[20][35][0] = 4;
_root.mapArray[20][36][0] = 4;
_root.mapArray[20][37][0] = 4;
_root.mapArray[20][38][0] = 4;
_root.mapArray[21][21][0] = 4;
_root.mapArray[21][22][0] = 4;
_root.mapArray[21][23][0] = 4;
_root.mapArray[21][24][0] = 4;
_root.mapArray[21][25][0] = 4;
_root.mapArray[21][26][0] = 4;
_root.mapArray[21][27][0] = 4;
_root.mapArray[21][28][0] = 4;
_root.mapArray[21][29][0] = 4;
_root.mapArray[21][30][0] = 4;
_root.mapArray[21][31][0] = 4;
_root.mapArray[21][32][0] = 4;
_root.mapArray[21][33][0] = 4;
_root.mapArray[21][34][0] = 4;
_root.placeMarineSquares = [[5, 5], [5, 6], [5, 9], [5, 10], [6, 4], [6, 5], [6, 6], [6, 7], [6, 8], [6, 9], [6, 10], [7, 4], [7, 5], [7, 6], [7, 7], [7, 8], [7, 9], [7, 10], [8, 4], [8, 5], [8, 6], [8, 7], [9, 4], [9, 6], [10, 4], [10, 5]];
_root.burkeMoveArray = [];
_root.burkeMoveArray = [[8, 8], [9, 9], [10, 9], [11, 9], [12, 9], [13, 9], [14, 9], [14, 9], [14, 8], [14, 9], [14, 8], [14, 9], [14, 8], [14, 9], [14, 8], [14, 9], [14, 8], [14, 9], [14, 8], [14, 9], [14, 8], [14, 7]];
_root.burkeMove = 0;
_root.burkeDoor1 = 0;
_root.newtDoor1 = 0;
_root.alienDoor1 = 0;
_root.burkeDoor2 = 0;
_root.ripleyNewtCheck = 0;
_root.marineOrder = [];
n = 0;
while (n < 23) {
m = 0;
while (m < 39) {
_root.mapArray[n][m][1] = null;
_root.mapArray[n][m][3] = [];
p = 0;
while (p < _root.marineData.length) {
_root.mapArray[n][m][3][p] = false;
p++;
}
_root.mapArray[n][m][4] = [];
_root.mapArray[n][m][5] = [0, 0];
m++;
}
n++;
}
_root.aliensArray = [];
_root.targetRange = [];
n = 0;
while (n < 40) {
_root.targetRange[n] = [];
n++;
}
_root.frameData = "";
_root.currentLoop = "";
_root.currentRange = 0;
_root.currentMarineActions = 0;
_root.marineButtonsArray = [];
_root.marineButtonsArrayShooting = [];
_root.marineIncButtonsArray = [];
_root.alienSelect = "";
_root.marineSelect = "";
_root.alienActions = "";
_root.userInputExpected = false;
_root.goalX = "";
_root.goalY = "";
_root.killAlien = null;
_root.currentTurn = 0;
if (_root.JasonRulez != true) {
_root.turnArray = [[[0, 5]], [[0, 4]], [[0, 2]], [[1, 5]], [[1, 4]], [[1, 2]], [[0, 1], [1, 2]], [[1, 1], [2, 1]], [[0, 1], [1, 1]], [[0, 1], [1, 1]], [[0, 1]], [[1, 1]], [[0, 2]], [[0, 3], [1, 1]], [[0, 2], [1, 3], [2, 2]], [[0, 2], [1, 3], [2, 3]], [[0, 1], [1, 2], [2, 1]], [[1, 1], [2, 1]], [[0, 1]], [], [], [], [[3, 1]], [], [], [], [[4, 1]], [], [], [[5, 1]], [[0, 3], [1, 3], [2, 2]], [[0, 2], [1, 2], [2, 2]], [[0, 1], [2, 1]], [[6, 1]]];
} else {
_root.turnArray = [[[0, 5]], [[0, 4]], [[0, 2]], [[1, 5]], [[1, 4]], [[1, 2]], [[0, 1], [1, 2]], [[1, 1], [2, 1]], [[0, 1], [1, 1]], [[0, 1], [1, 1]], [[0, 1]], [[1, 1]], [[0, 2]], [[0, 3], [1, 1]], [[0, 2], [1, 3], [2, 2]], [[0, 2], [1, 3], [2, 3]], [[0, 1], [1, 2], [2, 1]], [[1, 1], [2, 1]], [[0, 1]], [], [], [], [], [], [], [], [], [], [], [], [[0, 3], [1, 3], [2, 2]], [[0, 2], [1, 2], [2, 2]], [[0, 1], [2, 1]], []];
}
_root.randAlienStart0 = [[1, 1], [2, 2], [3, 3]];
_root.randAlienStart1 = [[1, 5], [1, 7], [1, 10]];
_root.randAlienStart2 = [[7, 4], [6, 5], [8, 5], [10, 5], [7, 6], [6, 7], [9, 7], [7, 8], [7, 10]];
_root.randAlienStart3 = [[15, 13], [13, 13], [13, 16]];
_root.randAlienStart4 = [[13, 19], [16, 17], [15, 18]];
_root.randAlienStart5 = [[20, 23], [15, 22], [18, 24], [15, 27]];
_root.randAlienStart6 = [[18, 32], [19, 33], [16, 30], [16, 33]];
_root.marineOrderCurrentPosition = "";
_root.tempAlienNum = [];
_root.actionarea.attachMovie("doorFrame", "door1", 5);
_root.actionarea.door1._x = 360;
_root.actionarea.door1._y = 560;
_root.door1CutTime = 0;
_root.actionarea.attachMovie("doorFrame", "door2", 10);
_root.actionarea.door2._x = 324;
_root.actionarea.door2._y = 640;
_root.actionarea.door2._rotation = -90;
_root.actionarea.door1.gotoAndPlay("opened");
_root.actionarea.door2.gotoAndPlay("opened");
_root.actionarea.mainMap.opMap.ducts._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare1._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare2._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare3._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare4._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare5._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare6._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare7._visible = false;
_root.actionarea.mainMap.opMap.newtDescitionSquare8._visible = false;
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 2
stop();
Symbol 734 MovieClip Frame 3
stop();
Symbol 734 MovieClip Frame 28
gotoAndPlay ("step0");
Symbol 744 MovieClip [doorFrame] Frame 2
door = new Sound(this);
door.attachSound("door");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 744 MovieClip [doorFrame] Frame 19
stop();
Symbol 744 MovieClip [doorFrame] Frame 21
door = new Sound(this);
door.attachSound("door");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 744 MovieClip [doorFrame] Frame 39
stop();
Symbol 744 MovieClip [doorFrame] Frame 40
gotoAndStop ("closed");
Symbol 744 MovieClip [doorFrame] Frame 41
_root.userInputExpected = true;
if (_root.snap != 1) {
_root.snap = 1;
_root.OPtempActionX = _root.actionarea._x;
_root.OPtempActionY = _root.actionarea._y;
_root.OPtempActionXscale = _root.actionarea._xscale;
_root.OPtempActionYscale = _root.actionarea._yscale;
_root.actionarea._xscale = 200;
_root.actionarea._yscale = 200;
_root.actionarea._x = 512 - (380 * (_root.actionarea._xscale / 100));
_root.actionarea._y = 393 - (560 * (_root.actionarea._yscale / 100));
}
door = new Sound(this);
door.attachSound("doorbash");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 744 MovieClip [doorFrame] Frame 79
_root.actionarea._x = _root.OPtempActionX;
_root.actionarea._y = _root.OPtempActionY;
_root.actionarea._xscale = _root.OPtempActionXscale;
_root.actionarea._yscale = _root.OPtempActionYscale;
_root.userInputExpected = false;
_root.gotoAndPlay("beforeProcessRangeArray");
_root.snap = 0;
trace("HUnh?");
Symbol 744 MovieClip [doorFrame] Frame 80
gotoAndStop ("closed");
Symbol 744 MovieClip [doorFrame] Frame 81
door = new Sound(this);
door.attachSound("doorbash");
door.start(0, 1);
door.setVolume(_root.SFvolume);
_root.userInputExpected = true;
if (_root.snap != 1) {
_root.snap = 1;
_root.OPtempActionX = _root.actionarea._x;
_root.OPtempActionY = _root.actionarea._y;
_root.OPtempActionXscale = _root.actionarea._xscale;
_root.OPtempActionYscale = _root.actionarea._yscale;
_root.actionarea._xscale = 200;
_root.actionarea._yscale = 200;
_root.actionarea._x = 512 - (380 * (_root.actionarea._xscale / 100));
_root.actionarea._y = 393 - (560 * (_root.actionarea._yscale / 100));
}
door = new Sound(this);
door.attachSound("doorbash");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 744 MovieClip [doorFrame] Frame 92
_root.actionarea._x = _root.OPtempActionX;
_root.actionarea._y = _root.OPtempActionY;
_root.actionarea._xscale = _root.OPtempActionXscale;
_root.actionarea._yscale = _root.OPtempActionYscale;
_root.userInputExpected = false;
_root.gotoAndPlay("beforeProcessRangeArray");
_root.snap = 0;
stop();
Symbol 746 Button
on (release) {
trace(this.squareY);
_root.placeMarine(this.squareY, this.squareX, this.clipName);
}
Symbol 756 Button
on (release) {
_root.marineData[11][12] = 13;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[11][0]].weaponMonitor.gotoAndPlay(_root.marineData[11][_root.marineData[11][12]][2]);
_root.gotoAndPlay("makeButtons");
}
Symbol 762 Button
on (release) {
_root.marineData[11][12] = 3;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[11][0]].weaponMonitor.gotoAndPlay(_root.marineData[11][_root.marineData[11][12]][2]);
_root.gotoAndPlay("makeButtons");
}
Symbol 763 MovieClip [weaponSwitchClip] Frame 1
stop();
Symbol 763 MovieClip [weaponSwitchClip] Frame 2
stop();
Symbol 768 Button
on (release) {
throwalien(1, 1);
}
Symbol 769 Button
on (release) {
throwalien(1, 0);
}
Symbol 770 Button
on (release) {
throwalien(1, -1);
}
Symbol 771 Button
on (release) {
throwalien(0, 1);
}
Symbol 772 Button
on (release) {
throwalien(0, -1);
}
Symbol 773 Button
on (release) {
throwalien(-1, 1);
}
Symbol 774 Button
on (release) {
throwalien(-1, -1);
}
Symbol 775 Button
on (release) {
throwalien(-1, 0);
}
Symbol 776 MovieClip [throwStunned] Frame 1
function throwalien(modY, modX) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = null;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] - 1;
if ((_root.aliensArray[alienName][2] == "stunnedInAlien") || (_root.aliensArray[alienName][2] == "stunnedInMarine")) {
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] - 1;
}
_root.aliensArray[alienName][0] = _root.aliensArray[alienName][0] + modY;
_root.aliensArray[alienName][1] = _root.aliensArray[alienName][1] + modX;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][2] = alienName;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][0] + 1;
_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] = _root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][5][1] + 1;
_root.actionarea["alien" + alienName]._x = (_root.aliensArray[alienName][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + alienName]._y = (_root.aliensArray[alienName][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + alienName]._rotation = _root.calculateRandom(0, 360);
if (_root.currentLoop == "beforeProcessRangeArray") {
_root.aliensArray[alienName][2] = "stunnedInAlien";
} else {
_root.aliensArray[alienName][2] = "stunnedInMarine";
}
_root.actionarea["alien" + alienName].swapDepths(400 + alienName);
_root.userInputExpected = false;
_root.gotoAndPlay(_root.currentLoop);
removeMovieClip(_root.actionarea.throwStunned);
}
Symbol 780 Button
on (release) {
_root.waitCheck(alienName);
_root.currentLoop = "makeButtons";
_root.currentMarineActions = _root.currentMarineActions + 1;
meleeChance = _root.calculateRandom(0, 9);
meleeScore = _root.marineData[_root.marineSelect][5][_root.marineData[_root.marineSelect][9]];
trace("meleeScore = " + meleeScore);
trace("ready, FIGHT: " + meleeChance);
if (meleeChance <= meleeScore) {
_root.actionarea.attachMovie("throwStunned", "throwStunned", 6000);
_root.actionarea.throwStunned._x = _root.aliensArray[alienName][1] * _root.tileSize;
_root.actionarea.throwStunned._y = _root.aliensArray[alienName][0] * _root.tileSize;
_root.actionarea.throwStunned.alienName = alienName;
p = 0;
while (p < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[p]] == "inc") {
_root.marineData[_root.marineOrder[p]][8] = 0;
_root.marineData[_root.marineOrder[p]][2] = "incacitated";
}
p++;
}
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] != null) {
trace(_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] + " is free!!!");
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][8] = 0;
if (_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][9] < 2) {
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][2] = "target";
} else if (_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][9] == 2) {
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][2] = "incacitated";
} else {
_root.marineData[_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1]][2] = "dead";
}
_root.aliensArray[alienName][4] = "";
}
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
calcThisDirectionX = u - 1;
calcThisDirectionY = t - 1;
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
directionBlocked = false;
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][4][calcThisAngle] != null) {
directionBlocked = true;
}
if ((_root.mapArray[(_root.aliensArray[alienName][0] + t) - 1][(_root.aliensArray[alienName][1] + u) - 1][0] == 4) || (directionBlocked == true)) {
_root.actionarea.throwStunned[("arrow" + t) + u]._visible = false;
}
u++;
}
t++;
}
_root.actionarea["alien" + alienName].gotoAndStop("stunned");
} else {
_root.gotoAndPlay("beforeMakeButtons");
}
_root.removeAllbuttons("gooog");
}
Symbol 785 Button
on (release) {
this.calculateShot(3);
}
Symbol 786 Button
on (release) {
this.calculateShot(1);
}
Symbol 787 Button
on (release) {
this.calculateShot(2);
}
Symbol 807 MovieClip [counter] Frame 1
stop();
Symbol 807 MovieClip [counter] Frame 2
stop();
Symbol 807 MovieClip [counter] Frame 3
stop();
Symbol 807 MovieClip [counter] Frame 4
stop();
Symbol 807 MovieClip [counter] Frame 5
stop();
Symbol 807 MovieClip [counter] Frame 6
stop();
Symbol 807 MovieClip [counter] Frame 7
stop();
Symbol 807 MovieClip [counter] Frame 8
stop();
Symbol 807 MovieClip [counter] Frame 9
stop();
Symbol 807 MovieClip [counter] Frame 10
stop();
Symbol 807 MovieClip [counter] Frame 11
stop();
Symbol 808 MovieClip [shootingSelect] Frame 1
function calculateShot(actionsSpent) {
_root.waitCheck(this.alienName);
m = 0;
while (m < _root.marineButtonsArray.length) {
_root.actionarea[_root.marineButtonsArray[m]]._visible = false;
m++;
}
m = 0;
while (m < _root.marineButtonsArrayShooting.length) {
_root.actionarea[_root.marineButtonsArrayShooting[m]]._visible = false;
m++;
}
shootingRoll = _root.calculateRandom(0, 9);
trace("dice roll = " + shootingRoll);
_root.currentMarineActions = _root.currentMarineActions + actionsSpent;
Ydist = _root.aliensArray[this.alienName][0] - _root.marineData[_root.marineSelect][6];
Xdist = _root.aliensArray[this.alienName][1] - _root.marineData[_root.marineSelect][7];
_root.actionarea[_root.marineData[_root.marineSelect][0]]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
_root.actionarea[_root.marineData[_root.marineSelect][0]].gotoAndPlay("shoot" + _root.marineData[_root.marineSelect][12]);
if (shootingRoll <= this["targetNum" + actionsSpent]) {
_root.actionarea[_root.marineData[_root.marineSelect][0]].alienName = this.alienName;
} else {
_root.actionarea[_root.marineData[_root.marineSelect][0]].alienName = null;
}
}
Symbol 812 Button
on (release) {
if (_root.actionarea["shootingSelect" + alienName] == null) {
_root.actionarea.attachMovie("shootingSelect", "shootingSelect" + alienName, 12000 + alienName);
_root.actionarea["shootingSelect" + alienName]._x = (_root.aliensArray[alienName][1] * _root.tileSize) + 45;
_root.actionarea["shootingSelect" + alienName]._y = (_root.aliensArray[alienName][0] * _root.tileSize) - 5;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "shootingSelect" + alienName;
_root.actionarea["shootingSelect" + alienName].alienName = alienName;
_root.actionarea["shootingSelect" + alienName].melee.alienName = alienName;
_root.actionarea["shootingSelect" + alienName].action1._visible = false;
_root.actionarea["shootingSelect" + alienName].action2._visible = false;
_root.actionarea["shootingSelect" + alienName].action3._visible = false;
_root.actionarea["shootingSelect" + alienName].counter1._visible = false;
_root.actionarea["shootingSelect" + alienName].counter2._visible = false;
_root.actionarea["shootingSelect" + alienName].counter3._visible = false;
_root.actionarea["shootingSelect" + alienName].buttonPlate1._visible = false;
_root.actionarea["shootingSelect" + alienName].melee._visible = false;
_root.actionarea["shootingSelect" + alienName].actionMarker1._visible = false;
_root.actionarea["shootingSelect" + alienName].actionMarker2._visible = false;
_root.actionarea["shootingSelect" + alienName].actionMarker3._visible = false;
if (((_root.marineData[_root.marineSelect][1] > 0) && ((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) > 0)) && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "none")) {
_root.actionarea["shootingSelect" + alienName].targetNum1 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][0][rangeBand];
if ((_root.aliensArray[alienName][4] != "") && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "flame unit")) {
_root.actionarea["shootingSelect" + alienName].targetNum1 = _root.actionarea["shootingSelect" + alienName].targetNum1 - 5;
}
_root.actionarea["shootingSelect" + alienName].counter1.gotoAndStop(_root.actionarea["shootingSelect" + alienName].targetNum1 + 2);
_root.actionarea["shootingSelect" + alienName].action1._visible = true;
_root.actionarea["shootingSelect" + alienName].counter1._visible = true;
_root.actionarea["shootingSelect" + alienName].actionMarker1._visible = true;
trace("===> the clips X is = " + _root.actionarea["shootingSelect" + alienName].counter1._x);
trace("1 action target num = " + _root.actionarea["shootingSelect" + alienName].targetNum1);
}
if (((_root.marineData[_root.marineSelect][1] > 1) && ((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) > 1)) && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "none")) {
_root.actionarea["shootingSelect" + alienName].targetNum2 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][1][rangeBand];
if ((_root.aliensArray[alienName][4] != "") && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "flame unit")) {
_root.actionarea["shootingSelect" + alienName].targetNum2 = _root.actionarea["shootingSelect" + alienName].targetNum2 - 5;
}
_root.actionarea["shootingSelect" + alienName].counter2.gotoAndStop(_root.actionarea["shootingSelect" + alienName].targetNum2 + 2);
_root.actionarea["shootingSelect" + alienName].action2._visible = true;
_root.actionarea["shootingSelect" + alienName].counter2._visible = true;
_root.actionarea["shootingSelect" + alienName].actionMarker2._visible = true;
trace("2 action target num = " + _root.actionarea["shootingSelect" + alienName].targetNum2);
}
if (((_root.marineData[_root.marineSelect][1] > 2) && ((_root.marineData[_root.marineSelect][1] - _root.currentMarineActions) > 2)) && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "none")) {
_root.actionarea["shootingSelect" + alienName].targetNum3 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][2][rangeBand];
if ((_root.aliensArray[alienName][4] != "") && (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "flame unit")) {
_root.actionarea["shootingSelect" + alienName].targetNum3 = _root.actionarea["shootingSelect" + alienName].targetNum3 - 5;
}
_root.actionarea["shootingSelect" + alienName].counter3.gotoAndStop(_root.actionarea["shootingSelect" + alienName].targetNum3 + 2);
_root.actionarea["shootingSelect" + alienName].action3._visible = true;
_root.actionarea["shootingSelect" + alienName].counter3._visible = true;
_root.actionarea["shootingSelect" + alienName].actionMarker3._visible = true;
trace("3 action target num = " + _root.actionarea["shootingSelect" + alienName].targetNum3);
}
if ((Dist == 1) && (_root.aliensArray[alienName].queen != true)) {
_root.actionarea["shootingSelect" + alienName].melee._visible = true;
_root.actionarea["shootingSelect" + alienName].buttonPlate1._visible = true;
}
} else if (_root.actionarea["shootingSelect" + alienName]._visible == false) {
_root.actionarea["shootingSelect" + alienName]._visible = true;
} else {
_root.actionarea["shootingSelect" + alienName]._visible = false;
}
}
Symbol 814 Button
on (release) {
_root.shootMachineGun4(this.marineName, this.alienName);
_root.removeAllbuttons();
}
Symbol 821 MovieClip [rangeToNewt] Frame 1
stop();
Symbol 826 Button
on (release) {
moveMarine(1, -1, -135);
}
Symbol 827 Button
on (release) {
moveMarine(1, 0, 180);
}
Symbol 828 Button
on (release) {
moveMarine(1, 1, 135);
}
Symbol 829 Button
on (release) {
moveMarine(0, 1, 90);
}
Symbol 830 Button
on (release) {
moveMarine(0, -1, -90);
}
Symbol 831 Button
on (release) {
moveMarine(-1, 1, 45);
}
Symbol 832 Button
on (release) {
moveMarine(-1, 0, 0);
}
Symbol 833 Button
on (release) {
moveMarine(-1, -1, -45);
}
Symbol 835 Button
on (release, keyPress "z") {
trace("pass move");
_root.currentMarineActions = _root.currentMarineActions + 1;
_root.gotoAndPlay("makeButtons");
}
Symbol 839 Button
on (release) {
moveMarine(1, -1, -135);
}
Symbol 840 Button
on (release) {
moveMarine(1, 0, 180);
}
Symbol 841 Button
on (release) {
moveMarine(1, 1, 135);
}
Symbol 842 Button
on (release) {
moveMarine(0, 1, 90);
}
Symbol 843 Button
on (release) {
moveMarine(0, -1, -90);
}
Symbol 844 Button
on (release) {
moveMarine(-1, 1, 45);
}
Symbol 845 Button
on (release) {
moveMarine(-1, 0, 0);
}
Symbol 846 Button
on (release) {
moveMarine(-1, -1, -45);
}
Symbol 847 MovieClip [moveMarine] Frame 1
function exitMarineTest() {
if (_root.mapName == "reactor") {
if ((_root.marineData[_root.marineSelect][6] == 7) && (_root.marineData[_root.marineSelect][7] == 0)) {
removeMovieClip(_root.actionarea[_root.marineData[_root.marineSelect][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineSelect][0] + "Name"]);
_root.marineData[_root.marineSelect][2] = "out";
if (_root.marineData[_root.marineSelect][10] != null) {
_root.marineData[_root.marineData[_root.marineSelect][10]][2] = "out";
}
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root.mapArray[7][0][1] = null;
}
}
if (_root.mapName == "operations") {
if ((_root.marineData[_root.marineSelect][6] == 19) && (_root.marineData[_root.marineSelect][7] == 38)) {
removeMovieClip(_root.actionarea[_root.marineData[_root.marineSelect][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineSelect][0] + "Name"]);
_root.marineData[_root.marineSelect][2] = "out";
if (_root.marineData[_root.marineSelect][10] != null) {
_root.marineData[_root.marineData[_root.marineSelect][10]][2] = "out";
}
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root.mapArray[19][38][1] = null;
}
}
}
function rescueRoomTest(testY, testX) {
roomVar = null;
if (((testY > 13) && (testY < 20)) && ((testX > 19) && (testX < 30))) {
roomVar = 0;
}
if (((testY > 10) && (testY < 15)) && ((testX > 0) && (testX < 6))) {
roomVar = 1;
}
if (((testY > 14) && (testY < 20)) && ((testX > 0) && (testX < 6))) {
roomVar = 2;
}
if (((testY > 11) && (testY < 17)) && ((testX > 5) && (testX < 10))) {
roomVar = 3;
}
if (((testY > 16) && (testY < 20)) && ((testX > 5) && (testX < 12))) {
roomVar = 4;
}
if (((testY > 11) && (testY < 17)) && ((testX > 9) && (testX < 15))) {
roomVar = 5;
}
if (((testY > 19) && (testY < 24)) && ((testX > 5) && (testX < 12))) {
roomVar = 6;
}
if (((testY > 16) && (testY < 24)) && ((testX > 11) && (testX < 15))) {
roomVar = 6;
}
if (((testY > 7) && (testY < 12)) && ((testX > 14) && (testX < 19))) {
roomVar = 7;
}
if (((testY > 2) && (testY < 8)) && ((testX > 14) && (testX < 19))) {
roomVar = 8;
}
if (((testY > 4) && (testY < 12)) && ((testX > 18) && (testX < 24))) {
roomVar = 9;
}
if (((testY > 2) && (testY < 12)) && ((testX > 25) && (testX < 30))) {
roomVar = 10;
}
trace((("ENTERED ROOM: " + roomVar) + " roomVar roomData = ") + _root.roomData[roomVar]);
_root.marineData[_root.marineSelect].room = roomVar;
if (roomVar != null) {
if (_root.roomData[roomVar] == 0) {
_root.roomData[roomVar] = 1;
randCheck = _root.calculateRandom(1, 16);
t = 0;
while (t < _root.cocoonMarines.length) {
if (_root.marineData[_root.cocoonMarines[t]][14][0] == roomVar) {
_root.actionarea[_root.marineData[_root.cocoonMarines[t]][0]]._visible = true;
_root.actionarea.mainMap.map["egg" + roomVar]._visible = true;
}
t++;
}
if (roomVar == _root.queenRoom) {
_root.actionarea.mainMap.map["egg" + roomVar]._visible = true;
if (_root.aliensArray[_root.alienQueen].wait == true) {
trace("AAAAAA THE QUEEN !!!!!!!!!!!!!!!!!!!!!!");
_root.actionarea["alien" + _root.alienQueen]._visible = true;
_root.actionarea["alien" + _root.alienQueen].gotoAndStop("start2");
Ydist = _root.marineData[_root.marineSelect][6] - _root.aliensArray[_root.alienQueen][0];
Xdist = _root.marineData[_root.marineSelect][7] - _root.aliensArray[_root.alienQueen][1];
_root.actionarea["alien" + _root.alienQueen]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
r = 0;
while (r < 2) {
locationCheck = false;
while (locationCheck == false) {
locationCheckRand = _root.calculateRandom(0, _root["randAlienStart" + _root.queenRoom].length - 1);
if (_root.mapArray[_root["randAlienStart" + _root.queenRoom][locationCheckRand][0]][_root["randAlienStart" + _root.queenRoom][locationCheckRand][1]][2] == null) {
locationCheck = true;
}
}
newAlien = _root.aliensArray.length;
_root.aliensArray[newAlien] = [];
_root.aliensArray[newAlien][0] = _root["randAlienStart" + _root.queenRoom][locationCheckRand][0];
_root.aliensArray[newAlien][1] = _root["randAlienStart" + _root.queenRoom][locationCheckRand][1];
_root.aliensArray[newAlien][2] = "normal";
_root.aliensArray[newAlien][3] = [];
_root.aliensArray[newAlien][4] = "";
_root.aliensArray[newAlien].wait = true;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][2] = newAlien;
_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][5][0] + 1;
_root.actionarea.attachMovie("alien", "alien" + newAlien, 2000 + newAlien);
_root.actionarea["alien" + newAlien]._x = (_root.aliensArray[newAlien][1] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._y = (_root.aliensArray[newAlien][0] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["alien" + newAlien]._rotation = 180;
_root.actionarea["alien" + newAlien].gotoAndPlay("arrive");
_root.actionarea["alien" + newAlien].alienID = newAlien;
_root.aliensInRoom = _root.aliensInRoom - 1;
Ydist = _root.marineData[_root.marineSelect][6] - _root["randAlienStart" + _root.queenRoom][locationCheckRand][0];
Xdist = _root.marineData[_root.marineSelect][7] - _root["randAlienStart" + _root.queenRoom][locationCheckRand][1];
_root.actionarea["alien" + newAlien]._rotation = ((Math.atan2(Ydist, Xdist) * 180) / Math.PI) + 90;
r++;
}
}
} else if (randCheck < 13) {
_root.turnArray[_root.currentTurn + 1][_root.turnArray[_root.currentTurn + 1].length] = [roomVar, 1];
} else {
trace("EMPTY");
}
}
}
}
function newtCheckTest(newtSquareTestY, newtSquareTestX, newtSquareY, newtSquareX, rotation) {
if ((newtSquareTestY == newtSquareY) && (newtSquareTestX == newtSquareX)) {
newtCheck = _root.calculateRandom(1, 10);
if (_root.marineSelect == 10) {
if (newtCheck > 7) {
movecheck = 1;
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
} else {
movecheck = 0;
_root.actionarea.mainMap.opMap["newtDescitionSquare" + _root.newtDoor1]._visible = false;
_root.newtDoor1 = _root.newtDoor1 + 1;
_root.actionarea[_root.marineData[10][0]]._rotation = rotation;
_root.actionarea[_root.marineData[10][0]].gotoAndPlay("thisway");
}
} else if (newtCheck > 1) {
movecheck = 1;
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
} else {
movecheck = 0;
_root.actionarea.mainMap.opMap["newtDescitionSquare" + _root.newtDoor1]._visible = false;
_root.newtDoor1 = _root.newtDoor1 + 1;
}
}
}
function moveMarine(funcY, funcX, funcRotate) {
movecheck = 0;
if (_root.mapName == "operations") {
if (_root.newtDoor1 == 1) {
newtCheckTest(15, 12, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 90);
}
if (_root.newtDoor1 == 2) {
newtCheckTest(13, 18, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 90);
}
if (_root.newtDoor1 == 3) {
newtCheckTest(17, 19, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 180);
}
if (_root.newtDoor1 == 4) {
newtCheckTest(18, 21, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 90);
}
if (_root.newtDoor1 == 5) {
newtCheckTest(16, 23, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 90);
}
if (_root.newtDoor1 == 6) {
newtCheckTest(16, 25, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 90);
}
if (_root.newtDoor1 == 7) {
newtCheckTest(18, 30, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 0);
}
if (_root.newtDoor1 == 8) {
newtCheckTest(17, 36, _root.marineData[_root.marineSelect][6] + funcY, _root.marineData[_root.marineSelect][7] + funcX, 270);
}
}
if (movecheck == 0) {
_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][1] = null;
_root.marineData[_root.marineSelect][6] = _root.marineData[_root.marineSelect][6] + funcY;
_root.marineData[_root.marineSelect][7] = _root.marineData[_root.marineSelect][7] + funcX;
_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][1] = _root.marineSelect;
_root.actionarea[_root.marineData[_root.marineSelect][0]]._x = (_root.marineData[_root.marineSelect][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineSelect][0]]._y = (_root.marineData[_root.marineSelect][6] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineSelect][0]]._rotation = funcRotate;
_root.actionarea[_root.marineData[_root.marineSelect][0] + "Name"]._x = (_root.marineData[_root.marineSelect][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[_root.marineSelect][0] + "Name"]._y = _root.marineData[_root.marineSelect][6] * _root.tileSize;
if (_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][0] == 1) {
_root.currentMarineActions = _root.currentMarineActions + 2;
} else {
_root.currentMarineActions = _root.currentMarineActions + 1;
}
if (_root.marineData[_root.marineSelect][10] != null) {
_root.marineData[_root.marineData[_root.marineSelect][10]][6] = _root.marineData[_root.marineSelect][6];
_root.marineData[_root.marineData[_root.marineSelect][10]][7] = _root.marineData[_root.marineSelect][7];
}
exitMarineTest();
if (_root.mapName == "rescue") {
rescueRoomTest(_root.marineData[_root.marineSelect][6], _root.marineData[_root.marineSelect][7]);
}
}
_root.gotoAndPlay("makeButtons");
}
Symbol 853 Button
on (release) {
pickUpMarine(0);
}
Symbol 855 Button
on (release) {
pickUpMarine(1);
}
Symbol 857 Button
on (release) {
pickUpMarine(2);
}
Symbol 859 Button
on (release) {
pickUpMarine(3);
}
Symbol 861 Button
on (release) {
pickUpMarine(4);
}
Symbol 863 Button
on (release) {
pickUpMarine(5);
}
Symbol 865 Button
on (release) {
pickUpMarine(6);
}
Symbol 867 Button
on (release) {
pickUpMarine(7);
}
Symbol 869 Button
on (release) {
pickUpMarine(8);
}
Symbol 871 Button
on (release) {
pickUpMarine(9);
}
Symbol 872 Button
on (release) {
pickUpMarine(10);
}
Symbol 874 Button
on (release) {
pickUpMarine(11);
}
Symbol 876 Button
on (release) {
pickUpMarine(12);
}
Symbol 877 MovieClip [incMarineDrop] Frame 1
function pickUpMarine(incMarineID) {
_root.marineData[_root.marineSelect][10] = null;
_root.marineData[incMarineID][10] = null;
_root.marineData[incMarineID][2] = "incapacitated";
removeMovieClip(_root.actionarea[_root.marineData[_root.marineSelect][0]]["inc" + incMarineID]);
trace("drop up " + _root.marineData[incMarineID][0]);
_root.actionarea.attachMovie(_root.marineData[incMarineID][0], _root.marineData[incMarineID][0], 500 + incMarineID);
_root.actionarea[_root.marineData[incMarineID][0]]._x = (_root.marineData[incMarineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[incMarineID][0]]._y = (_root.marineData[incMarineID][6] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[incMarineID][0]]._rotation = _root.calculateRandom(0, 360);
_root.actionarea[_root.marineData[incMarineID][0]].gotoAndPlay("incapacitated");
_root.actionarea.attachMovie(_root.marineData[incMarineID][0] + "Name", _root.marineData[incMarineID][0] + "Name", 15000 + incMarineID);
_root.actionarea[_root.marineData[incMarineID][0] + "Name"]._x = (_root.marineData[incMarineID][7] * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea[_root.marineData[incMarineID][0] + "Name"]._y = _root.marineData[incMarineID][6] * _root.tileSize;
_root.actionarea[_root.marineData[incMarineID][0] + "Name"]._visible = false;
_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][3][incMarineID] = "inc";
_root.gotoAndPlay("makeButtons");
}
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 2
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 3
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 4
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 5
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 6
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 7
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 8
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 9
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 10
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 11
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 12
stop();
Symbol 877 MovieClip [incMarineDrop] Frame 13
stop();
Symbol 878 MovieClip [incMarine] Frame 1
function pickUpMarine(incMarineID) {
_root.marineData[_root.marineSelect][10] = incMarineID;
_root.marineData[incMarineID][10] = _root.marineSelect;
_root.marineData[incMarineID][2] = "carried";
removeMovieClip(_root.actionarea[_root.marineData[incMarineID][0]]);
removeMovieClip(_root.actionarea[_root.marineData[incMarineID][0]] + "Name");
trace("pick up " + _root.marineData[incMarineID][0]);
_root.actionarea[_root.marineData[_root.marineSelect][0]].attachMovie(_root.marineData[incMarineID][0], "inc" + incMarineID, 4000 + incMarineID);
_root.actionarea[_root.marineData[_root.marineSelect][0]]["inc" + incMarineID]._x = 0;
_root.actionarea[_root.marineData[_root.marineSelect][0]]["inc" + incMarineID]._y = 0;
_root.actionarea[_root.marineData[_root.marineSelect][0]]["inc" + incMarineID].gotoAndPlay("carried");
_root.mapArray[_root.marineData[_root.marineSelect][6]][_root.marineData[_root.marineSelect][7]][3][incMarineID] = false;
_root.gotoAndPlay("makeButtons");
}
stop();
Symbol 878 MovieClip [incMarine] Frame 2
stop();
Symbol 878 MovieClip [incMarine] Frame 3
stop();
Symbol 878 MovieClip [incMarine] Frame 4
stop();
Symbol 878 MovieClip [incMarine] Frame 5
stop();
Symbol 878 MovieClip [incMarine] Frame 6
stop();
Symbol 878 MovieClip [incMarine] Frame 7
stop();
Symbol 878 MovieClip [incMarine] Frame 8
stop();
Symbol 878 MovieClip [incMarine] Frame 9
stop();
Symbol 878 MovieClip [incMarine] Frame 10
stop();
Symbol 878 MovieClip [incMarine] Frame 11
stop();
Symbol 878 MovieClip [incMarine] Frame 12
stop();
Symbol 878 MovieClip [incMarine] Frame 13
stop();
Symbol 883 Button
on (release) {
_root.grenade = 1;
o = 0;
while (o < _root.marineButtonsArray.length) {
_root.actionarea[_root.marineButtonsArray[o]]._visible = false;
trace("remove " + _root.marineButtonsArray[o]);
o++;
}
p = 0;
while (p < _root.marineButtonsArrayShooting.length) {
_root.actionarea[_root.marineButtonsArrayShooting[p]]._visible = false;
trace("remove " + _root.marineButtonsArrayShooting[p]);
p++;
}
trace("what is the the INC ARRAY!!!!!! ?????? " + _root.marineIncButtonsArray);
q = 0;
while (q < _root.marineIncButtonsArray.length) {
_root[_root.marineIncButtonsArray[q]]._visible = false;
trace("remove " + _root.marineIncButtonsArray[q]);
q++;
}
_root.grenadeSelectClip._visible = true;
gotoAndPlay ("grenade2");
_root.actionarea.attachMovie("grenadeIcon", "grenadeIcon", 6750);
_root.actionarea.grenadeIcon._x = _root.marineData[_root.marineSelect][7] * _root.tileSize;
_root.actionarea.grenadeIcon._y = _root.marineData[_root.marineSelect][6] * _root.tileSize;
_root.actionarea.grenadeIcon.LOS._visible = false;
}
Symbol 888 Button
on (release) {
_root.grenade = 0;
gotoAndPlay ("grenade1");
removeMovieClip(_root.actionarea.grenadeIcon);
_root.gotoAndPlay("makeButtons");
}
Symbol 889 MovieClip [grenadeSelectClip] Frame 1
stop();
Symbol 889 MovieClip [grenadeSelectClip] Frame 2
stop();
Symbol 892 Button
on (release) {
_root.currentMarineActions = _root.currentMarineActions + 1;
_root.actionarea[_root.marineData[_root.marineSelect][0]].gotoAndPlay("grenade" + _root.marineData[_root.marineSelect][12]);
_root.grenade = 0;
removeMovieClip(_root.actionarea.grenadeIcon);
}
Symbol 907 Button
on (release, keyPress "-") {
tempX = _root.actionarea._x;
tempY = _root.actionarea._y;
_root.actionarea._xscale = _root.actionarea._xscale * 0.8;
_root.actionarea._yscale = _root.actionarea._yscale * 0.8;
_root.actionarea._x = 512 - ((512 - tempX) * 0.8);
_root.actionarea._y = 393 - ((393 - tempY) * 0.8);
}
Symbol 912 Button
on (release, keyPress "+") {
tempX = _root.actionarea._x;
tempY = _root.actionarea._y;
_root.actionarea._xscale = _root.actionarea._xscale * 1.25;
_root.actionarea._yscale = _root.actionarea._yscale * 1.25;
_root.actionarea._x = 512 - ((512 - tempX) * 1.25);
_root.actionarea._y = 393 - ((393 - tempY) * 1.25);
}
Symbol 923 Button
on (release) {
_root.actionarea[_root.marineData[_root.marineSelect][0]]._rotation = 0;
_root.actionarea[_root.marineData[_root.marineSelect][0]].gotoAndPlay("cut");
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root.cutMarine = _root.marineSelect;
_root.actionarea.door1.gotoAndPlay("close");
_root.mapArray[13][9][4][225] = 2;
_root.mapArray[13][9][4][180] = 2;
_root.mapArray[13][9][4][135] = 2;
_root.mapArray[13][10][4][180] = 2;
_root.mapArray[13][10][4][225] = 2;
_root.mapArray[14][8][4][45] = 2;
_root.mapArray[14][9][4][0] = 2;
_root.mapArray[14][9][4][45] = 2;
_root.mapArray[14][10][4][-45] = 2;
_root.mapArray[14][10][4][0] = 2;
_root.burkeDoor1 = 3;
_root.OPsealDoor();
_root.gotoAndPlay("makeButtons");
}
Symbol 932 Button
on (release) {
trace("elevatorName: " + elevatorName);
_root.actionarea.mainMap.map["elevator" + elevatorName].gotoAndPlay("goUp");
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root["elevatorStatus" + elevatorName] = 2;
t = 2;
while (t < 4) {
mPrime = 1;
while (mPrime < 3) {
if (elevatorName == 2) {
bump = 2;
} else {
bump = 0;
}
m = mPrime + bump;
_root.mapArray[t][m][0] = 4;
if (_root.mapArray[t][m][1] != null) {
removeMovieClip(_root.actionarea[_root.marineData[_root.mapArray[t][m][1]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.mapArray[t][m][1]][0] + "Name"]);
_root.marineData[_root.mapArray[t][m][1]][2] = "out";
if (_root.marineData[_root.mapArray[t][m][1]][10] != null) {
_root.marineData[_root.marineData[_root.mapArray[t][m][1]][10]][2] = "out";
}
_root.mapArray[t][m][1] = null;
}
n = 0;
while (n < _root.marineOrder.length) {
if (_root.mapArray[t][m][3][_root.marineOrder[n]] != false) {
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[n]][0]]);
removeMovieClip(_root.actionarea[_root.marineData[_root.marineOrder[n]][0] + "Name"]);
_root.marineData[_root.marineOrder[n]][2] = "out";
if (_root.marineData[_root.marineOrder[n]][10] != null) {
_root.marineData[_root.marineData[_root.marineOrder[n]][10]][2] = "out";
}
_root.mapArray[t][m][3][_root.marineOrder[n]] = false;
}
n++;
}
mPrime++;
}
t++;
}
_root.gotoAndPlay("makeButtons");
}
Symbol 939 Button
on (release) {
trace("elevatorName: " + elevatorName);
_root["elevatorStatus" + elevatorName] = 7;
_root.actionarea.mainMap.map["elevator" + elevatorName].gotoAndStop("goDown");
_root.gotoAndPlay("makeButtons");
}
Symbol 943 Button
on (release) {
_root.actionarea[_root.marineData[_root.marineSelect][0]]._rotation = 180;
_root.actionarea[_root.marineData[_root.marineSelect][0]].gotoAndPlay("cut");
_root.door1CutTime = _root.door1CutTime + 1;
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root.cutMarine = _root.marineSelect;
_root.gotoAndPlay("makeButtons");
}
Symbol 948 Button
on (release) {
_root.mapArray[_root.marineData[cocoonMarine][6]][_root.marineData[cocoonMarine][7]][0] = 0;
_root.actionarea[_root.marineData[cocoonMarine][0]].gotoAndPlay("incapacitated");
_root.currentMarineActions = _root.marineData[_root.marineSelect][1];
_root.marineData[cocoonMarine][14] = null;
if (cocoonMarine == 10) {
_root.burnCorridor = 1;
trace("BURN THE CORRIDOR");
}
_root.gotoAndPlay("makeButtons");
}
Symbol 985 Button
on (release) {
_parent.tutorial._alpha = 0;
}
Symbol 989 Button
on (release) {
gotoAndStop ("continue");
}
Symbol 993 Button
on (release) {
gotoAndStop ("rescue");
}
Symbol 997 Button
on (release) {
gotoAndStop ("reactor");
}
Symbol 1000 Button
on (release) {
gotoAndStop ("operations");
}
Symbol 1004 Button
on (release) {
gotoAndStop ("weapons");
}
Symbol 1008 Button
on (release) {
gotoAndStop ("gengameplay");
}
Symbol 1012 Button
on (release) {
gotoAndStop(this._currentframe + 1);
}
Symbol 1017 Button
on (release) {
gotoAndStop ("main");
}
Symbol 1022 Button
on (release) {
gotoAndStop(this._currentframe - 1);
}
Symbol 1023 Button
on (release) {
gotoAndStop(this._currentframe + 1);
}
Symbol 1072 Button
on (release) {
gotoAndStop (1);
}
Symbol 1073 MovieClip Frame 1
stop();
Symbol 1075 Button
on (release) {
if (tutorial._alpha == 100) {
tutorial._alpha = 0;
} else {
tutorial._alpha = 100;
}
}
Symbol 1080 Button
on (release) {
_root.actionarea.attachMovie("rescueMap", "mainMap", 1);
_root.marinesInMission = [11];
_root.cocoonMarines = [10];
gotoAndPlay ("setOrder");
}
Symbol 1085 Button
on (release) {
_root.actionarea.attachMovie("operationsMap", "mainMap", 1);
_root.marinesInMission = [9, 10, 11, 12, 0, 2, 5];
gotoAndPlay ("setOrder");
}
Symbol 1092 Button
on (release) {
_root.actionarea.attachMovie("reactorMap", "mainMap", 1);
_root.marinesInMission = [6, 3, 5, 2, 1, 0, 4, 7, 8];
gotoAndPlay ("setOrder");
}
Symbol 1095 MovieClip Frame 1
stop();
Symbol 1095 MovieClip Frame 155
stop();
Symbol 1101 MovieClip Frame 1
turnMarkerText = "00";
Symbol 1103 Button
on (release, keyPress "<Left>") {
_root.actionarea._x = _root.actionarea._x + 30;
}
Symbol 1104 Button
on (release, keyPress "<Right>") {
_root.actionarea._x = _root.actionarea._x - 30;
}
Symbol 1105 Button
on (release, keyPress "<Down>") {
_root.actionarea._y = _root.actionarea._y - 30;
}
Symbol 1106 Button
on (release, keyPress "<Up>") {
_root.actionarea._y = _root.actionarea._y + 30;
}