Frame 1
function 0\u0002(swfid, ^\u0003, lv, \u0016\u000B) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var 0\x10;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = ^\x03._root.getSWFVersion;
fv = (x ? (^\x03.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + ^\x03) + (sb ? ("&sb=" + sb) : "")) + (\x16\x0B ? "&t=1" : "");
lv = ((fv > 6) ? (^\x03.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
Set("0\x10", "_level" + lv);
if (!eval (0\x10)) {
loadMovieNum (u, lv);
}
} else {
Set("0\x10", ^\x03.createEmptyMovieClip(mb + swfid, lv));
0\x10.loadMovie(u);
}
return(0\x10);
}
0\x02("b5da38f9", this, 10301, true);
function \u0015\u0002() {
_global.arrAllowedSites = new Array();
_global.okToPlay = true;
_global.beforeIntro = false;
_global.afterIntro = false;
_global.introArmorGames = true;
_global.introHeroInteractive = true;
_global.introExtraContent = true;
_global.introStory = true;
_global.introHeroInteractiveLinked = true;
_global.extraContent = true;
_global.pmgURL = "http://www.armorgames.com";
_global.pmgOpenAs = "_blank";
_global.rightClickMenu = true;
_global.rightClickPMG = true;
_global.rightClickHeroLinks = true;
_global.creditsLinkable = true;
_global.versionTXT = "v 1.31";
_global.showFrameRate = false;
_global.arrAllowedSites.push("http://www.herointeractive.com");
_global.arrAllowedSites.push("http://herointeractive.com");
_global.arrAllowedSites.push("http://www.flashgamelicense.com");
_global.arrAllowedSites.push("http://flashgamelicense.com");
_global.arrAllowedSites.push("http://www.armorgames.com");
_global.arrAllowedSites.push("http://armorgames.com");
_global.arrAllowedSites.push("http://games.armorgames.com");
counter = -1;
Set("\x10", _root.getBytesTotal());
Set("\x03\x0F", _root.getBytesLoaded());
_global.musicOn = true;
_global.soundOn = true;
_global.loadSlot = "";
_global.myMusicPlayer = new \x13\x04();
_global.SoundManager = new \"\x06();
_global.hotKey1 = 49;
_global.hotKey2 = 50;
_global.hotKey3 = 51;
_global.hotKey4 = 52;
_global.hotKey5 = 53;
_global.hotKey6 = 54;
_global.pauseHotkey = 80;
\"\f();
}
function %\u000A() {
!\x04();
}
function ?() {
getURL (_global.pmgURL, _global.pmgOpenAs);
}
function !\u0004() {
if (counter == -1) {
Set("\x14\x04", _root.getBytesLoaded());
Set("\x05\x11", \x14\x04 / \x10);
myPercentLoaded = int(100 * \x05\x11);
_root["]\x0E"].loader_bar.gotoAndStop(myPercentLoaded);
_root["]\x0E"].percent_txt.text = myPercentLoaded + "%";
if ((myPercentLoaded == 100) && (_global.doExcludePreloader.Get() != -1)) {
_root["]\x0E"].percent_txt.text = "100%";
var _local3 = 0;
while (_local3 < _global.arrAllowedSites.length) {
if (_url.substr(0, _global.arrAllowedSites[_local3].length) == _global.arrAllowedSites[_local3]) {
_global.okToPlay = true;
break;
}
_local3++;
}
_root["]\x0E"].loader_bar.gotoAndStop(100);
_root["]\x0E"].gameLoading_text.gotoAndStop("off");
if (_global.okToPlay == true) {
_root.gotoAndPlay(22);
} else {
_root.gotoAndStop(82);
}
} else if ((myPercentLoaded == 100) && (_global.doExcludePreloader.Get() == -1)) {
counter = -2;
_root["]\x0E"].percent_txt.text = "100%";
_root["]\x0E"].gameLoading_text.gotoAndStop("off");
var _local3 = 0;
while (_local3 < _global.arrAllowedSites.length) {
if (_url.substr(0, _global.arrAllowedSites[_local3].length) == _global.arrAllowedSites[_local3]) {
_global.okToPlay = true;
break;
}
_local3++;
}
_root["]\x0E"]._alpha = 10;
_root["\x11\f"].gotoAndStop(2);
}
} else {
counter--;
}
}
function "\u000C() {
var _local3 = new ContextMenu();
_local3.hideBuiltInItems();
if (_global.rightClickMenu == true) {
if (_global.rightClickPMG == true) {
var _local4 = new ContextMenuItem("Play More Games!", \x18\x04);
_local3.customItems.push(_local4);
}
if (_global.rightClickHeroLinks == true) {
var _local4 = new ContextMenuItem("This Game Developed by Hero Interactive", +\x04);
_local3.customItems.push(_local4);
_local4 = new ContextMenuItem("Visit Our Blog!", @\x02);
_local3.customItems.push(_local4);
}
}
_root.menu = _local3;
}
function \u0018\u0004() {
?();
}
function +\u0004() {
getURL ("http://www.herointeractive.com", "_blank");
}
function @\u0002() {
getURL ("http://www.herointeractive.com/blog", "_blank");
}
function \u000D\u000E() {
delete _global.Campaigns;
_global.Campaigns = new Array();
var _local2;
_local2 = new @\x11();
_local2.strTitle = "The Frozen Peaks";
_local2.strDifficulty = "Medium";
_local2.strSlots = "5";
_local2.strDescription = "This ice fortress has three well guarded turret locations which you may find useful. We expect to find swarms of smaller craft rather than big ships coming against this fortress.";
_local2.strButton = "ice_bt";
_local2.strStory = "The Enemy fleet has split up to hit our main defenses simultaneously, you may choose to defend either this or the Hills fortress first. Completing this campaign first will give us more resources when defending the Hills fortress, so choose carefully.";
_local2.intFace = 2;
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "The Sea Station";
_local2.strDifficulty = "Easy";
_local2.strSlots = "4";
_local2.strDescription = "The Sea Fortress consists of 4 weapon slots- use them well. We only need to hold the enemy off for as long as possible before retreating to our other defenses. Expect a large number of smaller aircraft.";
_local2.strStory = "It's been 4 years since the kingdom of Agloria has stayed the last invasion (the events of StormWinds 1.5). Now the nation of Demo attacks again... this time with a much larger force. Our own fleet has already been destroyed as the enemy advances. This will be their first target- we must hold as long as possible!";
_local2.intFace = 1;
_local2.strButton = "rig_bt";
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "The Eastern Forest";
_local2.strDifficulty = "Medium";
_local2.strSlots = "5";
_local2.strDescription = "This Forest Fortress has an extra turret in the bottom right- great for getting under-belly shots as well as providing a wide range for rotation-limited weapons. It's also the subject of most attacks.";
_local2.strStory = "The enemy fleet has reached our lands. It is clear they aim to destroy what's left of Agloria and finished the job they started. This forest defense doesn't stand much of a chance against their armada, but we need to buy time so we can formulate a plan. Again, hold as long as you can!";
_local2.intFace = 1;
_local2.strButton = "forest_bt";
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "Desolate Hills";
_local2.strDifficulty = "Medium";
_local2.strSlots = "5";
_local2.strDescription = "This fortress has four exposed turrets, but all within a great striking distance. Expect to see a lot of larger ships and heavy hitters coming against this fotress instead of the small drones.";
_local2.strButton = "hills_bt";
_local2.strStory = "The Enemy fleet has split up to hit our main defenses simultaneously, you may choose to defend either this or the Frozen Peaks fortress first. Completing this campaign first will give us more resources when defending the ice fortress, so choose carefully.";
_local2.intFace = 1;
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "The Last Outpost";
_local2.strDifficulty = "Hard";
_local2.strSlots = "5";
_local2.strDescription = "Be prepared for a long and hard fight. Not many turrets are protected but you have some good low turrets for shooting upwards, as well as a high turret in the back- optimal against planes.";
_local2.strButton = "waterfall_bt";
_local2.strStory = "The enemy has regrouped for their last huge push towards the city; we don't have long. Expect them to send everything they've got. We've started evacuating the city now and steps are being taken to protect the princess. Hopefully we're not too late, you must keep the enemy at bay!";
_local2.intFace = 2;
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "End of Glory";
_local2.strDifficulty = "Hard";
_local2.strSlots = "6";
_local2.strDescription = "The city fortress is the strongest defense built to date. You're going to face a massive storm of enemies, but at least you'll have six full turret locations to fight back with. Good luck!";
_local2.strButton = "end_bt";
_local2.strStory = "Most of the city has been evacuated for what seems to be its inevitable destruction, however the princess is still in the city! I know it's asking a lot, but you must fight off the enemy for as long as possible so we can get her out and safe! Never give up, fight till all strength leaves you!";
_local2.intFace = 2;
_local2.blnSet = false;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "The Twenty Five";
_local2.strDifficulty = "Insane";
_local2.strSlots = "5";
_local2.strDescription = "This is a bonus campaign recommended for experienced players. You'll face 25 of the most intense levels the developers could put together and not crash your browser. Good luck!";
_local2.strButton = "twentyfive_bt";
_local2.strStory = "One solid bonus campaign of twenty five very intense challenging waves will separate the men from the n00bs...";
_local2.intFace = 2;
_local2.blnSet = true;
6\r(_local2);
_global.Campaigns.push(_local2);
_local2 = new @\x11();
_local2.strTitle = "All Guns";
_local2.strDifficulty = "";
_local2.strSlots = "";
_local2.strDescription = "";
_local2.strButton = "all_bt";
_local2.blnSet = false;
_local2.arrGuns.push({name:"turret1", type:1, cost:1500, title:"Heavy Cannon", weaponType:"Primary Weapon", description:"This is your standard gun: a lot of life, awesome reload time, and decent damage. Hold down on the mouse button to gain strength, then release to fire. Takes practice, but skill paired with this weapon leaves a lot of enemies reduced to scrap metal very quickly."});
_local2.arrGuns.push({name:"turret2", type:2, cost:1500, title:"Machine Gun", weaponType:"Primary Weapon", description:"The machine gun can fire a number of bullets quickly in a straight line, but each bullet does less damage. It also has less life than the heavy cannon. Hold mouse button down to fire."});
_local2.arrGuns.push({name:"turret11", type:11, cost:10000, title:"Dual Machine Gun", weaponType:"Primary Weapon", description:"Not only does this powerful primary weapon have two machine guns, but unlike the other turrets, it can rotate a full 360 degrees! Hold mouse button down to fire. "});
_local2.arrGuns.push({name:"turret12", type:12, cost:10000, title:"Radio Plasmid Gun", weaponType:"Primary Weapon", description:"This powerful gun fires multiple blasts of plasmid in succession. Best though, is that when you fire one cannon, all other plasmid cannons fire as well! Select one and hold mouse button down to fire... all of them."});
_local2.arrGuns.push({name:"turret28", type:28, cost:15000, title:"Spread Machine Gun", weaponType:"Primary Weapon", description:"The Spread Machine Gun fires 3 bullets at a time in a spread formation. Hold the mouse button down to fire."});
if (_global.var1.Get() != -1) {
_local2.arrGuns.push({name:"turret19", type:19, cost:16000, title:"Flame Thrower", weaponType:"Primary Weapon", description:"The flame thrower deals a lot of damage but in a very limited range. Hold down the mouse button to fire."});
}
_local2.arrGuns.push({name:"turret29", type:29, cost:20000, title:"Disc Launcher", weaponType:"Primary Weapon", description:"This deadly weapon fires razor bladed discs at extreme velocities in any direction, damaging and shredding everything in their path. Discs pass through ships dealing damage to each target, they completely dice up drones. In addition, firing requires no charging, just click to shoot!"});
_local2.arrGuns.push({name:"turret18", type:18, cost:40000, title:"Minigun", weaponType:"Primary Weapon", description:"It's like the machine gun, but much more awesome. Hold mouse button down to fire."});
_local2.arrGuns.push({name:"turret25", type:25, cost:1000, title:"Barrier Decoy", weaponType:"Passive Defense", description:"The Barrier Decoy is nothing but piled up scrap metal with a pipe attached to the end serving as a decoy cannon. It doesn't shoot, it just sits there. Don't underestimate its usefullness however- it can draw machine gun and other small fire which deal 0 damage against it!"});
_local2.arrGuns.push({name:"turret3", type:3, cost:3000, title:"Sniping Cannon", weaponType:"Secondary Weapon", description:"The sniping gun fires a single, very powerful, armor piercing shot that hits its target instantly. Damage is dealt without regard to damage zones. Just click to fire."});
_local2.arrGuns.push({name:"turret5", type:5, cost:4000, title:"Flak Cannon", weaponType:"Secondary Weapon", description:"The flak cannon allows you to fire a normal bullet into the air which detonates and explodes the shell into many smaller shards. Very potent vs. groups. Hold down on the mouse button to gain strength, then release to fire."});
_local2.arrGuns.push({name:"turret16", type:16, cost:5000, title:"Remote Missile", weaponType:"Secondary Weapon", description:"Ever have a target you just couldn't hit? No longer. This remote controlled missile follows your mouse when fired, so you can manuever it to hit those hard to reach spots."});
if (_global.var1.Get() != -1) {
_local2.arrGuns.push({name:"turret26", type:26, cost:5000, title:"Mine Cannon", weaponType:"Secondary Weapon", description:"This cannon launches a mine into the air. After a randomly set timer expires, a balloon inflates and carries the mine into the air. If hit, the mines do heavy damage."});
}
_local2.arrGuns.push({name:"turret6", type:6, cost:8000, title:"Flame Cannon", weaponType:"Secondary Weapon", description:"The flame cannon does massive amounts of damage by firing intensly heated charges at an enemy. On impact, the shells explode into multiple shards, each capable of more damage. Deadly vs. large vehicles. Hold down on the mouse button to gain strength, then release to fire."});
_local2.arrGuns.push({name:"turret22", type:22, cost:10000, title:"Acid Cannon", weaponType:"Secondary Weapon", description:"The acid cannon is similar to the heavy cannon, except that the canister you launch is loaded with corrosive acid that leaks out in a trail behind it, causing a lot of damage below! Hold down on the mouse button to gain strength, then release to fire."});
_local2.arrGuns.push({name:"turret23", type:23, cost:10000, title:"Artillery Tower", weaponType:"Secondary Weapon", description:"The artillery tower communicates with the guns behind our lines to call forth a massive barrage of shells towards a target area, laying waste to whatever it hits. Simply select the tower, then click where you'd like to target!"});
_local2.arrGuns.push({name:"turret27", type:27, cost:10000, title:"Sky Minefield", weaponType:"Secondary Weapon", description:"A number of mines attached to balloons are released from the bottom of the screen, floating upwards, creating a minefield in the sky for a short period of time."});
_local2.arrGuns.push({name:"turret30", type:30, cost:10000, title:"Leech Cannon", weaponType:"Secondary Weapon", description:"The Leech Cannon launches little clockwork drones that latch onto enemies, and then drain the ship's energy and ruptures steam pipes. With enough of them, a large ship can simply lose power and fall off the bottom of the screen to its demise. NOT effective against small craft."});
_local2.arrGuns.push({name:"turret7", type:7, cost:20000, title:"Lightning Gun", weaponType:"Secondary Weapon", description:"The lightning gun fires an arc of intense energy instantly at whatever enemy you click on. Then, based on the gun's upgrades, it'll jump from enemy to enemy in chain form. Each jump does less damage than the one before it."});
_local2.arrGuns.push({name:"turret13", type:13, cost:35000, title:"Apocalypse Cannon", weaponType:"Secondary Weapon", description:"Arguably one of the most powerful weapons created, the apocalypse cannon destroys all flying non-boss units on the screen, enemy or not! Just click to fire."});
_local2.arrGuns.push({name:"turret10", type:10, cost:45000, title:"Meteor Summoner", weaponType:"Secondary Weapon", description:"The meteor summoner calls forth a massive raining of meteors that pummel your enemies into little itsy bits. Hold down the mouse to charge, when fully charged it'll fire."});
_local2.arrGuns.push({name:"turret24", type:24, cost:45000, title:"Solar Cannon", weaponType:"Secondary Weapon", description:"The solar cannon fires a beam of energy that deals massive amounts of damage to anything in it's path. When boosted with solar stations (seperate turret), it is hands down the most powerful weapon in the game."});
_local2.arrGuns.push({name:"turret33", type:33, cost:2500, title:"Solar Station", weaponType:"Secondary Weapon", description:"Solar Stations are useless without a Solar Cannon, they'll do nothing. But when in the presence of a the Solar Cannon, they will boost it's strength many times over making it the most powerful weapon in the game."});
_local2.arrGuns.push({name:"turret31", type:31, cost:4000, title:"Auto Airship", weaponType:"Passive Weapon", description:"Feeling too lazy to select weapons to fire them yourself? Well worry no more, this airship has it's own small crew that will man it and fly it out against enemy airships on their own- no management required! If destroyed, the ship will respawn at the start of the next level."});
_local2.arrGuns.push({name:"turret14", type:14, cost:5000, title:"Orbital Mines", weaponType:"Passive Weapon", description:"This tower has a number of mines that orbit it's peak. Mines deal a lot of damage, and once destroyed, new ones will respawn to take their place! You don't even have to control it!"});
_local2.arrGuns.push({name:"turret21", type:21, cost:3000, title:"Avenger", weaponType:"Vehicle", description:"Our little airship, the Avenger, follows your mouse when selected and can fire its armed machine gun. It also self repairs at it's landing pad! Click on it's landing pad, then click to launch. Click on another turret to have it return to the landing pad."});
_local2.arrGuns.push({name:"turret20", type:20, cost:5000, title:"Decoy Drones", weaponType:"Support", description:"This handy structure releases decoy drones that fly about and take damage while distracting the enemies. Better though, you can upgrade and give them a gun! You don't need to control this tower."});
_local2.arrGuns.push({name:"turret15", type:15, cost:7000, title:"Time Gun", weaponType:"Support", description:"This crazy machinery can freeze enemies right where they are for a short period of time, allowing you to unleash hell! Just click to fire!"});
_local2.arrGuns.push({name:"turret17", type:17, cost:7000, title:"Shield Gun", weaponType:"Support", description:"The shield gun can protect another turret and prevent a lot of damage. Rather than give a turret more health, bullets do less damage, some none at all! Click on the shield turret and then, with mouse button still down, drag to the turret you'd like to protect."});
_local2.arrGuns.push({name:"turret32", type:32, cost:8000, title:"Bomb Drones", weaponType:"Support", description:"Bomb drones are similar to their decoy counterparts. Instead of flying around however, they simply fly from left to right and rise- dropping bombs periodically. When out of bombs, they self destruct and kamikaze. You don't need to control this tower."});
_local2.arrGuns.push({name:"turret4", type:4, cost:6000, title:"Health Buffer", weaponType:"Passive Buffer", description:"As long as the health buffer isn't destroyed on the battlefield, all of your turrets will get a raise in the amount of damage they can take."});
_local2.arrGuns.push({name:"turret8", type:8, cost:15000, title:"Damage Buffer", weaponType:"Passive Buffer", description:"As long as the damage buffer isn't destroyed on the battlefield, all of your turrets will get a raise in the amount of pain they dish out."});
_local2.arrGuns.push({name:"turret9", type:9, cost:40000, title:"Fire Rate Buffer", weaponType:"Passive Buffer", description:"As long as the fire rate buffer isn't destroyed, all of your turrets will reload/recharge faster- meaning you can use them more often."});
_global.Campaigns.push(_local2);
}
function 6\u000D(_arg2) {
_arg2.arrGuns.push({name:"turret1", type:1, cost:1500, title:"Heavy Cannon", weaponType:"Primary Weapon", description:"This is your standard gun: a lot of life, awesome reload time, and decent damage. Hold down on the mouse button to gain strength, then release to fire. Takes practice, but skill paired with this weapon leaves a lot of enemies reduced to scrap metal very quickly."});
_arg2.arrGuns.push({name:"turret2", type:2, cost:1500, title:"Machine Gun", weaponType:"Primary Weapon", description:"The machine gun can fire a number of bullets quickly in a straight line, but each bullet does less damage. It also has less life than the heavy cannon. Hold mouse button down to fire."});
_arg2.arrGuns.push({name:"turret11", type:11, cost:10000, title:"Dual Machine Gun", weaponType:"Primary Weapon", description:"Not only does this powerful primary weapon have two machine guns, but unlike the other turrets, it can rotate a full 360 degrees! Hold mouse button down to fire. "});
_arg2.arrGuns.push({name:"turret12", type:12, cost:10000, title:"Radio Plasmid Gun", weaponType:"Primary Weapon", description:"This powerful gun fires multiple blasts of plasmid in succession. Best though, is that when you fire one cannon, all other plasmid cannons fire as well! Select one and hold mouse button down to fire... all of them."});
_arg2.arrGuns.push({name:"turret28", type:28, cost:15000, title:"Spread Machine Gun", weaponType:"Primary Weapon", description:"The Spread Machine Gun fires 3 bullets at a time in a spread formation. Hold the mouse button down to fire."});
if (_global.var1.Get() != -1) {
_arg2.arrGuns.push({name:"turret19", type:19, cost:16000, title:"Flame Thrower", weaponType:"Primary Weapon", description:"The flame thrower deals a lot of damage but in a very limited range. Hold down the mouse button to fire."});
}
_arg2.arrGuns.push({name:"turret29", type:29, cost:20000, title:"Disc Launcher", weaponType:"Primary Weapon", description:"This deadly weapon fires razor bladed discs at extreme velocities in any direction, damaging and shredding everything in their path. Discs pass through ships dealing damage to each target, they completely dice up drones. In addition, firing requires no charging, just click to shoot!"});
_arg2.arrGuns.push({name:"turret18", type:18, cost:40000, title:"Minigun", weaponType:"Primary Weapon", description:"It's like the machine gun, but much more awesome. Hold mouse button down to fire."});
_arg2.arrGuns.push({name:"turret25", type:25, cost:1000, title:"Barrier Decoy", weaponType:"Passive Defense", description:"The Barrier Decoy is nothing but piled up scrap metal with a pipe attached to the end serving as a decoy cannon. It doesn't shoot, it just sits there. Don't underestimate its usefullness however- it can draw machine gun and other small fire which deal 0 damage against it!"});
_arg2.arrGuns.push({name:"turret3", type:3, cost:3000, title:"Sniping Cannon", weaponType:"Secondary Weapon", description:"The sniping gun fires a single, very powerful, armor piercing shot that hits its target instantly. Damage is dealt without regard to damage zones. Just click to fire."});
_arg2.arrGuns.push({name:"turret5", type:5, cost:4000, title:"Flak Cannon", weaponType:"Secondary Weapon", description:"The flak cannon allows you to fire a normal bullet into the air which detonates and explodes the shell into many smaller shards. Very potent vs. groups. Hold down on the mouse button to gain strength, then release to fire."});
_arg2.arrGuns.push({name:"turret16", type:16, cost:5000, title:"Remote Missile", weaponType:"Secondary Weapon", description:"Ever have a target you just couldn't hit? No longer. This remote controlled missile follows your mouse when fired, so you can manuever it to hit those hard to reach spots."});
if (_global.var1.Get() != -1) {
_arg2.arrGuns.push({name:"turret26", type:26, cost:5000, title:"Mine Cannon", weaponType:"Secondary Weapon", description:"This cannon launches a mine into the air. After a randomly set timer expires, a balloon inflates and carries the mine into the air. If hit, the mines do heavy damage."});
}
_arg2.arrGuns.push({name:"turret6", type:6, cost:8000, title:"Flame Cannon", weaponType:"Secondary Weapon", description:"The flame cannon does massive amounts of damage by firing intensly heated charges at an enemy. On impact, the shells explode into multiple shards, each capable of more damage. Deadly vs. large vehicles. Hold down on the mouse button to gain strength, then release to fire."});
_arg2.arrGuns.push({name:"turret22", type:22, cost:10000, title:"Acid Cannon", weaponType:"Secondary Weapon", description:"The acid cannon is similar to the heavy cannon, except that the canister you launch is loaded with corrosive acid that leaks out in a trail behind it, causing a lot of damage below! Hold down on the mouse button to gain strength, then release to fire."});
_arg2.arrGuns.push({name:"turret23", type:23, cost:10000, title:"Artillery Tower", weaponType:"Secondary Weapon", description:"The artillery tower communicates with the guns behind our lines to call forth a massive barrage of shells towards a target area, laying waste to whatever it hits. Simply select the tower, then click where you'd like to target!"});
_arg2.arrGuns.push({name:"turret27", type:27, cost:10000, title:"Sky Minefield", weaponType:"Secondary Weapon", description:"A number of mines attached to balloons are released from the bottom of the screen, floating upwards, creating a minefield in the sky for a short period of time."});
_arg2.arrGuns.push({name:"turret30", type:30, cost:10000, title:"Leech Cannon", weaponType:"Secondary Weapon", description:"The Leech Cannon launches little clockwork drones that latch onto enemies, and then drain the ship's energy and ruptures steam pipes. With enough of them, a large ship can simply lose power and fall off the bottom of the screen to its demise. NOT effective against small craft."});
_arg2.arrGuns.push({name:"turret7", type:7, cost:20000, title:"Lightning Gun", weaponType:"Secondary Weapon", description:"The lightning gun fires an arc of intense energy instantly at whatever enemy you click on. Then, based on the gun's upgrades, it'll jump from enemy to enemy in chain form. Each jump does less damage than the one before it."});
_arg2.arrGuns.push({name:"turret13", type:13, cost:35000, title:"Apocalypse Cannon", weaponType:"Secondary Weapon", description:"Arguably one of the most powerful weapons created, the apocalypse cannon destroys all flying non-boss units on the screen, enemy or not! Just click to fire."});
_arg2.arrGuns.push({name:"turret10", type:10, cost:45000, title:"Meteor Summoner", weaponType:"Secondary Weapon", description:"The meteor summoner calls forth a massive raining of meteors that pummel your enemies into little itsy bits. Hold down the mouse to charge, when fully charged it'll fire."});
_arg2.arrGuns.push({name:"turret24", type:24, cost:45000, title:"Solar Cannon", weaponType:"Secondary Weapon", description:"The solar cannon fires a beam of energy that deals massive amounts of damage to anything in it's path. When boosted with solar stations (seperate turret), it is hands down the most powerful weapon in the game."});
_arg2.arrGuns.push({name:"turret33", type:33, cost:2500, title:"Solar Station", weaponType:"Secondary Weapon", description:"Solar Stations are useless without a Solar Cannon, they'll do nothing. But when in the presence of a the Solar Cannon, they will boost it's strength many times over making it the most powerful weapon in the game."});
_arg2.arrGuns.push({name:"turret31", type:31, cost:4000, title:"Auto Airship", weaponType:"Passive Weapon", description:"Feeling too lazy to select weapons to fire them yourself? Well worry no more, this airship has it's own small crew that will man it and fly it out against enemy airships on their own- no management required! If destroyed, the ship will respawn at the start of the next level."});
_arg2.arrGuns.push({name:"turret14", type:14, cost:5000, title:"Orbital Mines", weaponType:"Passive Weapon", description:"This tower has a number of mines that orbit it's peak. Mines deal a lot of damage, and once destroyed, new ones will respawn to take their place! You don't even have to control it!"});
_arg2.arrGuns.push({name:"turret21", type:21, cost:3000, title:"Avenger", weaponType:"Vehicle", description:"Our little airship, the Avenger, follows your mouse when selected and can fire its armed machine gun. It also self repairs at it's landing pad! Click on it's landing pad, then click to launch. Click on another turret to have it return to the landing pad."});
_arg2.arrGuns.push({name:"turret20", type:20, cost:5000, title:"Decoy Drones", weaponType:"Support", description:"This handy structure releases decoy drones that fly about and take damage while distracting the enemies. Better though, you can upgrade and give them a gun! You don't need to control this tower."});
_arg2.arrGuns.push({name:"turret15", type:15, cost:7000, title:"Time Gun", weaponType:"Support", description:"This crazy machinery can freeze enemies right where they are for a short period of time, allowing you to unleash hell! Just click to fire!"});
_arg2.arrGuns.push({name:"turret17", type:17, cost:7000, title:"Shield Gun", weaponType:"Support", description:"The shield gun can protect another turret and prevent a lot of damage. Rather than give a turret more health, bullets do less damage, some none at all! Click on the shield turret and then, with mouse button still down, drag to the turret you'd like to protect."});
_arg2.arrGuns.push({name:"turret32", type:32, cost:8000, title:"Bomb Drones", weaponType:"Support", description:"Bomb drones are similar to their decoy counterparts. Instead of flying around however, they simply fly from left to right and rise- dropping bombs periodically. When out of bombs, they self destruct and kamikaze. You don't need to control this tower."});
_arg2.arrGuns.push({name:"turret4", type:4, cost:6000, title:"Health Buffer", weaponType:"Passive Buffer", description:"As long as the health buffer isn't destroyed on the battlefield, all of your turrets will get a raise in the amount of damage they can take."});
_arg2.arrGuns.push({name:"turret8", type:8, cost:15000, title:"Damage Buffer", weaponType:"Passive Buffer", description:"As long as the damage buffer isn't destroyed on the battlefield, all of your turrets will get a raise in the amount of pain they dish out."});
_arg2.arrGuns.push({name:"turret9", type:9, cost:40000, title:"Fire Rate Buffer", weaponType:"Passive Buffer", description:"As long as the fire rate buffer isn't destroyed, all of your turrets will reload/recharge faster- meaning you can use them more often."});
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
stop();
var counter;
var \x10;
var \x03\x0F;
_global["\x13"] = new \x17\x04();
_global["\x13"].mSet(2382752);
_global.doExcludePreloader = new \x17\x04();
_global.doExcludePreloader.mSet(59712137);
var \f\x0B = new Array();
\f\x0B.push("http://www.addictinggames.com");
\f\x0B.push("http://addictinggames.com");
\f\x0B.push("http://agstage.shockwave.com");
\f\x0B.push("http://andkon.com");
\f\x0B.push("http://www.andkon.com");
var i = 0;
while (i < \f\x0B.length) {
if (_url.substr(0, \f\x0B[i].length) == \f\x0B[i]) {
_global.doExcludePreloader.Set(381594);
break;
}
i++;
}
if (_global.preloaderAD == false) {
Set("(\x0B", false);
_root.pre.gotoAndStop(2);
} else if (_global.doExcludePreloader.Get() != -1) {
Set("(\x0B", false);
_root.pre.gotoAndStop(2);
} else {
_root["]\x0E"]._x = 350.3;
_root["]\x0E"]._y = 330.3;
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 13;
System.security.allowDomain("server.cpmstar.com");
_root.pre.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
}
var \x1B\x07 = new Array();
\x1B\x07.push("http://www.armorgames.com");
\x1B\x07.push("http://armorgames.com");
\x1B\x07.push("http://games.armorgames.com");
_global.ResumeSong = "";
_global.Campaigns = new Array();
_global.currentCampaign = "";
_global.currentProfile = new \x10\r();
_global.cheatsEnabled = new \x17\x04();
_global.cheatsEnabled.mSet(236545);
_global.cheatUnlock = new \x17\x04();
_global.cheatUnlock.mSet(236545);
_global.cheatCheapGuns = new \x17\x04();
_global.cheatCheapGuns.Set(236545);
_global.cheatUpgrades = new \x17\x04();
_global.cheatUpgrades.Set(236545);
_global.achievementUnlocked1 = new \x17\x04();
_global.achievementUnlocked1.mSet(236545);
_global.achievementUnlocked2 = new \x17\x04();
_global.achievementUnlocked2.mSet(236545);
_global.achievementUnlocked3 = new \x17\x04();
_global.achievementUnlocked3.mSet(236545);
_global.achievementUnlocked4 = new \x17\x04();
_global.achievementUnlocked4.mSet(236545);
_global.achievementUnlocked5 = new \x17\x04();
_global.achievementUnlocked5.mSet(236545);
_global.achievementUnlocked6 = new \x17\x04();
_global.achievementUnlocked6.mSet(236545);
_global.achievementUnlocked7 = new \x17\x04();
_global.achievementUnlocked7.mSet(236545);
_global.achievementUnlocked8 = new \x17\x04();
_global.achievementUnlocked8.mSet(236545);
_global.achievementSet1 = new \x17\x04();
_global.achievementSet1.mSet(236545);
_global.achievementSet2 = new \x17\x04();
_global.achievementSet2.mSet(236545);
_global.achievementSet3 = new \x17\x04();
_global.achievementSet3.mSet(236545);
_global.achievementSet4 = new \x17\x04();
_global.achievementSet4.mSet(236545);
_global.achievementSet5 = new \x17\x04();
_global.achievementSet5.mSet(236545);
_global.achievementSet6 = new \x17\x04();
_global.achievementSet6.mSet(236545);
_global.achievementSet7 = new \x17\x04();
_global.achievementSet7.mSet(236545);
_global.achievementSet8 = new \x17\x04();
_global.achievementSet8.mSet(236545);
_global.var1 = new \x17\x04();
_global.var1.mSet(2382752);
var i = 0;
while (i < \x1B\x07.length) {
if (_url.substr(0, \x1B\x07[i].length) == \x1B\x07[i]) {
_global.var1.Set(9843769);
break;
}
i++;
}
\x1B\x07.push(".armorgames.com");
var i = 0;
while (i < \x1B\x07.length) {
if (_url.indexOf(\x1B\x07[i]) != -1) {
_global.var1.Set(9843769);
break;
}
i++;
}
_global.SaveStrDifficulty = "";
_global.SaveStrName = "";
_global.overWriteSlot = false;
_global.startMoney = 2500;
_global.gamePaused = false;
_global.forceOpenMap = false;
_global["\x04\x04"] = "buttonClick";
_global[";\x0E"] = "";
_global.levelClose = false;
var )\x0B = 0;
var mySharedObject = SharedObject.getLocal("settings");
if (mySharedObject.data.firstTime == undefined) {
mySharedObject.data.firstTime = false;
mySharedObject.data.musicOn = _global.musicOn;
mySharedObject.data.soundOn = _global.soundOn;
mySharedObject.data.graphics = _global.graphics;
mySharedObject.data.hotKey1 = _global.hotKey1;
mySharedObject.data.hotKey2 = _global.hotKey2;
mySharedObject.data.hotKey3 = _global.hotKey3;
mySharedObject.data.hotKey4 = _global.hotKey4;
mySharedObject.data.hotKey5 = _global.hotKey5;
mySharedObject.data.versionNumber = _global.versionNumber;
mySharedObject.data.a1 = _global.achievementUnlocked1.Store();
mySharedObject.data.a2 = _global.achievementUnlocked2.Store();
mySharedObject.data.a3 = _global.achievementUnlocked3.Store();
mySharedObject.data.a4 = _global.achievementUnlocked4.Store();
mySharedObject.data.a5 = _global.achievementUnlocked5.Store();
mySharedObject.data.a6 = _global.achievementUnlocked6.Store();
mySharedObject.data.a7 = _global.achievementUnlocked7.Store();
mySharedObject.data.a8 = _global.achievementUnlocked8.Store();
mySharedObject.flush();
} else {
_global.musicOn = mySharedObject.data.musicOn;
_global.soundOn = mySharedObject.data.soundOn;
_global.graphics = mySharedObject.data.graphics;
_quality = _global.graphics;
_global.hotKey1 = mySharedObject.data.hotKey1;
_global.hotKey2 = mySharedObject.data.hotKey2;
_global.hotKey3 = mySharedObject.data.hotKey3;
_global.hotKey4 = mySharedObject.data.hotKey4;
_global.hotKey5 = mySharedObject.data.hotKey5;
if (mySharedObject.data.a1 == undefined) {
mySharedObject.data.a1 = _global.achievementUnlocked1.Store();
mySharedObject.data.a2 = _global.achievementUnlocked2.Store();
mySharedObject.data.a3 = _global.achievementUnlocked3.Store();
mySharedObject.data.a4 = _global.achievementUnlocked4.Store();
mySharedObject.data.a5 = _global.achievementUnlocked5.Store();
mySharedObject.data.a6 = _global.achievementUnlocked6.Store();
mySharedObject.data.a7 = _global.achievementUnlocked7.Store();
mySharedObject.data.a8 = _global.achievementUnlocked8.Store();
mySharedObject.flush();
} else {
_global.achievementUnlocked1.Load(mySharedObject.data.a1);
_global.achievementUnlocked2.Load(mySharedObject.data.a2);
_global.achievementUnlocked3.Load(mySharedObject.data.a3);
_global.achievementUnlocked4.Load(mySharedObject.data.a4);
_global.achievementUnlocked5.Load(mySharedObject.data.a5);
_global.achievementUnlocked6.Load(mySharedObject.data.a6);
_global.achievementUnlocked7.Load(mySharedObject.data.a7);
_global.achievementUnlocked8.Load(mySharedObject.data.a8);
}
}
Instance of Symbol 291 MovieClip in Frame 1
onClipEvent (load) {
_root.\x15\x02();
}
onClipEvent (enterFrame) {
_root.%\n();
}
Frame 3
function \u0015\u0002() {
}
function %\u000A() {
_global.myMusicPlayer.\x14\x12();
}
stop();
Instance of Symbol 291 MovieClip in Frame 3
onClipEvent (load) {
_root.\x15\x02();
}
onClipEvent (enterFrame) {
_root.%\n();
}
Frame 5
function \u0015\u0002() {
Set("@\x05", false);
\r\x0E();
Set("@", true);
Set("7\f", 0);
Set("\x16\x05", "");
Set("&\x07", 0.3);
Set("8\r", 3000);
Set("\x07", new Array());
Set("\x15\x07", true);
Set("(\r", true);
Set("\x07\r", true);
Set("\x03", true);
Set("\x0F\x10", false);
Set("\x03\x0E", true);
Set("\n\x06", true);
Set("+\x11", false);
Set("\x0E\x02", false);
Set("\"\x0B", false);
Set("]\x10", false);
Set("\x19\x0E", false);
Set("\x14\f", false);
Set("^\r", false);
Set("\x01\x0F", false);
Set("\x0E\x06", false);
Set("\x04\x0B", false);
Set("\x1D\x11", "");
_root["\x07\x02"].play_btn.tabEnabled = false;
_root["\x07\x02"].settings_btn.tabEnabled = false;
_root["\x07\x02"].credits_btn.tabEnabled = false;
_root["\x07\x02"].pmg_btn.tabEnabled = false;
_root.world_map.more_mc._visible = false;
_root.world_map._visible = false;
Set("[\x11", new Object());
[\x11.onMouseDown = function () {
_root.\x1D\x10();
};
\x0B\x06();
if (_global.forceOpenMap == true) {
_global.forceOpenMap = false;
4(4);
}
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack("rain");
_global.myMusicPlayer.SetMaxVolume(80);
_global.myMusicPlayer.PlayWithCrossFade(10);
}
}
function %\u000A() {
if (_global.showFrameRate == true) {
).%\n();
}
[\x02();
_global.myMusicPlayer.\x14\x12();
}
function \u000B\u0006() {
if (@\x05 == false) {
Mouse.addListener([\x11);
Set("@\x05", true);
}
}
function ?\u000B() {
if (@\x05 == true) {
Mouse.removeListener([\x11);
Set("@\x05", false);
}
}
function \u0005(\u0017\u0007) {
}
function \u0012(strButton) {
_global.currentCampaign = _root.world_map.more_mc.panel_mc.strSelectedCampaign;
?\x0B();
_root.fade_mc._visible = true;
_root.fade_mc.gotoAndPlay(2);
}
function 9(buttonName) {
if (lockCampaignMenu == true) {
return(undefined);
}
^\x11();
_root.world_map.more_mc._visible = true;
if ((buttonName == "sky_bt") || (buttonName == "ocean_bt")) {
_root.world_map.more_mc._x = 38;
} else {
_root.world_map.more_mc._x = 448;
}
var i = 0;
while (i < _global.Campaigns.length) {
if (_global.Campaigns[i].strButton == buttonName) {
var &\r = false;
if (_global.Campaigns[i].blnSet == true) {
if (_global.var1.Get() != -1) {
if (0\x05(buttonName) == true) {
_root.world_map.more_mc.panel_mc.gotoAndStop(3);
} else {
_root.world_map.more_mc.panel_mc.gotoAndStop(2);
}
} else {
_root.world_map.more_mc.panel_mc.gotoAndStop(1);
Set("&\r", true);
}
} else if (0\x05(buttonName) == true) {
_root.world_map.more_mc.panel_mc.gotoAndStop(3);
} else {
_root.world_map.more_mc.panel_mc.gotoAndStop(2);
}
_root.world_map.more_mc.panel_mc.strSelectedCampaign = buttonName;
_root.world_map.more_mc.panel_mc.title_txt.text = _global.Campaigns[i].strTitle;
_root.world_map.more_mc.panel_mc.difficulty_txt.text = _global.Campaigns[i].strDifficulty;
_root.world_map.more_mc.panel_mc.slots_txt.text = _global.Campaigns[i].strSlots;
if (&\r == true) {
_root.world_map.more_mc.panel_mc.description_txt.text = "This Bonus Campaign is only available on ArmorGames.com, along with 2 new turrets, achievements, and cheats! Click below to play the expansion version.";
} else {
_root.world_map.more_mc.panel_mc.description_txt.text = _global.Campaigns[i].strDescription;
}
_root.world_map.more_mc.story_mc.story_txt.text = _global.Campaigns[i].strStory;
_root.world_map.more_mc.story_mc.face_mc.gotoAndStop(_global.Campaigns[i].intFace);
var \x18\x03 = eval ("_root.world_map.more_mc." + buttonName);
\x18\x03.gotoAndPlay(2);
return;
}
i++;
}
}
function 0\u0005(_arg4) {
var _local3 = false;
var _local10 = new \x17\x04();
var _local5 = new \x17\x04();
var _local9 = new \x17\x04();
var _local6 = new \x17\x04();
var _local7 = new \x17\x04();
var _local8 = new \x17\x04();
var _local2 = SharedObject.getLocal(_global.loadSlot);
_name = _local2.data.strName;
if (_name != undefined) {
_local10.Load(_local2.data.data5);
_local5.Load(_local2.data.data6);
_local9.Load(_local2.data.data7);
_local6.Load(_local2.data.data8);
_local7.Load(_local2.data.data9);
_local8.Load(_local2.data.data10);
} else {
_local10.Load(_global.currentProfile.data5);
_local5.Load(_global.currentProfile.data6);
_local9.Load(_global.currentProfile.data7);
_local6.Load(_global.currentProfile.data8);
_local7.Load(_global.currentProfile.data9);
_local8.Load(_global.currentProfile.data10);
}
if (_arg4 == "ice_bt") {
if (_local10.Get() != -1) {
_local3 = true;
}
} else if (_arg4 == "rig_bt") {
if (_local5.Get() != -1) {
_local3 = true;
}
} else if (_arg4 == "forest_bt") {
if (_local9.Get() != -1) {
_local3 = true;
}
} else if (_arg4 == "hills_bt") {
if (_local6.Get() != -1) {
_local3 = true;
}
} else if (_arg4 == "waterfall_bt") {
if (_local7.Get() != -1) {
_local3 = true;
}
} else if (_arg4 == "end_bt") {
if (_local8.Get() != -1) {
_local3 = true;
}
}
return(_local3);
}
function =\u0010() {
var \x07\n = false;
var nextCampaign = "";
var beatIceCampaign = new \x17\x04();
var beatRigCampaign = new \x17\x04();
var beatForestCampaign = new \x17\x04();
var beatHillsCampaign = new \x17\x04();
var beatWaterfallCampaign = new \x17\x04();
var beatEndCampaign = new \x17\x04();
var mySharedObject = SharedObject.getLocal(_global.loadSlot);
_name = mySharedObject.data.strName;
if (_name != undefined) {
beatIceCampaign.Load(mySharedObject.data.data5);
beatRigCampaign.Load(mySharedObject.data.data6);
beatForestCampaign.Load(mySharedObject.data.data7);
beatHillsCampaign.Load(mySharedObject.data.data8);
beatWaterfallCampaign.Load(mySharedObject.data.data9);
beatEndCampaign.Load(mySharedObject.data.data10);
} else {
beatIceCampaign.Load(_global.currentProfile.data5);
beatRigCampaign.Load(_global.currentProfile.data6);
beatForestCampaign.Load(_global.currentProfile.data7);
beatHillsCampaign.Load(_global.currentProfile.data8);
beatWaterfallCampaign.Load(_global.currentProfile.data9);
beatEndCampaign.Load(_global.currentProfile.data10);
}
if (beatRigCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "rig_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(2);
_root.world_map.ice_bt.gotoAndStop(2);
_root.world_map.hills_bt.gotoAndStop(2);
_root.world_map.waterfall_bt.gotoAndStop(2);
_root.world_map.end_bt.gotoAndStop(2);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
if (\x07\n == false) {
if (beatForestCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "forest_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(2);
_root.world_map.hills_bt.gotoAndStop(2);
_root.world_map.waterfall_bt.gotoAndStop(2);
_root.world_map.end_bt.gotoAndStop(2);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
if (\x07\n == false) {
if (beatIceCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "ice_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(1);
_root.world_map.hills_bt.gotoAndStop(1);
_root.world_map.waterfall_bt.gotoAndStop(2);
_root.world_map.end_bt.gotoAndStop(2);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
if (\x07\n == false) {
if (beatHillsCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "hills_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(1);
_root.world_map.hills_bt.gotoAndStop(1);
_root.world_map.waterfall_bt.gotoAndStop(2);
_root.world_map.end_bt.gotoAndStop(2);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
if (\x07\n == false) {
if (beatWaterfallCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "waterfall_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(1);
_root.world_map.hills_bt.gotoAndStop(1);
_root.world_map.waterfall_bt.gotoAndStop(1);
_root.world_map.end_bt.gotoAndStop(2);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
if (\x07\n == false) {
if (beatEndCampaign.Get() == -1) {
Set("\x07\n", true);
nextCampaign = "end_bt";
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(1);
_root.world_map.hills_bt.gotoAndStop(1);
_root.world_map.waterfall_bt.gotoAndStop(1);
_root.world_map.end_bt.gotoAndStop(1);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
if (\x07\n == true) {
var \x13\x02 = eval ("_root.world_map." + nextCampaign);
_root.world_map.next_mc.gotoAndPlay(1);
_root.world_map.next_mc._x = \x13\x02._x;
_root.world_map.next_mc._y = \x13\x02._y;
} else {
_root.world_map.next_mc._x = -100;
_root.world_map.next_mc._y = -100;
_root.world_map.rig_bt.gotoAndStop(1);
_root.world_map.forest_bt.gotoAndStop(1);
_root.world_map.ice_bt.gotoAndStop(1);
_root.world_map.hills_bt.gotoAndStop(1);
_root.world_map.waterfall_bt.gotoAndStop(1);
_root.world_map.end_bt.gotoAndStop(1);
_root.world_map.twentyfive_bt.gotoAndStop(1);
}
}
function \u001D\u0010() {
var _local2 = true;
if (_root.world_map.more_mc._visible == true) {
if (_root.world_map.more_mc.panel_mc.play_bt.hitTest(_xmouse, _ymouse)) {
_local2 = false;
} else if (_root.world_map.more_mc.panel_mc.more_bt.hitTest(_xmouse, _ymouse)) {
_local2 = false;
}
}
if (_local2 == true) {
_root.world_map.more_mc._visible = false;
^\x11();
}
}
function ^\u0011() {
_root.world_map.more_mc.rig_bt.gotoAndStop(1);
_root.world_map.more_mc.forest_bt.gotoAndStop(1);
_root.world_map.more_mc.ice_bt.gotoAndStop(1);
_root.world_map.more_mc.hills_bt.gotoAndStop(1);
_root.world_map.more_mc.waterfall_bt.gotoAndStop(1);
_root.world_map.more_mc.end_bt.gotoAndStop(1);
_root.world_map.more_mc.twentyfive_bt.gotoAndStop(1);
}
function ]\u000F(_arg20, _arg21) {
var _local12 = \n\n();
if (_local12 == "none") {
_global.SaveStrName = _arg20;
_global.SaveStrDifficulty = _arg21;
_global.overWriteSlot = true;
} else {
_global.loadSlot = _local12;
var _local4 = new \x17\x04();
var _local10 = new \x17\x04();
var _local3 = new \x17\x04();
var _local7 = new \x17\x04();
var _local13 = new \x17\x04();
var _local5 = new \x17\x04();
var _local11 = new \x17\x04();
var _local6 = new \x17\x04();
var _local8 = new \x17\x04();
var _local9 = new \x17\x04();
_local13.mSet(4635);
_local5.mSet(6873);
_local11.mSet(1348);
_local6.mSet(2468);
_local8.mSet(1337);
_local9.mSet(4221);
var _local19 = new \x17\x04();
var _local16 = new \x17\x04();
var _local15 = new \x17\x04();
var _local18 = new \x17\x04();
var _local17 = new \x17\x04();
var _local14 = new \x17\x04();
_local3.Set(4);
_local7.Set(2000);
_local19.Set(9033);
_local16.Set(22);
_local15.Set(9060);
_local18.Set(453);
_local17.Set(9340);
_local14.Set(119843);
_local4.Set(_global.startMoney);
_local10.Set(1);
var _local2 = SharedObject.getLocal(_local12);
_local2.data.blnInUse = true;
_local2.data.strName = _arg20;
_local2.data.strDifficulty = _arg21;
_local2.data.strCampaign = "none";
_local2.data.data1 = _local4.Store();
_local2.data.data2 = _local10.Store();
_local2.data.data3 = _local3.Store();
_local2.data.data4 = _local7.Store();
_local2.data.data5 = _local13.Store();
_local2.data.data6 = _local5.Store();
_local2.data.data7 = _local11.Store();
_local2.data.data8 = _local6.Store();
_local2.data.data9 = _local8.Store();
_local2.data.data10 = _local9.Store();
_local2.data.data12 = _global.cheatsEnabled.Store();
_local2.data.data13 = _local19.Store();
_local2.data.data14 = _local16.Store();
_local2.data.data15 = _local15.Store();
_local2.data.data16 = _local18.Store();
_local2.data.data17 = _local17.Store();
_local2.data.data18 = _local14.Store();
_local2.data.gu = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_local2.data.arrAllies = new Array();
_local2.data.arrStorage = new Array();
_local2.data.arrSlots = new Array();
_global.currentProfile.blnInUse = true;
_global.currentProfile.strName = _arg20;
_global.currentProfile.strDifficulty = _arg21;
_global.currentProfile.strCampaign = "none";
_global.currentProfile.data1 = _local4.Store();
_global.currentProfile.data2 = _local10.Store();
_global.currentProfile.data3 = _local3.Store();
_global.currentProfile.data4 = _local7.Store();
_global.currentProfile.data5 = _local13.Store();
_global.currentProfile.data6 = _local5.Store();
_global.currentProfile.data7 = _local11.Store();
_global.currentProfile.data8 = _local6.Store();
_global.currentProfile.data9 = _local8.Store();
_global.currentProfile.data10 = _local9.Store();
_global.currentProfile.data12 = _global.cheatsEnabled.Store();
_global.currentProfile.arrAllies = new Array();
_global.currentProfile.arrStorage = new Array();
_global.currentProfile.arrSlots = new Array();
_global.currentProfile.gu = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
}
function )\u0006() {
var _local4 = new \x17\x04();
var _local6 = new \x17\x04();
var _local3 = new \x17\x04();
var _local5 = new \x17\x04();
var _local18 = new \x17\x04();
var _local7 = new \x17\x04();
var _local16 = new \x17\x04();
var _local8 = new \x17\x04();
var _local10 = new \x17\x04();
var _local13 = new \x17\x04();
_local18.mSet(4635);
_local7.mSet(6873);
_local16.mSet(1348);
_local8.mSet(2468);
_local10.mSet(1337);
_local13.mSet(4221);
var _local17 = new \x17\x04();
var _local12 = new \x17\x04();
var _local11 = new \x17\x04();
var _local15 = new \x17\x04();
var _local14 = new \x17\x04();
var _local9 = new \x17\x04();
_local3.Set(4);
_local5.Set(2000);
_local17.Set(9033);
_local12.Set(22);
_local11.Set(9060);
_local15.Set(453);
_local14.Set(9340);
_local9.Set(9498);
_local4.Set(_global.startMoney);
_local6.Set(1);
var _local2 = SharedObject.getLocal(_global.loadSlot);
_local2.data.blnInUse = true;
_local2.data.strName = _global.SaveStrName;
_local2.data.strDifficulty = _global.SaveStrDifficulty;
_local2.data.strCampaign = "none";
_local2.data.data1 = _local4.Store();
_local2.data.data2 = _local6.Store();
_local2.data.data3 = _local3.Store();
_local2.data.data4 = _local5.Store();
_local2.data.data5 = _local18.Store();
_local2.data.data6 = _local7.Store();
_local2.data.data7 = _local16.Store();
_local2.data.data8 = _local8.Store();
_local2.data.data9 = _local10.Store();
_local2.data.data10 = _local13.Store();
_local2.data.data12 = _global.cheatsEnabled.Store();
_local2.data.data13 = _local17.Store();
_local2.data.data14 = _local12.Store();
_local2.data.data15 = _local11.Store();
_local2.data.data16 = _local15.Store();
_local2.data.data17 = _local14.Store();
_local2.data.data18 = _local9.Store();
_local2.data.gu = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_local2.data.arrAllies = new Array();
_local2.data.arrStorage = new Array();
_local2.data.arrSlots = new Array();
_local2.flush();
_global.currentProfile.blnInUse = true;
_global.currentProfile.strName = strName;
_global.currentProfile.strDifficulty = strDifficulty;
_global.currentProfile.strCampaign = "none";
_global.currentProfile.data1 = _local4.Store();
_global.currentProfile.data2 = _local6.Store();
_global.currentProfile.data3 = _local3.Store();
_global.currentProfile.data4 = _local5.Store();
_global.currentProfile.data5 = beatOceanCampaign.Store();
_global.currentProfile.data6 = beatSkyCampaign.Store();
_global.currentProfile.data7 = beatPlainsCampaign.Store();
_global.currentProfile.data8 = beatPeaksCampaign.Store();
_global.currentProfile.data9 = beatMountainCampaign.Store();
_global.currentProfile.data10 = beatCityCampaign.Store();
_global.currentProfile.data11 = beatSouthCampaign.Store();
_global.currentProfile.data18 = beatDesertCampaign.Store();
_global.currentProfile.data12 = _global.cheatsEnabled.Store();
_global.currentProfile.arrAllies = new Array();
_global.currentProfile.arrStorage = new Array();
_global.currentProfile.arrSlots = new Array();
_global.currentProfile.gu = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function \u000A\u000A() {
var _local2 = false;
var _local3 = "none";
var _local1 = SharedObject.getLocal("slot1");
if (_local1.data.blnInUse == undefined) {
_local2 = true;
_local3 = "slot1";
}
if (_local2 == false) {
_local1 = SharedObject.getLocal("slot2");
if (_local1.data.blnInUse == undefined) {
_local2 = true;
_local3 = "slot2";
}
}
if (_local2 == false) {
_local1 = SharedObject.getLocal("slot3");
if (_local1.data.blnInUse == undefined) {
_local2 = true;
_local3 = "slot3";
}
}
return(_local3);
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
function [\u0002() {
if (\x15\x07 == true) {
var _local2 = 0;
while (_local2 < 18) {
var _local3 = "water_" + 8\r;
_root["\"\x02"].attachMovie("water", _local3, 8\r);
8\r++;
if (8\r > 5000) {
Set("8\r", 3000);
}
_local2++;
}
}
}
function \u000F\u0007() {
var _local2 = 0;
while (_local2 < \x07.length) {
_root["\"\x02"][\x07[_local2]]._y = _root["\"\x02"][\x07[_local2]]._y + 45;
if (_root["\"\x02"][\x07[_local2]]._y > 384) {
_root["\"\x02"][\x07[_local2]].removeMovieClip();
}
_local2++;
}
}
function ;\u0003() {
_root["\x02"].gotoAndPlay(112);
\x01(_root["\x07\x02"], _root["\x07\x02"]._x, 500, &\x07);
_root.play_menu.gotoAndPlay("start");
}
function 6\u0005() {
_root["\x02"].gotoAndPlay(112);
\x01(_root["\x07\x02"], _root["\x07\x02"]._x, 500, &\x07);
_root.settings_menu.gotoAndPlay("start");
}
function \u0002\u0002() {
_root["\x02"].gotoAndPlay(112);
\x01(_root["\x07\x02"], _root["\x07\x02"]._x, 500, &\x07);
_root.credits_menu.gotoAndPlay("start");
}
function @\u0007() {
_root["\x02"].gotoAndPlay(112);
\x01(_root["\x07\x02"], _root["\x07\x02"]._x, 500, &\x07);
_root.achievements_menu.gotoAndPlay("start");
}
function 5\u0002() {
getURL ("http://armorgames.com/play/3099/stormwinds-the-lost-campaigns", "_blank");
}
function BackToMenu(_arg3) {
if (_arg3 == "play") {
_root.play_menu.gotoAndPlay("stop");
} else if (_arg3 == "play2") {
_root.play_menu.gotoAndStop("off");
} else if (_arg3 == "play3") {
_root.play_menu.gotoAndPlay(25);
} else if (_arg3 == "settings") {
_root.settings_menu.gotoAndPlay("stop");
} else if (_arg3 == "credits") {
_root.credits_menu.gotoAndPlay("stop");
} else if (_arg3 == "hotkeys") {
_root.settings_menu.gotoAndStop("off");
} else if (_arg3 == "achievements") {
_root.achievements_menu.gotoAndPlay("stop");
} else if (_arg3 == "overwriteNo") {
_root.play_menu.gotoAndPlay(33);
}
_global.overWriteSlot = false;
_root["\x02"].gotoAndPlay(119);
\x01(_root["\x07\x02"], _root["\x07\x02"]._x, 340, &\x07);
}
function =\u0005() {
var _local4 = _root.play_menu.player_name_txt.text;
Set("\x1D\x11", "");
var _local3 = 0;
while (_local3 < _local4.length) {
if ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((_local4.charAt(_local3) == "a") || (_local4.charAt(_local3) == "b")) || (_local4.charAt(_local3) == "c")) || (_local4.charAt(_local3) == "d")) || (_local4.charAt(_local3) == "e")) || (_local4.charAt(_local3) == "f")) || (_local4.charAt(_local3) == "g")) || (_local4.charAt(_local3) == "h")) || (_local4.charAt(_local3) == "i")) || (_local4.charAt(_local3) == "j")) || (_local4.charAt(_local3) == "k")) || (_local4.charAt(_local3) == "l")) || (_local4.charAt(_local3) == "m")) || (_local4.charAt(_local3) == "n")) || (_local4.charAt(_local3) == "o")) || (_local4.charAt(_local3) == "p")) || (_local4.charAt(_local3) == "q")) || (_local4.charAt(_local3) == "r")) || (_local4.charAt(_local3) == "s")) || (_local4.charAt(_local3) == "t")) || (_local4.charAt(_local3) == "u")) || (_local4.charAt(_local3) == "v")) || (_local4.charAt(_local3) == "w")) || (_local4.charAt(_local3) == "x")) || (_local4.charAt(_local3) == "y")) || (_local4.charAt(_local3) == "z")) || (_local4.charAt(_local3) == "A")) || (_local4.charAt(_local3) == "B")) || (_local4.charAt(_local3) == "C")) || (_local4.charAt(_local3) == "D")) || (_local4.charAt(_local3) == "E")) || (_local4.charAt(_local3) == "F")) || (_local4.charAt(_local3) == "G")) || (_local4.charAt(_local3) == "H")) || (_local4.charAt(_local3) == "I")) || (_local4.charAt(_local3) == "J")) || (_local4.charAt(_local3) == "K")) || (_local4.charAt(_local3) == "L")) || (_local4.charAt(_local3) == "M")) || (_local4.charAt(_local3) == "N")) || (_local4.charAt(_local3) == "O")) || (_local4.charAt(_local3) == "P")) || (_local4.charAt(_local3) == "Q")) || (_local4.charAt(_local3) == "R")) || (_local4.charAt(_local3) == "S")) || (_local4.charAt(_local3) == "T")) || (_local4.charAt(_local3) == "U")) || (_local4.charAt(_local3) == "V")) || (_local4.charAt(_local3) == "W")) || (_local4.charAt(_local3) == "X")) || (_local4.charAt(_local3) == "Y")) || (_local4.charAt(_local3) == "Z")) || (_local4.charAt(_local3) == " ")) || (_local4.charAt(_local3) == "_")) || (_local4.charAt(_local3) == "1")) || (_local4.charAt(_local3) == "2")) || (_local4.charAt(_local3) == "3")) || (_local4.charAt(_local3) == "4")) || (_local4.charAt(_local3) == "5")) || (_local4.charAt(_local3) == "6")) || (_local4.charAt(_local3) == "7")) || (_local4.charAt(_local3) == "8")) || (_local4.charAt(_local3) == "9")) || (_local4.charAt(_local3) == "0")) {
Set("\x1D\x11", \x1D\x11 + _local4.charAt(_local3));
}
_local3++;
}
_root.play_menu.player_name_txt.text = \x1D\x11;
if (_local4 == \x1D\x11) {
]\x0F(_root.play_menu.player_name_txt.text, "Medium");
if (_global.overWriteSlot == true) {
_root.play_menu.gotoAndPlay(24);
} else {
4(1);
}
}
if ((\x1D\x11 == "") || (\x1D\x11 == "Enter Profile Name")) {
_root.play_menu.player_name_txt.text = "Enter Profile Name";
}
}
function \u001E\u0007(_arg1) {
if (_arg1 == 1) {
} else if (_arg1 == 2) {
} else if (_arg1 == 3) {
}
}
function 4(_arg2) {
_root.lightning_mc.gotoAndStop(1);
Set("\x15\x07", false);
if (_arg2 == 1) {
_root.play_menu.gotoAndPlay(17);
_root.world_map._visible = true;
_root.world_map.gotoAndPlay("start");
} else if (_arg2 == 2) {
_root.play_menu.gotoAndPlay(25);
_root.world_map._visible = true;
_root.world_map.gotoAndPlay("start");
} else if (_arg2 == 3) {
_root.play_menu.gotoAndPlay(33);
_root.world_map._visible = true;
_root.world_map.gotoAndPlay("start");
} else if (_arg2 == 4) {
_root.play_menu.gotoAndPlay("off");
_root.world_map._visible = true;
_root.world_map.gotoAndPlay("start");
}
=\x10();
}
function ?\u0002() {
_root["+\x10"].bg_ships.s1.gotoAndPlay("light");
_root["+\x10"].bg_ships.s2.gotoAndPlay("light");
_root["+\x10"].bg_ships.s3.gotoAndPlay("light");
_root["+\x10"].bg_ships.s4.gotoAndPlay("light");
_root["+\x10"].bg_ships.s5.gotoAndPlay("light");
_root["+\x10"].bg_ships.s6.gotoAndPlay("light");
_root["+\x10"].bg_ships.s7.gotoAndPlay("light");
_root["+\x10"].bg_ships.s8.gotoAndPlay("light");
_root["+\x10"].bg_ships.s9.gotoAndPlay("light");
_root["+\x10"].bg_ships.s10.gotoAndPlay("light");
_root["+\x10"].bg_ships.s11.gotoAndPlay("light");
_root["+\x10"].bg_ships.s12.gotoAndPlay("light");
}
function \u0001\u000B() {
_root["+\x10"].bg_ships.s1.gotoAndStop("dark");
_root["+\x10"].bg_ships.s2.gotoAndStop("dark");
_root["+\x10"].bg_ships.s3.gotoAndStop("dark");
_root["+\x10"].bg_ships.s4.gotoAndStop("dark");
_root["+\x10"].bg_ships.s5.gotoAndStop("dark");
_root["+\x10"].bg_ships.s6.gotoAndStop("dark");
_root["+\x10"].bg_ships.s7.gotoAndStop("dark");
_root["+\x10"].bg_ships.s8.gotoAndStop("dark");
_root["+\x10"].bg_ships.s9.gotoAndStop("dark");
_root["+\x10"].bg_ships.s10.gotoAndStop("dark");
_root["+\x10"].bg_ships.s11.gotoAndStop("dark");
_root["+\x10"].bg_ships.s12.gotoAndStop("dark");
}
function \u0001(_arg4, _arg3, _arg1, _arg2) {
7\f++;
Set("@", false);
if (7\f == 1) {
+\x03(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 2) {
7\n(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 3) {
\x05\x04(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 4) {
5\x04(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 5) {
[\x10(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 6) {
\x19\x05(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 7) {
\x1C\x07(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 8) {
'(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 9) {
`\n(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 10) {
\r\x12(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 11) {
\"\x04(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 12) {
>\x0E(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 13) {
8(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 14) {
\x05\x07(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 15) {
4\x06(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 16) {
\x10(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 17) {
\x12\x03(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 18) {
>\x04(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 19) {
](_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 20) {
\x14\r(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 21) {
`\x0E(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 22) {
'\n(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 23) {
1\x0B(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 24) {
3\x11(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 25) {
(\x03(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 26) {
(\x06(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 27) {
\x1A\r(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 28) {
\x04\x10(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 29) {
)\x04(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 30) {
\x1D\x0F(_arg4, _arg3, _arg1, _arg2);
} else if (7\f == 31) {
+\x03(_arg4, _arg3, _arg1, _arg2);
Set("7\f", 1);
}
}
function +\u0003(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 7\u000A(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0005\u0004(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 5\u0004(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function [\u0010(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0019\u0005(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u001C\u0007(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function '(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function `\u000A(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u000D\u0012(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function "\u0004(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function >\u000E(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 8(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0005\u0007(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 4\u0006(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0010(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0012\u0003(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function >\u0004(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function ](_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0014\u000D(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function `\u000E(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function '\u000A(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 1\u000B(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function 3\u0011(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function (\u0003(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function (\u0006(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u001A\u000D(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u0004\u0010(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function )\u0004(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u001D\u000F(_arg1, _arg5, _arg6, _arg4) {
var _local2 = _arg1._x;
var _local3 = _arg1._y;
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_x", \x1F\x10.transitions.easing.Strong.easeOut, _local2, _arg5, _arg4, true);
myTweening = new \x1F\x10.transitions.Tween(_arg1, "_y", \x1F\x10.transitions.easing.Strong.easeOut, _local3, _arg6, _arg4, true);
myTweening[")"] = FPSforTweenClass;
myTweening.onMotionFinished = function () {
Set("@", true);
\x1D\x06();
};
}
function \u001D\u0006() {
if (\x16\x05 == "") {
}
}
stop();
if (_global.showFrameRate == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
).Start();
}
var @;
var 7\f;
var \x16\x05;
var &\x07;
var (\r;
var \x07\r;
var \x03;
var \x0F\x10;
var \x03\x0E;
var \n\x06;
var +\x11;
var \x0E\x02;
var \"\x0B;
var ]\x10;
var \x19\x0E;
var \x14\f;
var ^\r;
var \x01\x0F;
var \x0E\x06;
var \x04\x0B;
var 8\r;
var \x07;
var \x15\x07;
var enemyDiv = 400;
var \x1D\x11;
var [\x11;
var @\x05;
Instance of Symbol 291 MovieClip in Frame 5
onClipEvent (load) {
_root.\x15\x02();
}
onClipEvent (enterFrame) {
_root.%\n();
}
Frame 7
_global.gamePaused = false;
_global.gravityConst = 0;
var \x1C\x05 = _global.showFrameRate;
var game = new \x1F\n();
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Instance of Symbol 291 MovieClip "gameActions_mc" in Frame 7
onClipEvent (load) {
}
onClipEvent (enterFrame) {
}
Frame 8
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 9
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 10
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 11
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 12
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 13
_global.gamePaused = false;
_global.gravityConst = 0;
var game = new \x1F\n();
var \x1C\x05 = _global.showFrameRate;
if (\x1C\x05 == true) {
var ) = new \x0E();
).\x1A\x0B(16777215);
}
stop();
gameActions_mc.onLoad = function () {
if (\x1C\x05 == true) {
).Start();
}
game.Load();
};
gameActions_mc.onEnterFrame = function () {
if (\x1C\x05 == true) {
).%\n();
}
game.%\n();
};
Frame 18
stop();
Frame 19
stop();
Frame 20
stop();
Frame 22
gotoAndPlay (66);
Frame 66
gotoAndStop (3);
Frame 78
stop();
Frame 82
stop();
Symbol 4 MovieClip [orbitalMine] Frame 1
#initclip 78
Object.registerClass("orbitalMine", @\n);
#endinitclip
Symbol 11 MovieClip Frame 1
this._alpha = 0;
Symbol 13 MovieClip [upgradeMachineGuns] Frame 1
stop();
Symbol 13 MovieClip [upgradeMachineGuns] Frame 2
stop();
Symbol 17 MovieClip [upgradeDensity] Frame 1
stop();
Symbol 17 MovieClip [upgradeDensity] Frame 2
stop();
Symbol 21 MovieClip [upgradeNumArtillery] Frame 1
stop();
Symbol 21 MovieClip [upgradeNumArtillery] Frame 2
stop();
Symbol 25 MovieClip [upgradeRange] Frame 1
stop();
Symbol 25 MovieClip [upgradeRange] Frame 2
stop();
Symbol 29 MovieClip [upgradeDuration] Frame 1
stop();
Symbol 29 MovieClip [upgradeDuration] Frame 2
stop();
Symbol 33 MovieClip [upgradeReload] Frame 1
stop();
Symbol 33 MovieClip [upgradeReload] Frame 2
stop();
Symbol 37 MovieClip [upgradeFragment] Frame 1
stop();
Symbol 37 MovieClip [upgradeFragment] Frame 2
stop();
Symbol 41 MovieClip [upgradeSecondary] Frame 1
stop();
Symbol 41 MovieClip [upgradeSecondary] Frame 2
stop();
Symbol 45 MovieClip [upgradeJump] Frame 1
stop();
Symbol 45 MovieClip [upgradeJump] Frame 2
stop();
Symbol 49 MovieClip [upgradeBuff] Frame 1
stop();
Symbol 49 MovieClip [upgradeBuff] Frame 2
stop();
Symbol 53 MovieClip [upgradeMineNumber] Frame 1
stop();
Symbol 53 MovieClip [upgradeMineNumber] Frame 2
stop();
Symbol 57 MovieClip [upgradeDecoyNumber] Frame 1
stop();
Symbol 57 MovieClip [upgradeDecoyNumber] Frame 2
stop();
Symbol 61 MovieClip [upgradeDecoyHealth] Frame 1
stop();
Symbol 61 MovieClip [upgradeDecoyHealth] Frame 2
stop();
Symbol 65 MovieClip [upgradeHealth] Frame 1
stop();
Symbol 65 MovieClip [upgradeHealth] Frame 2
stop();
Symbol 69 MovieClip [upgradeDamage] Frame 1
stop();
Symbol 69 MovieClip [upgradeDamage] Frame 2
stop();
Symbol 73 MovieClip [alertAchievement] Frame 221
_root.game.\x01\x03(this._name);
stop();
Symbol 75 MovieClip [bullet1] Frame 1
#initclip 72
Object.registerClass("bullet1", 3\x07);
#endinitclip
Symbol 77 MovieClip [piece1] Frame 1
#initclip 73
Object.registerClass("piece1", >\x11);
#endinitclip
Symbol 81 MovieClip [levelUp] Frame 60
_root.game.\x01\x03(this._name);
stop();
Symbol 83 MovieClip [machineGunHit] Frame 2
_root.game.\x01\x03(this._name);
stop();
Symbol 85 MovieClip [selectGun] Frame 60
_root.game.\x01\x03(this._name);
stop();
Symbol 88 MovieClip [spark] Frame 1
#initclip 74
Object.registerClass("spark", >\x11);
#endinitclip
Symbol 91 MovieClip [piece2] Frame 1
#initclip 75
Object.registerClass("piece2", >\x11);
#endinitclip
Symbol 94 MovieClip [plasmaGunHit] Frame 3
_root.game.\x01\x03(this._name);
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 4
gotoAndStop (1);
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 9
gotoAndPlay (2);
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 9
gotoAndPlay ("Shoot");
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 10
this._parent._parent._parent.5\r(this._parent._parent._name);
stop();
Symbol 143 MovieClip Frame 20
gotoAndStop (1);
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 155
this._parent.gun_3.beam_mc._visible = true;
this._parent.gun_4.beam_mc._visible = true;
this._parent.gun_5.beam_mc._visible = true;
this._parent.energyBall_mc._visible = true;
Symbol 218 MovieClip Frame 196
this.inside_mc.beam_mc._visible = true;
this.inside_mc.beam_mc._alpha = 100;
this.inside_mc.beam_mc._width = 750;
this.inside_mc.beam_mc.gotoAndPlay(2);
_root.game.\x19\x04(45);
_root.game.\r\f();
Symbol 218 MovieClip Frame 230
this.inside_mc.beam_mc.play();
Symbol 218 MovieClip Frame 240
this._parent.gun_3.beam_mc._visible = false;
this._parent.gun_4.beam_mc._visible = false;
this._parent.gun_5.beam_mc._visible = false;
this._parent.energyBall_mc._visible = false;
this.inside_mc.beam_mc._width = 30;
this.inside_mc.beam_mc.gotoAndStop(1);
this.inside_mc.beam_mc._visible = false;
Symbol 218 MovieClip Frame 241
gotoAndStop (1);
Symbol 220 MovieClip Frame 1
this.beam_mc._visible = false;
stop();
Symbol 222 MovieClip Frame 1
this._alpha = 0;
Symbol 232 MovieClip [Enemy_54] Frame 1
#initclip 76
Object.registerClass("Enemy_54", Enemy_54);
#endinitclip
this.energyBall_mc._visible = false;
stop();
Symbol 232 MovieClip [Enemy_54] Frame 2
stop();
Symbol 245 MovieClip [Enemy_52] Frame 1
#initclip 77
Object.registerClass("Enemy_52", Enemy_52);
#endinitclip
stop();
Symbol 245 MovieClip [Enemy_52] Frame 2
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 281 Button
on (release) {
if (_global.okToPlay == true) {
_root.gotoAndPlay(22);
} else {
_root.gotoAndStop(82);
}
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 2
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 2541 MovieClip [__Packages.DataObject] Frame 0
class
{
var
, , 7;
function () {
var _local3 = RandNum(55, 66);
\x1C\r = new Array(_local3);
var _local2 = 0;
while (_local2 < _local3) {
\x1C\r[_local2] = 0;
_local2++;
}
\x02\x12 = -1;
7\x05 = -1;
}
function Set(_arg8) {
var _local6 = Math.round(Math.random() * _arg8);
var _local7 = _arg8 - _local6;
\x02\x12 = RandNum(0, \x1C\r.length - 4);
7\x05 = RandNum(0, \x1C\r.length - 4);
if (\x02\x12 == 7\x05) {
if (\x02\x12 == (\x1C\r.length - 1)) {
7\x05 = \x02\x12 - 1;
} else {
7\x05 = \x02\x12 + 1;
}
}
var _local5 = _arg8 / (\x1C\r.length - 2);
var _local4 = _arg8;
var _local9 = \x1C\r.length;
var _local2 = 0;
while (_local2 < \x1C\r.length) {
if (_local2 == \x02\x12) {
\x1C\r[_local2] = _local6;
} else if (_local2 == 7\x05) {
\x1C\r[_local2] = _local7;
} else {
var _local3 = 0;
if (_local4 > 0) {
_local3 = Math.round((Math.random() * _local5) + (_local5 * 0.5));
if (_local3 > _local4) {
_local3 = _local4;
}
if (_local2 == (\x1C\r.length - 1)) {
_local3 = _local4;
}
_local4 = _local4 - _local3;
}
\x1C\r[_local2] = _local3;
}
_local2++;
}
}
function mSet(_arg6) {
var _local7 = 0;
while (_local7 < 10) {
var _local5 = Math.round(Math.random() * _arg6);
var _local8 = _arg6 - _local5;
\x02\x12 = RandNum(0, \x1C\r.length - 4);
7\x05 = RandNum(0, \x1C\r.length - 4);
if (\x02\x12 == 7\x05) {
if (\x02\x12 == (\x1C\r.length - 1)) {
7\x05 = \x02\x12 - 1;
} else {
7\x05 = \x02\x12 + 1;
}
}
var _local4 = _arg6 / (\x1C\r.length - 2);
var _local10 = _arg6;
var _local9 = \x1C\r.length;
var _local2 = 0;
while (_local2 < \x1C\r.length) {
if (_local2 == \x02\x12) {
\x1C\r[_local2] = _local5;
} else if (_local2 == 7\x05) {
\x1C\r[_local2] = _local8;
} else {
var _local3 = 0;
_local3 = Math.round((Math.random() * (_local4 * 1.23)) + (_local4 * 0.75));
\x1C\r[_local2] = _local3;
}
_local2++;
}
if (Get() == -1) {
break;
}
_local7++;
}
}
function Get() {
var _local3 = 0;
var _local4 = 0;
var _local2 = 0;
while (_local2 < \x1C\r.length) {
if (_local2 == \x02\x12) {
_local3 = _local3 + \x1C\r[_local2];
} else if (_local2 == 7\x05) {
_local3 = _local3 + \x1C\r[_local2];
} else {
_local4 = _local4 + \x1C\r[_local2];
}
_local2++;
}
if (_local3 == _local4) {
return(_local3);
}
return(-1);
}
function Store() {
var _local2 = \x1C\r.slice();
_local2.splice(2, 0, \x02\x12);
_local2.splice(7, 0, 7\x05);
return(_local2);
}
function Load(_arg2) {
\x02\x12 = _arg2[2];
7\x05 = _arg2[7];
delete \x1C\r;
\x1C\r = _arg2.slice();
\x1C\r.splice(7, 1);
\x1C\r.splice(2, 1);
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 2542 MovieClip [__Packages.PlayerProfile] Frame 0
class
{
var blnInUse;
function
() {
blnInUse = false;
}
}
Symbol 2543 MovieClip [__Packages.SoundPlayer] Frame 0
class "
{
var , , , &,
, 6;
function " () {
\x01\x0E = new Array(true, true, true, true, true, true);
\x1D\f = new Sound(_root["8\x0E"]);
\x06\x0E = new Sound(_root[" \x06"]);
&\x02 = new Sound(_root["=\x0B"]);
this["?\n"] = new Sound(_root[",\f"]);
\x01\n = new Sound(_root["\x05\x0F"]);
6\f = new Sound(_root["\x0B\x05"]);
this["?\x04"] = 100;
}
function (_arg2) {
\x01\x0E[_arg2] = true;
}
function PlaySound(_arg4) {
if (_global.soundOn == true) {
var thisRef = this;
if (\x01\x0E[0] == true) {
\x01\x0E[0] = false;
delete \x1D\f;
\x1D\f = new Sound(_root["8\x0E"]);
\x1D\f.attachSound(_arg4);
\x1D\f.setVolume(100);
\x1D\f.start(0, 0);
\x1D\f.onSoundComplete = function () {
thisRef.\x1E\x03(0);
};
} else if (\x01\x0E[1] == true) {
\x01\x0E[1] = false;
delete \x06\x0E;
\x06\x0E = new Sound(_root[" \x06"]);
\x06\x0E.attachSound(_arg4);
\x06\x0E.setVolume(100);
\x06\x0E.start(0, 0);
\x06\x0E.onSoundComplete = function () {
thisRef.\x1E\x03(1);
};
} else if (\x01\x0E[4] == true) {
\x01\x0E[4] = false;
delete \x01\n;
\x01\n = new Sound(_root["\x05\x0F"]);
\x01\n.attachSound(_arg4);
\x01\n.setVolume(100);
\x01\n.start(0, 0);
\x01\n.onSoundComplete = function () {
thisRef.\x1E\x03(4);
};
} else if (\x01\x0E[5] == true) {
\x01\x0E[5] = false;
delete 6\f;
6\f = new Sound(_root["\x0B\x05"]);
6\f.attachSound(_arg4);
6\f.setVolume(100);
6\f.start(0, 0);
6\f.onSoundComplete = function () {
thisRef.\x1E\x03(5);
};
} else {
\x01\x0E[0] = false;
delete \x1D\f;
\x1D\f = new Sound(_root["8\x0E"]);
\x1D\f.attachSound(_arg4);
\x1D\f.setVolume(100);
\x1D\f.start(0, 0);
\x1D\f.onSoundComplete = function () {
thisRef.\x1E\x03(0);
};
}
}
}
function (_arg4) {
if (_global.soundOn == true) {
var thisRef = this;
if (\x01\x0E[2] == true) {
\x01\x0E[2] = false;
delete &\x02;
&\x02 = new Sound(_root["=\x0B"]);
&\x02.attachSound(_arg4);
&\x02.setVolume(100);
&\x02.start(0, 0);
&\x02.onSoundComplete = function () {
thisRef.\x1E\x03(2);
};
}
}
}
function [(_arg5) {
if (_global.soundOn == true) {
var _local4 = this;
if (\x01\x0E[3] == true) {
\x01\x0E[3] = false;
delete this["?\n"];
this["?\n"] = new Sound(_root[",\f"]);
this["?\n"].attachSound(_arg5);
this["?\n"].setVolume(50);
this["?\n"].start(0, 99999);
}
}
}
function StopChannelOne() {
if (\x01\x0E[0] == false) {
\x01\x0E[0] = true;
\x1D\f.stop();
}
}
function () {
if (\x01\x0E[3] == false) {
\x01\x0E[3] = true;
this["?\n"].stop();
}
}
function (_arg2) {
var thisRef = this;
if (\x01\x0E[0] == true) {
\x01\x0E[0] = false;
delete \x1D\f;
\x1D\f = new Sound();
\x1D\f.loadSound(_arg2, false);
\x1D\f.setVolume(this["?\x04"]);
\x1D\f.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x1D\f.onSoundComplete = function () {
thisRef.\x1E\x03(0);
};
} else if (\x01\x0E[1] == true) {
\x01\x0E[1] = false;
delete \x06\x0E;
\x06\x0E = new Sound();
\x06\x0E.loadSound(_arg2, false);
\x06\x0E.setVolume(this["?\x04"]);
\x06\x0E.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x06\x0E.onSoundComplete = function () {
thisRef.\x1E\x03(1);
};
} else {
\x01\x0E[0] = false;
delete \x1D\f;
\x1D\f = new Sound();
\x1D\f.loadSound(_arg2, false);
\x1D\f.setVolume(this["?\x04"]);
\x1D\f.onLoad = function (_arg2) {
if (_arg2) {
this.start();
}
};
\x1D\f.onSoundComplete = function () {
thisRef.\x1E\x03(0);
};
}
}
}
Symbol 2544 MovieClip [__Packages.Music] Frame 0
class
{
var mySound, , `
, ^, ,, ;, , @;
function () {
mySound = new Sound(_root["4\r"]);
\x04 = 100;
`\r = "";
^\f = false;
this["?\x03"] = false;
,\x0F = true;
;\x0B = 60;
}
function 1() {
`\r = "bossMain";
mySound.stop();
mySound.attachSound(`\r);
\x04 = ;\x0B;
mySound.setVolume( \x04);
mySound.start(0, 2000);
this["?\x03"] = true;
}
function SetMaxVolume(_arg2) {
;\x0B = _arg2;
}
function SetTrack(_arg2) {
if (_arg2 == `\r) {
,\x0F = false;
} else {
,\x0F = true;
`\r = _arg2;
}
}
function Play() {
mySound.stop();
mySound.attachSound(`\r);
\x04 = ;\x0B;
mySound.setVolume( \x04);
mySound.start(0, 2000);
this["?\x03"] = true;
}
function Stop() {
mySound.stop();
this["?\x03"] = false;
}
function PlayWithCrossFade(_arg3) {
if (,\x0F == true) {
if (this["?\x03"] == true) {
^\f = true;
\x06\x02 = 0;
var _local2 = _arg3 * 30;
@\x0E = (\x06\x02 - \x04) / (_local2 / 2);
} else {
mySound.stop();
mySound.attachSound(`\r);
if (`\r != "bossIntro") {
mySound.start(0, 2000);
} else {
mySound.start(0, 0);
var thisRef = this;
mySound.onSoundComplete = function () {
thisRef.1\x05();
};
}
this["?\x03"] = true;
^\f = false;
\x06\x02 = ;\x0B;
\x04 = 0;
mySound.setVolume(0);
var _local2 = _arg3 * 30;
@\x0E = (\x06\x02 - \x04) / _local2;
}
}
}
function () {
if (\x06\x02 != \x04) {
var _local2;
_local2 = \x04 + @\x0E;
if ((@\x0E < 0) && (_local2 < 0)) {
_local2 = 0;
} else if ((@\x0E > 0) && (_local2 > \x06\x02)) {
_local2 = \x06\x02;
}
\x04 = _local2;
mySound.setVolume(_local2);
}
if (^\f == true) {
var thisMusic = this;
if ( \x04 <= 0) {
@\x0E = @\x0E * -1;
^\f = false;
\x06\x02 = ;\x0B;
mySound.stop();
mySound.attachSound(`\r);
mySound.setVolume(0);
if (`\r != "bossIntro") {
mySound.start(0, 2000);
} else {
mySound.start(0, 0);
mySound.onSoundComplete = function () {
thisMusic.1\x05();
};
}
this["?\x03"] = true;
}
}
}
}
Symbol 2545 MovieClip [__Packages.Campaign] Frame 0
class @
{
var strTitle, strDifficulty, strSlots, strDescription, strStory, intFace, !
, strButton, blnSet, arrGuns;
function @ () {
strTitle = "No Title";
strDifficulty = "Hard";
strSlots = "0";
strDescription = "No description available...";
strStory = "No story available...";
intFace = 1;
!\r = "Great Job!";
strButton = "";
blnSet = false;
arrGuns = new Array();
}
}
Symbol 2546 MovieClip [__Packages.Bullet] Frame 0
class 3 extends MovieClip
{
var 9, =, , _damage, ', _x, _y, _rotation, removeCallback, _name, removeMovieClip, _width, _height;
function 3 () {
super();
9\x10 = 0;
=\x04 = 0;
\x15\x0E = 0;
_damage = 1;
'\x03 = false;
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function ^(_arg2) {
\x15\x0E = _arg2;
}
function onEnterFrame() {
if ('\x03 == false) {
_x = _x + 9\x10;
_y = _y + =\x04;
var _local3 = Math.atan2(=\x04, 9\x10);
var _local4 = (360 * _local3) / (Math.PI*2);
_rotation = _local4;
=\x04 = =\x04 + \x15\x0E;
if (1\x0F() == false) {
_root.game.\x19\f();
removeCallback(_name);
removeMovieClip();
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
return(_local2);
}
}
Symbol 2547 MovieClip [__Packages.Debris] Frame 0
class > extends MovieClip
{
var 9, =, , ', power, _rotation, _xscale, _yscale, _x, _y, removeCallback, _name, removeMovieClip, _width, _height;
function > () {
super();
9\x10 = 0;
=\x04 = 0;
\x15\x0E = 0;
'\x03 = false;
power = 3;
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function ^(_arg2) {
\x15\x0E = _arg2;
}
function !(_arg2) {
\x15\x0E = _arg2;
9\x10 = Math.round(Math.random() * (2 * power)) - power;
=\x04 = Math.round(Math.random() * (2 * power)) - power;
_rotation = Math.round(Math.random() * 360);
_xscale = Math.round(Math.random() * 75) + 75;
_yscale = _xscale;
}
function %() {
9\x10 = Math.round(Math.random() * 2) - 1;
=\x04 = Math.round(Math.random() * 2) - 1;
_xscale = 100;
_yscale = 100;
}
function onEnterFrame() {
if ('\x03 == false) {
_x = _x + 9\x10;
_y = _y + =\x04;
=\x04 = =\x04 + \x15\x0E;
if (1\x0F() == false) {
removeCallback(_name);
removeMovieClip();
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
return(_local2);
}
}
Symbol 2548 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var guns, , #, damageZones, 0
, 9, 0, blnDestroyed,
,
, 0, ;, fallingMomentum,
, , , , 3, <, floatCounterMax, floatSpeed, floatCounter, floatDirection, , , , , , _bullet, _enemy, _damage, ,, -, [, , 7, 1, ,
, , ,
, (,
, _y, , , , , , 0, enemyOff, _x, _height, _name, removeMovieClip, shield, type, stopPoint, localToGlobal, treads, _xscale, _width, gotoAndStop, _rotation, %, isItTime, ], energy_mc, 0, arrSeekers;
function Enemy () {
super();
guns = new Array();
\x16\x04 = new Array();
#\x03 = new Array();
damageZones = new Array();
0\n = new Array();
9\x04 = new Array();
0\x04 = new Array();
blnDestroyed = false;
\n\x10 = false;
\x1A\n = false;
0\f = false;
;\f = 0.25;
fallingMomentum = 0;
\n\x02 = 0;
\x01\x06 = 0;
\x1B\x0B = false;
\x1C\x0B = false;
3\x06 = false;
<\x05 = 140;
floatCounterMax = 15;
floatSpeed = 0;
floatCounter = Math.round(floatCounterMax / 2);
floatDirection = -0.05;
\x15\x12 = false;
\x07\f = 0;
\x0B\x0B = false;
\x15\x06 = -999;
\x1C\x10 = false;
_bullet = false;
_enemy = true;
_damage = 0;
,\x0B = 180;
-\x11 = ,\x0B;
[\x0E = "standard";
\x1D\x07 = "straight";
7\x0E = 0;
1\x03 = 0;
\x16\x06 = 0;
\n = 0;
\f\x06 = 50;
\x17\x05 = 1;
\n\x0E = 0;
(\x05 = 200;
ConfigureEnemy();
var _local5 = 0;
while (_local5 < guns.length) {
if ((guns[_local5].type == 13) || (guns[_local5].type == 21)) {
0\n.push({gunName:guns[_local5].name, bulletsLeft:0, bulletCounter:0});
} else if (guns[_local5].type == 19) {
\r\x10 = _root.game.>\f(125);
var _local6 = CalcBombDrop(_y - \r\x10._y, _global.gravityConst, ;\f);
\x01\x10 = (\r\x10._x + _local6) + RandNum(-5, 5);
}
_local5++;
}
\x03\x10 = \x1B\x0F;
\x07\x0F = ;\f;
\x1F\x0B = new #\x11();
0\x0B = new #\x11();
0\x0B._x = -RandNum(1, \x07\x0F);
0\x0B._y = RandNum(-(0.5 * \x07\x0F), 0.5 * \x07\x0F);
if (0\x0B._y == 0) {
0\x0B._y = 0.5;
}
}
function ConfigureEnemy() {
\x1B\x0F = 1;
;\f = 2;
\x16\x04.push({name:"Death Award", triggerValue:0, hit:false, custom:false, action:"EVENT_Bubbles", values:Array(5, 10)});
}
function CalcBombDrop(_arg2, _arg3, _arg1) {
return(Math.round(_arg1 * Math.sqrt((2 * _arg2) / _arg3)));
}
function () {
var _local4 = 0;
while (_local4 < guns.length) {
if (guns[_local4].type == 19) {
\r\x10 = _root.game.>\f(_y);
var _local5 = CalcBombDrop(\r\x10._y - _y, _global.gravityConst, ;\f);
\x01\x10 = (\r\x10._x + _local5) + RandNum(-5, 5);
}
_local4++;
}
}
function onEnterFrame() {
if (!enemyOff) {
if (\x17\x05 > 0) {
\x0B\x0E();
if (!blnDestroyed) {
\x1A\x0F();
}
}
}
}
function %() {
0\x11();
}
function () {
if (!enemyOff) {
var _local7 = _x;
var _local6 = _y;
if (!blnDestroyed) {
if (\x1D\x07 == "straight") {
_x = _x + ((-;\f) * \x17\x05);
} else if (\x1D\x07 == "drone") {
\x0B\x10();
} else if (\x1D\x07 == "float") {
4\x04();
} else if (\x1D\x07 == "parachute") {
\x1E\x04();
} else if (\x1D\x07 == "plane") {
\n\x03();
} else if (\x1D\x07 == "boss") {
\x0B\x02();
} else if (\x1D\x07 == "miniboss") {
\x1A\f();
} else if (\x1D\x07 == "hover") {
\f\r();
} else if (\x1D\x07 == "ground") {
\x13\x06();
} else if (\x1D\x07 == "MonsterBullet") {
MovementMonsterBullet();
}
if (\x17\x05 > 0) {
if (\x1C\x0B == true) {
\x04\x03();
}
if (\x15\x12 == true) {
\x07\x05();
}
}
} else {
if (\x1B\x0B == false) {
if (\x1D\x07 == "drone") {
_x = _x + 0\x0B._x;
} else if (\x1D\x07 != "float") {
_x = _x + ((-;\f) * \x17\x05);
}
}
fallingMomentum = fallingMomentum + (0.1 * _global.gravityConst);
_y = _y + (fallingMomentum * \x17\x05);
if ((_y - _height) > Stage.height) {
if (\n\x10 == true) {
\x19\x12();
_root.game.0\r(_x, 390, 0);
}
_root.game.ReportEnemyDeath(_name);
%\x10();
removeMovieClip();
}
}
var _local4 = 0;
while (_local4 < 9\x04.length) {
var _local5 = 9\x04[_local4].name;
_root[_local5]._x = _root[_local5]._x + (_x - _local7);
_root[_local5]._y = _root[_local5]._y + (_y - _local6);
_local4++;
}
}
}
function ((_arg2) {
\x17\x05 = _arg2;
}
function () {
if (<\x05 <= 0) {
if (3\x06 == true) {
3\x06 = false;
var \x04\f = shield;
\x04\f._visible = false;
<\x05 = 60;
} else {
3\x06 = true;
var \x04\f = shield;
\x04\f._visible = true;
<\x05 = 120;
}
} else {
<\x05--;
}
}
function () {
if (-\x11 <= 0) {
_root.game.&(_x, _y);
_x = RandNum(\f\x06, Stage.width - \f\x06);
_y = RandNum(\f\x06, Stage.height - \f\x06);
_root.game.\x02\x04(_x, _y);
-\x11 = RandNum(,\x0B - 25, ,\x0B + 25);
} else {
-\x11--;
}
}
function () {
if ((type == "Enemy_10") || (type == "Enemy_21")) {
if (floatCounter == 0) {
floatDirection = -1 * floatDirection;
floatCounter = floatCounterMax;
} else {
floatCounter--;
}
floatSpeed = floatSpeed + floatDirection;
if (floatDirection < 0) {
if (floatSpeed < -0.25) {
floatSpeed = -0.25;
}
} else if (floatSpeed > 0.25) {
floatSpeed = 0.25;
}
_y = _y + floatSpeed;
}
if (\x1B\x0B == false) {
var \x15\n = stopPoint;
var \x1F\x04 = {x:\x15\n._x, y:\x15\n._y};
localToGlobal(\x1F\x04);
_x = _x - (;\f * \x17\x05);
if (\x1F\x04.x <= Stage.width) {
\x1B\x0B = true;
}
}
}
function () {
if (\x15\x06 == -999) {
\x15\x06 = _y;
}
var _local4 = false;
var _local7 = Number(type.substr(6, 8));
switch (_local7) {
case 13 :
case 16 :
case 17 :
case 19 :
case 30 :
case 32 :
case 35 :
case 39 :
case 40 :
case 44 :
case 45 :
case 37 :
case 33 :
case 42 :
case 52 :
case 34 :
case 47 :
case 53 :
case 54 :
_local4 = true;
break;
}
if (_local4 == true) {
if (floatCounter == 0) {
floatDirection = -1 * floatDirection;
floatCounter = floatCounterMax;
} else {
floatCounter--;
}
floatSpeed = floatSpeed + floatDirection;
if (floatDirection < 0) {
if (floatSpeed < -0.25) {
floatSpeed = -0.25;
}
} else if (floatSpeed > 0.25) {
floatSpeed = 0.25;
}
_y = _y + floatSpeed;
}
if (\x1A\n == true) {
var _local6 = Math.floor(\x03\x10 / 12);
var _local5 = 9\x04.length / _local6;
var _local3 = (375 - (_height / 2)) - \x15\x06;
_local3 = _local3 * _local5;
_local3 = \x15\x06 + _local3;
_y = _y + ((_local3 - _y) * 0.15);
if (_y >= _local3) {
\x1A\n = false;
}
}
if (\x1B\x0B == false) {
_x = _x - (;\f * \x17\x05);
if (_x <= \x07\f) {
\x1B\x0B = true;
var _local2 = 0;
while (_local2 < guns.length) {
if (guns[_local2].type == 23) {
if (guns[_local2].counter == -999) {
guns[_local2].counter = -1;
if (\x17\x10(_local2) == false) {
guns[_local2].counter = 30;
}
}
}
_local2++;
}
}
}
}
function
() {
if (\x15\x06 == -999) {
\x15\x06 = _y;
}
if (floatCounter == 0) {
floatDirection = -1 * floatDirection;
floatCounter = floatCounterMax;
} else {
floatCounter--;
}
floatSpeed = floatSpeed + floatDirection;
if (floatDirection < 0) {
if (floatSpeed < -0.25) {
floatSpeed = -0.25;
}
} else if (floatSpeed > 0.25) {
floatSpeed = 0.25;
}
_y = _y + floatSpeed;
}
function () {
if (\x1B\x0B == false) {
_x = _x - (;\f * \x17\x05);
if (_x <= \x07\f) {
\x1B\x0B = true;
treads.stop();
}
}
}
function () {
var _local2 = false;
if (_x <= \f\x06) {
\x1F\x0B._x = 0.1;
_local2 = true;
}
if (_x >= (Stage.width - \f\x06)) {
\x1F\x0B._x = -0.1;
_local2 = true;
}
if (_y <= \f\x06) {
\x1F\x0B._y = 0.1;
_local2 = true;
}
if (_y >= (Stage.height - \f\x06)) {
\x1F\x0B._y = -0.1;
_local2 = true;
}
if (_local2 == false) {
if ( \n < 1) {
var _local3 = RandNum(0, 100);
if (_local3 < 35) {
\x1F\x0B._y = -\x1F\x0B._y;
}
\n = RandNum(60, 80);
} else {
\n--;
}
} else {
\n = 0;
}
0\x0B._x = 0\x0B._x + \x1F\x0B._x;
0\x0B._y = 0\x0B._y + \x1F\x0B._y;
if ((0\x0B._x < 0) && (_xscale < 0)) {
_xscale = -_xscale;
} else if ((0\x0B._x > 0) && (_xscale > 0)) {
_xscale = -_xscale;
}
if (Math.abs(0\x0B._x) > \x07\x0F) {
0\x0B._x = (0\x0B._x / Math.abs(0\x0B._x)) * \x07\x0F;
}
if (Math.abs(0\x0B._y) > \x07\x0F) {
0\x0B._y = (0\x0B._y / Math.abs(0\x0B._y)) * \x07\x0F;
}
_x = _x + (0\x0B._x * \x17\x05);
_y = _y + (0\x0B._y * \x17\x05);
}
function 4() {
_x = _x + 0;
_y = _y - (;\f * \x17\x05);
if ((_y + _height) < 0) {
if (type == "Enemy_48") {
_x = RandNum(350, 450);
} else {
_x = RandNum(350, 675);
}
_y = Stage.height + _height;
}
}
function () {
_x = _x + 0;
_y = _y + (;\f * \x17\x05);
if ((_y - _height) > Stage.height) {
_x = RandNum(350, 675);
_y = -_height;
}
}
function ]
(_arg3, _arg2) {
0\x0B._x = _arg3;
0\x0B._y = _arg2;
}
function MovementMonsterBullet() {
_x = _x + 0\x0B._x;
_y = _y + 0\x0B._y;
if (1\x0F() == false) {
_root.game.ReportEnemyDeath(_name);
removeMovieClip();
}
}
function
() {
_x = _x - (;\f * \x17\x05);
_y = _y + (Math.sin(_x) * 0.1);
if (_x < -150) {
_x = 750;
_y = RandNum(10, 150);
var i = 0;
while (i < guns.length) {
if (guns[i].type == 19) {
\r\x10 = _root.game.>\f(_y);
var \x16\n = CalcBombDrop(\r\x10._y - _y, _global.gravityConst, ;\f);
\x01\x10 = (\r\x10._x + \x16\n) + RandNum(-5, 5);
var \x15\x10 = eval ("this." + guns[i].name);
\x15\x10.gotoAndStop(1);
}
i++;
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
if ((_y + (_height / 2)) < 0) {
_local2 = false;
}
return(_local2);
}
function () {
var _local2 = 0;
_local2 = \x1B\x0F;
return(_local2);
}
function (_arg2) {
0\x04.push(_arg2);
}
function
(_arg3) {
var _local2 = 0;
while (_local2 < 0\x04.length) {
if (0\x04[_local2] == _arg3) {
return(true);
}
_local2++;
}
return(false);
}
function () {
return(\x1D\x07);
}
function (]\u000C) {
var returnValue = false;
var +\x0B = -1;
if (_root[]\f]._bulletTypeID == 3) {
if (_root[]\f]._detectionCheck == -1) {
_root[]\f]._detectionCheck = 1;
return(false);
}
_root[]\f]._detectionCheck = -1;
}
if (_root[]\f]._bulletTypeID == 6) {
return(false);
}
if (_root[]\f]._enemyProtected != _name) {
var hullRef = eval (("_root." + _name) + ".hull");
var &\x04 = false;
var [\n = 0;
Set("&\x04", hullRef.hitTest(_root[]\f]._x, _root[]\f]._y, true));
if (&\x04 == false) {
Set("&\x04", hullRef.hitTest(_root[]\f]._midX, _root[]\f]._midY, true));
Set("[\n", 2);
} else {
Set("[\n", 1);
}
if (_root[]\f]._bulletTypeID == 4) {
if (&\x04 == true) {
if (_root[]\f].8\x0F(_name) == true) {
Set("&\x04", false);
}
}
}
if (&\x04) {
var i = 0;
while (i < damageZones.length) {
var \r = eval ((("_root." + _name) + ".") + damageZones[i].name);
Set("&\x04", false);
if ([\n == 2) {
Set("&\x04", \r.hitTest(_root[]\f]._midX, _root[]\f]._midY, true));
} else {
Set("&\x04", \r.hitTest(_root[]\f]._x, _root[]\f]._y, true));
}
if (&\x04) {
var ,\x06 = Math.round(_root[]\f]._damage * damageZones[i].percentage);
if (,\x06 < 0) {
Set(",\x06", 0);
}
if (_root[]\f]._bulletTypeID == 4) {
\x0B\x0B = true;
}
Set("+\x0B", i);
7\x11(,\x06, _root[]\f]._x, _root[]\f]._y);
returnValue = true;
}
i++;
}
}
if (returnValue == true) {
if (((_root[]\f]._bulletTypeID != 5) || ([\x0E != "fall")) || (type == "Enemy_53")) {
if ([\n == 2) {
_root[]\f].\x14\x03(_root[]\f]._midX, _root[]\f]._midY, _name);
} else {
_root[]\f].\x14\x03(_root[]\f]._x, _root[]\f]._y, _name);
}
}
if (_root[]\f]._mine == true) {
_root.game.-\x06(_root[]\f]._creator._name);
}
if (_root[]\f]._bulletTypeID == 5) {
if (([\x0E == "fall") && (type != "Enemy_53")) {
var \x12\x07 = _root[]\f].-\n(_name);
9\x04.push({name:\x12\x07, zone:+\x0B});
var 9\f = Math.floor(\x03\x10 / 12);
\x1A\n = true;
if (9\x04.length >= 9\f) {
if (blnDestroyed == false) {
_root.game.\x1B\x10(_x, _y - 15, \n\x02, \x01\x06, type, (\x05);
0\x11();
blnDestroyed = true;
\n\x10 = true;
}
}
} else {
_root[]\f].removeMovieClip();
_root.game.`\x10(]\f);
}
} else if (_root[]\f]._bulletTypeID == 4) {
_root[]\f].\x03\x05(_name);
} else {
_root[]\f].removeMovieClip();
_root.game.`\x10(]\f);
}
}
}
return(returnValue);
}
function 7(_arg3, _arg8, _arg7) {
var _local4 = false;
if (#\x03.length > 0) {
_arg3 = Math.round(0.25 * _arg3);
_root.game.\x05\r(_arg8, _arg7);
}
if (3\x06 == true) {
_arg3 = 0;
\x1B\x0F = \x1B\x0F - _arg3;
} else {
\x1B\x0F = \x1B\x0F - _arg3;
}
if (\x1B\x0F <= 0) {
if (((type == "Enemy_2") || (type == "Enemy_5")) || (type == "Enemy_38")) {
var _local6 = RandNum(0, 100);
var _local5 = 50;
if (\x0B\x0B == true) {
_local5 = 85;
}
if (\x0B\x0B == true) {
}
if (_local6 < _local5) {
_root.game.&\x0F(_xscale, _x, _y, 0\x0B._x, 0\x0B._y);
} else {
_root.game.4\x07(type, _x, _y);
}
} else {
_root.game.4\x07(type, _x, _y);
}
\x19\x12();
if ([\x0E == "standard") {
_root.game.ReportEnemyDeath(_name);
_root.game.\x1B\x10(_x, _y - 15, \n\x02, \x01\x06, type, (\x05);
blnDestroyed = true;
%\x10();
removeMovieClip();
_local4 = true;
} else if ([\x0E == "fall") {
if (blnDestroyed == false) {
_root.game.\x1B\x10(_x, _y - 15, \n\x02, \x01\x06, type, (\x05);
_root.game.4\x07(type, _x, _y);
0\x11();
gotoAndStop(2);
blnDestroyed = true;
}
}
} else {
_root.game.>\r(_arg8, _arg7 - 10, _arg3);
}
return(_local4);
}
function () {
var _local2 = false;
if (((((type != "Enemy_20") && (type != "Enemy_21")) && (type != "Enemy_53")) && (type != "Enemy_54")) && (type != "Enemy_55")) {
_local2 = 7\x11(999999, -50, -50);
}
return(_local2);
}
function () {
var i = 0;
while (i < guns.length) {
if (guns[i].type == 1) {
var targetEnemy = _root.game.<\x0E();
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var \x14 = \x0F\x03(#\x05.x, #\x05.y, targetEnemy, guns[i].speed);
if (\x14 != 99999) {
myDegrees = \x14;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.EnemyFire(\x11, \x14, guns[i].speed, 100, guns[i].damage, "normal");
guns[i].size = 999;
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
}
} else if (guns[i].type == 2) {
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x11\x0B.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.SpawnUnit("Enemy_Seeker", \x11, _name);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 3) {
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x11\x0B.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.SpawnUnit("Enemy_2", \x11, _name);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 5) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter1");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter2"));
var \x16\x07 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x16\x07);
\x11._x = \x16\x07.x;
\x11._y = \x16\x07.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter3"));
var \x07\x03 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x07\x03);
\x11._x = \x07\x03.x;
\x11._y = \x07\x03.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 6) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter1");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) - 30, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter2"));
var \x16\x07 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x16\x07);
\x11._x = \x16\x07.x;
\x11._y = \x16\x07.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter3"));
var \x07\x03 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x07\x03);
\x11._x = \x07\x03.x;
\x11._y = \x07\x03.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 30, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 7) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter1");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter2"));
var \x16\x07 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x16\x07);
\x11._x = \x16\x07.x;
\x11._y = \x16\x07.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter3"));
var \x07\x03 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x07\x03);
\x11._x = \x07\x03.x;
\x11._y = \x07\x03.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter4"));
var \x0E\n = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x0E\n);
\x11._x = \x0E\n.x;
\x11._y = \x0E\n.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter5"));
var =\x0F = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(=\x0F);
\x11._x = =\x0F.x;
\x11._y = =\x0F.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 8) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter1");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) - 60, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter2"));
var \x16\x07 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x16\x07);
\x11._x = \x16\x07.x;
\x11._y = \x16\x07.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) - 30, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter3"));
var \x07\x03 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x07\x03);
\x11._x = \x07\x03.x;
\x11._y = \x07\x03.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter4"));
var \x0E\n = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x0E\n);
\x11._x = \x0E\n.x;
\x11._y = \x0E\n.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 30, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter5"));
var =\x0F = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(=\x0F);
\x11._x = =\x0F.x;
\x11._y = =\x0F.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 60, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 9) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter1");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) - 60, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter2"));
var \x16\x07 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x16\x07);
\x11._x = \x16\x07.x;
\x11._y = \x16\x07.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) - 30, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter3"));
var \x07\x03 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x07\x03);
\x11._x = \x07\x03.x;
\x11._y = \x07\x03.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter4"));
var \x0E\n = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x0E\n);
\x11._x = \x0E\n.x;
\x11._y = \x0E\n.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 30, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter5"));
var =\x0F = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(=\x0F);
\x11._x = =\x0F.x;
\x11._y = =\x0F.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 60, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter6"));
var '\x10 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal('\x10);
\x11._x = '\x10.x;
\x11._y = '\x10.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 90, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter7"));
var +\n = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(+\n);
\x11._x = +\n.x;
\x11._y = +\n.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 120, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter8"));
var 2\x11 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(2\x11);
\x11._x = 2\x11.x;
\x11._y = 2\x11.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 150, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter9"));
var )\x02 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal()\x02);
\x11._x = )\x02.x;
\x11._y = )\x02.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 180, guns[i].speed, guns[i].size, guns[i].damage);
Set("\x11\x0B", eval (("this." + guns[i].name) + ".emitter10"));
var ?\f = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(?\f);
\x11._x = ?\f.x;
\x11._y = ?\f.y;
_root.EnemyShoot(\x11, (\x15\n._rotation + _rotation) + 210, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 10) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShootSpecial("mine", \x11, 0, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 12) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShootSpecial("sticky", \x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else if (guns[i].type == 13) {
var targetEnemy = 1\f();
var !\x03 = -1;
var t = 0;
while (t < 0\n.length) {
if (0\n[t].gunName == guns[i].name) {
Set("!\x03", t);
break;
}
t++;
}
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var \x0B\x07 = myDegrees;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
0\n[t].bulletsLeft = 2;
0\n[t].bulletCounter = 5;
\x15\n.gotoAndPlay("shoot");
_root.game.EnemyFireMachineGun(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
if (0\n[t].bulletsLeft > 0) {
if (0\n[t].bulletCounter == 0) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.EnemyFireMachineGun(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
0\n[t].bulletsLeft--;
if (0\n[t].bulletsLeft > 0) {
0\n[t].bulletCounter = 5;
} else {
\x15\n.gotoAndPlay("stop");
}
} else {
0\n[t].bulletCounter--;
}
}
} else if (guns[i].type == 15) {
} else if (guns[i].type == 17) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
%\x06 = false;
if (isItTime) {
} else {
\x15\n.gotoAndPlay(1);
}
if (isItTime) {
if (guns[i].counter < 1) {
\x15\n._rotation = \x15\n._rotation + 5;
if (isItTime) {
if (]\x03) {
} else {
\x15\n.gotoAndPlay(2);
]\x03 = true;
}
} else {
\x15\n.gotoAndPlay(1);
}
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
}
} else if (guns[i].type == 18) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = _root.avatar._x - #\x05.x;
\x17\x12._y = _root.avatar._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
%\x06 = false;
if (isItTime) {
} else {
\x15\n.gotoAndPlay(1);
}
if (isItTime) {
if (guns[i].counter < 1) {
\x15\n._rotation = \x15\n._rotation + 20;
if (isItTime) {
if (]\x03) {
} else {
\x15\n.gotoAndPlay(2);
]\x03 = true;
}
} else {
\x15\n.gotoAndPlay(1);
}
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.EnemyShoot(\x11, \x15\n._rotation + _rotation, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
}
} else if (guns[i].type == 19) {
if (_x <= \x01\x10) {
var \x15\x10 = eval ("this." + guns[i].name);
\x15\x10.play();
\x01\x10 = -99999;
}
} else if (guns[i].type == 20) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
if (guns[i].size == 999) {
var targetEnemy = _root.game.<\x0E();
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var >\x10 = \x0F\x03(#\x05.x, #\x05.y, targetEnemy, guns[i].speed);
if (>\x10 != 99999) {
Set(">\x10", RandNum(>\x10 - 5, >\x10 + 5));
}
guns[i].size = >\x10;
}
var \x14 = guns[i].size;
if ((\x14 != 99999) && (\x14 != 999)) {
myDegrees = \x14;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.EnemyFire(\x11, \x14, guns[i].speed, 100, guns[i].damage, "normal");
guns[i].size = 999;
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else {
guns[i].size = 999;
}
} else if (guns[i].type == 21) {
var targetEnemy = 1\f();
var !\x03 = -1;
var t = 0;
while (t < 0\n.length) {
if (0\n[t].gunName == guns[i].name) {
Set("!\x03", t);
break;
}
t++;
}
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var \x0B\x07 = myDegrees;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.4\x07("casing", \x11._x, \x11._y);
0\n[t].bulletsLeft = 14;
0\n[t].bulletCounter = 5;
\x15\n.gotoAndPlay("shoot");
_root.game.EnemyFireMachineGun(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
if (0\n[t].bulletsLeft > 0) {
if (0\n[t].bulletCounter == 0) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.4\x07("casing", \x11._x, \x11._y);
_root.game.EnemyFireMachineGun(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
0\n[t].bulletsLeft--;
if (0\n[t].bulletsLeft > 0) {
0\n[t].bulletCounter = 5;
} else {
\x15\n.gotoAndPlay("stop");
}
} else {
0\n[t].bulletCounter--;
}
}
} else if (guns[i].type == 22) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
if (guns[i].size == 999) {
var targetEnemy = _root.game.<\x0E();
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var >\x10 = myDegrees;
guns[i].size = >\x10;
}
var \x14 = guns[i].size;
if ((\x14 != 99999) && (\x14 != 999)) {
myDegrees = \x14;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.EnemyFireBulletEnemy(\x11, \x14, guns[i].speed, 100, guns[i].damage, "MonsterBullet");
_root.game.\x19\x04(30);
_global.SoundManager.PlaySound("LargeGunFire");
guns[i].size = 999;
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
} else {
guns[i].size = 999;
}
} else if (guns[i].type == 23) {
if (guns[i].counter == 0) {
if (\x17\x10(i) == false) {
guns[i].counter = 30;
} else {
guns[i].counter = -1;
}
} else if (guns[i].counter > 0) {
guns[i].counter--;
}
} else if (guns[i].type == 24) {
} else if (guns[i].type == 25) {
var \x15\n = eval ("this." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
if (guns[i].size == 999) {
var targetEnemy = _root.game.<\x0E();
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var >\x10 = myDegrees;
guns[i].size = >\x10;
}
var \x14 = guns[i].size;
if ((\x14 != 99999) && (\x14 != 999)) {
myDegrees = \x14;
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees - _rotation;
if (guns[i].counter < 1) {
var \x15\n = eval ("this." + guns[i].name);
\x15\n.gotoAndPlay(2);
guns[i].size = 999;
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else if (guns[i].counter > 0) {
guns[i].counter--;
}
} else {
guns[i].size = 999;
}
} else if (guns[i].type == 26) {
if (guns[i].counter == 0) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_36", \x11);
\x11\x0B._visible = false;
guns[i].counter = -1;
} else if (guns[i].counter > 0) {
guns[i].counter--;
}
} else if (guns[i].type == 27) {
} else if (guns[i].type == 28) {
} else if (guns[i].type == 29) {
} else if (guns[i].type == 30) {
}
i++;
}
}
function 5
(_arg4) {
var _local3 = 0;
while (_local3 < guns.length) {
if (guns[_local3].name == _arg4) {
_root.game.<\x02(_name, _arg4, guns[_local3].damage);
break;
}
_local3++;
}
}
function () {
if (\x1C\x10 == false) {
var i = 0;
while (i < guns.length) {
if (guns[i].type == 24) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_6", \x11);
} else if (guns[i].type == 27) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_46", \x11);
} else if (guns[i].type == 28) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_54", \x11);
} else if (guns[i].type == 29) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_56", \x11);
} else if (guns[i].type == 30) {
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.SpawnEnemyAtLocation("Enemy_55", \x11);
}
i++;
}
\x1C\x10 = true;
}
}
function (i) {
var targetEnemy = _root.game.\x04\x07(_name);
var returnValue;
if (targetEnemy != "") {
var \x15\n = energy_mc;
\x15\n._visible = true;
\x15\n.gotoAndPlay(1);
var [\x04 = _root.game.\x14\x02(_root[targetEnemy]._x, _root[targetEnemy]._y, targetEnemy, _name);
guns[i].name = targetEnemy;
_root[targetEnemy].\x02\f(_name, [\x04);
returnValue = true;
} else {
returnValue = false;
}
return(returnValue);
}
function () {
return(#\x03.length);
}
function 0() {
var _local3 = 0;
while (_local3 < guns.length) {
if (guns[_local3].type == 23) {
if (guns[_local3].counter == -1) {
_root[guns[_local3].name].\x14\x05(_name);
}
}
_local3++;
}
_local3 = 0;
while (_local3 < #\x03.length) {
_root[#\x03[_local3].from].\x12\x0F();
_root.game.\x01\x03(#\x03[_local3].name);
#\x03.splice(_local3, 1);
_local3--;
_local3++;
}
}
function (_arg5, _arg4) {
#\x03.push({name:_arg4, from:_arg5});
}
function () {
var \x15\n = energy_mc;
\x15\n._visible = false;
var i = 0;
while (i < guns.length) {
if (guns[i].type == 23) {
guns[i].counter = 30;
}
i++;
}
}
function (_arg4) {
var _local3 = 0;
while (_local3 < #\x03.length) {
if (#\x03[_local3].from == _arg4) {
_root.game.\x01\x03(#\x03[_local3].name);
#\x03.splice(_local3, 1);
_local3--;
}
_local3++;
}
}
function LaunchBomb(gunName) {
var i = 0;
while (i < guns.length) {
if (guns[i].name == gunName) {
var \x11 = new #\x11();
var \x15\n = eval ("this." + guns[i].name);
var \x11\x0B = eval (("this." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.DropBomb(\x11, ;\f, guns[i].size, guns[i].damage);
}
i++;
}
}
function &(\u0002\u000D, ]\u000C) {
var returnValue = false;
if (3\x06 == true) {
Set("\x02\r", 0);
\x1B\x0F = \x1B\x0F - \x02\r;
} else {
\x1B\x0F = \x1B\x0F - \x02\r;
}
var i = 0;
while (i < \x16\x04.length) {
if (((\x1B\x0F <= \x16\x04[i].triggerValue) && (\x16\x04[i].hit == false)) || (\x16\x04[i].triggerValue == -1)) {
\x16\x04[i].hit = true;
if (\x16\x04[i].custom == true) {
0\x0F = \x16\x04[i].action;
0\x0F();
} else if (\x16\x04[i].action == "EVENT_Bubbles") {
var \x1E\x0B = new #\x11();
\x1E\x0B._x = _x;
\x1E\x0B._y = _y;
_root.DropBubbles(\x16\x04[i].values[0], \x1E\x0B, \x16\x04[i].values[1]);
} else if (\x16\x04[i].action == "EVENT_DropGun") {
\x01\x12(\x16\x04[i].values);
} else if (\x16\x04[i].action == "EVENT_SeekersDie") {
var t = 0;
while (t < arrSeekers.length) {
_root[arrSeekers[t].name].Explode();
t++;
}
}
}
i++;
}
var i = 0;
while (i < guns.length) {
if (guns[i].type == 15) {
if (guns[i].damage == 0) {
var \x15\n = eval ("this." + guns[i].name);
if (\x15\n.hitTest(_root[]\f]._x, _root[]\f]._y, true)) {
\x15\n.inside.gotoAndPlay("hit");
var \x11 = new #\x11();
var \x11\x0B = eval ("this." + guns[i].name);
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x11\x0B._parent.localToGlobal(\x1F\x04);
var s = 0;
while (s < 8) {
var \x15\x0B = Math.round(Math.random() * 360);
var R = Math.round(Math.random() * (\x11\x0B._width - 15));
\x11._x = (R * Math.cos(\x15\x0B)) + \x1F\x04.x;
\x11._y = (R * Math.sin(\x15\x0B)) + \x1F\x04.y;
_root.SpawnUnit("Enemy_Seeker", \x11, _name);
s++;
}
guns[i].damage = 1;
}
}
}
i++;
}
if (\x1B\x0F < 1) {
returnValue = true;
_root.ReportDeath(_name);
removeMovieClip();
} else {
gotoAndStop(\x1B\x0F);
}
return(returnValue);
}
function (_arg3) {
var _local2 = 0;
while (_local2 < guns.length) {
if (_arg3 == guns[_local2].name) {
guns.splice(_local2, 1);
break;
}
_local2++;
}
}
function (_arg11, _arg10, _arg9, _arg7) {
var _local4 = _arg9._x - _arg11;
var _local8 = _arg9._y - _arg10;
var _local6 = (_global.gravityConst * Math.pow(_local4, 2)) + ((2 * _local8) * Math.pow(_arg7, 2));
var _local3 = Math.pow(_arg7, 4) - (_global.gravityConst * _local6);
if (_local3 < 0) {
return(99999);
}
_local3 = Math.sqrt(_local3);
var _local5 = Math.atan((Math.pow(_arg7, 2) + _local3) / (_global.gravityConst * _local4));
var _local2 = (360 * _local5) / (Math.PI*2);
if (_local2 < 0) {
_local2 = -1 * (180 + _local2);
} else if (_local2 >= 0) {
_local2 = -1 * _local2;
}
return(_local2);
}
function () {
var _local4 = _x - _root.bg._x;
var _local3 = _y - _root.bg._y;
return(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
}
function 1() {
return(_root.game.(\x0E(this));
}
function () {
enemyOff = true;
}
function
() {
enemyOff = false;
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
function (varX, varY, enemyName) {
}
}
Symbol 2549 MovieClip [__Packages.Vector] Frame 0
class #
{
var _x, _y;
function # () {
_x = 0;
_y = 0;
}
function +(_arg2) {
_x = _x + _arg2._x;
_y = _y + _arg2._y;
}
function (_arg2) {
_x = _x * _arg2;
_y = _y * _arg2;
}
function () {
var _local2 = (_x * _x) + (_y * _y);
return(Math.sqrt(_local2));
}
function () {
var _local2 = \x1C\x03();
if (_local2 != 0) {
_x = _x / _local2;
_y = _y / _local2;
}
}
function () {
var _local2 = Math.atan2(_y, _x);
var _local3 = (360 * _local2) / (Math.PI*2);
return(_local3);
}
function (_arg2) {
_arg2 = (_arg2 * Math.PI) / 180;
_x = Math.cos(_arg2) * 1;
_y = Math.sin(_arg2) * 1;
}
function 8(_arg2, _arg3) {
\f\x05(_arg2);
\x15\x03(_arg3);
}
function (_arg4, _arg8, _arg7) {
var _local5 = 0;
var _local2 = \x06\x06();
var _local3 = 0;
var _local6 = "";
if (_arg4 >= 0) {
_local5 = _arg4 - 180;
if ((_local2 < _arg4) && (_local2 > _local5)) {
_local3 = (-_arg7) * _arg8;
_local6 = _local6 + (((((" AAA " + _arg4) + " ") + _local2) + " ") + _local3);
if ((_local2 - _arg4) > _local3) {
_local3 = _local2 - _arg4;
}
} else {
_local3 = _arg7 * _arg8;
_local6 = _local6 + (((((" BBB " + _arg4) + " ") + _local2) + " ") + _local3);
if (_local2 >= 0) {
if (_local2 != _local5) {
if ((_local2 - _arg4) < _local3) {
_local3 = _local2 - _arg4;
}
}
}
}
} else {
_local5 = _arg4 + 180;
if ((_local2 < _local5) && (_local2 > _arg4)) {
_local3 = _arg7 * _arg8;
_local6 = _local6 + (((((" CCC " + _arg4) + " ") + _local2) + " ") + _local3);
if ((_local2 - _arg4) < _local3) {
_local3 = _local2 - _arg4;
}
} else {
_local3 = (-_arg7) * _arg8;
_local6 = _local6 + (((((" DDD " + _arg4) + " ") + _local2) + " ") + _local3);
if (_local2 < 0) {
if ((_local2 - _arg4) > _local3) {
_local3 = _local2 - _arg4;
}
}
}
}
if (Math.abs(_local3) > 30) {
} else if (_local2 == 0) {
}
return(_local3);
}
function () {
}
}
Symbol 2550 MovieClip [__Packages.Enemy_54] Frame 0
class Enemy_54 extends Enemy
{
var , ;, type, [, , ,
, , (, guns, damageZones;
function Enemy_54 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 1000;
;\f = 0;
type = "Enemy_54";
[\x0E = "fall";
\x1D\x07 = "hover";
\x07\f = 0;
\n\x02 = 350;
\x01\x06 = 150;
(\x05 = 450;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:150, counter:200, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:25, fireTimerMax:340, fireTimerMin:250, counter:150, speed:3, size:999, damage:35});
guns.push({name:"spawn_1", type:30, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_2", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_3", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_4", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_5", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_6", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_7", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:1.5});
}
}
Symbol 2551 MovieClip [__Packages.Enemy_52] Frame 0
class Enemy_52 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_52 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 25;
;\f = 1;
type = "Enemy_52";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(411, 625);
\n\x02 = 175;
\x01\x06 = 100;
(\x05 = 200;
guns.push({name:"gun_1", type:20, fireTimerMax:150, fireTimerMin:100, counter:200, speed:10, size:999, damage:10});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1});
}
}
Symbol 2552 MovieClip [__Packages.Mine] Frame 0
class @
extends MovieClip
{
var 9, =, , _damage, _enemy, ', , _mine, _missile, #, `,
, 0, _creator, _x, _y, _width, _height;
function @
() {
super();
9\x10 = 0;
=\x04 = 0;
\x15\x0E = 0;
_damage = 1;
_enemy = false;
'\x03 = false;
= false;
_mine = true;
_missile = false;
#\x10 = 0;
`\x03 = 0;
\r\x11 = 0;
0\x0E = 0.1;
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function ^(_arg2) {
\x15\x0E = _arg2;
}
function
(_arg2) {
\r\x11 = (_arg2 * Math.PI) / 180;
}
function 4(_arg5) {
_creator = _arg5;
var _local2 = new Object({x:_creator.gun.emitter._x, y:_creator.gun.emitter._y});
_creator.gun.localToGlobal(_local2);
#\x10 = _local2.x;
`\x03 = _local2.y;
}
function onEnterFrame() {
if ('\x03 == false) {
_x = _x + 9\x10;
_y = _y + =\x04;
if ( == true) {
var _local2 = 40;
var _local4 = (_local2 * Math.cos(\r\x11)) + #\x10;
var _local3 = (_local2 * Math.sin(\r\x11)) + `\x03;
\r\x11 = \r\x11 + 0\x0E;
if (\r\x11 > 360) {
\r\x11 = 0;
}
_x = _local4;
_y = _local3;
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
return(_local2);
}
function (_arg4, _arg3, _arg5) {
_root.game.\x06\x05(_arg4, _arg3, 0);
}
}
Symbol 2553 MovieClip [__Packages.Enemy_5] Frame 0
class Enemy_5 extends Enemy
{
var , ;, type, [, ,
, , guns, damageZones, (;
function Enemy_5 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 10;
;\f = 2.5;
type = "Enemy_5";
[\x0E = "standard";
\x1D\x07 = "drone";
\n\x02 = 150;
\x01\x06 = 75;
guns.push({name:"gun_1", type:13, fireTimerMax:150, fireTimerMin:90, counter:60, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2554 MovieClip [__Packages.Enemy_6] Frame 0
class Enemy_6 extends Enemy
{
var , ;, type, [, , ,
, , (, guns, damageZones;
function Enemy_6 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 40;
;\f = 2.25;
type = "Enemy_6";
[\x0E = "standard";
\x1D\x07 = "drone";
\f\x06 = 60;
\n\x02 = 150;
\x01\x06 = 100;
(\x05 = 300;
guns.push({name:"gun_1", type:13, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:0.5});
guns.push({name:"gun_2", type:13, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:2.5});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:0.3});
}
}
Symbol 2555 MovieClip [__Packages.Enemy_22] Frame 0
class Enemy_22 extends Enemy
{
var , ;, type, [, , , ,
, , (, guns, damageZones;
function Enemy_22 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 100;
;\f = 2;
type = "Enemy_22";
[\x0E = "fall";
\x1D\x07 = "drone";
\f\x06 = 60;
\x15\x12 = true;
\n\x02 = 350;
\x01\x06 = 200;
(\x05 = 300;
guns.push({name:"gun_1", type:21, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:1});
guns.push({name:"gun_2", type:21, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:1});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.8});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1.2});
}
}
Symbol 2556 MovieClip [__Packages.Enemy_31] Frame 0
class Enemy_31 extends Enemy
{
var , ;, type, [, ,
, , (, guns, damageZones;
function Enemy_31 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 15;
;\f = 2;
type = "Enemy_31";
[\x0E = "standard";
\x1D\x07 = "drone";
\n\x02 = 150;
\x01\x06 = 75;
(\x05 = 175;
guns.push({name:"energy_mc", type:23, fireTimerMax:0, fireTimerMin:0, counter:120, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.6});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
}
}
Symbol 2557 MovieClip [__Packages.Enemy_33] Frame 0
class Enemy_33 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_33 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 150;
;\f = 1;
type = "Enemy_33";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(492, 568);
\n\x02 = 450;
\x01\x06 = 175;
(\x05 = 500;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:200, counter:370, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:22, fireTimerMax:240, fireTimerMin:200, counter:450, speed:3, size:999, damage:20});
guns.push({name:"gun_3", type:22, fireTimerMax:240, fireTimerMin:200, counter:470, speed:3, size:999, damage:20});
guns.push({name:"spawn_1", type:24, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_2", type:24, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_3", type:24, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:2});
}
}
Symbol 2558 MovieClip [__Packages.Enemy_34] Frame 0
class Enemy_34 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_34 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 40;
;\f = 1;
type = "Enemy_34";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(411, 651);
\n\x02 = 250;
\x01\x06 = 150;
(\x05 = 200;
guns.push({name:"gun_1", type:20, fireTimerMax:150, fireTimerMin:150, counter:200, speed:10, size:999, damage:10});
guns.push({name:"gun_2", type:20, fireTimerMax:150, fireTimerMin:150, counter:230, speed:10, size:999, damage:10});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:1.5});
}
}
Symbol 2559 MovieClip [__Packages.Enemy_35] Frame 0
class Enemy_35 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_35 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 40;
;\f = 1;
type = "Enemy_35";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(450, 550);
\n\x02 = 350;
\x01\x06 = 150;
(\x05 = 450;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:150, counter:370, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:22, fireTimerMax:340, fireTimerMin:200, counter:4300, speed:3, size:999, damage:20});
guns.push({name:"energy_mc", type:23, fireTimerMax:0, fireTimerMin:0, counter:80, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.2});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:2});
}
}
Symbol 2560 MovieClip [__Packages.Enemy_36] Frame 0
class Enemy_36 extends Enemy
{
var , ;, type, [, , ,
, , guns, damageZones, (;
function Enemy_36 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 15;
;\f = 1;
type = "Enemy_36";
[\x0E = "standard";
\x1D\x07 = "drone";
\f\x06 = 115;
\n\x02 = 150;
\x01\x06 = 50;
guns.push({name:"gun_1", type:13, fireTimerMax:130, fireTimerMin:70, counter:60, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2561 MovieClip [__Packages.Enemy_37] Frame 0
class Enemy_37 extends Enemy
{
var , ;, type, [, , , RandNum, ,
, , guns, damageZones, (;
function Enemy_37 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 18;
;\f = 1;
type = "Enemy_37";
[\x0E = "standard";
\x1D\x07 = "miniboss";
\x07\f = RandNum(450, 550);
\f\x06 = 115;
\n\x02 = 150;
\x01\x06 = 50;
guns.push({name:"gun_1", type:13, fireTimerMax:130, fireTimerMin:70, counter:60, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1.75});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2562 MovieClip [__Packages.Enemy_38] Frame 0
class Enemy_38 extends Enemy
{
var , ;, type, [, ,
, , guns, damageZones, (;
function Enemy_38 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 10;
;\f = 2.5;
type = "Enemy_38";
[\x0E = "standard";
\x1D\x07 = "drone";
\n\x02 = 150;
\x01\x06 = 75;
guns.push({name:"gun_1", type:13, fireTimerMax:150, fireTimerMin:90, counter:60, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2563 MovieClip [__Packages.Enemy_40] Frame 0
class Enemy_40 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_40 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 60;
;\f = 1;
type = "Enemy_40";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(350, 625);
\n\x02 = 200;
\x01\x06 = 100;
(\x05 = 200;
guns.push({name:"gun_1", type:20, fireTimerMax:150, fireTimerMin:150, counter:200, speed:10, size:999, damage:10});
guns.push({name:"gun_2", type:26, fireTimerMax:0, fireTimerMin:0, counter:350, speed:0, size:0, damage:0});
guns.push({name:"gun_3", type:26, fireTimerMax:0, fireTimerMin:0, counter:475, speed:0, size:0, damage:0});
guns.push({name:"gun_4", type:26, fireTimerMax:0, fireTimerMin:0, counter:600, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1.25});
}
}
Symbol 2564 MovieClip [__Packages.Enemy_7] Frame 0
class Enemy_7 extends Enemy
{
var , ;, type, [, ,
, , guns, damageZones, (;
function Enemy_7 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 15;
;\f = 4;
type = "Enemy_7";
[\x0E = "standard";
\x1D\x07 = "plane";
\n\x02 = 100;
\x01\x06 = 100;
guns.push({name:"gun_1", type:19, fireTimerMax:0, fireTimerMin:0, counter:1, speed:7, size:100, damage:15});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2565 MovieClip [__Packages.Decoy] Frame 0
class extends MovieClip
{
var guns, , damageZones, 0
, blnDestroyed, 0, ;, fallingMomentum, , ', 7, 1, ,
, , enemyOff, +
, , , , , , , 0, type, [, , `, _x, _y, _name, removeMovieClip, _xscale, emitter, localToGlobal;
function () {
super();
guns = new Array();
\x16\x04 = new Array();
damageZones = new Array();
0\n = new Array();
blnDestroyed = false;
0\f = false;
;\f = 0.25;
fallingMomentum = 0;
\x1B\x0B = false;
'\x07 = false;
7\x0E = 0;
1\x03 = 0;
\x16\x06 = 0;
\n = 0;
\f\x06 = 50;
enemyOff = false;
+\r = 0;
\x04\x02 = 0;
\x03\x06 = 0;
'\x06();
var _local3 = 0;
while (_local3 < guns.length) {
if ((guns[_local3].type == 13) || (guns[_local3].type == 21)) {
0\n.push({gunName:guns[_local3].name, bulletsLeft:0, bulletCounter:0});
}
_local3++;
}
\x03\x10 = \x1B\x0F;
\x07\x0F = ;\f;
\x1F\x0B = new #\x11();
0\x0B = new #\x11();
0\x0B._x = 0;
0\x0B._y = 0;
}
function '() {
\x1B\x0F = 5;
;\f = 1;
type = "Enemy_2";
[\x0E = "standard";
\x1D\x07 = "drone";
}
function (_arg2) {
\x1B\x0F = (\x03\x10 = _arg2);
}
function (_arg2) {
guns[0].damage = _arg2;
}
function
(_arg2) {
guns[0].fireTimerMax = guns[0].fireTimerMax + _arg2;
guns[0].fireTimerMin = guns[0].fireTimerMin + _arg2;
}
function 1() {
`\f = true;
}
function 8() {
`\f = false;
}
function onEnterFrame() {
if (!enemyOff) {
\x0B\x0E();
\x1A\x0F();
}
}
function () {
enemyOff = true;
}
function
() {
enemyOff = false;
}
function () {
if (!enemyOff) {
if (\x1D\x07 == "drone") {
\x0B\x10();
} else if (\x1D\x07 == "control") {
=\n();
} else if (\x1D\x07 == "bombDrone") {
MovementBombDrone();
}
}
}
function !(_arg3, _arg2) {
+\r = _arg3;
\x04\x02 = _arg2;
}
function =
() {
if (`\f == true) {
var _local3 = new #\x11();
_local3._x = _root._xmouse - _x;
_local3._y = _root._ymouse - _y;
} else {
var _local3 = new #\x11();
_local3._x = +\r - _x;
_local3._y = \x04\x02 - _y;
}
var _local4 = Math.sqrt((_local3._x * _local3._x) + (_local3._y * _local3._y));
var _local6 = _local4;
if ((_local4 < 5) && (`\f == false)) {
_root.game.\x0F\x12(_name);
removeMovieClip();
}
_local3._x = _local3._x / _local4;
_local3._y = _local3._y / _local4;
var _local5 = 0;
if (Math.abs(_local4) > \x07\x0F) {
_local5 = 0.2;
} else {
_local5 = (0.2 * Math.abs(_local4)) / \x07\x0F;
}
\x1F\x0B._x = _local3._x * _local5;
\x1F\x0B._y = _local3._y * _local5;
0\x0B._x = 0\x0B._x + \x1F\x0B._x;
0\x0B._y = 0\x0B._y + \x1F\x0B._y;
if (Math.abs(0\x0B._x) > \x07\x0F) {
0\x0B._x = (0\x0B._x / Math.abs(0\x0B._x)) * \x07\x0F;
}
if (Math.abs(0\x0B._y) > \x07\x0F) {
0\x0B._y = (0\x0B._y / Math.abs(0\x0B._y)) * \x07\x0F;
}
if ((0\x0B._x < 0) && (_xscale > 0)) {
_xscale = -1 * _xscale;
} else if ((0\x0B._x > 0) && (_xscale < 0)) {
_xscale = -1 * _xscale;
}
_x = _x + 0\x0B._x;
_y = _y + 0\x0B._y;
}
function () {
var _local2 = false;
\x03\x06++;
if (\x03\x06 == 2) {
if ((+\r != 0) || (\x04\x02 != 0)) {
_x = +\r;
_y = \x04\x02;
+\r = 0;
\x04\x02 = 0;
}
}
if (_x <= \f\x06) {
\x1F\x0B._x = 0.1;
_local2 = true;
}
if (_x >= (Stage.width - \f\x06)) {
\x1F\x0B._x = -0.1;
_local2 = true;
}
if (_y <= \f\x06) {
\x1F\x0B._y = 0.1;
_local2 = true;
}
if (_y >= (Stage.height - \f\x06)) {
\x1F\x0B._y = -0.1;
_local2 = true;
}
if (_local2 == false) {
if ( \n < 1) {
var _local3 = RandNum(0, 100);
if (_local3 < 35) {
\x1F\x0B._y = -\x1F\x0B._y;
}
\n = RandNum(60, 80);
} else {
\n--;
}
} else {
\n = 0;
}
0\x0B._x = 0\x0B._x + \x1F\x0B._x;
0\x0B._y = 0\x0B._y + \x1F\x0B._y;
if (type == "Defender") {
if ((0\x0B._x < 0) && (_xscale > 0)) {
_xscale = -1 * _xscale;
} else if ((0\x0B._x > 0) && (_xscale < 0)) {
_xscale = -1 * _xscale;
}
} else if ((0\x0B._x < 0) && (_xscale < 0)) {
_xscale = -_xscale;
} else if ((0\x0B._x > 0) && (_xscale > 0)) {
_xscale = -_xscale;
}
if (Math.abs(0\x0B._x) > \x07\x0F) {
0\x0B._x = (0\x0B._x / Math.abs(0\x0B._x)) * \x07\x0F;
}
if (Math.abs(0\x0B._y) > \x07\x0F) {
0\x0B._y = (0\x0B._y / Math.abs(0\x0B._y)) * \x07\x0F;
}
_x = _x + 0\x0B._x;
_y = _y + 0\x0B._y;
}
function MovementBombDrone() {
\x03\x06++;
if (\x03\x06 == 2) {
if ((+\r != 0) || (\x04\x02 != 0)) {
_x = +\r;
_y = \x04\x02;
+\r = 0;
\x04\x02 = 0;
}
}
\x1F\x0B._x = 0.1;
\x1F\x0B._y = -0.1;
if (_y < 30) {
if (0\x0B._y < 0) {
\x1F\x0B._y = 0.1;
if ((0\x0B._y + \x1F\x0B._y) >= 0) {
\x1F\x0B._y = -\x1F\x0B._y;
}
} else {
\x1F\x0B._y = 0;
}
}
0\x0B._x = 0\x0B._x + \x1F\x0B._x;
0\x0B._y = 0\x0B._y + \x1F\x0B._y;
if ((0\x0B._x < 0) && (_xscale > 0)) {
_xscale = -1 * _xscale;
} else if ((0\x0B._x > 0) && (_xscale < 0)) {
_xscale = -1 * _xscale;
}
if (Math.abs(0\x0B._x) > \x07\x0F) {
0\x0B._x = (0\x0B._x / Math.abs(0\x0B._x)) * \x07\x0F;
}
if (Math.abs(0\x0B._y) > \x07\x0F) {
0\x0B._y = (0\x0B._y / Math.abs(0\x0B._y)) * \x07\x0F;
}
_x = _x + 0\x0B._x;
_y = _y + 0\x0B._y;
if (_x >= 600) {
if (RandNum(0, 100) < 4) {
'\x07 = true;
7\x11(1000, 0, 0);
}
}
}
function 7(_arg3, damageX, damageY) {
\x1B\x0F = \x1B\x0F - _arg3;
if (\x1B\x0F <= 0) {
if ('\x07 == true) {
_root.game.&\x0F(_xscale * -1, _x, _y, 0\x0B._x, 0\x0B._y);
} else {
_root.game.4\x07(type, _x, _y);
}
if ([\x0E == "standard") {
_root.game.1\x11(_name);
blnDestroyed = true;
removeMovieClip();
}
}
}
function () {
var _local2 = false;
7\x11(999999, -50, -50);
_local2 = true;
return(_local2);
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
function () {
var i = 0;
while (i < guns.length) {
if (guns[i].type == 13) {
var targetEnemy = _root.game.SelectClosestEnemyTarget(this);
if (targetEnemy != undefined) {
var !\x03 = -1;
var t = 0;
while (t < 0\n.length) {
if (0\n[t].gunName == guns[i].name) {
Set("!\x03", t);
break;
}
t++;
}
var \x15\n = eval ("this.hull." + guns[i].name);
var #\x05 = {x:\x15\n._x, y:\x15\n._y};
_root[_name].localToGlobal(#\x05);
var \x16\r = {x:_x, y:_y};
\x16\r.x = \x16\r.x + \x15\n._x;
\x16\r.y = \x16\r.y + \x15\n._y;
var \x17\x12 = new #\x11();
\x17\x12._x = targetEnemy._x - #\x05.x;
\x17\x12._y = targetEnemy._y - #\x05.y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var \x0B\x07 = myDegrees;
if (type == "Defender") {
if (_xscale < 0) {
if (myDegrees < 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
} else if (_xscale > 0) {
if (myDegrees > 0) {
myDegrees = -1 * (180 + myDegrees);
} else {
myDegrees = 180 - myDegrees;
}
}
\x15\n._rotation = myDegrees;
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this.hull." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
0\n[t].bulletsLeft = 2;
0\n[t].bulletCounter = 5;
\x15\n.gotoAndPlay("shoot");
_root.game.\x10\x05(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
if (0\n[t].bulletsLeft > 0) {
if (0\n[t].bulletCounter == 0) {
var \x11 = new #\x11();
var \x11\x0B = eval (("this.hull." + guns[i].name) + ".emitter");
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
\x15\n.localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.\x10\x05(\x11, \x0B\x07, guns[i].speed, guns[i].size, guns[i].damage, "machinegun");
0\n[t].bulletsLeft--;
if (0\n[t].bulletsLeft > 0) {
0\n[t].bulletCounter = 5;
} else {
\x15\n.gotoAndPlay("stop");
}
} else {
0\n[t].bulletCounter--;
}
}
}
} else if (guns[i].type == 14) {
if (guns[i].counter < 1) {
var \x11 = new #\x11();
var \x11\x0B = emitter;
var \x1F\x04 = {x:\x11\x0B._x, y:\x11\x0B._y};
localToGlobal(\x1F\x04);
\x11._x = \x1F\x04.x;
\x11._y = \x1F\x04.y;
_root.game.FriendlyFireBomb(\x11, 90, guns[i].speed, guns[i].size, guns[i].damage);
guns[i].counter = Math.round(Math.random() * (guns[i].fireTimerMax - guns[i].fireTimerMin)) + guns[i].fireTimerMin;
} else {
guns[i].counter--;
}
}
i++;
}
}
}
Symbol 2566 MovieClip [__Packages.ControlUnitOne] Frame 0
class ControlUnitOne extends
{
var , ;, type, [, ;
function ControlUnitOne () {
super();
}
function '() {
\x1B\x0F = 20;
;\f = 1;
type = "ControlUnit";
[\x0E = "standard";
\x1D\x07 = "control";
}
}
Symbol 2567 MovieClip [__Packages.DecoyWGun] Frame 0
class @ extends
{
var , ;, type, [, , guns;
function @ () {
super();
}
function '() {
\x1B\x0F = 5;
;\f = 1;
type = "DecoyDrone";
[\x0E = "standard";
\x1D\x07 = "drone";
guns.push({name:"gun_1", type:13, fireTimerMax:150, fireTimerMin:90, counter:60, speed:10, size:100, damage:0.5});
}
}
Symbol 2568 MovieClip [__Packages.Enemy_53] Frame 0
class Enemy_53 extends Enemy
{
var , ;, type, [, , ,
, , (, guns, damageZones;
function Enemy_53 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 1500;
;\f = 1;
type = "Enemy_53";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = 555;
\n\x02 = 600;
\x01\x06 = 350;
(\x05 = 500;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:200, counter:370, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:22, fireTimerMax:240, fireTimerMin:200, counter:450, speed:3, size:999, damage:20});
guns.push({name:"gun_3", type:22, fireTimerMax:240, fireTimerMin:200, counter:470, speed:3, size:999, damage:20});
guns.push({name:"gun_4", type:22, fireTimerMax:240, fireTimerMin:200, counter:540, speed:3, size:999, damage:20});
guns.push({name:"spawn_1", type:28, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_2", type:29, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_3", type:29, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_4", type:29, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1.5});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone5", effect:"none", frame:0, percentage:1.75});
damageZones.push({name:"zone6", effect:"none", frame:0, percentage:1.75});
damageZones.push({name:"zone7", effect:"none", frame:0, percentage:1.5});
}
}
Symbol 2569 MovieClip [__Packages.Enemy_55] Frame 0
class Enemy_55 extends Enemy
{
var , ;, type, [, , , ,
, , (, guns, damageZones;
function Enemy_55 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 500;
;\f = 2;
type = "Enemy_55";
[\x0E = "fall";
\x1D\x07 = "drone";
\f\x06 = 60;
\x15\x12 = true;
\n\x02 = 350;
\x01\x06 = 200;
(\x05 = 300;
guns.push({name:"gun_1", type:21, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:2.5});
guns.push({name:"gun_2", type:21, fireTimerMax:180, fireTimerMin:140, counter:140, speed:10, size:100, damage:2});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.3});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.8});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1.2});
}
}
Symbol 2570 MovieClip [__Packages.Enemy_56] Frame 0
class Enemy_56 extends Enemy
{
var , ;, type, [, ,
, , (, guns, damageZones;
function Enemy_56 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 350;
;\f = 0;
type = "Enemy_56";
[\x0E = "standard";
\x1D\x07 = "hover";
\n\x02 = 200;
\x01\x06 = 100;
(\x05 = 350;
guns.push({name:"energy_mc", type:23, fireTimerMax:0, fireTimerMin:0, counter:80, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
}
}
Symbol 2571 MovieClip [__Packages.BulletTargetable] Frame 0
class ^ extends MovieClip
{
var 9, =, , _damage,
, 6, ', 5, 9, _bulletTypeID, _detectionCheck, _enemyProtected, _midX, _midY, _data, t, angle, _turretCameFrom, _mine, , 0, startX, startY, _rotation, gotoAndPlay, _x, _y, ,, `, removeCallback, _name, removeMovieClip, _width, _height, gotoAndStop;
function ^ () {
super();
9\x10 = 0;
=\x04 = 0;
\x15\x0E = 0;
_damage = 1;
\x15\r = -1;
6\x06 = -1;
'\x03 = false;
5\x11 = 0;
9\x05 = false;
_bulletTypeID = 1;
_detectionCheck = 1;
_enemyProtected = "";
_midX = 0;
_midY = 0;
_data = 0;
t = 0;
angle = 0;
_turretCameFrom = "";
_mine = false;
\x04\x0E = new Array();
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function (_arg3, _arg2) {
\x15\x0E = -_arg3;
0\x0B = _arg2;
}
function 3(_arg3, _arg2) {
startX = _arg3;
startY = _arg2;
}
function (_arg2) {
angle = _arg2;
}
function onEnterFrame() {
if (('\x03 == false) && (_bulletTypeID != 6)) {
if (\x15\r > -1) {
if (\x15\r == 0) {
_enemyProtected = "";
\x15\r = -1;
} else {
\x15\r--;
}
}
if (6\x06 > -1) {
if (6\x06 == 0) {
if (_bulletTypeID == 1) {
\x0E\x0B();
} else if (_bulletTypeID == 2) {
_rotation = 0;
gotoAndPlay("open");
_bulletTypeID = 3;
}
6\x06 = -1;
} else {
6\x06--;
}
}
if (5\x11 > 0) {
5\x11--;
_root.game.\x12\x06(_x, _y, _rotation, _data);
}
if (_bulletTypeID == 3) {
_y = _y - 0.5;
} else {
var _local4 = \x15\x0E;
if (_bulletTypeID == 4) {
_local4 = 0.5 * \x15\x0E;
}
t++;
,\x05 = _x;
`\x0B = _y;
_x = startX + ((0\x0B * t) * Math.cos(angle));
_y = startY + (((0\x0B * t) * Math.sin(angle)) - (((0.5 * _local4) * t) * t));
9\x10 = _x - ,\x05;
=\x04 = _y - `\x0B;
var _local3 = t - 0.5;
_midX = startX + ((0\x0B * _local3) * Math.cos(angle));
_midY = startY + (((0\x0B * _local3) * Math.sin(angle)) - (((0.5 * _local4) * _local3) * _local3));
var _local5 = Math.atan2(=\x04, 9\x10);
var _local6 = (360 * _local5) / (Math.PI*2);
_rotation = _local6;
}
if (1\x0F() == false) {
if (9\x05 == false) {
_root.game.\x19\f();
}
removeCallback(_name);
removeMovieClip();
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
if (_bulletTypeID == 3) {
if ((_y + (_height / 2)) < 0) {
_local2 = false;
}
}
return(_local2);
}
function (_arg3, _arg2, enemyName) {
_root.game.#\x06(_arg3, _arg2);
}
function () {
_root.game.'\f(_x, _y, _data, Math.round(_damage * 0.25));
removeCallback(_name);
removeMovieClip();
}
function (_arg2) {
\x04\x0E.push(_arg2);
}
function 8(_arg3) {
var _local2 = 0;
while (_local2 < \x04\x0E.length) {
if (\x04\x0E[_local2] == _arg3) {
return(true);
}
_local2++;
}
return(false);
}
function -
(strEnemyName) {
gotoAndStop("cling");
_bulletTypeID = 6;
return(_name);
}
}
Symbol 2572 MovieClip [__Packages.BulletAcidDrop] Frame 0
class extends ^
{
function () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.\n\f(_arg3, _arg2);
}
}
Symbol 2573 MovieClip [__Packages.BulletMachineGun] Frame 0
class extends MovieClip
{
var 9, =, _damage, ', _midX, _midY, , _turretCameFrom, _mine, _missile, 9, 6, _x, _y, removeCallback, _name, removeMovieClip, _width, _height;
function () {
super();
9\x10 = 0;
=\x04 = 0;
_damage = 1;
'\x03 = false;
_midX = 0;
_midY = 0;
\x1D\x04 = false;
_turretCameFrom = "";
_mine = false;
_missile = false;
9\x05 = false;
6\x0F = -1;
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function onEnterFrame() {
if ('\x03 == false) {
_midX = _x + (0.5 * 9\x10);
_midY = _y + (0.5 * =\x04);
_x = _x + 9\x10;
_y = _y + =\x04;
if (1\x0F() == false) {
if (9\x05 == false) {
_root.game.\x19\f();
}
removeCallback(_name);
removeMovieClip();
}
if (6\x0F > -1) {
6\x0F--;
if (6\x0F == 0) {
removeCallback(_name);
removeMovieClip();
}
}
}
}
function () {
var _local4 = _x - _root.bg._x;
var _local3 = _y - _root.bg._y;
return(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
if (\x1D\x04 == false) {
if ((_y + (_height / 2)) < 0) {
_local2 = false;
}
}
return(_local2);
}
function (_arg3, _arg2, enemyName) {
_root.game. \x0B(_arg3, _arg2);
}
}
Symbol 2574 MovieClip [__Packages.BulletArtillery] Frame 0
class extends
{
function () {
super();
}
function (_arg4, _arg3, enemyName) {
var _local2 = Math.round(Math.random() * 100);
if (_local2 < 60) {
_root.game.\x06\x05(_arg4, _arg3, 0);
} else {
_root.game.0\r(_arg4, _arg3, 0);
}
}
}
Symbol 2575 MovieClip [__Packages.Bomb] Frame 0
class Bomb extends ^
{
function Bomb () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.#\x06(_arg3, _arg2);
}
}
Symbol 2576 MovieClip [__Packages.BulletFlame] Frame 0
class % extends ^
{
var _data, _damage;
function % () {
super();
}
function (_arg4, _arg3, _arg5) {
_root.game.\x06\x07(_arg4, _arg3, _data, _arg5, _damage);
}
}
Symbol 2577 MovieClip [__Packages.BulletFlameShard] Frame 0
class BulletFlameShard extends ^
{
function BulletFlameShard () {
super();
}
function (varX, varY, enemyName) {
}
}
Symbol 2578 MovieClip [__Packages.BulletAcid] Frame 0
class extends ^
{
function () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.\n\f(_arg3, _arg2);
}
}
Symbol 2579 MovieClip [__Packages.BulletDrone] Frame 0
class
extends MovieClip
{
var 9, =, , _damage,
, 6, ', _enemyProtected, _midX, _midY, _data, angle, _turretCameFrom, _mine, 0, startX, startY, _x, _y, emitter, localToGlobal, removeCallback, _name, removeMovieClip, _width, _height;
function
() {
super();
9\x10 = 0;
=\x04 = 0;
\x15\x0E = 0;
_damage = 1;
\x15\r = -1;
6\x06 = -1;
'\x03 = false;
_enemyProtected = "";
_midX = 0;
_midY = 0;
_data = 0;
angle = 0;
_turretCameFrom = "";
_mine = false;
}
function ]
(_arg3, _arg2) {
9\x10 = _arg3;
=\x04 = _arg2;
}
function (_arg3, _arg2) {
\x15\x0E = -_arg3;
0\x0B = _arg2;
}
function ^(_arg2) {
\x15\x0E = _arg2;
}
function 3(_arg3, _arg2) {
startX = _arg3;
startY = _arg2;
}
function (_arg2) {
angle = _arg2;
}
function onEnterFrame() {
if ('\x03 == false) {
_x = _x + 9\x10;
_y = _y + =\x04;
=\x04 = =\x04 + \x15\x0E;
var emitterRef = emitter;
var #\x05 = new Object({x:emitterRef._x, y:emitterRef._y});
localToGlobal(#\x05);
_root.game.3\x0B(#\x05.x, #\x05.y);
if (1\x0F() == false) {
removeCallback(_name);
removeMovieClip();
}
}
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
return(_local2);
}
function (_arg4, _arg3, enemyName) {
_root.game.0\r(_arg4, _arg3, _damage);
}
}
Symbol 2580 MovieClip [__Packages.BulletMeteor] Frame 0
class extends
{
var _xscale;
function () {
super();
}
function (_arg4, _arg3, enemyName) {
if (_xscale < 60) {
_root.game.\x06\x05(_arg4, _arg3, 0);
} else {
_root.game.0\r(_arg4, _arg3, 0);
}
}
}
Symbol 2581 MovieClip [__Packages.BulletBalloonMine] Frame 0
class extends ^
{
function () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.\x06\x05(_arg3, _arg2, 0);
}
}
Symbol 2582 MovieClip [__Packages.BulletMiniBomb] Frame 0
class BulletMiniBomb extends ^
{
function BulletMiniBomb () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.\x06\x05(_arg3, _arg2, 0);
}
}
Symbol 2583 MovieClip [__Packages.Enemy_MonsterBullet] Frame 0
class Enemy_MonsterBullet extends Enemy
{
var , ;, type, [, ,
, , _bullet, _enemy, damageZones;
function Enemy_MonsterBullet () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 4;
;\f = 3;
type = "Enemy_MonsterBullet";
[\x0E = "standard";
\x1D\x07 = "MonsterBullet";
\n\x02 = 0;
\x01\x06 = 0;
_bullet = true;
_enemy = true;
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
}
function (_arg3, _arg2, enemyName) {
_root.game.0\r(_arg3, _arg2, 0);
}
}
Symbol 2584 MovieClip [__Packages.BulletPlasmaHit] Frame 0
class , extends
{
function , () {
super();
}
function (_arg3, _arg2, enemyName) {
_root.game.-(_arg3, _arg2);
}
}
Symbol 2585 MovieClip [__Packages.BulletRemoteMissile] Frame 0
class extends MovieClip
{
var 9, =, _damage, ', _midX, _midY, , _turretCameFrom, _mine, _missile, , _x, _y, _rotation, , emitter, localToGlobal, _width, _height;
function () {
super();
9\x10 = 0;
=\x04 = 0;
_damage = 1;
'\x03 = false;
_midX = 0;
_midY = 0;
\x1D\x04 = false;
_turretCameFrom = "";
_mine = false;
_missile = true;
\x1E\x02 = 0;
}
function onEnterFrame() {
if ('\x03 == false) {
var \x17\x12 = new #\x11();
\x17\x12._x = _root._xmouse - _x;
\x17\x12._y = _root._ymouse - _y;
var myRadians = Math.atan2(\x17\x12._y, \x17\x12._x);
var myDegrees = ((360 * myRadians) / (Math.PI*2));
var )\r = 0;
if (myDegrees != _rotation) {
if (_rotation >= 0) {
Set(")\r", _rotation - 180);
if ((myDegrees < _rotation) && (myDegrees > )\r)) {
\x1E\x0E = -2 * \x1E\x02;
} else {
\x1E\x0E = 2 * \x1E\x02;
}
} else {
Set(")\r", _rotation + 180);
if ((myDegrees < )\r) && (myDegrees > _rotation)) {
\x1E\x0E = 2 * \x1E\x02;
} else {
\x1E\x0E = -2 * \x1E\x02;
}
}
} else {
\x1E\x0E = 0;
}
var distance = Math.sqrt((\x17\x12._x * \x17\x12._x) + (\x17\x12._y * \x17\x12._y));
\x1E\x02 = \x1E\x02 + 0.25;
if (\x1E\x02 > 5) {
\x1E\x02 = 5;
}
_rotation = _rotation + \x1E\x0E;
var >\x02 = new #\x11();
>\x02._x = (Math.cos((Math.PI * _rotation) / 180) * \x1E\x02) + _x;
>\x02._y = (Math.sin((Math.PI * _rotation) / 180) * \x1E\x02) + _y;
_midX = (Math.cos((Math.PI * _rotation) / 180) * (\x1E\x02 * 0.5)) + _x;
_midY = (Math.sin((Math.PI * _rotation) / 180) * (\x1E\x02 * 0.5)) + _y;
_x = >\x02._x;
_y = >\x02._y;
var emitterRef = emitter;
var ,\x04 = new Object({x:emitterRef._x, y:emitterRef._y});
localToGlobal(,\x04);
_root.game.2\x0F(,\x04.x, ,\x04.y);
}
}
function () {
var _local4 = _x - _root.bg._x;
var _local3 = _y - _root.bg._y;
return(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
}
function 1() {
var _local2 = true;
if ((_x + (_width / 2)) < 0) {
_local2 = false;
} else if ((_x - (_width / 2)) > Stage.width) {
_local2 = false;
} else if ((_y - (_height / 2)) > Stage.height) {
_local2 = false;
}
if (\x1D\x04 == false) {
if ((_y + (_height / 2)) < 0) {
_local2 = false;
}
}
return(_local2);
}
function (_arg4, _arg3, enemyName) {
_root.game.\x06\x05(_arg4, _arg3, _damage);
}
}
Symbol 2586 MovieClip [__Packages.Enemy_39] Frame 0
class Enemy_39 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_39 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 170;
;\f = 1;
type = "Enemy_39";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(450, 550);
\n\x02 = 350;
\x01\x06 = 150;
(\x05 = 450;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:150, counter:370, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:25, fireTimerMax:340, fireTimerMin:250, counter:600, speed:3, size:999, damage:35});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1.5});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:0.4});
}
}
Symbol 2587 MovieClip [__Packages.Enemy_42] Frame 0
class Enemy_42 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_42 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 44;
;\f = 1;
type = "Enemy_42";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(411, 651);
\n\x02 = 250;
\x01\x06 = 150;
(\x05 = 200;
guns.push({name:"gun_1", type:20, fireTimerMax:150, fireTimerMin:150, counter:200, speed:10, size:999, damage:10});
guns.push({name:"gun_2", type:20, fireTimerMax:150, fireTimerMin:150, counter:230, speed:10, size:999, damage:10});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1});
}
}
Symbol 2588 MovieClip [__Packages.Enemy_44] Frame 0
class Enemy_44 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_44 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 30;
;\f = 1;
type = "Enemy_44";
[\x0E = "standard";
\x1D\x07 = "miniboss";
\x07\f = RandNum(460, 680);
\n\x02 = 175;
\x01\x06 = 75;
(\x05 = 350;
guns.push({name:"gun_1", type:22, fireTimerMax:210, fireTimerMin:130, counter:280, speed:3, size:999, damage:20});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:0.4});
}
}
Symbol 2589 MovieClip [__Packages.Enemy_45] Frame 0
class Enemy_45 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_45 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 120;
;\f = 1;
type = "Enemy_45";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(380, 680);
\n\x02 = 250;
\x01\x06 = 100;
(\x05 = 500;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:150, counter:370, speed:3, size:999, damage:20});
guns.push({name:"gun_2", type:22, fireTimerMax:240, fireTimerMin:150, counter:340, speed:3, size:999, damage:20});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:3});
}
}
Symbol 2590 MovieClip [__Packages.Enemy_46] Frame 0
class Enemy_46 extends Enemy
{
var , ;, type, [, , ,
, , guns, damageZones, (;
function Enemy_46 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 14;
;\f = 2.5;
type = "Enemy_46";
[\x0E = "standard";
\x1D\x07 = "drone";
\x15\x12 = true;
\n\x02 = 125;
\x01\x06 = 75;
guns.push({name:"gun_1", type:13, fireTimerMax:140, fireTimerMin:80, counter:60, speed:10, size:100, damage:0.5});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2591 MovieClip [__Packages.Enemy_47] Frame 0
class Enemy_47 extends Enemy
{
var , ;, type, [, , , RandNum,
, , (, guns, damageZones;
function Enemy_47 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 30;
;\f = 1;
type = "Enemy_47";
[\x0E = "fall";
\x1D\x07 = "miniboss";
\x07\f = RandNum(350, 650);
\n\x02 = 250;
\x01\x06 = 150;
(\x05 = 200;
guns.push({name:"gun_1", type:22, fireTimerMax:240, fireTimerMin:200, counter:370, speed:3, size:999, damage:20});
guns.push({name:"spawn_1", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_2", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_3", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
guns.push({name:"spawn_4", type:27, fireTimerMax:0, fireTimerMin:0, counter:0, speed:0, size:0, damage:0});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1.5});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:1});
}
}
Symbol 2592 MovieClip [__Packages.Enemy_48] Frame 0
class Enemy_48 extends Enemy
{
var , ;, type, [, , ,
, , damageZones, (;
function Enemy_48 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 40;
;\f = 1;
type = "Enemy_48";
[\x0E = "fall";
\x1D\x07 = "float";
\f\x06 = 150;
\n\x02 = 150;
\x01\x06 = 50;
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone5", effect:"none", frame:0, percentage:0});
(\x05 = 250;
}
}
Symbol 2593 MovieClip [__Packages.Enemy_49] Frame 0
class Enemy_49 extends Enemy
{
var , ;, type, [, ,
, , guns, damageZones;
function Enemy_49 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 130;
;\f = 1;
type = "Enemy_49";
[\x0E = "fall";
\x1D\x07 = "plane";
\n\x02 = 200;
\x01\x06 = 200;
guns.push({name:"gun_1", type:13, fireTimerMax:80, fireTimerMin:60, counter:140, speed:10, size:100, damage:2});
guns.push({name:"gun_2", type:19, fireTimerMax:0, fireTimerMin:0, counter:1, speed:7, size:100, damage:15});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:0.4});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone3", effect:"none", frame:0, percentage:4});
damageZones.push({name:"zone4", effect:"none", frame:0, percentage:1});
}
}
Symbol 2594 MovieClip [__Packages.Enemy_50] Frame 0
class Enemy_50 extends Enemy
{
var , ;, type, [, ,
, , (, guns, damageZones;
function Enemy_50 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 15;
;\f = 1;
type = "Enemy_50";
[\x0E = "standard";
\x1D\x07 = "plane";
\n\x02 = 75;
\x01\x06 = 75;
(\x05 = 200;
guns.push({name:"gun_1", type:19, fireTimerMax:0, fireTimerMin:0, counter:1, speed:7, size:100, damage:15});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
}
}
Symbol 2595 MovieClip [__Packages.Enemy_51] Frame 0
class Enemy_51 extends Enemy
{
var , ;, type, [, , ,
, , guns, damageZones, (;
function Enemy_51 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 25;
;\f = 1;
type = "Enemy_51";
[\x0E = "standard";
\x1D\x07 = "parachute";
\f\x06 = 150;
\n\x02 = 75;
\x01\x06 = 50;
guns.push({name:"gun_1", type:1, fireTimerMax:150, fireTimerMin:100, counter:60, speed:10, size:100, damage:2});
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:2});
damageZones.push({name:"zone2", effect:"none", frame:0, percentage:1});
(\x05 = 250;
}
}
Symbol 2596 MovieClip [__Packages.Auto_Defender] Frame 0
class Auto_Defender extends
{
var , ;, type, [, , guns;
function Auto_Defender () {
super();
}
function '() {
\x1B\x0F = 15;
;\f = 1;
type = "Defender";
[\x0E = "standard";
\x1D\x07 = "drone";
guns.push({name:"gun_1", type:13, fireTimerMax:150, fireTimerMin:90, counter:60, speed:10, size:100, damage:0.5});
}
}
Symbol 2597 MovieClip [__Packages.BombDrone] Frame 0
class BombDrone extends
{
var , ;, type, [, , guns;
function BombDrone () {
super();
}
function '() {
\x1B\x0F = 5;
;\f = 0.8;
type = "DecoyDrone";
[\x0E = "standard";
\x1D\x07 = "bombDrone";
guns.push({name:"gun_1", type:14, fireTimerMax:80, fireTimerMin:80, counter:80, speed:0, size:100, damage:8});
}
}
Symbol 2598 MovieClip [__Packages.Enemy_2] Frame 0
class Enemy_2 extends Enemy
{
var , ;, type, [, ,
, , (, damageZones;
function Enemy_2 () {
super();
}
function ConfigureEnemy() {
\x1B\x0F = 5;
;\f = 2;
type = "Enemy_2";
[\x0E = "standard";
\x1D\x07 = "drone";
\n\x02 = 75;
\x01\x06 = 30;
(\x05 = 200;
damageZones.push({name:"zone1", effect:"none", frame:0, percentage:1});
}
}
Symbol 2599 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class .transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root["5\x06"]) {
\x1F\x10.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("5\x06", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 2600 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class .transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(_arg1, _arg2) {
if (_arg1.broadcastMessage != undefined) {
delete _arg1.broadcastMessage;
}
_arg1.addListener = \x1F\x10.transitions.BroadcasterMX.prototype.addListener;
_arg1.removeListener = \x1F\x10.transitions.BroadcasterMX.prototype.removeListener;
if (!_arg2) {
_arg1._listeners = new Array();
}
}
function addListener(_arg2) {
removeListener(_arg2);
if (broadcastMessage == undefined) {
broadcastMessage = \x1F\x10.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(_arg2));
}
function removeListener(_arg4) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == _arg4) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 2601 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class .transitions.Tween
{
var , , `, 1, _listeners, addListener, , _time, looping, _duration, broadcastMessage, ,
, @
,
, , 9, ;
function Tween (_arg8, _arg5, _arg4, _arg3, _arg6, _arg7, _arg9) {
\x1F\x10.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
\x05\x12 = _arg8;
\x06\x12 = _arg5;
`\x0F = _arg3;
position = (_arg3);
duration = (_arg7);
1\x04 = _arg9;
if (_arg4) {
9\x02 = _arg4;
}
) = (_arg6);
_listeners = [];
addListener(this);
start();
}
function set time(_arg2) {
\x1C\x0E = _time;
if (_arg2 > duration) {
if (looping) {
rewind(_arg2 - _duration);
=();
broadcastMessage("onMotionLooped", this);
} else {
if (1\x04) {
_time = _duration;
=();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (_arg2 < 0) {
rewind();
=();
} else {
_time = _arg2;
=();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(_arg3) {
_duration = (((_arg3 == null) || (_arg3 <= 0)) ? (_global.Infinity) : (_arg3));
//return(duration);
}
function get duration() {
return(_duration);
}
function set )(_arg3) {
var _local2 = this["?\x11"];
#\x04();
,\n = _arg3;
if (_local2) {
\x0E\x05();
}
//return());
}
function get )() {
return(,\n);
}
function set position(_arg2) {
setPosition(_arg2);
//return(position);
}
function setPosition(_arg2) {
@\r = \r\x06;
\x05\x12[\x06\x12] = (\r\x06 = _arg2);
broadcastMessage("onMotionChanged", this, \r\x06);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(_arg2) {
if (_arg2 == undefined) {
_arg2 = _time;
}
return(9\x02(_arg2, `\x0F, \x1F\x06, _duration));
}
function set )(_arg2) {
\x1F\x06 = _arg2 - `\x0F;
//return());
}
function get )() {
return(`\x0F + \x1F\x06);
}
function (_arg3, _arg2) {
`\x0F = position;
) = (_arg3);
if (_arg2 != undefined) {
duration = (_arg2);
}
start();
}
function () {
\x1F\x0F(`\x0F, time);
}
function () {
if (,\n == undefined) {
_global.MovieClip.addListener(this);
} else {
9\x0B = setInterval(this, "onEnterFrame", 1000 / ,\n);
}
this["?\x11"] = true;
}
function #() {
if (,\n == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(9\x0B);
}
this["?\x11"] = false;
}
function start() {
rewind();
\x0E\x05();
broadcastMessage("onMotionStarted", this);
}
function stop() {
#\x04();
broadcastMessage("onMotionStopped", this);
}
function -() {
&\x03();
\x0E\x05();
broadcastMessage("onMotionResumed", this);
}
function rewind(_arg2) {
_time = ((_arg2 == undefined) ? 0 : (_arg2));
&\x03();
=();
}
function fforward() {
time = (_duration);
&\x03();
}
function nextFrame() {
if (1\x04) {
time = ((getTimer() - \x02\x05) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!1\x04) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function &() {
if (1\x04) {
\x02\x05 = getTimer() - (_time * 1000);
}
}
function =() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = \x1F\x10.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = \x1F\x10.transitions.BroadcasterMX.initialize(\x1F\x10.transitions.Tween.prototype, true);
function 9(_arg2, _arg4, _arg3, _arg1) {
return(((_arg3 * _arg2) / _arg1) + _arg4);
}
}
Symbol 2602 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class .transitions.easing.Strong
{
function Strong () {
}
static function easeIn(_arg1, _arg4, _arg3, _arg2) {
_arg1 = _arg1 / _arg2;
return((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg4);
}
static function easeOut(_arg1, _arg4, _arg3, _arg2) {
_arg1 = (_arg1 / _arg2) - 1;
return((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg4);
}
static function easeInOut(_arg1, _arg3, _arg2, _arg4) {
_arg1 = _arg1 / (_arg4 / 2);
if (_arg1 < 1) {
return(((((((_arg2 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg3);
}
_arg1 = _arg1 - 2;
return(((_arg2 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg3);
}
static var version = "1.1.0.52";
}
Symbol 2603 MovieClip [__Packages.FrameCounter] Frame 0
class
{
var , , ,
, , , 5, ", 9;
function () {
\x03\x06 = 0;
\x1D\x02 = 0;
\x03\x04 = 0;
\x19\n = 0;
\x06\x10 = true;
\x0E\x11 = 0;
5\x07 = 30;
\"\x05 = 30;
9\x07 = 0;
}
function Start() {
#\n();
}
function Hide() {
\x06\x10 = false;
}
function #
() {
\x03\x06 = 0;
\x03\x04 = 0;
if (\x06\x10 == true) {
_root.createTextField("myFrameText_txt", 10000001, 4, 4, 120, 20);
_root.myFrameText_txt.textColor = \x0E\x11;
}
}
function (_arg2) {
\x0E\x11 = _arg2;
}
function %
() {
if (9\x07 == 0) {
\x03\x04 = getTimer();
9\x07 = 1;
}
\x03\x06++;
\"\x05--;
if (\"\x05 == 0) {
\"\x05 = 5\x07;
\x19\n = Math.round(\x03\x06 / ((getTimer() - \x03\x04) / 1000));
\x03\x06 = 0;
\x03\x04 = getTimer();
9\x07 = 2;
} else if (9\x07 == 1) {
\x19\n = Math.round(\x03\x06 / ((getTimer() - \x03\x04) / 1000));
}
if (\x06\x10 == true) {
_root.myFrameText_txt.text = \x19\n + " fps";
}
}
function 1
() {
return(\x19\n);
}
function ?() {
\x1D\x02 = \x03\x06;
}
}
Symbol 2604 MovieClip [__Packages.StormWindsGame] Frame 0
#initclip
if (!_global["\x1F\n"]) {
var _local1 = function () {
_global.levelClose = false;
_global.forceCampaignRestart = false;
this.myLevelManager = new \x04\r();
this.turretData = new '\x05();
this["\x11\x0F"] = new Object();
this["\x11\x0F"].onMouseDown = function () {
_root.game.6\x07();
};
this["\x11\x0F"].onMouseUp = function () {
_root.game.\x19\x11();
};
this["\x05\f"] = new Object();
this["\x05\f"].onMouseDown = function () {
_root.game.\n\x05();
};
this["\x05\f"].onMouseUp = function () {
_root.game.=\x02();
};
this["\x1C\x11"] = new \x17\x04();
this._level = new \x17\x04();
this.beatIceCampaign = new \x17\x04();
this.beatRigCampaign = new \x17\x04();
this.beatForestCampaign = new \x17\x04();
this.beatHillsCampaign = new \x17\x04();
this.beatWaterfallCampaign = new \x17\x04();
this.beatEndCampaign = new \x17\x04();
this["\x07\x04"] = new \x17\x04();
this["`\x05"] = new \x17\x04();
this["\x07\x04"].Set(983916);
this["`\x05"].Set(338230);
this["\x15\x0F"] = new Array();
this["^\x05"] = new Array();
this.arrAllies = new Array();
this["8\f"] = new Array();
this.arrSlots = new Array();
this.arrStorage = new Array();
this["\x1C\x0F"] = new Array();
this.arrUpgradeButtons = new Array();
this["\x10\x02"] = new Array();
this["#\x03"] = new Array();
this["2\x03"] = new Array();
this["\x1C\x06"] = new Array();
this["\x0F\x06"] = new Array();
this["?\x0F"] = new Array();
this["8\x02"] = new Array();
this["\x19\x0B"] = new Array();
this.arrEnemyLasers = new Array();
this.challengeTimer = new \x19\x06();
this["[\x03"] = new \x19\x06();
this[";\x04"] = 10000;
this["\x13\x05"] = 15050;
this["\x17\x0F"] = 5000;
this["\x0B\n"] = 30000;
this["%\x02"] = 25000;
this["-\x07"] = 40001;
this["\x13\x10"] = 0.2;
_global.gravityConst = this["\x13\x10"];
this["\x1E\x11"] = 2;
this["%\x07"] = 12;
this["\x05\x05"] = 0.2;
this["\x13\x0F"] = 99999 /* 0x01869F */;
this["6"] = 10;
this["\x07\x11"] = 10;
this["'\r"] = 0;
this["\x17\f"] = "dragGun_40000";
this["\x04\x06"] = new #\x11();
this["\x19\x02"] = 0;
this["]\x04"] = "";
this.intPickUpSlot = 0;
this["\x1A\x04"] = 500;
this["\x12\x10"] = 0;
this["\x0E\r"] = 0;
this["[\x07"] = false;
this["!\x06"] = false;
this["6\n"] = 0;
this["3\x05"] = false;
this[")\x0F"] = false;
this["\r\x04"] = 0;
this["\x1A\x0E"] = 0;
this["\x12\n"] = 0;
this["`\x07"] = new #\x11();
this["`\x07"]._x = _root.bg_mc._x;
this["`\x07"]._y = _root.bg_mc._y;
this["^\x0B"] = new #\x11();
this["7\x0F"] = false;
this["%\x04"] = 0;
this["#\x0F"] = 0;
this._challengeUpgradeBonus = 0;
this.blnDisplayedWeaponWarning = false;
this["2\x07"] = false;
this["]\x05"] = false;
this["6\x02"] = 0;
this["[\r"] = 0;
this["\x05\x0E"] = 0;
this["-\x0E"] = 0;
this["-\x02"] = 0;
this["\x02\x0E"] = 0;
this["\x01\x04"] = 1;
this["4\x0B"] = 0;
this["-\x03"] = -1;
this[">\x07"] = 0;
_root.power1._visible = false;
_root.power2._visible = false;
_root.power3._visible = false;
_root.power4._visible = false;
_root.power5._visible = false;
_root.power6._visible = false;
_root.health1._visible = false;
_root.health2._visible = false;
_root.health3._visible = false;
_root.health4._visible = false;
_root.health5._visible = false;
_root.health6._visible = false;
_root.load1._visible = false;
_root.load2._visible = false;
_root.load3._visible = false;
_root.load4._visible = false;
_root.load5._visible = false;
_root.load6._visible = false;
_root.menu_mc._visible = false;
_root["\"\x03"]._visible = false;
_root.waveMeter_mc._visible = false;
_root.slot1hotkey_txt.text = "";
_root.slot2hotkey_txt.text = "";
_root.slot3hotkey_txt.text = "";
_root.slot4hotkey_txt.text = "";
_root.slot5hotkey_txt.text = "";
_root.slot6hotkey_txt.text = "";
_root.avatar_gun1_mc._visible = false;
_root.avatar_gun2_mc._visible = false;
_root.avatar_gun3_mc._visible = false;
_root.avatar_gun4_mc._visible = false;
_root.avatar_gun5_mc._visible = false;
_root.avatar_gun6_mc._visible = false;
_root.outline1._visible = false;
_root.outline2._visible = false;
_root.outline3._visible = false;
_root.outline4._visible = false;
_root.outline5._visible = false;
_root.outline6._visible = false;
_root.output_mc._visible = false;
_root.flash_mc._visible = false;
_root.doors._visible = false;
_root.descriptionAnim_mc._visible = false;
this["\x12\r"] = false;
this["@\x05"] = false;
this["\x0F\n"] = false;
this["&\x10"] = false;
this[";\x06"] = true;
this["\x05\x02"] = new \x17\x04();
this["\x05\x02"].Set(0);
this.intPoints = new \x17\x0B();
this.intPoints.\x17\r(0);
this.intPoints.\x10\x03(3);
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrStorage.push({buttonName:"store0", iconName:"storeIcon0", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store1", iconName:"storeIcon1", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store2", iconName:"storeIcon2", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store3", iconName:"storeIcon3", blnInUse:false, gun:new \"\x0E()});
if (this.1\x10(_global.currentCampaign) == true) {
this.,\x11();
} else {
this.\x0F\x04(_global.loadSlot);
}
if (this._level.Get() == 1) {
this.\x06\x0F();
} else {
this["[\x03"].4\x05();
this.\x05\x0B();
}
};
_global["\x1F\n"] = _local1;
var _local2 = _local1.prototype;
_local2.Load = function () {
};
_local2["8\x05"] = function () {
this["!\x0F"] = _root.screenEffects_mc.getDepth();
this["2\x10"] = _root.flash_mc.getDepth();
this["\x04\x05"] = _root.output_mc.getDepth();
this["\f\x04"] = _root.menu_mc.getDepth();
this[")\x07"] = _root.cover.getDepth();
this["<\f"] = _root.waveMeter_mc.getDepth();
_root.screenEffects_mc.swapDepths(99999);
_root.screenEffects_mc._visible = false;
_root.flash_mc.swapDepths(99997);
_root.flash_mc.visible = false;
_root.output_mc.swapDepths(100001);
_root.menu_mc.swapDepths(100000);
_root.cover.swapDepths(100002);
_root.waveMeter_mc.swapDepths(99992);
if (this.arrSlots.length > 3) {
_root.extraSlots_mc.gotoAndPlay("show");
}
};
_local2["%\n"] = function () {
if (this[";\x06"] == true) {
this[";\x06"] = false;
this.8\x05();
}
if (this.1\x10(_global.currentCampaign) == true) {
this.challengeTimer.%\n();
}
this["[\x03"].%\n();
if (_global.gamePaused == false) {
if (this["\x12\r"] == false) {
this.9\x0E();
this.DisplayCharge();
this.\x0E\x04();
this.\"\r();
this.+\f();
this.=\x07();
this.\x06\x04();
this.\x03\x03();
this.9\x0F();
this.\r\n();
if (this["4\x0B"] == 0) {
this.myLevelManager.%\n();
}
} else {
this.\x04\x11();
this.\x07\x06();
if (this.1\x10(_global.currentCampaign) == false) {
this.\x0E\x07();
}
}
} else if (this["[\x07"] == false) {
if (this["6\n"] == 0) {
if (this["\x12\r"] == false) {
if (Key.isDown(_global.pauseHotkey)) {
var _local4 = SharedObject.getLocal("settings");
_local4.data.musicOn = _global.musicOn;
_local4.data.soundOn = _global.soundOn;
_local4.data.graphics = _global.graphics;
_local4.data.hotKey1 = _global.hotKey1;
_local4.data.hotKey2 = _global.hotKey2;
_local4.data.hotKey3 = _global.hotKey3;
_local4.data.hotKey4 = _global.hotKey4;
_local4.data.hotKey5 = _global.hotKey5;
_local4.data.hotKey6 = _global.hotKey6;
_local4.flush();
_root.menu_mc.gotoAndPlay(16);
this["6\n"] = 15;
}
}
} else {
this["6\n"]--;
}
}
_global.myMusicPlayer.\x14\x12();
this.\x12\x04();
this.-\x04();
this.\x11\x0E();
this.intPoints.%\n();
if (this.1\x10(_global.currentCampaign) == true) {
this.+();
}
};
_local2["\x06\x04"] = function () {
_root.waveMeter_mc.inside._xscale = this.myLevelManager.&\x0E();
};
_local2["+"] = function () {
if (this["\x12\r"] == true) {
_root.timer_txt.text = "";
} else {
_root.timer_txt.text = this.challengeTimer.\x07\x12();
}
_root.score_txt.text = this.intPoints.GetDisplayScore();
};
_local2["6\x07"] = function () {
if (this["\x12\r"] == false) {
var _local5 = -1;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
if (_root[this.arrAllies[_local4].selectField].hitTest(_xmouse, _ymouse)) {
if ((this.arrAllies[_local4].blnDestroyed == false) && (this.arrAllies[_local4].blnSelected == false)) {
if (((((this.arrAllies[_local4].type != 4) && (this.arrAllies[_local4].type != 8)) && (this.arrAllies[_local4].type != 9)) && (this.arrAllies[_local4].type != 25)) && (this.arrAllies[_local4].type != 31)) {
this.arrAllies[_local4].blnSelected = true;
_local5 = _local4;
this["'\r"] = _local4;
}
}
break;
}
_local4++;
}
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if ((_local4 != _local5) && (_local5 != -1)) {
this.arrAllies[_local4].blnSelected = false;
}
this.arrAllies[_local4].power = 0;
this.arrAllies[_local4].charging = false;
_local4++;
}
if (_local5 == -1) {
var _local7 = true;
switch (this.arrAllies[this["'\r"]].type) {
case 2 :
case 11 :
case 12 :
case 13 :
case 14 :
case 15 :
case 16 :
case 17 :
case 18 :
case 19 :
case 20 :
case 21 :
case 23 :
case 7 :
case 3 :
case 4 :
case 8 :
case 9 :
case 25 :
case 27 :
case 24 :
case 28 :
case 29 :
case 31 :
case 32 :
_local7 = false;
}
if (_local7 == true) {
var _local8 = _root[this.arrAllies[this["'\r"]].powerMeter];
_local8._visible = true;
_local8.inside._xscale = 0;
} else if (this.arrAllies[this["'\r"]].blnDestroyed == false) {
if ((((((this.arrAllies[this["'\r"]].type == 2) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 18)) || (this.arrAllies[this["'\r"]].type == 11)) || (this.arrAllies[this["'\r"]].type == 12)) || (this.arrAllies[this["'\r"]].type == 28)) {
_root[this.arrAllies[this["'\r"]].name].gun.barrel.gotoAndPlay("shoot");
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
this.\n\x11();
}
} else if (this.arrAllies[this["'\r"]].type == 7) {
this.\x0F\x0E();
} else if (this.arrAllies[this["'\r"]].type == 3) {
this.2\x06();
} else if (this.arrAllies[this["'\r"]].type == 13) {
this.0();
} else if (this.arrAllies[this["'\r"]].type == 15) {
this.%\x05();
} else if (this.arrAllies[this["'\r"]].type == 16) {
this.\x15\f();
} else if (this.arrAllies[this["'\r"]].type == 17) {
this.\x06\n();
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local3 = 0;
while (_local3 < this["2\x03"].length) {
if (this["2\x03"][_local3].creator == this.arrAllies[this["'\r"]].name) {
_root[this["2\x03"][_local3].name].gun_1.gotoAndPlay("shoot");
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
this.\x17\x11();
}
break;
}
_local3++;
}
} else if (this.arrAllies[this["'\r"]].type == 27) {
this.\x07\x0B();
} else if (this.arrAllies[this["'\r"]].type == 24) {
this.(\x04();
} else if (this.arrAllies[this["'\r"]].type == 29) {
this.<\x04();
}
}
this.arrAllies[this["'\r"]].charging = true;
} else {
if (this.arrAllies[this["'\r"]].type == 12) {
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].type == 12) {
_root[this.arrAllies[_local4].name].gun.radio_mc._visible = true;
}
_local4++;
}
} else {
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].type == 12) {
_root[this.arrAllies[_local4].name].gun.radio_mc._visible = false;
}
_local4++;
}
}
if (this["-\x03"] != -1) {
if (this["-\x03"] != this["'\r"]) {
this.\x10\x0B();
}
}
if (this.arrAllies[this["'\r"]].type == 21) {
var _local6 = -1;
_local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this.arrAllies[this["'\r"]].name == this["2\x03"][_local4].creator) {
_local6 = _local4;
break;
}
_local4++;
}
if (_local6 == -1) {
this.\x16(this["'\r"]);
} else {
_root[this["2\x03"][_local6].name].1\x06();
}
}
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if ((this.arrAllies[_local4].type == 21) && (_local4 != this["'\r"])) {
var _local3 = 0;
while (_local3 < this["2\x03"].length) {
if (this.arrAllies[_local4].name == this["2\x03"][_local3].creator) {
_root[this["2\x03"][_local3].name].8\x0B();
break;
}
_local3++;
}
}
_local4++;
}
this.]\x06(_root[this.arrAllies[this["'\r"]].name]._x, _root[this.arrAllies[this["'\r"]].name]._y);
}
}
};
_local2["\"\r"] = function () {
if (this["6\n"] == 0) {
var _local7 = -1;
if (Key.isDown(_global.pauseHotkey)) {
if (_global.gamePaused == true) {
this.5\x10();
this["6\n"] = 15;
} else {
this. \x07();
this.@\f();
this["6\n"] = 15;
}
}
if (Key.isDown(_global.hotKey1)) {
_local7 = 1;
} else if (Key.isDown(_global.hotKey2)) {
_local7 = 2;
} else if (Key.isDown(_global.hotKey3)) {
_local7 = 3;
} else if (Key.isDown(_global.hotKey4)) {
if (this.arrSlots.length > 3) {
_local7 = 4;
}
} else if (Key.isDown(_global.hotKey5)) {
if (this.arrSlots.length > 3) {
_local7 = 5;
}
} else if (Key.isDown(_global.hotKey6)) {
if (this.arrSlots.length > 4) {
_local7 = 6;
}
}
if (_local7 != -1) {
this["6\n"] = 15;
_local7 = _local7 - 1;
var _local6 = -1;
var _local5 = 0;
while (_local5 < this.arrAllies.length) {
if (this.arrSlots[_local7].gunName == this.arrAllies[_local5].name) {
_local6 = _local5;
break;
}
_local5++;
}
if (_local6 != -1) {
if ((this["'\r"] != _local6) && (this.arrAllies[_local6].blnDestroyed == false)) {
if (((((this.arrAllies[_local5].type != 4) && (this.arrAllies[_local5].type != 8)) && (this.arrAllies[_local5].type != 9)) && (this.arrAllies[_local5].type != 25)) && (this.arrAllies[_local5].type != 31)) {
if ((((((this.arrAllies[this["'\r"]].type == 2) || (this.arrAllies[this["'\r"]].type == 11)) || (this.arrAllies[this["'\r"]].type == 12)) || (this.arrAllies[_local5].type == 18)) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 28)) {
_root[this.arrAllies[this["'\r"]].name].gun.barrel.gotoAndStop("stop");
_global.SoundManager.\x06\f();
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this["2\x03"][_local4].creator == this.arrAllies[this["'\r"]].name) {
_root[this["2\x03"][_local4].name].gun_1.gotoAndStop("stop");
break;
}
_local4++;
}
}
_root[this.arrAllies[this["'\r"]].powerMeter]._visible = false;
_local5 = 0;
while (_local5 < this.arrAllies.length) {
if (_local5 != _local6) {
this.arrAllies[_local5].blnSelected = false;
} else {
this.arrAllies[_local5].blnSelected = true;
}
this.arrAllies[_local5].power = 0;
this.arrAllies[_local5].charging = false;
_local5++;
}
this["'\r"] = _local6;
this.]\x06(_root[this.arrAllies[this["'\r"]].name]._x, _root[this.arrAllies[this["'\r"]].name]._y);
if (this.arrAllies[this["'\r"]].type == 12) {
_local5 = 0;
while (_local5 < this.arrAllies.length) {
if (this.arrAllies[_local5].type == 12) {
_root[this.arrAllies[_local5].name].gun.radio_mc._visible = true;
}
_local5++;
}
} else {
_local5 = 0;
while (_local5 < this.arrAllies.length) {
if (this.arrAllies[_local5].type == 12) {
_root[this.arrAllies[_local5].name].gun.radio_mc._visible = false;
}
_local5++;
}
}
if (this.arrAllies[this["'\r"]].type == 21) {
var _local8 = -1;
_local5 = 0;
while (_local5 < this["2\x03"].length) {
if (this.arrAllies[this["'\r"]].name == this["2\x03"][_local5].creator) {
_local8 = _local5;
break;
}
_local5++;
}
if (_local8 == -1) {
this.\x16(this["'\r"]);
} else {
_root[this["2\x03"][_local8].name].1\x06();
}
}
_local5 = 0;
while (_local5 < this.arrAllies.length) {
if ((this.arrAllies[_local5].type == 21) && (_local5 != this["'\r"])) {
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this.arrAllies[_local5].name == this["2\x03"][_local4].creator) {
_root[this["2\x03"][_local4].name].8\x0B();
break;
}
_local4++;
}
}
_local5++;
}
if (this["-\x03"] != -1) {
if (this["-\x03"] != this["'\r"]) {
this.\x10\x0B();
}
}
if (this.arrAllies[this["'\r"]].type == 23) {
this.7\x07();
}
}
}
}
}
} else {
this["6\n"]--;
}
};
_local2["\x0E\x07"] = function () {
if (this["6\n"] == 0) {
if (_global.cheatsEnabled.Get() == -1) {
if (_global.var1.Get() != -1) {
if ((Key.isDown(17) && (Key.isDown(16))) && (Key.isDown(83))) {
this["6\n"] = 15;
if (this._level.Get() < 10) {
this._level.Set(this._level.Get() + 1);
}
_root.icoOut.ico1.UpdateLevel();
} else if ((Key.isDown(17) && (Key.isDown(16))) && (Key.isDown(66))) {
this["6\n"] = 15;
if (this._level.Get() > 1) {
this._level.Set(this._level.Get() - 1);
}
_root.icoOut.ico1.UpdateLevel();
} else if ((Key.isDown(17) && (Key.isDown(16))) && (Key.isDown(67))) {
this["6\n"] = 15;
_global.cheatCheapGuns.mSet(1254367);
} else if ((Key.isDown(17) && (Key.isDown(16))) && (Key.isDown(85))) {
this["6\n"] = 15;
_global.cheatUpgrades.mSet(1254367);
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
this.arrAllies[_local4].SetPoints(this.arrAllies[_local4].<\x06() + 2);
_local4++;
}
if (this["!\x06"] == true) {
_root.menu_mc.inside.points_txt.text = this.arrAllies[this["#\r"]].<\x06();
}
} else if ((Key.isDown(17) && Key.isDown(16)) && Key.isDown(76)) {
this["6\n"] = 15;
_global.cheatUnlock.mSet(1254367);
} else if ((Key.isDown(17) && Key.isDown(16)) && Key.isDown(74)) {
this["6\n"] = 15;
if (this._level.Get() < 10) {
this._level.Set(this._level.Get() + 1);
}
_root.icoOut.ico1.UpdateLevel();
} else if ((Key.isDown(17) && Key.isDown(16)) && Key.isDown(77)) {
this["6\n"] = 15;
_global.cheatUnlock.mSet(1254367);
this.\x02\x07();
}
}
}
} else {
this["6\n"]--;
}
};
_local2.DisplayCharge = function () {
var _local8 = true;
switch (this.arrAllies[this["'\r"]].type) {
case 2 :
case 11 :
case 12 :
case 13 :
case 14 :
case 15 :
case 16 :
case 17 :
case 18 :
case 19 :
case 20 :
case 21 :
case 23 :
case 7 :
case 3 :
case 25 :
case 27 :
case 24 :
case 28 :
case 29 :
case 31 :
case 32 :
_local8 = false;
}
if (this.arrAllies[this["'\r"]].charging == true) {
if (_local8 == true) {
this.arrAllies[this["'\r"]].power = this.arrAllies[this["'\r"]].power + this.arrAllies[this["'\r"]].chargeRate;
if (this.arrAllies[this["'\r"]].power > this.arrAllies[this["'\r"]].chargeMax) {
this.arrAllies[this["'\r"]].power = this.arrAllies[this["'\r"]].chargeMax;
}
_root[this.arrAllies[this["'\r"]].powerMeter].inside._xscale = (this.arrAllies[this["'\r"]].power / this.arrAllies[this["'\r"]].chargeMax) * 100;
if (this.arrAllies[this["'\r"]].type == 10) {
if (this.arrAllies[this["'\r"]].power == this.arrAllies[this["'\r"]].chargeMax) {
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
if (this["]\x05"] == false) {
this.1\x0E();
}
}
}
}
} else if ((((((this.arrAllies[this["'\r"]].type == 2) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 18)) || (this.arrAllies[this["'\r"]].type == 11)) || (this.arrAllies[this["'\r"]].type == 12)) || (this.arrAllies[this["'\r"]].type == 28)) {
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
this.\n\x11();
}
} else if (this.arrAllies[this["'\r"]].type == 21) {
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
this.\x17\x11();
}
}
}
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].blnDestroyed == false) {
if (this.arrAllies[_local3].timer == this.arrAllies[_local3].timerReady) {
} else {
this.arrAllies[_local3].timer = this.arrAllies[_local3].timer + this.arrAllies[_local3].timerRate;
if (this.arrAllies[_local3].type == 16) {
if ((this.arrAllies[_local3].timerReady - this.arrAllies[_local3].timer) == 38) {
_root[this.arrAllies[_local3].name].gun.gotoAndPlay("reload");
}
}
if (this.arrAllies[_local3].timer >= this.arrAllies[_local3].timerReady) {
this.arrAllies[_local3].timer = this.arrAllies[_local3].timerReady;
_root[this.arrAllies[_local3].loadMeter].gotoAndPlay(2);
if (this.arrAllies[_local3].type == 14) {
var _local6 = 0;
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
if (_root[this["\x15\x0F"][_local4]]._mine == true) {
if (_root[this["\x15\x0F"][_local4]]._creator._name == this.arrAllies[_local3].name) {
_local6++;
}
}
_local4++;
}
_local6++;
var _local5 = 0;
var _local7 = Math.round(360 / _local6);
_local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
if (_root[this["\x15\x0F"][_local4]]._mine == true) {
if (_root[this["\x15\x0F"][_local4]]._creator._name == this.arrAllies[_local3].name) {
_root[this["\x15\x0F"][_local4]].\x1F\r(_local5);
_local5 = _local5 + _local7;
}
}
_local4++;
}
this.<(_root[this.arrAllies[_local3].name], this.arrAllies[_local3].damage, true, _local5);
_local4 = 0;
while (_local4 < this["\x10\x02"].length) {
if ((this["\x10\x02"][_local4].name = this.arrAllies[_local3].name)) {
if (this["\x10\x02"][_local4].num > 1) {
this["\x10\x02"][_local4].num--;
this.arrAllies[_local3].timer = 0;
_root[this.arrAllies[_local3].loadMeter].gotoAndPlay(1);
} else {
this["\x10\x02"].splice(_local4, 1);
_local4--;
}
break;
}
_local4++;
}
}
if (this.arrAllies[_local3].type == 20) {
_root[this.arrAllies[_local3].name].gun.barrel.gotoAndPlay("shoot");
}
if (this.arrAllies[_local3].type == 32) {
_root[this.arrAllies[_local3].name].gun.gotoAndPlay("shoot");
}
if (this.arrAllies[_local3].type == 31) {
}
} else {
_root[this.arrAllies[_local3].loadMeter].inside._xscale = (this.arrAllies[_local3].timer / this.arrAllies[_local3].timerReady) * 100;
}
}
}
_local3++;
}
};
_local2["]\x02"] = function (_arg6) {
if (this.arrAllies[_arg6].blnDestroyed == false) {
if (this.arrAllies[_arg6].damageTaken > this.arrAllies[_arg6].totalLife) {
this.arrAllies[_arg6].damageTaken = this.arrAllies[_arg6].totalLife;
}
if (this.arrAllies[_arg6].damageTaken == this.arrAllies[_arg6].totalLife) {
if (_arg6 == this["'\r"]) {
_global.SoundManager.\x06\f();
}
if (this.arrAllies[_arg6].saveType == 17) {
var _local5 = 0;
while (_local5 < this["#\x03"].length) {
if (this["#\x03"][_local5].from == this.arrAllies[_arg6].name) {
this.\x01\x03(this["#\x03"][_local5].name);
this["#\x03"].splice(_local5, 1);
_local5--;
}
_local5++;
}
}
if (this.arrAllies[_arg6].saveType == 24) {
var _local4 = 0;
while (_local4 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local4].strGunName == this.arrAllies[_arg6].name) {
_root[this["\x19\x0B"][_local4].strGunName].gun.gotoAndStop(1);
if ((this["\x19\x0B"][_local4].intState == 5) || (this["\x19\x0B"][_local4].intState == 6)) {
_root[this["\x19\x0B"][_local4].strBeamName].removeMovieClip();
}
}
_local4++;
}
}
this["\x07\x04"].mSet(782065);
this.arrAllies[_arg6].blnDestroyed = true;
this.arrAllies[_arg6].type = 40;
_root[this.arrAllies[_arg6].name].gotoAndPlay(40);
this.arrAllies[_arg6].timer = 0;
_root[this.arrAllies[_arg6].loadMeter].gotoAndStop(1);
_root[this.arrAllies[_arg6].loadMeter].inside._xscale = 0;
this.`\x11();
if (this.]\x0B() == true) {
this.\x12\x11();
}
}
_root[this.arrAllies[_arg6].healthMeter].inside._xscale = ((this.arrAllies[_arg6].totalLife - this.arrAllies[_arg6].damageTaken) / this.arrAllies[_arg6].totalLife) * 100;
} else if (_root[this.arrAllies[_arg6].healthMeter].inside._xscale != 0) {
this.arrAllies[_arg6].damageTaken = this.arrAllies[_arg6].totalLife;
_root[this.arrAllies[_arg6].healthMeter].inside._xscale = 0;
this.arrAllies[_arg6].timer = 0;
_root[this.arrAllies[_arg6].loadMeter].gotoAndStop(1);
_root[this.arrAllies[_arg6].loadMeter].inside._xscale = 0;
}
};
_local2["\x19\f"] = function () {
this["#\x0F"]++;
};
_local2["\x19\x11"] = function () {
if (this["\x12\r"] == false) {
var _local8 = true;
switch (this.arrAllies[this["'\r"]].type) {
case 2 :
case 11 :
case 12 :
case 13 :
case 14 :
case 15 :
case 16 :
case 17 :
case 18 :
case 19 :
case 20 :
case 21 :
case 23 :
case 7 :
case 3 :
case 4 :
case 8 :
case 9 :
case 10 :
case 25 :
case 27 :
case 24 :
case 28 :
case 29 :
case 31 :
case 32 :
_local8 = false;
}
if (_local8 == true) {
if (this.arrAllies[this["'\r"]].charging == true) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
var thisRef = this;
var _local5 = "avatarBullet_" + this[";\x04"];
var _local9 = new #\x11();
var _local6 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local12 = (Math.PI * _local6.barrel._rotation) / 180;
var _local10 = this.arrAllies[this["'\r"]].power + this["\x1E\x11"];
_local9._x = Math.cos((Math.PI * _local6.barrel._rotation) / 180) * (this.arrAllies[this["'\r"]].power + this["\x1E\x11"]);
_local9._y = Math.sin((Math.PI * _local6.barrel._rotation) / 180) * (this.arrAllies[this["'\r"]].power + this["\x1E\x11"]);
var _local7 = {x:_local6.barrel.emitter._x, y:_local6.barrel.emitter._y};
_local6.barrel.localToGlobal(_local7);
this.turretData.,(this.arrAllies[this["'\r"]].type, this.arrAllies[this["'\r"]].exp);
this["%\x04"]++;
if (this.arrAllies[this["'\r"]].type == 6) {
_root.attachMovie("fireBullet", _local5, this[";\x04"]);
_root[_local5]._data = this.arrAllies[this["'\r"]].numBullets;
_global.SoundManager.PlaySound("FlameTurretFire");
} else if (this.arrAllies[this["'\r"]].type == 22) {
_root.attachMovie("bulletAcid", _local5, this[";\x04"]);
_root[_local5]._data = this.arrAllies[this["'\r"]].range;
_root[_local5]["5\x11"] = this.arrAllies[this["'\r"]].data;
_global.SoundManager.PlaySound("FlameTurretFire");
} else if (this.arrAllies[this["'\r"]].type == 5) {
_root.attachMovie("bullet2", _local5, this[";\x04"]);
_root[_local5]["6\x06"] = this.RandNum(25, 40);
_root[_local5]._data = this.arrAllies[this["'\r"]].numBullets;
_global.SoundManager.PlaySound("HeavyCannonFire");
} else if (this.arrAllies[this["'\r"]].type == 26) {
_root.attachMovie("balloon_mine", _local5, this[";\x04"]);
_root[_local5]["6\x06"] = this.RandNum(25, 40);
_root[_local5]._bulletTypeID = 2;
_global.SoundManager.PlaySound("HeavyCannonFire");
} else if (this.arrAllies[this["'\r"]].type == 30) {
_root.attachMovie("leech", _local5, this[";\x04"]);
_root[_local5]._bulletTypeID = 5;
_global.SoundManager.PlaySound("HeavyCannonFire");
} else {
_root.attachMovie("bullet2", _local5, this[";\x04"]);
_global.SoundManager.PlaySound("HeavyCannonFire");
}
_root[_local5]._x = _local7.x;
_root[_local5]._y = _local7.y;
_root[_local5].\x18\x11(this["\x13\x10"], _local10);
_root[_local5].\x02\x10(_local12);
_root[_local5].3\x04(_root[_local5]._x, _root[_local5]._y);
_root[_local5]._enemy = false;
_root[_local5]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local5]._rotation = _local6.barrel._rotation;
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local5);
_root[_local5].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
}
this.arrAllies[this["'\r"]].charging = false;
var _local11 = _root[this.arrAllies[this["'\r"]].powerMeter];
_local11._visible = false;
}
} else if ((((((this.arrAllies[this["'\r"]].type == 2) || (this.arrAllies[this["'\r"]].type == 18)) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 11)) || (this.arrAllies[this["'\r"]].type == 12)) || (this.arrAllies[this["'\r"]].type == 28)) {
this.arrAllies[this["'\r"]].charging = false;
_root[this.arrAllies[this["'\r"]].name].gun.barrel.gotoAndStop("stop");
_global.SoundManager.\x06\f();
} else if (this.arrAllies[this["'\r"]].type == 10) {
this.arrAllies[this["'\r"]].charging = false;
var _local11 = _root[this.arrAllies[this["'\r"]].powerMeter];
_local11._visible = false;
} else if (this.arrAllies[this["'\r"]].type == 17) {
this.4\n();
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this["2\x03"][_local4].creator == this.arrAllies[this["'\r"]].name) {
_root[this["2\x03"][_local4].name].gun_1.gotoAndStop("stop");
this.arrAllies[this["'\r"]].charging = false;
break;
}
_local4++;
}
} else if (this.arrAllies[this["'\r"]].type == 23) {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
if (this["-\x03"] == -1) {
this.7\x07();
} else {
this.\x12\x0E();
}
}
}
}
}
};
_local2["\x03\x03"] = function () {
var _local2 = 0;
while (_local2 < this["?\x0F"].length) {
this["?\x0F"][_local2].nextBulletCounter--;
if (this["?\x0F"][_local2].nextBulletCounter == 0) {
var _local3 = this.RandNum(this["?\x0F"][_local2].xMin, this["?\x0F"][_local2].xMax);
this.\x0E\x12(_local3, this["?\x0F"][_local2].speed, this["?\x0F"][_local2].damage);
this["?\x0F"][_local2].bulletsLeft--;
if (this["?\x0F"][_local2].bulletsLeft == 0) {
this["?\x0F"].splice(_local2, 1);
_local2--;
} else {
this["?\x0F"][_local2].nextBulletCounter = this.RandNum(2, 12);
}
}
_local2++;
}
};
_local2["\x0E\x12"] = function (_arg8, _arg10, _arg9) {
var _local5 = 50;
var thisRef = this;
var _local3 = "avatarBullet_" + this[";\x04"];
var _local4 = new #\x11();
var _local7 = (Math.PI * _local5) / 180;
var _local6 = _arg10;
_local4 = new #\x11();
_local4._x = Math.cos((Math.PI * _local5) / 180) * _local6;
_local4._y = Math.sin((Math.PI * _local5) / 180) * _local6;
_root.attachMovie("artillery", _local3, this[";\x04"]);
_root[_local3]._x = _arg8;
_root[_local3]._y = -5;
_root[_local3]["\x1D\x04"] = true;
_root[_local3].]\r(_local4._x, _local4._y);
_root[_local3]._enemy = false;
_root[_local3]._damage = _arg9;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["\x12\x0E"] = function () {
this.\x10\x0B();
this.turretData.,(23, this.arrAllies[this["'\r"]].exp);
var _local3 = new #\x11();
_local3._x = 0.642787609686539 * this.turretData.\"\x0F();
_local3._y = 0.766044443118978 * this.turretData.\"\x0F();
var _local5 = _local3._y / _local3._x;
var _local6 = _root._ymouse - (_local5 * _root._xmouse);
var _local4 = (-5 - _local6) / _local5;
var _local8 = _local4 - (this.arrAllies[this["'\r"]].range / 2);
var _local7 = _local4 + (this.arrAllies[this["'\r"]].range / 2);
this["?\x0F"].push({damage:this.arrAllies[this["'\r"]].damage, bulletsLeft:this.arrAllies[this["'\r"]].numBullets, xMin:_local8, xMax:_local7, nextBulletCounter:30, speed:this.turretData.\"\x0F()});
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
};
_local2["7\x07"] = function () {
this["-\x03"] = this["'\r"];
_root.attachMovie("rangeIndicator", "range", this["-\x07"]);
_root.range._x = _root._xmouse;
_root.range._y = _root._ymouse;
_root.range._width = this.arrAllies[this["'\r"]].range;
_root.range.startDrag();
};
_local2["\x10\x0B"] = function () {
this["-\x03"] = -1;
_root.range.stopDrag();
_root.range.removeMovieClip();
};
_local2["\x07\x0B"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
this["8\x02"].push({damage:this.arrAllies[this["'\r"]].damage, bulletsLeft:this.arrAllies[this["'\r"]].numBullets, nextBulletCounter:15});
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["9\x0F"] = function () {
var _local2 = 0;
while (_local2 < this["8\x02"].length) {
this["8\x02"][_local2].nextBulletCounter--;
if (this["8\x02"][_local2].nextBulletCounter == 0) {
var _local3 = this.RandNum(150, 650);
this.3\f(_local3, this["8\x02"][_local2].damage);
this["8\x02"][_local2].bulletsLeft--;
if (this["8\x02"][_local2].bulletsLeft == 0) {
this["8\x02"].splice(_local2, 1);
_local2--;
} else {
this["8\x02"][_local2].nextBulletCounter = this.RandNum(15, 45);
}
}
_local2++;
}
};
_local2["3\f"] = function (_arg4, _arg5) {
var thisRef = this;
var _local3 = "avatarBullet_" + this[";\x04"];
_root.attachMovie("balloon_mine", _local3, this[";\x04"]);
_root[_local3].gotoAndStop("ready");
_root[_local3]._bulletTypeID = 3;
_root[_local3]._x = _arg4;
_root[_local3]._y = 390;
_root[_local3]._enemy = false;
_root[_local3]._damage = _arg5;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["<\x04"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
var thisRef = this;
var _local4 = "avatarBullet_" + this[";\x04"];
var _local8 = new #\x11();
var _local5 = _root[this.arrAllies[this["'\r"]].name].gun;
this.turretData.,(this.arrAllies[this["'\r"]].type, this.arrAllies[this["'\r"]].exp);
var _local9 = (Math.PI * _local5.barrel._rotation) / 180;
var _local6 = this.turretData.\"\x0F();
_local8._x = Math.cos((Math.PI * _local5.barrel._rotation) / 180) * _local6;
_local8._y = Math.sin((Math.PI * _local5.barrel._rotation) / 180) * _local6;
var _local7 = {x:_local5.barrel.emitter._x, y:_local5.barrel.emitter._y};
_local5.barrel.localToGlobal(_local7);
this["%\x04"]++;
_root.attachMovie("disc", _local4, this[";\x04"]);
_root[_local4]._bulletTypeID = 4;
_global.SoundManager.PlaySound("HeavyCannonFire");
_root[_local4]._x = _local7.x;
_root[_local4]._y = _local7.y;
_root[_local4].\x18\x11(this["\x13\x10"], _local6);
_root[_local4].\x02\x10(_local9);
_root[_local4].3\x04(_root[_local4]._x, _root[_local4]._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["(\x04"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
var _local4 = 80;
var _local5 = 0;
var _local6 = 1;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].type == 33) {
_local4 = _local4 + 40;
_local5 = _local5 + this.arrAllies[_local3].damage;
_local6++;
}
_local3++;
}
var _local7 = _root[this.arrAllies[this["'\r"]].name].gun;
_local7.gotoAndPlay("fire");
_local4 = _local4 + this.arrAllies[this["'\r"]].numBullets;
this["\x19\x0B"].push({strGunName:this.arrAllies[this["'\r"]].name, intState:2, intAimX:_root._xmouse, intAimY:_root._ymouse, intFramesLeft:_local4, strBeamName:"", intPower:_local6, intDamage:this.arrAllies[this["'\r"]].damage + _local5});
this.<\x0B();
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["!\x02"] = function (_arg4, _arg5) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local2].strGunName == _arg4) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 != -1) {
this["\x19\x0B"][_local3].intState = _arg5;
}
};
_local2["?\x05"] = function (_arg4) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local2].strGunName == _arg4) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 != -1) {
this["\x19\x0B"].splice(_local3, 1);
}
if (this["\x19\x0B"].length == 0) {
this.\x1C\n();
}
};
_local2["\x1D\r"] = function (_arg4) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local2].strGunName == _arg4) {
_local3 = _local2;
break;
}
_local2++;
}
this["\x19\x0B"][_local3].intState = 4;
};
_local2["\x16\x02"] = function (_arg5) {
var _local4 = -1;
var _local3 = 0;
while (_local3 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local3].strBeamName == _arg5) {
_local4 = _local3;
break;
}
_local3++;
}
this["\x19\x0B"][_local4].intState = 7;
_root[this["\x19\x0B"][_local3].strBeamName].removeMovieClip();
};
_local2["\r\n"] = function () {
var _local3 = 0;
while (_local3 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local3].intState == 4) {
var _local5 = _root[this["\x19\x0B"][_local3].strGunName].gun;
var _local8 = new Object({x:_local5.shooter._x, y:_local5.shooter._y});
_root[this["\x19\x0B"][_local3].strGunName].gun.localToGlobal(_local8);
var _local6 = new #\x11();
_local6._x = this["\x19\x0B"][_local3].intAimX - _local8.x;
_local6._y = this["\x19\x0B"][_local3].intAimY - _local8.y;
var _local11 = Math.atan2(_local6._y, _local6._x);
var _local7 = ((360 * _local11) / (Math.PI*2)) - 90;
var _local10 = new #\x11();
_local10.8\x04(_local5.shooter._rotation + 180, 10);
_local5.shooter._rotation = _local5.shooter._rotation + _local10.\x11\x03(_local7, 3, 1);
if (Math.abs(_local5.shooter._rotation - _local7) <= 2) {
_local5.shooter._rotation = _local7;
}
if (_local5.shooter._rotation == _local7) {
_local5.shooter.cacheAsBitmap = true;
this["\x19\x0B"][_local3].intState = 5;
var _local12 = this;
var _local4 = "avatarBullet_" + this[";\x04"];
var _local9 = {x:_local5.shooter._x, y:_local5.shooter._y};
_local5.localToGlobal(_local9);
if (this["\x19\x0B"][_local3].intPower >= 3) {
_root.attachMovie("solar_cannon_beam_state3", _local4, this[";\x04"]);
} else if (this["\x19\x0B"][_local3].intPower == 2) {
_root.attachMovie("solar_cannon_beam_state2", _local4, this[";\x04"]);
} else {
_root.attachMovie("solar_cannon_beam_state1", _local4, this[";\x04"]);
}
_root[_local4]._x = _local9.x;
_root[_local4]._y = _local9.y;
_root[_local4]._rotation = _local5.shooter._rotation;
this["\x19\x0B"][_local3].strBeamName = _local4;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
}
} else if (this["\x19\x0B"][_local3].intState == 5) {
this["\x19\x0B"][_local3].intFramesLeft--;
if (this["\x19\x0B"][_local3].intFramesLeft <= 0) {
this["\x19\x0B"][_local3].intFramesLeft = 0;
this["\x19\x0B"][_local3].intState = 6;
_root[this["\x19\x0B"][_local3].strBeamName].gotoAndPlay("beamOff");
}
} else if (this["\x19\x0B"][_local3].intState == 7) {
var _local5 = _root[this["\x19\x0B"][_local3].strGunName].gun;
var _local7 = 0;
var _local10 = new #\x11();
_local10.8\x04(_local5.shooter._rotation + 180, 10);
_local5.shooter._rotation = _local5.shooter._rotation + _local10.\x11\x03(_local7, 3, 1);
if (Math.abs(_local5.shooter._rotation - _local7) <= 2) {
_local5.shooter._rotation = _local7;
}
if (_local5.shooter._rotation == _local7) {
_local5.shooter.gotoAndPlay("pack");
this["\x19\x0B"][_local3].intState = 8;
}
}
_local3++;
}
};
_local2["<\x0B"] = function () {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].type == 33) {
if (this.arrAllies[_local3].data != 1) {
_root[this.arrAllies[_local3].name].gun.gotoAndPlay("shoot");
this.arrAllies[_local3].data = 1;
}
}
_local3++;
}
};
_local2["\x1C\n"] = function () {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].type == 33) {
if (this.arrAllies[_local3].data != 0) {
_root[this.arrAllies[_local3].name].gun.gotoAndPlay("close");
this.arrAllies[_local3].data = 0;
}
}
_local3++;
}
};
_local2["<"] = function (_arg4, _arg6, _arg5, _arg7) {
var thisRef = this;
var _local3 = "avatarMine_" + this["\x13\x05"];
_root.attachMovie("orbitalMine", _local3, this["\x13\x05"]);
_root[_local3]._x = _arg4._x;
_root[_local3]._y = _arg4._y;
_root[_local3]._enemy = false;
_root[_local3]._damage = _arg6;
_root[_local3][" "] = _arg5;
_root[_local3].4\x0E(_arg4);
_root[_local3].\x1F\r(_arg7);
this["\x13\x05"]++;
if (this["\x13\x05"] >= 20000) {
this["\x13\x05"] = 15050;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["3"] = function () {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].type == 14) {
var _local5 = 0;
var _local6 = Math.round(360 / this.arrAllies[_local3].numBullets);
var _local4 = 0;
while (_local4 < this.arrAllies[_local3].numBullets) {
this.<(_root[this.arrAllies[_local3].name], this.arrAllies[_local3].damage, true, _local5);
_local5 = _local5 + _local6;
_local4++;
}
}
_local3++;
}
};
_local2["#\x07"] = function () {
var _local3 = 0;
while (_local3 < this["\x15\x0F"].length) {
if (_root[this["\x15\x0F"][_local3]]._mine == true) {
_root[this["\x15\x0F"][_local3]].removeMovieClip();
this["\x15\x0F"].splice(_local3, 1);
_local3--;
}
_local3++;
}
};
_local2["-\x06"] = function (_arg6) {
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].name == _arg6) {
if (this.arrAllies[_local4].timer == this.arrAllies[_local4].timerReady) {
this.arrAllies[_local4].timer = 0;
_root[this.arrAllies[_local4].loadMeter].gotoAndStop(1);
}
var _local5 = false;
var _local3 = 0;
while (_local3 < this["\x10\x02"].length) {
if ((this["\x10\x02"][_local3].name = _arg6)) {
this["\x10\x02"][_local3].num++;
_local5 = true;
break;
}
_local3++;
}
if (_local5 == false) {
this["\x10\x02"].push({name:_arg6, num:1});
}
break;
}
_local4++;
}
};
_local2["2"] = function () {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].type == 20) {
_root[this.arrAllies[_local3].name].gun.barrel.gotoAndPlay("shoot");
var _local4 = this.arrAllies[_local3].numBullets - 1;
if (_local4 > 0) {
this["\x1C\x06"].push({name:this.arrAllies[_local3].name, num:_local4});
}
} else if (this.arrAllies[_local3].type == 31) {
this.SpawnAutoDefender(_root[this.arrAllies[_local3].name]);
} else if (this.arrAllies[_local3].type == 32) {
_root[this.arrAllies[_local3].name].gun.gotoAndPlay("shoot");
var _local4 = this.arrAllies[_local3].numBullets - 1;
if (_local4 > 0) {
this["\x1C\x06"].push({name:this.arrAllies[_local3].name, num:_local4});
}
}
_local3++;
}
};
_local2["\x14\x10"] = function (_arg4) {
var _local5 = -1;
var _local7 = false;
var _local6;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].name == _arg4._name) {
_local6 = this.arrAllies[_local3].data;
_local5 = _local3;
_local7 = true;
break;
}
_local3++;
}
var _local8 = "friendly_" + this["\x13\x05"];
if (_local6 == 1) {
_root.attachMovie("decoyWGun", _local8, this["\x13\x05"]);
} else {
_root.attachMovie("decoy", _local8, this["\x13\x05"]);
}
var _local9 = new Object({x:_arg4.gun.barrel.emitter._x, y:_arg4.gun.barrel.emitter._y});
_arg4.gun.barrel.localToGlobal(_local9);
_root[_local8].\x10\x04(this.arrAllies[_local5].range);
_root[_local8].!\f(_local9.x, _local9.y);
this["\x13\x05"]++;
if (this["\x13\x05"] >= 20000) {
this["\x13\x05"] = 15050;
}
this["2\x03"].push({name:_local8, stay:false, creator:_arg4._name});
_local3 = 0;
while (_local3 < this["\x1C\x06"].length) {
if (this["\x1C\x06"][_local3].name == _arg4._name) {
this.arrAllies[_local5].timer = 0;
_root[this.arrAllies[_local5].loadMeter].gotoAndStop(1);
if (this["\x1C\x06"][_local3].num > 1) {
this["\x1C\x06"][_local3].num--;
} else {
this["\x1C\x06"].splice(_local3, 1);
_local3--;
}
break;
}
_local3++;
}
};
_local2.SpawnAutoDefender = function (_arg5) {
var _local4 = -1;
var _local7 = false;
var _local8;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].name == _arg5._name) {
_local8 = this.arrAllies[_local3].data;
_local4 = _local3;
_local7 = true;
break;
}
_local3++;
}
var _local6 = "friendly_" + this["\x13\x05"];
_root.attachMovie("Auto_Defender", _local6, this["\x13\x05"]);
_arg5.gun.gotoAndStop("shoot");
var _local9 = new Object({x:_arg5.gun.emitter._x, y:_arg5.gun.emitter._y});
_arg5.gun.localToGlobal(_local9);
_root[_local6].\x10\x04(this.arrAllies[_local4].range);
_root[_local6].!\f(_local9.x, _local9.y);
_root[_local6].\x16\x03(this.arrAllies[_local4].damage);
_root[_local6].\x17\n(this.arrAllies[_local4].data);
this["\x13\x05"]++;
if (this["\x13\x05"] >= 20000) {
this["\x13\x05"] = 15050;
}
this["2\x03"].push({name:_local6, stay:false, creator:_arg5._name});
};
_local2["\x16"] = function (_arg6) {
var _local4 = true;
var _local3 = 0;
while (_local3 < this["\x0F\x06"].length) {
if (this["\x0F\x06"][_local3] == this.arrAllies[_arg6].name) {
_local4 = false;
break;
}
_local3++;
}
if (_local4 == true) {
var _local7 = _root[this.arrAllies[_arg6].name];
var _local5 = "friendly_" + this["\x13\x05"];
_root.attachMovie("controlUnitOne", _local5, this["\x13\x05"]);
var _local8 = new Object({x:_local7.gun.emitter._x, y:_local7.gun.emitter._y});
_local7.gun.localToGlobal(_local8);
_root[_local5]._x = _local8.x;
_root[_local5]._y = _local8.y;
_root[_local5].!\f(_local8.x, _local8.y);
_root[_local5].1\x06();
_local7.gun.gotoAndStop("shoot");
this["\x13\x05"]++;
if (this["\x13\x05"] >= 20000) {
this["\x13\x05"] = 15050;
}
this["2\x03"].push({name:_local5, stay:false, creator:_local7._name});
}
};
} else {
// unexpected jump
}
_local2.SpawnBombDrone = function (_arg5) {
var _local4 = -1;
var _local6 = false;
var _local8;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].name == _arg5._name) {
_local8 = this.arrAllies[_local3].data;
_local4 = _local3;
_local6 = true;
break;
}
_local3++;
}
var _local7 = "friendly_" + this["\x13\x05"];
_root.attachMovie("bomb_drone", _local7, this["\x13\x05"]);
var _local9 = new Object({x:_arg5.gun.emitter._x, y:_arg5.gun.emitter._y});
_arg5.gun.localToGlobal(_local9);
_root[_local7].\x10\x04(this.arrAllies[_local4].range);
_root[_local7].!\f(_local9.x, _local9.y);
_root[_local7].\x17\n(this.arrAllies[_local4].data);
this["\x13\x05"]++;
if (this["\x13\x05"] >= 20000) {
this["\x13\x05"] = 15050;
}
this["2\x03"].push({name:_local7, stay:false, creator:_arg5._name});
_local3 = 0;
while (_local3 < this["\x1C\x06"].length) {
if (this["\x1C\x06"][_local3].name == _arg5._name) {
this.arrAllies[_local4].timer = 0;
_root[this.arrAllies[_local4].loadMeter].gotoAndStop(1);
if (this["\x1C\x06"][_local3].num > 1) {
this["\x1C\x06"][_local3].num--;
} else {
this["\x1C\x06"].splice(_local3, 1);
_local3--;
}
break;
}
_local3++;
}
};
_local2["\f"] = function (_arg3) {
if (this["\x12\r"] == false) {
this.\x14\x10(_root[_arg3]);
}
};
_local2.ReleaseBombDrone = function (_arg3) {
if (this["\x12\r"] == false) {
this.SpawnBombDrone(_root[_arg3]);
}
};
_local2["1\x11"] = function (_arg3) {
var _local2 = 0;
while (_local2 < this["2\x03"].length) {
if (this["2\x03"][_local2].name == _arg3) {
this["\x0F\x06"].push(this["2\x03"][_local2].creator);
this["2\x03"].splice(_local2, 1);
break;
}
_local2++;
}
};
_local2["\x0F\x12"] = function (_arg5) {
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this["2\x03"][_local4].name == _arg5) {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].name == this["2\x03"][_local4].creator) {
_root[this.arrAllies[_local3].name].gun.gotoAndStop("stop");
break;
}
_local3++;
}
this["2\x03"].splice(_local4, 1);
break;
}
_local4++;
}
};
_local2["0"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
this.\r\f();
var _local6 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local7 = new Object({x:_local6.emitter._x, y:_local6.emitter._y});
_local6.localToGlobal(_local7);
var _local5 = new #\x11();
_local5._x = _local7.x;
_local5._y = _local7.y;
this.'\x0F("apocalypseEffect", _local5, false, "", "");
this.\x19\x04(30);
var _local4 = false;
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
_local4 = _root[this["^\x05"][_local3]].\x03\f();
if (_local4 == true) {
_local3--;
}
_local3++;
}
_local3 = 0;
while (_local3 < this["2\x03"].length) {
if (_root[this["2\x03"][_local3].name].\x03\f()) {
_local3--;
}
_local3++;
}
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["\x17\x11"] = function () {
if (this["\x12\r"] == false) {
var thisRef = this;
var _local4 = "avatarBullet_" + this[";\x04"];
var _local9 = new #\x11();
var _local6 = -1;
var _local3 = 0;
while (_local3 < this["2\x03"].length) {
if (this["2\x03"][_local3].creator == this.arrAllies[this["'\r"]].name) {
_local6 = _local3;
break;
}
_local3++;
}
if (_local6 != -1) {
var _local5 = _root[this["2\x03"][_local3].name];
var _local10 = new Object({x:_local5.gun_1._x, y:_local5.gun_1._y});
_local5.localToGlobal(_local10);
var _local8 = new #\x11();
_local8._x = _xmouse - _local10.x;
_local8._y = _ymouse - _local10.y;
var _local14 = Math.atan2(_local8._y, _local8._x);
var _local7 = (360 * _local14) / (Math.PI*2);
var _local11 = _local7;
if (_local5._xscale < 0) {
if (_local7 < 0) {
_local7 = -1 * (180 + _local7);
} else {
_local7 = 180 - _local7;
}
}
_local5.gun_1._rotation = _local7;
this.turretData.,(this.arrAllies[this["'\r"]].type, this.arrAllies[this["'\r"]].exp);
var _local16 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local15 = _local14;
var _local13 = this.turretData.\"\x0F();
_local9._x = Math.cos((Math.PI * _local11) / 180) * _local13;
_local9._y = Math.sin((Math.PI * _local11) / 180) * _local13;
var _local20;
var _local19;
var _local12;
_local12 = {x:_local5.gun_1.emitter._x, y:_local5.gun_1.emitter._y};
_local5.gun_1.localToGlobal(_local12);
_root.attachMovie("bulletMachine", _local4, this[";\x04"]);
_root[_local4]._x = _local12.x;
_root[_local4]._y = _local12.y;
_root[_local4].]\r(_local9._x, _local9._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local11;
this["%\x04"]++;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["\n\x11"] = function () {
if (this["\x12\r"] == false) {
var thisRef = this;
var _local4 = "avatarBullet_" + this[";\x04"];
var _local7 = new #\x11();
this.turretData.,(this.arrAllies[this["'\r"]].type, this.arrAllies[this["'\r"]].exp);
var _local5 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local10 = (Math.PI * _local5.barrel._rotation) / 180;
var _local9 = this.turretData.\"\x0F();
_local7._x = Math.cos((Math.PI * _local5.barrel._rotation) / 180) * _local9;
_local7._y = Math.sin((Math.PI * _local5.barrel._rotation) / 180) * _local9;
var _local12;
var _local11;
var _local13;
var _local8;
if ((((this.arrAllies[this["'\r"]].type == 2) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 12)) || (this.arrAllies[this["'\r"]].type == 18)) {
_local8 = {x:_local5.barrel.emitter._x, y:_local5.barrel.emitter._y};
_local5.barrel.localToGlobal(_local8);
} else if (this.arrAllies[this["'\r"]].type == 11) {
_local12 = {x:_local5.barrel.top.emitter._x, y:_local5.barrel.top.emitter._y};
_local5.barrel.top.localToGlobal(_local12);
_local11 = {x:_local5.barrel.bottom.emitter._x, y:_local5.barrel.bottom.emitter._y};
_local5.barrel.bottom.localToGlobal(_local11);
} else if (this.arrAllies[this["'\r"]].type == 28) {
_local12 = {x:_local5.barrel.emitter1._x, y:_local5.barrel.emitter1._y};
_local5.barrel.localToGlobal(_local12);
_local11 = {x:_local5.barrel.emitter3._x, y:_local5.barrel.emitter3._y};
_local5.barrel.localToGlobal(_local11);
_local13 = {x:_local5.barrel.emitter2._x, y:_local5.barrel.emitter2._y};
_local5.barrel.localToGlobal(_local13);
}
if (this.arrAllies[this["'\r"]].type == 12) {
_root.attachMovie("bulletPlasma", _local4, this[";\x04"]);
} else if (this.arrAllies[this["'\r"]].type == 18) {
_root.attachMovie("bulletRail", _local4, this[";\x04"]);
_global.SoundManager.[\x0F("machinegun");
} else if (this.arrAllies[this["'\r"]].type == 19) {
_root.attachMovie("bulletFlamethrower", _local4, this[";\x04"]);
_root[_local4]["6\x0F"] = 30;
} else {
_root.attachMovie("bulletMachine", _local4, this[";\x04"]);
_global.SoundManager.[\x0F("machinegun");
}
if (this.arrAllies[this["'\r"]].type == 11) {
_root[_local4]._x = _local12.x;
_root[_local4]._y = _local12.y;
} else if (this.arrAllies[this["'\r"]].type == 28) {
_root[_local4]._x = _local13.x;
_root[_local4]._y = _local13.y;
} else {
_root[_local4]._x = _local8.x;
_root[_local4]._y = _local8.y;
}
_root[_local4].]\r(_local7._x, _local7._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this["%\x04"]++;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
if (this.arrAllies[this["'\r"]].type == 11) {
this["%\x04"]++;
_local4 = "avatarBullet_" + this[";\x04"];
_root.attachMovie("bulletMachine", _local4, this[";\x04"]);
_root[_local4]._x = _local11.x;
_root[_local4]._y = _local11.y;
_root[_local4].]\r(_local7._x, _local7._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
} else if (this.arrAllies[this["'\r"]].type == 12) {
var _local6 = 0;
while (_local6 < this.arrAllies.length) {
if (_local6 != this["'\r"]) {
if (this.arrAllies[_local6].type == 12) {
_local5 = _root[this.arrAllies[_local6].name].gun;
_local8 = {x:_local5.barrel.emitter._x, y:_local5.barrel.emitter._y};
_local5.barrel.localToGlobal(_local8);
_local4 = "avatarBullet_" + this[";\x04"];
_root.attachMovie("bulletPlasma", _local4, this[";\x04"]);
_root[_local4]._x = _local8.x;
_root[_local4]._y = _local8.y;
_local10 = (Math.PI * _local5.barrel._rotation) / 180;
_local7._x = Math.cos((Math.PI * _local5.barrel._rotation) / 180) * _local9;
_local7._y = Math.sin((Math.PI * _local5.barrel._rotation) / 180) * _local9;
_root[_local4].]\r(_local7._x, _local7._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[_local6].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
}
}
_local6++;
}
} else if (this.arrAllies[this["'\r"]].type == 18) {
_local8 = {x:_local5.barrel.shells._x, y:_local5.barrel.shells._y};
_local5.barrel.localToGlobal(_local8);
this.4\x07("casing", _local8.x, _local8.y);
} else if (this.arrAllies[this["'\r"]].type == 28) {
this["%\x04"]++;
_local4 = "avatarBullet_" + this[";\x04"];
_local10 = (Math.PI * (_local5.barrel._rotation - 3.5)) / 180;
_local7._x = Math.cos(_local10) * _local9;
_local7._y = Math.sin(_local10) * _local9;
_root.attachMovie("bulletMachine", _local4, this[";\x04"]);
_root[_local4]._x = _local12.x;
_root[_local4]._y = _local12.y;
_root[_local4].]\r(_local7._x, _local7._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
this["%\x04"]++;
_local10 = (Math.PI * (_local5.barrel._rotation + 3.5)) / 180;
_local7._x = Math.cos(_local10) * _local9;
_local7._y = Math.sin(_local10) * _local9;
_local4 = "avatarBullet_" + this[";\x04"];
_root.attachMovie("bulletMachine", _local4, this[";\x04"]);
_root[_local4]._x = _local11.x;
_root[_local4]._y = _local11.y;
_root[_local4].]\r(_local7._x, _local7._y);
_root[_local4]._enemy = false;
_root[_local4]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local4]._rotation = _local5.barrel._rotation;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local4);
_root[_local4].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
}
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
};
_local2["2\x06"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
_global.SoundManager.PlaySound("SniperCannonFire");
var _local6;
var _local5;
var _local11 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local10 = new #\x11();
var _local14 = (Math.PI * _local11.barrel._rotation) / 180;
var _local13 = 3;
_local10._x = Math.cos((Math.PI * _local11.barrel._rotation) / 180) * _local13;
_local10._y = Math.sin((Math.PI * _local11.barrel._rotation) / 180) * _local13;
var _local12 = {x:_local11.barrel.emitter._x, y:_local11.barrel.emitter._y};
_local11.barrel.localToGlobal(_local12);
_local6 = _local12.x;
_local5 = _local12.y;
var _local8 = false;
var _local9 = 0;
while (_local9 < 500) {
_local6 = _local6 + _local10._x;
_local5 = _local5 + _local10._y;
if ((_local6 > Stage.width) || (_local6 < 0)) {
_local8 = false;
break;
}
if ((_local5 > Stage.height) || (_local5 < 0)) {
_local8 = false;
break;
}
var _local4 = 0;
while (_local4 < this["^\x05"].length) {
if (_root[this["^\x05"][_local4]].hull.hitTest(_local6, _local5, true)) {
var _local7 = this.arrAllies[this["'\r"]].damage;
_root[this["^\x05"][_local4]].7\x11(_local7, _local6, _local5);
this.#\x06(_local6, _local5);
_local8 = true;
break;
}
_local4++;
}
if (_local8 == true) {
break;
}
_local9++;
}
if (_local8 == false) {
this.\x01\x07();
}
_local11.barrel.gotoAndPlay("shoot");
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["\x0F\x0E"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer == this.arrAllies[this["'\r"]].timerReady) {
var _local25 = false;
var _local16 = 0;
while (_local16 < this["^\x05"].length) {
if (_root[this["^\x05"][_local16]].hull.hitTest(_xmouse, _ymouse, false)) {
_global.SoundManager.PlaySound("LightningGun");
_local25 = true;
this[">\x07"] = 0;
var _local4 = new Array();
var _local8 = 0;
while (_local8 < this["^\x05"].length) {
if (_local8 != _local16) {
_local4.push({name:this["^\x05"][_local8], hit:false});
}
_local8++;
}
var _local18 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local19 = {x:_local18.barrel.emitter._x, y:_local18.barrel.emitter._y};
_local18.barrel.localToGlobal(_local19);
this.\x19\x03(_local19.x, _local19.y, _xmouse, _ymouse);
var _local12 = this.arrAllies[this["'\r"]].damage;
this.4\x07("spark", _xmouse, _ymouse);
_root[this["^\x05"][_local16]].7\x11(_local12, _xmouse, _ymouse);
this.turretData.,(7, this.arrAllies[this["'\r"]].exp);
var _local22 = this.arrAllies[this["'\r"]].numBullets;
var _local17 = this.arrAllies[this["'\r"]].data;
_local12 = Math.round(_local12 * _local17);
var _local14;
var _local6;
var _local7 = _xmouse;
var _local13 = _ymouse;
var _local10 = 0;
var _local9 = 0;
var _local11 = 0;
var _local15 = 0;
while (_local15 < _local22) {
_local14 = 99999999 /* 0x5F5E0FF */;
_local6 = -1;
var _local5 = 0;
while (_local5 < _local4.length) {
if (_local4[_local5].hit == false) {
_local10 = _root[_local4[_local5].name]._x - _local7;
_local9 = _root[_local4[_local5].name]._y - _local7;
_local11 = Math.sqrt((_local10 * _local10) + (_local9 * _local9));
if (_local11 < _local14) {
_local14 = _local11;
_local6 = _local5;
}
}
_local5++;
}
if (_local6 == -1) {
break;
}
this.\x19\x03(_local7, _local13, _root[_local4[_local6].name]._x, _root[_local4[_local6].name]._y);
_local7 = _root[_local4[_local6].name]._x;
_local13 = _root[_local4[_local6].name]._y;
_local4[_local6].hit = true;
this.4\x07("spark", _local7, _local13);
_root[_local4[_local6].name].7\x11(_local12, _local7, _local13);
_local12 = Math.round(_local12 * _local17);
_local15++;
}
this.\r\f();
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
break;
}
_local16++;
}
if (_local25 == false) {
this[">\x07"]++;
if (this[">\x07"] >= 2) {
this[">\x07"] = 0;
this.,\r();
}
}
}
}
};
_local2["%\x05"] = function () {
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
if (this["4\x0B"] == 0) {
this["4\x0B"] = this.arrAllies[this["'\r"]].data;
_root.screenEffects_mc._visible = true;
_root.screenEffects_mc.gotoAndStop(2);
_root.screenEffects_mc.inside_mc.gotoAndPlay("start");
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
_root[this["^\x05"][_local3]].(\x0F(0);
_local3++;
}
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
}
}
};
_local2["=\x07"] = function () {
if (this["4\x0B"] > 0) {
this["4\x0B"]--;
if (this["4\x0B"] == 0) {
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
_root[this["^\x05"][_local3]].(\x0F(1);
_local3++;
}
_root.screenEffects_mc.inside_mc.gotoAndPlay("stop");
}
}
};
_local2["\x15\f"] = function () {
if (this["\x12\r"] == false) {
if (this.arrAllies[this["'\r"]].timer >= this.arrAllies[this["'\r"]].timerReady) {
var _local4 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local5 = new Object({x:_local4.emitter._x, y:_local4.emitter._y});
_local4.localToGlobal(_local5);
var thisRef = this;
var _local3 = "avatarBullet_" + this[";\x04"];
_root.attachMovie("remoteMissile", _local3, this[";\x04"]);
_root[_local3]._x = _local5.x;
_root[_local3]._y = _local5.y;
_root[_local3]._enemy = false;
_root[_local3]._damage = this.arrAllies[this["'\r"]].damage;
_root[_local3]._rotation = -45;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
_local4.gotoAndStop("fired");
}
}
};
_local2["1\x0E"] = function () {
_root[this.arrAllies[this["'\r"]].name].gun.gotoAndPlay("shoot");
this.arrAllies[this["'\r"]].timer = 0;
_root[this.arrAllies[this["'\r"]].loadMeter].gotoAndStop(1);
this.arrAllies[this["'\r"]].charging = false;
this["]\x05"] = true;
this["\x02\x0E"] = this["'\r"];
};
_local2["\x14\x06"] = function () {
this["2\x07"] = true;
this.turretData.,(10, this.arrAllies[this["\x02\x0E"]].exp);
this["\x01\x04"] = this.turretData.\"\x0F();
this["[\r"] = this.arrAllies[this["\x02\x0E"]].numBullets - this.arrAllies[this["\x02\x0E"]].range;
this["\x05\x0E"] = this.arrAllies[this["\x02\x0E"]].numBullets + this.arrAllies[this["\x02\x0E"]].range;
this["6\x02"] = 10;
this["-\x0E"] = this.arrAllies[this["\x02\x0E"]].damage;
this["-\x02"] = this.arrAllies[this["\x02\x0E"]].data;
this.\x19\x04(this.arrAllies[this["\x02\x0E"]].data);
};
_local2["+\f"] = function () {
if (this["2\x07"] == true) {
if (this["-\x02"] > 0) {
if (this["6\x02"] <= 0) {
this.;\x07();
this["6\x02"] = this.RandNum(this["[\r"], this["\x05\x0E"]);
} else {
this["6\x02"]--;
}
this["-\x02"]--;
} else {
this["2\x07"] = false;
this["]\x05"] = false;
_root[this.arrAllies[this["\x02\x0E"]].name].gun.gotoAndPlay("close");
}
}
};
_local2[";\x07"] = function () {
var _local4 = 50;
var thisRef = this;
var _local3 = "avatarBullet_" + this[";\x04"];
var _local5 = new #\x11();
var _local7 = (Math.PI * _local4) / 180;
var _local6 = this["\x01\x04"];
_local5._x = Math.cos((Math.PI * _local4) / 180) * _local6;
_local5._y = Math.sin((Math.PI * _local4) / 180) * _local6;
_root.attachMovie("meteor", _local3, this[";\x04"]);
_root[_local3]._x = this.RandNum(0, 600);
_root[_local3]._y = -25;
_root[_local3]["\x1D\x04"] = true;
_root[_local3].]\r(_local5._x, _local5._y);
_root[_local3]._xscale = this.RandNum(30, 100);
_root[_local3]._yscale = _root[_local3]._xscale;
_root[_local3]._enemy = false;
_root[_local3]._damage = Math.round(this["-\x0E"] * (_root[_local3]._xscale / 100));
_root[_local3]._rotation = _local4;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["`\x11"] = function () {
var _local14 = 0;
var _local10 = 0;
var _local9 = 0;
var _local2 = 0;
while (_local2 < this.arrAllies.length) {
this.turretData.,(this.arrAllies[_local2].type, this.arrAllies[_local2].exp);
this.arrAllies[_local2].data = this.turretData.;();
this.arrAllies[_local2].numBullets = this.turretData.\x11\x07();
this.arrAllies[_local2].range = this.turretData.1();
var _local3 = 0;
while (_local3 < this.arrAllies[_local2].arrUpgrades.length) {
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 4) {
this.arrAllies[_local2].data = this.arrAllies[_local2].data + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 4) {
this.arrAllies[_local2].data = this.arrAllies[_local2].data + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 5) {
this.arrAllies[_local2].numBullets = this.arrAllies[_local2].numBullets + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 5) {
this.arrAllies[_local2].numBullets = this.arrAllies[_local2].numBullets + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 6) {
this.arrAllies[_local2].range = this.arrAllies[_local2].range + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 6) {
this.arrAllies[_local2].range = this.arrAllies[_local2].range + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
_local3++;
}
_local2++;
}
_local2 = 0;
while (_local2 < this.arrAllies.length) {
if (((this.arrAllies[_local2].type == 4) || (this.arrAllies[_local2].type == 8)) || (this.arrAllies[_local2].type == 9)) {
if (this.arrAllies[_local2].blnDestroyed == false) {
if (this.arrAllies[_local2].type == 4) {
_local14 = _local14 + this.arrAllies[_local2].data;
} else if (this.arrAllies[_local2].type == 8) {
_local10 = _local10 + this.arrAllies[_local2].data;
} else if (this.arrAllies[_local2].type == 9) {
_local9 = _local9 + this.arrAllies[_local2].data;
}
}
}
_local2++;
}
_local9 = 1 - _local9;
if (_local9 < 0.25) {
_local9 = 0.25;
}
_local2 = 0;
while (_local2 < this.arrAllies.length) {
if (this.arrAllies[_local2].type != 4) {
if (this.arrAllies[_local2].blnDestroyed == false) {
this.turretData.,(this.arrAllies[_local2].type, this.arrAllies[_local2].exp);
var _local4 = 0;
var _local7 = 0;
var _local5 = 0;
var _local3 = 0;
while (_local3 < this.arrAllies[_local2].arrUpgrades.length) {
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 1) {
_local4 = _local4 + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 1) {
_local4 = _local4 + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 2) {
_local7 = _local7 + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 2) {
_local7 = _local7 + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_local2].arrUpgrades[_local3].type == 3) {
_local5 = _local5 + this.arrAllies[_local2].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local2].arrUpgrades[_local3].secondType == 3) {
_local5 = _local5 + this.arrAllies[_local2].arrUpgrades[_local3].secondValue;
}
_local3++;
}
_local4 = _local4 + this.turretData.2\x04();
_local7 = _local7 + this.turretData.\x10\x10();
_local5 = _local5 + this.turretData.#\x02();
var _local13 = _local7 + Math.round(_local7 * _local14);
this.arrAllies[_local2].totalLife = _local13;
var _local12 = _local4 + Math.round(_local4 * _local10);
this.arrAllies[_local2].damage = _local12;
var _local11 = Math.round(_local5 * _local9);
var _local8 = 0;
if (this.arrAllies[_local2].type == 24) {
var _local6 = 0;
while (_local6 < this.arrAllies.length) {
if (this.arrAllies[_local6].type == 33) {
_local8 = _local8 + 40;
}
_local6++;
}
}
this.arrAllies[_local2].timerReady = _local11 + _local8;
}
}
this.]\x02(_local2);
_local2++;
}
};
_local2.EnemyFire = function (_arg10, _arg8, _arg6, _arg9, _arg11, bulletType) {
var thisRef = this;
var _local3 = "enemyBullet_" + this[";\x04"];
var _local4 = new #\x11();
var _local7 = (Math.PI * _arg8) / 180;
var _local5 = _arg6;
_local4._x = Math.cos((Math.PI * _arg8) / 180) * _arg6;
_local4._y = Math.sin((Math.PI * _arg8) / 180) * _arg6;
_root.attachMovie("bullet2", _local3, this[";\x04"]);
_root[_local3]._x = _arg10._x;
_root[_local3]._y = _arg10._y;
_root[_local3]._xscale = _arg9;
_root[_local3]._yscale = _arg9;
_root[_local3].\x18\x11(this["\x13\x10"], _local5);
_root[_local3].\x02\x10(_local7);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]._damage = _arg11;
_root[_local3]._enemy = true;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2.EnemyFireBulletEnemy = function (_arg9, _arg5, _arg6, size, _arg10, _arg11) {
var thisRef = this;
var _local4 = new #\x11();
var _local3 = "enemy_" + this["\x17\x0F"];
_root.attachMovie(_arg11, _local3, this["\x17\x0F"]);
var _local8 = (Math.PI * _arg5) / 180;
var _local7 = _arg6;
_local4._x = Math.cos((Math.PI * _arg5) / 180) * _arg6;
_local4._y = Math.sin((Math.PI * _arg5) / 180) * _arg6;
_root[_local3]._x = _arg9._x;
_root[_local3]._y = _arg9._y;
_root[_local3]._bullet = true;
_root[_local3]._rotation = _arg5;
_root[_local3]._damage = _arg10;
_root[_local3]._enemy = true;
_root[_local3].]\r(_local4._x, _local4._y);
this["^\x05"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.RemoveEnemy(_arg1);
};
this["\x17\x0F"]++;
if (this["\x17\x0F"] > 7000) {
this["\x17\x0F"] = 5000;
}
};
_local2["&\x0F"] = function (_arg4, _arg6, _arg5, _arg8, _arg7) {
var thisRef = this;
var _local3 = "deadDrone" + this[";\x04"];
_root.attachMovie("droneDestroyed", _local3, this[";\x04"]);
_root[_local3]._x = _arg6;
_root[_local3]._y = _arg5;
_root[_local3]._xscale = _arg4;
_root[_local3].]\r(_arg8, _arg7);
_root[_local3].^\x0F(this["\x13\x10"]);
_root[_local3]._damage = 35;
_root[_local3]._enemy = false;
this[";\x04"]++;
if (this[";\x04"] >= 15000) {
this[";\x04"] = 10000;
}
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2.DropBomb = function (_arg10, _arg7, _arg9, _arg11) {
var thisRef = this;
var _local3 = "enemyBullet_" + this[";\x04"];
var _local5 = new #\x11();
var _local4 = 180;
var _local8 = (Math.PI * _local4) / 180;
var _local6 = _arg7;
_local5._x = Math.cos((Math.PI * _local4) / 180) * _arg7;
_local5._y = Math.sin((Math.PI * _local4) / 180) * _arg7;
_root.attachMovie("bomb", _local3, this[";\x04"]);
_root[_local3]._x = _arg10._x;
_root[_local3]._y = _arg10._y;
_root[_local3]._xscale = _arg9;
_root[_local3]._yscale = _arg9;
_root[_local3].\x18\x11(this["\x13\x10"], _local6);
_root[_local3].\x02\x10(_local8);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]._damage = _arg11;
_root[_local3]._enemy = true;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2.EnemyFireMachineGun = function (_arg7, _arg5, _arg6, size, _arg8, bulletType) {
var thisRef = this;
var _local3 = "enemyBullet_" + this[";\x04"];
var _local4 = new #\x11();
_local4._x = Math.cos((Math.PI * _arg5) / 180) * _arg6;
_local4._y = Math.sin((Math.PI * _arg5) / 180) * _arg6;
_root.attachMovie("bulletMachine", _local3, this[";\x04"]);
_root[_local3]._x = _arg7._x;
_root[_local3]._y = _arg7._y;
_root[_local3].]\r(_local4._x, _local4._y);
_root[_local3]._damage = _arg8;
_root[_local3]._enemy = true;
_root[_local3]._rotation = _arg5;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["\x10\x05"] = function (_arg7, _arg5, _arg6, size, _arg8, bulletType) {
var thisRef = this;
var _local3 = "friendlyBullet_" + this[";\x04"];
var _local4 = new #\x11();
_local4._x = Math.cos((Math.PI * _arg5) / 180) * _arg6;
_local4._y = Math.sin((Math.PI * _arg5) / 180) * _arg6;
_root.attachMovie("bulletMachine", _local3, this[";\x04"]);
_root[_local3]._x = _arg7._x;
_root[_local3]._y = _arg7._y;
_root[_local3].]\r(_local4._x, _local4._y);
_root[_local3]["9\x05"] = true;
_root[_local3]._damage = _arg8;
_root[_local3]._enemy = false;
_root[_local3]._rotation = _arg5;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2.FriendlyFireBomb = function (_arg7, _arg5, _arg6, size, _arg8) {
var thisRef = this;
var _local3 = "friendlyBullet_" + this[";\x04"];
var _local4 = new #\x11();
_local4._x = Math.cos((Math.PI * _arg5) / 180) * _arg6;
_local4._y = Math.sin((Math.PI * _arg5) / 180) * _arg6;
_root.attachMovie("bulletMiniBomb", _local3, this[";\x04"]);
_root[_local3]._x = _arg7._x;
_root[_local3]._y = _arg7._y;
_root[_local3].]\r(_local4._x, _local4._y);
_root[_local3].\x18\x11(this["\x13\x10"], _arg6);
_root[_local3].\x02\x10((Math.PI * _arg5) / 180);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]["9\x05"] = true;
_root[_local3]._damage = _arg8;
_root[_local3]._enemy = false;
_root[_local3]._rotation = _arg5;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["`\x10"] = function (_arg3) {
var _local2 = 0;
while (_local2 < this["\x15\x0F"].length) {
if (_arg3 == this["\x15\x0F"][_local2]) {
this["\x15\x0F"].splice(_local2, 1);
break;
}
_local2++;
}
};
_local2["9\x0E"] = function () {
if (((((this.arrAllies[this["'\r"]].type != 7) && (this.arrAllies[this["'\r"]].type != 20)) && (this.arrAllies[this["'\r"]].type != 31)) && (this.arrAllies[this["'\r"]].type != 21)) && (this.arrAllies[this["'\r"]].type != 24)) {
var _local5 = _root[this.arrAllies[this["'\r"]].name].gun;
var _local10 = new Object({x:_local5.barrel._x, y:_local5.barrel._y});
_root[this.arrAllies[this["'\r"]].name].gun.localToGlobal(_local10);
var _local9 = new #\x11();
_local9._x = _xmouse - _local10.x;
_local9._y = _ymouse - _local10.y;
var _local11 = Math.atan2(_local9._y, _local9._x);
var _local7 = (360 * _local11) / (Math.PI*2);
if (((this.arrAllies[this["'\r"]].type != 11) && (this.arrAllies[this["'\r"]].type != 12)) && (this.arrAllies[this["'\r"]].type != 29)) {
if (_local7 > 15) {
_local7 = 15;
} else if (_local7 < -130) {
_local7 = -130;
}
} else if (this.arrAllies[this["'\r"]].type == 12) {
if (_local7 > 35) {
_local7 = 35;
} else if (_local7 < -130) {
_local7 = -130;
}
}
_local5.barrel._rotation = _local7;
if (this.arrAllies[this["'\r"]].type == 12) {
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (_local3 != this["'\r"]) {
if (this.arrAllies[_local3].type == 12) {
_local5 = _root[this.arrAllies[_local3].name].gun;
_local10 = new Object({x:_local5.barrel._x, y:_local5.barrel._y});
_root[this.arrAllies[_local3].name].gun.localToGlobal(_local10);
_local9._x = _xmouse - _local10.x;
_local9._y = _ymouse - _local10.y;
_local11 = Math.atan2(_local9._y, _local9._x);
_local7 = (360 * _local11) / (Math.PI*2);
if (_local7 > 35) {
_local7 = 35;
} else if (_local7 < -130) {
_local7 = -130;
}
_local5.barrel._rotation = _local7;
}
}
_local3++;
}
}
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local6 = -1;
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this["2\x03"][_local4].creator == this.arrAllies[this["'\r"]].name) {
_local6 = _local4;
break;
}
_local4++;
}
if (_local6 != -1) {
var _local8 = _root[this["2\x03"][_local4].name];
var _local10 = new Object({x:_local8.gun_1._x, y:_local8.gun_1._y});
_local8.localToGlobal(_local10);
var _local9 = new #\x11();
_local9._x = _xmouse - _local10.x;
_local9._y = _ymouse - _local10.y;
var _local11 = Math.atan2(_local9._y, _local9._x);
var _local7 = (360 * _local11) / (Math.PI*2);
var _local12 = _local7;
if (_local8._xscale < 0) {
if (_local7 < 0) {
_local7 = -1 * (180 + _local7);
} else {
_local7 = 180 - _local7;
}
}
_local8.gun_1._rotation = _local7;
}
}
};
_local2[";\x11"] = function (_arg12, _arg11, _arg5, _arg10) {
if ((_arg5 != 0) && (_arg5 != undefined)) {
var _local4 = 0;
var _local7 = 0;
var _local6 = 0;
var _local9 = 0;
var _local8 = 0;
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
_local7 = _root[this["^\x05"][_local3]]._x - _arg12;
_local6 = _root[this["^\x05"][_local3]]._y - _arg11;
_local4 = Math.sqrt((_local7 * _local7) + (_local6 + _local6));
if (_root[this["^\x05"][_local3]]._width > _root[this["^\x05"][_local3]]._height) {
_local4 = _local4 - ((_root[this["^\x05"][_local3]]._width / 2) * 0.75);
} else {
_local4 = _local4 - ((_root[this["^\x05"][_local3]]._height / 2) * 0.75);
}
if (_local4 <= _arg5) {
_local9 = (_arg5 - _local4) / _arg5;
_local8 = Math.round(_arg10 * _local9);
_root[this["^\x05"][_local3]].7\x11(_local8, _root[this["^\x05"][_local3]]._x, _root[this["^\x05"][_local3]]._y);
}
_local3++;
}
}
};
_local2["<\x02"] = function (_arg5, _arg7, _arg6) {
this.arrEnemyLasers.push({enemyName:_arg5, weaponName:_arg7, damage:_arg6});
};
_local2["\x0E\x04"] = function () {
var &\x04 = false;
var 7\x04 = false;
if (_global.achievementSet8.Get() != -1) {
Set("7\x04", true);
}
var i = 0;
while (i < this["\x15\x0F"].length) {
if (_root[this["\x15\x0F"][i]]._enemy == false) {
var j = 0;
while (j < this["^\x05"].length) {
Set("&\x04", _root[this["^\x05"][j]].\x0B\x04(this["\x15\x0F"][i]));
if (&\x04 == true) {
i--;
break;
}
j++;
}
} else {
if (_root[this["\x15\x0F"][i]]._mine == false) {
var \x03\n = false;
var j = 0;
while (j < this.arrAllies.length) {
if (this.arrAllies[j].blnDestroyed == false) {
if ((Math.abs(_root[this["\x15\x0F"][i]]._x - _root[this.arrAllies[j].name]._x) < 50) && (Math.abs(_root[this["\x15\x0F"][i]]._y - _root[this.arrAllies[j].name]._y) < 50)) {
Set("&\x04", _root[this.arrAllies[j].name].hitTest(_root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y, true));
if (&\x04 == true) {
var 3\x10 = 0;
var n = 0;
while (n < this["#\x03"].length) {
if (this["#\x03"][n].to == this.arrAllies[j].name) {
this.\x05\r(_root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y);
Set("3\x10", 3\x10 + this["#\x03"][n].power);
}
n++;
}
Set("3\x10", 1 - 3\x10);
var !\n = Math.round(_root[this["\x15\x0F"][i]]._damage * 3\x10);
if ((3\x10 < 1) && (_root[this["\x15\x0F"][i]]._damage <= 1)) {
Set("!\n", 0);
}
if ((this.arrAllies[j].type == 25) && (!\n <= 2)) {
Set("!\n", 0);
}
if (7\x04 == true) {
Set("!\n", 0);
}
this.arrAllies[j].damageTaken = this.arrAllies[j].damageTaken + !\n;
this.]\x02(j);
_root[this["\x15\x0F"][i]].\x14\x03(_root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y, "HitTurret1");
_root[this["\x15\x0F"][i]].removeMovieClip();
Set("\x03\n", true);
} else {
Set("&\x04", _root[this.arrAllies[j].name].hitTest(_root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY, true));
if (&\x04 == true) {
var 3\x10 = 0;
var n = 0;
while (n < this["#\x03"].length) {
if (this["#\x03"][n].to == this.arrAllies[j].name) {
this.\x05\r(_root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY);
Set("3\x10", 3\x10 + this["#\x03"][n].power);
}
n++;
}
Set("3\x10", 1 - 3\x10);
var !\n = Math.round(_root[this["\x15\x0F"][i]]._damage * 3\x10);
if ((3\x10 < 1) && (_root[this["\x15\x0F"][i]]._damage <= 1)) {
Set("!\n", 0);
}
if ((this.arrAllies[j].type == 25) && (!\n <= 2)) {
Set("!\n", 0);
}
if (7\x04 == true) {
Set("!\n", 0);
}
this.arrAllies[j].damageTaken = this.arrAllies[j].damageTaken + !\n;
this.]\x02(j);
_root[this["\x15\x0F"][i]].\x14\x03(_root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY, "HitTurret2");
_root[this["\x15\x0F"][i]].removeMovieClip();
Set("\x03\n", true);
}
}
}
}
j++;
}
}
if (\x03\n == false) {
var j = 0;
while (j < this["2\x03"].length) {
Set("&\x04", _root[this["2\x03"][j].name].hitTest(_root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y, true));
if (&\x04 == true) {
if (7\x04 == false) {
_root[this["2\x03"][j].name].7\x11(_root[this["\x15\x0F"][i]]._damage, _root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y);
}
_root[this["\x15\x0F"][i]].\x14\x03(_root[this["\x15\x0F"][i]]._x, _root[this["\x15\x0F"][i]]._y, "HitFriendly");
_root[this["\x15\x0F"][i]].removeMovieClip();
Set("\x03\n", true);
} else {
Set("&\x04", _root[this["2\x03"][j].name].hitTest(_root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY, true));
if (&\x04 == true) {
if (7\x04 == false) {
_root[this["2\x03"][j].name].7\x11(_root[this["\x15\x0F"][i]]._damage, _root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY);
}
_root[this["\x15\x0F"][i]].\x14\x03(_root[this["\x15\x0F"][i]]._midX, _root[this["\x15\x0F"][i]]._midY, "HitFriendly");
_root[this["\x15\x0F"][i]].removeMovieClip();
Set("\x03\n", true);
}
}
j++;
}
}
if (\x03\n == true) {
this["\x15\x0F"].splice(i, 1);
i--;
}
}
i++;
}
if (this.arrEnemyLasers.length > 0) {
var i = 0;
while (i < this.arrEnemyLasers.length) {
var >\n = eval (((("_root." + this.arrEnemyLasers[i].enemyName) + ".") + this.arrEnemyLasers[i].weaponName) + ".inside_mc.beam_mc");
var j = 0;
while (j < this.arrAllies.length) {
if (this.arrAllies[j].blnDestroyed == false) {
if (>\n.hitTest(_root[this.arrAllies[j].name]._x, _root[this.arrAllies[j].name]._y, true) == true) {
var 3\x10 = 0;
var n = 0;
while (n < this["#\x03"].length) {
if (this["#\x03"][n].to == this.arrAllies[j].name) {
Set("3\x10", 3\x10 + this["#\x03"][n].power);
}
n++;
}
Set("3\x10", 1 - 3\x10);
var !\n = Math.round(this.arrEnemyLasers[i].damage * 3\x10);
if ((3\x10 < 1) && (this.arrEnemyLasers[i].damage <= 1)) {
Set("!\n", 0);
}
if ((this.arrAllies[j].type == 25) && (!\n <= 2)) {
Set("!\n", 0);
}
var )\x10 = (_root[this.arrAllies[j].name]._x + this.RandNum(-10, 10));
var \x17\x06 = (_root[this.arrAllies[j].name]._y + this.RandNum(-10, 10));
var \x0E\f = this.RandNum(0, 100);
if (\x0E\f < 30) {
this.\x06\x05()\x10, \x17\x06, 0);
} else {
this.0\r()\x10, \x17\x06, 0);
}
if (7\x04 == true) {
Set("!\n", 0);
}
this.arrAllies[j].damageTaken = this.arrAllies[j].damageTaken + !\n;
this.]\x02(j);
}
}
j++;
}
var j = 0;
while (j < this["2\x03"].length) {
if (>\n.hitTest(_root[this["2\x03"][j].name]._x, _root[this["2\x03"][j].name]._y, true) == true) {
this.0\r(_root[this["2\x03"][j].name]._x, _root[this["2\x03"][j].name]._y, 0);
_root[this["2\x03"][j].name].7\x11(this.arrEnemyLasers[i].damage, _root[this["2\x03"][j].name]._x, _root[this["2\x03"][j].name]._y);
}
j++;
}
i++;
}
delete this.arrEnemyLasers;
this.arrEnemyLasers = new Array();
}
var i = 0;
while (i < this["^\x05"].length) {
if ((_root[this["^\x05"][i]]._bullet == true) && (_root[this["^\x05"][i]]._enemy == true)) {
var \x03\n = false;
var j = 0;
while (j < this.arrAllies.length) {
if (this.arrAllies[j].blnDestroyed == false) {
Set("&\x04", _root[this.arrAllies[j].name].hitTest(_root[this["^\x05"][i]]._x, _root[this["^\x05"][i]]._y, true));
if (&\x04 == true) {
var 3\x10 = 0;
var n = 0;
while (n < this["#\x03"].length) {
if (this["#\x03"][n].to == this.arrAllies[j].name) {
this.\x05\r(_root[this["^\x05"][i]]._x, _root[this["^\x05"][i]]._y);
Set("3\x10", 3\x10 + this["#\x03"][n].power);
}
n++;
}
Set("3\x10", 1 - 3\x10);
var !\n = Math.round(_root[this["^\x05"][i]]._damage * 3\x10);
if ((3\x10 > 0) && (_root[this["^\x05"][i]]._damage <= 1)) {
Set("!\n", 0);
}
if (7\x04 == true) {
Set("!\n", 0);
}
this.arrAllies[j].damageTaken = this.arrAllies[j].damageTaken + !\n;
this.]\x02(j);
_root[this["^\x05"][i]].\x14\x03(_root[this["^\x05"][i]]._x, _root[this["^\x05"][i]]._y, "EnemyHit");
_root[this["^\x05"][i]].%\x10();
_root[this["^\x05"][i]].removeMovieClip();
this["^\x05"].splice(i, 1);
i--;
Set("\x03\n", true);
if (this["^\x05"].length == 0) {
if (this.myLevelManager.6\x0B() < 1) {
this.7();
}
}
}
}
j++;
}
}
i++;
}
var i = 0;
while (i < this["\x19\x0B"].length) {
if (this["\x19\x0B"][i].intState == 5) {
var \x1D\n = this["^\x05"].slice();
var >\n = _root[this["\x19\x0B"][i].strBeamName].hitDetect_mc;
var j = 0;
while (j < \x1D\n.length) {
if (>\n.hitTest(_root[\x1D\n[j]]._x, _root[\x1D\n[j]]._y, true) == true) {
if (_root[\x1D\n[j]].\r\x03(this["\x19\x0B"][i].strBeamName) == true) {
if (this.RandNum(0, 100) < 4) {
var )\x10 = (_root[\x1D\n[j]]._x + this.RandNum(-10, 10));
var \x17\x06 = (_root[\x1D\n[j]]._y + this.RandNum(-10, 10));
var \x0E\f = this.RandNum(0, 100);
if (\x0E\f < 60) {
_root.game.\x06\x05()\x10, \x17\x06, 0);
} else {
_root.game.0\r()\x10, \x17\x06, 0);
}
}
} else {
_root[\x1D\n[j]].\x19\x07(this["\x19\x0B"][i].strBeamName);
var )\x10 = (_root[\x1D\n[j]]._x + this.RandNum(-10, 10));
var \x17\x06 = (_root[\x1D\n[j]]._y + this.RandNum(-10, 10));
var \x0E\f = this.RandNum(0, 100);
if (\x0E\f < 60) {
_root.game.\x06\x05()\x10, \x17\x06, 0);
} else {
_root.game.0\r()\x10, \x17\x06, 0);
}
_root[\x1D\n[j]].7\x11(this["\x19\x0B"][i].intDamage, _root[\x1D\n[j]]._x, _root[\x1D\n[j]]._y);
}
}
j++;
}
}
i++;
}
};
_local2["#\x06"] = function (_arg4, _arg5) {
var _local3 = new #\x11();
_local3._x = _arg4;
_local3._y = _arg5;
this.'\x0F("explosion_2", _local3, false, "", "");
_global.SoundManager.PlaySound("ShellHit");
};
_local2["\n\x07"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("gunsmoke", _local2, false, "", "");
};
_local2["\x14\x02"] = function (_arg3, _arg4, _arg6, _arg5) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
return(this.'\x0F("shield", _local2, true, _arg6, _arg5));
};
_local2["\x05\r"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("shieldHit", _local2, false, "", "");
};
_local2[" \x0B"] = function (_arg4, _arg5) {
var _local3 = new #\x11();
_local3._x = _arg4;
_local3._y = _arg5;
_root[this.'\x0F("machineGunHit", _local3, false, "", "")]._rotation = this.RandNum(0, 360);
};
_local2["-"] = function (_arg4, _arg5) {
var _local3 = new #\x11();
_local3._x = _arg4;
_local3._y = _arg5;
_root[this.'\x0F("plasmaGunHit", _local3, false, "", "")]._rotation = this.RandNum(0, 360);
};
_local2["\n\f"] = function (_arg4, _arg5) {
var _local3 = new #\x11();
_local3._x = _arg4;
_local3._y = _arg5;
_root[this.'\x0F("acidGunHit", _local3, false, "", "")]._rotation = this.RandNum(0, 360);
};
_local2["2\x0F"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("jets", _local2, false, "", "");
};
_local2["3\x0B"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("smoketrail", _local2, false, "", "");
};
_local2["]\x06"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("selectGun", _local2, false, "", "");
};
_local2["?\x10"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("starBurst", _local2, false, "", "");
};
_local2["&"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("teleport", _local2, false, "", "");
};
_local2["\x02\x04"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("teleportAppear", _local2, false, "", "");
};
_local2["%\x11"] = function (_arg3, _arg4) {
var _local2 = new #\x11();
_local2._x = _arg3;
_local2._y = _arg4;
this.'\x0F("sellAnimation", _local2, false, "", "");
};
_local2[",\r"] = function () {
var _local2 = new #\x11();
_local2._x = 187;
_local2._y = 11;
this.'\x0F("alertLightning", _local2, false, "", "");
};
_local2["\f\x11"] = function () {
if (_global.var1.Get() != -1) {
var _local3 = new #\x11();
_local3._x = 187;
_local3._y = 11;
this.'\x0F("alertAchievement", _local3, false, "", "");
}
};
_local2["\x01\x07"] = function () {
var _local2 = new #\x11();
_local2._x = 296;
_local2._y = 11;
this.'\x0F("alertMiss", _local2, false, "", "");
};
// unexpected jump
// unexpected jump
_local2["5\x0F"] = function () {
var _local2 = new #\x11();
_local2._x = 184;
_local2._y = 11;
this.'\x0F("alertStart", _local2, false, "", "");
};
_local2["'\x0F"] = function (_arg12, _arg4, _arg10, _arg11, _arg9) {
var _local3 = "effect_" + this["\x0B\n"];
_root.attachMovie(_arg12, _local3, this["\x0B\n"]);
_root[_local3]._x = _arg4._x;
_root[_local3]._y = _arg4._y;
this["8\f"].push({name:_local3, locked:_arg10, target:_arg11, rotate:_arg9});
this["\x0B\n"]++;
if (this["\x0B\n"] > 35000) {
this["\x0B\n"] = 30000;
}
return(_local3);
};
_local2["\x1B\x10"] = function (_arg13, _arg14, _arg12, _arg11, _arg10, _arg15) {
if ((((_arg10 == "Enemy_20") || (_arg10 == "Enemy_21")) || (_arg10 == "Enemy_55")) || (_arg10 == "Enemy_33")) {
if (this.myLevelManager.=\r() == 10) {
if (_global.currentCampaign != "twentyfive_bt") {
this.myLevelManager.3\x0E();
}
}
}
this["\x05\x02"].Set(this["\x05\x02"].Get() + _arg15);
this.intPoints.SetScore(this["\x05\x02"].Get());
var _local5 = new #\x11();
_local5._x = _arg13;
_local5._y = _arg14;
var _local6 = this.'\x0F("award", _local5, false, "", "");
_root[_local6].textClip_mc.gold_txt.text = _arg12 + " G";
_root[_local6].textClip_mc.exp_txt.text = _arg11 + " Exp";
var _local7 = 0;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].blnDestroyed == false) {
_local7++;
}
_local4++;
}
var _local9 = Math.round(_arg11 / _local7);
var _local8 = false;
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].blnDestroyed == false) {
this.arrAllies[_local4].exp = this.arrAllies[_local4].exp + _local9;
this.turretData.,(this.arrAllies[_local4].type, this.arrAllies[_local4].exp);
if (this.turretData.=\r() != this.arrAllies[_local4].intLevel) {
this.arrAllies[_local4].intLevel = this.turretData.=\r();
_local8 = true;
_local5 = new #\x11();
_local5._x = _root[this.arrAllies[_local4].name]._x;
_local5._y = _root[this.arrAllies[_local4].name]._y - 10;
this.arrAllies[_local4].SetPoints(this.arrAllies[_local4].<\x06() + 2);
_local6 = this.'\x0F("levelUp", _local5, false, "", "");
_root[_local6].textClip_mc.level_txt.text = ("Level " + this.arrAllies[_local4].intLevel) + "!";
}
}
_local4++;
}
if (_local8 == true) {
this.5\n();
this.`\x11();
}
this["\x1C\x11"].Set(this["\x1C\x11"].Get() + _arg12);
};
_local2["5\n"] = function () {
var _local2 = 0;
while (_local2 < this.arrAllies.length) {
_local2++;
}
};
_local2[">\r"] = function (_arg5, _arg6, _arg7) {
var _local3 = new #\x11();
_local3._x = _arg5;
_local3._y = _arg6;
var _local4 = this.'\x0F("award2", _local3, false, "", "");
_root[_local4].textClip_mc.damage_txt.text = _arg7 + "";
};
_local2["\x14\x11"] = function () {
var _local3 = 0;
while (_local3 < this["8\f"].length) {
_root[this["8\f"][_local3].name].removeMovieClip();
_local3++;
}
delete this["8\f"];
this["8\f"] = new Array();
};
_local2["\x01\x03"] = function (_arg4) {
var _local3 = 0;
while (_local3 < this["8\f"].length) {
if (_arg4 == this["8\f"][_local3].name) {
_root[this["8\f"][_local3].name].removeMovieClip();
this["8\f"].splice(_local3, 1);
break;
}
_local3++;
}
};
_local2["-\x04"] = function () {
var _local3 = 0;
while (_local3 < this["8\f"].length) {
if (this["8\f"][_local3].locked == true) {
_root[this["8\f"][_local3].name]._x = _root[this["8\f"][_local3].target]._x;
_root[this["8\f"][_local3].name]._y = _root[this["8\f"][_local3].target]._y;
}
if (this["8\f"][_local3].rotate != "") {
var _local4 = new #\x11();
_local4._x = _root[this["8\f"][_local3].name]._x;
_local4._y = _root[this["8\f"][_local3].name]._y;
var _local5 = new #\x11();
_local5._x = _root[this["8\f"][_local3].rotate]._x - _local4._x;
_local5._y = _root[this["8\f"][_local3].rotate]._y - _local4._y;
var _local6 = Math.atan2(_local5._y, _local5._x);
var _local7 = (360 * _local6) / (Math.PI*2);
_root[this["8\f"][_local3].name]._rotation = _local7;
}
_local3++;
}
};
_local2["(\x0E"] = function (_arg8) {
var _local5 = 0;
var _local4 = 0;
var _local6 = 0;
var _local7 = 9999999999999;
var _local9 = -1;
var _local10;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].blnDestroyed == false) {
_local5 = _arg8._x - _root[this.arrAllies[_local3].name]._x;
_local4 = _arg8._y - _root[this.arrAllies[_local3].name]._y;
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local6 < _local7) {
_local7 = _local6;
_local9 = _local3;
}
}
_local3++;
}
_local10 = _root[this.arrAllies[_local9].name];
_local9 = -1;
_local3 = 0;
while (_local3 < this["2\x03"].length) {
_local5 = _arg8._x - _root[this["2\x03"][_local3].name]._x;
_local4 = _arg8._y - _root[this["2\x03"][_local3].name]._y;
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local6 < _local7) {
_local7 = _local6;
_local9 = _local3;
}
_local3++;
}
if (_local9 > -1) {
_local10 = _root[this["2\x03"][_local9].name];
}
return(_local10);
};
_local2.SelectClosestEnemyTarget = function (_arg8) {
var _local5 = 0;
var _local4 = 0;
var _local6 = 0;
var _local7 = 9999999999999;
var _local9 = -1;
var _local10;
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
if (_root[this["^\x05"][_local3]].blnDestroyed == false) {
_local5 = _arg8._x - _root[this["^\x05"][_local3]]._x;
_local4 = _arg8._y - _root[this["^\x05"][_local3]]._y;
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local6 < _local7) {
_local7 = _local6;
_local9 = _local3;
}
}
_local3++;
}
_local10 = _root[this["^\x05"][_local9]];
return(_local10);
};
_local2["<\x0E"] = function () {
var _local5;
var _local4 = this.arrAllies.slice();
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].blnDestroyed == true) {
_local4.splice(_local3, 1);
_local3--;
}
_local3++;
}
var _local7 = _local4.length + this["2\x03"].length;
var _local6 = this.RandNum(1, _local7);
if (_local6 <= _local4.length) {
var _local8 = this.RandNum(0, _local4.length - 1);
_local3 = 0;
while (_local3 < this.arrAllies.length) {
if (_local4[_local8].name == this.arrAllies[_local3].name) {
_local8 = _local3;
_local5 = _root[this.arrAllies[_local8].name];
break;
}
_local3++;
}
} else {
var _local8 = this.RandNum(0, this["2\x03"].length - 1);
_local5 = _root[this["2\x03"][_local8].name];
}
return(_local5);
};
_local2[">\f"] = function (_arg6) {
var _local3 = this.arrAllies.slice();
var _local4 = 0;
while (_local4 < _local3.length) {
if (_root[_local3[_local4].name]._y < _arg6) {
_local3.splice(_local4, 1);
_local4--;
} else if (_local3[_local4].blnDestroyed == true) {
_local3.splice(_local4, 1);
_local4--;
}
_local4++;
}
var _local5 = this.RandNum(0, _local3.length - 1);
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (_local3[_local5].name == this.arrAllies[_local4].name) {
_local5 = _local4;
break;
}
_local4++;
}
return(_root[this.arrAllies[_local5].name]);
};
_local2["\x0B\x06"] = function () {
if (this["@\x05"] == false) {
Mouse.addListener(this["\x11\x0F"]);
this["@\x05"] = true;
}
};
_local2["?\x0B"] = function () {
if (this["@\x05"] == true) {
Mouse.removeListener(this["\x11\x0F"]);
this["@\x05"] = false;
}
};
_local2["&\x0B"] = function () {
if (this["\x0F\n"] == true) {
Mouse.removeListener(this["\x05\f"]);
this["\x0F\n"] = false;
}
};
_local2["`\x04"] = function () {
if (this["\x0F\n"] == false) {
Mouse.addListener(this["\x05\f"]);
this["\x0F\n"] = true;
}
};
_local2["\x1B\n"] = function () {
var i = 0;
while (i < this.arrStorage.length) {
var \x18\x03 = eval ("_root.icoOut.ico1." + this.arrStorage[i].iconName);
if (this.arrStorage[i].blnInUse == false) {
\x18\x03._visible = false;
} else {
\x18\x03._visible = true;
\x18\x03.gotoAndStop(this.arrStorage[i].gun.type);
}
i++;
}
};
_local2["\x01\x05"] = function () {
_root.extraSlots_mc.gotoAndPlay("show");
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
};
_local2["\x05\x0B"] = function () {
this.?\x0B();
this.`\x04();
this.\x11\x04();
this.\x11\x10();
this.\x13\x12();
this.<\n();
this.\x1B\x06();
this["\x12\r"] = true;
_root.icoOut.gotoAndPlay("show");
delete this["\x0F\x06"];
this["\x0F\x06"] = new Array();
var \x18\x03;
var i = 0;
while (i < this.arrSlots.length) {
_root[this.arrSlots[i].outline]._visible = true;
_root[this.arrSlots[i].outline].gotoAndPlay(1);
var \x1B\x03 = -1;
Set("\x18\x03", eval (("_root." + this.arrSlots[i].outline) + ".turretButton_mc"));
var t = 0;
while (t < this.arrAllies.length) {
if (this.arrAllies[t].name == this.arrSlots[i].gunName) {
if (this.arrAllies[t].intLevel < 10) {
\x18\x03.level_txt.text = "0" + this.arrAllies[t].intLevel;
} else {
\x18\x03.level_txt.text = "" + this.arrAllies[t].intLevel;
}
if (this.arrAllies[t].intLevel == 0) {
\x18\x03.more_mc._visible = false;
\x18\x03.inside_mc._visible = false;
\x18\x03.border_mc._visible = false;
} else {
\x18\x03.more_mc._visible = true;
\x18\x03.inside_mc._visible = true;
\x18\x03.border_mc._visible = true;
\x18\x03.inside_mc._xscale = this.turretData.>\x03(this.arrAllies[t].exp);
}
Set("\x1B\x03", t);
break;
}
t++;
}
if (\x1B\x03 == -1) {
\x18\x03.more_mc._visible = false;
\x18\x03.inside_mc._visible = false;
\x18\x03.border_mc._visible = false;
}
i++;
}
_global.ResumeSong = "recharge";
if (_global.musicOn == true) {
_global.myMusicPlayer.SetMaxVolume(18);
_global.myMusicPlayer.SetTrack("recharge");
_global.myMusicPlayer.PlayWithCrossFade(8);
}
};
_local2[";\n"] = function (_arg4) {
var _local5 = -1;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
if (this.arrAllies[_local3].name == this.arrSlots[_arg4].gunName) {
_root[this.arrSlots[_arg4].outline].updateLevel = this.arrAllies[_local3].intLevel;
_root[this.arrSlots[_arg4].outline].gotoAndPlay("refresh");
_root[this.arrSlots[_arg4].outline].updateExp = this.turretData.>\x03(this.arrAllies[_local3].exp);
_local5 = _local3;
break;
}
_local3++;
}
if (_local5 == -1) {
_root[this.arrSlots[_arg4].outline].updateLevel = 0;
_root[this.arrSlots[_arg4].outline].updateExp = 0;
_root[this.arrSlots[_arg4].outline].gotoAndPlay("refresh");
}
};
_local2["7\x03"] = function () {
if ((this.]\x0B() == false) || (this["[\x07"] == true)) {
if (this["\x19\x02"] != 2) {
this.&\x0B();
this.\x0B\x06();
this["\x12\r"] = false;
_root.icoOut.gotoAndPlay("hide");
var _local4 = 0;
while (_local4 < this.arrSlots.length) {
_root[this.arrSlots[_local4].outline]._visible = false;
_local4++;
}
var _local5 = 0;
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (_root[this.arrAllies[_local4].blnSelected] == true) {
_local5++;
}
_local4++;
}
if (_local5 > 1) {
_local4 = 0;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].blnSelected] = false;
_local4++;
}
_local5 = 0;
} else if (_local5 == 1) {
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (_root[this.arrAllies[_local4].blnSelected] == true) {
this["'\r"] = _local4;
}
_local4++;
}
}
if (_local5 == 0) {
_root[this.arrAllies[0].blnSelected] = true;
this["'\r"] = 0;
_local4 = 1;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].blnSelected] = false;
_local4++;
}
}
if (this.arrAllies[this["'\r"]].type == 12) {
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].type == 12) {
_root[this.arrAllies[_local4].name].gun.radio_mc._visible = true;
}
_local4++;
}
}
this.#();
this.DisplayHotkeyTips();
this.^\x02();
this.myLevelManager.UpdateLevel(this._level.Get(), _global.currentCampaign);
this.myLevelManager.Start();
if (this.1\x10(_global.currentCampaign) == true) {
this.myLevelManager.\n\x04();
}
this.3();
this.2();
if (((this._level.Get() == 10) || (this._level.Get() == 35)) && (_global.currentCampaign != "twentyfive_bt")) {
_global.ResumeSong = "bossIntro";
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack(_global.ResumeSong);
_global.myMusicPlayer.SetMaxVolume(70);
_global.myMusicPlayer.PlayWithCrossFade(4);
}
} else {
if ((this._level.Get() % 2) == 1) {
_global.ResumeSong = "main2";
} else {
_global.ResumeSong = "main";
}
if (_global.musicOn == true) {
_global.myMusicPlayer.SetTrack(_global.ResumeSong);
_global.myMusicPlayer.SetMaxVolume(60);
_global.myMusicPlayer.PlayWithCrossFade(4);
}
}
}
} else if ((this.]\x0B() == true) && (this["[\x07"] == false)) {
this.5\x0F();
}
};
_local2["<\n"] = function () {
var _local3 = 0;
while (_local3 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local3]].removeMovieClip();
_local3++;
}
};
_local2["\x1B\x06"] = function () {
var _local6 = 0;
while (_local6 < this.arrAllies.length) {
if ((((((this.arrAllies[_local6].type == 2) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[_local6].type == 11)) || (this.arrAllies[_local6].type == 12)) || (this.arrAllies[_local6].type == 18)) || (this.arrAllies[_local6].type == 28)) {
_root[this.arrAllies[_local6].name].gun.barrel.gotoAndStop("stop");
_global.SoundManager.\x06\f();
} else if (this.arrAllies[_local6].type == 10) {
if (this["]\x05"]) {
_root[this.arrAllies[_local6].name].gun.gotoAndPlay("close");
this["]\x05"] = false;
this["2\x07"] = false;
this["-\x02"] = 0;
}
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local4 = 0;
while (_local4 < this["2\x03"].length) {
if (this["2\x03"][_local4].creator == this.arrAllies[this["'\r"]].name) {
_root[this["2\x03"][_local4].name].gun_1.gotoAndStop("stop");
break;
}
_local4++;
}
}
if (this.arrAllies[_local6].type == 12) {
_root[this.arrAllies[_local6].name].gun.radio_mc._visible = false;
}
if (this.arrAllies[_local6].type == 17) {
_root[this.arrAllies[_local6].name].gun.energy_mc._visible = false;
}
_local6++;
}
var _local5 = 0;
while (_local5 < this["#\x03"].length) {
this.\x01\x03(this["#\x03"][_local5].name);
_local5++;
}
_local5 = 0;
while (_local5 < this["\x19\x0B"].length) {
_root[this["\x19\x0B"][_local5].strGunName].gun.gotoAndStop(1);
if ((this["\x19\x0B"][_local5].intState == 5) || (this["\x19\x0B"][_local5].intState == 6)) {
_root[this["\x19\x0B"][_local5].strBeamName].removeMovieClip();
}
_local5++;
}
delete this["\x19\x0B"];
this["\x19\x0B"] = new Array();
this.\x1C\n();
delete this["#\x03"];
this["#\x03"] = new Array();
delete this["\x10\x02"];
this["\x10\x02"] = new Array();
delete this["?\x0F"];
this["?\x0F"] = new Array();
delete this["8\x02"];
this["8\x02"] = new Array();
var _local7 = 0;
while (_local7 < this["2\x03"].length) {
if (this["2\x03"][_local7].stay == false) {
_local6 = 0;
while (_local6 < this.arrAllies.length) {
if (this.arrAllies[_local6].name == this["2\x03"][_local7].creator) {
_root[this.arrAllies[_local6].name].gun.gotoAndStop("stop");
break;
}
_local6++;
}
_root[this["2\x03"][_local7].name].removeMovieClip();
this["2\x03"].splice(_local7, 1);
_local7--;
}
_local7++;
}
_local7 = 0;
while (_local7 < this["\x0F\x06"].length) {
_local6 = 0;
while (_local6 < this.arrAllies.length) {
if (this.arrAllies[_local6].name == this["\x0F\x06"][_local7]) {
if (this.arrAllies[_local6].type == 21) {
_root[this.arrAllies[_local6].name].gun.gotoAndStop("stop");
break;
}
if (this.arrAllies[_local6].type == 31) {
_root[this.arrAllies[_local6].name].gun.gotoAndStop("stop");
break;
}
}
_local6++;
}
_local7++;
}
this.#\x07();
_local6 = 0;
while (_local6 < this["\x15\x0F"].length) {
if (_root[this["\x15\x0F"][_local6]]._missile == true) {
_root[this["\x15\x0F"][_local6]].removeMovieClip();
this["\x15\x0F"].splice(_local6, 1);
_local6--;
}
_local6++;
}
};
_local2["\x19"] = function (_arg6, _arg4, _arg5) {
this["\r\x0F"] = _arg6;
var _local2 = new \"\x0E();
var _local3 = 0;
while (_local3 < this.arrSlots.length) {
if (this.arrSlots[_local3].name == _arg4) {
this.arrSlots[_local3].blnOpen = false;
this.turretData.,(this["\r\x0F"], 0);
_local2 = new \"\x0E();
_local2.name = this.arrSlots[_local3].gunName;
_local2.timer = this.turretData.#\x02();
_local2.timerReady = this.turretData.#\x02();
_local2.timerRate = this.turretData.4\x11();
_local2.power = 0;
_local2.chargeRate = this.turretData.%\r();
_local2.chargeMax = this.turretData.\x13\x0E();
_local2.blnSelected = false;
_local2.powerMeter = this.arrSlots[_local3].powerMeter;
_local2.loadMeter = this.arrSlots[_local3].loadMeter;
_local2.healthMeter = this.arrSlots[_local3].healthMeter;
_local2.intLevel = 1;
_local2.charging = false;
_local2.selectField = this.arrSlots[_local3].name;
_local2.type = this["\r\x0F"];
_local2.exp = 0;
_local2.damage = this.turretData.2\x04();
_local2.damageTaken = 0;
_local2.totalLife = this.turretData.\x10\x10();
_local2.saveType = this["\r\x0F"];
_local2.blnDestroyed = false;
_local2.intPoints = _arg5 + this._challengeUpgradeBonus;
_local2.data = this.turretData.;();
_local2.numBullets = this.turretData.\x11\x07();
_local2.range = this.turretData.1();
this.arrAllies.push(_local2);
}
_local3++;
}
};
_local2["6\x03"] = function (_arg7, _arg5) {
var _local6 = "";
var _local4 = 0;
while (_local4 < this.arrSlots.length) {
if (this.arrSlots[_local4].name == _arg7) {
_local6 = this.arrSlots[_local4].gunName;
break;
}
_local4++;
}
_local4 = 0;
while (_local4 < this.arrSlots.length) {
if (this.arrAllies[_local4].name == _local6) {
var _local3 = this.turretData.\x19\x10(this.arrAllies[_local4].saveType);
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].id == _arg5) {
this.arrAllies[_local4].arrUpgrades.push(_local3[_local2]);
break;
}
_local2++;
}
break;
}
_local4++;
}
};
_local2["1\x10"] = function (_arg2) {
var _local1 = false;
if (_arg2 == "challenge1_bt") {
_local1 = true;
} else if (_arg2 == "challenge2_bt") {
_local1 = true;
} else if (_arg2.substr(0, 9) == "challenge") {
_local1 = true;
}
return(_local1);
};
_local2[",\x11"] = function () {
var _local5 = SharedObject.getLocal(_global.loadSlot);
this._name = _local5.data.strName;
this["\x1E"] = _local5.data.strDifficulty;
if (this._name == undefined) {
this._name = _global.currentProfile.strName;
this["\x1E"] = _global.currentProfile.strDifficulty;
this.beatIceCampaign.Load(_global.currentProfile.data5);
this.beatRigCampaign.Load(_global.currentProfile.data6);
this.beatForestCampaign.Load(_global.currentProfile.data7);
this.beatHillsCampaign.Load(_global.currentProfile.data8);
this.beatWaterfallCampaign.Load(_global.currentProfile.data9);
this.beatEndCampaign.Load(_global.currentProfile.data10);
if (_global.cheatsEnabled.Get() != -1) {
_global.cheatsEnabled.Load(_global.currentProfile.data12);
}
} else {
this.beatIceCampaign.Load(_local5.data.data5);
this.beatRigCampaign.Load(_local5.data.data6);
this.beatForestCampaign.Load(_local5.data.data7);
this.beatHillsCampaign.Load(_local5.data.data8);
this.beatWaterfallCampaign.Load(_local5.data.data9);
this.beatEndCampaign.Load(_local5.data.data10);
if (_global.cheatsEnabled.Get() != -1) {
_global.cheatsEnabled.Load(_local5.data.data12);
}
}
this["\x05\n"] = _global.currentCampaign;
this._level.Set(1);
this["\x1E"] = "Challenge";
delete this.arrAllies;
delete this.arrStorage;
delete this.arrSlots;
this.arrStorage = new Array();
this.arrStorage.push({buttonName:"store0", iconName:"storeIcon0", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store1", iconName:"storeIcon1", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store2", iconName:"storeIcon2", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store3", iconName:"storeIcon3", blnInUse:false, gun:new \"\x0E()});
this.arrSlots = new Array();
this.arrAllies = new Array();
if (_global.currentCampaign == "challenge1_bt") {
this["\x1C\x11"].Set(0);
this._level.Set(1);
this._challengeUpgradeBonus = 0;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.\x19(1, "select1", 0);
this.6\x03("select1", 101);
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge2_bt") {
this["\x1C\x11"].Set(60000);
this._level.Set(1);
this._challengeUpgradeBonus = 15;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge3_bt") {
this["\x1C\x11"].Set(15000);
this._level.Set(1);
this._challengeUpgradeBonus = 10;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
this.\x19(16, "select2", 0);
this.\x19(9, "select5", 0);
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge4_bt") {
this["\x1C\x11"].Set(0);
this._level.Set(1);
this._challengeUpgradeBonus = 0;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.\x19(22, "select1", 10);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2203);
this.6\x03("select1", 2202);
this.6\x03("select1", 2202);
this.6\x03("select1", 2202);
this.6\x03("select1", 2202);
this.6\x03("select1", 2202);
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge5_bt") {
this["\x1C\x11"].Set(10000);
this._level.Set(1);
this._challengeUpgradeBonus = 10;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.\x19(8, "select1", 0);
this.\x19(5, "select2", 0);
this.\x19(5, "select3", 0);
this.\x19(5, "select4", 0);
this.6\x03("select2", 503);
this.6\x03("select2", 503);
this.6\x03("select2", 503);
this.6\x03("select2", 503);
this.6\x03("select2", 503);
this.6\x03("select2", 503);
this.6\x03("select2", 501);
this.6\x03("select2", 501);
this.6\x03("select2", 501);
this.6\x03("select2", 501);
this.6\x03("select2", 504);
this.6\x03("select2", 504);
this.6\x03("select3", 503);
this.6\x03("select3", 503);
this.6\x03("select3", 503);
this.6\x03("select3", 503);
this.6\x03("select3", 503);
this.6\x03("select3", 503);
this.6\x03("select3", 501);
this.6\x03("select3", 501);
this.6\x03("select3", 501);
this.6\x03("select3", 501);
this.6\x03("select3", 504);
this.6\x03("select3", 504);
this.6\x03("select4", 503);
this.6\x03("select4", 503);
this.6\x03("select4", 503);
this.6\x03("select4", 503);
this.6\x03("select4", 503);
this.6\x03("select4", 503);
this.6\x03("select4", 501);
this.6\x03("select4", 501);
this.6\x03("select4", 501);
this.6\x03("select4", 501);
this.6\x03("select4", 504);
this.6\x03("select4", 504);
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge6_bt") {
this["\x1C\x11"].Set(12000);
this._level.Set(1);
this._challengeUpgradeBonus = 0;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.\x19(23, "select1", 12);
this.\x19(23, "select3", 12);
this.6\x03("select1", 2303);
this.6\x03("select1", 2303);
this.6\x03("select1", 2303);
this.6\x03("select1", 2303);
this.6\x03("select1", 2303);
this.6\x03("select1", 2303);
this.6\x03("select3", 2303);
this.6\x03("select3", 2303);
this.6\x03("select3", 2303);
this.6\x03("select3", 2303);
this.6\x03("select3", 2303);
this.6\x03("select3", 2303);
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge7_bt") {
this["\x1C\x11"].Set(85000);
this._level.Set(1);
this._challengeUpgradeBonus = 15;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge8_bt") {
this["\x1C\x11"].Set(25000);
this._level.Set(1);
this._challengeUpgradeBonus = 20;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.challengeTimer.Start();
} else if (_global.currentCampaign == "challenge9_bt") {
this["\x1C\x11"].Set(75000);
this._level.Set(1);
this._challengeUpgradeBonus = 15;
this["\x07\x11"] = 1;
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.challengeTimer.Start();
}
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].name]._visible = true;
_root[this.arrAllies[_local4].name].gotoAndStop(this.arrAllies[_local4].type);
_local4++;
}
};
_local2["#\x0E"] = function () {
var _local2 = 0;
while (_local2 < _global.Challenges.length) {
if (_global.Challenges[_local2].strButton == _global.currentCampaign) {
return(_global.Challenges[_local2].strTitle);
}
_local2++;
}
};
_local2["\x18\r"] = function () {
var _local2 = 0;
while (_local2 < _global.Challenges.length) {
if (_global.Challenges[_local2].strButton == _global.currentCampaign) {
return(_global.Challenges[_local2].strDescription);
}
_local2++;
}
};
_local2[";\x10"] = function () {
var _local3 = 0;
while (_local3 < _global.Challenges.length) {
if (_global.Challenges[_local3].strButton == this["\f\f"]) {
return(_global.Challenges[_local3].url);
}
_local3++;
}
};
_local2["\x0F\x04"] = function (intSlot) {
var _local9 = SharedObject.getLocal(_global.loadSlot);
var _local6;
var _local5;
this["\x1C\x11"].Load(_local9.data.data1);
this._name = _local9.data.strName;
this._challengeUpgradeBonus = 0;
if (this._name != undefined) {
this._level.Load(_local9.data.data2);
this["\x1E"] = _local9.data.strDifficulty;
this["\x05\n"] = _local9.data.strCampaign;
if (_global.currentCampaign != this["\x05\n"]) {
this._level.Set(1);
this["\x05\n"] = _global.currentCampaign;
}
if (_global.forceCampaignRestart == true) {
this._level.Set(1);
_global.forceCampaignRestart = false;
}
this.beatIceCampaign.Load(_local9.data.data5);
this.beatRigCampaign.Load(_local9.data.data6);
this.beatForestCampaign.Load(_local9.data.data7);
this.beatHillsCampaign.Load(_local9.data.data8);
this.beatWaterfallCampaign.Load(_local9.data.data9);
this.beatEndCampaign.Load(_local9.data.data10);
if (_global.cheatsEnabled.Get() != -1) {
_global.cheatsEnabled.Load(_local9.data.data12);
}
delete this.arrAllies;
delete this.arrStorage;
delete this.arrSlots;
var _local13 = new \x17\x04();
var _local14 = new \x17\x04();
var _local15 = new \x17\x04();
var _local10 = new \x17\x04();
var _local11 = new \x17\x04();
var _local12 = new \x17\x04();
_local13.Load(_local9.data.data13);
_local14.Load(_local9.data.data14);
_local15.Load(_local9.data.data15);
_local10.Load(_local9.data.data16);
_local11.Load(_local9.data.data17);
_local12.Load(_local9.data.data18);
if (_local9.data.gu != undefined) {
this["\x03\r"] = _local9.data.gu;
} else {
this["\x03\r"] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
if (_local9.data.ti != undefined) {
this["[\x03"].\x1B\x02(_local9.data.ti);
} else {
this["[\x03"].Start();
}
if (this._level.Get() > 1) {
_local5 = _local9.data.arrStorage;
this.arrSlots = _local9.data.arrSlots;
_local6 = _local9.data.arrAllies;
if (_local9.data.atd != undefined) {
this["\x07\x04"].Load(_local9.data.atd);
this["`\x05"].Load(_local9.data.atr);
} else {
this["\x07\x04"].Set(983916);
this["`\x05"].Set(338230);
}
if (_local6.length > 0) {
if (_local13.Get() != _local6[0].intPoints) {
_local6[0].intPoints = 0;
}
}
if (_local6.length > 1) {
if (_local14.Get() != _local6[1].intPoints) {
_local6[1].intPoints = 0;
}
}
if (_local6.length > 2) {
if (_local15.Get() != _local6[2].intPoints) {
_local6[2].intPoints = 0;
}
}
if (_local6.length > 3) {
if (_local10.Get() != _local6[3].intPoints) {
_local6[3].intPoints = 0;
}
}
if (_local6.length > 4) {
if (_local11.Get() != _local6[4].intPoints) {
_local6[4].intPoints = 0;
}
}
if (_local6.length > 5) {
if (_local12.Get() != _local6[5].intPoints) {
_local6[5].intPoints = 0;
}
}
this.arrAllies = new Array();
var _local7;
var _local4 = _local6.length - 1;
while (_local4 >= 0) {
_local7 = new \"\x0E();
_local7.name = _local6[_local4].name;
_local7.timer = _local6[_local4].timer;
_local7.timerReady = _local6[_local4].timerReady;
_local7.timerRate = _local6[_local4].timerRate;
_local7.power = _local6[_local4].power;
_local7.chargeRate = _local6[_local4].chargeRate;
_local7.chargeMax = _local6[_local4].chargeMax;
_local7.blnSelected = _local6[_local4].blnSelected;
_local7.powerMeter = _local6[_local4].powerMeter;
_local7.loadMeter = _local6[_local4].loadMeter;
_local7.healthMeter = _local6[_local4].healthMeter;
_local7.intLevel = _local6[_local4].intLevel;
_local7.charging = _local6[_local4].charging;
_local7.selectField = _local6[_local4].selectField;
_local7.type = _local6[_local4].type;
_local7.exp = _local6[_local4].exp;
_local7.damage = _local6[_local4].damage;
_local7.damageTaken = _local6[_local4].damageTaken;
_local7.totalLife = _local6[_local4].totalLife;
_local7.saveType = _local6[_local4].saveType;
_local7.blnDestroyed = _local6[_local4].blnDestroyed;
_local7.SetPoints(_local6[_local4].intPoints);
_local7.data = _local6[_local4].data;
_local7.numBullets = _local6[_local4].numBullets;
_local7.range = _local6[_local4].range;
_local7.arrUpgrades = _local6[_local4].arrUpgrades.slice();
_local7.startX = _local6[_local4].startX;
_local7.startY = _local6[_local4].startY;
this.arrAllies.push(_local7);
_local4--;
}
this.arrStorage = new Array();
_local4 = _local5.length - 1;
while (_local4 >= 0) {
_local7 = new \"\x0E();
_local7.name = _local5[_local4].gun.name;
_local7.timer = _local5[_local4].gun.timer;
_local7.timerReady = _local5[_local4].gun.timerReady;
_local7.timerRate = _local5[_local4].gun.timerRate;
_local7.power = _local5[_local4].gun.power;
_local7.chargeRate = _local5[_local4].gun.chargeRate;
_local7.chargeMax = _local5[_local4].gun.chargeMax;
_local7.blnSelected = _local5[_local4].gun.blnSelected;
_local7.powerMeter = _local5[_local4].gun.powerMeter;
_local7.loadMeter = _local5[_local4].gun.loadMeter;
_local7.healthMeter = _local5[_local4].gun.healthMeter;
_local7.intLevel = _local5[_local4].gun.intLevel;
_local7.charging = _local5[_local4].gun.charging;
_local7.selectField = _local5[_local4].gun.selectField;
_local7.type = _local5[_local4].gun.type;
_local7.exp = _local5[_local4].gun.exp;
_local7.damage = _local5[_local4].gun.damage;
_local7.damageTaken = _local5[_local4].gun.damageTaken;
_local7.totalLife = _local5[_local4].gun.totalLife;
_local7.saveType = _local5[_local4].gun.saveType;
_local7.blnDestroyed = _local5[_local4].gun.blnDestroyed;
_local7.SetPoints(_local5[_local4].gun.intPoints);
_local7.data = _local5[_local4].gun.data;
_local7.numBullets = _local5[_local4].gun.numBullets;
_local7.range = _local5[_local4].gun.range;
_local7.arrUpgrades = _local5[_local4].gun.arrUpgrades.slice();
_local7.startX = _local5[_local4].gun.startX;
_local7.startY = _local5[_local4].gun.startY;
this.arrStorage.push({buttonName:_local5[_local4].buttonName, iconName:_local5[_local4].iconName, blnInUse:_local5[_local4].blnInUse, gun:_local7});
_local4--;
}
} else {
if (_global.currentCampaign == "rig_bt") {
_global.startMoney = 12500;
} else if (_global.currentCampaign == "forest_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "ice_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "hills_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "waterfall_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "end_bt") {
_global.startMoney = 15000;
} else if (_global.currentCampaign == "twentyfive_bt") {
_global.startMoney = 20000;
}
if (_global.currentCampaign == "rig_bt") {
this["\x1E"] = "Medium";
} else if (_global.currentCampaign == "forest_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "ice_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "hills_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "waterfall_bt") {
this["\x1E"] = "Hard";
} else if (_global.currentCampaign == "end_bt") {
this["\x1E"] = "Hard";
} else if (_global.currentCampaign == "twentyfive_bt") {
this["\x1E"] = "Insane";
}
if (_global.achievementSet7.Get() != -1) {
_global.startMoney = _global.startMoney + 10000;
}
if (_global.currentCampaign == "twentyfive_bt") {
this["\x1C\x11"].Set(_global.startMoney);
} else {
this["\x1C\x11"].Set(_global.startMoney + (this.<\x03() * 5000));
}
this["\x07\x04"].Set(983916);
this["`\x05"].Set(338230);
this["[\x03"].Start();
this.arrAllies = new Array();
this.arrStorage = new Array();
this.arrStorage.push({buttonName:"store0", iconName:"storeIcon0", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store1", iconName:"storeIcon1", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store2", iconName:"storeIcon2", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store3", iconName:"storeIcon3", blnInUse:false, gun:new \"\x0E()});
this.arrSlots = new Array();
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
if (_global.currentCampaign == "rig_bt") {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
} else if (((((_global.currentCampaign == "ice_bt") || (_global.currentCampaign == "forest_bt")) || (_global.currentCampaign == "hills_bt")) || (_global.currentCampaign == "waterfall_bt")) || (_global.currentCampaign == "twentyfive_bt")) {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
} else if (_global.currentCampaign == "end_bt") {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
this.arrSlots.push({name:"select6", blnOpen:true, powerMeter:"power6", loadMeter:"load6", healthMeter:"health6", gunName:"avatar_gun6_mc", outline:"outline6"});
}
}
} else {
this["\x1C\x11"].Load(_global.currentProfile.data1);
this._name = _global.currentProfile.strName;
this._level.Load(_global.currentProfile.data2);
this["\x1E"] = _global.currentProfile.strDifficulty;
this["\x05\n"] = _global.currentProfile.strCampaign;
if (_global.currentCampaign != this["\x05\n"]) {
this._level.Set(1);
this["\x1C\x11"].Set(_global.startMoney);
this["\x05\n"] = _global.currentCampaign;
}
if (_global.forceCampaignRestart == true) {
this._level.Set(1);
_global.forceCampaignRestart = false;
}
this.beatIceCampaign.Load(_global.currentProfile.data5);
this.beatRigCampaign.Load(_global.currentProfile.data6);
this.beatForestCampaign.Load(_global.currentProfile.data7);
this.beatHillsCampaign.Load(_global.currentProfile.data8);
this.beatWaterfallCampaign.Load(_global.currentProfile.data9);
this.beatEndCampaign.Load(_global.currentProfile.data10);
if (_global.currentProfile.gu != undefined) {
this["\x03\r"] = _global.currentProfile.gu;
} else {
this["\x03\r"] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
if (_global.currentProfile.ti != undefined) {
this["[\x03"].\x1B\x02(_global.currentProfile.ti);
} else {
this["[\x03"].Start();
}
if (_global.cheatsEnabled.Get() != -1) {
_global.cheatsEnabled.Load(_global.currentProfile.data12);
}
if (this._level.Get() > 1) {
this.arrStorage = _global.currentProfile.arrStorage;
this.arrSlots = _global.currentProfile.arrSlots;
this.arrAllies = _global.currentProfile.arrAllies;
this["\x07\x04"].Load(_global.currentProfile.atd);
this["`\x05"].Load(_global.currentProfile.atr);
} else {
if (_global.currentCampaign == "rig_bt") {
_global.startMoney = 12500;
} else if (_global.currentCampaign == "forest_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "ice_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "hills_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "waterfall_bt") {
_global.startMoney = 10000;
} else if (_global.currentCampaign == "end_bt") {
_global.startMoney = 15000;
} else if (_global.currentCampaign == "twentyfive_bt") {
_global.startMoney = 20000;
}
if (_global.currentCampaign == "rig_bt") {
this["\x1E"] = "Medium";
} else if (_global.currentCampaign == "forest_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "ice_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "hills_bt") {
this["\x1E"] = "Normal";
} else if (_global.currentCampaign == "waterfall_bt") {
this["\x1E"] = "Hard";
} else if (_global.currentCampaign == "end_bt") {
this["\x1E"] = "Hard";
} else if (_global.currentCampaign == "twentyfive_bt") {
this["\x1E"] = "Insane";
}
if (_global.achievementSet7.Get() != -1) {
_global.startMoney = _global.startMoney + 10000;
}
if (_global.currentCampaign == "twentyfive_bt") {
this["\x1C\x11"].Set(_global.startMoney);
} else {
this["\x1C\x11"].Set(_global.startMoney + (this.<\x03() * 5000));
}
this["\x07\x04"].Set(983916);
this["`\x05"].Set(338230);
this["[\x03"].Start();
this.arrAllies = new Array();
this.arrStorage = new Array();
this.arrStorage.push({buttonName:"store0", iconName:"storeIcon0", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store1", iconName:"storeIcon1", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store2", iconName:"storeIcon2", blnInUse:false, gun:new \"\x0E()});
this.arrStorage.push({buttonName:"store3", iconName:"storeIcon3", blnInUse:false, gun:new \"\x0E()});
this.arrSlots = new Array();
this.arrSlots.push({name:"select1", blnOpen:true, powerMeter:"power1", loadMeter:"load1", healthMeter:"health1", gunName:"avatar_gun1_mc", outline:"outline1"});
this.arrSlots.push({name:"select2", blnOpen:true, powerMeter:"power2", loadMeter:"load2", healthMeter:"health2", gunName:"avatar_gun2_mc", outline:"outline2"});
this.arrSlots.push({name:"select3", blnOpen:true, powerMeter:"power3", loadMeter:"load3", healthMeter:"health3", gunName:"avatar_gun3_mc", outline:"outline3"});
if (_global.currentCampaign == "rig_bt") {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
} else if (((((_global.currentCampaign == "ice_bt") || (_global.currentCampaign == "forest_bt")) || (_global.currentCampaign == "hills_bt")) || (_global.currentCampaign == "waterfall_bt")) || (_global.currentCampaign == "twentyfive_bt")) {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
} else if (_global.currentCampaign == "end_bt") {
this.arrSlots.push({name:"select4", blnOpen:true, powerMeter:"power4", loadMeter:"load4", healthMeter:"health4", gunName:"avatar_gun4_mc", outline:"outline4"});
this.arrSlots.push({name:"select5", blnOpen:true, powerMeter:"power5", loadMeter:"load5", healthMeter:"health5", gunName:"avatar_gun5_mc", outline:"outline5"});
this.arrSlots.push({name:"select6", blnOpen:true, powerMeter:"power6", loadMeter:"load6", healthMeter:"health6", gunName:"avatar_gun6_mc", outline:"outline6"});
}
}
}
var _local8 = 0;
while (_local8 < this.arrAllies.length) {
_root[this.arrAllies[_local8].name]._visible = true;
_root[this.arrAllies[_local8].name].gotoAndStop(this.arrAllies[_local8].type);
_local8++;
}
};
_local2[")\n"] = function () {
if (_global.achievementSet1.Get() != -1) {
return(true);
}
if (_global.achievementSet2.Get() != -1) {
return(true);
}
if (_global.achievementSet3.Get() != -1) {
return(true);
}
if (_global.achievementSet4.Get() != -1) {
return(true);
}
if (_global.achievementSet5.Get() != -1) {
return(true);
}
if (_global.achievementSet6.Get() != -1) {
return(true);
}
if (_global.achievementSet7.Get() != -1) {
return(true);
}
if (_global.achievementSet8.Get() != -1) {
return(true);
}
return(false);
};
_local2[")\x03"] = function () {
var _local3 = 0;
var _local2 = 0;
while (_local2 < this.arrAllies.length) {
switch (this.arrAllies[_local2].type) {
case 1 :
case 2 :
case 11 :
case 12 :
case 28 :
case 19 :
case 29 :
case 18 :
_local3++;
}
_local2++;
}
if (_local3 >= 2) {
return(true);
}
return(false);
};
_local2["\f\x10"] = function () {
this. \x07();
this.&\x0B();
this["[\x07"] = true;
this.blnDisplayedWeaponWarning = true;
_root["\"\x03"]._visible = true;
_root["\"\x03"].gotoAndStop(25);
};
_local2["5\f"] = function () {
this.5\x10();
this.`\x04();
this["[\x07"] = false;
_root["\"\x03"]._visible = false;
};
_local2["\x06\x0F"] = function () {
this. \x07();
this["[\x07"] = true;
_root["\"\x03"]._visible = true;
_root["\"\x03"].gotoAndPlay(1);
};
_local2["\x07\x07"] = function () {
this.5\x10();
this["[\x07"] = false;
_root["\"\x03"]._visible = false;
};
_local2[" \x0E"] = function () {
this.\x05\x0B();
this.5\x10();
this["[\x07"] = false;
_root["\"\x03"]._visible = false;
};
_local2["1\x02"] = function () {
this.7\x03();
this. \x07();
};
_local2["\x02\x0B"] = function () {
this.\x05\x0B();
this. \x07();
};
_local2[" \x07"] = function () {
_global.gamePaused = true;
this["[\x03"].\x10\n();
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local4]]["'\x03"] = true;
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]].\x11\x05();
_local4++;
}
_local4 = 0;
while (_local4 < this["2\x03"].length) {
_root[this["2\x03"][_local4].name].\x11\x05();
_local4++;
}
if (this["\x12\r"] == true) {
this.&\x0B();
} else {
this.?\x0B();
}
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if ((((((this.arrAllies[_local4].type == 2) || (this.arrAllies[_local4].type == 11)) || (this.arrAllies[_local4].type == 12)) || (this.arrAllies[_local4].type == 18)) || (this.arrAllies[this["'\r"]].type == 19)) || (this.arrAllies[this["'\r"]].type == 28)) {
if (this.arrAllies[_local4].charging == true) {
this.arrAllies[_local4].charging = false;
_root[this.arrAllies[_local4].name].gun.barrel.gotoAndStop("stop");
_global.SoundManager.\x06\f();
}
} else if (this.arrAllies[this["'\r"]].type == 21) {
var _local5 = 0;
while (_local5 < this["2\x03"].length) {
if (this["2\x03"][_local5].creator == this.arrAllies[this["'\r"]].name) {
_root[this["2\x03"][_local5].name].gun_1.gotoAndStop("stop");
this.arrAllies[this["'\r"]].charging = false;
break;
}
_local5++;
}
}
_local4++;
}
_local4 = 0;
while (_local4 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local4].intState == 2) {
_root[this["\x19\x0B"][_local4].strGunName].gun.stop();
} else if (this["\x19\x0B"][_local4].intState == 2) {
_root[this["\x19\x0B"][_local4].strGunName].gun.shooter.stop();
} else if (this["\x19\x0B"][_local4].intState == 6) {
_root[this["\x19\x0B"][_local4].strBeamName].stop();
} else if (this["\x19\x0B"][_local4].intState == 8) {
_root[this["\x19\x0B"][_local4].strGunName].gun.shooter.stop();
} else if (this["\x19\x0B"][_local4].intState == 9) {
_root[this["\x19\x0B"][_local4].strGunName].gun.stop();
}
_local4++;
}
};
_local2["5\x10"] = function () {
_global.gamePaused = false;
this["[\x03"].4\x05();
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local4]]["'\x03"] = false;
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]].\x0F\r();
_local4++;
}
_local4 = 0;
while (_local4 < this["2\x03"].length) {
_root[this["2\x03"][_local4].name].\x0F\r();
_local4++;
}
_local4 = 0;
while (_local4 < this["\x19\x0B"].length) {
if (this["\x19\x0B"][_local4].intState == 2) {
_root[this["\x19\x0B"][_local4].strGunName].gun.play();
} else if (this["\x19\x0B"][_local4].intState == 2) {
_root[this["\x19\x0B"][_local4].strGunName].gun.shooter.play();
} else if (this["\x19\x0B"][_local4].intState == 6) {
_root[this["\x19\x0B"][_local4].strBeamName].play();
} else if (this["\x19\x0B"][_local4].intState == 8) {
_root[this["\x19\x0B"][_local4].strGunName].gun.shooter.play();
} else if (this["\x19\x0B"][_local4].intState == 9) {
_root[this["\x19\x0B"][_local4].strGunName].gun.play();
}
_local4++;
}
if (this["\x12\r"] == true) {
this.`\x04();
} else {
this.\x0B\x06();
}
};
_local2["\x1A\x10"] = function () {
if (this["\x12\r"] == false) {
this.\x1B\x06();
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]].%\x10();
_root[this["^\x05"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["2\x03"].length) {
_root[this["2\x03"][_local4].name].removeMovieClip();
_local4++;
}
delete this["\x15\x0F"];
this["\x15\x0F"] = new Array();
delete this["^\x05"];
this["^\x05"] = new Array();
delete this["2\x03"];
this["2\x03"] = new Array();
_local4 = 0;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].name]._visible = false;
_local4++;
}
_global.gamePaused = false;
this["\x05\x02"].Set(0);
this.intPoints.\x17\r(0);
_root.score_txt.text = 0;
this["%\x04"] = 0;
this["#\x0F"] = 0;
if (this.1\x10(_global.currentCampaign) == true) {
this.,\x11();
} else {
this.\x0F\x04(_global.loadSlot);
}
this.\x05\x0B();
}
};
_local2["=\f"] = function () {
if (this["\x12\r"] == false) {
_global.forceCampaignRestart = true;
this.\x1A\x10();
}
};
// unexpected jump
// unexpected jump
_local2["2\r"] = function () {
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]].%\x10();
_root[this["^\x05"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["2\x03"].length) {
_root[this["2\x03"][_local4].name].removeMovieClip();
_local4++;
}
delete this["\x15\x0F"];
this["\x15\x0F"] = new Array();
delete this["^\x05"];
this["^\x05"] = new Array();
delete this["2\x03"];
this["2\x03"] = new Array();
_local4 = 0;
while (_local4 < this["\x19\x0B"].length) {
if ((this["\x19\x0B"][_local4].intState == 5) || (this["\x19\x0B"][_local4].intState == 6)) {
_root[this["\x19\x0B"][_local4].strBeamName].removeMovieClip();
}
_local4++;
}
this.?\x0B();
this.&\x0B();
_global.gamePaused = true;
};
_local2["\x1E\x05"] = function (_arg5) {
var _local4 = 0;
while (_local4 < this["\x15\x0F"].length) {
_root[this["\x15\x0F"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]].%\x10();
_root[this["^\x05"][_local4]].removeMovieClip();
_local4++;
}
_local4 = 0;
while (_local4 < this["2\x03"].length) {
_root[this["2\x03"][_local4].name].removeMovieClip();
_local4++;
}
delete this["\x15\x0F"];
this["\x15\x0F"] = new Array();
delete this["^\x05"];
this["^\x05"] = new Array();
delete this["2\x03"];
this["2\x03"] = new Array();
_local4 = 0;
while (_local4 < this["\x19\x0B"].length) {
if ((this["\x19\x0B"][_local4].intState == 5) || (this["\x19\x0B"][_local4].intState == 6)) {
_root[this["\x19\x0B"][_local4].strBeamName].removeMovieClip();
}
_local4++;
}
_root.screenEffects_mc.swapDepths(this["!\x0F"]);
_root.flash_mc.swapDepths(this["2\x10"]);
_root.output_mc.swapDepths(this["\x04\x05"]);
_root.menu_mc.swapDepths(this["\f\x04"]);
_root.cover.swapDepths(this[")\x07"]);
_root.waveMeter_mc.swapDepths(this["<\f"]);
this.?\x0B();
this.&\x0B();
_global.overWriteSlot = false;
if (_arg5 == true) {
_global.forceOpenMap = true;
}
_root.fade_mc.visible = true;
_root.fade_mc._alpha = 100;
_root.fade_mc.gotoAndPlay(37);
};
_local2["2\n"] = function () {
var _local3 = false;
if (this["\x07\x04"].Get() != -1) {
_global.achievementUnlocked1.Set(568882);
_local3 = true;
}
if (this["`\x05"].Get() != -1) {
_global.achievementUnlocked3.Set(334723);
_local3 = true;
}
if (this["\x1C\x11"].Get() >= 80000) {
_global.achievementUnlocked6.Set(944801);
_local3 = true;
}
if (_global.currentCampaign == "ice_bt") {
this.beatIceCampaign.Set(872406);
} else if (_global.currentCampaign == "rig_bt") {
this.beatRigCampaign.Set(872406);
if (this["[\x03"].=\x0E() < 13) {
_global.achievementUnlocked2.Set(579126);
_local3 = true;
}
} else if (_global.currentCampaign == "forest_bt") {
this.beatForestCampaign.Set(872406);
} else if (_global.currentCampaign == "hills_bt") {
this.beatHillsCampaign.Set(872406);
} else if (_global.currentCampaign == "waterfall_bt") {
this.beatWaterfallCampaign.Set(872406);
} else if (_global.currentCampaign == "end_bt") {
this.beatEndCampaign.Set(872406);
_global.achievementUnlocked8.Set(100834);
_local3 = true;
if (this["[\x03"].=\x0E() < 16) {
_global.achievementUnlocked5.Set(579126);
_local3 = true;
}
} else if (_global.currentCampaign == "twentyfive_bt") {
_global.achievementUnlocked4.Set(253220);
_local3 = true;
}
this._level.Set(1);
if (_local3 == true) {
this.\f\x11();
}
_global.currentCampaign = "none";
this.@\x04();
};
_local2["]\x0B"] = function () {
var _local3 = true;
var _local2 = 0;
while (_local2 < this.arrAllies.length) {
if (this.arrAllies[_local2].blnDestroyed == false) {
if (((this.arrAllies[_local2].type != 4) && (this.arrAllies[_local2].type != 8)) && (this.arrAllies[_local2].type != 9)) {
_local3 = false;
}
}
_local2++;
}
return(_local3);
};
_local2["\x12\x11"] = function () {
_root.output_mc._visible = true;
this["\f\f"] = _global.currentCampaign;
if (this.1\x10(_global.currentCampaign) == true) {
_root.output_mc.gotoAndPlay("LoseChallenge");
} else {
_root.output_mc.gotoAndPlay(222);
}
this.\x11\x10();
this. \x07();
};
_local2["6\x04"] = function () {
if (_global.gamePaused == true) {
} else {
this. \x07();
this.@\f();
}
};
_local2["@\f"] = function () {
_root.menu_mc._visible = true;
_root.menu_mc.gotoAndPlay(1);
};
_local2["\x04"] = function () {
_root.menu_mc._visible = false;
this.5\x10();
};
_local2["\x11\x04"] = function () {
_root.waveMeter_mc._visible = false;
var _local3 = 0;
while (_local3 < this.arrSlots.length) {
_root[this.arrSlots[_local3].powerMeter]._visible = false;
_root[this.arrSlots[_local3].loadMeter]._visible = false;
_root[this.arrSlots[_local3].healthMeter]._visible = false;
_local3++;
}
};
_local2["#"] = function () {
this.`\x11();
_root.waveMeter_mc._visible = true;
_root.waveMeter_mc.inside._xscale = 0;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
_root[this.arrAllies[_local3].healthMeter]._visible = true;
this.]\x02(_local3);
_root[this.arrAllies[_local3].loadMeter]._visible = true;
if (this.arrAllies[_local3].blnDestroyed == false) {
this.arrAllies[_local3].timer = this.arrAllies[_local3].timerReady;
_root[this.arrAllies[_local3].loadMeter].gotoAndPlay(2);
}
_local3++;
}
};
_local2["\n\x05"] = function () {
if (this["\x19\x02"] != 0) {
return(undefined);
}
var \x0E\x0F = false;
if (_root.newGun_mc.hitTest(_xmouse, _ymouse, false)) {
this["\r\x0F"] = Number(_root.icoOut.ico1.GetTurretType().substr(6, 2));
this.\x13\f(this["\r\x0F"]);
this["\x04\x06"]._x = (_root.newGun_mc._x - 5) + (_root.newGun_mc._width / 2);
this["\x04\x06"]._y = _root.newGun_mc._y + (_root.newGun_mc._height / 2);
_root[this["\x17\f"]].startDrag(true);
_root.icoOut.ico1.turret_transition.gotoAndStop("hide");
this["\x19\x02"] = 1;
this["]\x04"] = "buy";
Set("\x0E\x0F", true);
}
if (\x0E\x0F == false) {
var i = 0;
while (i < this.arrStorage.length) {
if (this.arrStorage[i].blnInUse == true) {
if (_root[this.arrStorage[i].buttonName].hitTest(_xmouse, _ymouse, false)) {
this["\r\x0F"] = Number(this.arrStorage[i].gun.type);
this.\x13\f(this["\r\x0F"]);
var \x18\x03 = eval ("_root.icoOut.ico1." + this.arrStorage[i].iconName);
var \x17\x0E = new Object({x:\x18\x03._x, y:\x18\x03._y});
_root.icoOut.ico1.localToGlobal(\x17\x0E);
this["\x04\x06"]._x = \x17\x0E.x;
this["\x04\x06"]._y = \x17\x0E.y;
\x18\x03._visible = false;
_root[this["\x17\f"]].startDrag(true);
this["\x19\x02"] = 1;
this["]\x04"] = "storage";
this.intPickUpSlot = i;
this.7\r(false, this.arrStorage[i].gun.type, this.arrStorage[i].gun.totalLife, this.arrStorage[i].gun.damageTaken, this.arrStorage[i].gun.saveType);
Set("\x0E\x0F", true);
break;
}
}
i++;
}
}
if (\x0E\x0F == false) {
var i = 0;
while (i < this.arrSlots.length) {
if (this.arrSlots[i].blnOpen == false) {
if (_root[this.arrSlots[i].name].hitTest(_xmouse, _ymouse, false)) {
var 7\x0B = -1;
var p = 0;
while (p < this.arrAllies.length) {
if (this.arrAllies[p].name == this.arrSlots[i].gunName) {
Set("7\x0B", p);
break;
}
p++;
}
this["\r\x0F"] = Number(this.arrAllies[7\x0B].type);
this.\x13\f(this["\r\x0F"]);
this["\x04\x06"]._x = _root[this.arrSlots[i].gunName]._x;
this["\x04\x06"]._y = _root[this.arrSlots[i].gunName]._y;
_root[this.arrSlots[i].gunName]._visible = false;
_root[this["\x17\f"]].startDrag(true);
this["\x19\x02"] = 1;
this["]\x04"] = "slot";
this.intPickUpSlot = i;
this.7\r(false, this.arrAllies[7\x0B].type, this.arrAllies[7\x0B].totalLife, this.arrAllies[7\x0B].damageTaken, this.arrAllies[7\x0B].saveType);
Set("\x0E\x0F", true);
return;
}
}
i++;
}
}
};
_local2["=\x02"] = function () {
if (this["\x19\x02"] == 1) {
var &\x04 = false;
var \x1B\x11 = false;
this["<\x11"] = 0;
var \x1B\x0E = true;
var `;
if (this["]\x04"] == "buy") {
if (this["\x1C\x11"].Get() < _root.icoOut.ico1.GetTurretCost()) {
Set("\x1B\x0E", false);
}
}
if (\x1B\x0E == true) {
var i = 0;
while (i < this.arrSlots.length) {
if (_root[this.arrSlots[i].name].hitTest(_xmouse, _ymouse, false)) {
if (this.arrSlots[i].blnOpen == true) {
_root[this["\x17\f"]].stopDrag();
_root[this["\x17\f"]].removeMovieClip();
_root[this.arrSlots[i].gunName]._visible = true;
_root[this.arrSlots[i].gunName].gotoAndStop(this["\r\x0F"]);
if (this["]\x04"] == "storage") {
this.arrStorage[this.intPickUpSlot].blnInUse = false;
this.turretData.,(this["\r\x0F"], this.arrStorage[this.intPickUpSlot].gun.exp);
this.arrStorage[this.intPickUpSlot].gun.name = this.arrSlots[i].gunName;
this.arrStorage[this.intPickUpSlot].gun.powerMeter = this.arrSlots[i].powerMeter;
this.arrStorage[this.intPickUpSlot].gun.loadMeter = this.arrSlots[i].loadMeter;
this.arrStorage[this.intPickUpSlot].gun.healthMeter = this.arrSlots[i].healthMeter;
this.arrStorage[this.intPickUpSlot].gun.selectField = this.arrSlots[i].name;
this.arrAllies.push(this.arrStorage[this.intPickUpSlot].gun);
this.;\n(i);
Set("\x1B\x11", true);
} else if (this["]\x04"] == "buy") {
this["\x1C\x11"].Set(this["\x1C\x11"].Get() - _root.icoOut.ico1.GetTurretCost());
_root.icoOut.ico1.UpdateGold();
_root.icoOut.ico1.turret_transition.gotoAndStop(("turret" + this["\r\x0F"]) + "_APPEAR");
this.turretData.,(this["\r\x0F"], 0);
Set("`", new \"\x0E());
`.name = this.arrSlots[i].gunName;
`.timer = this.turretData.#\x02();
`.timerReady = this.turretData.#\x02();
`.timerRate = this.turretData.4\x11();
`.power = 0;
`.chargeRate = this.turretData.%\r();
`.chargeMax = this.turretData.\x13\x0E();
`.blnSelected = false;
`.powerMeter = this.arrSlots[i].powerMeter;
`.loadMeter = this.arrSlots[i].loadMeter;
`.healthMeter = this.arrSlots[i].healthMeter;
`.intLevel = 1;
`.charging = false;
`.selectField = this.arrSlots[i].name;
`.type = this["\r\x0F"];
`.exp = 0;
`.damage = this.turretData.2\x04();
`.damageTaken = 0;
`.totalLife = this.turretData.\x10\x10();
`.saveType = this["\r\x0F"];
`.blnDestroyed = false;
var ^\x0E = 0;
if (_global.currentCampaign == "twentyfive_bt") {
Set("^\x0E", 0);
} else {
Set("^\x0E", (0 + (this.<\x03() * 2)) + this._challengeUpgradeBonus);
}
if (_global.achievementSet2.Get() != -1) {
Set("^\x0E", ^\x0E + 5);
}
if (_global.achievementSet4.Get() != -1) {
Set("^\x0E", ^\x0E + 10);
}
`.SetPoints(^\x0E);
`.data = this.turretData.;();
`.numBullets = this.turretData.\x11\x07();
`.range = this.turretData.1();
this.arrAllies.push(`);
this.;\n(i);
Set("\x1B\x11", true);
} else if (this["]\x04"] == "slot") {
this.arrSlots[this.intPickUpSlot].blnOpen = true;
var \x01\r = -1;
var t = 0;
while (t < this.arrAllies.length) {
if (this.arrAllies[t].name == this.arrSlots[this.intPickUpSlot].gunName) {
Set("\x01\r", t);
break;
}
t++;
}
this.turretData.,(this.arrAllies[\x01\r].type, this.arrAllies[\x01\r].exp);
Set("`", this.arrAllies[\x01\r]);
`.name = this.arrSlots[i].gunName;
`.powerMeter = this.arrSlots[i].powerMeter;
`.loadMeter = this.arrSlots[i].loadMeter;
`.healthMeter = this.arrSlots[i].healthMeter;
`.selectField = this.arrSlots[i].name;
this.arrAllies.push(`);
this.;\n(i);
this.;\n(this.intPickUpSlot);
if (\x01\r != -1) {
this.arrAllies.splice(\x01\r, 1);
}
}
this.arrSlots[i].blnOpen = false;
this["\x19\x02"] = 0;
Set("&\x04", true);
break;
}
var selectedStorage = -1;
var j = 0;
while (j < this.arrStorage.length) {
if (this.arrStorage[j].blnInUse == false) {
selectedStorage = j;
break;
}
j++;
}
if (this["]\x04"] == "storage") {
selectedStorage = this.intPickUpSlot;
}
if (this["]\x04"] == "slot") {
if (this.intPickUpSlot == i) {
selectedStorage = -1;
}
}
if (selectedStorage == -1) {
_root[this["\x17\f"]].stopDrag();
this["\x19\x02"] = 2;
Set("&\x04", true);
break;
}
var 7\x0B = -1;
var p = 0;
while (p < this.arrAllies.length) {
if (this.arrAllies[p].name == this.arrSlots[i].gunName) {
Set("7\x0B", p);
break;
}
p++;
}
if (this["]\x04"] == "buy") {
this["\x1C\x11"].Set(this["\x1C\x11"].Get() - _root.icoOut.ico1.GetTurretCost());
_root.icoOut.ico1.UpdateGold();
this.arrStorage[selectedStorage].blnInUse = true;
this.arrStorage[selectedStorage].gun = this.arrAllies[7\x0B];
this.turretData.,(this["\r\x0F"], 0);
delete this.arrAllies[7\x0B];
this.arrAllies.splice(7\x0B, 1);
Set("`", new \"\x0E());
`.name = this.arrSlots[i].gunName;
`.timer = this.turretData.#\x02();
`.timerReady = this.turretData.#\x02();
`.timerRate = this.turretData.4\x11();
`.power = 0;
`.chargeRate = this.turretData.%\r();
`.chargeMax = this.turretData.\x13\x0E();
`.blnSelected = false;
`.powerMeter = this.arrSlots[i].powerMeter;
`.loadMeter = this.arrSlots[i].loadMeter;
`.healthMeter = this.arrSlots[i].healthMeter;
`.intLevel = 1;
`.charging = false;
`.selectField = this.arrSlots[i].name;
`.type = this["\r\x0F"];
`.exp = 0;
`.damage = this.turretData.2\x04();
`.damageTaken = 0;
`.totalLife = this.turretData.\x10\x10();
`.saveType = this["\r\x0F"];
`.blnDestroyed = false;
var ^\x0E = 0;
if (_global.currentCampaign == "twentyfive_bt") {
Set("^\x0E", 0);
} else {
Set("^\x0E", (0 + (this.<\x03() * 2)) + this._challengeUpgradeBonus);
}
if (_global.achievementSet2.Get() != -1) {
Set("^\x0E", ^\x0E + 5);
}
if (_global.achievementSet4.Get() != -1) {
Set("^\x0E", ^\x0E + 10);
}
`.SetPoints(^\x0E);
`.data = this.turretData.;();
`.numBullets = this.turretData.\x11\x07();
`.range = this.turretData.1();
this.arrAllies.push(`);
this.;\n(i);
Set("\x1B\x11", true);
} else if (this["]\x04"] == "storage") {
Set("`", this.arrStorage[selectedStorage].gun);
this.arrStorage[selectedStorage].blnInUse = true;
this.arrStorage[selectedStorage].gun = this.arrAllies[7\x0B];
`.name = this.arrSlots[i].gunName;
`.powerMeter = this.arrSlots[i].powerMeter;
`.loadMeter = this.arrSlots[i].loadMeter;
`.healthMeter = this.arrSlots[i].healthMeter;
`.selectField = this.arrSlots[i].name;
this.arrAllies[7\x0B] = `;
this.;\n(i);
Set("\x1B\x11", true);
} else if (this["]\x04"] == "slot") {
var !\x07 = -1;
var p = 0;
while (p < this.arrAllies.length) {
if (this.arrAllies[p].name == this.arrSlots[this.intPickUpSlot].gunName) {
Set("!\x07", p);
break;
}
p++;
}
this.arrStorage[selectedStorage].blnInUse = true;
this.arrStorage[selectedStorage].gun = this.arrAllies[7\x0B];
this.turretData.,(this["\r\x0F"], this.arrAllies[this.intPickUpSlot].exp);
this.arrAllies[7\x0B] = this.arrAllies[!\x07];
this.arrAllies[7\x0B].name = this.arrSlots[i].gunName;
this.arrAllies[7\x0B].powerMeter = this.arrSlots[i].powerMeter;
this.arrAllies[7\x0B].loadMeter = this.arrSlots[i].loadMeter;
this.arrAllies[7\x0B].healthMeter = this.arrSlots[i].healthMeter;
this.arrAllies[7\x0B].selectField = this.arrSlots[i].name;
this.arrSlots[this.intPickUpSlot].blnOpen = true;
delete this.arrAllies[!\x07];
if (!\x07 != -1) {
this.arrAllies.splice(!\x07, 1);
}
this.;\n(i);
this.;\n(this.intPickUpSlot);
}
_root[this["\x17\f"]].gotoAndStop(this.arrStorage[selectedStorage].gun.type);
_root[this["\x17\f"]].stopDrag();
this["\x19\x02"] = 2;
var \x18\x03 = eval ("_root.icoOut.ico1." + this.arrStorage[selectedStorage].iconName);
var \x17\x0E = new Object({x:\x18\x03._x, y:\x18\x03._y});
_root.icoOut.ico1.localToGlobal(\x17\x0E);
this["\x04\x06"]._x = \x17\x0E.x;
this["\x04\x06"]._y = \x17\x0E.y;
_root[this.arrSlots[i].gunName]._visible = true;
_root[this.arrSlots[i].gunName].gotoAndStop(this["\r\x0F"]);
if (this["]\x04"] == "buy") {
_root.icoOut.ico1.turret_transition.gotoAndStop(("turret" + this["\r\x0F"]) + "_APPEAR");
}
this["]\x04"] = "storage";
this.intPickUpSlot = selectedStorage;
Set("&\x04", true);
break;
}
i++;
}
var i = 0;
while (i < this.arrStorage.length) {
if (_root[this.arrStorage[i].buttonName].hitTest(_xmouse, _ymouse, false)) {
if (this.arrStorage[i].blnInUse == false) {
if (this["]\x04"] == "storage") {
this.arrStorage[this.intPickUpSlot].blnInUse = false;
this.arrStorage[i].blnInUse = true;
this.arrStorage[i].gun = this.arrStorage[this.intPickUpSlot].gun;
} else if (this["]\x04"] == "buy") {
this["\x1C\x11"].Set(this["\x1C\x11"].Get() - _root.icoOut.ico1.GetTurretCost());
_root.icoOut.ico1.UpdateGold();
_root.icoOut.ico1.turret_transition.gotoAndStop(("turret" + this["\r\x0F"]) + "_APPEAR");
this.arrStorage[i].blnInUse = true;
Set("`", new \"\x0E());
`.name = this.arrSlots[i].gunName;
`.timer = this.turretData.#\x02();
`.timerReady = this.turretData.#\x02();
`.timerRate = this.turretData.4\x11();
`.power = 0;
`.chargeRate = this.turretData.%\r();
`.chargeMax = this.turretData.\x13\x0E();
`.blnSelected = false;
`.powerMeter = this.arrSlots[i].powerMeter;
`.loadMeter = this.arrSlots[i].loadMeter;
`.healthMeter = this.arrSlots[i].healthMeter;
`.intLevel = 1;
`.charging = false;
`.selectField = this.arrSlots[i].name;
`.type = this["\r\x0F"];
`.exp = 0;
`.damage = this.turretData.2\x04();
`.damageTaken = 0;
`.totalLife = this.turretData.\x10\x10();
`.saveType = this["\r\x0F"];
`.blnDestroyed = false;
var ^\x0E = 0;
if (_global.currentCampaign == "twentyfive_bt") {
Set("^\x0E", 0);
} else {
Set("^\x0E", (0 + (this.<\x03() * 2)) + this._challengeUpgradeBonus);
}
if (_global.achievementSet2.Get() != -1) {
Set("^\x0E", ^\x0E + 5);
}
if (_global.achievementSet4.Get() != -1) {
Set("^\x0E", ^\x0E + 10);
}
`.SetPoints(^\x0E);
`.data = this.turretData.;();
`.numBullets = this.turretData.\x11\x07();
`.range = this.turretData.1();
this.arrStorage[i].gun = `;
} else if (this["]\x04"] == "slot") {
this.arrSlots[this.intPickUpSlot].blnOpen = true;
var \x01\r = -1;
var t = 0;
while (t < this.arrAllies.length) {
if (this.arrAllies[t].name == this.arrSlots[this.intPickUpSlot].gunName) {
Set("\x01\r", t);
break;
}
t++;
}
this.arrStorage[i].blnInUse = true;
this.arrStorage[i].gun = this.arrAllies[\x01\r];
if (\x01\r != -1) {
this.arrAllies.splice(\x01\r, 1);
}
this.;\n(this.intPickUpSlot);
}
var \x18\x03 = eval ("_root.icoOut.ico1." + this.arrStorage[i].iconName);
\x18\x03.gotoAndStop(this.arrStorage[i].gun.type);
\x18\x03._visible = true;
_root[this["\x17\f"]].stopDrag();
_root[this["\x17\f"]].removeMovieClip();
this["\x19\x02"] = 0;
Set("&\x04", true);
break;
}
_root[this["\x17\f"]].stopDrag();
this["\x19\x02"] = 2;
Set("&\x04", true);
break;
}
i++;
}
if (_root["=\x11"].hitTest(_xmouse, _ymouse, false)) {
if (((this["\x1C\x11"].Get() >= this["\x12\x10"]) && (this["\x12\x10"] != 0)) && (this["]\x04"] != "buy")) {
if (_global.achievementSet3.Get() != -1) {
this["\x12\x10"] = 0;
}
this["\x1C\x11"].Set(this["\x1C\x11"].Get() - this["\x12\x10"]);
_root.icoOut.ico1.UpdateGold();
this["`\x05"].mSet(720031);
if (this["]\x04"] == "storage") {
this.?\x10(_root[this["\x17\f"]]._x, _root[this["\x17\f"]]._y);
this.arrStorage[this.intPickUpSlot].gun.damageTaken = 0;
this.arrStorage[this.intPickUpSlot].gun.type = this.arrStorage[this.intPickUpSlot].gun.saveType;
this.arrStorage[this.intPickUpSlot].gun.blnDestroyed = false;
_root[this["\x17\f"]].gotoAndStop(this.arrStorage[this.intPickUpSlot].gun.type);
} else if (this["]\x04"] == "slot") {
var (\f = -1;
var t = 0;
while (t < this.arrAllies.length) {
if (this.arrAllies[t].name == this.arrSlots[this.intPickUpSlot].gunName) {
Set("(\f", t);
break;
}
t++;
}
this.?\x10(_root[this["\x17\f"]]._x, _root[this["\x17\f"]]._y);
this.arrAllies[(\f].damageTaken = 0;
this.arrAllies[(\f].type = this.arrAllies[(\f].saveType;
this.arrAllies[(\f].blnDestroyed = false;
_root[this["\x17\f"]].gotoAndStop(this.arrAllies[(\f].type);
}
this["<\x11"] = 35;
this["\x19\x02"] = 2;
_root[this["\x17\f"]].stopDrag();
Set("&\x04", true);
}
}
if (_root["\x0F\x0F"].hitTest(_xmouse, _ymouse, false)) {
if (this["]\x04"] != "buy") {
_global.gamePaused = true;
this["[\x07"] = true;
Set("&\x04", true);
_root[this["\x17\f"]].stopDrag();
_root.menu_mc._visible = true;
this[")\x0F"] = false;
this.&\x0B();
_root.menu_mc.gotoAndPlay(31);
}
}
}
if (&\x04 == false) {
this["\x19\x02"] = 2;
_root[this["\x17\f"]].stopDrag();
}
this.7\r(true, 0, 0, 0, 0);
if (\x1B\x11 == true) {
if (_global.currentCampaign == "rig_bt") {
if (this.blnDisplayedWeaponWarning == false) {
if (this.)\x03() == true) {
this.\f\x10();
}
}
}
}
}
};
_local2["\x0B\x0F"] = function (outlineName) {
if (this["\x19\x02"] == 0) {
var p = 0;
while (p < this.arrSlots.length) {
if (this.arrSlots[p].outline == outlineName) {
var i = 0;
while (i < this.arrAllies.length) {
if (this.arrAllies[i].name == this.arrSlots[p].gunName) {
this.&\x0B();
this["#\r"] = i;
this. \x07();
this["[\x07"] = true;
this["!\x06"] = true;
_root.menu_mc._visible = true;
_root.menu_mc.gotoAndPlay(62);
_root.menu_mc.inside.gunIcon_mc.gotoAndStop(this.arrAllies[i].saveType);
_root.menu_mc.inside.name_txt.text = this.(\x11(this.arrAllies[i].saveType);
_root.menu_mc.inside.info_txt.text = this.\x0F\f(this.arrAllies[i].saveType);
_root.menu_mc.inside.level_txt.text = this.arrAllies[i].intLevel;
_root.menu_mc.inside.points_txt.text = this.arrAllies[i].<\x06();
this.\x10\f(i);
var t = 0;
while (t < this.arrUpgradeButtons.length) {
eval ("_root.menu_mc.inside." + this.arrUpgradeButtons[t]).removeMovieClip();
t++;
}
delete this.arrUpgradeButtons;
this.arrUpgradeButtons = new Array();
var \x1A\x07 = 1;
var &\x06 = this.turretData.\x19\x10(this.arrAllies[i].saveType);
var startX = 408;
var startY = 139.9;
var strButtonName;
var \n;
var p = 0;
while (p < &\x06.length) {
strButtonName = &\x06[p].id + "_mc";
_root.menu_mc.inside.attachMovie(&\x06[p].icon, strButtonName, \x1A\x07);
Set(newline, eval ("_root.menu_mc.inside." + strButtonName));
this.arrUpgradeButtons.push(strButtonName);
\n._x = startX;
\n._y = startY;
startX = startX + 62;
\x1A\x07++;
var -\x0F = 0;
var t = 0;
while (t < this.arrAllies[i].arrUpgrades.length) {
if (this.arrAllies[i].arrUpgrades[t].id == &\x06[p].id) {
-\x0F++;
}
t++;
}
\n.amount_txt.text = "x " + -\x0F;
if (-\x0F < &\x06[p].limit) {
\n.onRelease = function () {
_root.game.\x06(this._name);
};
\n.onRollOver = function () {
_root.game.+\x06(this._name);
};
\n.onRollOut = function () {
_root.game.\"\n(this._name);
};
} else {
\n.gotoAndStop(2);
\n.onRollOver = function () {
_root.game.+\x06(this._name);
};
\n.onRollOut = function () {
_root.game.\"\n(this._name);
};
}
p++;
}
break;
}
i++;
}
return;
}
p++;
}
}
};
_local2["0\x06"] = function () {
this.5\x10();
this["[\x07"] = false;
this["!\x06"] = false;
this.`\x04();
_root.menu_mc._visible = false;
};
_local2["\x06"] = function (upgradeName) {
var selectedUpgradeID = Number(upgradeName.substr(0, upgradeName.length - 3));
var t = 0;
while (t < this.arrUpgradeButtons.length) {
if (upgradeName == this.arrUpgradeButtons[t]) {
var &\x06 = this.turretData.\x19\x10(this.arrAllies[this["#\r"]].saveType);
var p = 0;
while (p < &\x06.length) {
if (&\x06[p].id == selectedUpgradeID) {
if (this.arrAllies[this["#\r"]].<\x06() >= &\x06[p].cost) {
var -\x0F = 0;
var j = 0;
while (j < this.arrAllies[this["#\r"]].arrUpgrades.length) {
if (this.arrAllies[this["#\r"]].arrUpgrades[j].id == selectedUpgradeID) {
-\x0F++;
}
j++;
}
if (-\x0F < &\x06[p].limit) {
this.arrAllies[this["#\r"]].SetPoints(this.arrAllies[this["#\r"]].<\x06() - &\x06[p].cost);
_root.menu_mc.inside.points_txt.text = this.arrAllies[this["#\r"]].<\x06();
this.arrAllies[this["#\r"]].arrUpgrades.push(&\x06[p]);
-\x0F++;
var \n = eval (("_root.menu_mc.inside." + selectedUpgradeID) + "_mc");
\n.amount_txt.text = "x " + -\x0F;
if (-\x0F == &\x06[p].limit) {
\n.gotoAndStop(2);
delete \n.onRelease;
}
}
}
break;
}
p++;
}
break;
}
t++;
}
this.\x10\f(this["#\r"]);
};
_local2["+\x06"] = function (_arg7) {
var _local6 = Number(_arg7.substr(0, _arg7.length - 3));
var _local5 = 0;
while (_local5 < this.arrUpgradeButtons.length) {
if (_arg7 == this.arrUpgradeButtons[_local5]) {
var _local4 = this.turretData.\x19\x10(this.arrAllies[this["#\r"]].saveType);
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].id == _local6) {
_root.menu_mc.inside.title_txt.text = _local4[_local3].title;
_root.menu_mc.inside.description_txt.text = ((_local4[_local3].description + newline) + "Cost: ") + _local4[_local3].cost;
break;
}
_local3++;
}
break;
}
_local5++;
}
};
_local2["\"\n"] = function (upgradeName) {
_root.menu_mc.inside.title_txt.text = "";
_root.menu_mc.inside.description_txt.text = "";
};
_local2["(\x11"] = function (_arg4) {
var _local3 = 0;
while (_local3 < _global.Campaigns.length) {
if (_global.Campaigns[_local3].strButton == "all_bt") {
var _local2 = 0;
while (_local2 < _global.Campaigns[_local3].arrGuns.length) {
if (_global.Campaigns[_local3].arrGuns[_local2].type == _arg4) {
return(_global.Campaigns[_local3].arrGuns[_local2].title);
}
_local2++;
}
break;
}
_local3++;
}
};
_local2["\x0F\f"] = function (_arg4) {
var _local3 = 0;
while (_local3 < _global.Campaigns.length) {
if (_global.Campaigns[_local3].strButton == "all_bt") {
var _local2 = 0;
while (_local2 < _global.Campaigns[_local3].arrGuns.length) {
if (_global.Campaigns[_local3].arrGuns[_local2].type == _arg4) {
return(_global.Campaigns[_local3].arrGuns[_local2].description);
}
_local2++;
}
break;
}
_local3++;
}
};
_local2["\x10\f"] = function (_arg5) {
this.turretData.,(this.arrAllies[_arg5].saveType, this.arrAllies[_arg5].exp);
var _local14;
var _local12;
var _local13;
_local14 = this.turretData.2\x04();
_root.menu_mc.inside.baseDamage_txt.text = _local14;
_local12 = this.turretData.\x10\x10();
_root.menu_mc.inside.baseHealth_txt.text = _local12;
_local13 = this.turretData.#\x02();
_root.menu_mc.inside.baseReload_txt.text = _local13;
var _local8 = 0;
var _local6 = 0;
var _local7 = 0;
var _local3 = 0;
while (_local3 < this.arrAllies[_arg5].arrUpgrades.length) {
if (this.arrAllies[_arg5].arrUpgrades[_local3].type == 1) {
_local8 = _local8 + this.arrAllies[_arg5].arrUpgrades[_local3].value;
} else if (this.arrAllies[_arg5].arrUpgrades[_local3].secondType == 1) {
_local8 = _local8 + this.arrAllies[_arg5].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_arg5].arrUpgrades[_local3].type == 2) {
_local6 = _local6 + this.arrAllies[_arg5].arrUpgrades[_local3].value;
} else if (this.arrAllies[_arg5].arrUpgrades[_local3].secondType == 2) {
_local6 = _local6 + this.arrAllies[_arg5].arrUpgrades[_local3].secondValue;
}
if (this.arrAllies[_arg5].arrUpgrades[_local3].type == 3) {
_local7 = _local7 + this.arrAllies[_arg5].arrUpgrades[_local3].value;
} else if (this.arrAllies[_arg5].arrUpgrades[_local3].secondType == 3) {
_local7 = _local7 + this.arrAllies[_arg5].arrUpgrades[_local3].secondValue;
}
_local3++;
}
_root.menu_mc.inside.upgradeDamage_txt.text = _local8;
_root.menu_mc.inside.upgradeHealth_txt.text = _local6;
_root.menu_mc.inside.upgradeReload_txt.text = _local7;
_local14 = _local14 + _local8;
_local12 = _local12 + _local6;
_local13 = _local13 + _local7;
var _local11 = 0;
var _local10 = 0;
var _local9 = 0;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
this.turretData.,(this.arrAllies[_local4].saveType, this.arrAllies[_local4].exp);
this.arrAllies[_local4].data = this.turretData.;();
_local3 = 0;
while (_local3 < this.arrAllies[_local4].arrUpgrades.length) {
if (this.arrAllies[_local4].arrUpgrades[_local3].type == 4) {
this.arrAllies[_local4].data = this.arrAllies[_local4].data + this.arrAllies[_local4].arrUpgrades[_local3].value;
} else if (this.arrAllies[_local4].arrUpgrades[_local3].secondType == 4) {
this.arrAllies[_local4].data = this.arrAllies[_local4].data + this.arrAllies[_local4].arrUpgrades[_local3].secondValue;
}
_local3++;
}
_local4++;
}
_local4 = 0;
while (_local4 < this.arrAllies.length) {
if (((this.arrAllies[_local4].type == 4) || (this.arrAllies[_local4].type == 8)) || (this.arrAllies[_local4].type == 9)) {
if (this.arrAllies[_local4].blnDestroyed == false) {
if (this.arrAllies[_local4].type == 4) {
_local11 = _local11 + this.arrAllies[_local4].data;
} else if (this.arrAllies[_local4].type == 8) {
_local10 = _local10 + this.arrAllies[_local4].data;
} else if (this.arrAllies[_local4].type == 9) {
_local9 = _local9 + this.arrAllies[_local4].data;
}
}
}
_local4++;
}
if (_local9 > 0.75) {
_local9 = 0.75;
}
_root.menu_mc.inside.buffDamage_txt.text = Math.round(_local10 * 100) + "%";
_root.menu_mc.inside.buffHealth_txt.text = Math.round(_local11 * 100) + "%";
_root.menu_mc.inside.buffReload_txt.text = Math.round(_local9 * 100) + "%";
var _local15 = Math.round(_local10 * _local14);
var _local17 = Math.round(_local11 * _local12);
var _local16 = -1 * Math.round(_local9 * _local13);
_root.menu_mc.inside.actualDamage_txt.text = _local15;
_root.menu_mc.inside.actualHealth_txt.text = _local17;
_root.menu_mc.inside.actualReload_txt.text = _local16;
_root.menu_mc.inside.totalDamage_txt.text = _local15 + _local14;
_root.menu_mc.inside.totalHealth_txt.text = _local17 + _local12;
_root.menu_mc.inside.totalReload_txt.text = _local16 + _local13;
};
_local2["0\x07"] = function () {
if (this[")\x0F"] == false) {
this[")\x0F"] = true;
this["\x1C\x11"].Set(this["\x1C\x11"].Get() + this["\x0E\r"]);
_root.icoOut.ico1.UpdateGold();
if (this["]\x04"] == "storage") {
this.arrStorage[this.intPickUpSlot].blnInUse = false;
} else if (this["]\x04"] == "slot") {
this.arrSlots[this.intPickUpSlot].blnOpen = true;
var _local5 = -1;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
if (this.arrAllies[_local4].name == this.arrSlots[this.intPickUpSlot].gunName) {
_local5 = _local4;
break;
}
_local4++;
}
if (_local5 != -1) {
this.arrAllies.splice(_local5, 1);
}
}
if (this["]\x04"] == "slot") {
this.;\n(this.intPickUpSlot);
}
this.%\x11(_root[this["\x17\f"]]._x, _root[this["\x17\f"]]._y);
this["\x19\x02"] = 0;
_root[this["\x17\f"]].removeMovieClip();
_global.gamePaused = false;
this.`\x04();
this["[\x07"] = false;
}
};
_local2["\x10\x0E"] = function () {
if (this[")\x0F"] == false) {
this[")\x0F"] = true;
this["\x19\x02"] = 2;
_global.gamePaused = false;
this.`\x04();
this["[\x07"] = false;
}
};
_local2["^\x02"] = function () {
var _local2 = 0;
while (_local2 < this.arrStorage.length) {
if (this.arrStorage[_local2].blnInUse == true) {
this.arrStorage[_local2].gun.damageTaken = 0;
this.arrStorage[_local2].gun.type = this.arrStorage[_local2].gun.saveType;
this.arrStorage[_local2].gun.blnDestroyed = false;
}
_local2++;
}
};
_local2["\x07\x06"] = function () {
if (this["\x19\x02"] == 2) {
if (this["<\x11"] == 0) {
_root[this["\x17\f"]]._x = _root[this["\x17\f"]]._x + ((this["\x04\x06"]._x - _root[this["\x17\f"]]._x) * 0.2);
_root[this["\x17\f"]]._y = _root[this["\x17\f"]]._y + ((this["\x04\x06"]._y - _root[this["\x17\f"]]._y) * 0.2);
if ((Math.abs(this["\x04\x06"]._x - _root[this["\x17\f"]]._x) < 1) && (Math.abs(this["\x04\x06"]._y - _root[this["\x17\f"]]._y) < 1)) {
this["\x19\x02"] = 0;
_root[this["\x17\f"]].removeMovieClip();
if (this["]\x04"] == "buy") {
_root.icoOut.ico1.turret_transition.gotoAndStop(("turret" + this["\r\x0F"]) + "_APPEAR");
} else if (this["]\x04"] == "storage") {
var \x18\x03 = eval ("_root.icoOut.ico1." + this.arrStorage[this.intPickUpSlot].iconName);
\x18\x03.gotoAndStop(this.arrStorage[this.intPickUpSlot].gun.type);
\x18\x03._visible = true;
} else if (this["]\x04"] == "slot") {
var 7\x0B = -1;
var p = 0;
while (p < this.arrAllies.length) {
if (this.arrAllies[p].name == this.arrSlots[this.intPickUpSlot].gunName) {
Set("7\x0B", p);
break;
}
p++;
}
var \x18\x03 = _root[this.arrSlots[this.intPickUpSlot].gunName];
\x18\x03.gotoAndStop(this.arrAllies[7\x0B].type);
\x18\x03._visible = true;
}
}
} else {
this["<\x11"]--;
}
}
};
_local2["\x13\f"] = function (_arg3) {
_root.attachMovie("turret", this["\x17\f"], 40000);
_root[this["\x17\f"]].gotoAndPlay(_arg3);
_root[this["\x17\f"]]._x = _xmouse;
_root[this["\x17\f"]]._y = _ymouse;
};
_local2["\x04\x11"] = function () {
if ((this["\x19\x02"] == 0) && (_root.game["3\x05"] == true)) {
if (_root.newGun_mc.hitTest(_xmouse, _ymouse, false)) {
if (this["&\x10"] == false) {
_root.descriptionAnim_mc._visible = true;
_root.descriptionAnim_mc.gotoAndStop(15);
_root.descriptionAnim_mc.description_mc.description_txt.text = _root.icoOut.ico1.GetTurretDescription();
_root.descriptionAnim_mc.description_mc.title_txt.text = _root.icoOut.ico1.GetTurretTitle();
_root.descriptionAnim_mc.description_mc.cost_txt.text = _root.icoOut.ico1.GetTurretCost();
_root.descriptionAnim_mc.description_mc.weaponType_txt.text = _root.icoOut.ico1.GetWeaponType();
this["&\x10"] = true;
}
_root.descriptionAnim_mc._x = _xmouse;
_root.descriptionAnim_mc._y = _ymouse;
} else if (this["&\x10"] == true) {
_root.descriptionAnim_mc._visible = false;
this["&\x10"] = false;
}
} else if (this["&\x10"] == true) {
_root.descriptionAnim_mc._visible = false;
this["&\x10"] = false;
}
};
_local2["\x1C\x04"] = function () {
_root.clouds.swapDepths(1);
_root.clouds.removeMovieClip();
};
_local2.SpawnEnemy = function (_arg5) {
var _local3 = "enemy_" + this["\x17\x0F"];
_root.attachMovie(_arg5, _local3, this["\x17\x0F"]);
if (_root[_local3].type == "Enemy_53") {
_root[_local3]._x = Stage.width + 300;
_root[_local3]._y = 220;
} else if (_root[_local3].\x16\x12() == "float") {
if (_root[_local3].type == "Enemy_48") {
_root[_local3]._x = this.RandNum(350, 450);
} else {
_root[_local3]._x = this.RandNum(350, 675);
}
_root[_local3]._y = Stage.height + _root[_local3]._height;
} else if (_root[_local3].\x16\x12() == "parachute") {
_root[_local3]._x = this.RandNum(350, 675);
_root[_local3]._y = -_root[_local3]._height;
} else if (_root[_local3].\x16\x12() == "plane") {
_root[_local3]._x = 710;
_root[_local3]._y = this.RandNum(25, 125);
_root[_local3].\x03\x11();
} else if (_root[_local3].\x16\x12() == "boss") {
_root[_local3]._x = Stage.width + _root[_local3]._width;
_root[_local3]._y = this.RandNum(170, 190);
} else if (_root[_local3].\x16\x12() == "miniboss") {
_root[_local3]._x = Stage.width + _root[_local3]._width;
_root[_local3]._y = this.RandNum(85, 300);
} else if (_root[_local3].\x16\x12() == "ground") {
_root[_local3]._x = Stage.width + _root[_local3]._width;
_root[_local3]._y = this.RandNum(325, 343);
} else {
_root[_local3]._x = 702;
_root[_local3]._y = this.RandNum(0, 325);
}
this["^\x05"].push(_local3);
this["\x17\x0F"]++;
if (this["\x17\x0F"] > 7000) {
this["\x17\x0F"] = 5000;
}
if (_root[_local3].type == "Enemy_18") {
var _local4 = 0;
while (_local4 < this["^\x05"].length) {
if (_root[this["^\x05"][_local4]].type == "Enemy_18") {
if (_root[_local3]._y < _root[this["^\x05"][_local4]]._y) {
_root[_local3].swapDepths(_root[this["^\x05"][_local4]]);
}
}
_local4++;
}
}
};
_local2.SpawnEnemyAtLocation = function (_arg5, _arg4) {
var _local3 = "enemy_" + this["\x17\x0F"];
_root.attachMovie(_arg5, _local3, this["\x17\x0F"]);
_root[_local3]._x = _arg4._x;
_root[_local3]._y = _arg4._y;
this["^\x05"].push(_local3);
this["\x17\x0F"]++;
if (this["\x17\x0F"] > 7000) {
this["\x17\x0F"] = 5000;
}
return(_local3);
};
_local2["\x18\x0F"] = function () {
var _local5 = 0;
var _local4 = 0;
while (_local4 < this["^\x05"].length) {
if (((((((_root[this["^\x05"][_local4]].type == "Enemy_20") || (_root[this["^\x05"][_local4]].type == "Enemy_21")) || (_root[this["^\x05"][_local4]].type == "Enemy_22")) || (_root[this["^\x05"][_local4]].type == "Enemy_33")) || (_root[this["^\x05"][_local4]].type == "Enemy_53")) || (_root[this["^\x05"][_local4]].type == "Enemy_54")) || (_root[this["^\x05"][_local4]].type == "Enemy_555")) {
if (this.myLevelManager.=\r() == 10) {
if (_global.currentCampaign != "twentyfive_bt") {
_local5++;
}
}
}
_local4++;
}
return(this["^\x05"].length - _local5);
};
_local2.RandNum = function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
};
_local2["3\n"] = function (_arg3, _arg5, _arg4) {
var thisRef = this;
var \x0F\x0B = ("particle_" + this["%\x02"]);
_root.attachMovie(_arg3, \x0F\x0B, this["%\x02"]);
_root[\x0F\x0B]._x = _arg5;
_root[\x0F\x0B]._y = _arg4;
_root[\x0F\x0B].!(this["\x13\x10"]);
if (_arg3 == "casing") {
_root[\x0F\x0B].%\x0B();
}
this["%\x02"]++;
this["\x1C\x0F"].push(\x0F\x0B);
if (this["%\x02"] > 27000) {
this["%\x02"] = 25000;
}
_root[\x0F\x0B].removeCallback = function (myName) {
thisRef.\x10\x12(\x0F\x0B);
};
};
_local2["\x10\x12"] = function (_arg3) {
var _local2 = 0;
while (_local2 < this["\x1C\x0F"].length) {
if (_arg3 == this["\x1C\x0F"][_local2]) {
this["\x1C\x0F"].splice(_local2, 1);
break;
}
_local2++;
}
};
_local2["\x02\x0F"] = function () {
};
// unexpected jump
// unexpected jump
_local2["4\x07"] = function (_arg5, _arg8, _arg9) {
var _local4 = 0;
var _local3 = new Array();
if (_arg5 == "Enemy_2") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_3") {
_local3.push("piece1");
_local4 = this.RandNum(4, 8);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_4") {
_local3.push("piece1");
_local4 = this.RandNum(4, 8);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_5") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_6") {
_local3.push("piece1");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "spark") {
_local3.push("spark");
_local4 = this.RandNum(5, 8);
} else if (_arg5 == "Enemy_7") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_8") {
_local3.push("piece1");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_9") {
_local3.push("piece1");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_10") {
_local3.push("piece1");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_11") {
_local3.push("piece1");
_local4 = this.RandNum(5, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_12") {
_local3.push("piece1");
_local4 = this.RandNum(5, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_20") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(15, 25);
this.\x02\x0F();
} else if (_arg5 == "Enemy_21") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(15, 25);
this.\x02\x0F();
} else if (_arg5 == "casing") {
_local3.push("casing");
_local4 = this.RandNum(1, 1);
} else if (_arg5 == "DecoyDrone") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Defender") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "ControlUnit") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_MonsterBullet") {
_local3.push("piece1");
_local4 = this.RandNum(2, 3);
this.\x06\x05(_arg8, _arg9, 0);
} else if (_arg5 == "Enemy_15") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_17") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(7, 9);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_18") {
_local3.push("piece1");
_local4 = this.RandNum(7, 9);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_13") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_19") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_30") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_31") {
_local3.push("piece1");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_32") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_33") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_34") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_22") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_35") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_36") {
_local3.push("piece1");
_local4 = this.RandNum(4, 8);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_37") {
_local3.push("piece1");
_local4 = this.RandNum(4, 8);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_38") {
_local3.push("piece1");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_39") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_40") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_42") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_41") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_44") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(7, 9);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_46") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(2, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_47") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_48") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_49") {
_local3.push("piece1");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_50") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(4, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_51") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(3, 7);
_global.SoundManager.PlaySound("SmallUnitDie");
} else if (_arg5 == "Enemy_45") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_52") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
} else if (_arg5 == "Enemy_53") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(14, 18);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_54") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_55") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(9, 15);
_global.SoundManager.PlaySound("BigUnitDie");
} else if (_arg5 == "Enemy_56") {
_local3.push("piece1");
_local3.push("piece2");
_local4 = this.RandNum(6, 10);
_global.SoundManager.PlaySound("MediumUnitDie");
}
var _local6 = 0;
while (_local6 < _local4) {
var _local7 = this.RandNum(0, _local3.length - 1);
this.3\n(_local3[_local7], _arg8, _arg9);
_local6++;
}
};
_local2["\x06\x07"] = function (_arg9, _arg8, _arg10, _arg12, _arg11) {
var thisRef = this;
var _local4 = 0;
while (_local4 < _arg10) {
var _local3 = "avatarBullet_" + this[";\x04"];
var _local5 = this.RandNum(0, 360);
var _local7 = (Math.PI * _local5) / 180;
var _local6 = this.RandNum(1, 7);
_root.attachMovie("BulletFlameShard", _local3, this[";\x04"]);
_root[_local3]._x = _arg9;
_root[_local3]._y = _arg8;
_root[_local3].\x18\x11(this["\x13\x10"], _local6);
_root[_local3].\x02\x10(_local7);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]["9\x05"] = true;
_root[_local3]._enemy = false;
_root[_local3]._damage = Math.round(_arg11 * 0.25);
_root[_local3]._rotation = _local5;
_root[_local3]._enemyProtected = _arg12;
_root[_local3]["\x15\r"] = 15;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
_local4++;
}
};
_local2["\x12\x06"] = function (_arg9, _arg7, _arg8, _arg10) {
var thisRef = this;
var _local3 = "acidBullet_" + this[";\x04"];
var _local4 = _arg8;
var _local6 = (Math.PI * _local4) / 180;
var _local5 = 4;
_root.attachMovie("acidDropBullet", _local3, this[";\x04"]);
_root[_local3]._x = _arg9;
_root[_local3]._y = _arg7;
_root[_local3].\x18\x11(this["\x13\x10"], _local5);
_root[_local3].\x02\x10(_local6);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]["9\x05"] = true;
_root[_local3]._enemy = false;
_root[_local3]._damage = _arg10;
_root[_local3]._rotation = _local4;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
};
_local2["'\f"] = function (_arg12, _arg11, _arg10, _arg13) {
var thisRef = this;
var _local9 = 360 / _arg10;
var _local8 = 0;
var _local4 = 0;
while (_local4 < _arg10) {
var _local3 = "avatarBullet_" + this[";\x04"];
var _local5 = _local8;
_local8 = _local8 + _local9;
var _local7 = (Math.PI * _local5) / 180;
var _local6 = 8;
_root.attachMovie("bullet2", _local3, this[";\x04"]);
_root[_local3]._x = _arg12;
_root[_local3]._y = _arg11;
_root[_local3]._xscale = 75;
_root[_local3]._yscale = _root[_local3]._xscale;
_root[_local3].\x18\x11(this["\x13\x10"], _local6);
_root[_local3].\x02\x10(_local7);
_root[_local3].3\x04(_root[_local3]._x, _root[_local3]._y);
_root[_local3]["9\x05"] = true;
_root[_local3]._enemy = false;
_root[_local3]._damage = _arg13;
_root[_local3]._rotation = _local5;
this[";\x04"]++;
this["\x15\x0F"].push(_local3);
_root[_local3].removeCallback = function (_arg1) {
thisRef.`\x10(_arg1);
};
_local4++;
}
};
_local2.ReportEnemyDeath = function (_arg3) {
var _local2 = 0;
while (_local2 < this["^\x05"].length) {
if (this["^\x05"][_local2] == _arg3) {
this["^\x05"].splice(_local2, 1);
break;
}
_local2++;
}
if (this["^\x05"].length == 0) {
if (this.myLevelManager.6\x0B() < 1) {
this.7();
}
}
};
_local2.RemoveEnemy = function (_arg3) {
var _local2 = 0;
while (_local2 < this["^\x05"].length) {
if (this["^\x05"][_local2] == _arg3) {
this["^\x05"].splice(_local2, 1);
break;
}
_local2++;
}
};
_local2["7"] = function () {
var _local5 = this.\x06\x11();
this.+\x0F();
if ((this.\x06\x11() == true) && (_local5 == false)) {
_global.achievementUnlocked7.Set(226814);
this.\f\x11();
}
this._level.Set(this._level.Get() + 1);
_root.output_mc._visible = true;
var _local4 = 10;
if (_global.currentCampaign == "twentyfive_bt") {
_local4 = 25;
}
if (this._level.Get() > _local4) {
if (this.1\x10(_global.currentCampaign) == true) {
this.\x1B\x06();
_root.output_mc.gotoAndPlay("EndChallenge");
this["\f\f"] = _global.currentCampaign;
} else if (_global.currentCampaign == "end_bt") {
this.\x1B\x06();
_root.output_mc.gotoAndPlay(572);
} else {
this.\x1B\x06();
_root.output_mc.gotoAndPlay(353);
}
this.2\n();
} else {
_root.output_mc.gotoAndPlay("win");
}
};
_local2["+\x0F"] = function () {
var _local2 = 0;
while (_local2 < this.arrAllies.length) {
this["\x03\r"][this.arrAllies[_local2].type] = 1;
_local2++;
}
};
_local2["\x06\x11"] = function () {
var _local2 = 1;
while (_local2 < this.arrAllies.length) {
if (this["\x03\r"][_local2] == 0) {
return(false);
}
_local2++;
}
return(true);
};
_local2["\x1A\x11"] = function (_arg12) {
_root.output_mc.inside.score_txt.text = this["\x05\x02"].Get() + " Points";
_root.output_mc.inside.time_txt.text = this.challengeTimer.\x07\x12();
var _local10 = 100 - Math.round((this["#\x0F"] / this["%\x04"]) * 100);
if (this["#\x0F"] == 0) {
_local10 = 100;
}
if (this["%\x04"] == 0) {
_local10 = 100;
}
_root.output_mc.inside.accuracy_txt.text = _local10 + " %";
var _local6 = 0;
var _local7 = 0;
var _local8 = 0;
var _local4 = 0;
while (_local4 < _global.Challenges.length) {
if (_global.Challenges[_local4].strButton == this["\f\f"]) {
_local6 = _global.Challenges[_local4].maxTimeInSeconds * 1000;
_local7 = _global.Challenges[_local4].maxTimeBonus;
_local8 = _global.Challenges[_local4].maxAccuracyBonus;
break;
}
_local4++;
}
var _local5 = _local6 - this.challengeTimer.'\x11();
if (_local5 < 0) {
_local5 = 0;
}
_local5 = Math.round((_local5 / _local6) * _local7);
if (_arg12 == false) {
_local5 = 0;
}
var _local9 = Math.round((_local10 / 100) * _local8);
_local5 = Math.round(_local5 / 10) * 10;
_local9 = Math.round(_local9 / 10) * 10;
_root.output_mc.inside.timeBonus_txt.text = _local5 + " Points";
_root.output_mc.inside.accuracyBonus_txt.text = _local9 + " Points";
var _local11 = (this["\x05\x02"].Get() + _local5) + _local9;
_root.output_mc.inside.total_txt.text = _local11 + " Points!";
_root.score_txt.text = this["\x05\x02"].Get();
this.SubmitScore(_local11);
};
_local2.SubmitScore = function (_arg6) {
var _local5 = "";
var _local4 = "";
var _local3 = 0;
while (_local3 < _global.Challenges.length) {
if (_global.Challenges[_local3].strButton == this["\f\f"]) {
_local5 = _global.Challenges[_local3].parameter1;
_local4 = _global.Challenges[_local3].parameter2;
break;
}
_local3++;
}
this["%\x0E"] = this._name;
this[">\x05"] = _arg6;
this.\x1F(_local5, _local4, this["%\x0E"], this[">\x05"]);
};
_local2["\x1F"] = function (_arg5, _arg4, _arg3, _arg2) {
var _local1 = new LoadVars();
var > = new LoadVars();
_local1.flashkey = _arg4;
_local1.SU0249 = _arg5;
_local1.bmFtZTE = 8\x10.rankz.Armor_Bot_30_En_AS1.Encode(_arg3);
_local1.c2NvcmUx = 8\x10.rankz.Armor_Bot_30_En_AS1.Encode(_arg2 + "j%e%a%n%s");
_local1.flashkey = _local1.flashkey.split("=").join("");
_local1.SU0249 = _local1.SU0249.split("=").join("");
>.onLoad = function (_arg1) {
if (_arg1) {
}
};
_local1.sendAndLoad("http://rankz.armorbot.com/submit/", >, "POST");
};
_local2["4\x03"] = function (_arg4) {
if (_arg4 == "win") {
_root.output_mc._visible = false;
if (this._level.Get() == this["\x13\x0F"]) {
this.\x01\x05();
}
if (this.1\x10(_global.currentCampaign) == false) {
this.@\x04();
}
this.\x05\x0B();
} else if (_arg4 == "dead") {
this.\x1A\x10();
}
};
_local2["@\x04"] = function () {
if (this.)\n() == true) {
return(undefined);
}
var _local3 = SharedObject.getLocal(_global.loadSlot);
_local3.data.blnInUse = true;
_local3.data.strName = this._name;
_local3.data.strDifficulty = this["\x1E"];
_local3.data.strCampaign = _global.currentCampaign;
_local3.data.data1 = this["\x1C\x11"].Store();
_local3.data.data2 = this._level.Store();
var _local11 = new \x17\x04();
var _local12 = new \x17\x04();
_local11.Set(4);
_local12.Set(2000);
_local3.data.atd = this["\x07\x04"].Store();
_local3.data.atr = this["`\x05"].Store();
_local3.data.ti = this["[\x03"].'\x11();
var _local10 = new \x17\x04();
var _local7 = new \x17\x04();
var _local6 = new \x17\x04();
var _local9 = new \x17\x04();
var _local8 = new \x17\x04();
var _local5 = new \x17\x04();
_local3.data.data5 = this.beatIceCampaign.Store();
_local3.data.data6 = this.beatRigCampaign.Store();
_local3.data.data7 = this.beatForestCampaign.Store();
_local3.data.data8 = this.beatHillsCampaign.Store();
_local3.data.data9 = this.beatWaterfallCampaign.Store();
_local3.data.data10 = this.beatEndCampaign.Store();
_local3.data.gu = this["\x03\r"];
if (_global.cheatsEnabled.Get() == -1) {
_local3.data.data12 = _global.cheatsEnabled.Store();
}
_local3.data.data3 = _local11.Store();
_local3.data.data4 = _local12.Store();
if (this.arrAllies.length > 0) {
_local10.Set(this.arrAllies[0].<\x06());
_local3.data.data13 = _local10.Store();
} else {
_local10.Set(45624);
_local3.data.data13 = _local10.Store();
}
if (this.arrAllies.length > 1) {
_local7.Set(this.arrAllies[1].<\x06());
_local3.data.data14 = _local7.Store();
} else {
_local7.Set(45624);
_local3.data.data14 = _local7.Store();
}
if (this.arrAllies.length > 2) {
_local6.Set(this.arrAllies[2].<\x06());
_local3.data.data15 = _local6.Store();
} else {
_local6.Set(45624);
_local3.data.data15 = _local6.Store();
}
if (this.arrAllies.length > 3) {
_local9.Set(this.arrAllies[3].<\x06());
_local3.data.data16 = _local9.Store();
} else {
_local9.Set(45624);
_local3.data.data16 = _local9.Store();
}
if (this.arrAllies.length > 4) {
_local8.Set(this.arrAllies[4].<\x06());
_local3.data.data17 = _local8.Store();
} else {
_local8.Set(45624);
_local3.data.data17 = _local8.Store();
}
if (this.arrAllies.length > 5) {
_local5.Set(this.arrAllies[5].<\x06());
_local3.data.data18 = _local5.Store();
} else {
_local5.Set(45624);
_local3.data.data18 = _local5.Store();
}
_local3.data.arrAllies = this.arrAllies;
_local3.data.arrStorage = this.arrStorage;
_local3.data.arrSlots = this.arrSlots;
_local3.flush();
_global.currentProfile.blnInUse = true;
_global.currentProfile.strName = this._name;
_global.currentProfile.strDifficulty = this["\x1E"];
_global.currentProfile.strCampaign = _global.currentCampaign;
_global.currentProfile.data1 = this["\x1C\x11"].Store();
_global.currentProfile.data2 = this._level.Store();
_global.currentProfile.atd = this["\x07\x04"].Store();
_global.currentProfile.atr = this["`\x05"].Store();
_global.currentProfile.data3 = _local11.Store();
_global.currentProfile.data4 = _local12.Store();
_global.currentProfile.data5 = this.beatIceCampaign.Store();
_global.currentProfile.data6 = this.beatRigCampaign.Store();
_global.currentProfile.data7 = this.beatForestCampaign.Store();
_global.currentProfile.data8 = this.beatHillsCampaign.Store();
_global.currentProfile.data9 = this.beatWaterfallCampaign.Store();
_global.currentProfile.data10 = this.beatEndCampaign.Store();
_global.currentProfile.gu = this["\x03\r"];
_global.currentProfile.ti = this["[\x03"].'\x11();
if (_global.cheatsEnabled.Get() == -1) {
_global.currentProfile.data12 = _global.cheatsEnabled.Store();
}
_global.currentProfile.arrAllies = this.arrAllies;
_global.currentProfile.arrStorage = this.arrStorage;
_global.currentProfile.arrSlots = this.arrSlots;
var _local4 = SharedObject.getLocal("settings");
_local4.data.a1 = _global.achievementUnlocked1.Store();
_local4.data.a2 = _global.achievementUnlocked2.Store();
_local4.data.a3 = _global.achievementUnlocked3.Store();
_local4.data.a4 = _global.achievementUnlocked4.Store();
_local4.data.a5 = _global.achievementUnlocked5.Store();
_local4.data.a6 = _global.achievementUnlocked6.Store();
_local4.data.a7 = _global.achievementUnlocked7.Store();
_local4.data.a8 = _global.achievementUnlocked8.Store();
_local3.flush();
};
_local2["7\r"] = function (_arg6, type, _arg4, _arg7, _arg5) {
if (_arg6 == true) {
_root.icoOut.ico1.repair_txt.text = "";
_root.icoOut.ico1.sell_txt.text = "";
this["\x12\x10"] = 0;
} else {
this["\x12\x10"] = this["\x1A\x04"] - Math.round(((_arg4 - _arg7) / _arg4) * this["\x1A\x04"]);
if (this["\x12\x10"] > this["\x1A\x04"]) {
this["\x12\x10"] = this["\x1A\x04"];
}
this["\x0E\r"] = Math.round(_root.icoOut.ico1.GetTurretCostForType(_arg5) * 0.8);
if (_global.achievementSet3.Get() != -1) {
_root.icoOut.ico1.repair_txt.text = "0 g";
} else {
_root.icoOut.ico1.repair_txt.text = this["\x12\x10"] + " g";
}
_root.icoOut.ico1.sell_txt.text = this["\x0E\r"] + " g";
}
};
_local2["\x13\x12"] = function () {
_root.slot1hotkey_txt.text = "";
_root.slot2hotkey_txt.text = "";
_root.slot3hotkey_txt.text = "";
_root.slot4hotkey_txt.text = "";
_root.slot5hotkey_txt.text = "";
};
_local2.DisplayHotkeyTips = function () {
_root.slot1hotkey_txt.text = this.OutputValue(_global.hotKey1);
_root.slot2hotkey_txt.text = this.OutputValue(_global.hotKey2);
_root.slot3hotkey_txt.text = this.OutputValue(_global.hotKey3);
if (this.arrSlots.length > 3) {
_root.slot4hotkey_txt.text = this.OutputValue(_global.hotKey4);
_root.slot5hotkey_txt.text = this.OutputValue(_global.hotKey5);
_root.slot6hotkey_txt.text = this.OutputValue(_global.hotKey6);
}
};
_local2["\x19\x03"] = function (_arg10, _arg9, _arg12, _arg11) {
var _local5 = new #\x11();
_local5._x = _arg10;
_local5._y = _arg9;
var _local4;
_local4 = _root[this.'\x0F("lightning", _local5, false, "", "")];
var _local3 = new #\x11();
_local3._x = _arg12 - _arg10;
_local3._y = _arg11 - _arg9;
var _local6 = Math.sqrt((_local3._x * _local3._x) + (_local3._y * _local3._y));
var _local7 = Math.atan2(_local3._y, _local3._x);
var _local8 = (360 * _local7) / (Math.PI*2);
if (_local6 > 400) {
_local4.inside.gotoAndStop(3);
} else if (_local6 > 200) {
_local4.inside.gotoAndStop(2);
} else {
_local4.inside.gotoAndStop(1);
}
_local4._width = _local6;
_local4._rotation = _local8;
};
_local2.OutputValue = function (_arg2) {
var _local1 = "";
switch (_arg2) {
case 8 :
_local1 = "BACKSPACE";
break;
case 20 :
_local1 = "CAPSLOCK";
break;
case 17 :
_local1 = "CONTROL";
break;
case 46 :
_local1 = "DELETE";
break;
case 40 :
_local1 = "DOWN";
break;
case 35 :
_local1 = "END";
break;
case 13 :
_local1 = "ENTER";
break;
case 27 :
_local1 = "ESCAPE";
break;
case 36 :
_local1 = "HOME";
break;
case 45 :
_local1 = "INSERT";
break;
case 37 :
_local1 = "LEFT";
break;
case 34 :
_local1 = "PGDN";
break;
case 33 :
_local1 = "PGUP";
break;
case 39 :
_local1 = "RIGHT";
break;
case 16 :
_local1 = "SHIFT";
break;
case 32 :
_local1 = "SPACE";
break;
case 9 :
_local1 = "TAB";
break;
case 38 :
_local1 = "UP";
break;
case 186 :
_local1 = ";";
break;
case 187 :
_local1 = "=";
break;
case 189 :
_local1 = "-";
break;
case 191 :
_local1 = "/";
break;
case 192 :
_local1 = "`";
break;
case 219 :
_local1 = "[";
break;
case 220 :
_local1 = "\\";
break;
case 221 :
_local1 = "]";
break;
case 222 :
_local1 = "'";
break;
case 188 :
_local1 = ",";
break;
case 190 :
_local1 = ".";
break;
case 96 :
_local1 = "NUMPAD 0";
break;
case 97 :
_local1 = "NUMPAD 1";
break;
case 98 :
_local1 = "NUMPAD 2";
break;
case 99 :
_local1 = "NUMPAD 3";
break;
case 100 :
_local1 = "NUMPAD 4";
break;
case 101 :
_local1 = "NUMPAD 5";
break;
case 102 :
_local1 = "NUMPAD 6";
break;
case 103 :
_local1 = "NUMPAD 7";
break;
case 104 :
_local1 = "NUMPAD 8";
break;
case 105 :
_local1 = "NUMPAD 9";
break;
case 106 :
_local1 = "MULTIPLY";
break;
case 107 :
_local1 = "ADD";
break;
case 109 :
_local1 = "SUBTRACT";
break;
case 110 :
_local1 = "DECIMAL";
break;
case 111 :
_local1 = "DIVIDE";
break;
default :
_local1 = chr(_arg2);
_local1.toUpperCase();
}
return(_local1);
};
_local2["\r\f"] = function () {
_root.flash_mc._visible = true;
_root.flash_mc.gotoAndStop(2);
_root.flash_mc.inside.gotoAndPlay(1);
};
_local2["\x19\x04"] = function (_arg4) {
if (this["\r\x04"] == 0) {
this["\r\x04"] = _arg4;
this["\x12\n"] = _arg4;
this["\x1A\x0E"] = 3;
this["`\x07"]._x = _root.bg_mc._x;
this["`\x07"]._y = _root.bg_mc._y;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
this.arrAllies[_local3].startX = _root[this.arrAllies[_local3].name]._x;
this.arrAllies[_local3].startY = _root[this.arrAllies[_local3].name]._y;
_local3++;
}
}
};
_local2["\x11\x10"] = function () {
if ((this["`\x07"]._x != _root.bg_mc._x) || (this["`\x07"]._y != _root.bg_mc._y)) {
this["\r\x04"] = 0;
var _local5 = this["`\x07"]._x - _root.bg_mc._x;
var _local4 = this["`\x07"]._y - _root.bg_mc._y;
_root.bg_mc._x = this["`\x07"]._x;
_root.bg_mc._y = this["`\x07"]._y;
var _local3 = 0;
while (_local3 < this.arrAllies.length) {
_root[this.arrAllies[_local3].name]._x = this.arrAllies[_local3].startX;
_root[this.arrAllies[_local3].name]._y = this.arrAllies[_local3].startY;
_local3++;
}
_local3 = 0;
while (_local3 < this["^\x05"].length) {
_root[this["^\x05"][_local3]]._x = _root[this["^\x05"][_local3]]._x + _local5;
_root[this["^\x05"][_local3]]._y = _root[this["^\x05"][_local3]]._y + _local4;
_local3++;
}
}
};
_local2["\x12\x04"] = function () {
if (_global.gamePaused == false) {
if (this["\r\x04"] > 0) {
this["\r\x04"]--;
if (this["\r\x04"] == 0) {
var _local6 = this["`\x07"]._x - _root.bg_mc._x;
var _local5 = this["`\x07"]._y - _root.bg_mc._y;
_root.bg_mc._x = this["`\x07"]._x;
_root.bg_mc._y = this["`\x07"]._y;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].name]._x = this.arrAllies[_local4].startX;
_root[this.arrAllies[_local4].name]._y = this.arrAllies[_local4].startY;
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]]._x = _root[this["^\x05"][_local4]]._x + _local6;
_root[this["^\x05"][_local4]]._y = _root[this["^\x05"][_local4]]._y + _local5;
_local4++;
}
} else {
this["\x1A\x0E"]--;
if (this["\x1A\x0E"] == 0) {
this["\x1A\x0E"] = 3;
var _local7 = this["\r\x04"] / this["\x12\n"];
var _local9 = this["`\x07"]._x + (this.RandNum(-4, 4) * _local7);
var _local8 = this["`\x07"]._y + (this.RandNum(-4, 4) * _local7);
var _local6 = _local9 - _root.bg_mc._x;
var _local5 = _local8 - _root.bg_mc._y;
_root.bg_mc._x = _local9;
_root.bg_mc._y = _local8;
var _local4 = 0;
while (_local4 < this.arrAllies.length) {
_root[this.arrAllies[_local4].name]._x = _root[this.arrAllies[_local4].name]._x + _local6;
_root[this.arrAllies[_local4].name]._y = _root[this.arrAllies[_local4].name]._y + _local5;
_local4++;
}
_local4 = 0;
while (_local4 < this["^\x05"].length) {
_root[this["^\x05"][_local4]]._x = _root[this["^\x05"][_local4]]._x + _local6;
_root[this["^\x05"][_local4]]._y = _root[this["^\x05"][_local4]]._y + _local5;
_local4++;
}
}
}
}
}
};
_local2["\x06\x05"] = function (_arg6, _arg7, maxDamage) {
var _local4 = new #\x11();
_local4._x = _arg6;
_local4._y = _arg7;
var _local5 = this.'\x0F("damageExplosionSmall", _local4, false, "", "");
_root[_local5]._width = this.RandNum(80, 150);
_root[_local5]._yscale = _root[_local5]._xscale;
_global.SoundManager.PlaySound("SmallExplosion");
};
_local2["0\r"] = function (_arg6, _arg7, maxDamage) {
var _local4 = new #\x11();
_local4._x = _arg6;
_local4._y = _arg7;
var _local5 = this.'\x0F("damageExplosionBig", _local4, false, "", "");
_root[_local5]._width = this.RandNum(100, 175);
_root[_local5]._yscale = _root[_local5]._xscale;
_global.SoundManager.PlaySound("MediumExplosion");
this.\r\f();
this.\x19\x04(20);
};
_local2["\f\x02"] = function (_arg5, _arg6, maxDamage) {
var _local3 = new #\x11();
_local3._x = _arg5;
_local3._y = _arg6;
var _local4 = this.'\x0F("damageExplosionBig", _local3, false, "", "");
_root[_local4]._width = this.RandNum(150, 250);
_root[_local4]._yscale = _root[_local4]._xscale;
this.\r\f();
this.\x19\x04(20);
};
_local2["\x06\n"] = function () {
if (_global.gamePaused == false) {
if (this["\x12\r"] == false) {
if (_root[this.arrAllies[this["'\r"]].selectField].hitTest(_xmouse, _ymouse)) {
this["7\x0F"] = true;
this["^\x0B"]._x = _root[this.arrAllies[this["'\r"]].name]._x;
this["^\x0B"]._y = _root[this.arrAllies[this["'\r"]].name]._y;
}
}
}
};
_local2["4\n"] = function () {
if (this["7\x0F"] == true) {
this["7\x0F"] = false;
_root["\x04\n"].clear();
if (_global.gamePaused == false) {
if (this["\x12\r"] == false) {
var _local5 = 0;
while (_local5 < this.arrAllies.length) {
if (_local5 != this["'\r"]) {
if (_root[this.arrAllies[_local5].selectField].hitTest(_xmouse, _ymouse)) {
var _local8 = false;
var _local4 = 0;
while (_local4 < this["#\x03"].length) {
if (this["#\x03"][_local4].from == this.arrAllies[this["'\r"]].name) {
this.\x01\x03(this["#\x03"][_local4].name);
_root[this.arrAllies[this["'\r"]].name].gun.energy_mc._visible = true;
_root[this.arrAllies[this["'\r"]].name].gun.energy_mc.gotoAndPlay(1);
var _local6 = new #\x11();
_local6._x = _root[this.arrAllies[_local5].name]._x;
_local6._y = _root[this.arrAllies[_local5].name]._y - 15;
var _local7 = new #\x11();
_local7._x = this["^\x0B"]._x - _local6._x;
_local7._y = this["^\x0B"]._y - _local6._y;
var _local10 = Math.atan2(_local7._y, _local7._x);
var _local11 = (360 * _local10) / (Math.PI*2);
var _local9 = this.'\x0F("shield", _local6, false, "", "");
this["#\x03"][_local4].to = this.arrAllies[_local5].name;
this["#\x03"][_local4].from = this.arrAllies[this["'\r"]].name;
this["#\x03"][_local4].power = 0.3;
this["#\x03"][_local4].avoid = false;
this["#\x03"][_local4].name = _local9;
_root[_local9]._rotation = _local11;
_local8 = true;
break;
}
_local4++;
}
if (_local8 == false) {
_root[this.arrAllies[this["'\r"]].name].gun.energy_mc._visible = true;
_root[this.arrAllies[this["'\r"]].name].gun.energy_mc.gotoAndPlay(1);
var _local6 = new #\x11();
_local6._x = _root[this.arrAllies[_local5].name]._x;
_local6._y = _root[this.arrAllies[_local5].name]._y - 15;
var _local7 = new #\x11();
_local7._x = this["^\x0B"]._x - _local6._x;
_local7._y = this["^\x0B"]._y - _local6._y;
var _local10 = Math.atan2(_local7._y, _local7._x);
var _local11 = (360 * _local10) / (Math.PI*2);
var _local9 = this.'\x0F("shield", _local6, false, "", "");
this["#\x03"].push({to:this.arrAllies[_local5].name, from:this.arrAllies[this["'\r"]].name, power:this.arrAllies[this["'\r"]].data, avoid:false, name:_local9});
_root[_local9]._rotation = _local11;
}
break;
}
}
_local5++;
}
}
}
}
};
_local2["\x11\x0E"] = function () {
if (this["7\x0F"] == true) {
_root["\x04\n"].clear();
_root["\x04\n"].lineStyle(2, 16724889, 80);
var _local3 = new Object();
var _local4 = new Object();
_local3.x = this["^\x0B"]._x;
_local3.y = this["^\x0B"]._y;
_local4.x = _xmouse;
_local4.y = _ymouse;
_root["\x04\n"].globalToLocal(_local3);
_root["\x04\n"].globalToLocal(_local4);
_root["\x04\n"].moveTo(_local3.x, _local3.y);
_root["\x04\n"].lineTo(_local4.x, _local4.y);
var _local5 = new #\x11();
_local5._x = this["^\x0B"]._x - _xmouse;
_local5._y = this["^\x0B"]._y - _ymouse;
var _local9 = Math.atan2(_local5._y, _local5._x);
var _local7 = (360 * _local9) / (Math.PI*2);
var _local8 = (Math.PI * (_local7 + 35)) / 180;
var _local6 = (Math.PI * (_local7 - 35)) / 180;
_local5._x = Math.cos(_local8) * 8;
_local5._y = Math.sin(_local8) * 8;
_local3.x = _xmouse;
_local3.y = _ymouse;
_local4.x = _local5._x + _xmouse;
_local4.y = _local5._y + _ymouse;
_root["\x04\n"].globalToLocal(_local3);
_root["\x04\n"].globalToLocal(_local4);
_root["\x04\n"].moveTo(_local3.x, _local3.y);
_root["\x04\n"].lineTo(_local4.x, _local4.y);
_local5._x = Math.cos(_local6) * 8;
_local5._y = Math.sin(_local6) * 8;
_local3.x = _xmouse;
_local3.y = _ymouse;
_local4.x = _local5._x + _xmouse;
_local4.y = _local5._y + _ymouse;
_root["\x04\n"].globalToLocal(_local3);
_root["\x04\n"].globalToLocal(_local4);
_root["\x04\n"].moveTo(_local3.x, _local3.y);
_root["\x04\n"].lineTo(_local4.x, _local4.y);
}
};
_local2["<\x03"] = function () {
var _local2 = 0;
if (this.beatIceCampaign.Get() != -1) {
_local2++;
}
if (this.beatRigCampaign.Get() != -1) {
_local2++;
}
if (this.beatForestCampaign.Get() != -1) {
_local2++;
}
if (this.beatHillsCampaign.Get() != -1) {
_local2++;
}
if (this.beatWaterfallCampaign.Get() != -1) {
_local2++;
}
if (this.beatEndCampaign.Get() != -1) {
_local2++;
}
return(_local2);
};
_local2["\x02\x07"] = function () {
var _local2 = false;
if (this.beatRigCampaign.Get() == -1) {
this.beatRigCampaign.Set(230600);
_local2 = true;
}
if (_local2 == false) {
if (this.beatForestCampaign.Get() == -1) {
this.beatForestCampaign.Set(230600);
_local2 = true;
}
}
if (_local2 == false) {
if (this.beatIceCampaign.Get() == -1) {
this.beatIceCampaign.Set(230600);
_local2 = true;
}
}
if (_local2 == false) {
if (this.beatHillsCampaign.Get() == -1) {
this.beatHillsCampaign.Set(230600);
_local2 = true;
}
}
if (_local2 == false) {
if (this.beatWaterfallCampaign.Get() == -1) {
this.beatWaterfallCampaign.Set(230600);
_local2 = true;
}
}
if (_local2 == false) {
if (this.beatEndCampaign.Get() == -1) {
this.beatEndCampaign.Set(230600);
_local2 = true;
}
}
};
_local2["\x04\x07"] = function (_arg9) {
var _local5 = new Array();
var _local4 = 0;
var _local3 = 0;
while (_local3 < this["^\x05"].length) {
if (this["^\x05"][_local3] != _arg9) {
if (_root[this["^\x05"][_local3]].type == "Enemy_54") {
_local4 = _local4 + 20;
} else if (((((((((_root[this["^\x05"][_local3]].type == "Enemy_19") || (_root[this["^\x05"][_local3]].type == "Enemy_13")) || (_root[this["^\x05"][_local3]].type == "Enemy_22")) || (_root[this["^\x05"][_local3]].type == "Enemy_33")) || (_root[this["^\x05"][_local3]].type == "Enemy_34")) || (_root[this["^\x05"][_local3]].type == "Enemy_40")) || (_root[this["^\x05"][_local3]].type == "Enemy_39")) || (_root[this["^\x05"][_local3]].type == "Enemy_47")) || (_root[this["^\x05"][_local3]].type == "Enemy_45")) {
_local4 = _local4 + 4;
} else if ((((((_root[this["^\x05"][_local3]].type == "Enemy_10") || (_root[this["^\x05"][_local3]].type == "Enemy_8")) || (_root[this["^\x05"][_local3]].type == "Enemy_37")) || (_root[this["^\x05"][_local3]].type == "Enemy_42")) || (_root[this["^\x05"][_local3]].type == "Enemy_52")) || (_root[this["^\x05"][_local3]].type == "Enemy_44")) {
_local4 = _local4 + 2;
} else if ((((((_root[this["^\x05"][_local3]].type == "Enemy_30") || (_root[this["^\x05"][_local3]].type == "Enemy_31")) || (_root[this["^\x05"][_local3]].type == "Enemy_16")) || (_root[this["^\x05"][_local3]].type == "Enemy_7")) || (_root[this["^\x05"][_local3]].type == "Enemy_41")) || (_root[this["^\x05"][_local3]].type == "Enemy_48")) {
_local4 = _local4 + -3;
} else if (((((_root[this["^\x05"][_local3]].type == "Enemy_2") || (_root[this["^\x05"][_local3]].type == "Enemy_5")) || (_root[this["^\x05"][_local3]].type == "Enemy_38")) || (_root[this["^\x05"][_local3]].type == "Enemy_32")) || (_root[this["^\x05"][_local3]].type == "Enemy_35")) {
_local4 = _local4 + -1;
} else if (_root[this["^\x05"][_local3]].type == "Enemy_MonsterBullet") {
_local4 = _local4 + -20;
} else {
_local4 = _local4 + 1;
}
_local4 = _local4 - _root[this["^\x05"][_local3]].\x03\x07();
_local5.push({name:this["^\x05"][_local3], points:_local4});
_local4 = 0;
}
_local3++;
}
var _local8 = "";
_local5.sortOn(["points", "name"]);
if (_local5.length == 0) {
_local8 = "";
} else if (_local5[_local5.length - 1].points < -2) {
_local8 = "";
} else {
_local8 = _local5[_local5.length - 1].name;
}
return(_local8);
};
ASSetPropFlags(_global["\x1F\n"].prototype, null, 1);
#endinitclip
Symbol 2605 MovieClip [__Packages.LevelManager] Frame 0
#initclip
if (!_global["\x04\r"]) {
var _local1 = function () {
this.intLevel = 0;
this["\x12\x0B"] = 0;
this.strCampaign = "ice_bt";
this.arrEnemyQueue = new Array();
this["2\x0E"] = false;
this["9\n"] = false;
this["\x15\x04"] = 0;
this["+\x05"] = 0;
this[">\x06"] = false;
};
_global["\x04\r"] = _local1;
var _local2 = _local1.prototype;
_local2["%\n"] = function () {
if (this[">\x06"] == true) {
if (this["+\x05"] == 0) {
if (this["\x1C"] < this["\x12\x0B"]) {
var _local3 = -1;
if (this.arrEnemyQueue.length == 0) {
this.\x05\x10();
}
if (this.strCampaign.substr(0, 9) == "challenge") {
_local3 = 0;
} else {
_local3 = Math.round(Math.random() * (this.arrEnemyQueue.length - 1));
}
_root.game.SpawnEnemy(this.arrEnemyQueue[_local3].name);
this["+\x05"] = this.arrEnemyQueue[_local3].wait;
if (this.arrEnemyQueue.length == 1) {
this["+\x05"] = this["\x15\x04"];
}
this.arrEnemyQueue.splice(_local3, 1);
this["\x1C"]++;
if (this["\x1C"] >= this["\x12\x0B"]) {
}
}
} else {
if (this["+\x05"] != 999999) {
this["+\x05"]--;
}
if (_root.game.\x18\x0F() == 0) {
this["+\x05"] = 0;
}
}
}
};
_local2.UpdateLevel = function (_arg2, _arg3) {
this.intLevel = _arg2;
this.strCampaign = _arg3;
this.\x0F\x02();
};
_local2["=\r"] = function () {
return(this.intLevel);
};
_local2["\x0F\x02"] = function () {
this["\x1C"] = 0;
delete this.arrEnemyQueue;
this.arrEnemyQueue = new Array();
this["9\n"] = false;
this["2\x0E"] = false;
if (this.strCampaign == "rig_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 20;
break;
case 2 :
this["\x12\x0B"] = 25;
break;
case 3 :
this["\x12\x0B"] = 25;
break;
case 4 :
this["\x12\x0B"] = 25;
break;
case 5 :
this["\x12\x0B"] = 25;
break;
case 6 :
this["\x12\x0B"] = 40;
break;
case 7 :
this["\x12\x0B"] = 30;
break;
case 8 :
this["\x12\x0B"] = 35;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 999999 /* 0x0F423F */;
break;
default :
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "forest_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 20;
break;
case 2 :
this["\x12\x0B"] = 25;
break;
case 3 :
this["\x12\x0B"] = 25;
break;
case 4 :
this["\x12\x0B"] = 25;
break;
case 5 :
this["\x12\x0B"] = 25;
break;
case 6 :
this["\x12\x0B"] = 40;
break;
case 7 :
this["\x12\x0B"] = 40;
break;
case 8 :
this["\x12\x0B"] = 40;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 30;
break;
default :
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "hills_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 25;
break;
case 2 :
this["\x12\x0B"] = 25;
break;
case 3 :
this["\x12\x0B"] = 25;
break;
case 4 :
this["\x12\x0B"] = 30;
break;
case 5 :
this["\x12\x0B"] = 30;
break;
case 6 :
this["\x12\x0B"] = 30;
break;
case 7 :
this["\x12\x0B"] = 30;
break;
case 8 :
this["\x12\x0B"] = 35;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 40;
break;
default :
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "end_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 30;
break;
case 2 :
this["\x12\x0B"] = 30;
break;
case 3 :
this["\x12\x0B"] = 35;
break;
case 4 :
this["\x12\x0B"] = 35;
break;
case 5 :
this["\x12\x0B"] = 35;
break;
case 6 :
this["\x12\x0B"] = 40;
break;
case 7 :
this["\x12\x0B"] = 50;
break;
case 8 :
this["\x12\x0B"] = 45;
break;
case 9 :
this["\x12\x0B"] = 50;
break;
case 10 :
this["\x12\x0B"] = 999999 /* 0x0F423F */;
break;
default :
this["\x12\x0B"] = 20;
}
} else if (this.strCampaign == "waterfall_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 25;
break;
case 2 :
this["\x12\x0B"] = 25;
break;
case 3 :
this["\x12\x0B"] = 30;
break;
case 4 :
this["\x12\x0B"] = 30;
break;
case 5 :
this["\x12\x0B"] = 30;
break;
case 6 :
this["\x12\x0B"] = 35;
break;
case 7 :
this["\x12\x0B"] = 35;
break;
case 8 :
this["\x12\x0B"] = 35;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 45;
break;
default :
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "ice_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 35;
break;
case 2 :
this["\x12\x0B"] = 35;
break;
case 3 :
this["\x12\x0B"] = 35;
break;
case 4 :
this["\x12\x0B"] = 35;
break;
case 5 :
this["\x12\x0B"] = 35;
break;
case 6 :
this["\x12\x0B"] = 35;
break;
case 7 :
this["\x12\x0B"] = 40;
break;
case 8 :
this["\x12\x0B"] = 40;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 40;
break;
default :
this["\x12\x0B"] = 45;
}
} else if (this.strCampaign == "twentyfive_bt") {
switch (this.intLevel) {
case 1 :
this["\x12\x0B"] = 35;
break;
case 2 :
this["\x12\x0B"] = 35;
break;
case 3 :
this["\x12\x0B"] = 35;
break;
case 4 :
this["\x12\x0B"] = 35;
break;
case 5 :
this["\x12\x0B"] = 35;
break;
case 6 :
this["\x12\x0B"] = 35;
break;
case 7 :
this["\x12\x0B"] = 40;
break;
case 8 :
this["\x12\x0B"] = 40;
break;
case 9 :
this["\x12\x0B"] = 40;
break;
case 10 :
this["\x12\x0B"] = 40;
break;
case 11 :
this["\x12\x0B"] = 40;
break;
case 12 :
this["\x12\x0B"] = 40;
break;
case 13 :
this["\x12\x0B"] = 40;
break;
case 14 :
this["\x12\x0B"] = 40;
break;
case 15 :
this["\x12\x0B"] = 40;
break;
case 16 :
this["\x12\x0B"] = 45;
break;
case 17 :
this["\x12\x0B"] = 45;
break;
case 18 :
this["\x12\x0B"] = 45;
break;
case 19 :
this["\x12\x0B"] = 45;
break;
case 20 :
this["\x12\x0B"] = 45;
break;
case 21 :
this["\x12\x0B"] = 45;
break;
case 22 :
this["\x12\x0B"] = 50;
break;
case 23 :
this["\x12\x0B"] = 50;
break;
case 24 :
this["\x12\x0B"] = 50;
break;
case 25 :
this["\x12\x0B"] = 200;
}
} else if (this.strCampaign == "challenge1_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 20;
}
} else if (this.strCampaign == "challenge2_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "challenge3_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "challenge4_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "challenge5_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "challenge6_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 40;
}
} else if (this.strCampaign == "challenge7_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 75;
}
} else if (this.strCampaign == "challenge8_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
} else if (this.strCampaign == "challenge9_bt") {
if (!(this.intLevel === 1)) {
} else {
this["\x12\x0B"] = 30;
}
}
};
_local2["'\x02"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(10);
_local3.,\x10("Enemy_52", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_52", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 3, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_51", 2, 3, 40, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_51", 2, 4, 40, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_50", 3, 4, 40, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 150, 250, 0, 0);
_local3.,\x10("Enemy_50", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_51", 1, 2, 40, 100, 0, 0);
_local3.,\x10("Enemy_37", 3, 5, 40, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 3, 4, 40, 200, 0, 0);
_local3.,\x10("Enemy_52", 2, 2, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(80);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_45", 1, 1, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_51", 2, 3, 40, 100, 0, 0);
_local3.,\x10("Enemy_37", 3, 5, 40, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 3, 4, 40, 200, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 3, 4, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_45", 1, 1, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_44", 0, 1, 60, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_45", 1, 1, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_44", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
break;
case 10 :
case 10 :
this.bossName = "Enemy_33";
_local3 = new \r\x07(100);
_local3.,\x10("Enemy_50", 2, 4, 30, 90, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
break;
}
return(_local2);
};
_local2["\x1E\x06"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 3, 5, 40, 120, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(10);
_local3.,\x10("Enemy_52", 1, 3, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 3, 5, 40, 120, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_51", 1, 4, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(10);
_local3.,\x10("Enemy_52", 1, 3, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_48", 1, 2, 120, 240, 0, 0);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 3, 5, 40, 120, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_51", 1, 4, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(10);
_local3.,\x10("Enemy_52", 1, 3, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_48", 1, 2, 120, 240, 0, 0);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 100, 200, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_51", 1, 4, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_45", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_44", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_48", 1, 2, 120, 240, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 2, 3, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_44", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_36", 1, 1, 40, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_50", 3, 4, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 2, 3, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 2, 3, 40, 120, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_51", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 40, 120, 0, 0);
_local3.,\x10("Enemy_50", 3, 4, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(150, 300);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 120, 200, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_44", 2, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 120, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 10 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 120, 300, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_50", 2, 4, 40, 80, 0, 0);
_local3.,\x10("Enemy_40", 1, 2, 200, 300, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
}
return(_local2);
};
_local2["^"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_36", 2, 4, 100, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 1, 100, 250, 0, 0);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_40", 1, 1, 200, 300, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_36", 2, 4, 100, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 2, 100, 250, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_40", 1, 1, 180, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_36", 2, 4, 80, 175, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 2, 100, 200, 0, 0);
_local3.,\x10("Enemy_31", 1, 2, 80, 175, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_40", 1, 2, 180, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_36", 2, 3, 80, 175, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 180, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 2, 100, 200, 0, 0);
_local3.,\x10("Enemy_31", 1, 2, 80, 175, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 1, 2, 40, 100, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_36", 2, 3, 80, 175, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 180, 250, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 2, 100, 200, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_38", 2, 3, 40, 100, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_38", 3, 6, 40, 100, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 80, 150, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 4, 6, 40, 100, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 2, 80, 150, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 4, 6, 40, 75, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(180, 280);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 4, 6, 40, 75, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(180, 280);
_local2.push(_local3);
break;
case 10 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 150, 250, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_46", 3, 4, 40, 75, 0, 0);
_local3.,\x10("Enemy_38", 2, 3, 40, 75, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
}
return(_local2);
};
_local2["5\x0B"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_42", 1, 2, 120, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_49", 1, 1, 120, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_36", 2, 3, 40, 90, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_42", 1, 2, 110, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_36", 2, 3, 40, 90, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_42", 1, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 130, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_49", 1, 1, 130, 160, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 120, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(65);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(65);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 100, 180, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 150, 180, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 150, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 100, 180, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 100, 180, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
break;
case 10 :
_local3 = new \r\x07(100);
_local3.,\x10("Enemy_48", 1, 2, 100, 180, 0, 0);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 0, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 100, 180, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
}
return(_local2);
};
} else {
// unexpected jump
}
_local2.GenerateWaterfallWave = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_44", 1, 2, 100, 140, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_38", 2, 4, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_38", 1, 2, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_44", 1, 2, 100, 140, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_38", 2, 4, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_38", 1, 2, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_44", 1, 2, 100, 140, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(25);
_local3.,\x10("Enemy_38", 3, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_44", 1, 2, 100, 140, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 4, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_44", 1, 2, 100, 140, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 4, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 160, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 180, 200, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 160, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 2, 160, 180, 0, 0);
_local3.,\x10("Enemy_38", 3, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 200, 340, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 3, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 2, 200, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_33", 1, 2, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 10 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_41", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
}
return(_local2);
};
_local2["@\x06"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_31", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 200, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_38", 1, 3, 20, 50, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_31", 2, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 200, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_38", 1, 3, 20, 50, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 200, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 200, 180, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_39", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 1, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_46", 2, 4, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 3, 110, 180, 0, 0);
_local3.,\x10("Enemy_38", 2, 4, 20, 50, 0, 0);
_local3.,\x10("Enemy_31", 1, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 200, 180, 0, 0);
_local3.,\x10("Enemy_22", 1, 2, 110, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_39", 0, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_22", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 3, 40, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 0, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(80);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 80, 160, 0, 0);
_local3.,\x10("Enemy_46", 0, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_46", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 10 :
this.bossName = "Enemy_53";
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_2", 1, 2, 150, 350, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
}
return(_local2);
};
_local2["+\x0E"] = function () {
var _local2 = new Array();
switch (this.intLevel) {
case 1 :
var _local3;
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_52", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 2 :
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 3, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 3 :
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 3, 20, 50, 0, 0);
_local3.,\x10("Enemy_52", 1, 2, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_37", 1, 2, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(33);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_50", 1, 3, 40, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 4 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_45", 1, 1, 100, 200, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_44", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
break;
case 5 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 2, 3, 40, 120, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_51", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 40, 120, 0, 0);
_local3.,\x10("Enemy_50", 3, 4, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(150, 300);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 6 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 120, 200, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_44", 2, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 120, 200, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 7 :
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_2", 1, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_36", 1, 2, 40, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_48", 2, 3, 120, 180, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 8 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_2", 0, 2, 20, 60, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 120, 300, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 120, 250, 0, 0);
_local3.,\x10("Enemy_50", 3, 6, 40, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_50", 2, 4, 40, 80, 0, 0);
_local3.,\x10("Enemy_40", 1, 2, 200, 300, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(20);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_36", 3, 4, 80, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
break;
case 9 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(70);
_local3.,\x10("Enemy_38", 3, 6, 40, 100, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 10 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 2, 80, 150, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 4, 6, 40, 75, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(180, 280);
_local2.push(_local3);
break;
case 11 :
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 150, 250, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_46", 3, 4, 40, 75, 0, 0);
_local3.,\x10("Enemy_38", 2, 3, 40, 75, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
break;
case 12 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(65);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_48", 1, 2, 120, 200, 0, 0);
_local3.,\x10("Enemy_44", 1, 2, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
break;
case 13 :
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_49", 1, 1, 110, 160, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 150, 180, 0, 0);
_local3.,\x10("Enemy_44", 1, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
_local3 = new \r\x07(35);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 150, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
break;
case 14 :
_local3 = new \r\x07(100);
_local3.,\x10("Enemy_48", 1, 2, 100, 180, 0, 0);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_6", 0, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 100, 180, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 100, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 400);
_local2.push(_local3);
break;
case 15 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 180, 200, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 160, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
break;
case 16 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 3, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 2, 200, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 1, 2, 60, 120, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 350, 450, 0, 0);
_local3.endOfWaveWait = this.RandNum(350, 450);
_local2.push(_local3);
break;
case 17 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_22", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 1, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 3, 80, 100, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 18 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_39", 0, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_22", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 3, 40, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 19 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 0, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(80);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_49", 1, 2, 80, 160, 0, 0);
_local3.,\x10("Enemy_46", 0, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_46", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 20 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(80);
_local3.,\x10("Enemy_41", 2, 5, 50, 110, 0, 0);
_local3.,\x10("Enemy_49", 2, 3, 80, 160, 0, 0);
_local3.,\x10("Enemy_46", 2, 4, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_35", 2, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_46", 3, 5, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 21 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(80);
_local3.,\x10("Enemy_41", 2, 4, 50, 110, 0, 0);
_local3.,\x10("Enemy_33", 1, 2, 80, 160, 0, 0);
_local3.,\x10("Enemy_22", 2, 3, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_35", 2, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 50, 110, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 22 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 80, 0, 0);
_local3.,\x10("Enemy_39", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_46", 4, 7, 30, 90, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_41", 2, 4, 50, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 2, 80, 160, 0, 0);
_local3.,\x10("Enemy_22", 2, 3, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_35", 2, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_46", 4, 7, 30, 70, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 23 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 80, 0, 0);
_local3.,\x10("Enemy_39", 2, 3, 200, 300, 0, 0);
_local3.,\x10("Enemy_22", 1, 2, 50, 80, 0, 0);
_local3.,\x10("Enemy_46", 4, 7, 30, 90, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_41", 2, 4, 50, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 2, 80, 160, 0, 0);
_local3.,\x10("Enemy_22", 2, 3, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_35", 2, 2, 200, 300, 0, 0);
_local3.,\x10("Enemy_46", 4, 7, 30, 70, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 24 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 80, 0, 0);
_local3.,\x10("Enemy_39", 2, 3, 150, 200, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 80, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_41", 2, 4, 50, 80, 0, 0);
_local3.,\x10("Enemy_33", 2, 2, 200, 250, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_35", 2, 3, 180, 300, 0, 0);
_local3.,\x10("Enemy_22", 3, 3, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
break;
case 25 :
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_45", 1, 1, 80, 150, 0, 0);
_local3.,\x10("Enemy_37", 2, 3, 40, 80, 0, 0);
_local3.endOfWaveWait = 999999 /* 0x0F423F */;
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_2", 0, 2, 20, 50, 0, 0);
_local3.,\x10("Enemy_44", 2, 3, 60, 120, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 350);
_local2.push(_local3);
_local3 = new \r\x07(60);
_local3.,\x10("Enemy_44", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_52", 2, 3, 100, 150, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 300);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_42", 1, 3, 80, 150, 0, 0);
_local3.,\x10("Enemy_40", 1, 1, 100, 150, 0, 0);
_local3.,\x10("Enemy_31", 2, 2, 30, 60, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(50);
_local3.,\x10("Enemy_41", 2, 2, 80, 150, 0, 0);
_local3.endOfWaveWait = this.RandNum(120, 180);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_38", 4, 6, 40, 60, 0, 0);
_local3.,\x10("Enemy_2", 1, 3, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(180, 280);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_47", 1, 1, 180, 200, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 120, 180, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_46", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_38", 1, 3, 50, 110, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(200, 240);
_local2.push(_local3);
_local3 = new \r\x07(40);
_local3.,\x10("Enemy_6", 2, 3, 60, 120, 0, 0);
_local3.,\x10("Enemy_47", 1, 1, 160, 180, 0, 0);
_local3.endOfWaveWait = this.RandNum(240, 340);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_39", 0, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_35", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_22", 1, 2, 50, 110, 0, 0);
_local3.,\x10("Enemy_39", 1, 2, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_50", 1, 3, 40, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 1, 250, 350, 0, 0);
_local3.,\x10("Enemy_2", 1, 2, 20, 50, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 50, 80, 0, 0);
_local3.,\x10("Enemy_39", 2, 3, 150, 200, 0, 0);
_local3.,\x10("Enemy_22", 1, 1, 80, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 2, 4, 50, 80, 0, 0);
_local3.,\x10("Enemy_33", 1, 2, 200, 250, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 360);
_local2.push(_local3);
_local3 = new \r\x07(30);
_local3.,\x10("Enemy_41", 1, 2, 40, 80, 0, 0);
_local3.,\x10("Enemy_35", 2, 3, 180, 300, 0, 0);
_local3.,\x10("Enemy_22", 2, 2, 50, 80, 0, 0);
_local3.endOfWaveWait = this.RandNum(250, 350);
_local2.push(_local3);
}
return(_local2);
};
_local2["\x05\x10"] = function () {
var _local2;
this.bossName = "";
if (this.strCampaign == "rig_bt") {
_local2 = this.'\x02();
} else if (this.strCampaign == "forest_bt") {
_local2 = this.\x1E\x06();
} else if (this.strCampaign == "hills_bt") {
_local2 = this.5\x0B();
} else if (this.strCampaign == "waterfall_bt") {
_local2 = this.GenerateWaterfallWave();
} else if (this.strCampaign == "end_bt") {
_local2 = this.@\x06();
} else if (this.strCampaign == "ice_bt") {
_local2 = this.^();
} else if (this.strCampaign == "twentyfive_bt") {
_local2 = this.+\x0E();
}
var _local12 = 0;
var _local13 = 0;
var _local16 = 0;
var _local14 = 0;
var _local5 = 0;
while (_local5 < _local2.length) {
_local16 = _local16 + _local2[_local5].chance;
_local5++;
}
_local14 = Math.round(Math.random() * _local16);
_local5 = 0;
while (_local5 < _local2.length) {
_local13 = _local12 + _local2[_local5].chance;
_local2[_local5].minChance = _local12;
_local2[_local5].maxChance = _local13;
_local12 = _local13;
_local5++;
}
var _local4 = -1;
_local5 = 0;
while (_local5 < _local2.length) {
if ((_local14 >= _local2[_local5].minChance) && (_local14 < _local2[_local5].maxChance)) {
_local4 = _local5;
break;
}
_local5++;
}
if (_local4 == -1) {
_local4 = _local2.length - 1;
}
if (this.bossName != "") {
if ((this["2\x0E"] == false) && (this["9\n"] == false)) {
this["2\x0E"] = true;
this.arrEnemyQueue.push({name:this.bossName, wait:40});
}
}
_local2[_local4].\x12\x05();
var _local17 = _local2[_local4].=\x03();
var _local10 = 0;
while (_local10 < _local17) {
var _local7 = _local2[_local4].enemyNum;
var _local11 = _local2[_local4].enemyType;
var _local8 = _local2[_local4].nextEnemyWait;
var _local15 = _local2[_local4].miniWaveWait;
var _local3 = 0;
while (_local3 < _local7) {
this.arrEnemyQueue.push({name:_local11, wait:_local8});
_local3++;
}
_local2[_local4]. \x11();
_local10++;
}
this["\x15\x04"] = _local2[_local4].endOfWaveWait;
this["+\x05"] = 0;
};
_local2["\n\x04"] = function () {
if (this.strCampaign == "challenge1_bt") {
this.\x12\x02();
} else if (this.strCampaign == "challenge2_bt") {
this.5\x03();
} else if (this.strCampaign == "challenge3_bt") {
this.\x11\n();
} else if (this.strCampaign == "challenge4_bt") {
this.\x16\x0E();
} else if (this.strCampaign == "challenge5_bt") {
this.\x0E\x0E();
} else if (this.strCampaign == "challenge6_bt") {
this.(\x02();
} else if (this.strCampaign == "challenge7_bt") {
this.,\x0E();
} else if (this.strCampaign == "challenge8_bt") {
this.\x17\x03();
} else if (this.strCampaign == "challenge9_bt") {
this.\x06\x0B();
}
};
_local2["\x12\x02"] = function () {
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:50});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:140});
this.arrEnemyQueue.push({name:"Enemy_2", wait:40});
this.arrEnemyQueue.push({name:"Enemy_2", wait:40});
this.arrEnemyQueue.push({name:"Enemy_2", wait:40});
this.arrEnemyQueue.push({name:"Enemy_2", wait:40});
this.arrEnemyQueue.push({name:"Enemy_2", wait:140});
this.arrEnemyQueue.push({name:"Enemy_2", wait:20});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:140});
this.arrEnemyQueue.push({name:"Enemy_2", wait:20});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
this.arrEnemyQueue.push({name:"Enemy_2", wait:30});
};
// unexpected jump
// unexpected jump
_local2["5\x03"] = function () {
this.arrEnemyQueue.push({name:"Enemy_13", wait:305});
this.arrEnemyQueue.push({name:"Enemy_13", wait:305});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:294});
this.arrEnemyQueue.push({name:"Enemy_13", wait:294});
this.arrEnemyQueue.push({name:"Enemy_13", wait:294});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:322});
this.arrEnemyQueue.push({name:"Enemy_13", wait:322});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:281});
this.arrEnemyQueue.push({name:"Enemy_13", wait:281});
this.arrEnemyQueue.push({name:"Enemy_13", wait:281});
this.arrEnemyQueue.push({name:"Enemy_13", wait:281});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:279});
this.arrEnemyQueue.push({name:"Enemy_13", wait:279});
this.arrEnemyQueue.push({name:"Enemy_13", wait:279});
this.arrEnemyQueue.push({name:"Enemy_13", wait:279});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:243});
this.arrEnemyQueue.push({name:"Enemy_13", wait:243});
this.arrEnemyQueue.push({name:"Enemy_13", wait:243});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:320});
this.arrEnemyQueue.push({name:"Enemy_13", wait:320});
this.arrEnemyQueue.push({name:"Enemy_13", wait:320});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_13", wait:288});
this.arrEnemyQueue.push({name:"Enemy_13", wait:288});
this.arrEnemyQueue.push({name:"Enemy_13", wait:288});
this.arrEnemyQueue.push({name:"Enemy_13", wait:288});
this.arrEnemyQueue.push({name:"Enemy_13", wait:999999});
};
_local2["\x11\n"] = function () {
this.arrEnemyQueue.push({name:"Enemy_17", wait:142});
this.arrEnemyQueue.push({name:"Enemy_11", wait:109});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_2", wait:64});
this.arrEnemyQueue.push({name:"Enemy_10", wait:387});
this.arrEnemyQueue.push({name:"Enemy_11", wait:109});
this.arrEnemyQueue.push({name:"Enemy_2", wait:64});
this.arrEnemyQueue.push({name:"Enemy_17", wait:142});
this.arrEnemyQueue.push({name:"Enemy_16", wait:369});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:347});
this.arrEnemyQueue.push({name:"Enemy_2", wait:106});
this.arrEnemyQueue.push({name:"Enemy_5", wait:20});
this.arrEnemyQueue.push({name:"Enemy_16", wait:396});
this.arrEnemyQueue.push({name:"Enemy_10", wait:377});
this.arrEnemyQueue.push({name:"Enemy_11", wait:91});
this.arrEnemyQueue.push({name:"Enemy_17", wait:152});
this.arrEnemyQueue.push({name:"Enemy_17", wait:152});
this.arrEnemyQueue.push({name:"Enemy_2", wait:344});
this.arrEnemyQueue.push({name:"Enemy_11", wait:94});
this.arrEnemyQueue.push({name:"Enemy_5", wait:24});
this.arrEnemyQueue.push({name:"Enemy_17", wait:190});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_10", wait:361});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_17", wait:319});
this.arrEnemyQueue.push({name:"Enemy_17", wait:197});
this.arrEnemyQueue.push({name:"Enemy_5", wait:25});
this.arrEnemyQueue.push({name:"Enemy_5", wait:25});
this.arrEnemyQueue.push({name:"Enemy_17", wait:197});
this.arrEnemyQueue.push({name:"Enemy_10", wait:360});
this.arrEnemyQueue.push({name:"Enemy_2", wait:102});
this.arrEnemyQueue.push({name:"Enemy_11", wait:108});
this.arrEnemyQueue.push({name:"Enemy_2", wait:337});
};
_local2["\x16\x0E"] = function () {
this.arrEnemyQueue.push({name:"Enemy_5", wait:50});
this.arrEnemyQueue.push({name:"Enemy_15", wait:98});
this.arrEnemyQueue.push({name:"Enemy_5", wait:50});
this.arrEnemyQueue.push({name:"Enemy_5", wait:50});
this.arrEnemyQueue.push({name:"Enemy_15", wait:98});
this.arrEnemyQueue.push({name:"Enemy_5", wait:50});
this.arrEnemyQueue.push({name:"Enemy_5", wait:303});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:34});
this.arrEnemyQueue.push({name:"Enemy_5", wait:529});
this.arrEnemyQueue.push({name:"Enemy_5", wait:35});
this.arrEnemyQueue.push({name:"Enemy_5", wait:35});
this.arrEnemyQueue.push({name:"Enemy_5", wait:35});
this.arrEnemyQueue.push({name:"Enemy_5", wait:441});
this.arrEnemyQueue.push({name:"Enemy_5", wait:27});
this.arrEnemyQueue.push({name:"Enemy_5", wait:27});
this.arrEnemyQueue.push({name:"Enemy_5", wait:546});
this.arrEnemyQueue.push({name:"Enemy_5", wait:47});
this.arrEnemyQueue.push({name:"Enemy_5", wait:47});
this.arrEnemyQueue.push({name:"Enemy_5", wait:340});
this.arrEnemyQueue.push({name:"Enemy_5", wait:38});
this.arrEnemyQueue.push({name:"Enemy_5", wait:38});
this.arrEnemyQueue.push({name:"Enemy_5", wait:38});
this.arrEnemyQueue.push({name:"Enemy_15", wait:98});
this.arrEnemyQueue.push({name:"Enemy_5", wait:38});
this.arrEnemyQueue.push({name:"Enemy_15", wait:301});
this.arrEnemyQueue.push({name:"Enemy_5", wait:23});
this.arrEnemyQueue.push({name:"Enemy_5", wait:23});
this.arrEnemyQueue.push({name:"Enemy_5", wait:23});
this.arrEnemyQueue.push({name:"Enemy_5", wait:343});
};
_local2["\x0E\x0E"] = function () {
this.arrEnemyQueue.push({name:"Enemy_15", wait:65});
this.arrEnemyQueue.push({name:"Enemy_15", wait:65});
this.arrEnemyQueue.push({name:"Enemy_7", wait:108});
this.arrEnemyQueue.push({name:"Enemy_15", wait:65});
this.arrEnemyQueue.push({name:"Enemy_7", wait:108});
this.arrEnemyQueue.push({name:"Enemy_15", wait:65});
this.arrEnemyQueue.push({name:"Enemy_8", wait:214});
this.arrEnemyQueue.push({name:"Enemy_15", wait:108});
this.arrEnemyQueue.push({name:"Enemy_15", wait:216});
this.arrEnemyQueue.push({name:"Enemy_15", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_15", wait:97});
this.arrEnemyQueue.push({name:"Enemy_15", wait:306});
this.arrEnemyQueue.push({name:"Enemy_15", wait:89});
this.arrEnemyQueue.push({name:"Enemy_15", wait:200});
this.arrEnemyQueue.push({name:"Enemy_15", wait:79});
this.arrEnemyQueue.push({name:"Enemy_15", wait:79});
this.arrEnemyQueue.push({name:"Enemy_7", wait:97});
this.arrEnemyQueue.push({name:"Enemy_8", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_15", wait:79});
this.arrEnemyQueue.push({name:"Enemy_8", wait:210});
this.arrEnemyQueue.push({name:"Enemy_15", wait:79});
this.arrEnemyQueue.push({name:"Enemy_15", wait:97});
this.arrEnemyQueue.push({name:"Enemy_15", wait:79});
this.arrEnemyQueue.push({name:"Enemy_15", wait:234});
this.arrEnemyQueue.push({name:"Enemy_15", wait:77});
this.arrEnemyQueue.push({name:"Enemy_7", wait:107});
this.arrEnemyQueue.push({name:"Enemy_15", wait:77});
this.arrEnemyQueue.push({name:"Enemy_15", wait:77});
this.arrEnemyQueue.push({name:"Enemy_15", wait:999999});
this.arrEnemyQueue.push({name:"Enemy_15", wait:77});
this.arrEnemyQueue.push({name:"Enemy_8", wait:224});
this.arrEnemyQueue.push({name:"Enemy_8", wait:224});
this.arrEnemyQueue.push({name:"Enemy_7", wait:107});
this.arrEnemyQueue.push({name:"Enemy_15", wait:203});
};
_local2["(\x02"] = function () {
this.arrEnemyQueue.push({name:"Enemy_2", wait:51});
this.arrEnemyQueue.push({name:"Enemy_3", wait:185});
this.arrEnemyQueue.push({name:"Enemy_2", wait:51});
this.arrEnemyQueue.push({name:"Enemy_3", wait:152});
this.arrEnemyQueue.push({name:"Enemy_3", wait:233});
this.arrEnemyQueue.push({name:"Enemy_2", wait:39});
this.arrEnemyQueue.push({name:"Enemy_2", wait:39});
this.arrEnemyQueue.push({name:"Enemy_3", wait:151});
this.arrEnemyQueue.push({name:"Enemy_6", wait:80});
this.arrEnemyQueue.push({name:"Enemy_10", wait:217});
this.arrEnemyQueue.push({name:"Enemy_15", wait:69});
this.arrEnemyQueue.push({name:"Enemy_15", wait:69});
this.arrEnemyQueue.push({name:"Enemy_15", wait:69});
this.arrEnemyQueue.push({name:"Enemy_6", wait:80});
this.arrEnemyQueue.push({name:"Enemy_15", wait:106});
this.arrEnemyQueue.push({name:"Enemy_15", wait:75});
this.arrEnemyQueue.push({name:"Enemy_15", wait:75});
this.arrEnemyQueue.push({name:"Enemy_15", wait:75});
this.arrEnemyQueue.push({name:"Enemy_6", wait:80});
this.arrEnemyQueue.push({name:"Enemy_15", wait:116});
this.arrEnemyQueue.push({name:"Enemy_3", wait:194});
this.arrEnemyQueue.push({name:"Enemy_3", wait:194});
this.arrEnemyQueue.push({name:"Enemy_10", wait:217});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_3", wait:202});
this.arrEnemyQueue.push({name:"Enemy_3", wait:202});
this.arrEnemyQueue.push({name:"Enemy_2", wait:157});
this.arrEnemyQueue.push({name:"Enemy_15", wait:67});
this.arrEnemyQueue.push({name:"Enemy_15", wait:67});
this.arrEnemyQueue.push({name:"Enemy_6", wait:68});
this.arrEnemyQueue.push({name:"Enemy_15", wait:67});
this.arrEnemyQueue.push({name:"Enemy_6", wait:68});
this.arrEnemyQueue.push({name:"Enemy_15", wait:118});
this.arrEnemyQueue.push({name:"Enemy_15", wait:63});
this.arrEnemyQueue.push({name:"Enemy_6", wait:61});
this.arrEnemyQueue.push({name:"Enemy_15", wait:63});
this.arrEnemyQueue.push({name:"Enemy_15", wait:63});
this.arrEnemyQueue.push({name:"Enemy_15", wait:63});
this.arrEnemyQueue.push({name:"Enemy_6", wait:139});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_3", wait:222});
this.arrEnemyQueue.push({name:"Enemy_2", wait:68});
this.arrEnemyQueue.push({name:"Enemy_10", wait:217});
};
_local2[",\x0E"] = function () {
this.arrEnemyQueue.push({name:"Enemy_13", wait:304});
this.arrEnemyQueue.push({name:"Enemy_11", wait:37});
this.arrEnemyQueue.push({name:"Enemy_7", wait:66});
this.arrEnemyQueue.push({name:"Enemy_13", wait:304});
this.arrEnemyQueue.push({name:"Enemy_8", wait:74});
this.arrEnemyQueue.push({name:"Enemy_11", wait:37});
this.arrEnemyQueue.push({name:"Enemy_17", wait:61});
this.arrEnemyQueue.push({name:"Enemy_8", wait:74});
this.arrEnemyQueue.push({name:"Enemy_13", wait:304});
this.arrEnemyQueue.push({name:"Enemy_8", wait:74});
this.arrEnemyQueue.push({name:"Enemy_17", wait:61});
this.arrEnemyQueue.push({name:"Enemy_7", wait:66});
this.arrEnemyQueue.push({name:"Enemy_7", wait:193});
this.arrEnemyQueue.push({name:"Enemy_16", wait:93});
this.arrEnemyQueue.push({name:"Enemy_8", wait:88});
this.arrEnemyQueue.push({name:"Enemy_8", wait:88});
this.arrEnemyQueue.push({name:"Enemy_7", wait:62});
this.arrEnemyQueue.push({name:"Enemy_7", wait:62});
this.arrEnemyQueue.push({name:"Enemy_13", wait:333});
this.arrEnemyQueue.push({name:"Enemy_8", wait:88});
this.arrEnemyQueue.push({name:"Enemy_17", wait:74});
this.arrEnemyQueue.push({name:"Enemy_7", wait:62});
this.arrEnemyQueue.push({name:"Enemy_13", wait:333});
this.arrEnemyQueue.push({name:"Enemy_17", wait:74});
this.arrEnemyQueue.push({name:"Enemy_7", wait:62});
this.arrEnemyQueue.push({name:"Enemy_11", wait:44});
this.arrEnemyQueue.push({name:"Enemy_11", wait:44});
this.arrEnemyQueue.push({name:"Enemy_17", wait:183});
this.arrEnemyQueue.push({name:"Enemy_13", wait:208});
this.arrEnemyQueue.push({name:"Enemy_8", wait:74});
this.arrEnemyQueue.push({name:"Enemy_13", wait:208});
this.arrEnemyQueue.push({name:"Enemy_11", wait:49});
this.arrEnemyQueue.push({name:"Enemy_17", wait:63});
this.arrEnemyQueue.push({name:"Enemy_11", wait:49});
this.arrEnemyQueue.push({name:"Enemy_13", wait:208});
this.arrEnemyQueue.push({name:"Enemy_8", wait:74});
this.arrEnemyQueue.push({name:"Enemy_11", wait:49});
this.arrEnemyQueue.push({name:"Enemy_17", wait:63});
this.arrEnemyQueue.push({name:"Enemy_7", wait:59});
this.arrEnemyQueue.push({name:"Enemy_7", wait:59});
this.arrEnemyQueue.push({name:"Enemy_7", wait:59});
this.arrEnemyQueue.push({name:"Enemy_7", wait:59});
this.arrEnemyQueue.push({name:"Enemy_16", wait:106});
this.arrEnemyQueue.push({name:"Enemy_17", wait:63});
this.arrEnemyQueue.push({name:"Enemy_11", wait:135});
this.arrEnemyQueue.push({name:"Enemy_11", wait:36});
this.arrEnemyQueue.push({name:"Enemy_11", wait:36});
this.arrEnemyQueue.push({name:"Enemy_16", wait:90});
this.arrEnemyQueue.push({name:"Enemy_17", wait:78});
this.arrEnemyQueue.push({name:"Enemy_8", wait:76});
this.arrEnemyQueue.push({name:"Enemy_7", wait:55});
this.arrEnemyQueue.push({name:"Enemy_17", wait:78});
this.arrEnemyQueue.push({name:"Enemy_7", wait:55});
this.arrEnemyQueue.push({name:"Enemy_13", wait:215});
this.arrEnemyQueue.push({name:"Enemy_13", wait:215});
this.arrEnemyQueue.push({name:"Enemy_13", wait:215});
this.arrEnemyQueue.push({name:"Enemy_7", wait:55});
this.arrEnemyQueue.push({name:"Enemy_8", wait:76});
this.arrEnemyQueue.push({name:"Enemy_13", wait:215});
this.arrEnemyQueue.push({name:"Enemy_8", wait:76});
this.arrEnemyQueue.push({name:"Enemy_11", wait:36});
this.arrEnemyQueue.push({name:"Enemy_11", wait:36});
this.arrEnemyQueue.push({name:"Enemy_17", wait:115});
this.arrEnemyQueue.push({name:"Enemy_8", wait:73});
this.arrEnemyQueue.push({name:"Enemy_7", wait:48});
this.arrEnemyQueue.push({name:"Enemy_7", wait:48});
this.arrEnemyQueue.push({name:"Enemy_11", wait:42});
this.arrEnemyQueue.push({name:"Enemy_13", wait:159});
this.arrEnemyQueue.push({name:"Enemy_13", wait:159});
this.arrEnemyQueue.push({name:"Enemy_7", wait:48});
this.arrEnemyQueue.push({name:"Enemy_17", wait:50});
this.arrEnemyQueue.push({name:"Enemy_13", wait:159});
this.arrEnemyQueue.push({name:"Enemy_8", wait:73});
this.arrEnemyQueue.push({name:"Enemy_16", wait:83});
this.arrEnemyQueue.push({name:"Enemy_17", wait:50});
this.arrEnemyQueue.push({name:"Enemy_11", wait:42});
this.arrEnemyQueue.push({name:"Enemy_17", wait:50});
this.arrEnemyQueue.push({name:"Enemy_11", wait:42});
this.arrEnemyQueue.push({name:"Enemy_13", wait:112});
this.arrEnemyQueue.push({name:"Enemy_5", wait:13});
this.arrEnemyQueue.push({name:"Enemy_13", wait:173});
this.arrEnemyQueue.push({name:"Enemy_13", wait:173});
this.arrEnemyQueue.push({name:"Enemy_13", wait:173});
this.arrEnemyQueue.push({name:"Enemy_13", wait:173});
this.arrEnemyQueue.push({name:"Enemy_5", wait:13});
this.arrEnemyQueue.push({name:"Enemy_13", wait:173});
this.arrEnemyQueue.push({name:"Enemy_5", wait:13});
this.arrEnemyQueue.push({name:"Enemy_21", wait:111});
};
_local2["\x17\x03"] = function () {
this.arrEnemyQueue.push({name:"Enemy_2", wait:31});
this.arrEnemyQueue.push({name:"Enemy_15", wait:130});
this.arrEnemyQueue.push({name:"Enemy_2", wait:31});
this.arrEnemyQueue.push({name:"Enemy_15", wait:130});
this.arrEnemyQueue.push({name:"Enemy_2", wait:31});
this.arrEnemyQueue.push({name:"Enemy_15", wait:130});
this.arrEnemyQueue.push({name:"Enemy_15", wait:130});
this.arrEnemyQueue.push({name:"Enemy_15", wait:130});
this.arrEnemyQueue.push({name:"Enemy_15", wait:113});
this.arrEnemyQueue.push({name:"Enemy_15", wait:120});
this.arrEnemyQueue.push({name:"Enemy_15", wait:120});
this.arrEnemyQueue.push({name:"Enemy_10", wait:145});
this.arrEnemyQueue.push({name:"Enemy_15", wait:132});
this.arrEnemyQueue.push({name:"Enemy_3", wait:26});
this.arrEnemyQueue.push({name:"Enemy_3", wait:49});
this.arrEnemyQueue.push({name:"Enemy_3", wait:53});
this.arrEnemyQueue.push({name:"Enemy_2", wait:48});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_3", wait:137});
this.arrEnemyQueue.push({name:"Enemy_2", wait:514});
this.arrEnemyQueue.push({name:"Enemy_15", wait:128});
this.arrEnemyQueue.push({name:"Enemy_2", wait:33});
this.arrEnemyQueue.push({name:"Enemy_15", wait:128});
this.arrEnemyQueue.push({name:"Enemy_15", wait:128});
this.arrEnemyQueue.push({name:"Enemy_15", wait:128});
this.arrEnemyQueue.push({name:"Enemy_10", wait:122});
};
_local2["\x06\x0B"] = function () {
this.arrEnemyQueue.push({name:"Enemy_15", wait:70});
this.arrEnemyQueue.push({name:"Enemy_15", wait:70});
this.arrEnemyQueue.push({name:"Enemy_5", wait:46});
this.arrEnemyQueue.push({name:"Enemy_15", wait:70});
this.arrEnemyQueue.push({name:"Enemy_5", wait:46});
this.arrEnemyQueue.push({name:"Enemy_15", wait:70});
this.arrEnemyQueue.push({name:"Enemy_15", wait:160});
this.arrEnemyQueue.push({name:"Enemy_19", wait:60});
this.arrEnemyQueue.push({name:"Enemy_5", wait:46});
this.arrEnemyQueue.push({name:"Enemy_5", wait:460});
this.arrEnemyQueue.push({name:"Enemy_6", wait:80});
this.arrEnemyQueue.push({name:"Enemy_6", wait:70});
this.arrEnemyQueue.push({name:"Enemy_5", wait:41});
this.arrEnemyQueue.push({name:"Enemy_6", wait:70});
this.arrEnemyQueue.push({name:"Enemy_5", wait:126});
this.arrEnemyQueue.push({name:"Enemy_6", wait:100});
this.arrEnemyQueue.push({name:"Enemy_6", wait:60});
this.arrEnemyQueue.push({name:"Enemy_5", wait:41});
this.arrEnemyQueue.push({name:"Enemy_6", wait:120});
this.arrEnemyQueue.push({name:"Enemy_30", wait:49});
this.arrEnemyQueue.push({name:"Enemy_30", wait:52});
this.arrEnemyQueue.push({name:"Enemy_6", wait:240});
this.arrEnemyQueue.push({name:"Enemy_6", wait:150});
this.arrEnemyQueue.push({name:"Enemy_19", wait:150});
this.arrEnemyQueue.push({name:"Enemy_30", wait:49});
this.arrEnemyQueue.push({name:"Enemy_30", wait:460});
this.arrEnemyQueue.push({name:"Enemy_19", wait:100});
this.arrEnemyQueue.push({name:"Enemy_30", wait:460});
this.arrEnemyQueue.push({name:"Enemy_19", wait:100});
this.arrEnemyQueue.push({name:"Enemy_19", wait:999999});
};
_local2["\x14\n"] = function () {
var _local3 = 25;
while (this.arrEnemyQueue.length < _local3) {
this.\x1B\f();
this.arrEnemyQueue[this.arrEnemyQueue.length - 1].wait = this["\x15\x04"];
}
var _local2 = 0;
while (_local2 < this.arrEnemyQueue.length) {
_local2++;
}
};
_local2["\x1B\f"] = function () {
var _local2;
this.bossName = "";
_local2 = this.?\r();
var _local12 = 0;
var _local13 = 0;
var _local18 = 0;
var _local14 = 0;
var _local6 = 0;
while (_local6 < _local2.length) {
_local18 = _local18 + _local2[_local6].chance;
_local6++;
}
_local14 = Math.round(Math.random() * _local18);
_local6 = 0;
while (_local6 < _local2.length) {
_local13 = _local12 + _local2[_local6].chance;
_local2[_local6].minChance = _local12;
_local2[_local6].maxChance = _local13;
_local12 = _local13;
_local6++;
}
var _local5 = -1;
_local6 = 0;
while (_local6 < _local2.length) {
if ((_local14 >= _local2[_local6].minChance) && (_local14 < _local2[_local6].maxChance)) {
_local5 = _local6;
break;
}
_local6++;
}
if (_local5 == -1) {
_local5 = _local2.length - 1;
}
if (this.bossName != "") {
if ((this["2\x0E"] == false) && (this["9\n"] == false)) {
this["2\x0E"] = true;
this.arrEnemyQueue.push({name:this.bossName, wait:40});
}
}
_local2[_local5].\x12\x05();
var _local19 = _local2[_local5].=\x03();
var _local4 = new Array();
var _local10 = 0;
while (_local10 < _local19) {
var _local8 = _local2[_local5].enemyNum;
var _local11 = _local2[_local5].enemyType;
var _local9 = _local2[_local5].nextEnemyWait;
var _local16 = _local2[_local5].miniWaveWait;
var _local3 = 0;
while (_local3 < _local8) {
_local4.push({name:_local11, wait:_local9});
_local3++;
}
_local2[_local5]. \x11();
_local10++;
}
this["\x15\x04"] = _local2[_local5].endOfWaveWait;
this["+\x05"] = 0;
while (_local4.length > 0) {
var _local7 = Math.round(Math.random() * (_local4.length - 1));
this.arrEnemyQueue.push({name:_local4[_local7].name, wait:_local4[_local7].wait});
_local4.splice(_local7, 1);
}
};
_local2["?\r"] = function () {
var _local3 = new Array();
var _local2;
_local2 = new \r\x07(30);
_local2.,\x10("Enemy_5", 0, 2, 40, 60, 0, 0);
_local2.,\x10("Enemy_6", 2, 3, 40, 70, 0, 0);
_local2.endOfWaveWait = this.RandNum(90, 150);
_local3.push(_local2);
_local2 = new \r\x07(10);
_local2.,\x10("Enemy_30", 0, 2, 40, 60, 0, 0);
_local2.endOfWaveWait = this.RandNum(40, 60);
_local3.push(_local2);
return(_local3);
};
_local2.Start = function () {
this[">\x06"] = true;
};
_local2.Stop = function () {
this[">\x06"] = false;
};
_local2["6\x0B"] = function () {
return(this["\x12\x0B"] - this["\x1C"]);
};
_local2["&\x0E"] = function () {
var _local2 = 0;
_local2 = Math.round((this["\x1C"] / this["\x12\x0B"]) * 100);
if (_local2 < 0) {
_local2 = 0;
} else if (_local2 > 100) {
_local2 = 100;
}
return(_local2);
};
_local2.RandNum = function (_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
};
_local2["3\x0E"] = function () {
this["\x12\x0B"] = 0;
this["2\x0E"] = false;
this["9\n"] = true;
};
ASSetPropFlags(_global["\x04\r"].prototype, null, 1);
#endinitclip
Symbol 2606 MovieClip [__Packages.WorldInstruction] Frame 0
class
{
var minChance, maxChance, chance, 3
, , enemyType, enemyNum, endOfWaveWait, , nextEnemyWait, miniWaveWait;
function
(_arg2) {
minChance = 0;
maxChance = 0;
chance = _arg2;
3\r = -1;
\x0F = new Array();
enemyType = "";
enemyNum = 0;
endOfWaveWait = 0;
\x11\x06 = true;
}
function ((_arg2, _arg3) {
minChance = _arg2;
maxChance = _arg3;
}
function =() {
return( \x0F.length);
}
function ,(_arg6, _arg10, _arg8, _arg7, _arg9, _arg11, _arg12) {
\x0F.push({linkage:_arg6, numAmount:RandNum(_arg10, _arg8), nextEnemyWait:RandNum(_arg7, _arg9), miniWaveWait:RandNum(_arg11, _arg12)});
if (3\r == \x0F.length) {
\x11\x06 = true;
} else {
\x11\x06 = false;
}
}
function () {
3\r = 0;
if (3\r == \x0F.length) {
\x11\x06 = true;
}
enemyType = \x0F[3\r].linkage;
enemyNum = \x0F[3\r].numAmount;
nextEnemyWait = \x0F[3\r].nextEnemyWait;
miniWaveWait = \x0F[3\r].miniWaveWait;
}
function () {
3\r++;
if (3\r == \x0F.length) {
3\r--;
\x11\x06 = true;
}
enemyType = \x0F[3\r].linkage;
enemyNum = \x0F[3\r].numAmount;
nextEnemyWait = \x0F[3\r].nextEnemyWait;
miniWaveWait = \x0F[3\r].miniWaveWait;
}
function RandNum(_arg1, _arg2) {
return(Math.round(Math.random() * (_arg2 - _arg1)) + _arg1);
}
}
Symbol 2607 MovieClip [__Packages.TurretManager] Frame 0
class '
{
var , ", , , [, , ,
, !, , 2, , -,
, 3, (, , 0, 9, , ], , , , , , , 8
, ;
, arrUpgrades, intLevel, , 5, , , 7, , , [,
, ;
function ' () {
\x18\x02 = 0;
\" = 300;
\x16\f = 600;
\x06\x03 = 1000;
[\x0B = 2000;
\x0B\f = 3000;
\x0F\x11 = 4000;
\n\r = 5000;
!\x0E = 6000;
\x12\f = 7000;
2\x05 = 8000;
\x01\f = 9000;
-\x05 = 10000;
\x13\n = 11000;
3\x0F = 12000;
(\x10 = 13000;
\x02 = 14000;
0\x03 = 15000;
9\x11 = 16000;
\x18\x10 = 17000;
]\x07 = 18000;
\x18\x0B = 19000;
\x1A\x06 = 20000;
this["?\x06"] = 21000;
\x03\x02 = 22000;
\x14\x0B = 23000;
\x1A = 24000;
\x18\f = 25000;
8\n = 26000;
;\r = 27000;
arrUpgrades = new Array();
,(0, 0);
}
function >(_arg2) {
var _local3 = 0;
if (_arg2 >= ;\r) {
_local3 = 0;
} else if (_arg2 >= 8\n) {
_local3 = (_arg2 - 8\n) / (;\r - 8\n);
} else if (_arg2 >= \x18\f) {
_local3 = (_arg2 - \x18\f) / (8\n - \x18\f);
} else if (_arg2 >= \x1A) {
_local3 = (_arg2 - \x1A) / (\x18\f - \x1A);
} else if (_arg2 >= \x14\x0B) {
_local3 = (_arg2 - \x14\x0B) / (\x1A - \x14\x0B);
} else if (_arg2 >= \x03\x02) {
_local3 = (_arg2 - \x03\x02) / (\x14\x0B - \x03\x02);
} else if (_arg2 >= this["?\x06"]) {
_local3 = (_arg2 - this["?\x06"]) / (\x03\x02 - this["?\x06"]);
} else if (_arg2 >= \x1A\x06) {
_local3 = (_arg2 - \x1A\x06) / (this["?\x06"] - \x1A\x06);
} else if (_arg2 >= \x18\x0B) {
_local3 = (_arg2 - \x18\x0B) / (\x1A\x06 - \x18\x0B);
} else if (_arg2 >= ]\x07) {
_local3 = (_arg2 - ]\x07) / (\x18\x0B - ]\x07);
} else if (_arg2 >= \x18\x10) {
_local3 = (_arg2 - \x18\x10) / (]\x07 - \x18\x10);
} else if (_arg2 >= 9\x11) {
_local3 = (_arg2 - 9\x11) / (\x18\x10 - 9\x11);
} else if (_arg2 >= 0\x03) {
_local3 = (_arg2 - 0\x03) / (9\x11 - 0\x03);
} else if (_arg2 >= \x02) {
_local3 = (_arg2 - \x02) / (0\x03 - \x02);
} else if (_arg2 >= (\x10) {
_local3 = (_arg2 - (\x10) / ( \x02 - (\x10);
} else if (_arg2 >= 3\x0F) {
_local3 = (_arg2 - 3\x0F) / ((\x10 - 3\x0F);
} else if (_arg2 >= \x13\n) {
_local3 = (_arg2 - \x13\n) / (3\x0F - \x13\n);
} else if (_arg2 >= -\x05) {
_local3 = (_arg2 - -\x05) / (\x13\n - -\x05);
} else if (_arg2 >= \x01\f) {
_local3 = (_arg2 - \x01\f) / (-\x05 - \x01\f);
} else if (_arg2 >= 2\x05) {
_local3 = (_arg2 - 2\x05) / (\x01\f - 2\x05);
} else if (_arg2 >= \x12\f) {
_local3 = (_arg2 - \x12\f) / (2\x05 - \x12\f);
} else if (_arg2 >= !\x0E) {
_local3 = (_arg2 - !\x0E) / (\x12\f - 9\x11);
} else if (_arg2 >= \n\r) {
_local3 = (_arg2 - \n\r) / (!\x0E - \n\r);
} else if (_arg2 >= \x0F\x11) {
_local3 = (_arg2 - \x0F\x11) / (\n\r - \x0F\x11);
} else if (_arg2 >= \x0B\f) {
_local3 = (_arg2 - \x0B\f) / (\x0F\x11 - \x0B\f);
} else if (_arg2 >= [\x0B) {
_local3 = (_arg2 - [\x0B) / (\x0B\f - [\x0B);
} else if (_arg2 >= \x06\x03) {
_local3 = (_arg2 - \x06\x03) / ([\x0B - \x06\x03);
} else if (_arg2 >= \x16\f) {
_local3 = (_arg2 - \x16\f) / (\x06\x03 - \x16\f);
} else if (_arg2 >= \") {
_local3 = (_arg2 - \") / (\x16\f - \");
} else {
_local3 = _arg2 / \";
}
_local3 = Math.round(_local3 * 100);
return(_local3);
}
function ,(_arg4, _arg3) {
switch (_arg4) {
case 1 :
intLevel = 1;
\x1D\x05 = 4;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 15;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 100;
if (_global.achievementSet5.Get() != -1) {
\x1D\x05 = 999;
}
break;
case 2 :
intLevel = 1;
\x1D\x05 = 1;
5\x05 = 12;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 10;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 3 :
intLevel = 1;
\x1D\x05 = 15;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 600;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 4 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0.2;
\x1F\x05 = 1;
\f\x0E = 1;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 5 :
intLevel = 1;
\x1D\x05 = 20;
5\x05 = 0;
\x0E\x03 = 10;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 600;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 75;
break;
case 6 :
intLevel = 1;
\x1D\x05 = 10;
5\x05 = 0;
\x0E\x03 = 6;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 300;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 100;
break;
case 7 :
intLevel = 1;
\x1D\x05 = 30;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0.4;
\x1F\x05 = 1;
\f\x0E = 1200;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 65;
break;
case 8 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0.2;
\x1F\x05 = 1;
\f\x0E = 1;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 95;
break;
case 9 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0.2;
\x1F\x05 = 1;
\f\x0E = 1;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 95;
break;
case 10 :
intLevel = 1;
\x1D\x05 = 30;
5\x05 = 11;
\x0E\x03 = 12;
\x1E\x10 = 8;
7\x02 = 450;
\x1F\x05 = 1;
\f\x0E = 4500;
[\x05 = 1;
\x19\r = 30;
\x12\x12 = 75;
break;
case 11 :
intLevel = 1;
\x1D\x05 = 1;
5\x05 = 12;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 10;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 12 :
intLevel = 1;
\x1D\x05 = 2;
5\x05 = 11;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 18;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 13 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 11;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 2000;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 50;
break;
case 14 :
intLevel = 1;
\x1D\x05 = 15;
5\x05 = 11;
\x0E\x03 = 2;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 200;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 15 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 200;
\x1F\x05 = 1;
\f\x0E = 1200;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 16 :
intLevel = 1;
\x1D\x05 = 15;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0.3;
\x1F\x05 = 1;
\f\x0E = 300;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 17 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0.2;
\x1F\x05 = 1;
\f\x0E = 0;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 50;
break;
case 18 :
intLevel = 1;
\x1D\x05 = 3;
5\x05 = 20;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 5;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 85;
break;
case 19 :
intLevel = 1;
\x1D\x05 = 4;
5\x05 = 4;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 4;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 100;
break;
case 20 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 5;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 400;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 85;
break;
case 21 :
intLevel = 1;
\x1D\x05 = 1;
5\x05 = 12;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 10;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 22 :
intLevel = 1;
\x1D\x05 = 10;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 2;
7\x02 = 40;
\x1F\x05 = 1;
\f\x0E = 550;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 95;
break;
case 23 :
intLevel = 1;
\x1D\x05 = 10;
5\x05 = 11;
\x0E\x03 = 10;
\x1E\x10 = 75;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 700;
[\x05 = 1;
\x19\r = 30;
\x12\x12 = 85;
break;
case 24 :
intLevel = 1;
\x1D\x05 = 100;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 100;
\x1F\x05 = 1;
\f\x0E = 1600;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 70;
break;
case 25 :
intLevel = 1;
\x1D\x05 = 0;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 1;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 125;
break;
case 26 :
intLevel = 1;
\x1D\x05 = 10;
5\x05 = 0;
\x0E\x03 = 10;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 250;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 95;
break;
case 27 :
intLevel = 1;
\x1D\x05 = 10;
5\x05 = 0.5;
\x0E\x03 = 10;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 700;
[\x05 = 1;
\x19\r = 30;
\x12\x12 = 85;
break;
case 28 :
intLevel = 1;
\x1D\x05 = 1;
5\x05 = 12;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 10;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 85;
break;
case 29 :
intLevel = 1;
\x1D\x05 = 6;
5\x05 = 11;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 20;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 85;
break;
case 30 :
intLevel = 1;
\x1D\x05 = 5;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 15;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 85;
break;
case 31 :
intLevel = 1;
\x1D\x05 = 1;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 25;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 400;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
case 32 :
intLevel = 1;
\x1D\x05 = 5;
5\x05 = 0;
\x0E\x03 = 3;
\x1E\x10 = 12;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 450;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 85;
break;
case 33 :
intLevel = 1;
\x1D\x05 = 50;
5\x05 = 0;
\x0E\x03 = 0;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 12;
[\x05 = 0;
\x19\r = 0;
\x12\x12 = 75;
break;
default :
intLevel = 1;
\x1D\x05 = 4;
5\x05 = 0;
\x0E\x03 = 1;
\x1E\x10 = 0;
7\x02 = 0;
\x1F\x05 = 1;
\f\x0E = 15;
[\x05 = 0.2;
\x19\r = 12;
\x12\x12 = 50;
}
if (_arg3 >= ;\r) {
intLevel = 30;
} else if (_arg3 >= 8\n) {
intLevel = 29;
} else if (_arg3 >= \x18\f) {
intLevel = 28;
} else if (_arg3 >= \x1A) {
intLevel = 27;
} else if (_arg3 >= \x14\x0B) {
intLevel = 26;
} else if (_arg3 >= \x03\x02) {
intLevel = 25;
} else if (_arg3 >= this["?\x06"]) {
intLevel = 24;
} else if (_arg3 >= \x1A\x06) {
intLevel = 23;
} else if (_arg3 >= \x18\x0B) {
intLevel = 22;
} else if (_arg3 >= ]\x07) {
intLevel = 21;
} else if (_arg3 >= \x18\x10) {
intLevel = 20;
} else if (_arg3 >= 9\x11) {
intLevel = 19;
} else if (_arg3 >= 0\x03) {
intLevel = 18;
} else if (_arg3 >= \x02) {
intLevel = 17;
} else if (_arg3 >= (\x10) {
intLevel = 16;
} else if (_arg3 >= 3\x0F) {
intLevel = 15;
} else if (_arg3 >= \x13\n) {
intLevel = 14;
} else if (_arg3 >= -\x05) {
intLevel = 13;
} else if (_arg3 >= \x01\f) {
intLevel = 12;
} else if (_arg3 >= 2\x05) {
intLevel = 11;
} else if (_arg3 >= \x12\f) {
intLevel = 10;
} else if (_arg3 >= !\x0E) {
intLevel = 9;
} else if (_arg3 >= \n\r) {
intLevel = 8;
} else if (_arg3 >= \x0F\x11) {
intLevel = 7;
} else if (_arg3 >= \x0B\f) {
intLevel = 6;
} else if (_arg3 >= [\x0B) {
intLevel = 5;
} else if (_arg3 >= \x06\x03) {
intLevel = 4;
} else if (_arg3 >= \x16\f) {
intLevel = 3;
} else if (_arg3 >= \") {
intLevel = 2;
} else {
intLevel = 1;
}
}
function (_arg12) {
delete arrUpgrades;
arrUpgrades = new Array();
switch (_arg12) {
case 1 :
arrUpgrades.push({id:101, type:1, value:3, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your cannon's damage by 3", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:102, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
break;
case 2 :
arrUpgrades.push({id:201, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:8});
arrUpgrades.push({id:202, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:203, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:2});
break;
case 3 :
arrUpgrades.push({id:301, type:1, value:3, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 3", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:302, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:303, type:3, value:-50, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 50", icon:"upgradeReload", limit:6, cost:2});
break;
case 4 :
arrUpgrades.push({id:402, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:404, type:4, value:0.03, secondType:0, secondValue:0, title:"Buff Strength", description:"Increases buff strength by 3%", icon:"upgradeBuff", limit:15, cost:2});
break;
case 5 :
arrUpgrades.push({id:501, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 2", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:502, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:503, type:3, value:-50, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 50", icon:"upgradeReload", limit:6, cost:2});
arrUpgrades.push({id:505, type:5, value:1, secondType:0, secondValue:0, title:"Fragment Increase", description:"Increases the number of shards by 1", icon:"upgradeFragment", limit:100, cost:1});
break;
case 6 :
arrUpgrades.push({id:601, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 2", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:602, type:2, value:25, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 25", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:603, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:8, cost:1});
arrUpgrades.push({id:605, type:5, value:1, secondType:0, secondValue:0, title:"Fragment Increase", description:"Increases the number of shards by 1", icon:"upgradeFragment", limit:100, cost:2});
break;
case 7 :
arrUpgrades.push({id:701, type:1, value:5, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 5", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:702, type:2, value:10, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 10", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:703, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:6, cost:2});
arrUpgrades.push({id:705, type:5, value:1, secondType:0, secondValue:0, title:"Chain Increase", description:"Increases the number of chain jumps by 1", icon:"upgradeJump", limit:100, cost:2});
arrUpgrades.push({id:704, type:4, value:0.05, secondType:0, secondValue:0, title:"Secondary Damage Increase", description:"Increases damage done each chain jump by 5%", icon:"upgradeSecondary", limit:6, cost:1});
break;
case 8 :
arrUpgrades.push({id:802, type:2, value:25, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 25", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:804, type:4, value:0.03, secondType:0, secondValue:0, title:"Buff Strength", description:"Increases buff strength by 3%", icon:"upgradeBuff", limit:15, cost:2});
break;
case 9 :
arrUpgrades.push({id:902, type:2, value:20, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 20", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:904, type:4, value:0.02, secondType:0, secondValue:0, title:"Buff Strength", description:"Increases buff strength by 2%", icon:"upgradeBuff", limit:15, cost:3});
break;
case 10 :
arrUpgrades.push({id:1001, type:1, value:5, secondType:0, secondValue:0, title:"Damage Increase", description:"Increase meteor max damage by 5", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:1002, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1003, type:3, value:-100, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 100", icon:"upgradeReload", limit:20, cost:2});
arrUpgrades.push({id:1056, type:5, value:-1, secondType:6, secondValue:-1, title:"Density Increase", description:"Increases the intensity of the meteor storm", icon:"upgradeDensity", limit:4, cost:4});
arrUpgrades.push({id:1004, type:4, value:20, secondType:0, secondValue:0, title:"Duration Increase", description:"Increases length of meteor storm by 20", icon:"upgradeDuration", limit:20, cost:2});
break;
case 11 :
arrUpgrades.push({id:1101, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:10});
arrUpgrades.push({id:1102, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1103, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:3});
break;
case 12 :
arrUpgrades.push({id:1201, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:10});
arrUpgrades.push({id:1202, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1203, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:3});
break;
case 13 :
arrUpgrades.push({id:1302, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1303, type:3, value:-50, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 50", icon:"upgradeReload", limit:10, cost:2});
break;
case 14 :
arrUpgrades.push({id:1401, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases mine damage by 2", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:1402, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1403, type:3, value:-20, secondType:0, secondValue:0, title:"Decrease Build Time", description:"Decreases build time by 20", icon:"upgradeReload", limit:4, cost:2});
arrUpgrades.push({id:1405, type:5, value:1, secondType:0, secondValue:0, title:"Mine Increase", description:"Increases the number of mines by 1", icon:"upgradeMineNumber", limit:5, cost:5});
break;
case 15 :
arrUpgrades.push({id:1502, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1503, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:5, cost:1});
arrUpgrades.push({id:1504, type:4, value:20, secondType:0, secondValue:0, title:"Duration Increase", description:"Increases length of time freeze by 20", icon:"upgradeDuration", limit:20, cost:2});
break;
case 16 :
arrUpgrades.push({id:1601, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 2", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:1602, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1603, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:6, cost:2});
break;
case 17 :
arrUpgrades.push({id:1702, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:1704, type:4, value:0.03, secondType:0, secondValue:0, title:"Shield Strength", description:"Increases shield strength by 5%", icon:"upgradeBuff", limit:5, cost:4});
break;
case 18 :
arrUpgrades.push({id:1801, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:14});
arrUpgrades.push({id:1802, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
break;
case 19 :
arrUpgrades.push({id:1901, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:10});
arrUpgrades.push({id:1902, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
break;
case 20 :
arrUpgrades.push({id:2002, type:2, value:25, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 25", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2003, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Building Time", description:"Decreases building time by 25 if you have more than 1 drone", icon:"upgradeReload", limit:4, cost:2});
arrUpgrades.push({id:2004, type:4, value:1, secondType:0, secondValue:0, title:"Machine Gun Upgrade", description:"Drones fight back with machine guns!", icon:"upgradeMachineGuns", limit:1, cost:8});
arrUpgrades.push({id:2005, type:5, value:1, secondType:0, secondValue:0, title:"More Drones", description:"1 more drone will be released each level", icon:"upgradeDecoyNumber", limit:5, cost:2});
arrUpgrades.push({id:2006, type:6, value:4, secondType:0, secondValue:0, title:"Drone Health Increase", description:"Each of your drones gets a little more life", icon:"upgradeDecoyHealth", limit:100, cost:1});
break;
case 21 :
arrUpgrades.push({id:2101, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:8});
arrUpgrades.push({id:2102, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2103, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:2});
break;
case 22 :
arrUpgrades.push({id:2201, type:1, value:5, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases main canister damage by 5", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:2202, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2203, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:12, cost:1});
arrUpgrades.push({id:2204, type:4, value:5, secondType:0, secondValue:0, title:"Duration Increase", description:"Increases length of spilling acid by 5", icon:"upgradeDuration", limit:20, cost:2});
arrUpgrades.push({id:2206, type:6, value:1, secondType:0, secondValue:0, title:"Secondary Damage Increase", description:"Increases spilling acid damage by 1", icon:"upgradeSecondary", limit:50, cost:2});
break;
case 23 :
arrUpgrades.push({id:2301, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases main canister damage by 2", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:2302, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2303, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:12, cost:1});
arrUpgrades.push({id:2306, type:6, value:25, secondType:0, secondValue:0, title:"Increase Range", description:"Increase the horizontal range by 25", icon:"upgradeRange", limit:25, cost:1});
arrUpgrades.push({id:2305, type:5, value:2, secondType:0, secondValue:0, title:"Shell Increase", description:"Increase the number of shells launched by 2", icon:"upgradeNumArtillery", limit:12, cost:3});
break;
case 24 :
arrUpgrades.push({id:24001, type:1, value:10, secondType:0, secondValue:0, title:"Damage Increase", description:"Increase damage by 10", icon:"upgradeDamage", limit:100, cost:1});
arrUpgrades.push({id:24002, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:24005, type:5, value:10, secondType:0, secondValue:0, title:"Duration Increase", description:"Increases duration of beam by 10", icon:"upgradeDuration", limit:10, cost:2});
break;
case 25 :
arrUpgrades.push({id:2502, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
break;
case 26 :
arrUpgrades.push({id:2601, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 2", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:2602, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2603, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 25", icon:"upgradeReload", limit:6, cost:1});
break;
case 27 :
arrUpgrades.push({id:2701, type:1, value:2, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases mine damage damage by 2", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:2702, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2703, type:3, value:-50, secondType:0, secondValue:0, title:"Decrease Reload Time", description:"Decreases reload time by 50", icon:"upgradeReload", limit:6, cost:2});
arrUpgrades.push({id:2705, type:5, value:2, secondType:0, secondValue:0, title:"Mine Increase", description:"Increases the number of mines by 2", icon:"upgradeDecoyNumber", limit:20, cost:1});
break;
case 28 :
arrUpgrades.push({id:2801, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:10});
arrUpgrades.push({id:2802, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2803, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:3});
break;
case 29 :
arrUpgrades.push({id:2901, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:3});
arrUpgrades.push({id:2902, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:2903, type:3, value:-1, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Increases fire rate by 1", icon:"upgradeReload", limit:5, cost:1});
break;
case 30 :
arrUpgrades.push({id:3002, type:2, value:15, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 15", icon:"upgradeHealth", limit:100, cost:2});
break;
case 31 :
arrUpgrades.push({id:3101, type:1, value:1, secondType:0, secondValue:0, title:"Damage Increase", description:"Increases your gun's damage by 1", icon:"upgradeDamage", limit:100, cost:8});
arrUpgrades.push({id:3104, type:4, value:-5, secondType:0, secondValue:0, title:"Faster Fire Rate", description:"Ship fires more frequently.", icon:"upgradeReload", limit:10, cost:1});
arrUpgrades.push({id:2006, type:6, value:4, secondType:0, secondValue:0, title:"Ship Health Increase", description:"Ship life increases by 4.", icon:"upgradeHealth", limit:100, cost:1});
break;
case 32 :
arrUpgrades.push({id:3202, type:2, value:25, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 25", icon:"upgradeHealth", limit:100, cost:1});
arrUpgrades.push({id:3203, type:3, value:-25, secondType:0, secondValue:0, title:"Decrease Building Time", description:"Decreases building time by 25 if you have more than 1 drone", icon:"upgradeReload", limit:4, cost:1});
arrUpgrades.push({id:3204, type:4, value:-5, secondType:0, secondValue:0, title:"Increase Ammo", description:"Drones will drop more bombs.", icon:"upgradeNumArtillery", limit:10, cost:2});
arrUpgrades.push({id:3205, type:5, value:2, secondType:0, secondValue:0, title:"More Drones", description:"2 more drone will be released each level", icon:"upgradeDecoyNumber", limit:8, cost:2});
arrUpgrades.push({id:3206, type:6, value:4, secondType:0, secondValue:0, title:"Drone Health Increase", description:"Each of your drones gets a little more life", icon:"upgradeDecoyHealth", limit:100, cost:1});
break;
case 33 :
arrUpgrades.push({id:3301, type:1, value:5, secondType:0, secondValue:0, title:"Damage Increase", description:"All Sun Cannons do 5 more damage.", icon:"upgradeDamage", limit:100, cost:2});
arrUpgrades.push({id:3302, type:2, value:5, secondType:0, secondValue:0, title:"Health Increase", description:"Raises your max health by 5", icon:"upgradeHealth", limit:100, cost:1});
}
return(arrUpgrades);
}
function 2() {
return(\x1D\x05);
}
function "() {
return(5\x05);
}
function () {
return(\x0E\x03);
}
function 1() {
return(\x1E\x10);
}
function ;() {
return(7\x02);
}
function 4() {
return(\x1F\x05);
}
function #() {
return(\f\x0E);
}
function %
() {
return([\x05);
}
function () {
return(\x19\r);
}
function =
() {
return(intLevel);
}
function () {
return(\x12\x12);
}
}
Symbol 2608 MovieClip [__Packages.PointCounter] Frame 0
class
{
var , currentScore, displayScore;
function () {
\x16\x11 = 1;
currentScore = 0;
displayScore = 0;
}
function
(_arg2) {
currentScore = _arg2;
displayScore = _arg2;
}
function (_arg2) {
\x16\x11 = _arg2;
}
function (_arg2) {
currentScore = currentScore + _arg2;
}
function SetScore(_arg2) {
currentScore = _arg2;
}
function %
() {
if (currentScore != displayScore) {
displayScore = displayScore + \x16\x11;
if (currentScore == undefined) {
currentScore = 0;
}
if (displayScore > currentScore) {
displayScore = currentScore;
}
}
}
function GetDisplayScore() {
return(displayScore);
}
function GetScore() {
return(currentScore);
}
function #
() {
currentScore = 0;
displayScore = 0;
}
}
Symbol 2609 MovieClip [__Packages.Timer] Frame 0
class
{
var ", , (
, &, , [;
function () {
\"\x10 = 0;
\x02\x03 = true;
(\n = 0;
&\x05 = 0;
this["5"] = false;
\x10\x06 = 0;
[\x06 = 0;
}
function %
() {
if (this["5"] == false) {
if (\x02\x03 == true) {
\"\x10 = (getTimer() - (\n) - [\x06;
} else {
\"\x10 = (&\x05 - (\n) - ((getTimer() - (\n) + [\x06);
}
} else {
[\x06 = [\x06 + (getTimer() - \x10\x06);
\x10\x06 = getTimer();
}
}
function
() {
if (this["5"] == false) {
this["5"] = true;
\x10\x06 = getTimer();
}
}
function 4() {
if (this["5"] == true) {
[\x06 = [\x06 + (getTimer() - \x10\x06);
this["5"] = false;
}
}
function '() {
return(\"\x10);
}
function () {
return(!\x0B(\"\x10));
}
function =() {
return(\"\x10 / 60000);
}
function (_arg2) {
\"\x07(true);
(\n = (\n - _arg2;
}
function Start(_arg2) {
\"\x07(_arg2);
}
function "() {
\x02\x03 = true;
#\n();
}
function ;(_arg2) {
\x02\x03 = false;
&\x05 = getTimer() + _arg2;
#\n();
}
function #
() {
(\n = getTimer();
this["5"] = false;
\x10\x06 = 0;
[\x06 = 0;
if (\x02\x03 == true) {
\"\x10 = 0;
} else {
\"\x10 = &\x05 - (\n;
}
}
function !(_arg7) {
var _local5 = _arg7;
var _local4 = Math.floor(_local5 / 1000);
if (_local4 >= 60) {
var _local1 = _local5 / 1000;
var _local3 = _local1 / 60;
if (_local1 > 59) {
_local1 = _local1 - (Math.floor(_local3) * 60);
}
var _local6;
var _local2;
if (_local3 < 10) {
_local2 = "0" + Math.floor(_local3);
} else {
_local2 = "" + Math.floor(_local3);
}
if (_local1 < 10) {
_local6 = (_local2 + ":0") + Math.floor(_local1);
} else if (_local1 == 0) {
_local6 = _local2 + ":00";
} else {
_local6 = (_local2 + ":") + Math.floor(_local1);
}
return(_local6);
}
if (_local4 < 10) {
var _local6 = "00:0" + Math.floor(_local4);
} else {
var _local6 = "00:" + Math.floor(_local4);
}
return(_local6);
}
}
Symbol 2610 MovieClip [__Packages.GunData] Frame 0
class "
{
var name, timer, timerReady, timerRate, power, chargeRate, chargeMax, blnSelected, powerMeter, loadMeter, healthMeter, intLevel, charging, selectField, type, exp, damage, damageTaken, totalLife, saveType, blnDestroyed, intPoints, data, numBullets, range, startX, startY, %, 1, arrUpgrades;
function " () {
name = "";
timer = 0;
timerReady = 0;
timerRate = 0;
power = 0;
chargeRate = 0;
chargeMax = 0;
blnSelected = false;
powerMeter = "";
loadMeter = "";
healthMeter = "";
intLevel = 0;
charging = false;
selectField = "";
type = 0;
exp = 0;
damage = 0;
damageTaken = 0;
totalLife = 0;
saveType = 0;
blnDestroyed = false;
intPoints = 0;
data = 0;
numBullets = 0;
range = 0;
startX = 0;
startY = 0;
%\x0F = new \x17\x04();
1\x07 = true;
arrUpgrades = new Array();
}
function SetPoints(_arg2) {
intPoints = _arg2;
%\x0F.Set(_arg2);
1\x07 = true;
}
function <() {
if ((1\x07 == undefined) || (1\x07 == false)) {
return(intPoints);
}
if (intPoints == %\x0F.Get()) {
return(intPoints);
}
return(0);
}
}
Symbol 2611 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class 8.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var 9,
;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(_arg2) {
var _local1 = new 8\x10.rankz.Armor_Bot_30_En_AS1();
return(_local1.\x14\x0F(_arg2));
}
static function Decode(_arg2) {
var _local1 = new 8\x10.rankz.Armor_Bot_30_En_AS1();
return(_local1.\x05\x03(_arg2));
}
static function StringReplaceAll(_arg2, _arg3, _arg1) {
return(_arg2.split(_arg3).join(_arg1));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(_arg1) {
_arg1 = StringReplaceAll(_arg1, "\\", " ");
_arg1 = unescape(_arg1);
return(_arg1);
}
static function UrlEncode(_arg1) {
_arg1 = escape(_arg1);
_arg1 = StringReplaceAll(_arg1, "\\", "%2B");
_arg1 = StringReplaceAll(_arg1, "%20", "+");
return(_arg1);
}
function (_arg2) {
9\x03 = _arg2;
\x1E\r = 0;
}
function () {
if (!9\x03) {
return(_EndOfInput);
}
if (\x1E\r >= 9\x03.length) {
return(_EndOfInput);
}
var _local2 = 9\x03.charCodeAt(\x1E\r) & 255;
\x1E\r++;
return(_local2);
}
function (_arg6) {
\x01\x11(_arg6);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = \x13\x03())) != _EndOfInput)) {
_local2[1] = \x13\x03();
_local2[2] = \x13\x03();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function )() {
if (!9\x03) {
return(_EndOfInput);
}
while (true) {
if (\x1E\r >= 9\x03.length) {
return(_EndOfInput);
}
var _local2 = 9\x03.charAt(\x1E\r);
\x1E\r++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function
(_arg2) {
var _local1 = _arg2.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function (_arg5) {
\x01\x11(_arg5);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = )\x05())) != _EndOfInput)) && (((_local2[1] = )\x05())) != _EndOfInput)) {
_local2[2] = )\x05();
_local2[3] = )\x05();
_local3 = _local3 + \x0B\r(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + \x0B\r(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + \x0B\r(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function (_arg5) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (_arg5 >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function 2(_arg3, _arg4, _arg5) {
var _local2 = _arg3;
var _local1 = _arg3.length;
while (_local1 < _arg4) {
_local2 = _arg5 + _local2;
_local1++;
}
return(_local2);
}
function (_arg3) {
var _local4 = "";
var _local2 = 0;
while (_local2 < _arg3.length) {
_local4 = _local4 + 2\x0B(\x13\x07(_arg3.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function (_arg4) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < _arg4.length) {
_local3 = _local3 + _arg4.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + \x0B\r(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 301 MovieClip [Enemy_2] Frame 1
#initclip 129
Object.registerClass("Enemy_2", Enemy_2);
#endinitclip
Symbol 305 MovieClip [Enemy_5] Frame 1
#initclip 79
Object.registerClass("Enemy_5", Enemy_5);
#endinitclip
Symbol 313 MovieClip [Enemy_6] Frame 1
#initclip 80
Object.registerClass("Enemy_6", Enemy_6);
#endinitclip
Symbol 318 MovieClip [Enemy_22] Frame 1
#initclip 81
Object.registerClass("Enemy_22", Enemy_22);
#endinitclip
stop();
Symbol 318 MovieClip [Enemy_22] Frame 2
stop();
Symbol 349 MovieClip Frame 54
gotoAndPlay (27);
Symbol 350 MovieClip [Enemy_31] Frame 1
#initclip 82
Object.registerClass("Enemy_31", Enemy_31);
#endinitclip
this.energy_mc._visible = false;
stop();
Symbol 357 MovieClip [Enemy_33] Frame 1
#initclip 83
Object.registerClass("Enemy_33", Enemy_33);
#endinitclip
stop();
Symbol 357 MovieClip [Enemy_33] Frame 2
stop();
Symbol 364 MovieClip [Enemy_34] Frame 1
#initclip 84
Object.registerClass("Enemy_34", Enemy_34);
#endinitclip
stop();
Symbol 364 MovieClip [Enemy_34] Frame 2
stop();
Symbol 369 MovieClip [Enemy_35] Frame 1
#initclip 85
Object.registerClass("Enemy_35", Enemy_35);
#endinitclip
stop();
Symbol 369 MovieClip [Enemy_35] Frame 2
stop();
Symbol 373 MovieClip [Enemy_36] Frame 1
#initclip 86
Object.registerClass("Enemy_36", Enemy_36);
#endinitclip
Symbol 376 MovieClip [Enemy_37] Frame 1
#initclip 87
Object.registerClass("Enemy_37", Enemy_37);
#endinitclip
stop();
Symbol 380 MovieClip [Enemy_38] Frame 1
#initclip 88
Object.registerClass("Enemy_38", Enemy_38);
#endinitclip
Symbol 389 MovieClip [Enemy_40] Frame 1
#initclip 89
Object.registerClass("Enemy_40", Enemy_40);
#endinitclip
stop();
Symbol 389 MovieClip [Enemy_40] Frame 2
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 16
stop();
this._parent.LaunchBomb(this._name);
Symbol 398 MovieClip [Enemy_41] Frame 1
#initclip 90
Object.registerClass("Enemy_41", Enemy_7);
#endinitclip
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 9
gotoAndPlay ("Shoot");
Symbol 407 MovieClip [controlUnitOne] Frame 1
#initclip 91
Object.registerClass("controlUnitOne", ControlUnitOne);
#endinitclip
Symbol 425 MovieClip Frame 21
stop();
Symbol 426 MovieClip [decoyWGun] Frame 1
#initclip 92
Object.registerClass("decoyWGun", @\x0F);
#endinitclip
Symbol 444 MovieClip [Enemy_53] Frame 1
#initclip 93
Object.registerClass("Enemy_53", Enemy_53);
#endinitclip
stop();
Symbol 444 MovieClip [Enemy_53] Frame 2
stop();
Symbol 447 MovieClip [Enemy_55] Frame 1
#initclip 94
Object.registerClass("Enemy_55", Enemy_55);
#endinitclip
stop();
Symbol 447 MovieClip [Enemy_55] Frame 2
stop();
Symbol 451 MovieClip [Enemy_56] Frame 1
#initclip 95
Object.registerClass("Enemy_56", Enemy_56);
#endinitclip
stop();
Symbol 454 MovieClip [alertLightning] Frame 221
_root.game.\x01\x03(this._name);
stop();
Symbol 457 MovieClip [alertMiss] Frame 176
_root.game.\x01\x03(this._name);
stop();
Symbol 459 MovieClip [alertStart] Frame 221
_root.game.\x01\x03(this._name);
stop();
Symbol 462 MovieClip [acidDropBullet] Frame 1
#initclip 96
Object.registerClass("acidDropBullet", \x16\x0F);
#endinitclip
Symbol 465 MovieClip [artillery] Frame 1
#initclip 97
Object.registerClass("artillery", \x18\x07);
#endinitclip
Symbol 467 MovieClip [bomb] Frame 1
#initclip 98
Object.registerClass("bomb", Bomb);
#endinitclip
Symbol 474 MovieClip [fireBullet] Frame 1
#initclip 99
Object.registerClass("fireBullet", %);
#endinitclip
Symbol 481 MovieClip [BulletFlameShard] Frame 1
#initclip 100
Object.registerClass("BulletFlameShard", BulletFlameShard);
#endinitclip
Symbol 483 MovieClip [bulletAcid] Frame 1
#initclip 101
Object.registerClass("bulletAcid", \x1D\x03);
#endinitclip
Symbol 491 MovieClip [bulletFlamethrower] Frame 1
#initclip 102
Object.registerClass("bulletFlamethrower", \f);
#endinitclip
Symbol 493 MovieClip [disc] Frame 1
#initclip 103
Object.registerClass("disc", ^\x07);
#endinitclip
Symbol 496 MovieClip [droneDestroyed] Frame 1
#initclip 104
Object.registerClass("droneDestroyed", \n\x12);
#endinitclip
Symbol 506 MovieClip [leech] Frame 1
#initclip 105
Object.registerClass("leech", ^\x07);
#endinitclip
Symbol 506 MovieClip [leech] Frame 28
stop();
Symbol 506 MovieClip [leech] Frame 29
stop();
Symbol 508 MovieClip [bulletMachine] Frame 1
#initclip 106
Object.registerClass("bulletMachine", \f);
#endinitclip
Symbol 517 MovieClip [meteor] Frame 1
#initclip 107
Object.registerClass("meteor", \x1F\x07);
#endinitclip
Symbol 537 MovieClip [balloon_mine] Frame 1
#initclip 108
Object.registerClass("balloon_mine", \x0B\x12);
#endinitclip
stop();
Symbol 537 MovieClip [balloon_mine] Frame 23
stop();
Symbol 540 MovieClip [bulletMiniBomb] Frame 1
#initclip 109
Object.registerClass("bulletMiniBomb", BulletMiniBomb);
#endinitclip
Symbol 543 MovieClip Frame 1
this._alpha = 0;
Symbol 544 MovieClip [MonsterBullet] Frame 1
#initclip 110
Object.registerClass("MonsterBullet", Enemy_MonsterBullet);
#endinitclip
Symbol 547 MovieClip [bulletPlasma] Frame 1
#initclip 111
Object.registerClass("bulletPlasma", ,\x02);
#endinitclip
Symbol 549 MovieClip [bulletRail] Frame 1
#initclip 112
Object.registerClass("bulletRail", \f);
#endinitclip
this._alpha = 0;
Symbol 552 MovieClip [remoteMissile] Frame 1
#initclip 113
Object.registerClass("remoteMissile", \x0B);
#endinitclip
Symbol 554 MovieClip [bullet2] Frame 1
#initclip 114
Object.registerClass("bullet2", ^\x07);
#endinitclip
Symbol 557 MovieClip [acidGunHit] Frame 3
_root.game.\x01\x03(this._name);
stop();
Symbol 559 MovieClip [apocalypseEffect] Frame 21
_root.game.\x01\x03(this._name);
stop();
Symbol 564 MovieClip [award] Frame 35
_root.game.\x01\x03(this._name);
stop();
Symbol 567 MovieClip [casing] Frame 1
#initclip 115
Object.registerClass("casing", >\x11);
#endinitclip
Symbol 571 MovieClip [award2] Frame 35
_root.game.\x01\x03(this._name);
stop();
Symbol 584 MovieClip [explosion_1] Frame 13
_root.game.\x01\x03(this._name);
stop();
Symbol 601 MovieClip Frame 17
_root.game.\x01\x03(this._parent._name);
stop();
Symbol 608 MovieClip [gunsmoke] Frame 10
_root.game.\x01\x03(this._name);
stop();
Symbol 611 MovieClip [jets] Frame 11
_root.game.\x01\x03(this._name);
stop();
Symbol 622 MovieClip [lightning] Frame 21
_root.game.\x01\x03(this._name);
stop();
Symbol 625 MovieClip [teleport] Frame 18
_root.game.\x01\x03(this._name);
stop();
Symbol 628 MovieClip [teleportAppear] Frame 14
_root.game.\x01\x03(this._name);
stop();
Symbol 634 MovieClip [starBurst] Frame 45
_root.game.\x01\x03(this._name);
stop();
Symbol 638 MovieClip [smoketrail] Frame 23
_root.game.\x01\x03(this._name);
stop();
Symbol 641 MovieClip [shield] Frame 27
stop();
Symbol 644 MovieClip [shieldHit] Frame 11
_root.game.\x01\x03(this._name);
stop();
Symbol 651 MovieClip [Enemy_39] Frame 1
#initclip 116
Object.registerClass("Enemy_39", Enemy_39);
#endinitclip
this.energyBall_mc._visible = false;
stop();
Symbol 651 MovieClip [Enemy_39] Frame 2
stop();
Symbol 657 MovieClip [Enemy_42] Frame 1
#initclip 117
Object.registerClass("Enemy_42", Enemy_42);
#endinitclip
stop();
Symbol 657 MovieClip [Enemy_42] Frame 2
stop();
Symbol 660 MovieClip [Enemy_44] Frame 1
#initclip 118
Object.registerClass("Enemy_44", Enemy_44);
#endinitclip
Symbol 665 MovieClip [Enemy_45] Frame 1
#initclip 119
Object.registerClass("Enemy_45", Enemy_45);
#endinitclip
stop();
Symbol 665 MovieClip [Enemy_45] Frame 2
stop();
Symbol 666 MovieClip [Enemy_46] Frame 1
#initclip 120
Object.registerClass("Enemy_46", Enemy_46);
#endinitclip
Symbol 673 MovieClip [Enemy_47] Frame 1
#initclip 121
Object.registerClass("Enemy_47", Enemy_47);
#endinitclip
stop();
Symbol 673 MovieClip [Enemy_47] Frame 2
stop();
Symbol 679 MovieClip [Enemy_48] Frame 1
#initclip 122
Object.registerClass("Enemy_48", Enemy_48);
#endinitclip
stop();
Symbol 679 MovieClip [Enemy_48] Frame 2
stop();
Symbol 685 MovieClip [Enemy_49] Frame 1
#initclip 123
Object.registerClass("Enemy_49", Enemy_49);
#endinitclip
stop();
Symbol 685 MovieClip [Enemy_49] Frame 2
stop();
Symbol 691 MovieClip [Enemy_50] Frame 1
#initclip 124
Object.registerClass("Enemy_50", Enemy_50);
#endinitclip
Symbol 694 MovieClip [Enemy_51] Frame 1
#initclip 125
Object.registerClass("Enemy_51", Enemy_51);
#endinitclip
Symbol 711 MovieClip Frame 15
stop();
Symbol 712 MovieClip [damageExplosionSmall] Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 712 MovieClip [damageExplosionSmall] Frame 66
_root.game.\x01\x03(this._name);
stop();
Symbol 722 MovieClip Frame 17
stop();
Symbol 723 MovieClip [damageExplosionBig] Frame 18
this.inside._rotation = Math.round(Math.random() * 360);
Symbol 723 MovieClip [damageExplosionBig] Frame 66
_root.game.\x01\x03(this._name);
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 9
gotoAndPlay ("Shoot");
Symbol 739 MovieClip [Auto_Defender] Frame 1
#initclip 126
Object.registerClass("Auto_Defender", Auto_Defender);
#endinitclip
Symbol 739 MovieClip [Auto_Defender] Frame 7
stop();
Symbol 742 MovieClip [bomb_drone] Frame 1
#initclip 127
Object.registerClass("bomb_drone", BombDrone);
#endinitclip
Symbol 744 MovieClip Frame 21
stop();
Symbol 745 MovieClip [decoy] Frame 1
#initclip 128
Object.registerClass("decoy", \x1D\x0B);
#endinitclip
Symbol 748 MovieClip [water] Frame 1
var dropTimer = 0;
this._x = Math.random() * 850;
this._y = -30;
this._xscale = Math.random() * 20;
this._yscale = this._xscale;
var dropFalling = 25;
var dropSpeed = (this._xscale / 100);
var dropGravity = (this._xscale / 100);
stop();
this.onEnterFrame = function () {
timer++;
this._y = this._y + dropFalling;
dropFalling = dropFalling + dropSpeed;
this._x = this._x + -10;
if (this._y > 384) {
removeMovieClip(this);
}
};
Symbol 752 MovieClip Frame 1
this._alpha = 0;
Symbol 754 MovieClip [solar_cannon_beam_state1] Frame 15
stop();
Symbol 754 MovieClip [solar_cannon_beam_state1] Frame 30
_root.game.\x16\x02(this._name);
Symbol 754 MovieClip [solar_cannon_beam_state1] Frame 31
stop();
Symbol 761 MovieClip [solar_cannon_beam_state2] Frame 15
stop();
Symbol 761 MovieClip [solar_cannon_beam_state2] Frame 30
_root.game.\x16\x02(this._name);
Symbol 761 MovieClip [solar_cannon_beam_state2] Frame 31
stop();
Symbol 768 MovieClip [solar_cannon_beam_state3] Frame 15
stop();
Symbol 768 MovieClip [solar_cannon_beam_state3] Frame 30
_root.game.\x16\x02(this._name);
Symbol 768 MovieClip [solar_cannon_beam_state3] Frame 31
stop();
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 130
_root.game.\x14\x06();
stop();
Symbol 831 MovieClip Frame 270
gotoAndStop ("Stop");
Symbol 841 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 12
gotoAndPlay (2);
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 10
gotoAndPlay ("Shoot");
Instance of Symbol 857 MovieClip "radio_mc" in Symbol 858 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 2
stop();
Symbol 895 MovieClip Frame 41
gotoAndStop (1);
Symbol 900 MovieClip Frame 54
gotoAndPlay (27);
Symbol 901 MovieClip Frame 1
this.energy_mc._visible = false;
Symbol 912 MovieClip Frame 1
stop();
Symbol 912 MovieClip Frame 15
gotoAndPlay (2);
Symbol 918 MovieClip Frame 1
stop();
Symbol 918 MovieClip Frame 3
gotoAndPlay (2);
Symbol 934 MovieClip Frame 1
stop();
Symbol 934 MovieClip Frame 15
_root.game.\f(this._parent._parent._name);
Symbol 934 MovieClip Frame 74
gotoAndStop (1);
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 9
gotoAndPlay ("Shoot");
Symbol 946 MovieClip Frame 1
stop();
Symbol 946 MovieClip Frame 2
stop();
Symbol 950 MovieClip Frame 21
gotoAndPlay(Math.round(Math.random() * 50) + 22);
Symbol 978 MovieClip Frame 1
stop();
Symbol 978 MovieClip Frame 51
stop();
_root.game.\x1D\r(this._parent._parent._name);
Symbol 978 MovieClip Frame 101
_root.game.!\x02(this._parent._parent._name, 9);
this._parent.gotoAndPlay("close");
Symbol 988 MovieClip Frame 1
stop();
Symbol 988 MovieClip Frame 71
_root.game.!\x02(this._parent._name, 3);
this.shooter.gotoAndPlay(2);
stop();
Symbol 988 MovieClip Frame 72
stop();
Symbol 988 MovieClip Frame 144
_root.game.?\x05(this._parent._name);
gotoAndStop (1);
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 6
gotoAndPlay ("Shoot");
Symbol 1039 MovieClip Frame 1
stop();
Symbol 1039 MovieClip Frame 2
stop();
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 38
_root.game.ReleaseBombDrone(this._parent._name);
gotoAndStop ("Stop");
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 69
stop();
Symbol 1085 MovieClip Frame 124
gotoAndStop ("Stop");
Symbol 1095 MovieClip Frame 246
stop();
Symbol 1096 MovieClip [turret] Frame 1
stop();
Symbol 1096 MovieClip [turret] Frame 2
stop();
Symbol 1096 MovieClip [turret] Frame 3
stop();
Symbol 1096 MovieClip [turret] Frame 4
stop();
Symbol 1096 MovieClip [turret] Frame 5
stop();
Symbol 1096 MovieClip [turret] Frame 6
stop();
Symbol 1096 MovieClip [turret] Frame 7
stop();
Symbol 1096 MovieClip [turret] Frame 8
stop();
Symbol 1096 MovieClip [turret] Frame 9
stop();
Symbol 1096 MovieClip [turret] Frame 10
stop();
Symbol 1096 MovieClip [turret] Frame 11
stop();
Symbol 1096 MovieClip [turret] Frame 12
stop();
Symbol 1096 MovieClip [turret] Frame 13
stop();
Symbol 1096 MovieClip [turret] Frame 14
stop();
Symbol 1096 MovieClip [turret] Frame 15
stop();
Symbol 1096 MovieClip [turret] Frame 16
stop();
Symbol 1096 MovieClip [turret] Frame 17
stop();
Symbol 1096 MovieClip [turret] Frame 18
stop();
Symbol 1096 MovieClip [turret] Frame 19
stop();
Symbol 1096 MovieClip [turret] Frame 20
stop();
Symbol 1096 MovieClip [turret] Frame 21
stop();
Symbol 1096 MovieClip [turret] Frame 22
stop();
Symbol 1096 MovieClip [turret] Frame 23
stop();
Symbol 1096 MovieClip [turret] Frame 24
stop();
Symbol 1096 MovieClip [turret] Frame 25
stop();
Symbol 1096 MovieClip [turret] Frame 26
stop();
Symbol 1096 MovieClip [turret] Frame 27
stop();
Symbol 1096 MovieClip [turret] Frame 28
stop();
Symbol 1096 MovieClip [turret] Frame 29
stop();
Symbol 1096 MovieClip [turret] Frame 30
stop();
Symbol 1096 MovieClip [turret] Frame 31
stop();
Symbol 1096 MovieClip [turret] Frame 32
stop();
Symbol 1096 MovieClip [turret] Frame 33
stop();
Symbol 1096 MovieClip [turret] Frame 40
stop();
Symbol 1098 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 197
this._parent.nextFrame();
stop();
Symbol 1107 MovieClip Frame 220
stop();
Symbol 1120 Button
on (release) {
_global.SoundManager.StopChannelOne();
_root.gotoAndStop(5);
}
Symbol 1122 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1124 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1126 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1128 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1130 MovieClip Frame 259
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1132 MovieClip Frame 289
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1134 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1136 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1138 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1140 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1142 MovieClip Frame 381
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1144 MovieClip Frame 200
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1146 MovieClip Frame 314
this.swapDepths(100000);
this.removeMovieClip();
Symbol 1147 MovieClip Frame 2
_global.SoundManager.PlaySound("four_years");
Symbol 1147 MovieClip Frame 236
_global.SoundManager.PlaySound("held_our_ground");
Symbol 1147 MovieClip Frame 366
_global.SoundManager.PlaySound("held_off_invasion");
Symbol 1147 MovieClip Frame 488
_global.SoundManager.PlaySound("paid_the_price");
Symbol 1147 MovieClip Frame 492
_global.SoundManager.PlaySound("thunder1");
Symbol 1147 MovieClip Frame 676
_global.SoundManager.PlaySound("faith_broken");
Symbol 1147 MovieClip Frame 781
_global.SoundManager.PlaySound("lives_destroyed");
Symbol 1147 MovieClip Frame 926
_global.SoundManager.PlaySound("invasion_of_our_own");
Symbol 1147 MovieClip Frame 1093
_global.SoundManager.PlaySound("thunder1");
Symbol 1147 MovieClip Frame 1187
_global.SoundManager.PlaySound("rebuilding");
Symbol 1147 MovieClip Frame 1236
_global.SoundManager.PlaySound("thunder2");
Symbol 1147 MovieClip Frame 1355
_global.SoundManager.PlaySound("silence");
Symbol 1147 MovieClip Frame 1601
_global.SoundManager.PlaySound("returned_once_again");
Symbol 1147 MovieClip Frame 1824
_global.SoundManager.PlaySound("carried_like_a_storm");
Symbol 1147 MovieClip Frame 2104
_global.SoundManager.PlaySound("tsunami");
Symbol 1147 MovieClip Frame 2442
_global.SoundManager.PlaySound("thunder1");
Symbol 1147 MovieClip Frame 2452
_global.SoundManager.PlaySound("afraid");
Symbol 1147 MovieClip Frame 2709
_global.SoundManager.PlaySound("lost");
Symbol 1147 MovieClip Frame 2825
_global.SoundManager.PlaySound("thunder1");
Symbol 1147 MovieClip Frame 3095
_global.SoundManager.PlaySound("thunder1");
Symbol 1147 MovieClip Frame 3099
_parent.gotoAndPlay(592);
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1150 MovieClip Frame 197
this._parent.gotoAndStop("done");
stop();
Symbol 1151 MovieClip Frame 2
if (_global.beforeIntro == false) {
gotoAndPlay (4);
}
Symbol 1151 MovieClip Frame 3
stop();
Symbol 1151 MovieClip Frame 4
play();
Symbol 1151 MovieClip Frame 8
if (_global.introArmorGames == false) {
gotoAndPlay (231);
}
Instance of Symbol 1107 MovieClip in Symbol 1151 MovieClip Frame 10
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1151 MovieClip Frame 232
if (_global.introHeroInteractive == false) {
gotoAndPlay (377);
}
Symbol 1151 MovieClip Frame 235
if ((_global.musicOn == true) && (_global.introStory == true)) {
_global.myMusicPlayer.SetTrack("rain");
_global.myMusicPlayer.SetMaxVolume(80);
_global.myMusicPlayer.PlayWithCrossFade(10);
}
Instance of Symbol 1111 MovieClip in Symbol 1151 MovieClip Frame 235
on (release) {
if (_global.introHeroInteractiveLinked == true) {
getURL ("http://www.herointeractive.com", "_blank");
}
}
Symbol 1151 MovieClip Frame 379
if ((_global.introExtraContent == false) || (_global.var1.Get() != -1)) {
gotoAndPlay (587);
}
Instance of Symbol 1115 MovieClip in Symbol 1151 MovieClip Frame 381
on (release) {
getURL ("http://armorgames.com/play/3099/stormwinds-the-lost-campaigns", "_blank");
}
Symbol 1151 MovieClip Frame 589
if (_global.introStory == false) {
gotoAndPlay (592);
}
Symbol 1151 MovieClip Frame 591
stop();
Symbol 1151 MovieClip Frame 594
if (_global.afterIntro == false) {
gotoAndPlay (596);
}
Symbol 1151 MovieClip Frame 595
stop();
Symbol 1151 MovieClip Frame 596
play();
Symbol 1151 MovieClip Frame 599
_root.gotoAndStop(5);
Symbol 1155 MovieClip Frame 1
if (_global.doExcludePreloader.Get() == -1) {
gotoAndStop (2);
} else {
gotoAndPlay (3);
}
Symbol 1155 MovieClip Frame 2
stop();
Symbol 1155 MovieClip Frame 13
stop();
Symbol 1170 MovieClip Frame 1
stop();
Symbol 1174 MovieClip Frame 1
stop();
Symbol 1178 MovieClip Frame 1
stop();
Instance of Symbol 1170 MovieClip "s1" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -771) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1170 MovieClip "s2" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -750) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1174 MovieClip "s9" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -750) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1174 MovieClip "s4" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -771) {
this._x = this._x - (this._xscale / (_root.enemyDiv + (_root.enemyDiv / 2)));
} else {
this._x = 200;
}
}
Instance of Symbol 1178 MovieClip "s7" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -750) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1178 MovieClip "s8" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -700) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1178 MovieClip "s5" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -750) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1178 MovieClip "s6" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -700) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1174 MovieClip "s10" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -750) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1170 MovieClip "s3" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -771) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1178 MovieClip "s11" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -771) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Instance of Symbol 1170 MovieClip "s12" in Symbol 1179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x > -700) {
this._x = this._x - (this._xscale / _root.enemyDiv);
} else {
this._x = 200;
}
}
Symbol 1183 MovieClip Frame 24
stop();
Symbol 1188 MovieClip Frame 40
_root.?\x02();
Symbol 1188 MovieClip Frame 45
_root.\x01\x0B();
Symbol 1188 MovieClip Frame 51
var nextFramer = (Math.round(Math.random() * 299) + 51);
gotoAndPlay(nextFramer);
Symbol 1188 MovieClip Frame 62
_global.SoundManager.PlaySound("thunder2");
Symbol 1188 MovieClip Frame 106
_root.?\x02();
Symbol 1188 MovieClip Frame 111
_root.\x01\x0B();
Symbol 1188 MovieClip Frame 138
_global.SoundManager.PlaySound("thunder1");
Symbol 1188 MovieClip Frame 290
_global.SoundManager.PlaySound("thunder1");
Symbol 1188 MovieClip Frame 357
_root.?\x02();
Symbol 1188 MovieClip Frame 364
_root.?\x02();
Symbol 1188 MovieClip Frame 368
_root.?\x02();
Symbol 1188 MovieClip Frame 373
_root.\x01\x0B();
Symbol 1188 MovieClip Frame 407
gotoAndPlay (50);
Symbol 1198 MovieClip Frame 104
if (_global.var1.Get() != -1) {
_root["\x07\x02"].gotoAndPlay(2);
} else {
_root["\x07\x02"].gotoAndPlay(43);
}
Symbol 1198 MovieClip Frame 111
stop();
Symbol 1198 MovieClip Frame 118
stop();
Symbol 1198 MovieClip Frame 130
gotoAndStop (111);
Symbol 1204 Button
on (release) {
_root.;\x03();
}
Symbol 1208 Button
on (release) {
_root.6\x05();
}
Symbol 1211 Button
on (release) {
_root.\x02\x02();
}
Symbol 1215 Button
on (release) {
_root.?();
}
Symbol 1218 Button
on (release) {
_root.5\x02();
}
Symbol 1221 Button
on (release) {
_root.@\x07();
}
Symbol 1222 MovieClip Frame 1
stop();
Symbol 1222 MovieClip Frame 42
stop();
Symbol 1222 MovieClip Frame 83
stop();
Symbol 1229 Button
on (release) {
_root.BackToMenu("play");
}
Symbol 1236 Button
on (release) {
this._parent.gotoAndStop(16);
}
Symbol 1242 Button
on (release) {
this._parent.gotoAndStop(24);
}
Symbol 1245 Button
on (release) {
_root.4(2);
}
Symbol 1251 Button
on (release) {
_root.BackToMenu("play2");
}
Symbol 1253 Button
on (release) {
_root.=\x05();
}
Symbol 1255 Button
on (release) {
_root.BackToMenu("play3");
}
Symbol 1272 MovieClip Frame 1
stop();
Symbol 1272 MovieClip Frame 2
stop();
Symbol 1272 MovieClip Frame 3
this._alpha = 40;
stop();
Symbol 1280 MovieClip Frame 1
stop();
Symbol 1280 MovieClip Frame 2
stop();
Symbol 1287 Button
on (release) {
_root.\x1E\x07(1);
}
Symbol 1288 Button
on (release) {
_root.\x1E\x07(2);
}
Symbol 1289 Button
on (release) {
_root.\x1E\x07(3);
}
Symbol 1294 Button
on (release) {
_global.currentCampaign = "none";
_root.)\x06();
_root.4(3);
}
Symbol 1297 Button
on (release) {
_global.loadSlot = "";
_root.BackToMenu("overwriteNo");
}
Symbol 1298 MovieClip Frame 1
stop();
Symbol 1298 MovieClip Frame 2
if (_global.loadSlot == "") {
this.inside_mc.continue_mc._visible = false;
} else {
this.inside_mc.continue_mc._visible = true;
}
Symbol 1298 MovieClip Frame 9
stop();
Symbol 1298 MovieClip Frame 14
gotoAndStop ("Off");
Symbol 1298 MovieClip Frame 16
stop();
Symbol 1298 MovieClip Frame 22
if (_global.overWriteSlot == true) {
gotoAndPlay (24);
} else {
_root.4(1);
gotoAndStop ("Off");
}
stop();
Symbol 1298 MovieClip Frame 24
function ConvertButtonToCampaignName(_arg4) {
var _local3 = false;
var _local2 = 0;
while (_local2 < _global.Campaigns.length) {
if (_global.Campaigns[_local2].strButton == _arg4) {
return(_global.Campaigns[_local2].strTitle);
}
_local2++;
}
if (_local3 == false) {
return("No Campaign");
}
}
function SlotSelected() {
if (_global.loadButt == "1") {
if (_global.overWriteSlot == false) {
if (_global.currentCampaign == "none") {
_root.4(2);
} else {
_root.?\x0B();
_root.fade_mc._visible = true;
_root.fade_mc.gotoAndPlay(2);
}
} else {
gotoAndStop (32);
}
} else if (_global.loadButt == "2") {
if (_global.overWriteSlot == false) {
if (_global.currentCampaign == "none") {
_root.4(2);
} else {
_root.?\x0B();
_root.fade_mc._visible = true;
_root.fade_mc.gotoAndPlay(2);
}
} else {
gotoAndStop (32);
}
} else if (_global.loadButt == "3") {
if (_global.overWriteSlot == false) {
if (_global.currentCampaign == "none") {
_root.4(2);
} else {
_root.?\x0B();
_root.fade_mc._visible = true;
_root.fade_mc.gotoAndPlay(2);
}
} else {
gotoAndStop (32);
}
} else if (_global.loadButt == "4") {
} else if (_global.loadButt == "5") {
}
}
if (_global.overWriteSlot == true) {
this.loaderTitle_mc.gotoAndStop(2);
} else {
this.loaderTitle_mc.gotoAndStop(1);
}
stop();
Instance of Symbol 1272 MovieClip "slot1" in Symbol 1298 MovieClip Frame 24
onClipEvent (load) {
var shouldTest = false;
var strReturnValue = "none";
var bufferCampaign;
var mySharedObject = SharedObject.getLocal("slot1");
if (mySharedObject.data.blnInUse != undefined) {
strReturnValue = "slot1";
}
if (strReturnValue != "none") {
var tempData = new \x17\x04();
this.loadName.text = mySharedObject.data.strName;
tempData.Load(mySharedObject.data.data2);
this.loadLevel.text = tempData.Get();
var beatIceCampaign = new \x17\x04();
var beatRigCampaign = new \x17\x04();
var beatForestCampaign = new \x17\x04();
var beatHillsCampaign = new \x17\x04();
var beatWaterfallCampaign = new \x17\x04();
var beatEndCampaign = new \x17\x04();
beatIceCampaign.Load(mySharedObject.data.data5);
beatRigCampaign.Load(mySharedObject.data.data6);
beatForestCampaign.Load(mySharedObject.data.data7);
beatHillsCampaign.Load(mySharedObject.data.data8);
beatWaterfallCampaign.Load(mySharedObject.data.data9);
beatEndCampaign.Load(mySharedObject.data.data10);
var totalCompleted = 0;
if (beatIceCampaign.Get() != -1) {
totalCompleted++;
}
if (beatRigCampaign.Get() != -1) {
totalCompleted++;
}
if (beatForestCampaign.Get() != -1) {
totalCompleted++;
}
if (beatHillsCampaign.Get() != -1) {
totalCompleted++;
}
if (beatWaterfallCampaign.Get() != -1) {
totalCompleted++;
}
if (beatEndCampaign.Get() != -1) {
totalCompleted++;
}
if (totalCompleted == 1) {
this.loadCompleted.text = "1 Campaign";
} else {
this.loadCompleted.text = totalCompleted + " Campaigns";
}
bufferCampaign = mySharedObject.data.strCampaign;
this.loadCampaign.text = this._parent.ConvertButtonToCampaignName(bufferCampaign);
}
if (this.loadName.text == "NA") {
this.gotoAndPlay(3);
shouldTest = false;
} else {
shouldTest = true;
}
}
on (rollOver) {
if (shouldTest) {
this.gotoAndPlay(2);
}
}
on (rollOut) {
if (shouldTest) {
this.gotoAndPlay(1);
}
}
on (press) {
if (shouldTest) {
_global.SoundManager.PlaySound(_global["\x04\x04"]);
_global.loadSlot = "slot1";
_global.loadButt = "1";
_global.currentCampaign = bufferCampaign;
this._parent.SlotSelected();
}
}
Instance of Symbol 1272 MovieClip "slot2" in Symbol 1298 MovieClip Frame 24
onClipEvent (load) {
var shouldTest = false;
var strReturnValue = "none";
var bufferCampaign;
var mySharedObject = SharedObject.getLocal("slot2");
if (mySharedObject.data.blnInUse != undefined) {
strReturnValue = "slot2";
}
if (strReturnValue != "none") {
var tempData = new \x17\x04();
this.loadName.text = mySharedObject.data.strName;
tempData.Load(mySharedObject.data.data2);
this.loadLevel.text = tempData.Get();
var beatIceCampaign = new \x17\x04();
var beatRigCampaign = new \x17\x04();
var beatForestCampaign = new \x17\x04();
var beatHillsCampaign = new \x17\x04();
var beatWaterfallCampaign = new \x17\x04();
var beatEndCampaign = new \x17\x04();
beatIceCampaign.Load(mySharedObject.data.data5);
beatRigCampaign.Load(mySharedObject.data.data6);
beatForestCampaign.Load(mySharedObject.data.data7);
beatHillsCampaign.Load(mySharedObject.data.data8);
beatWaterfallCampaign.Load(mySharedObject.data.data9);
beatEndCampaign.Load(mySharedObject.data.data10);
var totalCompleted = 0;
if (beatIceCampaign.Get() != -1) {
totalCompleted++;
}
if (beatRigCampaign.Get() != -1) {
totalCompleted++;
}
if (beatForestCampaign.Get() != -1) {
totalCompleted++;
}
if (beatHillsCampaign.Get() != -1) {
totalCompleted++;
}
if (beatWaterfallCampaign.Get() != -1) {
totalCompleted++;
}
if (beatEndCampaign.Get() != -1) {
totalCompleted++;
}
if (totalCompleted == 1) {
this.loadCompleted.text = "1 Campaign";
} else {
this.loadCompleted.text = totalCompleted + " Campaigns";
}
bufferCampaign = mySharedObject.data.strCampaign;
this.loadCampaign.text = this._parent.ConvertButtonToCampaignName(bufferCampaign);
}
if (this.loadName.text == "NA") {
this.gotoAndPlay(3);
shouldTest = false;
} else {
shouldTest = true;
}
}
on (rollOver) {
if (shouldTest) {
this.gotoAndPlay(2);
}
}
on (rollOut) {
if (shouldTest) {
this.gotoAndPlay(1);
}
}
on (press) {
if (shouldTest) {
_global.SoundManager.PlaySound(_global["\x04\x04"]);
_global.loadSlot = "slot2";
_global.loadButt = "2";
_global.currentCampaign = bufferCampaign;
this._parent.SlotSelected();
}
}
Instance of Symbol 1272 MovieClip "slot3" in Symbol 1298 MovieClip Frame 24
onClipEvent (load) {
var shouldTest = false;
var strReturnValue = "none";
var bufferCampaign;
var mySharedObject = SharedObject.getLocal("slot3");
if (mySharedObject.data.blnInUse != undefined) {
strReturnValue = "slot3";
}
if (strReturnValue != "none") {
var tempData = new \x17\x04();
this.loadName.text = mySharedObject.data.strName;
tempData.Load(mySharedObject.data.data2);
this.loadLevel.text = tempData.Get();
var beatIceCampaign = new \x17\x04();
var beatRigCampaign = new \x17\x04();
var beatForestCampaign = new \x17\x04();
var beatHillsCampaign = new \x17\x04();
var beatWaterfallCampaign = new \x17\x04();
var beatEndCampaign = new \x17\x04();
beatIceCampaign.Load(mySharedObject.data.data5);
beatRigCampaign.Load(mySharedObject.data.data6);
beatForestCampaign.Load(mySharedObject.data.data7);
beatHillsCampaign.Load(mySharedObject.data.data8);
beatWaterfallCampaign.Load(mySharedObject.data.data9);
beatEndCampaign.Load(mySharedObject.data.data10);
var totalCompleted = 0;
if (beatIceCampaign.Get() != -1) {
totalCompleted++;
}
if (beatRigCampaign.Get() != -1) {
totalCompleted++;
}
if (beatForestCampaign.Get() != -1) {
totalCompleted++;
}
if (beatHillsCampaign.Get() != -1) {
totalCompleted++;
}
if (beatWaterfallCampaign.Get() != -1) {
totalCompleted++;
}
if (beatEndCampaign.Get() != -1) {
totalCompleted++;
}
if (totalCompleted == 1) {
this.loadCompleted.text = "1 Campaign";
} else {
this.loadCompleted.text = totalCompleted + " Campaigns";
}
bufferCampaign = mySharedObject.data.strCampaign;
this.loadCampaign.text = this._parent.ConvertButtonToCampaignName(bufferCampaign);
}
if (this.loadName.text == "NA") {
this.gotoAndPlay(3);
shouldTest = false;
} else {
shouldTest = true;
}
}
on (rollOver) {
if (shouldTest) {
this.gotoAndPlay(2);
}
}
on (rollOut) {
if (shouldTest) {
this.gotoAndPlay(1);
}
}
on (press) {
if (shouldTest) {
_global.SoundManager.PlaySound(_global["\x04\x04"]);
_global.loadSlot = "slot3";
_global.loadButt = "3";
_global.currentCampaign = bufferCampaign;
this._parent.SlotSelected();
}
}
Symbol 1298 MovieClip Frame 30
gotoAndStop ("Off");
Symbol 1298 MovieClip Frame 32
stop();
Symbol 1299 Button
on (release) {
_root.BackToMenu("settings");
}
Symbol 1302 Button
on (release) {
gotoAndStop ("Hotkeys");
}
Symbol 1304 MovieClip Frame 1
stop();
Symbol 1304 MovieClip Frame 2
stop();
Symbol 1314 Button
on (release) {
_root.BackToMenu("hotkeys");
}
Symbol 1325 MovieClip Frame 1
stop();
Symbol 1325 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 1
stop();
Instance of Symbol 1304 MovieClip "low" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "LOW") {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_quality != "LOW") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "LOW";
this._parent.high.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 1304 MovieClip "med" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "MEDIUM") {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_quality != "MEDIUM") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "MEDIUM";
this._parent.high.gotoAndStop("off");
this._parent.low.gotoAndStop("off");
}
Instance of Symbol 1304 MovieClip "high" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_quality == "HIGH") {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_quality != "HIGH") {
this.gotoAndStop("off");
}
}
on (release) {
_quality = "HIGH";
this._parent.low.gotoAndStop("off");
this._parent.med.gotoAndStop("off");
}
Instance of Symbol 1304 MovieClip "musicOn" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_global.musicOn == true) {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_global.musicOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = true;
this._parent.musicOff.gotoAndStop("off");
_global.myMusicPlayer.SetTrack("titleMusic");
_global.myMusicPlayer.SetMaxVolume(100);
_global.myMusicPlayer.PlayWithCrossFade(3);
}
Instance of Symbol 1304 MovieClip "musicOff" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_global.musicOn == false) {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_global.musicOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.musicOn = false;
this._parent.musicOn.gotoAndStop("off");
_global.myMusicPlayer.Stop();
}
Instance of Symbol 1304 MovieClip "soundsOn" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_global.soundOn == true) {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_global.soundOn != true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = true;
this._parent.soundsOff.gotoAndStop("off");
}
Instance of Symbol 1304 MovieClip "soundsOff" in Symbol 1328 MovieClip Frame 2
onClipEvent (load) {
if (_global.soundOn == false) {
this.gotoAndStop(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
if (_global.soundOn == true) {
this.gotoAndStop("off");
}
}
on (release) {
_global.soundOn = false;
this._parent.soundsOn.gotoAndStop("off");
}
Symbol 1328 MovieClip Frame 9
stop();
Symbol 1328 MovieClip Frame 14
gotoAndStop ("Off");
Symbol 1328 MovieClip Frame 15
function OutputValue(fieldName, keyCode) {
var textRef = eval ("this." + fieldName);
var returnValue = "";
switch (keyCode) {
case 8 :
returnValue = "BACKSPACE";
break;
case 20 :
returnValue = "CAPSLOCK";
break;
case 17 :
returnValue = "CONTROL";
break;
case 46 :
returnValue = "DELETE";
break;
case 40 :
returnValue = "DOWN";
break;
case 35 :
returnValue = "END";
break;
case 13 :
returnValue = "ENTER";
break;
case 27 :
returnValue = "ESCAPE";
break;
case 36 :
returnValue = "HOME";
break;
case 45 :
returnValue = "INSERT";
break;
case 37 :
returnValue = "LEFT";
break;
case 34 :
returnValue = "PGDN";
break;
case 33 :
returnValue = "PGUP";
break;
case 39 :
returnValue = "RIGHT";
break;
case 16 :
returnValue = "SHIFT";
break;
case 32 :
returnValue = "SPACE";
break;
case 9 :
returnValue = "TAB";
break;
case 38 :
returnValue = "UP";
break;
case 186 :
returnValue = ";";
break;
case 187 :
returnValue = "=";
break;
case 189 :
returnValue = "-";
break;
case 191 :
returnValue = "/";
break;
case 192 :
returnValue = "`";
break;
case 219 :
returnValue = "[";
break;
case 220 :
returnValue = "\\";
break;
case 221 :
returnValue = "]";
break;
case 222 :
returnValue = "'";
break;
case 188 :
returnValue = ",";
break;
case 190 :
returnValue = ".";
break;
case 96 :
returnValue = "NUMPAD 0";
break;
case 97 :
returnValue = "NUMPAD 1";
break;
case 98 :
returnValue = "NUMPAD 2";
break;
case 99 :
returnValue = "NUMPAD 3";
break;
case 100 :
returnValue = "NUMPAD 4";
break;
case 101 :
returnValue = "NUMPAD 5";
break;
case 102 :
returnValue = "NUMPAD 6";
break;
case 103 :
returnValue = "NUMPAD 7";
break;
case 104 :
returnValue = "NUMPAD 8";
break;
case 105 :
returnValue = "NUMPAD 9";
break;
case 106 :
returnValue = "MULTIPLY";
break;
case 107 :
returnValue = "ADD";
break;
case 109 :
returnValue = "SUBTRACT";
break;
case 110 :
returnValue = "DECIMAL";
break;
case 111 :
returnValue = "DIVIDE";
break;
default :
returnValue = chr(keyCode);
returnValue.toUpperCase();
}
textRef.text = returnValue;
}
function UnselectOthers(_arg2) {
if (_arg2 != "oneClip") {
this.oneClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "twoClip") {
this.twoClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "threeClip") {
this.threeClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "fourClip") {
this.fourClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "fiveClip") {
this.fiveClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
if (_arg2 != "sixClip") {
this.sixClip.gotoAndStop(1);
} else {
hasFocus = _arg2;
}
}
stop();
var hasFocus = "";
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (hasFocus == "oneClip") {
_global.hotKey1 = Key.getCode();
OutputValue("one_txt", _global.hotKey1);
}
if (hasFocus == "twoClip") {
_global.hotKey2 = Key.getCode();
OutputValue("two_txt", _global.hotKey2);
}
if (hasFocus == "threeClip") {
_global.hotKey3 = Key.getCode();
OutputValue("three_txt", _global.hotKey3);
}
if (hasFocus == "fourClip") {
_global.hotKey4 = Key.getCode();
OutputValue("four_txt", _global.hotKey4);
}
if (hasFocus == "fiveClip") {
_global.hotKey5 = Key.getCode();
OutputValue("five_txt", _global.hotKey5);
}
if (hasFocus == "sixClip") {
_global.hotKey6 = Key.getCode();
OutputValue("six_txt", _global.hotKey6);
}
};
Key.addListener(keyListener);
OutputValue("one_txt", _global.hotKey1);
OutputValue("two_txt", _global.hotKey2);
OutputValue("three_txt", _global.hotKey3);
OutputValue("four_txt", _global.hotKey4);
OutputValue("five_txt", _global.hotKey5);
OutputValue("six_txt", _global.hotKey6);
Instance of Symbol 1325 MovieClip "oneClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 1325 MovieClip "twoClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 1325 MovieClip "threeClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 1325 MovieClip "fourClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 1325 MovieClip "fiveClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 1325 MovieClip "sixClip" in Symbol 1328 MovieClip Frame 15
on (release) {
this.gotoAndStop(2);
this._parent.UnselectOthers(this._name);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 1329 Button
on (release) {
_root.BackToMenu("credits");
}
Symbol 1333 Button
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.herointeractive.com/", "_blank");
}
}
Symbol 1336 Button
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.herointeractive.com/", "_blank");
}
}
Symbol 1339 Button
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://mailto:calkutta1@gmail.com", "_blank");
}
}
Symbol 1343 Button
on (release) {
if (_global.creditsLinkable == true) {
getURL ("http://www.polyphonemusic.com/", "_blank");
}
}
Symbol 1344 MovieClip Frame 1
stop();
Symbol 1344 MovieClip Frame 9
stop();
Symbol 1344 MovieClip Frame 14
gotoAndStop ("Off");
Symbol 1353 MovieClip Frame 1
stop();
Symbol 1353 MovieClip Frame 2
stop();
Symbol 1359 MovieClip Frame 1
stop();
Symbol 1359 MovieClip Frame 2
stop();
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 2
stop();
Symbol 1371 MovieClip Frame 1
stop();
Symbol 1371 MovieClip Frame 2
stop();
Symbol 1377 MovieClip Frame 1
stop();
Symbol 1377 MovieClip Frame 2
stop();
Symbol 1383 MovieClip Frame 1
stop();
Symbol 1383 MovieClip Frame 2
stop();
Symbol 1389 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 2
stop();
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1395 MovieClip Frame 2
stop();
Symbol 1396 MovieClip Frame 1
stop();
Symbol 1396 MovieClip Frame 2
stop();
Symbol 1396 MovieClip Frame 3
stop();
Symbol 1396 MovieClip Frame 4
stop();
Symbol 1396 MovieClip Frame 5
stop();
Symbol 1396 MovieClip Frame 6
stop();
Symbol 1396 MovieClip Frame 7
stop();
Symbol 1396 MovieClip Frame 8
stop();
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 15
gotoAndStop ("Off");
Symbol 1402 MovieClip Frame 17
stop();
Symbol 1402 MovieClip Frame 19
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1411 MovieClip Frame 2
stop();
Symbol 1411 MovieClip Frame 3
stop();
Symbol 1411 MovieClip Frame 4
stop();
Symbol 1411 MovieClip Frame 5
stop();
Symbol 1420 MovieClip Frame 1
stop();
if (_global.var1.Get() == -1) {
gotoAndStop ("Locked");
}
if (_global.extraContent == false) {
gotoAndStop ("Locked");
}
if (_global.achievementUnlocked1.Get() == -1) {
activate_btn_1.gotoAndStop(3);
}
if (_global.achievementUnlocked2.Get() == -1) {
activate_btn_2.gotoAndStop(3);
}
if (_global.achievementUnlocked3.Get() == -1) {
activate_btn_3.gotoAndStop(3);
}
if (_global.achievementUnlocked4.Get() == -1) {
activate_btn_4.gotoAndStop(3);
}
if (_global.achievementUnlocked5.Get() == -1) {
activate_btn_5.gotoAndStop(3);
}
if (_global.achievementUnlocked6.Get() == -1) {
activate_btn_6.gotoAndStop(3);
}
if (_global.achievementUnlocked7.Get() == -1) {
activate_btn_7.gotoAndStop(3);
}
if (_global.achievementUnlocked8.Get() == -1) {
activate_btn_8.gotoAndStop(3);
}
if (_global.achievementSet1.Get() != -1) {
activate_btn_1.gotoAndStop(4);
}
if (_global.achievementSet2.Get() != -1) {
activate_btn_2.gotoAndStop(4);
}
if (_global.achievementSet3.Get() != -1) {
activate_btn_3.gotoAndStop(4);
}
if (_global.achievementSet4.Get() != -1) {
activate_btn_4.gotoAndStop(4);
}
if (_global.achievementSet5.Get() != -1) {
activate_btn_5.gotoAndStop(4);
}
if (_global.achievementSet6.Get() != -1) {
activate_btn_6.gotoAndStop(4);
}
if (_global.achievementSet7.Get() != -1) {
activate_btn_7.gotoAndStop(4);
}
if (_global.achievementSet8.Get() != -1) {
activate_btn_8.gotoAndStop(4);
}
Instance of Symbol 1402 MovieClip "ach_2" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(2);
if (_global.achievementUnlocked2.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo2.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked2.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked2.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked2.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked2.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_3" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(3);
if (_global.achievementUnlocked3.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo3.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked3.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked3.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked3.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked3.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_4" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(7);
if (_global.achievementUnlocked4.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo4.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked4.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked4.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked4.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked4.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_5" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(4);
if (_global.achievementUnlocked5.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo5.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked5.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked5.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked5.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked5.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_6" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(5);
if (_global.achievementUnlocked6.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo6.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked6.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked6.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked6.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked6.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_1" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(1);
if (_global.achievementUnlocked1.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo1.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked1.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked1.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked1.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked1.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_7" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(6);
if (_global.achievementUnlocked7.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo7.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked7.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked7.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked7.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked7.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1402 MovieClip "ach_8" in Symbol 1420 MovieClip Frame 1
onClipEvent (load) {
this.badge_txt.gotoAndStop(8);
if (_global.achievementUnlocked8.Get() != -1) {
this.gotoAndStop(17);
this.badge_txt.aLogo8.gotoAndStop("off");
}
}
on (rollOver) {
if (_global.achievementUnlocked8.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementUnlocked8.Get() == -1) {
this.gotoAndPlay(3);
}
}
on (dragOver) {
if (_global.achievementUnlocked8.Get() == -1) {
this.gotoAndStop(2);
}
}
on (dragOut) {
if (_global.achievementUnlocked8.Get() == -1) {
this.gotoAndStop("off");
}
}
Instance of Symbol 1411 MovieClip "activate_btn_1" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet1.Get() == -1) {
_global.achievementSet1.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet1.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(1);
}
on (rollOver) {
if (_global.achievementSet1.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet1.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet1.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet1.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_2" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet2.Get() == -1) {
_global.achievementSet2.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet2.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(2);
}
on (rollOver) {
if (_global.achievementSet2.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet2.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet2.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet2.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_3" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet3.Get() == -1) {
_global.achievementSet3.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet3.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(3);
}
on (rollOver) {
if (_global.achievementSet3.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet3.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet3.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet3.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_4" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet4.Get() == -1) {
_global.achievementSet4.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet4.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(4);
}
on (rollOver) {
if (_global.achievementSet4.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet4.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet4.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet4.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_5" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet5.Get() == -1) {
_global.achievementSet5.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet5.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(5);
}
on (rollOver) {
if (_global.achievementSet5.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet5.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet5.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet5.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_6" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet6.Get() == -1) {
_global.achievementSet6.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet6.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(6);
}
on (rollOver) {
if (_global.achievementSet6.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet6.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet6.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet6.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_7" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet7.Get() == -1) {
_global.achievementSet7.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet7.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(7);
}
on (rollOver) {
if (_global.achievementSet7.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet7.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet7.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet7.Get() == -1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1411 MovieClip "activate_btn_8" in Symbol 1420 MovieClip Frame 1
on (release) {
if (_global.achievementSet8.Get() == -1) {
_global.achievementSet8.Set(4687165);
this.gotoAndStop(4);
} else {
_global.achievementSet8.mSet(198742);
this.gotoAndStop(2);
}
_root.\x05(8);
}
on (rollOver) {
if (_global.achievementSet8.Get() == -1) {
this.gotoAndStop(2);
}
}
on (rollOut) {
if (_global.achievementSet8.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOut) {
if (_global.achievementSet8.Get() == -1) {
this.gotoAndStop("off");
}
}
on (dragOver) {
if (_global.achievementSet8.Get() == -1) {
this.gotoAndStop(2);
}
}
Symbol 1420 MovieClip Frame 2
stop();
activate_btn_1.gotoAndStop(3);
activate_btn_2.gotoAndStop(3);
activate_btn_3.gotoAndStop(3);
activate_btn_4.gotoAndStop(3);
activate_btn_5.gotoAndStop(3);
activate_btn_6.gotoAndStop(3);
activate_btn_7.gotoAndStop(3);
activate_btn_8.gotoAndStop(3);
ach_1.gotoAndStop("locked");
ach_2.gotoAndStop("locked");
ach_3.gotoAndStop("locked");
ach_4.gotoAndStop("locked");
ach_5.gotoAndStop("locked");
ach_6.gotoAndStop("locked");
ach_7.gotoAndStop("locked");
ach_8.gotoAndStop("locked");
Instance of Symbol 1402 MovieClip "ach_2" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(2);
}
Instance of Symbol 1402 MovieClip "ach_3" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(3);
}
Instance of Symbol 1402 MovieClip "ach_4" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(7);
}
Instance of Symbol 1402 MovieClip "ach_5" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(4);
}
Instance of Symbol 1402 MovieClip "ach_6" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(5);
}
Instance of Symbol 1402 MovieClip "ach_1" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(1);
}
Instance of Symbol 1402 MovieClip "ach_7" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(6);
}
Instance of Symbol 1402 MovieClip "ach_8" in Symbol 1420 MovieClip Frame 2
onClipEvent (load) {
this.badge_txt.gotoAndStop(8);
}
Instance of Symbol 1415 MovieClip in Symbol 1420 MovieClip Frame 2
on (release) {
getURL ("http://armorgames.com/play/3099/stormwinds-the-lost-campaigns", "_blank");
}
Symbol 1420 MovieClip Frame 3
stop();
activate_btn_1.gotoAndStop(3);
activate_btn_2.gotoAndStop(3);
activate_btn_3.gotoAndStop(3);
activate_btn_4.gotoAndStop(3);
activate_btn_5.gotoAndStop(3);
activate_btn_6.gotoAndStop(3);
activate_btn_7.gotoAndStop(3);
activate_btn_8.gotoAndStop(3);
ach_1.gotoAndStop("locked");
ach_2.gotoAndStop("locked");
ach_3.gotoAndStop("locked");
ach_4.gotoAndStop("locked");
ach_5.gotoAndStop("locked");
ach_6.gotoAndStop("locked");
ach_7.gotoAndStop("locked");
ach_8.gotoAndStop("locked");
Instance of Symbol 1415 MovieClip in Symbol 1420 MovieClip Frame 3
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 1422 Button
on (release) {
_root.BackToMenu("achievements");
}
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 9
stop();
Symbol 1423 MovieClip Frame 14
gotoAndStop ("Off");
Symbol 1429 MovieClip Frame 10
stop();
Symbol 1431 Button
on (release) {
_root.9("waterfall_bt");
}
Symbol 1433 MovieClip Frame 1
stop();
Symbol 1433 MovieClip Frame 2
stop();
Symbol 1441 MovieClip Frame 161
stop();
Symbol 1442 MovieClip Frame 1
stop();
Symbol 1442 MovieClip Frame 120
_root.=\x10();
stop();
Symbol 1442 MovieClip Frame 140
stop();
Symbol 1444 MovieClip Frame 180
gotoAndPlay (60);
Symbol 1447 MovieClip Frame 10
stop();
Symbol 1448 Button
on (release) {
_root.9("forest_bt");
}
Symbol 1449 MovieClip Frame 1
stop();
Symbol 1449 MovieClip Frame 2
stop();
Symbol 1452 MovieClip Frame 10
stop();
Symbol 1453 Button
on (release) {
_root.9("ice_bt");
}
Symbol 1454 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 2
stop();
Symbol 1457 MovieClip Frame 10
stop();
Symbol 1458 Button
on (release) {
_root.9("hills_bt");
}
Symbol 1459 MovieClip Frame 1
stop();
Symbol 1459 MovieClip Frame 2
stop();
Symbol 1462 MovieClip Frame 10
stop();
Symbol 1463 Button
on (release) {
_root.9("end_bt");
}
Symbol 1464 MovieClip Frame 1
stop();
Symbol 1464 MovieClip Frame 2
stop();
Symbol 1467 MovieClip Frame 10
stop();
Symbol 1468 Button
on (release) {
_root.9("rig_bt");
}
Symbol 1469 MovieClip Frame 1
stop();
Symbol 1469 MovieClip Frame 2
stop();
Symbol 1476 MovieClip Frame 1
stop();
Symbol 1476 MovieClip Frame 20
stop();
Symbol 1479 MovieClip Frame 1
stop();
Symbol 1479 MovieClip Frame 20
stop();
Symbol 1493 Button
on (release) {
getURL ("http://armorgames.com/play/3099/stormwinds-the-lost-campaigns", "_blank");
}
Symbol 1508 Button
on (release) {
_root.\x12(this._parent._parent.strSelectedCampaign);
}
Symbol 1526 Button
on (release) {
_root.ExitChallengeMissions();
}
Symbol 1541 Button
on (release) {
_root.PlayMission();
}
Symbol 1545 Button
on (release) {
_root.ViewHighScoreBoard();
}
Symbol 1552 Button
on (release) {
getURL ("http://www.herointeractive.com/stormwinds1-5.html", "_blank");
}
Symbol 1554 MovieClip Frame 1
stop();
Symbol 1554 MovieClip Frame 2
stop();
var strSelectedCampaign;
Symbol 1554 MovieClip Frame 3
stop();
Symbol 1554 MovieClip Frame 4
stop();
Symbol 1554 MovieClip Frame 5
stop();
Instance of Symbol 1532 MovieClip "scrollButton_mc" in Symbol 1554 MovieClip Frame 5
on (press) {
_root.StartScroll(this._y);
}
on (release) {
_root.StopScroll();
}
on (releaseOutside) {
_root.StopScroll();
}
Symbol 1560 MovieClip Frame 1
stop();
Symbol 1560 MovieClip Frame 2
stop();
Symbol 1564 MovieClip Frame 20
stop();
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1567 MovieClip Frame 20
stop();
Symbol 1571 MovieClip Frame 1
stop();
Symbol 1571 MovieClip Frame 20
stop();
Symbol 1574 MovieClip Frame 1
stop();
Symbol 1574 MovieClip Frame 20
stop();
Symbol 1575 MovieClip Frame 20
stop();
Symbol 1580 MovieClip Frame 10
stop();
Symbol 1581 Button
on (release) {
_root.9("twentyfive_bt");
}
Symbol 1582 MovieClip Frame 1
stop();
Symbol 1582 MovieClip Frame 2
stop();
Symbol 1586 MovieClip Frame 1
stop();
Symbol 1586 MovieClip Frame 14
stop();
Symbol 1588 MovieClip Frame 1
stop();
version_txt.text = _global.versionTXT;
Symbol 1589 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1589 MovieClip Frame 12
_root.gotoAndStop(_global.currentCampaign);
Symbol 1589 MovieClip Frame 35
gotoAndStop (1);
Symbol 1589 MovieClip Frame 45
_root.gotoAndPlay(5);
Symbol 1664 Button
on (release) {
_root.game.\x0B\x0F(this._parent._parent._name);
}
Symbol 1677 MovieClip Frame 1
var updateLevel = 0;
var updateExp = 0;
Symbol 1677 MovieClip Frame 45
stop();
Symbol 1677 MovieClip Frame 60
if (updateLevel < 10) {
this.turretButton_mc.level_txt.text = "0" + updateLevel;
} else {
this.turretButton_mc.level_txt.text = "" + updateLevel;
}
if (updateLevel == 0) {
this.turretButton_mc.more_mc._visible = false;
this.turretButton_mc.inside_mc._visible = false;
this.turretButton_mc.border_mc._visible = false;
} else {
this.turretButton_mc.more_mc._visible = true;
this.turretButton_mc.inside_mc._visible = true;
this.turretButton_mc.border_mc._visible = true;
this.turretButton_mc.inside_mc._xscale = updateExp;
}
Symbol 1677 MovieClip Frame 75
gotoAndStop (45);
Symbol 1688 Button
on (release) {
if (_global.gamePaused == false) {
_root.game.7\x03();
}
}
Symbol 1703 MovieClip Frame 1
stop();
this.betweenName_txt.text = _root.game._name;
this.betweenDifficulty_txt.text = _root.game["\x1E"];
this.betweenLevel_txt.text = _root.game._level.Get();
this.betweenGold_txt.text = _root.game["\x1C\x11"].Get();
Symbol 1720 Button
on (release) {
if (_global.gamePaused == false) {
_global.fOrB = "backward";
_parent.controlList();
}
}
Symbol 1721 MovieClip Frame 1
stop();
Symbol 1722 Button
on (release) {
if (_global.gamePaused == false) {
_global.fOrB = "forward";
_parent.controlList();
}
}
Symbol 1723 MovieClip Frame 1
stop();
Symbol 1724 MovieClip Frame 1
stop();
Symbol 1724 MovieClip Frame 2
play();
Symbol 1724 MovieClip Frame 10
stop();
Symbol 1724 MovieClip Frame 11
play();
Symbol 1724 MovieClip Frame 20
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 21
play();
Symbol 1724 MovieClip Frame 30
stop();
Symbol 1724 MovieClip Frame 31
play();
Symbol 1724 MovieClip Frame 40
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 41
play();
Symbol 1724 MovieClip Frame 50
stop();
Symbol 1724 MovieClip Frame 51
play();
Symbol 1724 MovieClip Frame 60
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 61
play();
Symbol 1724 MovieClip Frame 70
stop();
Symbol 1724 MovieClip Frame 71
play();
Symbol 1724 MovieClip Frame 80
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 81
play();
Symbol 1724 MovieClip Frame 90
stop();
Symbol 1724 MovieClip Frame 91
play();
Symbol 1724 MovieClip Frame 100
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 101
play();
Symbol 1724 MovieClip Frame 110
stop();
Symbol 1724 MovieClip Frame 111
play();
Symbol 1724 MovieClip Frame 120
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 121
play();
Symbol 1724 MovieClip Frame 130
stop();
Symbol 1724 MovieClip Frame 131
play();
Symbol 1724 MovieClip Frame 140
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 141
play();
Symbol 1724 MovieClip Frame 150
stop();
Symbol 1724 MovieClip Frame 151
play();
Symbol 1724 MovieClip Frame 160
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 161
play();
Symbol 1724 MovieClip Frame 170
stop();
Symbol 1724 MovieClip Frame 171
play();
Symbol 1724 MovieClip Frame 180
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 181
play();
Symbol 1724 MovieClip Frame 190
stop();
Symbol 1724 MovieClip Frame 191
play();
Symbol 1724 MovieClip Frame 200
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 201
play();
Symbol 1724 MovieClip Frame 210
stop();
Symbol 1724 MovieClip Frame 211
play();
Symbol 1724 MovieClip Frame 220
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 221
play();
Symbol 1724 MovieClip Frame 230
stop();
Symbol 1724 MovieClip Frame 231
play();
Symbol 1724 MovieClip Frame 240
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 241
play();
Symbol 1724 MovieClip Frame 250
stop();
Symbol 1724 MovieClip Frame 251
play();
Symbol 1724 MovieClip Frame 260
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 261
play();
Symbol 1724 MovieClip Frame 270
stop();
Symbol 1724 MovieClip Frame 271
play();
Symbol 1724 MovieClip Frame 280
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 281
play();
Symbol 1724 MovieClip Frame 290
stop();
Symbol 1724 MovieClip Frame 291
play();
Symbol 1724 MovieClip Frame 300
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 301
play();
Symbol 1724 MovieClip Frame 310
stop();
Symbol 1724 MovieClip Frame 311
play();
Symbol 1724 MovieClip Frame 320
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 321
play();
Symbol 1724 MovieClip Frame 330
stop();
Symbol 1724 MovieClip Frame 331
play();
Symbol 1724 MovieClip Frame 340
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 341
play();
Symbol 1724 MovieClip Frame 350
stop();
Symbol 1724 MovieClip Frame 351
play();
Symbol 1724 MovieClip Frame 360
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 361
play();
Symbol 1724 MovieClip Frame 370
stop();
Symbol 1724 MovieClip Frame 371
play();
Symbol 1724 MovieClip Frame 380
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 381
play();
Symbol 1724 MovieClip Frame 390
stop();
Symbol 1724 MovieClip Frame 391
play();
Symbol 1724 MovieClip Frame 400
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 401
play();
Symbol 1724 MovieClip Frame 410
stop();
Symbol 1724 MovieClip Frame 411
play();
Symbol 1724 MovieClip Frame 420
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 421
play();
Symbol 1724 MovieClip Frame 430
stop();
Symbol 1724 MovieClip Frame 431
play();
Symbol 1724 MovieClip Frame 440
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 441
play();
Symbol 1724 MovieClip Frame 450
stop();
Symbol 1724 MovieClip Frame 451
play();
Symbol 1724 MovieClip Frame 460
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 461
play();
Symbol 1724 MovieClip Frame 470
stop();
Symbol 1724 MovieClip Frame 471
play();
Symbol 1724 MovieClip Frame 480
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 481
play();
Symbol 1724 MovieClip Frame 490
stop();
Symbol 1724 MovieClip Frame 491
play();
Symbol 1724 MovieClip Frame 500
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 501
play();
Symbol 1724 MovieClip Frame 510
stop();
Symbol 1724 MovieClip Frame 511
play();
Symbol 1724 MovieClip Frame 520
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 521
play();
Symbol 1724 MovieClip Frame 530
stop();
Symbol 1724 MovieClip Frame 531
play();
Symbol 1724 MovieClip Frame 540
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 541
play();
Symbol 1724 MovieClip Frame 550
stop();
Symbol 1724 MovieClip Frame 551
play();
Symbol 1724 MovieClip Frame 560
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 561
play();
Symbol 1724 MovieClip Frame 570
stop();
Symbol 1724 MovieClip Frame 571
play();
Symbol 1724 MovieClip Frame 580
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 581
play();
Symbol 1724 MovieClip Frame 590
stop();
Symbol 1724 MovieClip Frame 591
play();
Symbol 1724 MovieClip Frame 600
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 601
play();
Symbol 1724 MovieClip Frame 610
stop();
Symbol 1724 MovieClip Frame 611
play();
Symbol 1724 MovieClip Frame 620
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 621
play();
Symbol 1724 MovieClip Frame 630
stop();
Symbol 1724 MovieClip Frame 631
play();
Symbol 1724 MovieClip Frame 640
_parent.playIn();
stop();
Symbol 1724 MovieClip Frame 641
play();
Symbol 1724 MovieClip Frame 650
stop();
Symbol 1724 MovieClip Frame 651
play();
Symbol 1724 MovieClip Frame 660
_parent.playIn();
stop();
Symbol 1727 MovieClip Frame 1
function controlList() {
if (_global.firstTime) {
tName = list[0].name + "_OUT";
this.turret_transition.gotoAndPlay(tName);
if (_global.fOrB == "forward") {
traverseListForward();
} else if (_global.fOrB == "backward") {
traverseListBackward();
}
_global.firstTime = false;
} else if (!_global.firstTime) {
this.turret_transition.gotoAndPlay(tName);
if (_global.fOrB == "forward") {
traverseListForward();
} else if (_global.fOrB == "backward") {
traverseListBackward();
}
}
}
function UpdateGold() {
this.dataBox_mc.betweenGold_txt.text = _root.game["\x1C\x11"].Get();
}
function UpdateLevel() {
this.dataBox_mc.betweenLevel_txt.text = _root.game._level.Get();
}
function GetTurretType() {
return(list[selectedListIndex].name);
}
function GetWeaponType() {
return(list[selectedListIndex].weaponType);
}
function GetTurretTitle() {
return(list[selectedListIndex].title);
}
function GetTurretDescription() {
return(list[selectedListIndex].description);
}
function GetTurretCost() {
var _local2 = list[selectedListIndex].cost;
if (_global.cheatsEnabled.Get() == -1) {
if (_global.var1.Get() != -1) {
if (_global.cheatCheapGuns.Get() == -1) {
_local2 = 100;
}
}
}
if (_global.achievementSet6.Get() != -1) {
_local2 = 100;
} else if (_global.achievementSet1.Get() != -1) {
_local2 = 0.9 * _local2;
}
if (_local2 < 100) {
_local2 = 100;
}
return(_local2);
}
function GetTurretCostForType(_arg2) {
var _local1 = 0;
while (_local1 < list.length) {
if (list[_local1].name == ("turret" + _arg2)) {
return(list[_local1].cost);
}
_local1++;
}
return(0);
}
function playIn() {
tName = list[selectedListIndex].name + "_IN";
this.turret_transition.gotoAndPlay(tName);
tName = list[selectedListIndex].name + "_OUT";
}
function traverseListForward() {
selectedListIndex++;
if (selectedListIndex == list.length) {
selectedListIndex = 0;
}
}
function traverseListBackward() {
selectedListIndex--;
if (selectedListIndex == -1) {
selectedListIndex = list.length - 1;
}
}
stop();
var list = new Array();
var selectedListIndex = 0;
var tName;
var i = 0;
while (i < _global.Campaigns.length) {
var blnDidCheat = false;
if (_global.cheatsEnabled.Get() == -1) {
if (_global.var1.Get() != -1) {
if (_global.cheatUnlock.Get() == -1) {
if (_root.game.1\x10(_global.currentCampaign) == false) {
if (_global.Campaigns[i].strButton == "all_bt") {
list = _global.Campaigns[i].arrGuns.slice();
}
}
blnDidCheat = true;
}
}
}
if (blnDidCheat == false) {
if (_global.Campaigns[i].strButton == _global.currentCampaign) {
list = _global.Campaigns[i].arrGuns.slice();
}
}
var tempGoName = (list[0].name + "_APPEAR");
this.turret_transition.gotoAndStop(tempGoName);
i++;
}
_root.game.\x1B\n();
Instance of Symbol 1724 MovieClip "turret_transition" in Symbol 1727 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 1728 MovieClip Frame 1
stop();
Symbol 1728 MovieClip Frame 2
play();
Symbol 1728 MovieClip Frame 16
_global.firstTime = true;
_root.game["3\x05"] = true;
stop();
Symbol 1728 MovieClip Frame 17
_root.game["3\x05"] = false;
Symbol 1728 MovieClip Frame 31
gotoAndPlay (1);
Symbol 1731 MovieClip Frame 1
stop();
Symbol 1740 MovieClip Frame 15
stop();
Symbol 1744 MovieClip Frame 1
stop();
Symbol 1748 MovieClip Frame 1
stop();
Symbol 1748 MovieClip Frame 18
gotoAndPlay (2);
Symbol 1754 Button
on (release) {
_root.game.6\x04();
}
Symbol 1766 MovieClip Frame 1
r = random(200);
r = r + 50;
gotoAndPlay(r);
Symbol 1767 MovieClip Frame 6
stop();
Symbol 1767 MovieClip Frame 12
_root.screenEffects_mc._visible = false;
stop();
Symbol 1768 MovieClip Frame 1
stop();
Symbol 1768 MovieClip Frame 2
stop();
Symbol 1770 MovieClip Frame 6
_root.flash_mc._visible = false;
stop();
Symbol 1771 MovieClip Frame 1
stop();
Symbol 1771 MovieClip Frame 2
stop();
Symbol 1775 Button
on (release) {
var mySharedObject = SharedObject.getLocal("settings");
mySharedObject.data.musicOn = _global.musicOn;
mySharedObject.data.soundOn = _global.soundOn;
mySharedObject.data.graphics = _global.graphics;
mySharedObject.flush();
this._parent.play();
}
Symbol 1778 Button
on (release) {
_quality = "MEDIUM";
gotoAndStop (2);
}
Symbol 1780 Button
on (release) {
_quality = "LOW";
gotoAndStop (3);
}
Symbol 1782 Button
on (release) {
_quality = "HIGH";
gotoAndStop (1);
}
Symbol 1783 MovieClip Frame 1
stop();
Symbol 1783 MovieClip Frame 2
stop();
Symbol 1783 MovieClip Frame 3
stop();
Symbol 1786 Button
on (release) {
_global.soundOn = false;
gotoAndStop (2);
}
Symbol 1789 Button
on (release) {
_global.soundOn = true;
gotoAndStop (1);
}
Symbol 1790 MovieClip Frame 1
stop();
Symbol 1790 MovieClip Frame 2
stop();
Symbol 1793 Button
on (release) {
_global.musicOn = false;
_global.myMusicPlayer.Stop();
gotoAndStop (2);
}
Symbol 1796 Button
on (release) {
_global.musicOn = true;
_global.myMusicPlayer.SetTrack(_global.ResumeSong);
if (_global.ResumeSong == "recharge") {
_global.myMusicPlayer.SetMaxVolume(18);
} else {
_global.myMusicPlayer.SetMaxVolume(100);
}
_global.myMusicPlayer.Play();
gotoAndStop (1);
}
Symbol 1797 MovieClip Frame 1
stop();
Symbol 1797 MovieClip Frame 2
stop();
Symbol 1801 Button
on (release) {
_root.?();
}
Symbol 1804 Button
on (release) {
_root.game.\x1E\x05(false);
}
Symbol 1807 Button
on (release) {
this._parent._parent.play();
_root.game.\x1A\x10();
}
Symbol 1812 MovieClip Frame 1
stop();
Symbol 1812 MovieClip Frame 2
stop();
Symbol 1815 Button
on (release) {
this._parent._parent.play();
_root.game.=\f();
}
Symbol 1819 MovieClip Frame 1
stop();
Symbol 1819 MovieClip Frame 2
stop();
Symbol 1825 Button
on (release) {
_root.game.0\x07();
this._parent.play();
}
Symbol 1829 Button
on (release) {
_root.game.\x10\x0E();
this._parent.play();
}
Symbol 1832 Button
on (release) {
this._parent.play();
}
Symbol 1882 MovieClip Frame 1
function SetupScreen() {
if (_global.musicOn == true) {
this.inside.music_mc.gotoAndStop(1);
} else {
this.inside.music_mc.gotoAndStop(2);
}
if (_global.soundOn == true) {
this.inside.sound_mc.gotoAndStop(1);
} else {
this.inside.sound_mc.gotoAndStop(2);
}
if (_quality == "HIGH") {
this.inside.graphics_mc.gotoAndStop(1);
} else if (_quality == "MEDIUM") {
this.inside.graphics_mc.gotoAndStop(2);
} else if (_quality == "LOW") {
this.inside.graphics_mc.gotoAndStop(3);
}
if (_root.game["\x12\r"] == true) {
this.inside.restart_mc.gotoAndStop(2);
this.inside.restartCampaign_mc.gotoAndStop(2);
} else {
this.inside.restart_mc.gotoAndStop(1);
this.inside.restartCampaign_mc.gotoAndStop(1);
}
}
SetupScreen();
Symbol 1882 MovieClip Frame 15
stop();
Symbol 1882 MovieClip Frame 30
_root.game.\x04();
Symbol 1882 MovieClip Frame 46
stop();
Symbol 1882 MovieClip Frame 61
this._visible = false;
stop();
Symbol 1882 MovieClip Frame 77
stop();
Symbol 1882 MovieClip Frame 92
_root.game.0\x06();
this._visible = false;
stop();
Symbol 1882 MovieClip Frame 108
stop();
stop();
Symbol 1892 Button
on (release) {
this._parent._parent.nextFrame();
}
Symbol 1896 Button
on (release) {
_root.game. \x0E();
}
Symbol 1912 MovieClip Frame 30
stop();
Symbol 1912 MovieClip Frame 60
stop();
Symbol 1912 MovieClip Frame 90
stop();
Symbol 1912 MovieClip Frame 91
stop();
Symbol 1912 MovieClip Frame 121
stop();
Symbol 1912 MovieClip Frame 151
stop();
Symbol 1912 MovieClip Frame 181
stop();
Symbol 1912 MovieClip Frame 211
stop();
Symbol 1915 Button
on (release) {
nextFrame();
}
Symbol 1919 Button
on (release) {
_root.game.\x07\x07();
}
Symbol 1953 Button
on (release) {
_root.game.\x07\x07();
}
Symbol 1957 Button
on (release) {
_root.game.5\f();
}
Symbol 1959 MovieClip Frame 2
stop();
if ((((((_global.currentCampaign == "forest_bt") || (_global.currentCampaign == "twentyfive_bt")) || (_global.currentCampaign == "end_bt")) || (_global.currentCampaign == "ice_bt")) || (_global.currentCampaign == "hills_bt")) || (_global.currentCampaign == "waterfall_bt")) {
this.inside.gotoAndPlay(_global.currentCampaign);
} else if (_root.game.1\x10(_global.currentCampaign) == true) {
this.inside.gotoAndPlay("challenge");
this.inside.title_txt.text = _root.game.#\x0E();
this.inside.description_txt.text = _root.game.\x18\r();
}
Symbol 1959 MovieClip Frame 3
stop();
_root.game.\x02\x0B();
Symbol 1959 MovieClip Frame 4
stop();
Symbol 1959 MovieClip Frame 5
stop();
Symbol 1959 MovieClip Frame 6
stop();
Symbol 1959 MovieClip Frame 7
stop();
Symbol 1959 MovieClip Frame 8
stop();
Symbol 1959 MovieClip Frame 9
stop();
_root.game.1\x02();
Symbol 1959 MovieClip Frame 10
stop();
Symbol 1959 MovieClip Frame 11
stop();
Symbol 1959 MovieClip Frame 12
stop();
Symbol 1959 MovieClip Frame 13
stop();
_root.game.\x02\x0B();
Symbol 1959 MovieClip Frame 14
stop();
Symbol 1959 MovieClip Frame 15
stop();
Symbol 1959 MovieClip Frame 16
stop();
Symbol 1959 MovieClip Frame 17
stop();
Symbol 1959 MovieClip Frame 25
stop();
Symbol 1976 Button
on (release) {
_global.SoundManager.PlaySound(_global["\x04\x04"]);
this._parent.play();
}
Symbol 1981 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1992 Button
on (release) {
_root.game.\x1E\x05(true);
}
Symbol 1994 MovieClip Frame 1
if (_global.doExcludePreloader.Get() != -1) {
this.pre._visible = false;
this.inside_mc._x = 143.8;
} else {
this.pre._visible = true;
this.inside_mc._x = 303.8;
var CPMStarPoolID = 1052;
var CPMStarSubPoolID = 13;
System.security.allowDomain("server.cpmstar.com");
this.pre.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
}
stop();
Symbol 2004 Button
on (release) {
getURL ("http://www.herointeractive.com/stormwinds1-5.html", "_blank");
}
Symbol 2008 Button
on (release) {
_root.game.\x1E\x05();
}
Symbol 2021 Button
on (release) {
_root.game.\x1E\x05(false);
}
Symbol 2023 MovieClip Frame 135
stop();
Symbol 2041 Button
on (release) {
getURL (_root.game.;\x10(), "_blank");
}
Symbol 2060 MovieClip Frame 1
stop();
Symbol 2060 MovieClip Frame 221
_root.game.4\x03("win");
gotoAndStop ("Hide");
stop();
Symbol 2060 MovieClip Frame 301
stop();
Symbol 2060 MovieClip Frame 352
_root.game.4\x03("dead");
gotoAndStop ("Hide");
stop();
Symbol 2060 MovieClip Frame 425
stop();
Symbol 2060 MovieClip Frame 498
stop();
Symbol 2060 MovieClip Frame 571
stop();
Symbol 2060 MovieClip Frame 627
_root.game.2\r();
Symbol 2060 MovieClip Frame 660
stop();
Symbol 2060 MovieClip Frame 663
_root.game.\x1A\x11(true);
Symbol 2060 MovieClip Frame 733
stop();
Symbol 2060 MovieClip Frame 736
_root.game.\x1A\x11(false);
Symbol 2060 MovieClip Frame 806
stop();