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 679
_root.JasonRulez = true;
trace("START!");
_root.attachMovie("soundmenu", "soundmenu", 50000);
_root.soundmenu._x = 666.4;
_root.soundmenu._y = -188.7;
scrollLeft = false;
scrollRight = false;
scrollUp = false;
scrollDown = false;
buttonUp = false;
buttonDown = false;
buttonRight = false;
buttonLeft = false;
_root.moveFast = false;
_root.flameGroundOn = 0;
_root.flameGroundShotOn = 0;
function targetSelectShoot(alienName, Dist, rangeBand) {
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;
marineLocationTest = false;
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][1] != null) {
marineLocationTest = true;
}
f = 0;
while (f < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[alienName][0]][_root.aliensArray[alienName][1]][3][_root.marineOrder[f]] == "inc") {
marineLocationTest = true;
}
f++;
}
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.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo > 0)) {
_root.actionarea["shootingSelect" + alienName].targetNum1 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][0][rangeBand];
if ((marineLocationTest == true) && (_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.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo > 0)) {
_root.actionarea["shootingSelect" + alienName].targetNum2 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][1][rangeBand];
if ((marineLocationTest == true) && (_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.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo > 0)) {
_root.actionarea["shootingSelect" + alienName].targetNum3 = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][_root.marineData[_root.marineSelect][9]][2][rangeBand];
if ((marineLocationTest == true) && (_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;
}
}
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.marineData[_root.marineSelect][15] = _root.marineData[_root.marineSelect][15] + 1;
_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") {
if (_root.flameGroundShotOn == 0) {
localY = _root.aliensArray[alienName][0];
localX = _root.aliensArray[alienName][1];
} else {
localY = _root.flameYselect;
localX = _root.flameXselect;
}
_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;
yDiff = localY - _root.marineData[marineName][6];
xDiff = localX - _root.marineData[marineName][7];
yInc = Math.abs(yDiff);
xInc = Math.abs(xDiff);
hypot = Math.sqrt((yInc * yInc) + (xInc * xInc));
trace("hypot " + hypot);
if (hypot > 2) {
} else {
_root.actionarea["flame" + marineName].gotoAndPlay("flameShotShort");
}
}
}
function shootFlame2(marineName, alienName) {
if (_root.flameGroundShotOn == 0) {
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";
_root.marineData[marineName][15] = _root.marineData[marineName][15] + 1;
}
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;
}
} else {
newFlame = _root.flameArray.length;
_root.flameArray[newFlame] = [_root.flameYselect, _root.flameXselect];
_root.actionarea.attachMovie("fire", "fire" + newFlame, 3500 + newFlame);
_root.actionarea["fire" + newFlame]._x = (_root.flameXselect * _root.tileSize) + (_root.tileSize / 2);
_root.actionarea["fire" + newFlame]._y = (_root.flameYselect * _root.tileSize) + (_root.tileSize / 2);
_root.mapArray[_root.flameYselect][_root.flameXselect][6] = true;
_root.flameGroundShotOn = 0;
}
_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";
_root.marineData[marineName][15] = _root.marineData[marineName][15] + 1;
}
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";
_root.marineData[marineName][15] = _root.marineData[marineName][15] + 1;
}
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")) {
trace((("checking square : y " + (t - 1)) + " x ") + (u - 1));
MGLOS = false;
MGLOS = checkLOS((_root.aliensArray[alienName][0] + t) - 1, (_root.aliensArray[alienName][1] + u) - 1);
trace("LOS after LOS CHECK :" + MGLOS);
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;
}
yDiff = Math.abs(((_root.aliensArray[alienName][0] + t) - 1) - _root.marineData[marineName][6]);
xDiff = Math.abs(((_root.aliensArray[alienName][1] + u) - 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 ((MGLOS == true) && (MGsecondRange <= MGtargetRange)) {
MGLOS = true;
} else {
MGLOS = false;
trace("range block different");
}
if ((MGLOS == true) && (_root.aliensArray[alienName][2] != "combat")) {
trace("Add alien to array");
secondAlienTarget[secondAlienTarget.length] = _root.mapArray[(_root.aliensArray[alienName][0] + t) - 1][(_root.aliensArray[alienName][1] + u) - 1][2];
}
}
u++;
}
t++;
}
if (((secondAlienTarget.length > 0) && (_root.marineData[marineName][9] < 2)) && (_root.actionarea[_root.marineData[marineName][0]].secondAlien == null)) {
_root.actionarea[_root.marineData[marineName][0]].secondAlien = true;
nn = 0;
while (nn < secondAlienTarget.length) {
_root.actionarea.attachMovie("machineGunKill", "machineGunKill" + secondAlienTarget[nn], 9500 + nn);
_root.actionarea["machineGunKill" + secondAlienTarget[nn]]._x = _root.aliensArray[secondAlienTarget[nn]][1] * _root.tileSize;
_root.actionarea["machineGunKill" + secondAlienTarget[nn]]._y = _root.aliensArray[secondAlienTarget[nn]][0] * _root.tileSize;
_root.marineButtonsArray[_root.marineButtonsArray.length] = "machineGunKill" + secondAlienTarget[nn];
_root.actionarea["machineGunKill" + secondAlienTarget[nn]].alienName = secondAlienTarget[nn];
_root.actionarea["machineGunKill" + secondAlienTarget[nn]].marineName = marineName;
nn++;
}
_root.actionarea.attachMovie("machineGunKillCancel", "machineGunKillCancel", 9500 + secondAlienTarget.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.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.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].grenades = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].grenades - 1;
_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.aliensKilled = 0;
_root.totalAliensKilled = 0;
_root.stunnedAliensTotal = 0;
_root.rescuedMarinesTotal = 0;
_root.cocoonsCutTotal = 0;
_root.friendlyFireTotal = 0;
_root.ReactorScore = 0;
_root.OperationsScore = 0;
_root.RescueScore = 0;
_root.burkShot = 0;
_root.TotalScore = 0;
_root.cocoonMarines = [];
_root.aponeBonus = 0;
_root.flameArray = [];
_root.marineData = [];
_root.letsRockBonus = 0;
_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[0][15] = 0;
_root.marineData[0][16] = 0;
_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[1][15] = 0;
_root.marineData[1][16] = 0;
_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[2][15] = 0;
_root.marineData[2][16] = 0;
_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[3][15] = 0;
_root.marineData[3][16] = 0;
_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[4][15] = 0;
_root.marineData[4][16] = 0;
_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[5][15] = 0;
_root.marineData[5][16] = 0;
_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[6][15] = 0;
_root.marineData[6][16] = 0;
_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[7][15] = 0;
_root.marineData[7][16] = 0;
_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[8][15] = 0;
_root.marineData[8][16] = 0;
_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[9][15] = 0;
_root.marineData[9][16] = 0;
_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[10][15] = 0;
_root.marineData[10][16] = 0;
_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[11][15] = 0;
_root.marineData[11][16] = 0;
_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.marineData[12][15] = 0;
_root.marineData[12][16] = 0;
}
_root.setMarine();
prime = 0;
function findPath(Sy, Sx, Ey, Ex, alienblock) {
var _local3 = [];
var _local5 = [];
var _local2 = [];
_local2[0] = Sy;
_local2[1] = Sx;
_local2[2] = null;
_local2[3] = null;
_local2[4] = 0;
_local2[5] = (_local2[4] + Math.abs(Sy - Ey)) + Math.abs(Sx - Ex);
newSpace = _local5.length;
_local5[newSpace] = [];
_local5[newSpace][0] = _local2[0];
_local5[newSpace][1] = _local2[1];
_local5[newSpace][2] = _local2[2];
_local5[newSpace][3] = _local2[3];
_local5[newSpace][4] = _local2[4];
_local5[newSpace][5] = _local2[5];
var _local10 = false;
while (((_local2[0] != Ey) || (_local2[1] != Ex)) && (_local10 == false)) {
t = 0;
while (t <= 2) {
u = 0;
while (u <= 2) {
var _local4 = 1;
if (_root.mapArray[(_local2[0] + t) - 1][(_local2[1] + u) - 1][0] == 1) {
_local4 = 2;
}
Path = null;
if (alienblock == true) {
if ((_root.mapArray[(_local2[0] + t) - 1][(_local2[1] + u) - 1][5][0] - _root.mapArray[(_local2[0] + t) - 1][(_local2[1] + u) - 1][5][1]) > 0) {
_local4 = _local4 + 2;
}
}
if (_root.mapArray[(_local2[0] + t) - 1][(_local2[1] + u) - 1][0] <= 2) {
Path = true;
}
calcThisDirectionX = u - 1;
calcThisDirectionY = t - 1;
calcThisAngle = ((Math.atan2(calcThisDirectionY, calcThisDirectionX) * 180) / Math.PI) + 90;
if (_root.mapArray[_local2[0]][_local2[1]][6] == true) {
if (_root.aliensArray[alienSelect].queen == true) {
_local4 = _local4 + 18;
} else {
_local4 = _local4 + 5;
}
}
if (_root.mapArray[_local2[0]][_local2[1]][4][calcThisAngle] == 3) {
_local4 = _local4 + 5;
} else if (_root.mapArray[_local2[0]][_local2[1]][4][calcThisAngle] > 0) {
Path = null;
}
r = 0;
while (r < _local5.length) {
if ((_local5[r][0] == ((_local2[0] + t) - 1)) && (_local5[r][1] == ((_local2[1] + u) - 1))) {
Path = null;
}
r++;
}
r = 0;
while (r < _local3.length) {
if ((_local3[r][0] == ((_local2[0] + t) - 1)) && (_local3[r][1] == ((_local2[1] + u) - 1))) {
tempScore = ((_local2[4] + _local4) + Math.abs(((_local2[0] + t) - 1) - Ey)) + Math.abs(((_local2[1] + u) - 1) - Ex);
if ((tempScore < _local3[r][5]) && (Path == true)) {
_local3[r][0] = (_local2[0] + t) - 1;
_local3[r][1] = (_local2[1] + u) - 1;
_local3[r][2] = _local2[0];
_local3[r][3] = _local2[1];
_local3[r][4] = _local2[4] + _local4;
_local3[r][5] = (_local3[r][4] + Math.abs(_local3[r][0] - Ey)) + Math.abs(_local3[r][1] - Ex);
Path = null;
} else {
Path = null;
}
}
r++;
}
if (Path == true) {
newSpace = _local3.length;
_local3[newSpace] = [];
_local3[newSpace][0] = (_local2[0] + t) - 1;
_local3[newSpace][1] = (_local2[1] + u) - 1;
_local3[newSpace][2] = _local2[0];
_local3[newSpace][3] = _local2[1];
_local3[newSpace][4] = _local2[4] + _local4;
_local3[newSpace][5] = (_local3[newSpace][4] + Math.abs(_local3[newSpace][0] - Ey)) + Math.abs(_local3[newSpace][1] - Ex);
}
u++;
}
t++;
}
if (_local3.length != 0) {
var _local7 = 0;
d = 0;
while (d < _local3.length) {
if (_local3[_local7][5] > _local3[d][5]) {
_local7 = d;
}
d++;
}
_local2[0] = _local3[_local7][0];
_local2[1] = _local3[_local7][1];
_local2[2] = _local3[_local7][2];
_local2[3] = _local3[_local7][3];
_local2[4] = _local3[_local7][4];
_local2[5] = _local3[_local7][5];
newSpace = _local5.length;
_local5[newSpace] = [];
_local5[newSpace][0] = _local3[_local7][0];
_local5[newSpace][1] = _local3[_local7][1];
_local5[newSpace][2] = _local3[_local7][2];
_local5[newSpace][3] = _local3[_local7][3];
_local5[newSpace][4] = _local3[_local7][4];
_local5[newSpace][5] = _local3[_local7][5];
_local3[_local7] = null;
var _local6 = [];
v = 0;
while (v < _local3.length) {
if (_local3[v] != null) {
newSpace = _local6.length;
_local6[newSpace] = [];
_local6[newSpace][0] = _local3[v][0];
_local6[newSpace][1] = _local3[v][1];
_local6[newSpace][2] = _local3[v][2];
_local6[newSpace][3] = _local3[v][3];
_local6[newSpace][4] = _local3[v][4];
_local6[newSpace][5] = _local3[v][5];
}
v++;
}
_local3 = _local6;
}
if (_local2[0] == null) {
_local10 = true;
}
}
movePath = [];
movePath[movePath.length] = [_local2[0], _local2[1]];
movePath.cost = _local2[4];
while ((_local2[2] != null) && (_local10 != true)) {
r = 0;
while (r < _local5.length) {
if ((_local5[r][0] == _local2[2]) && (_local5[r][1] == _local2[3])) {
_local2[0] = _local5[r][0];
_local2[1] = _local5[r][1];
_local2[2] = _local5[r][2];
_local2[3] = _local5[r][3];
_local2[4] = _local5[r][4];
}
r++;
}
movePath[movePath.length] = [_local2[0], _local2[1]];
}
trace("movePath just before being sent to code " + movePath);
return(movePath);
}
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)) {
} else {
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 adjustCOlor(sat, brit) {
var _local2 = [sat, 0, 0, 0, brit, 0, sat, 0, 0, brit, 0, 0, sat, 0, brit, 0, 0, 0, 1, 0];
var _local5 = new flash.filters.ColorMatrixFilter(_local2);
this.filters = [_local5];
}
function calculateRandom(min, max) {
return(Math.floor(Math.random() * ((max + 1) - min)) + min);
}
function marineDamage(marineID, damageType) {
if (damageType == 3) {
if (_root.grenadeShoot == true) {
if (marineID == _root.marineSelect) {
} else {
_root.friendlyFireTotal = _root.friendlyFireTotal + 1;
}
if (marineID == 9) {
_root.burkShot = 1;
}
}
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.heartRate.gotoAndPlay("dead");
} else if ((damageType == 2) && (_root.marineData[marineID][9] >= 2)) {
if (_root.grenadeShoot == true) {
if (marineID == _root.marineSelect) {
} else {
_root.friendlyFireTotal = _root.friendlyFireTotal + 1;
}
if (marineID == 9) {
_root.burkShot = 1;
}
}
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.heartRate.gotoAndPlay("dead");
} else if ((damageType == 2) && (_root.marineData[marineID][9] < 2)) {
trace("damage category is 2.2");
if (_root.grenadeShoot == true) {
_root.friendlyFireTotal = _root.friendlyFireTotal + 1;
if (marineID == 9) {
_root.burkShot = 1;
}
}
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.heartRate.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.grenadeShoot == true) {
_root.friendlyFireTotal = _root.friendlyFireTotal + 1;
if (marineID == 9) {
_root.burkShot = 1;
}
}
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.heartRate.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.heartRate.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 if (_root.marineData[marine][9] > 1) {
combatResult = "grabbed";
} 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"];
function checkLOS(targetY, targetX) {
tempArray = [];
LOS = true;
currentYDist = 20;
currentXDist = 20;
loopLocation = 0;
yDiff = targetY - _root.marineData[_root.marineSelect][6];
xDiff = targetX - _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);
return(LOS);
}
_root.onEnterFrame = function () {
if ((((north._xmouse > -300) && (north._xmouse < 300)) && (north._ymouse > 0)) && (north._ymouse < 20)) {
} else {
buttonUp = false;
}
if ((((west._xmouse > -300) && (west._xmouse < 300)) && (west._ymouse > 0)) && (west._ymouse < 20)) {
} else {
buttonLeft = false;
}
if ((((east._xmouse > -300) && (east._xmouse < 300)) && (east._ymouse > 0)) && (east._ymouse < 20)) {
} else {
buttonRight = false;
}
if ((((south._xmouse > -300) && (south._xmouse < 300)) && (south._ymouse > 0)) && (south._ymouse < 20)) {
} else {
buttonDown = false;
}
if (Key.isDown(37) || (buttonLeft == true)) {
scrollLeft = true;
} else {
scrollLeft = false;
}
if (Key.isDown(39) || (buttonRight == true)) {
scrollRight = true;
} else {
scrollRight = false;
}
if (Key.isDown(38) || (buttonUp == true)) {
scrollUp = true;
} else {
scrollUp = false;
}
if (Key.isDown(40) || (buttonDown == true)) {
scrollDown = true;
} else {
scrollDown = false;
}
if (scrollLeft == true) {
_root.actionarea._x = _root.actionarea._x + 20;
}
if (scrollRight == true) {
_root.actionarea._x = _root.actionarea._x - 20;
}
if (scrollUp == true) {
_root.actionarea._y = _root.actionarea._y + 20;
}
if (scrollDown == true) {
_root.actionarea._y = _root.actionarea._y - 20;
}
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);
_root.trouble.xText = " " + testX;
_root.trouble.yText = " " + testY;
_root.trouble.aliensText = " " + _root.mapArray[testY][testX][5][0];
_root.trouble.stunedText = " " + _root.mapArray[testY][testX][5][1];
_root.trouble.marineText = " " + _root.mapArray[testY][testX][1];
_root.trouble.condText = " " + _root.marineData[_root.mapArray[testY][testX][1]][2];
_root.trouble.grabText = "";
t = 0;
while (t < _root.marineOrder.length) {
_root.trouble.grabText = ((((((_root.trouble.grabText + " ") + _root.mapArray[testY][testX][3][_root.marineOrder[t]]) + " ") + _root.marineData[_root.marineOrder[t]][8]) + " ") + _root.marineData[_root.marineOrder[t]][9]) + newline;
t++;
}
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) {
grenLOS = checkLOS(_root.grenadeY, _root.grenadeX);
_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;
}
}
if (_root.flameGroundOn == 1) {
_root.actionarea.flameIcon._x = (testX * 40) + 20;
_root.actionarea.flameIcon._y = (testY * 40) + 20;
_root.flameX = testX;
_root.flameY = testY;
Ydist = _root.flameY - _root.marineData[_root.marineSelect][6];
Xdist = _root.flameX - _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.flameY][_root.flameX][0] < 3) {
grenLOS = checkLOS(_root.flameY, _root.flameX);
if (_root.mapArray[_root.flameY][_root.flameX][6] == true) {
grenLOS = false;
}
if ((Math.abs(Ydist) > 4) || (Math.abs(Xdist) > 4)) {
grenLOS = false;
}
_root.actionarea.flameIcon._visible = true;
if (grenLOS == false) {
_root.actionarea.flameIcon.cross._visible = false;
_root.actionarea.flameIcon.LOS._visible = true;
_root.actionarea.flameIcon.button._visible = false;
} else {
_root.actionarea.flameIcon.cross._visible = true;
_root.actionarea.flameIcon.LOS._visible = false;
_root.actionarea.flameIcon.button._visible = true;
}
} else {
_root.actionarea.flameIcon._visible = false;
}
}
};
_root.SFvolume = 100;
_root.STvolume = 50;
_root.satSetting = 1;
_root.britSetting = 0;
Instance of Symbol 1261 MovieClip "actionarea" in Frame 679
/* no clip actions */
Frame 680
soundtrack = new Sound(_root.soundmenu);
soundtrack.attachSound("menumusic");
soundtrack.start(0, 99);
soundtrack.setVolume(_root.STvolume);
stop();
Frame 682
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) {
bump = 0;
if (_root.marinesInMission.length > 9) {
bump = -75;
}
_root.marineData[_root.marinesInMission[w]][2] = "out";
_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 + bump) + (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.attachMovie("newtTip", "newtTip", 11000);
_root.newtTip._x = 25;
_root.newtTip._y = 252;
_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 684
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.marineData[_root.marineOrder[placeCount]][2] = "target";
_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++;
}
if (_root.mapName != "operations") {
removeMovieClip(_root.actionarea.Deploy);
} else {
_root.actionarea.Deploy.operationsDeploy1._visible = false;
}
_root.plaqueCage.plaqueCage2.arrow._visible = false;
if (_root.mapName == "rescue") {
p = 0;
while (p < _root.cocoonMarines.length) {
_root.marinesInMission[_root.marinesInMission.length] = _root.cocoonMarines[p];
_root.marineOrder[_root.marineOrder.length] = _root.cocoonMarines[p];
p++;
}
}
soundtrack.stop("menumusic");
soundtrack.attachSound(_root.mapName);
soundtrack.start(0, 99);
soundtrack.setVolume(_root.STvolume);
if (_root.mapName == "operations") {
_root.newtTip.removeMovieClip();
}
m = 0;
while (m < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]][2] == "pistol") {
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].reloads = 1;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].ammo = 13;
}
if (_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]][2] == "flame unit") {
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].reloads = 0;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].ammo = 20;
}
if (_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]][2] == "pulse rifle") {
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].reloads = 1;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].ammo = 16;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].grenades = 4;
}
if (_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]][2] == "machine gun") {
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].reloads = 1;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].ammo = 26;
}
if (_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]][2] == "shotgun") {
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].reloads = 1;
_root.marineData[_root.marineOrder[m]][_root.marineData[_root.marineOrder[m]][12]].ammo = 8;
}
m++;
}
if (_root.mapName == "rescue") {
_root.marineData[11][3].reloads = 0;
_root.marineData[11][3].ammo = 16;
_root.marineData[11][13].reloads = 0;
_root.marineData[11][13].ammo = 20;
}
gotoAndPlay ("alienTurnStart");
} 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.marineData[9][2] = "target";
_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 686
if (_root.currentTurn < 9) {
turnText = "0" + (_root.currentTurn + 1);
} else {
turnText = _root.currentTurn + 1;
}
_root.turnMarker.turnMarkerText = "" + turnText;
gotoAndPlay ("alienTurnMarker");
Frame 704
gotoAndPlay ("makeRangeArray");
Frame 705
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 != 14) && (((_root.actionarea.mainMap.opMap.fog1._alpha == 100) || (_root.mapArray[13][9][2] != null)) || (_root.mapArray[13][10][2] != null))) {
_root.alienDoor1 = _root.alienDoor1 + 1;
if (_root.alienDoor1 == 14) {
_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.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;
_root.burkeDoor1 = 4;
} else {
_root.actionarea.door1.gotoAndPlay("doorbash");
}
}
}
if (_root.burkeDoor1 == 4) {
trace("_root.aliensInRoom " + _root.aliensInRoom);
tempAlienCheck = 0;
i = 0;
while (i < _root.aliensArray.length) {
if ((_root.aliensArray[i][2] != "dead") && (_root.aliensArray[i][2] != "out")) {
tempAlienCheck = tempAlienCheck + 1;
}
i++;
}
trace("tempAlienCheck " + tempAlienCheck);
if (_root.turnArray[_root.currentTurn] == null) {
_root.turnArray[_root.currentTurn] = [];
}
trace(" LOOOOOOOOOOOK =====> " + _root.turnArray[_root.currentTurn]);
if ((_root.aliensInRoom > 0) && (tempAlienCheck < 10)) {
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [7, 1];
_root.aliensInRoom = _root.aliensInRoom - 1;
tempAlienCheck = tempAlienCheck + 1;
}
if ((_root.aliensInRoom > 0) && (tempAlienCheck < 10)) {
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [7, 1];
_root.aliensInRoom = _root.aliensInRoom - 1;
tempAlienCheck = tempAlienCheck + 1;
}
if ((_root.aliensInRoom > 0) && (tempAlienCheck < 10)) {
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [7, 1];
_root.aliensInRoom = _root.aliensInRoom - 1;
tempAlienCheck = tempAlienCheck + 1;
}
if ((_root.aliensInRoom > 0) && (tempAlienCheck < 10)) {
_root.turnArray[_root.currentTurn][_root.turnArray[_root.currentTurn].length] = [7, 1];
_root.aliensInRoom = _root.aliensInRoom - 1;
tempAlienCheck = tempAlienCheck + 1;
}
trace(" LOOOOOOOOOOOK =====> " + _root.turnArray[_root.currentTurn]);
}
}
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;
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[m]][0]].healthMonitor.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[m]][0]].heartRateMonitor.heartRate1.gotoAndPlay("dead");
_root.plaqueCage.plaqueCage2["plaque" + _root.marineData[_root.marineOrder[m]][0]].heartRateMonitor.heartRate2.gotoAndPlay("dead");
}
m++;
}
}
}
_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] < 2) {
_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";
}
if (_root.marineData[_root.aliensArray[n][4]][9] > 1) {
_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("==============================NEW MOVE CODE =========================================");
trace("==============================NEW MOVE CODE =========================================");
trace("==============================NEW MOVE CODE =========================================");
trace("==============================NEW MOVE CODE =========================================");
trace("==============================NEW MOVE CODE =========================================");
n = 0;
while (n < _root.aliensArray.length) {
_root.aliensArray[n][5] = [];
n++;
}
n = 0;
while (n < _root.aliensArray.length) {
trace("WE ARE AT ALIEN " + n);
n++;
}
var AlienLoopNum = 0;
var MarineLoopNum = 0;
var thinkStart = 0;
gotoAndPlay ("calcAlienArray");
}
Frame 710
trace("AlienLoopNum = " + AlienLoopNum);
if (AlienLoopNum < _root.aliensArray.length) {
trace("MarineLoopNum = " + MarineLoopNum);
if ((_root.aliensArray[AlienLoopNum][2] == "normal") && (MarineLoopNum < _root.marineOrder.length)) {
if (_root.marineData[_root.marineOrder[MarineLoopNum]][2] == "target") {
_root.aliensArray[AlienLoopNum][5][MarineLoopNum] = _root.findPath(_root.aliensArray[AlienLoopNum][0], _root.aliensArray[AlienLoopNum][1], _root.marineData[_root.marineOrder[MarineLoopNum]][6], _root.marineData[_root.marineOrder[MarineLoopNum]][7], false);
}
MarineLoopNum = MarineLoopNum + 1;
trace("MarineLoopNum % 2 " + (MarineLoopNum % 2));
if ((MarineLoopNum % 2) != 0) {
gotoAndPlay ("calcAlienArrayLoopLong");
} else {
gotoAndPlay ("calcAlienArrayLoop");
}
} else {
MarineLoopNum = 0;
AlienLoopNum = AlienLoopNum + 1;
gotoAndPlay ("calcAlienArrayLoop");
}
} else {
if (_root.turnArray[_root.currentTurn] == null) {
_root.turnArray[_root.currentTurn] = [];
}
trace("_root.turnArray[_root.currentTurn].length = " + _root.turnArray[_root.currentTurn].length);
_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 712
gotoAndPlay ("calcAlienArray");
Frame 714
_root.thinking.gotoAndPlay(thinkStart);
if (thinkStart == 4) {
thinkStart = 0;
} else {
thinkStart++;
}
gotoAndPlay ("calcAlienArray");
Frame 715
_root.currentLoop = "beforeProcessRangeArray";
gotoAndPlay ("processRangeArray");
Frame 716
function getBestArray(alienNum) {
p = 0;
while (p < _root.marineOrder.length) {
trace(_root.aliensArray[alienNum][5][p]);
if ((_root.marineData[_root.marineOrder[p]][2] == "target") && (_root.aliensArray[alienNum][5][p][0] != null)) {
if ((shortestMove == null) || (_root.aliensArray[alienNum][5][p].cost < shortestMove)) {
shortestMove = _root.aliensArray[alienNum][5][p].cost;
currentBest = null;
currentBest = [];
currentBest[0] = [alienNum, _root.marineOrder[p]];
} else if (_root.aliensArray[alienNum][5][p].cost == shortestMove) {
currentBest[currentBest.length] = [alienNum, _root.marineOrder[p]];
}
noTarget = false;
}
p++;
}
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!1currentBest = " + currentBest);
}
function getBest() {
randArrayNum = _root.calculateRandom(0, currentBest.length - 1);
Best[0] = currentBest[randArrayNum][0];
Best[1] = currentBest[randArrayNum][1];
trace((("Best Alien = " + Best[0]) + " Best Marine = ") + Best[1]);
newPath = _root.findPath(_root.aliensArray[Best[0]][0], _root.aliensArray[Best[0]][1], _root.marineData[Best[1]][6], _root.marineData[Best[1]][7], true);
v = 0;
while (v < newPath.length) {
trace((((((("NEW movePath " + v) + ": y = ") + newPath[v][0]) + " x = ") + newPath[v][1]) + " cost = ") + newPath.cost);
v++;
}
tempPath = [];
newPath[newPath.length - 1] = null;
t = 0;
while (t < newPath.length) {
if (newPath[t] != null) {
tempPath[tempPath.length] = newPath[t];
}
t++;
}
newPath = tempPath;
}
if (_root.userInputExpected == false) {
var shortestMove = null;
var currentBest = [];
var Best = [];
var noTarget = true;
n = 0;
while (n < _root.aliensArray.length) {
if (((_root.aliensArray[n][2] == "normal") && (_root.aliensArray[n].wait != true)) && (_root.aliensArray[n].moved != true)) {
getBestArray(n);
}
n++;
}
if ((currentBest.length != 0) && (noTarget == false)) {
getBest();
alienSelect = Best[0];
marineSelect = Best[1];
_root.aliensArray[alienSelect].moved = true;
if (_root.aliensArray[alienSelect].queen == true) {
_root.alienActions = 3;
} else {
_root.alienActions = 4;
}
gotoAndPlay ("moveAlien");
} else {
trace("_root.newAlienArrayLocation = " + _root.newAlienArrayLocation);
if ((_root.newAlienArrayLocation >= 0) && (_root.newAlienArrayLocation != null)) {
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 (_root.mapArray[randNumY][randNumX][6] == true) {
trace("ALIEN IS ON FLAME SQUARE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
}
if ((randNumX != null) && (_root.mapArray[randNumY][randNumX][6] != true)) {
newAlien = _root.aliensArray.length;
trace("NEW ALIEN " + newAlien);
if ((((_root.mapName == "operations") && (_root.actionarea.mainMap.opMap.fog1._alpha == 100)) && (randNumY < 11)) && (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;
if (_root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][1] != null) {
marineSelect = _root.mapArray[_root.aliensArray[newAlien][0]][_root.aliensArray[newAlien][1]][1];
goalY = _root.aliensArray[newAlien][0];
goalX = _root.aliensArray[newAlien][1];
trace((("move alien" + alienSelect) + " target is ") + _root.marineData[marineSelect][0]);
_root.aliensArray[alienSelect].moved = true;
_root.alienActions = 1;
_root.alienArrive = false;
gotoAndPlay ("waitForArrival");
} else {
_root.aliensArray[alienSelect][5] = [];
m = 0;
while (m < _root.marineOrder.length) {
if (_root.marineData[_root.marineOrder[m]][2] == "target") {
_root.aliensArray[alienSelect][5][m] = _root.findPath(_root.aliensArray[alienSelect][0], _root.aliensArray[alienSelect][1], _root.marineData[_root.marineOrder[m]][6], _root.marineData[_root.marineOrder[m]][7], false);
}
m++;
}
trace(_root.aliensArray[alienSelect][5]);
trace("shortestMove " + shortestMove);
trace("currentBest " + currentBest);
trace("Best " + Best);
trace("alienSelect " + alienSelect);
shortestMove = null;
currentBest = [];
Best = [];
noTarget = true;
trace("shortestMove " + shortestMove);
trace("currentBest " + currentBest.length);
trace("Best " + Best.length);
trace("alienSelect " + alienSelect);
getBestArray(alienSelect);
trace("!!!!!!!!!!!!!!!!!!!!!!!!!!1currentBest = " + currentBest);
if ((currentBest.length != 0) && (noTarget == false)) {
getBest();
marineSelect = Best[1];
trace((("move alien" + alienSelect) + " target is ") + _root.marineData[marineSelect][0]);
_root.aliensArray[alienSelect].moved = true;
_root.alienActions = 1;
_root.alienArrive = false;
gotoAndPlay ("waitForArrival");
} else {
gotoAndPlay ("beforeProcessRangeArray");
}
}
}
}
}
_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 {
trace("waiting for user input");
gotoAndPlay ("userWait");
}
Frame 721
if (_root.alienArrive == false) {
gotoAndPlay ("waitForArrival2");
} else {
gotoAndPlay ("moveAlien");
}
Frame 724
gotoAndPlay ("waitForArrival");
Frame 725
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)) {
if (_root.moveFast == true) {
moveInc = _root.tileSize;
} else {
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 {
if (mapArray[goalY][goalX][0] == 1) {
TrueMovementCost = 2;
} else {
TrueMovementCost = 1;
}
_root.alienActions = _root.alienActions - TrueMovementCost;
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 (mapArray[goalY][goalX][1] != null) {
marineSelect = mapArray[goalY][goalX][1];
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.actionarea["alien" + alienSelect].gotoAndStop("combat");
_root.marineData[marineSelect][2] = "combat";
_root.aliensArray[alienSelect][2] = "combat";
_root.aliensArray[alienSelect][4] = marineSelect;
alienCombat(alienSelect, marineSelect);
}
}
goalY = "";
goalX = "";
}
gotoAndPlay ("moveAlienRepeat");
} else if (_root.alienActions > 0) {
goalX = newPath[newPath.length - 1][1];
goalY = newPath[newPath.length - 1][0];
if (mapArray[goalY][goalX][0] == 1) {
TrueMovementCost = 2;
} else {
TrueMovementCost = 1;
}
if ((_root.alienActions - TrueMovementCost) < 0) {
goalX = "";
goalY = "";
_root.alienActions = 0;
}
if (_root.mapArray[goalY][goalX][6] == true) {
goalX = "";
goalY = "";
_root.alienActions = 0;
}
if ((_root.mapArray[goalY][goalX][5][0] - _root.mapArray[goalY][goalX][5][1]) > 0) {
goalX = "";
goalY = "";
_root.alienActions = 0;
}
if (newPath[0][0] == null) {
goalY = "";
goalX = "";
_root.alienActions = 0;
}
calcThisDirectionX = newPath[newPath.length - 1][1] - _root.aliensArray[alienSelect][1];
calcThisDirectionY = newPath[newPath.length - 1][0] - _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) {
goalX = "";
goalY = "";
_root.alienActions = 0;
}
tempPath = [];
newPath[newPath.length - 1] = null;
t = 0;
while (t < newPath.length) {
if (newPath[t] != null) {
tempPath[tempPath.length] = newPath[t];
}
t++;
}
newPath = tempPath;
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) {
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;
targetIsOK = true;
if (_root.mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][4][calcThisAngle] > 1) {
targetIsOK = false;
}
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++;
}
if (marineArray.length != 0) {
_root.actionarea["alien" + alienSelect].gotoAndPlay("attack");
}
queenAttacks = 4;
while ((queenAttacks > 0) && (marineArray.length > 0)) {
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;
targetIsOK = true;
if (_root.mapArray[_root.aliensArray[alienSelect][0]][_root.aliensArray[alienSelect][1]][4][calcThisAngle] > 1) {
targetIsOK = false;
}
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 for queen combat" + marineArray[f]);
f++;
}
if (marineArray.length != 0) {
marineChoice = _root.calculateRandom(0, marineArray.length - 1);
trace("CHOICE of queen combat" + marineArray[marineChoice]);
alienCombat(alienSelect, marineArray[marineChoice]);
queenAttacks = queenAttacks - 1;
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++;
}
}
}
}
}
gotoAndPlay ("beforeProcessRangeArray");
}
} else {
trace("waiting for user input");
gotoAndPlay ("userWait");
}
Frame 733
gotoAndPlay ("moveAlien");
Frame 734
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 739
gotoAndPlay ("userWait");
Frame 740
trace("============GOTO MARINE TURN===========");
w = 0;
while (w < _root.flameArray.length) {
_root.actionarea["fire" + w].gotoAndPlay("burnOut");
_root.mapArray[_root.flameArray[w][0]][_root.flameArray[w][1]][6] = false;
w++;
}
_root.flameArray = [];
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 ("marineTurnStart");
}
Frame 742
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.Deploy.operationsDeploy2._alpha = 0;
_root.actionarea.Deploy.operationsDeploy4._alpha = 100;
_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;
_root.actionarea.Deploy.operationsDeploy3._alpha = 100;
_root.actionarea.Deploy.operationsDeploy5._alpha = 0;
}
if (_root.currentTurn == 6) {
_root.mapArray[9][9][0] = 0;
_root.mapArray[9][10][0] = 0;
_root.actionarea.Deploy.operationsDeploy2._alpha = 100;
if (_root.burkeDoor1 == 1) {
_root.actionarea.Deploy.operationsDeploy5._alpha = 100;
} else {
_root.actionarea.Deploy.operationsDeploy3._alpha = 100;
_root.burkeDoor1 = 2;
}
}
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] = 3;
_root.mapArray[13][9][4][180] = 3;
_root.mapArray[13][9][4][135] = 3;
_root.mapArray[13][10][4][180] = 3;
_root.mapArray[13][10][4][225] = 3;
_root.mapArray[14][8][4][45] = 3;
_root.mapArray[14][9][4][0] = 3;
_root.mapArray[14][9][4][45] = 3;
_root.mapArray[14][10][4][-45] = 3;
_root.mapArray[14][10][4][0] = 3;
}
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] = 3;
_root.mapArray[14][7][4][135] = 3;
_root.mapArray[14][8][4][270] = 3;
_root.mapArray[14][8][4][225] = 3;
_root.mapArray[15][7][4][45] = 3;
_root.mapArray[15][7][4][90] = 3;
_root.mapArray[15][7][4][135] = 3;
_root.mapArray[15][8][4][-45] = 3;
_root.mapArray[15][8][4][270] = 3;
_root.mapArray[16][8][4][-45] = 3;
}
if ((_root.currentTurn == 15) && (_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 ("marineTurnStart");
}
} 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 ("marineTurnStart");
}
Frame 745
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 747
_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 752
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 753
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 754
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 755
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 756
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 757
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 758
_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 759
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 760
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 761
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 762
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Frame 763
_root.actionarea._x = ReturnX;
_root.actionarea._y = ReturnY;
Frame 772
_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 789
gotoAndPlay ("beforeMakeButtons");
Frame 790
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 791
removeAllbuttons();
_root.plaqueCage.plaqueCage2.arrow._x = 101.25 * _root.marineOrderCurrentPosition;
_root.plaqueCage.plaqueCage2.arrow._visible = true;
if (_root.marineOrder[_root.marineOrderCurrentPosition] == 10) {
RipNewtxdiff = null;
RipNewtydiff = null;
RipNewtdiff = null;
_root.ripleyNewtCheck = 1;
if (_root.currentMarineActions == 0) {
RipNewtxdiff = Math.abs(_root.marineData[11][7] - _root.marineData[10][7]);
RipNewtydiff = Math.abs(_root.marineData[11][6] - _root.marineData[10][6]);
if (RipNewtxdiff > RipNewtydiff) {
RipNewtdiff = RipNewtxdiff;
} else {
RipNewtdiff = RipNewtydiff;
}
if (RipNewtdiff < 2) {
_root.ripleyNewtCheck = 1;
_root.newtLimitedMove = 0;
}
if (RipNewtdiff == 2) {
_root.ripleyNewtCheck = 1;
_root.newtLimitedMove = 1;
}
if (RipNewtdiff > 2) {
_root.ripleyNewtCheck = 0;
_root.newtLimitedMove = 0;
}
}
if (_root.marineData[11][9] > 1) {
_root.ripleyNewtCheck = 1;
_root.newtLimitedMove = 0;
}
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][6] == true) {
directionBlocked = true;
}
if ((_root.marineSelect == 10) && (_root.newtLimitedMove == 1)) {
tempOKCheck = false;
tt = 0;
while (tt <= 2) {
uu = 0;
while (uu <= 2) {
if ((((_root.marineData[11][6] + tt) - 1) == ((_root.marineData[10][6] + t) - 1)) && (((_root.marineData[11][7] + uu) - 1) == ((_root.marineData[10][7] + u) - 1))) {
tempOKCheck = true;
}
uu++;
}
tt++;
}
if (tempOKCheck == false) {
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 (((_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo > 0) && (targetNum != null)) || (Dist == 1)) {
marineCheck = false;
if (_root.mapArray[_root.aliensArray[s][0]][_root.aliensArray[s][1]][1] != null) {
marineCheck = true;
}
f = 0;
while (f < _root.marineOrder.length) {
if (_root.mapArray[_root.aliensArray[s][0]][_root.aliensArray[s][1]][3][_root.marineOrder[f]] == "inc") {
marineCheck = true;
}
f++;
}
if (marineCheck == true) {
_root.actionarea.attachMovie("shootingMarine", "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;
} else {
_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++;
}
buttonIncriment = 0;
if ((_root.marineData[_root.marineSelect][10] == null) && (_root.marineSelect != 10)) {
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 = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "incMarine" + f;
_root["incMarine" + f].gotoAndStop(_root.marineOrder[f] + 1);
buttonIncriment = buttonIncriment + 1;
}
f++;
}
}
buttonIncriment = 1014;
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] != "none") {
_root.attachMovie("ammoCounter", "ammoCounter", 6503);
_root.ammoCounter._x = (buttonIncriment - _root.ammoCounter._width) - 5;
_root.ammoCounter._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "ammoCounter";
diffY = Math.abs(_root.marineData[11][6] - _root.marineData[10][6]);
diffX = Math.abs(_root.marineData[11][7] - _root.marineData[10][7]);
_root.ammoCounter.gotoAndStop("ammo" + _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo);
buttonIncriment = (buttonIncriment - _root.ammoCounter._width) - 5;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads > 0) {
_root.attachMovie("reloadAmmo", "reloadAmmo", 6506);
_root.reloadAmmo._x = (buttonIncriment - _root.reloadAmmo._width) - 5;
_root.reloadAmmo._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "reloadAmmo";
buttonIncriment = (buttonIncriment - _root.ammoCounter._width) - 5;
}
if ((_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].grenades > 0) && (_root.marineData[_root.marineSelect][2] != "combat")) {
_root.attachMovie("grenadeSelectClip", "grenadeSelectClip", 6500);
_root.grenadeSelectClip._x = (buttonIncriment - _root.grenadeSelectClip._width) - 5;
_root.grenadeSelectClip._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "grenadeSelectClip";
buttonIncriment = (buttonIncriment - _root.grenadeSelectClip._width) - 5;
_root.attachMovie("grenadeAmmo", "grenadeAmmo", 6504);
_root.grenadeAmmo._x = (buttonIncriment - _root.grenadeAmmo._width) - 5;
_root.grenadeAmmo._y = 191;
_root.grenadeAmmo.gotoAndStop("grenades" + _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].grenades);
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "grenadeAmmo";
buttonIncriment = (buttonIncriment - _root.grenadeAmmo._width) - 5;
}
if ((_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "flame unit") && (_root.marineData[_root.marineSelect][2] != "combat")) {
_root.attachMovie("flameSelectClip", "flameSelectClip", 6500);
_root.flameSelectClip._x = (buttonIncriment - _root.flameSelectClip._width) - 5;
_root.flameSelectClip._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "flameSelectClip";
buttonIncriment = (buttonIncriment - _root.flameSelectClip._width) - 5;
}
if ((_root.marineSelect == 11) && (_root.mapName == "rescue")) {
_root.attachMovie("weaponSwitchClip", "weaponSwitchClip", 6501);
_root.weaponSwitchClip._x = (buttonIncriment - _root.weaponSwitchClip._width) - 5;
_root.weaponSwitchClip._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "weaponSwitchClip";
if (_root.marineData[_root.marineSelect][12] == 3) {
_root.weaponSwitchClip.gotoAndStop("switch3");
} else {
_root.weaponSwitchClip.gotoAndStop("switch13");
}
buttonIncriment = (buttonIncriment - _root.weaponSwitchClip._width) - 5;
}
if (((_root.mapName == "rescue") && (_root.marineSelect == 11)) && (_root.marineData[11][9] != 3)) {
_root.attachMovie("rangeToNewt", "rangeToNewt", 6502);
_root.rangeToNewt._x = (buttonIncriment - _root.rangeToNewt._width) - 5;
_root.rangeToNewt._y = 191;
_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";
}
buttonIncriment = (buttonIncriment - _root.rangeToNewt._width) - 5;
}
if ((_root.mapName == "operations") && (_root.marineData[_root.marineSelect][11] > 0)) {
_root.attachMovie("torch", "torch", 5040);
_root.torch._x = (buttonIncriment - _root.torch._width) - 7;
_root.torch._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "torch";
buttonIncriment = (buttonIncriment - _root.torch._width) - 7;
}
if ((_root.mapName == "reactor") && (_root.marineSelect == 6)) {
trace((("_root.currentTurn = " + _root.currentTurn) + " _root.aponeBonus = ") + _root.aponeBonus);
if (_root.currentTurn < 4) {
trace("_root.currentTurn = " + _root.currentTurn);
if ((_root.currentTurn == _root.aponeBonus) || (_root.aponeBonus == 5)) {
if (_root.aponeBonus == 3) {
_root.aponeBonus = 5;
trace(" _root.aponeBonus = " + _root.aponeBonus);
}
} else {
_root.aponeBonus = 10;
}
}
if ((_root.aponeBonus < 5) && (_root.currentMarineActions == 0)) {
_root.attachMovie("AponeHelmet", "AponeHelmet", 6507);
_root.AponeHelmet._x = (buttonIncriment - _root.AponeHelmet._width) - 5;
_root.AponeHelmet._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "AponeHelmet";
buttonIncriment = (buttonIncriment - _root.rangeToNewt._width) - 5;
}
}
if ((_root.marineData[_root.marineSelect][10] != null) && (_root.marineSelect != 10)) {
_root.attachMovie("incMarineDrop", "incMarineDrop", 6000);
_root.incMarineDrop._x = (buttonIncriment - _root.incMarineDrop._width) - 5;
_root.incMarineDrop._y = 191;
_root.marineIncButtonsArray[_root.marineIncButtonsArray.length] = "incMarineDrop";
_root.incMarineDrop.gotoAndStop(_root.marineData[_root.marineSelect][10] + 1);
buttonIncriment = (buttonIncriment - _root.incMarineDrop._width) - 5;
}
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.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.gotoAndStop("zero");
_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 ("alienTurnStart");
trace("test test test test test test ");
}
}
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 795
trace("in the middle of the loop");
stop();
Frame 796
trace("STOP1");
soundtrack.stop(_root.mapName);
soundtrack.attachSound("endmission");
soundtrack.start(0, 1);
soundtrack.setVolume(_root.STvolume);
textVar1 = "";
textVar2 = "";
textVar3 = "";
textVar4 = "";
textVar5 = "";
removeMovieClip(_root.plaqueCage.plaqueCage2.arrow);
activeMarine = [];
woundedMarine = [];
incMarine = [];
rescuedMarine = [];
MIAMarine = [];
KIAMarine = [];
_root.aliensKilled = 0;
m = 0;
while (m < _root.marinesInMission.length) {
_root.marineData[_root.marinesInMission[m]][16] = _root.marineData[_root.marinesInMission[m]][16] + _root.marineData[_root.marinesInMission[m]][15];
trace(_root.marineData[_root.marinesInMission[m]][0]);
trace("_root.marineData[_root.marineOrder[m]][9] " + _root.marineData[_root.marinesInMission[m]][9]);
trace("_root.marineData[_root.marineOrder[m]][8] " + _root.marineData[_root.marinesInMission[m]][8]);
trace("_root.marineData[_root.marineOrder[m]][2] " + _root.marineData[_root.marinesInMission[m]][2]);
if (_root.marineData[_root.marinesInMission[m]][9] == 0) {
activeMarine[activeMarine.length] = _root.marinesInMission[m];
}
if (_root.marineData[_root.marinesInMission[m]][9] == 1) {
woundedMarine[woundedMarine.length] = _root.marinesInMission[m];
}
if (_root.marineData[_root.marinesInMission[m]][9] == 2) {
if ((_root.marineData[_root.marinesInMission[m]][2] == "out") && (_root.marineData[_root.marinesInMission[m]][8] != 1)) {
inCocoon = false;
n = 0;
while (n < _root.cocoonMarines.length) {
if (_root.cocoonMarines[n] == _root.marinesInMission[m]) {
inCocoon = true;
}
n++;
}
if (inCocoon == true) {
rescuedMarine[rescuedMarine.length] = _root.marinesInMission[m];
} else {
incMarine[incMarine.length] = _root.marinesInMission[m];
}
} else {
MIAMarine[MIAMarine.length] = _root.marinesInMission[m];
}
}
if (_root.marineData[_root.marinesInMission[m]][9] == 3) {
KIAMarine[KIAMarine.length] = _root.marinesInMission[m];
}
m++;
}
g = 0;
while (g < activeMarine.length) {
textVar2 = (textVar2 + _root.marineData[activeMarine[g]][0]) + newline;
g++;
}
g = 0;
while (g < woundedMarine.length) {
textVar2 = (textVar2 + _root.marineData[woundedMarine[g]][0]) + newline;
g++;
}
g = 0;
while (g < incMarine.length) {
textVar2 = (textVar2 + _root.marineData[incMarine[g]][0]) + newline;
g++;
}
g = 0;
while (g < rescuedMarine.length) {
textVar2 = (textVar2 + _root.marineData[rescuedMarine[g]][0]) + newline;
g++;
}
g = 0;
while (g < MIAMarine.length) {
textVar2 = (textVar2 + _root.marineData[MIAMarine[g]][0]) + newline;
g++;
}
g = 0;
while (g < KIAMarine.length) {
textVar2 = (textVar2 + _root.marineData[KIAMarine[g]][0]) + newline;
g++;
}
textVar2 = (textVar2 + "\nTurn: ") + (_root.currentTurn + 1);
z = 0;
while (z < _root.aliensArray.length) {
if (_root.aliensArray[z][2] == "dead") {
_root.aliensKilled = _root.aliensKilled + 1;
}
z++;
}
_root.totalAliensKilled = totalAliensKilled + _root.aliensKilled;
textVar2 = (((textVar2 + "\nAliens killed: ") + _root.aliensKilled) + " Total: ") + _root.totalAliensKilled;
queenkilled = 0;
if (_root.mapName == "rescue") {
if (_root.aliensArray[_root.alienQueen][2] == "dead") {
textVar2 = textVar2 + " Alien Queen: Dead";
queenkilled = 1;
} else {
textVar2 = textVar2 + " Alien Queen: Unknown";
queenkilled = 0;
}
}
g = 0;
while (g < activeMarine.length) {
textVar3 = textVar3 + " active\n";
g++;
}
g = 0;
while (g < woundedMarine.length) {
textVar3 = textVar3 + " wounded\n";
g++;
}
g = 0;
while (g < incMarine.length) {
textVar3 = textVar3 + " incapacitated\n";
g++;
}
g = 0;
while (g < rescuedMarine.length) {
textVar3 = textVar3 + " rescued\n";
g++;
}
g = 0;
while (g < MIAMarine.length) {
textVar3 = textVar3 + " MIA\n";
g++;
}
g = 0;
while (g < KIAMarine.length) {
textVar3 = textVar3 + " KIA\n";
g++;
}
g = 0;
while (g < activeMarine.length) {
textVar4 = (textVar4 + _root.marineData[activeMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < woundedMarine.length) {
textVar4 = (textVar4 + _root.marineData[woundedMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < incMarine.length) {
textVar4 = (textVar4 + _root.marineData[incMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < rescuedMarine.length) {
textVar4 = (textVar4 + _root.marineData[rescuedMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < MIAMarine.length) {
textVar4 = (textVar4 + _root.marineData[MIAMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < KIAMarine.length) {
textVar4 = (textVar4 + _root.marineData[KIAMarine[g]][15]) + newline;
g++;
}
g = 0;
while (g < activeMarine.length) {
textVar5 = (textVar5 + _root.marineData[activeMarine[g]][16]) + newline;
g++;
}
g = 0;
while (g < woundedMarine.length) {
textVar5 = (textVar5 + _root.marineData[woundedMarine[g]][16]) + newline;
g++;
}
g = 0;
while (g < incMarine.length) {
textVar5 = (textVar5 + _root.marineData[incMarine[g]][16]) + newline;
g++;
}
g = 0;
while (g < rescuedMarine.length) {
textVar5 = (textVar5 + _root.marineData[rescuedMarine[g]][16]) + newline;
g++;
}
g = 0;
while (g < MIAMarine.length) {
textVar5 = (textVar5 + _root.marineData[MIAMarine[g]][16]) + newline;
g++;
}
g = 0;
while (g < KIAMarine.length) {
textVar5 = (textVar5 + _root.marineData[KIAMarine[g]][16]) + newline;
g++;
}
textVar6 = "";
textVar7 = "";
textVar8 = "";
textVar9 = "";
textVar10 = "";
textVar11 = "";
textVar12 = "";
textVar6 = textVar6 + "Kills\n";
textVar6 = textVar6 + "Stunned aliens\n";
textVar6 = textVar6 + "Active marines\n";
textVar6 = textVar6 + "Wounded marines\n";
textVar6 = textVar6 + "Incapacitated marines\n";
textVar6 = textVar6 + "Rescued marines\n";
if (_root.mapName == "rescue") {
textVar6 = textVar6 + "Cocoons uncut\n";
}
textVar6 = textVar6 + "Friendly fire\n";
textVar6 = textVar6 + "TOTAL\n";
textVar7 = (textVar7 + _root.aliensKilled) + newline;
textVar7 = (textVar7 + _root.stunnedAliensTotal) + newline;
textVar7 = (textVar7 + activeMarine.length) + newline;
textVar7 = (textVar7 + woundedMarine.length) + newline;
textVar7 = (textVar7 + (incMarine.length + rescuedMarine.length)) + newline;
textVar7 = (textVar7 + _root.rescuedMarinesTotal) + newline;
if (_root.mapName == "rescue") {
textVar7 = (textVar7 + (_root.cocoonMarines.length - _root.cocoonsCutTotal)) + newline;
}
textVar7 = (textVar7 + _root.friendlyFireTotal) + newline;
textVar8 = textVar8 + "x 10\n";
textVar8 = textVar8 + "x 50\n";
textVar8 = textVar8 + "x 100\n";
textVar8 = textVar8 + "x 75\n";
textVar8 = textVar8 + "x 50\n";
textVar8 = textVar8 + "x 200\n";
if (_root.mapName == "rescue") {
textVar8 = textVar8 + "x -200\n";
}
textVar8 = textVar8 + "x -200\n";
textVar9 = (textVar9 + (_root.aliensKilled * 10)) + newline;
textVar9 = (textVar9 + (_root.stunnedAliensTotal * 50)) + newline;
textVar9 = (textVar9 + (activeMarine.length * 100)) + newline;
textVar9 = (textVar9 + (woundedMarine.length * 75)) + newline;
textVar9 = (textVar9 + ((incMarine.length + rescuedMarine.length) * 50)) + newline;
textVar9 = (textVar9 + (_root.rescuedMarinesTotal * 200)) + newline;
if (_root.mapName == "rescue") {
textVar9 = (textVar9 + ((_root.cocoonMarines.length - _root.cocoonsCutTotal) * -200)) + newline;
}
textVar9 = (textVar9 + (_root.friendlyFireTotal * -200)) + newline;
missionTotalScore = 0;
missionTotalScore = ((((((_root.aliensKilled * 10) + (_root.stunnedAliensTotal * 50)) + (activeMarine.length * 100)) + (woundedMarine.length * 75)) + ((incMarine.length + rescuedMarine.length) * 50)) + (_root.rescuedMarinesTotal * 200)) + (_root.friendlyFireTotal * -200);
if (_root.mapName == "rescue") {
missionTotalScore = missionTotalScore + ((_root.cocoonMarines.length - _root.cocoonsCutTotal) * -200);
}
textVar9 = (textVar9 + missionTotalScore) + newline;
if ((_root.burkShot == 1) && (_root.mapName == "operations")) {
missionTotalScore = missionTotalScore - 500;
}
if (_root.mapName == "reactor") {
textVar12 = "";
_root.ReactorScore = missionTotalScore;
if (_root.aponeBonus == 5) {
_root.ReactorScore = _root.ReactorScore + 300;
textVar12 = textVar12 + "Apone Bonus +300\n";
}
if (_root.letsRockBonus == 1) {
_root.ReactorScore = _root.ReactorScore + 100;
textVar12 = textVar12 + "Lets Rock Bonus +100";
}
}
if (_root.mapName == "rescue") {
_root.RescueScore = missionTotalScore;
if (queenkilled == 1) {
_root.RescueScore = _root.RescueScore + 500;
textVar12 = textVar12 + "Queen Killed +500";
}
}
if (_root.mapName == "operations") {
_root.OperationsScore = missionTotalScore;
}
textVar10 = textVar10 + "REACTOR SCORE\n";
textVar10 = textVar10 + "OPERATIONS SCORE\n";
textVar10 = textVar10 + "RESCUE SCORE\n\n";
textVar10 = textVar10 + "TOTAL SCORE";
textVar11 = (textVar11 + _root.ReactorScore) + newline;
textVar11 = (textVar11 + _root.OperationsScore) + newline;
textVar11 = (textVar11 + _root.RescueScore) + "\n\n";
textVar11 = (textVar11 + ((_root.ReactorScore + _root.OperationsScore) + _root.RescueScore)) + "";
if (_root.mapName == "operations") {
if (_root.burkShot == 1) {
textVar12 = "You shot Burk -500";
} else {
textVar12 = "";
}
}
_root.attachMovie("summary", "summary", 11000);
_root.summary._x = 512;
_root.summary._y = 250;
m = 0;
while (m < _root.marineOrder.length) {
_root.marineData[_root.marineOrder[m]][15] = 0;
m++;
}
_root.stunnedAliensTotal = 0;
_root.rescuedMarinesTotal = 0;
_root.friendlyFireTotal = 0;
stop();
Frame 799
trace("STOP2");
stop();
Symbol 7 MovieClip [bannerWounded] Frame 45
removeMovieClip(this);
Symbol 10 MovieClip [bannerIncapacitated] Frame 45
removeMovieClip(this);
Symbol 13 MovieClip [bannerGrabbed] Frame 45
removeMovieClip(this);
Symbol 16 MovieClip [bannerDead] Frame 45
removeMovieClip(this);
Symbol 20 Button
on (release, keyPress "z") {
trace("pass shot");
_root.gotoAndPlay("makeButtons");
}
Symbol 53 MovieClip [ammoCounter] Frame 1
stop();
Symbol 70 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 70 MovieClip [grenadeExplosion] Frame 2
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 3
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 4
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 5
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 6
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 7
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
_root.grenadeShoot = true;
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.marineData[_root.marineSelect][15] = _root.marineData[_root.marineSelect][15] + 1;
_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++;
}
_root.grenadeShoot = false;
Symbol 70 MovieClip [grenadeExplosion] Frame 8
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 9
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 10
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 11
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 12
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 13
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 14
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 15
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 16
_root.actionarea._x = (ReturnX - 10) + _root.calculateRandom(0, 20);
_root.actionarea._y = (ReturnY - 10) + _root.calculateRandom(0, 20);
Symbol 70 MovieClip [grenadeExplosion] Frame 17
_root.actionarea._x = ReturnX;
_root.actionarea._y = ReturnY;
_root.gotoAndPlay("makeButtons");
Symbol 70 MovieClip [grenadeExplosion] Frame 66
removeMovieClip(this);
Symbol 77 Button
on (release) {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.preload.stop("preloader");
gotoAndPlay (679);
}
}
Symbol 79 MovieClip Frame 1
this.percent = Math.floor((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) + " % LOADED";
Symbol 79 MovieClip Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.percent = "100 % LOADED";
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 79 MovieClip Frame 3
_root.begin._alpha = 100;
stop();
Symbol 99 Button
on (release) {
this.removeMovieClip();
}
Symbol 106 Button
on (release) {
_root.targetSelectShoot(alienName, Dist, rangeBand);
}
Symbol 111 Button
on (release) {
gotoAndStop ("continue");
}
Symbol 115 Button
on (release) {
gotoAndStop ("rescue");
}
Symbol 119 Button
on (release) {
gotoAndStop ("reactor");
}
Symbol 122 Button
on (release) {
gotoAndStop ("operations");
}
Symbol 126 Button
on (release) {
gotoAndStop ("weapons");
}
Symbol 130 Button
on (release) {
gotoAndStop ("gengameplay");
}
Symbol 134 Button
on (release) {
gotoAndStop(this._currentframe + 1);
}
Symbol 139 Button
on (release) {
gotoAndStop ("main");
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 148 MovieClip Frame 3
stop();
Symbol 148 MovieClip Frame 4
stop();
Symbol 148 MovieClip Frame 5
stop();
Symbol 148 MovieClip Frame 6
stop();
Symbol 151 Button
on (release) {
gotoAndStop(this._currentframe - 1);
}
Symbol 152 Button
on (release) {
gotoAndStop(this._currentframe + 1);
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 3
stop();
Symbol 183 MovieClip Frame 4
stop();
Symbol 183 MovieClip Frame 5
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 3
stop();
Symbol 189 MovieClip Frame 4
stop();
Symbol 190 MovieClip Frame 1
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 3
stop();
Symbol 195 MovieClip Frame 4
stop();
Symbol 325 Button
on (release) {
gotoAndStop(this._currentframe - 1);
}
Symbol 326 Button
on (release) {
gotoAndStop (1);
}
Symbol 327 MovieClip [tutorial] Frame 1
stop();
Symbol 357 MovieClip [queen] Frame 2
aliendeath = new Sound(this);
aliendeath.attachSound("queen1");
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 357 MovieClip [queen] Frame 19
gotoAndStop ("normal0");
Symbol 357 MovieClip [queen] Frame 46
gotoAndStop ("normal0");
Symbol 357 MovieClip [queen] Frame 47
aliendeath = new Sound(this);
aliendeath.attachSound("aliendeath" + _root.calculateRandom(2, 4));
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 357 MovieClip [queen] Frame 70
gotoAndStop ("normal0");
Symbol 357 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 357 MovieClip [queen] Frame 92
this.swapDepths(this.alienID + 50);
stop();
Symbol 360 MovieClip [fire] Frame 1
fireIcon._rotation = _root.calculateRandom(0, 360);
fireIcon._xscale = 70;
fireIcon._yscale = 70;
Symbol 360 MovieClip [fire] Frame 6
this.fireIcon._rotation = _root.calculateRandom(0, 360);
this.fireIcon._xscale = 75;
this.fireIcon._yscale = 75;
Symbol 360 MovieClip [fire] Frame 11
this.fireIcon._rotation = _root.calculateRandom(0, 360);
this.fireIcon._xscale = 80;
this.fireIcon._yscale = 80;
Symbol 360 MovieClip [fire] Frame 16
this.fireIcon._rotation = _root.calculateRandom(0, 360);
this.fireIcon._xscale = 90;
this.fireIcon._yscale = 90;
Symbol 360 MovieClip [fire] Frame 21
this.fireIcon._rotation = _root.calculateRandom(0, 360);
this.fireIcon._xscale = 100;
this.fireIcon._yscale = 100;
Symbol 360 MovieClip [fire] Frame 26
this.fireIcon._rotation = _root.calculateRandom(0, 360);
this.fireIcon._xscale = 100;
this.fireIcon._yscale = 100;
gotoAndPlay ("startBurn");
Symbol 360 MovieClip [fire] Frame 31
this.fireIcon._xscale = 100;
this.fireIcon._yscale = 100;
fireIcon._rotation = _root.calculateRandom(0, 360);
Symbol 360 MovieClip [fire] Frame 35
this.fireIcon._xscale = 70;
this.fireIcon._yscale = 70;
fireIcon._rotation = _root.calculateRandom(0, 360);
Symbol 360 MovieClip [fire] Frame 39
this.fireIcon._xscale = 50;
this.fireIcon._yscale = 50;
fireIcon._rotation = _root.calculateRandom(0, 360);
Symbol 360 MovieClip [fire] Frame 43
this.fireIcon._xscale = 30;
this.fireIcon._yscale = 30;
fireIcon._rotation = _root.calculateRandom(0, 360);
Symbol 360 MovieClip [fire] Frame 47
this.fireIcon._xscale = 10;
this.fireIcon._yscale = 10;
fireIcon._rotation = _root.calculateRandom(0, 360);
Symbol 360 MovieClip [fire] Frame 51
removeMovieClip(this);
Symbol 361 MovieClip [hallFire] Frame 1
burn = new Sound(this);
burn.attachSound("explosion");
burn.start(0, 1);
burn.setVolume(_root.SFvolume);
Symbol 361 MovieClip [hallFire] Frame 12
stop();
Symbol 366 MovieClip [block] Frame 1
stop();
Symbol 366 MovieClip [block] Frame 2
stop();
Symbol 366 MovieClip [block] Frame 3
stop();
Symbol 366 MovieClip [block] Frame 4
stop();
Symbol 389 MovieClip [flameUnitShot] Frame 29
removeMovieClip(this);
Symbol 389 MovieClip [flameUnitShot] Frame 59
removeMovieClip(this);
Symbol 393 Button
on (release) {
gotoAndStop ("points");
}
Symbol 404 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.flameArray.length) {
removeMovieClip(_root.actionarea["fire" + w]);
w++;
}
_root.flameArray = [];
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");
_root.soundtrack.attachSound("menumusic");
_root.soundtrack.start(0, 99);
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 411 Button
on (release) {
removeMovieClip(_root.actionarea.mainMap);
if (_root.meltdown._currentframe != 1) {
_root.meltdown.gotoAndStop("clear");
}
w = 0;
while (w < _root.flameArray.length) {
removeMovieClip(_root.actionarea["fire" + w]);
w++;
}
_root.flameArray = [];
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 416 Button
on (release) {
gotoAndStop ("stauts");
}
Symbol 424 MovieClip [summary] Frame 1
summary2 = _root.textVar2;
summary3 = _root.textVar3;
summary4 = _root.textVar4;
summary5 = _root.textVar5;
stop();
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 424 MovieClip [summary] Frame 3
summary2 = _root.textVar6;
summary3 = _root.textVar7;
summary4 = _root.textVar8;
summary5 = _root.textVar9;
summary6 = _root.textVar10;
summary7 = _root.textVar11;
summary8 = _root.textVar12;
stop();
Symbol 439 Button
on (release) {
if (_root.tutorial._alpha == 100) {
_root.tutorial.removeMovieClip();
} else {
_root.attachMovie("tutorial", "tutorial", 70000);
_root.tutorial._x = 440;
_root.tutorial._y = 238;
}
}
Symbol 444 Button
on (release) {
w = 0;
while (w < _root.flameArray.length) {
removeMovieClip(_root.actionarea["fire" + w]);
w++;
}
_root.flameArray = [];
w = 0;
while (w < _root.placeMarineSquares.length) {
removeMovieClip(_root.actionarea["placeMarine" + w]);
w++;
}
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);
removeMovieClip(_root.newtTip);
_root.aliensArray = [];
_root.mapArray = [];
_root.marineOrder = [];
_root.marinesInMission = [];
_root.setMarine();
_root.flameGroundOn = 0;
_root.grenade = 0;
_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 445 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 445 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 431 MovieClip "STvolumeSlider" in Symbol 445 MovieClip [soundmenu] Frame 2
onClipEvent (mouseDown) {
_root.clickCheck = 1;
}
onClipEvent (mouseUp) {
_root.clickCheck = 0;
}
Symbol 445 MovieClip [soundmenu] Frame 3
stop();
onEnterFrame = function () {
if ((((this._xmouse > 0) && (this._xmouse < 356)) && (this._ymouse > 0)) && (this._ymouse < 210)) {
_root.zoomButtons._x = _root.zoomButtons._x + 300;
_root.soundmenu._y = -50;
_root.soundmenu.gotoAndStop("volume22");
}
};
Symbol 445 MovieClip [soundmenu] Frame 4
_root.clickCheck = 0;
STvolumeSlider.slider._x = _root.STvolume * 2.7;
SFvolumeSlider.slider._x = _root.SFvolume * 2.7;
brightnessSlider.slider._x = (_root.britSetting / 3) * 270;
if (_root.moveFast == true) {
this.fastMoveButton.gotoAndPlay("fastMoveOn");
} else {
this.fastMoveButton.gotoAndPlay("fastMoveOff");
}
stop();
onEnterFrame = function () {
if (((((this._xmouse < 0) || (this._xmouse > 356)) || (this._ymouse < 0)) || (this._ymouse > 188.9)) && (_root.clickCheck == 0)) {
_root.zoomButtons._x = _root.zoomButtons._x - 300;
_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 > -5) && (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 > -5) && (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;
}
if ((((brightnessSlider._xmouse > 0) && (brightnessSlider._xmouse <= 270)) && (brightnessSlider._ymouse >= 0)) && (brightnessSlider._ymouse <= 35)) {
brightnessSlider.slider._x = brightnessSlider._xmouse;
_root.satSetting = 1 + ((brightnessSlider._xmouse * 1.5) / 270);
_root.britSetting = (brightnessSlider._xmouse * 3) / 270;
_root.adjustCOlor(_root.satSetting, _root.britSetting);
}
if ((((brightnessSlider._xmouse <= 0) && (brightnessSlider._xmouse > -5)) && (brightnessSlider._ymouse >= 0)) && (brightnessSlider._ymouse <= 35)) {
brightnessSlider.slider._x = 0;
_root.satSetting = 1;
_root.britSetting = 0;
_root.adjustCOlor(_root.satSetting, _root.britSetting);
}
if (((brightnessSlider._xmouse > 270) && (brightnessSlider._ymouse >= 0)) && (brightnessSlider._ymouse <= 35)) {
brightnessSlider.slider._x = 270;
_root.satSetting = 2.5;
_root.britSetting = 3;
_root.adjustCOlor(_root.satSetting, _root.britSetting);
}
}
};
Instance of Symbol 431 MovieClip "brightnessSlider" in Symbol 445 MovieClip [soundmenu] Frame 4
onClipEvent (mouseDown) {
_root.clickCheck = 1;
}
onClipEvent (mouseUp) {
_root.clickCheck = 0;
}
Instance of Symbol 431 MovieClip "STvolumeSlider" in Symbol 445 MovieClip [soundmenu] Frame 4
onClipEvent (mouseDown) {
_root.clickCheck = 1;
}
onClipEvent (mouseUp) {
_root.clickCheck = 0;
}
Symbol 448 Button
on (release) {
_root.selectMarine(7);
}
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 2
stop();
Symbol 465 MovieClip Frame 3
stop();
Symbol 465 MovieClip Frame 4
stop();
Symbol 465 MovieClip Frame 5
stop();
Symbol 465 MovieClip Frame 6
stop();
Symbol 465 MovieClip Frame 7
stop();
Symbol 465 MovieClip Frame 8
stop();
Symbol 465 MovieClip Frame 9
stop();
Symbol 465 MovieClip Frame 10
stop();
Symbol 465 MovieClip Frame 11
stop();
Symbol 465 MovieClip Frame 12
stop();
Symbol 465 MovieClip Frame 13
stop();
Symbol 465 MovieClip Frame 14
stop();
Symbol 465 MovieClip Frame 15
stop();
Symbol 465 MovieClip Frame 16
stop();
Symbol 465 MovieClip Frame 17
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 3
stop();
Symbol 475 MovieClip Frame 4
stop();
Symbol 478 MovieClip [plaqueWierzbowski] Frame 1
stop();
Symbol 478 MovieClip [plaqueWierzbowski] Frame 2
stop();
Symbol 479 Button
on (release) {
_root.selectMarine(2);
}
Symbol 484 MovieClip [plaqueVasquez] Frame 1
stop();
Symbol 484 MovieClip [plaqueVasquez] Frame 2
stop();
Symbol 485 Button
on (release) {
_root.selectMarine(11);
}
Symbol 490 MovieClip [plaqueRipley] Frame 1
stop();
Symbol 490 MovieClip [plaqueRipley] Frame 2
stop();
Symbol 491 Button
on (release) {
_root.selectMarine(9);
}
Symbol 496 MovieClip [plaqueNewt] Frame 1
stop();
Symbol 496 MovieClip [plaqueNewt] Frame 2
stop();
Symbol 497 Button
on (release) {
_root.selectMarine(0);
}
Symbol 501 MovieClip [plaqueHudson] Frame 1
stop();
Symbol 501 MovieClip [plaqueHudson] Frame 2
stop();
Symbol 502 Button
on (release) {
_root.selectMarine(5);
}
Symbol 506 MovieClip [plaqueHicks] Frame 1
stop();
Symbol 506 MovieClip [plaqueHicks] Frame 2
stop();
Symbol 507 Button
on (release) {
_root.selectMarine(12);
}
Symbol 512 MovieClip [plaqueGorman] Frame 1
stop();
Symbol 512 MovieClip [plaqueGorman] Frame 2
stop();
Symbol 513 Button
on (release) {
_root.selectMarine(4);
}
Symbol 518 MovieClip [plaqueFrost] Frame 1
stop();
Symbol 518 MovieClip [plaqueFrost] Frame 2
stop();
Symbol 519 Button
on (release) {
_root.selectMarine(1);
}
Symbol 524 MovieClip [plaqueDrake] Frame 1
stop();
Symbol 524 MovieClip [plaqueDrake] Frame 2
stop();
Symbol 525 Button
on (release) {
_root.selectMarine(3);
}
Symbol 530 MovieClip [plaqueDietrich] Frame 1
stop();
Symbol 530 MovieClip [plaqueDietrich] Frame 2
stop();
Symbol 531 Button
on (release) {
_root.selectMarine(8);
}
Symbol 536 MovieClip [plaqueCrowe] Frame 1
stop();
Symbol 536 MovieClip [plaqueCrowe] Frame 2
stop();
Symbol 540 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 541 Button
on (release) {
if (plaqueCage2._x <= 3) {
plaqueCage2._x = plaqueCage2._x + 50;
}
}
Symbol 551 MovieClip [plaqueBurke] Frame 1
stop();
Symbol 551 MovieClip [plaqueBurke] Frame 2
stop();
Symbol 552 Button
on (release) {
_root.selectMarine(6);
}
Symbol 557 MovieClip [plaqueApone] Frame 1
stop();
Symbol 557 MovieClip [plaqueApone] Frame 2
stop();
Symbol 585 MovieClip [Wierzbowski] Frame 1
IDname = 7;
alienName = null;
stop();
Symbol 585 MovieClip [Wierzbowski] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 585 MovieClip [Wierzbowski] Frame 9
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 585 MovieClip [Wierzbowski] Frame 16
gunshot.start(0, 1);
Symbol 585 MovieClip [Wierzbowski] Frame 23
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 585 MovieClip [Wierzbowski] Frame 28
_root.shootGun3(IDname, alienName);
stop();
Symbol 585 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 585 MovieClip [Wierzbowski] Frame 42
_root.shootFlame2(IDname, alienName);
Symbol 585 MovieClip [Wierzbowski] Frame 50
_root.shootFlame3(IDname, alienName);
stop();
Symbol 585 MovieClip [Wierzbowski] Frame 51
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 585 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 585 MovieClip [Wierzbowski] Frame 53
stop();
Symbol 585 MovieClip [Wierzbowski] Frame 54
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 585 MovieClip [Wierzbowski] Frame 61
gotoAndPlay ("cut2");
Symbol 613 MovieClip [Vasquez] Frame 1
IDname = 2;
alienName = null;
secondAlien = null;
stop();
Symbol 613 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 613 MovieClip [Vasquez] Frame 8
_root.shootGun2(IDname, alienName);
Symbol 613 MovieClip [Vasquez] Frame 20
_root.shootGun3(IDname, alienName);
stop();
Symbol 613 MovieClip [Vasquez] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 613 MovieClip [Vasquez] Frame 39
_root.shootGrenade();
Symbol 613 MovieClip [Vasquez] Frame 41
gotoAndPlay ("normal4");
Symbol 613 MovieClip [Vasquez] Frame 43
trace("THIS IS the vasquez var " + vasquezShoot);
if (_root.vasquezShoot == 0) {
_root.vasquezShoot = 1;
_root.letsRockBonus = 1;
letsrock = new Sound(this);
letsrock.attachSound("letsrock");
letsrock.start(0, 1);
letsrock.setVolume(_root.SFvolume);
} else {
this.gotoAndPlay("shootJump");
}
Symbol 613 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 613 MovieClip [Vasquez] Frame 74
_root.shootMachineGun2(IDname, alienName);
Symbol 613 MovieClip [Vasquez] Frame 88
_root.shootMachineGun3(IDname, alienName);
stop();
Symbol 613 MovieClip [Vasquez] Frame 89
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 613 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 613 MovieClip [Vasquez] Frame 91
stop();
Symbol 613 MovieClip [Vasquez] Frame 92
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 613 MovieClip [Vasquez] Frame 99
gotoAndPlay ("cut2");
Symbol 641 MovieClip [Ripley] Frame 1
IDname = 11;
alienName = null;
stop();
Symbol 641 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 641 MovieClip [Ripley] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 641 MovieClip [Ripley] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 641 MovieClip [Ripley] Frame 22
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 641 MovieClip [Ripley] Frame 38
_root.shootGrenade();
Symbol 641 MovieClip [Ripley] Frame 40
gotoAndPlay ("normal4");
Symbol 641 MovieClip [Ripley] Frame 41
stop();
Symbol 641 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 641 MovieClip [Ripley] Frame 49
_root.shootGun2(IDname, alienName);
Symbol 641 MovieClip [Ripley] Frame 57
_root.shootGun3(IDname, alienName);
stop();
Symbol 641 MovieClip [Ripley] Frame 60
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 641 MovieClip [Ripley] Frame 77
_root.shootGrenade();
Symbol 641 MovieClip [Ripley] Frame 79
gotoAndPlay ("normal3");
Symbol 641 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 641 MovieClip [Ripley] Frame 88
_root.shootFlame2(IDname, alienName);
Symbol 641 MovieClip [Ripley] Frame 103
_root.shootFlame3(IDname, alienName);
stop();
Symbol 641 MovieClip [Ripley] Frame 104
gunpump.start(0, 1);
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 641 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 641 MovieClip [Ripley] Frame 106
stop();
Symbol 651 MovieClip [Newt] Frame 1
IDname = 10;
stop();
Symbol 651 MovieClip [Newt] Frame 2
stop();
Symbol 651 MovieClip [Newt] Frame 3
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 651 MovieClip [Newt] Frame 4
stop();
Symbol 651 MovieClip [Newt] Frame 5
thisway = new Sound(this);
thisway.attachSound("thisway");
thisway.start(0, 1);
thisway.setVolume(_root.SFvolume);
Symbol 651 MovieClip [Newt] Frame 25
gotoAndPlay ("normal4");
Symbol 683 MovieClip [Hudson] Frame 1
IDname = 0;
alienName = null;
stop();
Symbol 683 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 683 MovieClip [Hudson] Frame 10
_root.shootGun2(IDname, alienName);
Symbol 683 MovieClip [Hudson] Frame 18
_root.shootGun3(IDname, alienName);
stop();
Symbol 683 MovieClip [Hudson] Frame 21
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 683 MovieClip [Hudson] Frame 37
_root.shootGrenade();
Symbol 683 MovieClip [Hudson] Frame 39
gotoAndPlay ("normal4");
Symbol 683 MovieClip [Hudson] Frame 41
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 683 MovieClip [Hudson] Frame 42
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 683 MovieClip [Hudson] Frame 49
gunshot.start(0, 1);
Symbol 683 MovieClip [Hudson] Frame 55
gunshot.start(0, 1);
Symbol 683 MovieClip [Hudson] Frame 58
_root.shootGun2(IDname, alienName);
Symbol 683 MovieClip [Hudson] Frame 62
_root.shootGun3(IDname, alienName);
stop();
Symbol 683 MovieClip [Hudson] Frame 63
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 683 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 683 MovieClip [Hudson] Frame 65
stop();
Symbol 683 MovieClip [Hudson] Frame 66
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 683 MovieClip [Hudson] Frame 73
gotoAndPlay ("cut2");
Symbol 711 MovieClip [Hicks] Frame 1
IDname = 5;
alienName = null;
stop();
Symbol 711 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 711 MovieClip [Hicks] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 711 MovieClip [Hicks] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 711 MovieClip [Hicks] Frame 22
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 711 MovieClip [Hicks] Frame 38
_root.shootGrenade();
Symbol 711 MovieClip [Hicks] Frame 40
gotoAndPlay ("normal4");
Symbol 711 MovieClip [Hicks] Frame 42
_root.vasquezShoot = 1;
Symbol 711 MovieClip [Hicks] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("shotgun");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 711 MovieClip [Hicks] Frame 47
gunpump = new Sound(this);
gunpump.attachSound("pump");
gunpump.start(0, 1);
gunpump.setVolume(_root.SFvolume);
Symbol 711 MovieClip [Hicks] Frame 52
gunshot = new Sound(this);
gunshot.attachSound("shotgun");
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 711 MovieClip [Hicks] Frame 54
gunpump.start(0, 1);
Symbol 711 MovieClip [Hicks] Frame 59
_root.shootGun3(IDname, alienName);
stop();
Symbol 711 MovieClip [Hicks] Frame 60
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 711 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 711 MovieClip [Hicks] Frame 62
stop();
Symbol 711 MovieClip [Hicks] Frame 63
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 711 MovieClip [Hicks] Frame 70
gotoAndPlay ("cut2");
Symbol 734 MovieClip [Gorman] Frame 1
IDname = 12;
alienName = null;
stop();
Symbol 734 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 734 MovieClip [Gorman] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 734 MovieClip [Gorman] Frame 19
_root.shootGun3(IDname, alienName);
stop();
Symbol 734 MovieClip [Gorman] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 734 MovieClip [Gorman] Frame 34
_root.shootGrenade();
Symbol 734 MovieClip [Gorman] Frame 36
gotoAndPlay ("normal3");
Symbol 734 MovieClip [Gorman] Frame 38
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 734 MovieClip [Gorman] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 734 MovieClip [Gorman] Frame 52
gunshot.start(0, 1);
Symbol 734 MovieClip [Gorman] Frame 59
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 734 MovieClip [Gorman] Frame 64
_root.shootGun3(IDname, alienName);
stop();
Symbol 734 MovieClip [Gorman] Frame 65
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 734 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 734 MovieClip [Gorman] Frame 67
stop();
Symbol 757 MovieClip [Frost] Frame 1
IDname = 4;
alienName = null;
stop();
Symbol 757 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 757 MovieClip [Frost] Frame 13
_root.shootFlame2(IDname, alienName);
Symbol 757 MovieClip [Frost] Frame 27
_root.shootFlame3(IDname, alienName);
stop();
Symbol 757 MovieClip [Frost] Frame 29
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 757 MovieClip [Frost] Frame 34
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 757 MovieClip [Frost] Frame 41
gunshot.start(0, 1);
Symbol 757 MovieClip [Frost] Frame 48
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 757 MovieClip [Frost] Frame 53
_root.shootGun3(IDname, alienName);
stop();
Symbol 757 MovieClip [Frost] Frame 54
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 757 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 757 MovieClip [Frost] Frame 56
stop();
Symbol 757 MovieClip [Frost] Frame 57
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 757 MovieClip [Frost] Frame 66
gotoAndPlay ("cut2");
Symbol 778 MovieClip [Drake] Frame 1
IDname = 1;
alienName = null;
secondAlien = null;
stop();
Symbol 778 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 778 MovieClip [Drake] Frame 11
_root.shootFlame2(IDname, alienName);
Symbol 778 MovieClip [Drake] Frame 25
_root.shootFlame3(IDname, alienName);
stop();
Symbol 778 MovieClip [Drake] Frame 26
stop();
Symbol 778 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 778 MovieClip [Drake] Frame 31
_root.shootMachineGun2(IDname, alienName);
Symbol 778 MovieClip [Drake] Frame 43
_root.shootMachineGun3(IDname, alienName);
stop();
Symbol 778 MovieClip [Drake] Frame 45
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 778 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 778 MovieClip [Drake] Frame 47
stop();
Symbol 778 MovieClip [Drake] Frame 48
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 778 MovieClip [Drake] Frame 55
gotoAndPlay ("cut2");
Symbol 801 MovieClip [Dietrich] Frame 1
IDname = 3;
alienName = null;
IDname = 3;
alienName = null;
stop();
Symbol 801 MovieClip [Dietrich] Frame 2
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 801 MovieClip [Dietrich] Frame 6
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 801 MovieClip [Dietrich] Frame 13
gunshot.start(0, 1);
Symbol 801 MovieClip [Dietrich] Frame 20
gunshot.start(0, 1);
_root.shootGun2(IDname, alienName);
Symbol 801 MovieClip [Dietrich] Frame 25
_root.shootGun3(IDname, alienName);
stop();
Symbol 801 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 801 MovieClip [Dietrich] Frame 36
_root.shootFlame2(IDname, alienName);
Symbol 801 MovieClip [Dietrich] Frame 52
_root.shootFlame3(IDname, alienName);
stop();
Symbol 801 MovieClip [Dietrich] Frame 53
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 801 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 801 MovieClip [Dietrich] Frame 55
stop();
Symbol 801 MovieClip [Dietrich] Frame 56
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 801 MovieClip [Dietrich] Frame 63
gotoAndPlay ("cut2");
Symbol 834 MovieClip [Crowe] Frame 1
IDname = 8;
alienName = null;
stop();
Symbol 834 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 834 MovieClip [Crowe] Frame 9
_root.shootGun2(IDname, alienName);
Symbol 834 MovieClip [Crowe] Frame 20
_root.shootGun3(IDname, alienName);
stop();
Symbol 834 MovieClip [Crowe] Frame 23
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 834 MovieClip [Crowe] Frame 39
_root.shootGrenade();
Symbol 834 MovieClip [Crowe] Frame 41
gotoAndPlay ("normal4");
Symbol 834 MovieClip [Crowe] Frame 43
_root.shootGun1(IDname, alienName);
_root.vasquezShoot = 1;
Symbol 834 MovieClip [Crowe] Frame 45
gunshot = new Sound(this);
gunshot.attachSound("pistol");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 834 MovieClip [Crowe] Frame 52
gunshot.start(0, 1);
Symbol 834 MovieClip [Crowe] Frame 59
gunshot.start(0, 1);
Symbol 834 MovieClip [Crowe] Frame 63
_root.shootGun2(IDname, alienName);
Symbol 834 MovieClip [Crowe] Frame 67
_root.shootGun3(IDname, alienName);
stop();
Symbol 834 MovieClip [Crowe] Frame 68
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 834 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 834 MovieClip [Crowe] Frame 70
stop();
Symbol 834 MovieClip [Crowe] Frame 71
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 834 MovieClip [Crowe] Frame 78
gotoAndPlay ("cut2");
Symbol 844 MovieClip [Burke] Frame 1
IDname = 9;
stop();
Symbol 844 MovieClip [Burke] Frame 2
stop();
Symbol 844 MovieClip [Burke] Frame 3
flatline = new Sound(this);
flatline.attachSound("flatline");
flatline.start(0, 1);
flatline.setVolume(_root.SFvolume);
stop();
Symbol 844 MovieClip [Burke] Frame 4
stop();
Symbol 866 MovieClip [Apone] Frame 1
IDname = 6;
alienName = null;
stop();
Symbol 866 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 866 MovieClip [Apone] Frame 10
_root.shootGun2(IDname, alienName);
Symbol 866 MovieClip [Apone] Frame 16
_root.shootGun3(IDname, alienName);
stop();
Symbol 866 MovieClip [Apone] Frame 20
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 866 MovieClip [Apone] Frame 36
_root.shootGrenade();
Symbol 866 MovieClip [Apone] Frame 38
gotoAndPlay ("normal4");
Symbol 866 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 866 MovieClip [Apone] Frame 49
_root.shootFlame2(IDname, alienName);
Symbol 866 MovieClip [Apone] Frame 75
_root.shootFlame3(IDname, alienName);
stop();
Symbol 866 MovieClip [Apone] Frame 76
trace(("IDname " + IDname) + " is inc");
stop();
Symbol 866 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 866 MovieClip [Apone] Frame 78
stop();
Symbol 866 MovieClip [Apone] Frame 79
gunshot = new Sound(this);
gunshot.attachSound("cut");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 866 MovieClip [Apone] Frame 88
gotoAndPlay ("cut2");
Symbol 910 MovieClip [alien] Frame 1
play();
this._alpha = 50;
this._xscale = 160;
this._yscale = 160;
Symbol 910 MovieClip [alien] Frame 2
this._alpha = 70;
this._xscale = 140;
this._yscale = 140;
Symbol 910 MovieClip [alien] Frame 3
this._alpha = 100;
this._xscale = 120;
this._yscale = 120;
Symbol 910 MovieClip [alien] Frame 4
this._xscale = 100;
this._yscale = 100;
Symbol 910 MovieClip [alien] Frame 5
Symbol 910 MovieClip [alien] Frame 10
_root.alienArrive = true;
this.gotoAndStop("normal" + _root.calculateRandom(0, 6));
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
Symbol 910 MovieClip [alien] Frame 27
gotoAndPlay ("normal0");
Symbol 910 MovieClip [alien] Frame 29
aliengrab = new Sound(this);
aliengrab.attachSound("grab");
aliengrab.start(0, 1);
aliengrab.setVolume(_root.SFvolume);
stop();
Symbol 910 MovieClip [alien] Frame 30
stop();
Symbol 910 MovieClip [alien] Frame 31
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 910 MovieClip [alien] Frame 43
this.swapDepths(this.alienID + 50);
stop();
Symbol 910 MovieClip [alien] Frame 48
Symbol 910 MovieClip [alien] Frame 49
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 910 MovieClip [alien] Frame 67
this.swapDepths(this.alienID + 50);
stop();
Symbol 910 MovieClip [alien] Frame 68
this._rotation = _root.calculateRandom(0, 360);
Symbol 910 MovieClip [alien] Frame 78
aliendeath = new Sound(this);
aliendeath.attachSound("flamedeath");
aliendeath.start(0, 1);
aliendeath.setVolume(_root.SFvolume);
Symbol 910 MovieClip [alien] Frame 104
this.swapDepths(this.alienID + 50);
stop();
Symbol 910 MovieClip [alien] Frame 105
this.gotoAndPlay(this._currentframe + _root.calculateRandom(0, 4));
Symbol 910 MovieClip [alien] Frame 113
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 114
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 115
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 116
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 117
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 118
this._alpha = this._alpha - 16;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
Symbol 910 MovieClip [alien] Frame 163
removeMovieClip(this);
Symbol 917 MovieClip [acidSpray] Frame 1
acid = new Sound(this);
acid.attachSound("acid");
acid.start(0, 1);
acid.setVolume(_root.SFvolume);
Symbol 917 MovieClip [acidSpray] Frame 44
removeMovieClip(this);
Symbol 946 MovieClip Frame 1
stop();
Symbol 946 MovieClip Frame 2
stop();
Symbol 946 MovieClip Frame 3
stop();
Symbol 946 MovieClip Frame 4
stop();
Symbol 950 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] = 1;
_root.mapArray[17][10][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][180] = 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 950 MovieClip "map" in Symbol 951 MovieClip [rescueMap] Frame 1
/* no clip actions */
Symbol 957 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 957 MovieClip "map" in Symbol 958 MovieClip [reactorMap] Frame 1
/* no clip actions */
Symbol 971 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.cutDoor = false;
_root.sealDoor = false;
_root.breakDoor = false;
_root.ripleyNewtCheck = 0;
_root.newtLimitedMove = 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];
_root.mapArray[n][m][6] = false;
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, 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]]];
}
_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.randAlienStart7 = [[13, 9], [13, 10]];
_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 989 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 2
stop();
Symbol 989 MovieClip Frame 3
stop();
Symbol 989 MovieClip Frame 28
gotoAndPlay ("step0");
Symbol 999 MovieClip [doorFrame] Frame 2
door = new Sound(this);
door.attachSound("door");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 999 MovieClip [doorFrame] Frame 19
stop();
Symbol 999 MovieClip [doorFrame] Frame 21
door = new Sound(this);
door.attachSound("door");
door.start(0, 1);
door.setVolume(_root.SFvolume);
Symbol 999 MovieClip [doorFrame] Frame 39
stop();
Symbol 999 MovieClip [doorFrame] Frame 40
gotoAndStop ("closed");
Symbol 999 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 999 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 999 MovieClip [doorFrame] Frame 80
gotoAndStop ("closed");
Symbol 999 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 999 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 1001 Button
on (release) {
trace(this.squareY);
_root.placeMarine(this.squareY, this.squareX, this.clipName);
}
Symbol 1006 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 1012 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 1013 MovieClip [weaponSwitchClip] Frame 1
stop();
Symbol 1013 MovieClip [weaponSwitchClip] Frame 2
stop();
Symbol 1014 Button
on (release) {
throwalien(1, 1);
}
Symbol 1015 Button
on (release) {
throwalien(1, 0);
}
Symbol 1016 Button
on (release) {
throwalien(1, -1);
}
Symbol 1017 Button
on (release) {
throwalien(0, 1);
}
Symbol 1018 Button
on (release) {
throwalien(0, -1);
}
Symbol 1019 Button
on (release) {
throwalien(-1, 1);
}
Symbol 1020 Button
on (release) {
throwalien(-1, -1);
}
Symbol 1021 Button
on (release) {
throwalien(-1, 0);
}
Symbol 1022 MovieClip [throwStunned] Frame 1
function throwalien(modY, modX) {
_root.stunnedAliensTotal = _root.stunnedAliensTotal + 1;
_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 1023 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 1028 Button
on (release) {
this.calculateShot(3);
}
Symbol 1029 Button
on (release) {
this.calculateShot(1);
}
Symbol 1030 Button
on (release) {
this.calculateShot(2);
}
Symbol 1046 MovieClip [counter] Frame 1
stop();
Symbol 1046 MovieClip [counter] Frame 2
stop();
Symbol 1046 MovieClip [counter] Frame 3
stop();
Symbol 1046 MovieClip [counter] Frame 4
stop();
Symbol 1046 MovieClip [counter] Frame 5
stop();
Symbol 1046 MovieClip [counter] Frame 6
stop();
Symbol 1046 MovieClip [counter] Frame 7
stop();
Symbol 1046 MovieClip [counter] Frame 8
stop();
Symbol 1046 MovieClip [counter] Frame 9
stop();
Symbol 1046 MovieClip [counter] Frame 10
stop();
Symbol 1046 MovieClip [counter] Frame 11
stop();
Symbol 1047 MovieClip [shootingSelect] Frame 1
function calculateShot(actionsSpent) {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo - 1;
trace("remaining Ammo : " + _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo);
_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]) && (this["targetNum" + actionsSpent] != undefined)) {
_root.actionarea[_root.marineData[_root.marineSelect][0]].alienName = this.alienName;
} else {
_root.actionarea[_root.marineData[_root.marineSelect][0]].alienName = null;
}
}
Symbol 1048 Button
on (release) {
_root.targetSelectShoot(alienName, Dist, rangeBand);
}
Symbol 1050 Button
on (release) {
_root.shootMachineGun4(this.marineName, this.alienName);
_root.removeAllbuttons();
}
Symbol 1055 MovieClip [rangeToNewt] Frame 1
stop();
Symbol 1056 Button
on (release) {
moveMarine(1, -1, -135);
}
Symbol 1057 Button
on (release) {
moveMarine(1, 0, 180);
}
Symbol 1058 Button
on (release) {
moveMarine(1, 1, 135);
}
Symbol 1059 Button
on (release) {
moveMarine(0, 1, 90);
}
Symbol 1060 Button
on (release) {
moveMarine(0, -1, -90);
}
Symbol 1061 Button
on (release) {
moveMarine(-1, 1, 45);
}
Symbol 1062 Button
on (release) {
moveMarine(-1, 0, 0);
}
Symbol 1063 Button
on (release) {
moveMarine(-1, -1, -45);
}
Symbol 1064 Button
on (release, keyPress "z") {
trace("pass move");
_root.currentMarineActions = _root.currentMarineActions + 1;
_root.gotoAndPlay("makeButtons");
}
Symbol 1065 Button
on (release) {
moveMarine(1, -1, -135);
}
Symbol 1066 Button
on (release) {
moveMarine(1, 0, 180);
}
Symbol 1067 Button
on (release) {
moveMarine(1, 1, 135);
}
Symbol 1068 Button
on (release) {
moveMarine(0, 1, 90);
}
Symbol 1069 Button
on (release) {
moveMarine(0, -1, -90);
}
Symbol 1070 Button
on (release) {
moveMarine(-1, 1, 45);
}
Symbol 1071 Button
on (release) {
moveMarine(-1, 0, 0);
}
Symbol 1072 Button
on (release) {
moveMarine(-1, -1, -45);
}
Symbol 1073 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.rescuedMarinesTotal = _root.rescuedMarinesTotal + 1;
_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.rescuedMarinesTotal = _root.rescuedMarinesTotal + 1;
}
_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.marineSelect == 10) {
_root.newtLimitedMove = 0;
}
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 1078 Button
on (release) {
pickUpMarine(0);
}
Symbol 1079 Button
on (release) {
pickUpMarine(1);
}
Symbol 1081 Button
on (release) {
pickUpMarine(2);
}
Symbol 1083 Button
on (release) {
pickUpMarine(3);
}
Symbol 1085 Button
on (release) {
pickUpMarine(4);
}
Symbol 1087 Button
on (release) {
pickUpMarine(5);
}
Symbol 1089 Button
on (release) {
pickUpMarine(6);
}
Symbol 1091 Button
on (release) {
pickUpMarine(7);
}
Symbol 1093 Button
on (release) {
pickUpMarine(8);
}
Symbol 1095 Button
on (release) {
pickUpMarine(9);
}
Symbol 1096 Button
on (release) {
pickUpMarine(10);
}
Symbol 1098 Button
on (release) {
pickUpMarine(11);
}
Symbol 1100 Button
on (release) {
pickUpMarine(12);
}
Symbol 1101 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 1101 MovieClip [incMarineDrop] Frame 2
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 3
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 4
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 5
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 6
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 7
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 8
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 9
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 10
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 11
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 12
stop();
Symbol 1101 MovieClip [incMarineDrop] Frame 13
stop();
Symbol 1102 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 1102 MovieClip [incMarine] Frame 2
stop();
Symbol 1102 MovieClip [incMarine] Frame 3
stop();
Symbol 1102 MovieClip [incMarine] Frame 4
stop();
Symbol 1102 MovieClip [incMarine] Frame 5
stop();
Symbol 1102 MovieClip [incMarine] Frame 6
stop();
Symbol 1102 MovieClip [incMarine] Frame 7
stop();
Symbol 1102 MovieClip [incMarine] Frame 8
stop();
Symbol 1102 MovieClip [incMarine] Frame 9
stop();
Symbol 1102 MovieClip [incMarine] Frame 10
stop();
Symbol 1102 MovieClip [incMarine] Frame 11
stop();
Symbol 1102 MovieClip [incMarine] Frame 12
stop();
Symbol 1102 MovieClip [incMarine] Frame 13
stop();
Symbol 1107 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.grenadeAmmo._visible = true;
_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 1112 Button
on (release) {
_root.grenade = 0;
gotoAndPlay ("grenade1");
removeMovieClip(_root.actionarea.grenadeIcon);
_root.gotoAndPlay("makeButtons");
}
Symbol 1113 MovieClip [grenadeSelectClip] Frame 1
stop();
Symbol 1113 MovieClip [grenadeSelectClip] Frame 2
stop();
Symbol 1116 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 1131 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 1136 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 1147 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] = 3;
_root.mapArray[13][9][4][180] = 3;
_root.mapArray[13][9][4][135] = 3;
_root.mapArray[13][10][4][180] = 3;
_root.mapArray[13][10][4][225] = 3;
_root.mapArray[14][8][4][45] = 3;
_root.mapArray[14][9][4][0] = 3;
_root.mapArray[14][9][4][45] = 3;
_root.mapArray[14][10][4][-45] = 3;
_root.mapArray[14][10][4][0] = 3;
_root.burkeDoor1 = 3;
_root.actionarea.Deploy.operationsDeploy3._alpha = 0;
_root.OPsealDoor();
_root.gotoAndPlay("makeButtons");
}
Symbol 1156 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.rescuedMarinesTotal = _root.rescuedMarinesTotal + 1;
_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) {
_root.rescuedMarinesTotal = _root.rescuedMarinesTotal + 1;
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.rescuedMarinesTotal = _root.rescuedMarinesTotal + 1;
_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 1162 Button
on (release) {
trace("elevatorName: " + elevatorName);
_root["elevatorStatus" + elevatorName] = 7;
_root.actionarea.mainMap.map["elevator" + elevatorName].gotoAndStop("goDown");
_root.gotoAndPlay("makeButtons");
}
Symbol 1167 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 1172 Button
on (release) {
_root.cocoonsCutTotal = _root.cocoonsCutTotal + 1;
_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 1178 Button
on (release) {
_root.flameGroundOn = 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.ammoCounter._visible = true;
_root.flameSelectClip._visible = true;
gotoAndPlay ("grenade2");
_root.actionarea.attachMovie("flameIcon", "flameIcon", 6750);
_root.actionarea.flameIcon._x = _root.marineData[_root.marineSelect][7] * _root.tileSize;
_root.actionarea.flameIcon._y = _root.marineData[_root.marineSelect][6] * _root.tileSize;
_root.actionarea.flameIcon.LOS._visible = false;
}
Symbol 1183 Button
on (release) {
_root.flameGroundOn = 0;
gotoAndPlay ("grenade1");
removeMovieClip(_root.actionarea.flameIcon);
_root.gotoAndPlay("makeButtons");
}
Symbol 1184 MovieClip [flameSelectClip] Frame 1
stop();
Symbol 1184 MovieClip [flameSelectClip] Frame 2
stop();
Symbol 1185 Button
on (release) {
_root.currentMarineActions = _root.currentMarineActions + 1;
trace("FLAME ON");
_root.flameXselect = _root.flameX;
_root.flameYselect = _root.flameY;
_root.flameGroundOn = 0;
_root.flameGroundShotOn = 1;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = _root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo - 1;
_root.actionarea[_root.marineData[_root.marineSelect][0]].gotoAndPlay("shoot" + _root.marineData[_root.marineSelect][12]);
removeMovieClip(_root.actionarea.flameIcon);
}
Symbol 1187 Button
on (release) {
_root.aponeBonus++;
_root.currentMarineActions = _root.marineData[_root.marineSelect][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++;
}
gunshot = new Sound(this);
gunshot.attachSound(("apone" + _root.currentTurn) + 1);
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
gotoAndPlay ("playsound");
}
Symbol 1188 MovieClip [AponeHelmet] Frame 1
stop();
Symbol 1188 MovieClip [AponeHelmet] Frame 2
gunshot = new Sound(this);
gunshot.attachSound("apone" + (_root.currentTurn + 1));
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
Symbol 1188 MovieClip [AponeHelmet] Frame 135
_root.gotoAndPlay("makeButtons");
Symbol 1196 Button
on (release) {
if ((_root.marineData[_root.marineOrder[_root.marineOrderCurrentPosition]][1] - _root.currentMarineActions) >= 2) {
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "pistol") {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads = 0;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = 13;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "flame unit") {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads = 0;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = 16;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "pulse rifle") {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads = 0;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = 16;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "machine gun") {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads = 0;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = 26;
}
if (_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]][2] == "shotgun") {
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].reloads = 0;
_root.marineData[_root.marineSelect][_root.marineData[_root.marineSelect][12]].ammo = 8;
}
gunshot = new Sound(this);
gunshot.attachSound("pump");
gunshot.start(0, 1);
gunshot.setVolume(_root.SFvolume);
_root.currentMarineActions = _root.currentMarineActions + 2;
_root.gotoAndPlay("makeButtons");
}
}
Symbol 1202 MovieClip [reloadAmmo] Frame 1
stop();
Symbol 1208 MovieClip [grenadeAmmo] Frame 1
stop();
Symbol 1239 Button
on (release) {
if (_root.tutorial._alpha == 100) {
_root.tutorial.removeMovieClip();
} else {
_root.attachMovie("tutorial", "tutorial", 70000);
_root.tutorial._x = 440;
_root.tutorial._y = 238;
}
}
Symbol 1244 Button
on (release) {
_root.actionarea.attachMovie("rescueMap", "mainMap", 1);
_root.marinesInMission = [11];
_root.cocoonMarines = [10];
gotoAndPlay ("setOrder");
}
Symbol 1249 Button
on (release) {
_root.actionarea.attachMovie("operationsMap", "mainMap", 1);
_root.marinesInMission = [9, 10, 11, 12, 0, 2, 5];
gotoAndPlay ("setOrder");
}
Symbol 1256 Button
on (release) {
_root.actionarea.attachMovie("reactorMap", "mainMap", 1);
_root.marinesInMission = [6, 3, 5, 2, 1, 0, 4, 7, 8];
gotoAndPlay ("setOrder");
}
Symbol 1259 MovieClip Frame 1
stop();
Symbol 1259 MovieClip Frame 155
stop();
Symbol 1275 MovieClip Frame 1
turnMarkerText = "00";
Symbol 1277 Button
on (press) {
buttonLeft = true;
}
on (release) {
buttonLeft = false;
}
Symbol 1278 Button
on (press) {
buttonRight = true;
}
on (release) {
buttonRight = false;
}
Symbol 1279 Button
on (press) {
buttonDown = true;
}
on (release) {
buttonDown = false;
}
Symbol 1280 Button
on (press) {
buttonUp = true;
}
on (release) {
buttonUp = false;
}
Symbol 1292 MovieClip Frame 1
stop();
Symbol 1292 MovieClip Frame 2
stop();
Symbol 1292 MovieClip Frame 3
stop();
Symbol 1292 MovieClip Frame 4
stop();