STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228061
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/41288842?noj=FRM41288842-26DC" width="1" height="1"></div>

Momentum Missile Mayhem 4 - a physics based action-defense game.swf

This is the info page for
Flash #89246

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 greatBlackness { } movieClip 4 { } movieClip 5 theBannerCore { frame 1 { function DOloadBanner() { _visible = true; var v1 = 1052; var v2 = 40; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?poolid=' + v1 + '&subpoolid=' + v2); } function UnloadBanner() { loadMovie('', adBox); _visible = false; } if (firstload eq 1) { firstload = 0; DOloadBanner(); trace(666); } } } // unknown tag 88 length 73 movieClip 9 { } movieClip 11 { } movieClip 12 { } movieClip 14 { } movieClip 16 { } movieClip 17 { instance of movieClip 9 { onClipEvent (load) { this._visible = false; } } } movieClip 18 show_quality { frame 2 { if (play_ eq 1) { gotoAndPlay(3); } else { gotoAndPlay(1); } } instance of movieClip 17 { onClipEvent (enterFrame) { if (_root.global_quality eq 1) { gotoAndStop(2); } else { if (_root.global_quality eq 2) { gotoAndStop(3); } else { if (_root.global_quality eq 3) { gotoAndStop(4); } else { if (_root.global_quality eq 4) { gotoAndStop(5); } } } } } } frame 4 { if (play_ eq 1) { gotoAndPlay(3); } else { gotoAndPlay(1); } } } frame 1 { stop(); onEnterFrame = function () { ifFrameLoaded (3) { gotoAndStop(2); } }; fscommand('fullscreen', 'false'); fscommand('allowscale', 'false'); fscommand('showmenu', 'false'); } movieClip 21 { } movieClip 23 { } movieClip 24 { frame 2 { loading = _root.getBytesLoaded() / 300000; if (loading < 1) { procent = loading; } else { procent = 1; } if (longcatisloooo0006ng != 'wryyyyyyyy') { longcatisloooo0006ng = 'wryyyyyyyy'; dlinna = bar._width; } bar._width = dlinna * procent; } } movieClip 26 { } movieClip 27 { frame 16 { stop(); } } movieClip 30 { } movieClip 33 { } movieClip 34 { } movieClip 36 { } movieClip 37 { } movieClip 39 { } movieClip 40 { } movieClip 42 { } movieClip 43 { } movieClip 45 { } movieClip 46 { } movieClip 48 { } movieClip 49 { } movieClip 51 { } movieClip 52 { } movieClip 53 { frame 115 { gotoAndPlay(21); } } movieClip 54 { frame 28 { stop(); } } movieClip 3937 __Packages.ab3.rankz.Armor_Bot_30_En_AS1 { #initclip if (!_global.ab3) { _global.ab3 = new Object(); } if (!_global.ab3.rankz) { _global.ab3.rankz = new Object(); } if (!_global.ab3.rankz.Armor_Bot_30_En_AS1) { var v1 = function () { super(); }; ab3.rankz.Armor_Bot_30_En_AS1 = v1; ab3.rankz.Armor_Bot_30_En_AS1 extends Object; var v2 = v1.prototype; v1.Encode = function (str) { var v1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return v1.encodeArmor_Bot_30_En_AS1(str); }; v1.Decode = function (str) { var v1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return v1.decodeArmor_Bot_30_En_AS1(str); }; v1.StringReplaceAll = function (source, find, replacement) { return (source.split(find)).join(replacement); }; v1.InitReverseChars = function () { ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup = new Array(); var v1 = 0; while (v1 < ab3.rankz.Armor_Bot_30_En_AS1._Chars.length) { ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[ab3.rankz.Armor_Bot_30_En_AS1._Chars[v1]] = v1; ++v1; } return true; }; v1.UrlDecode = function (str) { str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', ' '); str = unescape(str); return str; }; v1.UrlEncode = function (str) { str = escape(str); str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', '%2B'); str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '%20', '+'); return str; }; v2.setArmor_Bot_30_En_AS1Str = function (str) { this._Armor_Bot_30_En_AS1Str = str; this._Armor_Bot_30_En_AS1Count = 0; }; v2.readArmor_Bot_30_En_AS1 = function () { if (!this._Armor_Bot_30_En_AS1Str) { return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput; } if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) { return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput; } var v2 = this._Armor_Bot_30_En_AS1Str.charCodeAt(this._Armor_Bot_30_En_AS1Count) & 255; ++this._Armor_Bot_30_En_AS1Count; return v2; }; v2.encodeArmor_Bot_30_En_AS1 = function (str) { this.setArmor_Bot_30_En_AS1Str(str); var v3 = ''; var v2 = new Array(3); var v5 = 0; var v4 = false; for (;;) { if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break; v2[1] = this.readArmor_Bot_30_En_AS1(); v2[2] = this.readArmor_Bot_30_En_AS1(); v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] >> 2]; if (v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) { v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48 | v2[1] >> 4]; if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) { v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60 | v2[2] >> 6]; v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[2] & 63]; } else { v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60]; v3 += '='; v4 = true; } } else { v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48]; v3 += '='; v3 += '='; v4 = true; } v5 += 4; if (v5 >= 76) { v3 += '\n'; v5 = 0; } } return v3; }; v2.readReverseArmor_Bot_30_En_AS1 = function () { if (!this._Armor_Bot_30_En_AS1Str) { return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput; } while (!false) { if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) { return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput; } var v2 = this._Armor_Bot_30_En_AS1Str.charAt(this._Armor_Bot_30_En_AS1Count); ++this._Armor_Bot_30_En_AS1Count; if (ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2]) { return ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2]; } if (v2 == 'A') { return 0; } } return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput; }; v2.ntos = function (n) { var v1 = n.toString(16); if (v1.length == 1) { v1 = '0' + v1; } v1 = '%' + v1; return unescape(v1); }; v2.decodeArmor_Bot_30_En_AS1 = function (str) { this.setArmor_Bot_30_En_AS1Str(str); var v3 = ''; var v2 = new Array(4); var v4 = false; for (;;) { if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput && v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break; v2[2] = this.readReverseArmor_Bot_30_En_AS1(); v2[3] = this.readReverseArmor_Bot_30_En_AS1(); v3 += this.ntos(v2[0] << 2 & 255 | v2[1] >> 4); if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) { v3 += this.ntos(v2[1] << 4 & 255 | v2[2] >> 2); if (v2[3] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) { v3 += this.ntos(v2[2] << 6 & 255 | v2[3]); } else { v4 = true; } } else { v4 = true; } } return v3; }; v2.toHex = function (n) { var v4 = ''; var v3 = true; var v1 = 32; while (v1 > 0) { v1 -= 4; var v2 = n >> v1 & 15; if (!v3 || v2 != 0) { v3 = false; v4 += ab3.rankz.Armor_Bot_30_En_AS1._Digits[v2]; } } return (v4 == '') ? '0' : v4; }; v2.pad = function (str, len, pad) { var v2 = str; var v1 = str.length; while (v1 < len) { v2 = pad + v2; ++v1; } return v2; }; v2.encodeHex = function (str) { var v4 = ''; var v2 = 0; while (v2 < str.length) { v4 += this.pad(this.toHex(str.charCodeAt(v2) & 255), 2, '0'); ++v2; } return v4; }; v2.decodeHex = function (str) { var v5 = ''; var v3 = ''; var v2 = 0; while (v2 < str.length) { v3 += str.charAt(v2); if (v3.length == 2) { v5 += this.ntos(parseInt('0x' + v3)); v3 = ''; } ++v2; } return v5; }; v1._EndOfInput = -1; v1._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', '+', '/'); v1._CharsReverseLookupInited = ab3.rankz.Armor_Bot_30_En_AS1.InitReverseChars(); v1._Digits = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'); ASSetPropFlags(ab3.rankz.Armor_Bot_30_En_AS1.prototype, null, 1); } #endinitclip } frame 2 { _root.attachMovie('show_quality', 'show_quality', 180000); _root.show_quality._x = -285.1; _root.show_quality._y = 99.5; if (_root.global_quality) { } else { _root.global_quality = 3; } _root.map_openings_count = 0; } frame 2 { _root.ad_depth = 3700; _root.attachMovie('theBannerCore', 'theBannerCore', _root.ad_depth); trace(_root.theBannerCore.getDepth()); _root.theBannerCore._x = 167; _root.theBannerCore._y = 292; _root.theBannerCore.firstload = 1; } frame 2 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; 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 = mc._root.getSWFVersion; fv = x ? mc.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) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('c48f92b6', this, 10301, true); } frame 2 { fscommand('fullscreen', 'false'); fscommand('allowscale', 'false'); fscommand('showmenu', 'false'); var domainLockTo = 'armorgames.com'; var currentDomain = _url; var validDomain = currentDomain.lastIndexOf(domainLockTo); if (validDomain eq -1) { } else {} } frame 2 { stop(); stop(); _root.percentage_loaded_rough = 0; gameloaded = 0; Mouse.show(); onEnterFrame = function () { loading = _root.getBytesLoaded() / _root.getBytesTotal(); _root.percentage_loaded_rough = loading * 100; if (_root.percentage_loaded_rough > 99.90000000000001) { _root.percentage_loaded_rough = 100; } gogogo = 1 + Math.floor(_root.percentage_loaded_rough / 4); loadInd.gotoAndStop(gogogo); showvar1 = Math.floor(_root.percentage_loaded_rough) + '%'; showvar2 = _root.getBytesLoaded() + '/' + _root.getBytesTotal(); if (gameloaded eq 0 and _root.percentage_loaded_rough >= 100) { gameloaded = 1; ASDASDASD.play(); } }; } frame 2 { var poshelnahuisuka3 = this.createEmptyMovieClip('poshelnahuisuka3', 111999); ADramka.swapDepths(poshelnahuisuka3); removeMovieClip(poshelnahuisuka3); } movieClip 59 { } movieClip 60 { } movieClip 63 { } movieClip 64 { } movieClip 67 { } movieClip 70 { } movieClip 71 { } movieClip 72 { } movieClip 73 { } movieClip 76 { } movieClip 77 { } movieClip 78 { } instance of movieClip 78 { onClipEvent (enterFrame) { cacheAsBitmap = true; } } movieClip 84 { } movieClip 85 { } movieClip 86 { } instance of movieClip 86 { onClipEvent (load) { cacheAsBitmap = true; } } movieClip 89 { } button 90 { on (release) { getURL('http://dz2001.newgrounds.com/', '_blank'); } } movieClip 93 { } button 95 { on (release) { getURL('http://requie.deviantart.com/', '_blank'); } } movieClip 97 { } movieClip 99 { } movieClip 100 { } button 102 { on (release) { getURL('http://www.armorgames.com/', '_blank'); } } // unknown tag 88 length 100 movieClip 107 { } movieClip 110 { } movieClip 113 { } movieClip 114 { } movieClip 120 { } movieClip 122 { } movieClip 123 { } button 125 { on (press) { _root.theBannerCore.UnloadBanner(); removeMovieClip(_root.ADramka); clearInterval(intervalId); _root.gotoAndPlay(4); } } movieClip 126 { frame 1 { stop(); } frame 11 { if (_root.fucked eq 1) { gotoAndStop(5); } } frame 21 { stop(); } } // unknown tag 88 length 153 movieClip 129 { frame 2 { if (_root.global_quality eq 1) { _root._quality = 'low'; } else { if (_root.global_quality eq 2) { _root._quality = 'medium'; } else { if (_root.global_quality eq 3) { _root._quality = 'high'; } else { if (_root.global_quality eq 4) { _root._quality = 'best'; } } } } } } button 132 { on (keyPress 'Q') { gotoAndPlay(2); if (_root.global_quality < 4) { _root.global_quality += 1; } else { if (_root.global_quality eq 4) { _root.global_quality = 1; } } } on (keyPress 'q') { gotoAndPlay(2); if (_root.global_quality < 4) { _root.global_quality += 1; } else { if (_root.global_quality eq 4) { _root.global_quality = 1; } } } } movieClip 133 { frame 1 { stop(); } frame 2 { _root.show_quality.play_ = 1; } frame 35 { _root.show_quality.play_ = 0; } } frame 3 { gotoAndStop(2); } frame 5 { gotoAndPlay(24); } frame 15 { stop(); } frame 15 { function initBaseVars_0() { _root.kursor_depth = 99999; _root.teleporter_tutorial_depth = 4050; _root.WorldMap_depth = 4001; _root.objectives_menu_depth = 4000; _root.ad_depth = 3700; _root.lvlupind_depth = 3550; _root.upper_pannel_depth = 3500; _root.pause_menu_depth = 3000; _root.ingame_menu_depth = 2800; _root.getbackDepth = 2700; _root.wpn_ready_ind_depth = 2600; _root.dimshift_timer_depth = 2500; _root.main_menu_depth = 1050; _root.markers_depth = 6000; _root.planes_depth = 5000; _root.hpbar_depth = 3000; _root.background_up_depth = 999; _root.teleporter_depth = 810; _root.warping_unit_depth = 799; _root.rezinka_blue_depth = 798; _root.blackholes_depth = 700; _root.explosions_special_depth = 602; _root.implosion_depth = 601; _root.explosions_depth = 600; _root.walls_depth = 560; _root.bounceballs_depth = 550; _root.magnetballs_depth = 549; _root.shleif_depth = 548; _root.enemy_projectile_depth = 500; _root.enemy2enemy_collision_depth = 100; _root.player_tank_depth = 95; _root.enemies_depth = 90; _root.turrets_depth = 80; _root.powerups_depth = 15; _root.kraters_depth = 10; _root.background_rubbish_depth = 6; _root.background_depth = 5; } function initBaseVars_1() { _root.maxKratersOnTheField = 450; _root.maxBallsOnTheField = 1; _root.teleporter_start_distance = 100; _root.teleporter_done_time = 1; _root.enemy_acceleration = 0.05; _root.maxspeed = 70; _root.speed_zakru4ivanie = 10; _root.ball_loose_control_time = 0.5; _root.powerup_fade_time = 5; _root.launcher_acceleration = 0.2; _root.launcher_speedmax = 5; _root.launcher_shield_max = 3000; _root.launcher_energy_max = 1000; _root.shld_regen_rate = 4; _root.energy_regen_rate = 0.3; } function DMG_randomizers() { _root.gravity_nuke_hueg_dmg = 500 + random(3000); _root.gravity_nuke_radius_dmg = 550 + random(1500); _root.bounceball_damage_0 = 200 + random(300); _root.bounceball_damage_1 = _root.balldmg_base_1 + random(_root.balldmg_plus_1); _root.bounceball_damage_2 = _root.balldmg_base_2 + random(_root.balldmg_plus_2); _root.bounceball_damage_3 = _root.balldmg_base_3 + random(_root.balldmg_plus_3); _root.bounceball_damage_4 = _root.balldmg_base_4 + random(_root.balldmg_plus_4); _root.bounceball_damage_10 = 700 + random(700); _root.bounceball_damage_6 = 500 + random(500); _root.balldetonation_dmg = 1000 + random(500); _root.small_explosion_dmg = random(500); _root.big_explosion_dmg = 500 + random(700); _root.hueg_explosion_dmg = 1000 + random(1000); _root.nuke_dmg = 8000 + random(8000); _root.emp_nuke_dmg = 4000 + random(4000); _root.airstrike_small_dmg = 500 + random(1000); _root.airstrike_big_dmg = 1500 + random(1500); _root.turret_dmg_1 = 500 + random(1500); _root.turret_dmg_2 = 100 + random(100); _root.turret_dmg_3 = 1000 + random(1500); _root.enemy_dmg_1 = 300 + random(300); _root.enemy_dmg_2 = 500 + random(700); _root.enemy_dmg_9 = 500 + random(500); _root.enemy_dmg_12 = 400 + random(700); _root.enemy_dmg_26 = 500 + random(1000); _root.enemy_dmg_26_constantdmg_core = random(200); _root.enemy_dmg_26_constantdmg = random(100); _root.enemy_dmg_30 = 100 + random(400); _root.enemy_dmg_31 = 500 + random(500); _root.playerTank_smallSHell = 1000 + random(1000); _root.playerTank_bigSHell = 2000 + random(2000); _root.playerTank_empSHell = 500 + random(600); } function initBaseVars_2() { _root.razmagni4evanie_time = 0.3; _root.magnetball_mass = 10; _root.magnetball_startspeed = 15; _root.magnetball_average_lifetime = 10; _root.emp_unitDeactivation_time = 5; tank_delay_seconds_1 = 0.6; tank_delay_seconds_2 = 1; _root.krutilka_mass = 20; _root.krutilka_power_max = -40; _root.krutilka_radius_max = 60; _root.krutilka_radius_min = 1; _root.krutilka_speed_amplifier = 1.07; _root.bounceball_mass_when_calc_controlz = 100; _root.mission_length_1 = 60; _root.mission_length_2 = 60; _root.mission_length_3 = 60; _root.mission_length_4 = 60; _root.mission_length_5 = 60; _root.mission_length_6 = 120; _root.mission_length_7 = 120; _root.mission_length_1003 = 120; _root.mission_length_8 = 120; _root.mission_length_9 = 120; _root.mission_length_1004 = 120; _root.mission_length_10 = 120; _root.mission_length_11 = 120; _root.mission_length_12 = 120; _root.mission_length_13 = 120; _root.mission_length_14 = 200; _root.mission_length_15 = 200; _root.mission_length_16 = 200; _root.mission_length_17 = 200; _root.mission_length_18 = 200; _root.mission_length_1005 = 200; _root.mission_length_19 = 100; _root.mission_length_20 = 100; _root.mission_length_21 = 300; _root.mission_length_22 = 200; _root.mission_length_23 = 250; _root.mission_length_1006 = 130; _root.mission_length_1007 = 200; _root.mission_length_1008 = 120; _root.mission_rank_1 = 'Training'; _root.mission_rank_2 = 'Training'; _root.mission_rank_3 = 'Training'; _root.mission_rank_4 = 'Training'; _root.mission_rank_5 = 'Training'; _root.mission_rank_6 = 'D'; _root.mission_rank_7 = 'D'; _root.mission_rank_8 = 'D'; _root.mission_rank_9 = 'D'; _root.mission_rank_10 = 'C'; _root.mission_rank_11 = 'B'; _root.mission_rank_12 = 'C'; _root.mission_rank_13 = 'C'; _root.mission_rank_14 = 'C'; _root.mission_rank_15 = 'C'; _root.mission_rank_16 = 'C'; _root.mission_rank_17 = 'B'; _root.mission_rank_18 = 'B'; _root.mission_rank_19 = 'A'; _root.mission_rank_20 = 'A'; _root.mission_rank_21 = 'A'; _root.mission_rank_22 = 'A'; _root.mission_rank_23 = 'A'; projectile_speed_1 = 15; projectile_mass_1 = 40; projectile_radius_1 = 22; projectile_lifetime_1 = 1.5; projectile_encost_1 = 50; projectile_speed_2 = 40; projectile_mass_2 = 80; projectile_radius_2 = 22; projectile_lifetime_2 = 4; projectile_encost_2 = 250; projectile_speed_3 = 15; projectile_mass_3 = 650; projectile_radius_3 = 22; projectile_lifetime_3 = 6; projectile_encost_3 = 300; projectile_speed_4 = 30; projectile_mass_4 = 50; projectile_radius_4 = 22; projectile_lifetime_4 = 8; projectile_encost_4 = 300; projectile_speed_5 = 6; projectile_mass_5 = 150; projectile_radius_5 = 22; projectile_lifetime_5 = 6; projectile_encost_5 = 300; projectile_speed_6 = 40; projectile_mass_6 = 150; projectile_radius_6 = 22; projectile_lifetime_6 = 10; projectile_encost_6 = 100; _root.dimensionalSHift_time = 10; _root.dimensionalSHift_delay = 40; _root.overdrive_time = 15; _root.overdrive_delay = 55; _root.overdriveHPRegen_boost = 10; _root.overdriveENRegen_boost = 10; _root.overdriveAmmoRechargeSPEEDUP = 5; _root.dimshiftHPRegen_boost = 2; _root.dimshiftENRegen_boost = 4; _root.invul_time = 10; _root.wpn_reloading_time_0 = 70; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 30; _root.wpn_reloading_time_3 = 30; _root.wpn_reloading_time_4 = 50; _root.wpn_reloading_time_5 = 60; _root.ballProjectile_reloading_time_2 = 0.2; _root.ballProjectile_reloading_time_3 = 20; _root.ballProjectile_reloading_time_4 = 20; _root.ballProjectile_reloading_time_5 = 40; _root.ballProjectile_reloading_time_6 = 30; } function initBaseVars_3() { _root.scoretimer = 0; _root.powerups_spawned_counter = 0; _root.yiff_paused = 0; _root.gun_delay_1 = 0; _root.tank_timer_1 = 0; _root.enemiesArray = []; _root.bounceballsArray = []; _root.singularitiesArray = []; _root.magnetsArray = []; _root.turretsArray = []; friendlyTargetsArray = []; _root.powerupsArray = []; _root.powerupsOnTheField = 0; _root.turretsOnTheField = 0; _root.magnetsOnTheField = 0; _root.overdrive_activated = 0; _root.mouseOverUnit = 0; tnksht2timer = 0; _root.forced_only_antimatter = 0; chosenball = 'none'; _root.mouse_over_powerup = 0; _root.blackballonthefield = 0; _root.tank_ammo_selected = 1; _root.ammo_chosen = 1; _root.carpet_timer = 0; _root.cursor_wpn_selected = 0; mouse_is_down = 0; _root.wpn_reloading_timer_0 = 0; _root.wpn_available_0 = 0; _root.wpn_loaded_0 = 0; _root.wpn_reloading_timer_1 = 0; _root.wpn_available_1 = 0; _root.wpn_loaded_1 = 0; _root.wpn_reloading_timer_2 = 0; _root.wpn_available_2 = 0; _root.wpn_loaded_2 = 0; _root.wpn_reloading_timer_3 = 0; _root.wpn_available_3 = 0; _root.wpn_loaded_3 = 0; _root.wpn_reloading_timer_4 = 0; _root.wpn_available_4 = 0; _root.wpn_loaded_4 = 0; _root.wpn_reloading_timer_5 = 0; _root.wpn_available_5 = 0; _root.wpn_loaded_5 = 0; _root.overdrive_timer = 0; _root.overdrive_delayTimer = 0; _root.invul_timer = 0; _root.invul_delayTimer = 0; _root.stat_kills = 0; _root.stat_shots = 0; _root.stat_powerups = 0; _root.stat_nukes = 0; _root.stat_blackholes = 0; _root.ballProjectile_available_2 = 0; _root.ballProjectile_loaded_2 = 0; _root.ballProjectile_reloading_timer_2 = 0; _root.ballProjectile_available_3 = 0; _root.ballProjectile_loaded_3 = 0; _root.ballProjectile_reloading_timer_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_loaded_4 = 0; _root.ballProjectile_reloading_timer_4 = 0; _root.ballProjectile_available_5 = 0; _root.ballProjectile_loaded_5 = 0; _root.ballProjectile_reloading_timer_5 = 0; _root.ballProjectile_available_6 = 0; _root.ballProjectile_loaded_6 = 0; _root.ballProjectile_reloading_timer_6 = 0; _root.dimensionalSHift_timer = 0; _root.dimensionalSHift_delayTimer = 0; _root.launcher_has_died = 0; _root.timer = 0; _root.kills = 0; _root.escaped = 0; } function initPROGRESSVars() { _root.lvl = 1; _root.experience = 0; _root.skill_points = 0; var v2 = 1; while (v2 < 40) { _root['map_status_' + v2] = 0; ++v2; } _root.map_status_1003 = 0; _root.map_status_1004 = 0; _root.map_status_1005 = 0; _root.map_status_1006 = 0; _root.map_status_1007 = 0; _root.map_status_1008 = 0; _root.map_status_1 = 1; _root.energy_upgrade_max = 30; _root.energy_upgrade = 0; _root.shield_upgrade_max = 30; _root.shield_upgrade = 0; _root.proj_upgrade_general = 0; _root.proj_upgrade_general_max = 25; _root.proj_upgrade_1 = 0; _root.proj_upgrade_1_max = 15; _root.proj_upgrade_2 = 0; _root.proj_upgrade_2_max = 15; _root.proj_upgrade_3 = 0; _root.proj_upgrade_3_max = 15; _root.proj_upgrade_4 = 0; _root.proj_upgrade_4_max = 15; _root.proj_upgrade_5 = 0; _root.proj_upgrade_5_max = 15; _root.proj_upgrade_6 = 0; _root.proj_upgrade_6_max = 15; _root.projPlus1Upgrade_max = 5; _root.projPlus1Upgrade = 0; _root.projCatcherUpgrade_max = 5; _root.projCatcherUpgrade = 0; _root.speedUpgrade1_max = 5; _root.speedUpgrade1 = 0; _root.ballActivationUpgrade_max = 10; _root.ballActivationUpgrade = 0; _root.speedUpgrade2_max = 10; _root.speedUpgrade2 = 0; _root.advShieldUpgrade_max = 5; _root.advShieldUpgrade = 0; _root.zeroConduit_max = 10; _root.zeroConduit = 0; _root.timeUpgrade_max = 10; _root.timeUpgrade = 0; _root.projPlus2Upgrade_max = 10; _root.projPlus2Upgrade = 0; } function saveANDload(dowhat) { trace(dowhat); this.saveslot000 = SharedObject.getLocal('yiffyiffmeowSAVE81610'); if (dowhat eq 'load') { varlocation1111 = this.saveslot000.data; if (varlocation1111.saved != 1) { return undefined; } } if (dowhat eq 'save') { varlocation1 = this.saveslot000.data; varlocation2 = _root; varlocation1.saved = 1; } else { if (dowhat eq 'load') { varlocation2 = this.saveslot000.data; varlocation1 = _root; } else { return undefined; } } varlocation1.lvl = varlocation2.lvl; varlocation1.experience = varlocation2.experience; varlocation1.skill_points = varlocation2.skill_points; var v3 = 1; while (v3 < 40) { varlocation1['map_status_' + v3] = varlocation2['map_status_' + v3]; ++v3; } varlocation1.map_status_1003 = varlocation2.map_status_1003; varlocation1.map_status_1004 = varlocation2.map_status_1004; varlocation1.map_status_1005 = varlocation2.map_status_1005; varlocation1.map_status_1006 = varlocation2.map_status_1006; varlocation1.map_status_1007 = varlocation2.map_status_1007; varlocation1.map_status_1008 = varlocation2.map_status_1008; v3 = 1; while (v3 < 40) { varlocation1['expmax_' + v3] = varlocation2['expmax_' + v3]; ++v3; } varlocation1.energy_upgrade = varlocation2.energy_upgrade; varlocation1.shield_upgrade = varlocation2.shield_upgrade; varlocation1.proj_upgrade_general = varlocation2.proj_upgrade_general; varlocation1.proj_upgrade_1 = varlocation2.proj_upgrade_1; varlocation1.proj_upgrade_2 = varlocation2.proj_upgrade_2; varlocation1.proj_upgrade_3 = varlocation2.proj_upgrade_3; varlocation1.proj_upgrade_4 = varlocation2.proj_upgrade_4; varlocation1.proj_upgrade_5 = varlocation2.proj_upgrade_5; varlocation1.proj_upgrade_6 = varlocation2.proj_upgrade_6; varlocation1.projPlus1Upgrade = varlocation2.projPlus1Upgrade; varlocation1.projCatcherUpgrade = varlocation2.projCatcherUpgrade; varlocation1.speedUpgrade1 = varlocation2.speedUpgrade1; varlocation1.ballActivationUpgrade = varlocation2.ballActivationUpgrade; varlocation1.speedUpgrade2 = varlocation2.speedUpgrade2; varlocation1.advShieldUpgrade = varlocation2.advShieldUpgrade; varlocation1.zeroConduit = varlocation2.zeroConduit; varlocation1.timeUpgrade = varlocation2.timeUpgrade; varlocation1.projPlus2Upgrade = varlocation2.projPlus2Upgrade; if (dowhat eq 'load') { return undefined; } } function initBaseVars_enemyANDturrets() { enemy_mass_1 = 60; enemy_speedmax_1 = 1.3; enemy_radius_1 = 15; enemy_thesize_1 = 'medium'; enemy_gunlength_1 = 30; enemy_reload_time_1 = 5; enemy_armed_1 = 1; enemy_popravka1_1 = 0; enemy_popravka2_1 = 0; enemy_exp_1 = 2; enemy_mass_2 = 200; enemy_speedmax_2 = 1; enemy_radius_2 = 22; enemy_thesize_2 = 'big'; enemy_gunlength_2 = 30; enemy_reload_time_2 = 5; enemy_armed_2 = 1; enemy_popravka1_2 = 90; enemy_popravka2_2 = 90; enemy_loading_charge_time_2 = 1; enemy_exp_2 = 4; enemy_mass_3 = 150; enemy_speedmax_3 = 1; enemy_radius_3 = 22; enemy_thesize_3 = 'big'; enemy_gunlength_3 = 0; enemy_reload_time_3 = 5; enemy_armed_3 = 0; enemy_popravka1_3 = 0; enemy_popravka2_3 = 0; enemy_loading_charge_time_3 = 0; enemy_exp_3 = 4; enemy_mass_4 = 150; enemy_speedmax_4 = 1; enemy_radius_4 = 22; enemy_thesize_4 = 'big'; enemy_gunlength_4 = 0; enemy_reload_time_4 = 5; enemy_armed_4 = 0; enemy_popravka1_4 = 0; enemy_popravka2_4 = 0; enemy_loading_charge_time_4 = 0; enemy_exp_4 = 3; enemy_mass_5 = 40; enemy_speedmax_5 = 1.5; enemy_radius_5 = 13; enemy_thesize_5 = 'small'; enemy_gunlength_5 = 0; enemy_reload_time_5 = 5; enemy_armed_5 = 0; enemy_popravka1_5 = 0; enemy_popravka2_5 = 0; enemy_loading_charge_time_5 = 0; enemy_exp_5 = 1; enemy_mass_6 = 150; enemy_speedmax_6 = 1; enemy_radius_6 = 22; enemy_thesize_6 = 'big'; enemy_gunlength_6 = 0; enemy_reload_time_6 = 5; enemy_armed_6 = 0; enemy_popravka1_6 = 0; enemy_popravka2_6 = 0; enemy_loading_charge_time_6 = 0; enemy_exp_6 = 3; enemy_mass_7 = 800; enemy_speedmax_7 = 1; enemy_radius_7 = 42.5; enemy_thesize_7 = 'hueg'; enemy_gunlength_7 = 0; enemy_reload_time_7 = 5; enemy_armed_7 = 0; enemy_popravka1_7 = 0; enemy_popravka2_7 = 0; enemy_loading_charge_time_7 = 0; enemy_exp_7 = 7; enemy_mass_8 = 800; enemy_speedmax_8 = 1; enemy_radius_8 = 42.5; enemy_thesize_8 = 'hueg'; enemy_gunlength_8 = 0; enemy_reload_time_8 = 5; enemy_armed_8 = 0; enemy_popravka1_8 = 0; enemy_popravka2_8 = 0; enemy_loading_charge_time_8 = 0; enemy_exp_8 = 7; enemy_mass_9 = 300; enemy_speedmax_9 = 1; enemy_radius_9 = 22; enemy_thesize_9 = 'big'; enemy_gunlength_9 = 30; enemy_reload_time_9 = 4.5; enemy_armed_9 = 1; enemy_popravka1_9 = 90; enemy_popravka2_9 = 90; enemy_loading_charge_time_9 = 1; enemy_exp_9 = 4; enemy_mass_10 = 900; enemy_speedmax_10 = 1; enemy_radius_10 = 42.5; enemy_thesize_10 = 'special1'; enemy_gunlength_10 = 0; enemy_reload_time_10 = 9999; enemy_armed_10 = 0; enemy_popravka1_10 = 0; enemy_popravka2_10 = 0; enemy_loading_charge_time_10 = 0; enemy_exp_10 = 10; enemy_mass_11 = 40; enemy_speedmax_11 = 1.5; enemy_radius_11 = 13; enemy_thesize_11 = 'small'; enemy_gunlength_11 = 0; enemy_reload_time_11 = 5; enemy_armed_11 = 0; enemy_popravka1_11 = 0; enemy_popravka2_11 = 0; enemy_loading_charge_time_11 = 0; enemy_exp_11 = 1; enemy_mass_12 = 300; enemy_speedmax_12 = 1; enemy_radius_12 = 22; enemy_thesize_12 = 'big'; enemy_gunlength_12 = 30; enemy_reload_time_12 = 2.5; enemy_armed_12 = 1; enemy_popravka1_12 = 90; enemy_popravka2_12 = 90; enemy_loading_charge_time_12 = 1; enemy_exp_12 = 4; enemy_mass_13 = 100; enemy_speedmax_13 = 1.5; enemy_radius_13 = 16.5; enemy_thesize_13 = 'medium'; enemy_gunlength_13 = 0; enemy_reload_time_13 = 5; enemy_armed_13 = 0; enemy_popravka1_13 = 0; enemy_popravka2_13 = 0; enemy_loading_charge_time_13 = 0; enemy_exp_13 = 2; enemy_mass_14 = 1300; enemy_speedmax_14 = 1; enemy_radius_14 = 42.5; enemy_thesize_14 = 'special1'; enemy_gunlength_14 = 0; enemy_reload_time_14 = 9999; enemy_armed_14 = 0; enemy_popravka1_14 = 0; enemy_popravka2_14 = 0; enemy_loading_charge_time_14 = 0; enemy_exp_14 = 12; enemy_mass_15 = 800; enemy_speedmax_15 = 1; enemy_radius_15 = 42.5; enemy_thesize_15 = 'hueg'; enemy_gunlength_15 = 0; enemy_reload_time_15 = 5; enemy_armed_15 = 0; enemy_popravka1_15 = 0; enemy_popravka2_15 = 0; enemy_loading_charge_time_15 = 0; enemy_exp_15 = 7; enemy_mass_16 = 200; enemy_speedmax_16 = 1.3; enemy_radius_16 = 22; enemy_thesize_16 = 'big'; enemy_gunlength_16 = 0; enemy_reload_time_16 = 5; enemy_armed_16 = 0; enemy_popravka1_16 = 0; enemy_popravka2_16 = 0; enemy_loading_charge_time_16 = 0; enemy_exp_16 = 3; enemy_mass_17 = 150; enemy_speedmax_17 = 1; enemy_radius_17 = 22; enemy_thesize_17 = 'big'; enemy_gunlength_17 = 0; enemy_reload_time_17 = 5; enemy_armed_17 = 0; enemy_popravka1_17 = 0; enemy_popravka2_17 = 0; enemy_loading_charge_time_17 = 0; enemy_exp_17 = 3; enemy_mass_18 = 350; enemy_speedmax_18 = 1; enemy_radius_18 = 35; enemy_thesize_18 = 'special2'; enemy_gunlength_18 = 0; enemy_reload_time_18 = 9999; enemy_armed_18 = 0; enemy_popravka1_18 = 0; enemy_popravka2_18 = 0; enemy_loading_charge_time_18 = 0; enemy_exp_18 = 5; enemy_mass_19 = 300; enemy_speedmax_19 = 1; enemy_radius_19 = 35; enemy_thesize_19 = 'special2'; enemy_gunlength_19 = 0; enemy_reload_time_19 = 9999; enemy_armed_19 = 0; enemy_popravka1_19 = 0; enemy_popravka2_19 = 0; enemy_loading_charge_time_19 = 0; enemy_exp_19 = 5; enemy_mass_20 = 60; enemy_speedmax_20 = 2; enemy_radius_20 = 15; enemy_thesize_20 = 'medium'; enemy_gunlength_20 = 0; enemy_reload_time_20 = 0; enemy_armed_20 = 0; enemy_popravka1_20 = 0; enemy_popravka2_20 = 0; enemy_exp_20 = 1; enemy_mass_21 = 80; enemy_speedmax_21 = 1; enemy_radius_21 = 19; enemy_thesize_21 = 'medium'; enemy_gunlength_21 = 0; enemy_reload_time_21 = 0; enemy_armed_21 = 0; enemy_popravka1_21 = 0; enemy_popravka2_21 = 0; enemy_exp_21 = 1; enemy_mass_22 = 40; enemy_speedmax_22 = 2; enemy_radius_22 = 13; enemy_thesize_22 = 'small'; enemy_gunlength_22 = 0; enemy_reload_time_22 = 5; enemy_armed_22 = 0; enemy_popravka1_22 = 0; enemy_popravka2_22 = 0; enemy_loading_charge_time_22 = 0; enemy_exp_22 = 1; enemy_mass_23 = 70; enemy_speedmax_23 = 1; enemy_radius_23 = 19; enemy_thesize_23 = 'medium'; enemy_gunlength_23 = 0; enemy_reload_time_23 = 0; enemy_armed_23 = 0; enemy_popravka1_23 = 0; enemy_popravka2_23 = 0; enemy_exp_23 = 1; enemy_mass_24 = 50; enemy_speedmax_24 = 1.3; enemy_radius_24 = 16; enemy_thesize_24 = 'medium'; enemy_gunlength_24 = 0; enemy_reload_time_24 = 0; enemy_armed_24 = 0; enemy_popravka1_24 = 0; enemy_popravka2_24 = 0; enemy_exp_24 = 1; enemy_mass_25 = 300; enemy_speedmax_25 = 1; enemy_radius_25 = 35; enemy_thesize_25 = 'special2'; enemy_gunlength_25 = 0; enemy_reload_time_25 = 9999; enemy_armed_25 = 0; enemy_popravka1_25 = 0; enemy_popravka2_25 = 0; enemy_loading_charge_time_25 = 0; enemy_exp_25 = 6; enemy_mass_26 = 1000; enemy_speedmax_26 = 0.6; enemy_radius_26 = 42.5; enemy_thesize_26 = 'special1'; enemy_gunlength_26 = 30; enemy_reload_time_26 = 3.5; enemy_armed_26 = 1; enemy_popravka1_26 = 0; enemy_popravka2_26 = 0; enemy_exp_26 = 20; enemy_mass_27 = 60; enemy_speedmax_27 = 1; enemy_radius_27 = 19; enemy_thesize_27 = 'medium'; enemy_gunlength_27 = 0; enemy_reload_time_27 = 0; enemy_armed_27 = 0; enemy_popravka1_27 = 0; enemy_popravka2_27 = 0; enemy_exp_27 = 1; enemy_mass_28 = 70; enemy_speedmax_28 = 0.8; enemy_radius_28 = 19; enemy_thesize_28 = 'medium'; enemy_gunlength_28 = 0; enemy_reload_time_28 = 0; enemy_armed_28 = 0; enemy_popravka1_28 = 0; enemy_popravka2_28 = 0; enemy_exp_28 = 1; enemy_mass_29 = 70; enemy_speedmax_29 = 0.8; enemy_radius_29 = 19; enemy_thesize_29 = 'medium'; enemy_gunlength_29 = 0; enemy_reload_time_29 = 0; enemy_armed_29 = 0; enemy_popravka1_29 = 0; enemy_popravka2_29 = 0; enemy_exp_29 = 1; enemy_mass_30 = 70; enemy_speedmax_30 = 1.3; enemy_radius_30 = 15; enemy_thesize_30 = 'medium'; enemy_gunlength_30 = 30; enemy_reload_time_30 = 5; enemy_armed_30 = 1; enemy_popravka1_30 = 0; enemy_popravka2_30 = 0; enemy_exp_30 = 2; enemy_mass_31 = 400; enemy_speedmax_31 = 1; enemy_radius_31 = 22; enemy_thesize_31 = 'big'; enemy_gunlength_31 = 30; enemy_reload_time_31 = 3; enemy_armed_31 = 1; enemy_popravka1_31 = 0; enemy_popravka2_31 = 0; enemy_loading_charge_time_31 = 1; enemy_exp_31 = 4; enemy_mass_32 = 150; enemy_speedmax_32 = 2; enemy_radius_32 = 22; enemy_thesize_32 = 'big'; enemy_gunlength_32 = 0; enemy_reload_time_32 = 5; enemy_armed_32 = 0; enemy_popravka1_32 = 0; enemy_popravka2_32 = 0; enemy_loading_charge_time_32 = 0; enemy_exp_32 = 3; enemy_mass_33 = 700; enemy_speedmax_33 = 0.8; enemy_radius_33 = 42.5; enemy_thesize_33 = 'hueg'; enemy_gunlength_33 = 30; enemy_reload_time_33 = 5; enemy_armed_33 = 1; enemy_popravka1_33 = 0; enemy_popravka2_33 = 0; enemy_exp_33 = 17; _root.turret_hp_1 = 7000; _root.turret_radius_1 = 30; _root.turret_reload_time_1 = 6; _root.turret_min_distance_1 = 150; _root.turret_gunlength_1 = 30; _root.turret_hp_2 = 7000; _root.turret_radius_2 = 30; _root.turret_reload_time_2 = 4; _root.turret_min_distance_2 = 70; _root.turret_gunlength_2 = 30; _root.turret_hp_3 = 7000; _root.turret_radius_3 = 18.5; _root.turret_reload_time_3 = 5; _root.turret_min_distance_3 = 70; _root.turret_gunlength_3 = 30; _root.turret_hp_4 = 7000; _root.turret_radius_4 = 18.5; _root.turret_reload_time_4 = 3; _root.turret_min_distance_4 = 10; _root.turret_gunlength_4 = 30; } function enemy2enemyImpactSound() { _root['impact_enemy2enemy_' + (random(16) + 1)].start(); } function enemy2wallImpactSound() { _root.collisionenemy2wallrandomizer = random(4); if (_root.collisionenemy2wallrandomizer eq 3) { _root.impact_enemy2wall_4.start(); } else { if (_root.collisionenemy2wallrandomizer eq 2) { _root.impact_enemy2wall_3.start(); } else { if (_root.collisionenemy2wallrandomizer eq 1) { _root.impact_enemy2wall_2.start(); } else { if (_root.collisionenemy2wallrandomizer eq 0) { _root.impact_enemy2wall_1.start(); } } } } } function ExplosionSound(thesize) { if (thesize eq 'small' or thesize eq 'medium') { _root['Explosion_' + (random(4) + 1)].start(); } else { if (thesize eq 'big') { _root['Explosion_' + (random(2) + 5)].start(); } else { if (thesize eq 'hueg') { _root.Explosion_7.start(); } } } } function enemyShotSound_1() { if (random(2) eq 1) { _root.enemyTankShot1_1.start(); } else { _root.enemyTankShot1_2.start(); } } function enemyShotSound_2() { _root.enemyTankShot2.start(); } function enemyShotSound_9() { _root.enemyShotSnd_9.start(); } function enemyShotSound_12() { _root.enemyShotSnd_9.start(); } function enemyShotSound_26() { _root.enemyShotSnd_26.start(); } function enemyShotSound_30() { _root.enemyShotSnd_30.start(); } function enemyShotSound_31() { _root.enemyShotSnd_30.start(); } function enemyShotSound_33() { _root.enemyShotSnd_26.start(); } function loopmusic() { if (_root.yiff_paused eq 1 or _root.WorldMap) { return undefined; _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); } if (_root.turn_off_music eq 1) { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); return undefined; } if (_root.musicwas_paused eq 1) { musicstartposition = _root.music_paused_at / 1000; } else { musicstartposition = 0; } maxlendth = _root.game_music_shell.mmm3_musicloop_1.duration; now_position = _root.game_music_shell.mmm3_musicloop_1.position; if (now_position / maxlendth > 0.999 or now_position eq 0 or _root.musicwas_paused eq 1) { _root.musicwas_paused = 0; var v3 = this.createEmptyMovieClip('game_music_shell', 70000); _root.game_music_shell.mmm3_musicloop_1 = new Sound(); _root.game_music_shell.mmm3_musicloop_1.attachSound('mmm4_musicloop'); _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.game_music_shell.mmm3_musicloop_1.start(musicstartposition, 1); if (_root.music_off eq 1) { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); } } } function rotation_towards_movement(trg, xspeed, yspeed) { speedpovorota = 1; dx = xspeed; dy = yspeed; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { trg._rotation -= aa; } else { trg._rotation = angle1; } } function rotationTowardsPoint(trgt1, xx2, yy2, popravka) { mewmewmewmewmewmew = CALC_Dist_Xv_Yv(xx2, yy2, trgt1._x, trgt1._y); speedpovorota = 0.9; trg = trgt1; dx = mewmewmewmewmewmew[3]; dy = mewmewmewmewmewmew[4]; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { trg._rotation -= aa; } else { trg._rotation = angle1; } trg._rotation += popravka; } function rotationTowardsPoint_2(kogoRotate, xx1, yy1, xx2, yy2, popravka, slowness) { mewmewmewmewmewmew = CALC_Dist_Xv_Yv(xx2, yy2, xx1, yy1); if (slowness eq 1) { speedpovorota = 0.1; } else { speedpovorota = 0.9; } trg = trgt1; dx = mewmewmewmewmewmew[3]; dy = mewmewmewmewmewmew[4]; _root.tempwar_xmod = mewmewmewmewmewmew[1]; _root.tempwar_ymod = mewmewmewmewmewmew[2]; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { kogoRotate._rotation -= aa; } else { kogoRotate._rotation = angle1; } kogoRotate._rotation += popravka; } function DefineSpeed(target) { target.speed = Math.sqrt(target.xspeed * target.xspeed + target.yspeed * target.yspeed); aaa = _root.maxspeed / target.speed; if (aaa < 1) { target.xspeed *= aaa; target.yspeed *= aaa; } target.speed = Math.sqrt(target.xspeed * target.xspeed + target.yspeed * target.yspeed); } function moveObject(target) { if (target) { target.tempx = target.xpos + target.xspeed; target.tempy = target.ypos + target.yspeed; } } function renderObject(target) { if (target) { target.xpos = target.tempx; target.ypos = target.tempy; target._x = target.xpos; target._y = target.ypos; } } function CALC_Dist_Xv_Yv(x1, y1, x2, y2) { A = {}; B = {}; A.xx = x1; A.yy = y1; B.xx = x2; B.yy = y2; dx = A.xx - B.xx; dy = A.yy - B.yy; distance = Math.sqrt(dx * dx + dy * dy); dx_a = Math.abs(dx); dy_a = Math.abs(dy); if (dx > 0 or dx eq 0) { xmod = 1; } else { xmod = -1; } if (dy > 0 or dy eq 0) { ymod = 1; } else { ymod = -1; } if (dx_a > dy_a) { spdmod = dy_a / dx_a; x_modifier = xmod; y_modifier = ymod * spdmod; return [distance, x_modifier, y_modifier, dx, dy]; } if (dx_a < dy_a) { spdmod = dx_a / dy_a; x_modifier = xmod * spdmod; y_modifier = ymod; return [distance, x_modifier, y_modifier, dx, dy]; } x_modifier = xmod; y_modifier = ymod; return [distance, x_modifier, y_modifier, dx, dy]; } function ball2BallReaction(b1, b2, x1, x2, y1, y2, time, type) { var v6 = b1.mass; var v12 = b2.mass; var v24 = b1.xspeed; var v23 = b2.xspeed; var v33 = b1.xspeed; var v34 = b2.xspeed; var v27 = b1.yspeed; var v25 = b2.yspeed; var v28 = x1 - x2; var v32 = y1 - y2; if (b1.type_ eq 2) { var v18 = random(360); } else { var v18 = Math.atan2(v32, v28); } var v5 = Math.cos(v18); var v4 = Math.sin(v18); var v30 = x1 - x2; var v29 = y1 - y2; R_2 = b2.radius; var v14 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R_2 * Math.sin(v14 * 0.0174532925199433); collision_x3 = x2 - R_2 * Math.cos(v14 * 0.0174532925199433); GenerateSparkles(collision_x3, collision_y3); collisionEffect(collision_x3, collision_y3); var v19 = v24 * v5 + v27 * v4; var v16 = v23 * v5 + v25 * v4; var v17 = v27 * v5 - v24 * v4; var v15 = v25 * v5 - v23 * v4; if (type eq 0) { if (b2.id eq 18 or b2.id eq 10) { if (b1.type_ eq 0 or b1.type_ eq 1 or b1.type_ eq 2) { removeMovieClip(b1); b2.dmg *= 0.7; b2.absorb.play(); b2.torso.absorb.play(); return undefined; } } b2.ballhitanim.play(); b1.vspishka.play(); b1.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.ballhitanim.play(); if (b1.type_ != 6) { b2.dmg += _root['bounceball_damage_' + b1.type_]; } } else { if (type eq 1) { if (b2.what eq 'turret') { b1.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; b2.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; } else { b1dmg111 = (Math.abs(v19) + Math.abs(v16)) * v12; b2dmg111 = (Math.abs(v19) + Math.abs(v16)) * v6; if (b2 eq _root.yiff.playerTank) { b2dmg111max = _root.yiff.playerTank.hp / 4; if (b2dmg111 > b2dmg111max) { b2dmg111 = b2dmg111max; } } b1.dmg += b1dmg111; b2.dmg += b2dmg111; } enemy2enemyImpactSound(); v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 2) { b1.vspishka.play(); b1.chaos_timer = _root.ball_losecontroll_time; ++b1.hits; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } else { if (type eq 3) { b1.dmg += Math.abs(v19) * v6; enemy2wallImpactSound(); v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 4) { b2.thecore.ballhitanim.play(); ++b1.enemy_hits; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; b2.dmg + _root.disc_dmg; v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 5) { b2.ballhitanim.play(); b1.razmagni4ivanie_timer = _root.razmagni4evanie_time; if (b1.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(b1); } if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.dmg += 500 + random(500); } } } } } } var v26 = v6 * v19 + v12 * v16; var v31 = v19 - v16; var v21 = (v26 + v6 * v31) / (v6 + v12); var v22 = v21 - v19 + v16; v19 = v22; v16 = v21; v24 = v19 * v5 - v17 * v4; v23 = v16 * v5 - v15 * v4; v27 = v17 * v5 + v19 * v4; v25 = v15 * v5 + v16 * v4; if (b1.type_ eq 10) { b1.xspeed *= 1.03; b1.yspeed *= 1.03; } if (b1.type_ eq 4) { b1._x = b2._x; b1._y = b2._y; b1.type_ = 10; b1.gotoAndStop(10); return undefined; } if (b1.type_ eq 6) { spawnGravNuke(b2._x, b2._y); removeMovieClip(b1); return undefined; } if (b1.type_ eq 44) { turretShellDetonation(b1._x, b1._y, 303); removeMovieClip(b1); return undefined; } b1.tempx = b1.xpos + b1.xspeed * time * 0.9; b1.tempy = b1.ypos + b1.yspeed * time * 0.9; b1.xspeed = v24; b1.yspeed = v27; b2.tempx = b2.xpos + b2.xspeed * time * 0.9; b2.tempy = b2.ypos + b2.yspeed * time * 0.9; b2.xspeed = v23; b2.yspeed = v25; } function ballToBallDetection(b1, b2, type) { if (b1.type_ eq 5) { return undefined; } var v7 = b1.xspeed; var v9 = b1.yspeed; var v6 = b2.xspeed; var v8 = b2.yspeed; var v4 = b1.xpos; var v2 = b1.ypos; var v3 = b2.xpos; var v1 = b2.ypos; var v15 = b1.radius + b2.radius; var v21 = -2 * v7 * v6 + v7 * v7 + v6 * v6; var v20 = -2 * v4 * v6 - 2 * v3 * v7 + 2 * v4 * v7 + 2 * v3 * v6; var v19 = -2 * v4 * v3 + v4 * v4 + v3 * v3; var v18 = -2 * v9 * v8 + v9 * v9 + v8 * v8; var v17 = -2 * v2 * v8 - 2 * v1 * v9 + 2 * v2 * v9 + 2 * v1 * v8; var v25 = -2 * v2 * v1 + v2 * v2 + v1 * v1; var v14 = v21 + v18; var v11 = v20 + v17; var v24 = v19 + v25 - v15 * v15; var v16 = Math.sqrt(v11 * v11 - 4 * v14 * v24); var v13 = (-v11 + v16) / 2 * v14; var v12 = (-v11 - v16) / 2 * v14; if (v13 > 0 && v13 <= 1) { var v22 = v13; var v23 = true; } if (v12 > 0 && v12 <= 1) { if (v22 == null || v12 < v13) { v22 = v12; v23 = true; } } if (v23) { ball2BallReaction(b1, b2, v4, v3, v2, v1, v22, type); } } function WallCollision(ball) { var v2 = ball; var v5 = v2.ypos + v2.yspeed; var v4 = v2.radius; if (_root.yiff.wall_bottom) { if (v5 + v4 > _root.yiff.wall_bottom._y) { if (ball.type_ eq 6) { spawnGravNuke(ball._x, ball._y); removeMovieClip(ball); return undefined; } if (v2.whatisit eq 'magnets' and v2.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(v2); } v2.tempy = _root.yiff.wall_bottom._y - v4; v2.yspeed *= -1; v2.vspishka.play(); v2.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } } if (_root.yiff.wall_upper) { if (v5 - v4 < _root.yiff.wall_upper._y) { if (ball.type_ eq 6) { spawnGravNuke(ball._x, ball._y); removeMovieClip(ball); return undefined; } if (v2.whatisit eq 'magnets' and v2.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(v2); } v2.tempy = _root.yiff.wall_upper._y + v4; v2.yspeed *= -1; v2.vspishka.play(); v2.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } } } function Enemy2WallCollision(enemy) { var v2 = enemy; var v4 = v2.ypos + v2.yspeed; var v3 = v2.radius; if (v4 + v3 > _root.yiff.wall_bottom._y) { v2.tempy = _root.yiff.wall_bottom._y - v3; doenemycillisioneffect = 1; } if (v4 - v3 < _root.yiff.wall_upper._y) { v2.tempy = _root.yiff.wall_upper._y + v3; doenemycillisioneffect = 2; } if (doenemycillisioneffect != 0) { if (Math.abs(v2.yspeed) > 5) { v2.yspeed *= -0.5; } else { v2.yspeed *= -0.8; } enemy2wallImpactSound(); walldmg = Math.abs(v2.yspeed * v2.mass); if (walldmg < 100) { walldmg = 100; } if (v2 eq _root.yiff.playerTank) { dmgmax111 = _root.yiff.playerTank.hp / 4; if (walldmg > dmgmax111) { walldmg = dmgmax111; } } v2.dmg += walldmg; if (doenemycillisioneffect eq 1) { collisionEffect(v2._x, _root.yiff.wall_bottom._y); } else { collisionEffect(v2._x, _root.yiff.wall_upper._y); } doenemycillisioneffect = 0; } } function collisionEffect(collision_x, collision_y) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('udar', 'udar_anim' + iyiff, iyiff); _root.yiff.explosions_shell['udar_anim' + iyiff]._x = collision_x; _root.yiff.explosions_shell['udar_anim' + iyiff]._y = collision_y; _root.yiff.explosions_shell['udar_anim' + iyiff]._rotation = random(360); } function explosion_Effect_OnTargets(xx, yy, power) { var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.type_ != 5) { Explosion(checkball, xx, yy, power); } ++v2; } v2 = 0; while (v2 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v2]; Explosion(checkturret, xx, yy, power); ++v2; } if (_root.yiff.playerTank.shift_mode != 1 and power != 999) { if (random(100) > _root.DMG_blcok_chance) { Explosion(_root.yiff.playerTank, xx, yy, power); } } v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; Explosion(checkenemy, xx, yy, power); ++v2; } } function Explosion(target, explosion_x, explosion_y, power) { if (power eq 0) { return undefined; } if (power eq 1) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.small_explosion_dmg; } else { if (power eq 2) { explosion_radius = 41.5; explosion_mass = 50; explosion_power = 8; _root.shakescreen = 6; explosion_dmg = _root.small_explosion_dmg; } else { if (power eq 3) { explosion_radius = 57.5; explosion_mass = 100; explosion_power = 15; _root.shakescreen = 7; explosion_dmg = _root.big_explosion_dmg; } else { if (power eq 4) { explosion_radius = 85; explosion_mass = 100; explosion_power = 25; _root.shakescreen = 10; explosion_dmg = _root.hueg_explosion_dmg; } else { if (power eq 5) { explosion_radius = 95; explosion_mass = 100; explosion_power = 25; _root.shakescreen = 10; explosion_dmg = 2000 + random(5000); } else { if (power eq 6) { explosion_radius = 70; _root.shakescreen = 15; explosion_mass = 100; explosion_power = 50; explosion_dmg = 1; } else { if (power eq 8) { explosion_radius = 150; _root.shakescreen = 5; explosion_mass = 100; explosion_power = 80; explosion_dmg = 1; } else { if (power eq 9) { explosion_radius = 135; _root.shakescreen = 10; explosion_mass = 100; explosion_power = 20; explosion_dmg = 1000; } else { if (power eq 10) { explosion_radius = 170; _root.shakescreen = 30; explosion_mass = 50; explosion_power = 40; explosion_dmg = _root.nuke_dmg; } else { if (power eq 11) { explosion_radius = 80; _root.shakescreen = 5; explosion_mass = 35; explosion_power = 35; explosion_dmg = 1500; } else { if (power eq 12) { explosion_radius = 100; _root.shakescreen = 5; explosion_mass = 50; explosion_power = -40; explosion_dmg = 1; } else { if (power eq 13) { explosion_radius = 80; _root.shakescreen = 5; explosion_mass = 60; explosion_power = 80; explosion_dmg = 1; } else { if (power eq 14) { explosion_radius = _root.blackball_effectradius; explosion_mass = _root.blackball_power; explosion_power = -40; explosion_dmg = 5; } else { if (power eq 15) { explosion_radius = 37.5; explosion_mass = 100; explosion_power = 8; _root.shakescreen = 5; explosion_dmg = 500 + random(1000); } else { if (power eq 16) { explosion_radius = 41.5; explosion_mass = 80; explosion_power = 7; _root.shakescreen = 5; explosion_dmg = _root.airstrike_small_dmg; } else { if (power eq 17) { explosion_radius = 37.5; explosion_mass = 30; explosion_power = 8; _root.shakescreen = 5; explosion_dmg = _root.artillery_emp_damage; } else { if (power eq 18) { explosion_radius = 70; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.airstrike_big_dmg; } else { if (power eq 19) { explosion_radius = 100; _root.shakescreen = 30; explosion_mass = 30; explosion_power = 40; explosion_dmg = _root.emp_nuke_dmg; } else { if (power eq 20) { explosion_radius = 200; _root.do_emp_shytdown = 1; explosion_mass = 25; explosion_power = 5; explosion_dmg = 100 + random(400); } else { if (power eq 21) { explosion_radius = 40; explosion_mass = 100; explosion_power = 10; _root.shakescreen = 5; explosion_dmg = _root.homing_mines_dmg; } else { if (power eq 22) { } else { if (power eq 23) { } else { if (power eq 24) { } else { if (power eq 25) { } else { if (power eq 26) { } else { if (power eq 27) { } else { if (power eq 28) { explosion_radius = 180; explosion_mass = 100; explosion_power = 7; _root.shakescreen = 3; explosion_dmg = _root.enemy_dmg_26; } else { if (power eq 29) { explosion_radius = 190; explosion_mass = 100; explosion_power = -5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg; } else { if (power eq 30) { explosion_radius = 20; explosion_mass = 1; explosion_power = 5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg_core; } else { if (power eq 2800) { explosion_radius = 100; explosion_mass = 100; explosion_power = 7; _root.shakescreen = 3; explosion_dmg = _root.enemy_dmg_26; } else { if (power eq 2900) { explosion_radius = 80; explosion_mass = 100; explosion_power = -5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg; } else { if (power eq 3000) { explosion_radius = 20; explosion_mass = 1; explosion_power = 5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg_core; } else { if (power eq 31) { explosion_radius = 45; explosion_mass = 100; explosion_power = 15; _root.shakescreen = 5; explosion_dmg = _root.balldetonation_dmg; } else { if (power eq 101) { explosion_radius = 32.5; explosion_mass = 80; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.playerTank_smallSHell; } else { if (power eq 102) { explosion_radius = 100; explosion_mass = 80; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.playerTank_bigSHell; } else { if (power eq 103) { explosion_radius = 32.5; explosion_mass = 10; explosion_power = 5; _root.shakescreen = 2; explosion_dmg = _root.playerTank_empSHell; _root.do_emp_shytdown = 1; } else { if (power eq 104) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 0; } else { if (power eq 202) { explosion_radius = 25; explosion_mass = 50; explosion_power = 5; explosion_dmg = _root.enemy_dmg_1; } else { if (power eq 203) { explosion_radius = 50; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_2; } else { if (power eq 204) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_9; } else { if (power eq 205) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_12; } else { if (power eq 206) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 1; explosion_dmg = 1; } else { if (power eq 207) { explosion_radius = 25; explosion_mass = 50; explosion_power = 5; explosion_dmg = _root.enemy_dmg_30; } else { if (power eq 208) { explosion_radius = 25; explosion_mass = 50; explosion_power = 40; explosion_dmg = _root.enemy_dmg_31; } else { if (power eq 209) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 1; explosion_dmg = 1; } else { if (power eq 301) { explosion_radius = 40; explosion_mass = 80; explosion_power = 10; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_1; } else { if (power eq 302) { explosion_radius = 10; explosion_mass = 20; explosion_power = 8; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_2; } else { if (power eq 303) { trace('explosion 303'); explosion_radius = 40; explosion_mass = 60; explosion_power = 8; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_3; } else { if (power eq 999) { explosion_radius = 75; explosion_mass = 20; explosion_power = -70; explosion_dmg = 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } x1 = target._x; y1 = target._y; x2 = explosion_x; y2 = explosion_y; var v6 = x1 - x2; var v7 = y1 - y2; var v20 = Math.sqrt(v6 * v6 + v7 * v7); if (v20 - target.radius < explosion_radius and Math.abs(v6) + Math.abs(v7) > 0.0001) { target.dmg += explosion_dmg; if (_root.do_emp_shytdown eq 1) { _root.do_emp_shytdown = 0; target.emp_timer = _root.emp_unitDeactivation_time; } var v8 = target.mass; var v9 = explosion_mass; var v17 = target.xspeed; var v19 = target.yspeed; var v13 = Math.atan2(v7, v6); var v5 = Math.cos(v13); var v4 = Math.sin(v13); var v14 = v17 * v5 + v19 * v4; var v11 = explosion_power; var v12 = v19 * v5 - v17 * v4; var v10 = 0.0001; var v18 = v8 * v14 + v9 * v11; var v21 = v14 - v11; var v15 = (v18 + v8 * v21) / (v8 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v5 - v12 * v4; var v22 = v11 * v5 - v10 * v4; v19 = v12 * v5 + v14 * v4; var v23 = v10 * v5 + v11 * v4; target.xspeed = v17; target.yspeed = v19; } } function implosionEffect(enemy, xx, yy) { implosion_radius = 250; x1 = enemy._x; y1 = enemy._y; x2 = xx; y2 = yy; var v4 = x1 - x2; var v6 = y1 - y2; var v7 = Math.sqrt(v4 * v4 + v6 * v6); if (v7 < implosion_radius) { implosion_mass = 55; implosion_suckingpower = -18 * v7 / implosion_radius; var v5 = enemy.mass; var v8 = implosion_mass; var v16 = enemy.xspeed; var v18 = enemy.yspeed; var v12 = Math.atan2(v6, v4); var v2 = Math.cos(v12); var v1 = Math.sin(v12); var v13 = v16 * v2 + v18 * v1; var v10 = implosion_suckingpower; var v11 = v18 * v2 - v16 * v1; var v9 = 0.0001; var v17 = v5 * v13 + v8 * v10; var v19 = v13 - v10; var v14 = (v17 + v5 * v19) / (v5 + v8); var v15 = v14 - v13 + v10; v13 = v15; v10 = v14; v16 = v13 * v2 - v11 * v1; var v20 = v10 * v2 - v9 * v1; v18 = v11 * v2 + v13 * v1; var v21 = v9 * v2 + v10 * v1; enemy.xspeed = v16; enemy.yspeed = v18; } } function BlackHoleEffect(targ, iks, igrik) { blackhole_mass = 0.25; blackhole_power_max = -100; blackhole_power_min = -5; blackhole_radius = 600; event_horizon = 50; speed_amplifier = 1.05; x1 = targ._x; y1 = targ._y; x2 = iks; y2 = igrik; var v7 = x1 - x2; var v8 = y1 - y2; var v6 = Math.sqrt(v7 * v7 + v8 * v8); if (v6 < blackhole_radius) { blackhole_power = blackhole_power_min + blackhole_power_max * blackhole_radius / v6; if (v6 < event_horizon) { if (_root.yiff.playerTank eq targ) { targ.dmg += 9999999999999.0; _root.launcher_has_died = 1; } else { removeMovieClip(targ); } } var v5 = targ.mass; if (v5 eq undefined or !v5) { v5 = 10; } var v9 = blackhole_mass; var v17 = targ.xspeed; var v19 = targ.yspeed; var v13 = Math.atan2(v8, v7); var v4 = Math.cos(v13); var v3 = Math.sin(v13); var v14 = v17 * v4 + v19 * v3; var v11 = blackhole_power; var v12 = v19 * v4 - v17 * v3; var v10 = 0.0001; var v18 = v5 * v14 + v9 * v11; var v20 = v14 - v11; var v15 = (v18 + v5 * v20) / (v5 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v4 - v12 * v3; var v21 = v11 * v4 - v10 * v3; v19 = v12 * v4 + v14 * v3; var v22 = v10 * v4 + v11 * v3; targ.xspeed = v17; targ.yspeed = v19; } } function maintenancePutDotOnSTage(xx, yy) {} function createSingularitiesArray() { _root.singularitiesArray = []; _root.singularitiesOnTheField = 0; trgtlayer = _root.yiff.blackholes_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'singularity') { _root.singularitiesArray.push(trgtlayer[v2]); } } } _root.singularitiesOnTheField = _root.singularitiesArray.length; } function activateBlackhole(xx, yy) { ++_root.stat_blackholes; iyiff = _root.yiff.blackholes_shell.getNextHighestDepth(); _root.yiff.blackholes_shell.attachMovie('singularity', 'singularity' + iyiff, iyiff); trgtexplos = _root.yiff.blackholes_shell['singularity' + iyiff]; trgtexplos._x = xx; trgtexplos._y = yy; trgtexplos.what = 'singularity'; _root.singularitiesArray.push(trgtlayer[name]); _root.singularitiesOnTheField = _root.singularitiesArray.length; } function blackHolesIntegrity() { if (_root.singularitiesOnTheField > 0) { } else { return undefined; } var v3 = 0; while (v3 < _root.singularitiesOnTheField) { trgtbh = _root.singularitiesArray[v3]; xxx = trgtbh._x; yyy = trgtbh._y; if (trgtbh.blackholeactive != 1) { break; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; BlackHoleEffect(trgtenm, xxx, yyy); ++v2; } if (_root.yiff.playerTank.shift_mode != 1) { BlackHoleEffect(_root.yiff.playerTank, xxx, yyy); } v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; BlackHoleEffect(checkball, xxx, yyy); ++v2; } ++v3; } } function createGravityNukesArray() { _root.gravnukesArray = []; _root.gravnukesOnTheField = 0; trgtlayer = _root.yiff.explosions_special_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'gravnuke') { _root.gravnukesArray.push(trgtlayer[v2]); } } } _root.gravnukesOnTheField = _root.gravnukesArray.length; } function spawnGravNuke(xx, yy) { iyiff = _root.yiff.explosions_special_shell.getNextHighestDepth(); _root.yiff.explosions_special_shell.attachMovie('gravity_nuke', 'explosion_' + iyiff, iyiff); trgt_expl = _root.yiff.explosions_special_shell['explosion_' + iyiff]; trgt_expl.what = 'gravnuke'; trgt_expl._x = xx; trgt_expl._y = yy; _root.gravnukesArray.push(trgt_expl); _root.gravnukesOnTheField = _root.enemiesArray.length; } function gravNukeEffect() { var v3 = 0; while (v3 < _root.gravnukesOnTheField) { checkgravnuke = _root.gravnukesArray[v3]; if (checkgravnuke.gravity_nuke_in_action eq 1) { gravity_nuke_epicenter = checkgravnuke.inner_size._width / 2; gravity_nuke_radius = checkgravnuke.outer_size._width / 2; if (_root.yiff.playerTank) { GravityNuke(_root.yiff.playerTank, checkgravnuke._x, checkgravnuke._y, gravity_nuke_epicenter, gravity_nuke_radius); } var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; GravityNuke(checkenemy, checkgravnuke._x, checkgravnuke._y, gravity_nuke_epicenter, gravity_nuke_radius); ++v2; } } ++v3; } } function GravityNuke(enemy, gravnuke_x, gravnuke_y, gravnuke_radius_small, gravnuke_radius_big) { x1 = enemy._x; y1 = enemy._y; x2 = gravnuke_x; y2 = gravnuke_y; var v5 = x1 - x2; var v7 = y1 - y2; var v8 = Math.sqrt(v5 * v5 + v7 * v7); if (v8 < gravnuke_radius_small) { enemy.dmg += random(_root.gravity_nuke_hueg_dmg); } else { if (v8 < gravnuke_radius_big) { enemy.dmg += random(_root.gravity_nuke_radius_dmg); implosion_mass = 20; Gravnuke_power = 25; implosion_suckingpower = -1.3 * Gravnuke_power + random(Gravnuke_power * 2); var v6 = enemy.mass; var v9 = implosion_mass; var v17 = enemy.xspeed; var v19 = enemy.yspeed; var v13 = Math.atan2(v7, v5); var v4 = Math.cos(v13); var v3 = Math.sin(v13); var v14 = v17 * v4 + v19 * v3; var v11 = implosion_suckingpower; var v12 = v19 * v4 - v17 * v3; var v10 = 0.0001; var v18 = v6 * v14 + v9 * v11; var v20 = v14 - v11; var v15 = (v18 + v6 * v20) / (v6 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v4 - v12 * v3; var v21 = v11 * v4 - v10 * v3; v19 = v12 * v4 + v14 * v3; var v22 = v10 * v4 + v11 * v3; enemy.xspeed = v17; enemy.yspeed = v19; } } } function doShockwave(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('shockwave', 'explosion_' + iyiff, iyiff); trshck = _root.yiff.explosions_shell['explosion_' + iyiff]; trshck._x = xx; trshck._y = yy; explosion_Effect_OnTargets(xx, yy, 6); } function doImplosion(xx, yy) { _root.yiff.attachMovie('implosion', 'implosion', _root.implosion_depth); trim = _root.yiff.implosion; trim._x = xx; trim._y = yy; } function implosionIntegrity() { trim = _root.yiff.implosion; if (trim.go != 1) { return undefined; } xx = trim._x; yy = trim._y; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; implosionEffect(checkenemy, xx, yy); ++v2; } } function MortarHit_small(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 16; ExplosionSound('medium'); explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; placeKrater(xx, yy, 'small'); } function MortarHit_big(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 18; ExplosionSound('medium'); explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._width *= 1.75; _root.yiff.explosions_shell['explosion_' + iyiff]._height *= 1.75; _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; placeKrater(xx, yy, 'big'); } function carpetBombingIntegrity() { if (_root.carpet_timer < 0 or _root.carpet_timer eq 0) { _root.carpet_shagtimer = 0; _root.carpet_timer2 = 0; return undefined; } var v2 = 0; while (v2 < 3) { _root.carpet_timer -= 5; _root.carpet_timer2 += 5; carpetShag = 1; xstart = -430; ++_root.carpet_shagtimer; if (_root.carpet_shagtimer > carpetShag) { _root.carpet_shagtimer = 0; xx = _root.carpet_timer2 - 430; yy = -205 + random(290); if (random(2) eq 1) { MortarHit_big(xx, yy); } else { MortarHit_small(xx, yy); } } ++v2; } } function doCarpetBombing() { _root.yiff.attachMovie('carpetbombingAnim', 'carpetbombingAnim', _root.planes_depth); _root.yiff.carpetbombingAnim._x = -477; _root.yiff.carpetbombingAnim._y = -175; } function doDroneSwarm(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_magnets_drop', 'explosion_' + iyiff, iyiff); power = 1; explosion_Effect_OnTargets(xx, yy, power); trgtexplio = _root.yiff.explosions_shell['explosion_' + iyiff]; trgtexplio._x = xx; trgtexplio._y = yy; trgtexplio._rotation = random(360); var v3 = 0; while (v3 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v3]; magnetball_detonation(checkmagnet); ++v3; } var v2 = 0; while (v2 < 8) { iyiff = _root.yiff.magnetballs_shell.getNextHighestDepth(); _root.yiff.magnetballs_shell.attachMovie('magnetball', 'magnetball' + v2, iyiff); trgtmgntbl = _root.yiff.magnetballs_shell['magnetball' + v2]; trgtmgntbl._x = xx; trgtmgntbl._y = yy; trgtmgntbl.lifetimer = 0; trgtmgntbl.razmagni4ivanie_timer = _root.razmagni4evanie_time; trgtmgntbl.xpos = xx; trgtmgntbl.ypos = yy; trgtmgntbl.tempx = xpos; trgtmgntbl.tempy = ypos; trgtmgntbl.mass = _root.magnetball_mass; trgtmgntbl.radius = 5; trgtmgntbl.hits = 0; trgtmgntbl.whatisit = 'magnets'; trgtmgntbl.type_ = 55; ++v2; } _root.yiff.magnetballs_shell.magnetball0.xspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball0.yspeed = -1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball1.xspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball1.yspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball2.xspeed = 1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball2.yspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball3.xspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball3.yspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball4.xspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball4.yspeed = 1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball5.xspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball5.yspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball6.xspeed = -1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball6.yspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball7.xspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball7.yspeed = -0.71 * _root.magnetball_startspeed; } function magnetball_detonation(trgt) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_magnetball', 'explosion_' + iyiff, iyiff); power = 1; explosion_Effect_OnTargets(trgt._x, trgt._y, power); thisexpl = _root.yiff.explosions_shell['explosion_' + iyiff]; thisexpl._x = trgt._x; thisexpl._y = trgt._y; removeMovieClip(trgt); } function magnet_balls_integrity() { magnet_balls_magnetism(); var v2 = 0; while (v2 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v2]; if (checkmagnet._x > 545 or checkmagnet._x < -634 or checkmagnet._y < -420 or checkmagnet._y > 385) { removeMovieClip(checkmagnet); } ++v2; } v2 = 0; while (v2 < _root.magnetsOnTheField) { trgt = _root.magnetsArray[v2]; trgt.lifetimer += 1 / (random(20) + 10); if (trgt.razmagni4ivanie_timer > 0) { trgt.razmagni4ivanie_timer -= 0.03333333333333333; } if (trgt.speed > _root.magnetball_startspeed) { trgt.xspeed *= 0.96; trgt.yspeed *= 0.96; } ++v2; } } function magnet_balls_magnetism() { var v3 = 0; while (v3 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v3]; if (checkmagnet.razmagni4ivanie_timer > 0) { } else { var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; if (checkenemy and checkmagnet) { magnetsEffect(checkmagnet, checkenemy._x, checkenemy._y); } ++v2; } } ++v3; } } function createMagnetsArray() { _root.magnetsArray = []; _root.magnetsOnTheField = 0; trgtlayer = _root.yiff.magnetballs_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].whatisit eq 'magnets') { _root.magnetsArray.push(trgtlayer[v2]); } } } _root.magnetsOnTheField = _root.magnetsArray.length; } function magnetsEffect(targ, iks, igrik) { b1lackhole_mass = 0.25; b1lackhole_power_max = -10; b1lackhole_power_min = -1; b1lackhole_radius = 700; speed_amplifier = 1.005; x1 = targ._x; y1 = targ._y; x2 = iks; y2 = igrik; var v4 = x1 - x2; var v6 = y1 - y2; var v7 = Math.sqrt(v4 * v4 + v6 * v6); if (v7 < b1lackhole_radius) { b1lackhole_power = b1lackhole_power_min + b1lackhole_power_max * b1lackhole_radius / v7; var v5 = targ.mass; var v8 = b1lackhole_mass; var v16 = targ.xspeed; var v18 = targ.yspeed; var v12 = Math.atan2(v6, v4); var v2 = Math.cos(v12); var v1 = Math.sin(v12); var v13 = v16 * v2 + v18 * v1; var v10 = b1lackhole_power; var v11 = v18 * v2 - v16 * v1; var v9 = 0.0001; var v17 = v5 * v13 + v8 * v10; var v19 = v13 - v10; var v14 = (v17 + v5 * v19) / (v5 + v8); var v15 = v14 - v13 + v10; v13 = v15; v10 = v14; v16 = v13 * v2 - v11 * v1; var v20 = v10 * v2 - v9 * v1; v18 = v11 * v2 + v13 * v1; var v21 = v9 * v2 + v10 * v1; targ.xspeed = v16; targ.yspeed = v18; } } function turretIntegrity(trgt) { trgt.xspeed = 0; trgt.yspeed = 0; trgt.speed = 0; trgt.hp_indicator.gotoAndStop(Math.floor(101 - ((trgt.hp - trgt.dmg) / trgt.hp) * 100)); if (trgt.dmg > trgt.hp) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); power = 3; _root.yiff.explosions_shell.attachMovie('explosion_big_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = trgt._x; this_explosion._y = trgt._y; this_explosion._rotation = random(360); explosion_Effect_OnTargets(trgt._x, trgt._y, power); if (trgt.id eq 4) { trgtlayer = _root.yiff.explosions_shell; for (var v3 in trgtlayer) { if (trgtlayer[v3] instanceof MovieClip) { if (trgtlayer[v3].what eq 'turret4thingy') { removeMovieClip(trgtlayer[v3]); } } } } removeMovieClip(trgt); } } function spawnTurret(xx, yy, id) { iyiff = _root.yiff.turrets_shell.getNextHighestDepth(); _root.yiff.turrets_shell.attachMovie('tower_' + id, 'turret_' + iyiff, iyiff); trgt = _root.yiff.turrets_shell['turret_' + iyiff]; trgt.what = 'turret'; trgt.id = id; trgt.depthId = iyiff; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.dmg = 0; trgt.targeted_enemy = 'none'; trgt.mass = 999999; trgt.speedmax = 0; trgt.gunlength = _root['turret_gunlength_' + id]; trgt.min_distance = _root['turret_min_distance_' + id]; trgt.radius = _root['turret_radius_' + id]; trgt.thesize = _root['enemy_thesize_' + id]; trgt.reload_time = _root['turret_reload_time_' + id]; trgt.reload_timer = 0; trgt.hp = _root['turret_hp_' + id]; _root.turretsArray.push(trgt); _root.turretsOnTheField = _root.turretsArray.length; } function createTurretsArray() { _root.turretsArray = []; _root.turretsOnTheField = 0; trgtlayer = _root.yiff.turrets_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'turret') { _root.turretsArray.push(trgtlayer[v2]); } } } _root.turretsOnTheField = _root.turretsArray.length; } function findClosestTargetToTurret(tur, min_distance, do_random) { turret_temp_targeting_array = []; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; dontaddthiusenemy = 0; if (checkenemy._x > 344 or checkenemy._x < -427) { dontaddthiusenemy = 1; } zomgyiff6561 = CALC_Dist_Xv_Yv(tur._x, tur._y, checkenemy._x, checkenemy._y); distance = zomgyiff6561[0]; if (distance < min_distance) { dontaddthiusenemy = 1; } if (dontaddthiusenemy != 1) { checkenemy.tempturdist = distance; turret_temp_targeting_array.push(checkenemy); } ++v2; } if (turret_temp_targeting_array.length eq 0) { return 'none'; } turret_temp_targeting_array.sortOn('distance', Array.NUMERIC); if (do_random != 1) { asdasdasdhh = 0; return turret_temp_targeting_array[asdasdasdhh]; } asdasdasdhh = random(Math.floor(turret_temp_targeting_array.length / 2)); return turret_temp_targeting_array[asdasdasdhh]; } function turretAttack(trgt) { turret4attack(trgt); if (!trgt) { return undefined; } if (trgt.id eq 4) { do_random = 1; } else { do_random = 0; } trgt2 = findClosestTargetToTurret(trgt, trgt.min_distance, do_random); if (!trgt2 or trgt2 eq 'none') { return undefined; } if (!trgt.yifftimerrotaata and trgt.yifftimerrotaata != 0) { trgt.yifftimerrotaata = 999999; } if (trgt.yifftimerrotaata > 1) { if (trgt.tower._currentframe eq 1 and trgt.start_loading_charge != 1) { rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, 0, 1); } trgt.yifftimerrotaata = 0; } else { trgt.yifftimerrotaata += 0.03333333333333333; } trgt.reload_timer += 0.03333333333333333; if (trgt.reload_timer > trgt.reload_time) { trgt.reload_timer = 0; if (trgt.id eq 4) { trgt.targeted_enemy = trgt2; } if (trgt.id eq 1) { if (trgt._x - trgt2._x < 0) { yiff777mod = 1; } else { yiff777mod = -1; } shotpoint_x = trgt2._x - yiff777mod * 20 - yiff777mod * random(20); shotpoint_y = trgt2._y + 15 - random(30); rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, shotpoint_x, shotpoint_y, 0); _root['turret_shot_' + trgt.id].start(); trgt.tower.play(); zomgyiff6666666 = CALC_Dist_Xv_Yv(shotpoint_x, shotpoint_y, trgt._x, trgt._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; distance = zomgyiff6666666[0]; iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('ray_1', 'ray_' + iyiff, iyiff); setX = trgt._x + trgt.gunlength * xmod11; setY = trgt._y + trgt.gunlength * ymod11; trgt_proj = _root.yiff.enemy_projectile_shell['ray_' + iyiff]; trgt_proj._x = setX; trgt_proj._y = setY; trgt_proj._width = distance - trgt.gunlength; rotation_towards_movement(trgt_proj, xmod11, ymod11); iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('turret_hit_1', 'turret_hit_' + iyiff, iyiff); trgtexpl = _root.yiff.enemy_projectile_shell['turret_hit_' + iyiff]; trgtexpl._x = shotpoint_x; trgtexpl._y = shotpoint_y; explosion_Effect_OnTargets(shotpoint_x, shotpoint_y, 301); } else { if (trgt.id eq 2) { trgt.shotpoint_x = trgt2._x; trgt.shotpoint_y = trgt2._y; trgt.tower.play(); } else { if (trgt.id eq 3) { trgt.shotpoint_x = trgt2._x; trgt.shotpoint_y = trgt2._y; trgt.tower.play(); } } } } if (trgt.id eq 2 and trgt.tower.doshot eq 1) { trgt.tower.doshot = 0; iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('turret_proj_2', 'friendly_projectile_' + iyiff, iyiff); trgtFproj = _root.yiff.enemy_projectile_shell['friendly_projectile_' + iyiff]; trgtFproj.id = 'friendlyProjectile'; trgtFproj.id_2 = 2; shotpoint_x = trgt.shotpoint_x - 30 + random(60); shotpoint_y = trgt.shotpoint_y - 30 + random(60); rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, shotpoint_x, shotpoint_y, 0); zomgyiff6666666 = CALC_Dist_Xv_Yv(shotpoint_x, shotpoint_y, trgt._x, trgt._y); trgt.xmod99 = zomgyiff6666666[1]; trgt.ymod99 = zomgyiff6666666[2]; trgt.distance99 = zomgyiff6666666[0]; trgt.x99 = trgt._x + trgt.gunlength * trgt.xmod99; trgt.y99 = trgt._y + trgt.gunlength * trgt.ymod99; speed567567575633 = 15; trgtFproj.tempx = trgt.x99; trgtFproj.tempy = trgt.y99; trgtFproj.xpos = trgt.x99; trgtFproj.ypos = trgt.y99; trgtFproj._x = trgt.x99; trgtFproj._y = trgt.y99; trgtFproj.xspeed = speed567567575633 * trgt.xmod99; trgtFproj.yspeed = speed567567575633 * trgt.ymod99; } if (trgt.id eq 3 and trgt.tower.launch eq 1) { trgt.tower.launch = 0; zomgyiff6666666 = CALC_Dist_Xv_Yv(trgt.shotpoint_x, trgt.shotpoint_y, trgt._x, trgt._y); trgt.xmod99 = zomgyiff6666666[1]; trgt.ymod99 = zomgyiff6666666[2]; iyiff = _root.yiff.magnetballs_shell.getNextHighestDepth(); _root.yiff.magnetballs_shell.attachMovie('homing_mine', 'magnetball' + iyiff, iyiff); trgtFproj = _root.yiff.magnetballs_shell['magnetball' + iyiff]; trgtFproj.mass = 50; trgtFproj.whatisit = 'magnets'; trgtFproj.type_ = 44; speed567567575633 = 8; trgtFproj.tempx = trgt._x; trgtFproj.tempy = trgt._y; trgtFproj.xpos = trgt._x; trgtFproj.ypos = trgt._y; trgtFproj._x = trgt._x; trgtFproj._y = trgt._y; trgtFproj.xspeed = speed567567575633 * trgt.xmod99; trgtFproj.yspeed = speed567567575633 * trgt.ymod99; } } function turret4attack(trgt) { if (trgt.id eq 4) { if (trgt.targeted_enemy eq 'none' or !trgt.targeted_enemy or trgt.targeted_enemy._x eq undefined or !trgt.targeted_enemy._x) { trgt_ray = _root.yiff.explosions_shell['ray_' + trgt.depthId]; trgt_glow_1 = _root.yiff.explosions_shell['glow_' + trgt.depthId]; trgt_glow_2 = _root.yiff.explosions_shell['glow_' + trgt.depthId + '_a']; removeMovieClip(trgt_ray); removeMovieClip(trgt_glow_1); removeMovieClip(trgt_glow_2); return undefined; } } if (trgt.id eq 4 and trgt.targeted_enemy != 'none' and trgt.targeted_enemy) { tr__1 = trgt; tr__2 = trgt.targeted_enemy; } else { return undefined; } zomgyiff6612 = CALC_Dist_Xv_Yv(tr__2._x, tr__2._y, tr__1._x, tr__1._y); distance2 = zomgyiff6612[0]; xmod11 = zomgyiff6612[1]; ymod11 = zomgyiff6612[2]; trgt_ray = _root.yiff.explosions_shell['ray_' + tr__1.depthId]; trgt_glow_1 = _root.yiff.explosions_shell['glow_' + tr__1.depthId]; trgt_glow_2 = _root.yiff.explosions_shell['glow_' + tr__1.depthId + '_a']; if (!trgt_ray) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ray_magnet', 'ray_' + tr__1.depthId, iyiff); } if (!trgt_glow_1) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('magnet_tower_glow', 'glow_' + tr__1.depthId, iyiff); } if (!trgt_glow_2) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('magnet_tower_glow', 'glow_' + tr__1.depthId + '_a', iyiff); } trgt_glow_1._x = tr__1._x; trgt_glow_1._y = tr__1._y; trgt_glow_1.what = 'turret4thingy'; trgt_glow_2._x = tr__2._x; trgt_glow_2._y = tr__2._y; trgt_glow_2.what = 'turret4thingy'; trgt_ray._x = tr__1._x; trgt_ray._y = tr__1._y; trgt_ray.what = 'turret4thingy'; trgt_ray._rotation = 0; trgt_ray._width = distance2; rotation_towards_movement(trgt_ray, xmod11, ymod11); checkmagnet0 = tr__2; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; if (checkenemy and checkmagnet0 and checkenemy != checkmagnet0) { magnetsEffect(checkmagnet0, checkenemy._x, checkenemy._y); } ++v2; } } function turretProjectileIntegrity(trgt) { check_x = trgt._x; check_y = trgt._y; if (check_x > 425 or check_x < -503) { removeMovieClip(trgt); return undefined; } if (trgt.id_2 eq 2) { power = 302; } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { turretShellDetonation(check_x, check_y, power); removeMovieClip(trgt); return undefined; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); distance = zomgyiff661[0]; if (distance < trgtenm.radius) { turretShellDetonation(check_x, check_y, power); removeMovieClip(trgt); return undefined; } ++v2; } } function turretShellDetonation(xx, yy, id) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (id eq 302) { _root.yiff.explosions_shell.attachMovie('turrenProjDetonation_2', 'explosion_' + iyiff, iyiff); } else { if (id eq 303) { _root.yiff.explosions_shell.attachMovie('explosion_homing_mine', 'explosion_' + iyiff, iyiff); } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = xx; this_explosion._y = yy; explosion_Effect_OnTargets(xx, yy, id); } function Enemy_movement_to_target(target) { if (target._x > 550 or target._x < -600) { removeMovieClip(target); return undefined; } if (target.speed > target.speedmax) { target.xspeed *= 0.98; target.yspeed *= 0.98; } if (target.emp_timer > 0) { target.xspeed *= 0.95; target.yspeed *= 0.95; return undefined; } if (target.id eq 3) { if (!target.targeted_friendly_unit or target.targeted_friendly_unit._x eq NaN or target.targeted_friendly_unit._x eq undefined) { target.targeted_friendly_unit = friendlyTargetsArray[random(friendlyTargetCount)]; } destination_x = target.targeted_friendly_unit._x; destination_y = target.targeted_friendly_unit._y; } else { destination_x = _root.yiff.teleporter._x; destination_y = _root.yiff.teleporter._y; } calc12312 = CALC_Dist_Xv_Yv(destination_x, destination_y, target._x, target._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; if (target.id eq 3 and distance < 120) { nukeTruckDetonation(target); return undefined; } xspd = target.xspeed; yspd = target.yspeed; xspd_nom = x_force_modifier * target.speedmax; yspd_nom = y_force_modifier * target.speedmax; xdif = Math.abs(Math.abs(xspd) - Math.abs(xspd_nom)); ydif = Math.abs(Math.abs(yspd) - Math.abs(yspd_nom)); rasstoyanie_ostanovki = _root.teleporter_start_distance; if (distance > rasstoyanie_ostanovki) { if (xspd != xspd_nom) { if (Math.abs(Math.abs(xspd) - Math.abs(xspd_nom))) { if (xspd > xspd_nom) { target.xspeed -= _root.enemy_acceleration; } else { target.xspeed += _root.enemy_acceleration; } } } if (yspd != yspd_nom) { if (Math.abs(Math.abs(yspd) - Math.abs(yspd_nom))) { if (yspd > yspd_nom) { target.yspeed -= _root.enemy_acceleration; } else { target.yspeed += _root.enemy_acceleration; } } } } if (distance < rasstoyanie_ostanovki) { target.yspeed *= 0.9; target.xspeed *= 0.9; } if (target.speed > 5 * _root.enemy_speed_1) { target.yspeed *= 0.97; target.xspeed *= 0.97; } } function PlayerTank_rotation(target) { if (!target) { return undefined; } if (target.speed > _root.speed_zakru4ivanie) { target._rotation += 20 * (target.speed / _root.speed_zakru4ivanie); return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { _rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.3; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = _rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { _rotation -= a; } else { _rotation = angle1; } } } } } function PlayerTank_rotation2(target) { if (!target) { return undefined; } if (target.speed > _root.speed_zakru4ivanie) { target._rotation += 20 * (target.speed / _root.speed_zakru4ivanie); return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { _rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.3; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = torso.core._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { torso.core._rotation -= a; } else { torso.core._rotation = angle1; } } } } } function Enemy_rotation(target) { if (!target) { return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } if (random(3) != 1) { return undefined; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { torso._rotation += 20 * (speed / _root.speed_zakru4ivanie); tower._rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.4; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = torso._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { torso._rotation -= a; tower._rotation -= a; } else { torso._rotation = angle1; tower._rotation -= a; } } } } } function enemy2enemy_ottalkivanie(trg1, trg2, dist) { if (trg1.radius > trg2.radius and trg2 != _root.yiff.playerTank) { forced_one = trg2; stronger_one = trg1; } else { forced_one = trg1; stronger_one = trg2; } if (trgt2.what eq 'turret') { forced_one = trg1; stronger_one = trg2; } if (forced_one.emp_timer > 0) { return undefined; } radius_ottalkivaniya = (trg1.radius + trg2.radius) * 1.25; if (radius_ottalkivaniya > dist) { calc12312 = CALC_Dist_Xv_Yv(stronger_one._x, stronger_one._y, forced_one._x, forced_one._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; xspd = forced_one.xspeed; yspd = forced_one.yspeed; xspd_nom = x_force_modifier * forced_one.speedmax; yspd_nom = y_force_modifier * forced_one.speedmax; xdif = Math.abs(Math.abs(xspd) - Math.abs(xspd_nom)); ydif = Math.abs(Math.abs(yspd) - Math.abs(yspd_nom)); ottalkivanie_modifier = 1.4; if (xspd != xspd_nom) { if (xspd > xspd_nom) { forced_one.xspeed += _root.enemy_acceleration * ottalkivanie_modifier; } else { forced_one.xspeed -= _root.enemy_acceleration * ottalkivanie_modifier; } } if (yspd != yspd_nom) { if (yspd > yspd_nom) { forced_one.yspeed += _root.enemy_acceleration * ottalkivanie_modifier; } else { forced_one.yspeed -= _root.enemy_acceleration * ottalkivanie_modifier; } } } } function enemy_hp_monitoring(target) { if (target.emp_timer > 0) { target.emp_timer -= 0.03333333333333333; } else { target.emp_timer = 0; } if (target.dmg > target.hp) { ++_root.stat_kills; thesize = target.thesize; ExplosionSound(thesize); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (target.what eq 'enemy_unit') { ++_root.kills; } if (thesize eq 'small') { _root.yiff.explosions_shell.attachMovie('explosion_small_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); power = 1; } else { if (thesize eq 'medium') { power = 2; _root.yiff.explosions_shell.attachMovie('explosion_medium_' + (random(3) + 1), 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'big') { power = 3; _root.yiff.explosions_shell.attachMovie('explosion_big_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'hueg') { power = 4; if (_root.yiff.playerTank eq target) { _root.yiff.explosions_shell.attachMovie('explosion_hueg_' + (random(3) + 1), 'launcherExplosion', iyiff); _root.yiff.explosions_shell.launcherExplosion._x = target._x; _root.yiff.explosions_shell.launcherExplosion._y = target._y; } else { _root.yiff.explosions_shell.attachMovie('explosion_hueg_' + (random(3) + 1), 'explosion_' + iyiff, iyiff); } } else { if (thesize eq 'special1') { power = 9; _root.yiff.explosions_shell.attachMovie('explosion_special_1', 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'special2') { power = 0; _root.yiff.explosions_shell.attachMovie('explosion_special_2', 'explosion_' + iyiff, iyiff); } else { power = 0; } } } } } } if (_root.yiff.playerTank eq target) { _root.launcher_has_died = 1; } if (thesize eq 'small' or thesize eq 'medium') { realpowerchance = Math.floor(_root.powerupDROPchance * 1.5); } else { if (thesize eq 'big' or thesize eq 'special1' or thesize eq 'special2') { realpowerchance = _root.powerupDROPchance; } else { if (thesize eq 'hueg') { realpowerchance = Math.floor(_root.powerupDROPchance / 2); } } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; if (random(realpowerchance) eq 1) { spawnPowerup(target._x, target._y); } this_explosion._x = target._x; this_explosion._y = target._y; placeKrater(target._x, target._y, thesize); this_explosion._rotation = random(360); if (power != 0) { explosion_Effect_OnTargets(target._x, target._y, power); } if (_root.mouseOverUnit eq target) { _root.mouseOverUnit = 0; } if (_root.overdrive_activated != 1) { if (mapchosen < 2000) { _root.experience += target.experience; } else { _root.experience += target.experience * 4; } } removeMovieClip(target); } } function placeKrater(xx, yy, thesize) { iyiff2 = _root.yiff.kraters_shell.getNextHighestDepth(); if (iyiff2 > _root.maxKratersOnTheField) { trgttttttt = _root.yiff.kraters_shell['krater_' + (iyiff2 - _root.maxKratersOnTheField + 1)]; removeMovieClip(trgttttttt); } if (thesize eq 'big') { _root.yiff.kraters_shell.attachMovie('krater_big_' + (random(3) + 1), 'krater_' + iyiff2, iyiff2); } else { if (thesize eq 'small' or thesize eq 'medium') { _root.yiff.kraters_shell.attachMovie('krater_small_' + (random(5) + 1), 'krater_' + iyiff2, iyiff2); } else { if (thesize eq 'nuke') { _root.yiff.kraters_shell.attachMovie('krater_nuke', 'krater_' + iyiff2, iyiff2); } else { _root.yiff.kraters_shell.attachMovie('krater_hueg_' + (random(3) + 1), 'krater_' + iyiff2, iyiff2); } } } this_krater = _root.yiff.kraters_shell['krater_' + iyiff2]; this_krater.cacheAsBitmap = true; this_krater._x = xx; this_krater._y = yy; } function enemy_zashita_ot_skleivaniya(trg1, trg2) { calc12312 = CALC_Dist_Xv_Yv(trg1._x, trg1._y, trg2._x, trg2._y); distance = calc12312[0]; r12 = trg1.radius + trg2.radius; skleivanie_dmg = 0.125; if (trg2.thisisobstacle eq 1) { trg1.dmg += 9999999999999.0; } if (distance < r12) { if (trg1.radius > trg2.radius) { trg2.dmg += skleivanie_dmg * trg2.hp; } else { if (trg2.radius > trg1.radius) { trg1.dmg += skleivanie_dmg * trg1.hp; } else { trg1.dmg += skleivanie_dmg * trg1.hp; trg2.dmg += skleivanie_dmg * trg2.hp; } } } } function showhpIntegrity() { if (_root.mouseOverUnit != 0) { if (!_root.hpbar) { _root.yiff.attachMovie('hpbar', 'hpbar', _root.hpbar_depth); } _root.yiff.hpbar._x = _root.mouseOverUnit._x; _root.yiff.hpbar._y = _root.mouseOverUnit._y; showhppercentmousover = Math.floor(100 * (_root.mouseOverUnit.hp - _root.mouseOverUnit.dmg) / _root.mouseOverUnit.hp) + 1; _root.yiff.hpbar.gotoAndStop(showhppercentmousover); } else { if (_root.yiff.hpbar) { removeMovieClip(_root.yiff.hpbar); } } if (_root.yiff.hpbar) { if (_root.yiff.hpbar._x eq 0 and _root.yiff.hpbar._y eq 0 and !_root.mouseOverUnit.hp or _root.mouseOverUnit.hp eq undefined) { _root.mouseOverUnit = 0; removeMovieClip(_root.yiff.hpbar); } } } function enemyAttack(trgt) { if (trgt._x < -430 or trgt._x > 350) { return undefined; } if (trgt.speed > 5) { trgt.tower.gotoAndStop(1); } if (trgt.speed > 5 or trgt.emp_timer > 0 or trgt.armed != 1) { return undefined; } if (!trgt.targeted_friendly_unit or trgt.targeted_friendly_unit._x eq NaN or trgt.targeted_friendly_unit._x eq undefined) { trgt2 = friendlyTargetsArray[random(friendlyTargetCount)]; trgt.targeted_friendly_unit = trgt2; } else { trgt2 = trgt.targeted_friendly_unit; } if (!trgt2) { return undefined; } if (!trgt.yifftimerrotaata and trgt.yifftimerrotaata != 0) { trgt.yifftimerrotaata = 999999; } if (trgt.yifftimerrotaata > 0.5) { if (trgt.tower._currentframe eq 1 and trgt.start_loading_charge != 1) { rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, trgt.popravka2, 1); } trgt.yifftimerrotaata = 0; } else { trgt.yifftimerrotaata += (1 + random(2)) / 30; } trgt.reload_timer += 0.03333333333333333; if (trgt.reload_timer > trgt.reload_time) { trgt.reload_timer = 0; rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, trgt.popravka2); if (trgt.id eq 1 or trgt.id eq 9 or trgt.id eq 12 or trgt.id eq 26 or trgt.id eq 30 or trgt.id eq 31 or trgt.id eq 33) { _root['enemyShotSound_' + trgt.id](); trgt.tower.play(); iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('enemy_projectile_' + trgt.id, 'enemy_projectile_' + iyiff, iyiff); setX = trgt._x + trgt.gunlength * _root.tempwar_xmod; setY = trgt._y + trgt.gunlength * _root.tempwar_ymod; trgt_proj = _root.yiff.enemy_projectile_shell['enemy_projectile_' + iyiff]; trgt_proj._x = setX; trgt_proj._y = setY; trgt_proj.id_2 = trgt.id; enemy_projectile_1_speed = 15; trgt_proj.xspeed = enemy_projectile_1_speed * _root.tempwar_xmod; trgt_proj.yspeed = enemy_projectile_1_speed * _root.tempwar_ymod; trgt_proj.xpos = setX; trgt_proj.ypos = setY; trgt_proj.id = 'enemy_projectile'; trgt_proj.tempx = xpos; trgt_proj.tempy = ypos; } else { if (trgt.id eq 2) { trgt.capture_x = trgt2._x - 10 + random(20); trgt.capture_y = trgt2._y - 10 + random(20); trgt.start_loading_charge = 1; trgt.loading_charge_timer = 0; } } } if (trgt.start_loading_charge eq 1) { trgt.loading_charge_timer += 0.03333333333333333; if (trgt.loading_charge_timer > trgt.loading_charge_time) { trgt.start_loading_charge = o; trgt.loading_charge_timer = 0; trgt.xspeed *= 0.1; trgt.yspeed *= 0.1; rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt.capture_x, trgt.capture_y, trgt.popravka2); _root['enemyShotSound_' + trgt.id](); trgt.tower.play(); Enemy2hitGround(trgt.capture_x, trgt.capture_y); } } } function Enemy2hitGround(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 203; explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._width *= 1.55; _root.yiff.explosions_shell['explosion_' + iyiff]._height *= 1.55; _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } function enemyProjectileIntegrity(trgt) { check_x = trgt._x; check_y = trgt._y; if (check_x > 425 or check_x < -503) { removeMovieClip(trgt); return undefined; } if (trgt.id_2 eq 1) { power = 202; } else { if (trgt.id_2 eq 9) { power = 204; } else { if (trgt.id_2 eq 12) { power = 205; } else { if (trgt.id_2 eq 26) { power = 206; } else { if (trgt.id_2 eq 30) { power = 207; } else { if (trgt.id_2 eq 31) { power = 208; } else { if (trgt.id_2 eq 33) { power = 209; } } } } } } } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { tankShellDetonation(check_x, check_y, power); _root.bullet_hit_1.start(); removeMovieClip(trgt); return undefined; } var v2 = 0; while (v2 < _root.friendlyTargetCount) { trgtenm = _root.friendlyTargetsArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); distance = zomgyiff661[0]; if (distance < trgtenm.radius) { tankShellDetonation(check_x, check_y, power); _root.bullet_hit_1.start(); removeMovieClip(trgt); return undefined; } ++v2; } } function createEnemyUnit(xx, yy, id) { iyiff = _root.yiff.enemies_shell.getNextHighestDepth(); _root.yiff.enemies_shell.attachMovie('enemy_' + id, 'enemy_' + iyiff, iyiff); trgt = _root.yiff.enemies_shell['enemy_' + iyiff]; trgt.what = 'enemy_unit'; trgt.id = id; trgt.emp_timer = 0; trgt.btn.this_ = trgt; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.dmg = 0; trgt.experience = _root['enemy_exp_' + id]; trgt.armed = _root['enemy_armed_' + id]; trgt.mass = _root['enemy_mass_' + id]; trgt.speedmax = _root['enemy_speedmax_' + id]; trgt.radius = _root['enemy_radius_' + id]; trgt.thesize = _root['enemy_thesize_' + id]; trgt.gunlength = _root['enemy_gunlength_' + id]; trgt.reload_time = _root['enemy_reload_time_' + id]; trgt.reload_timer = random(trgt.reload_time + 1); if (trgt.thesize eq 'small' or trgt.thesize eq 'medium') { hpk = 30; } else { if (trgt.thesize eq 'big') { hpk = 25; } else { if (trgt.thesize eq 'hueg') { hpk = 23; } else { if (trgt.thesize eq 'special1' or trgt.thesize eq 'special2') { hpk = 33; } else { hpk = 30; } } } } trgt.hp = trgt.mass * hpk; trgt.loading_charge_time = _root['enemy_loading_charge_time_' + id]; trgt.popravka1 = _root['enemy_popravka1_' + id]; trgt.popravka2 = _root['enemy_popravka2_' + id]; _root.enemiesArray.push(trgt); _root.enemiesOnTheField = _root.enemiesArray.length; } function createEnemiesArray() { _root.enemiesArray = []; _root.enemiesOnTheField = 0; trgtlayer = _root.yiff.enemies_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'enemy_unit') { _root.enemiesArray.push(trgtlayer[v2]); } } } _root.enemiesOnTheField = _root.enemiesArray.length; } function respawnEnemyUnit(id, respawnWHere) { if (_root.enemies_max < _root.enemiesOnTheField or _root.enemies_max eq _root.enemiesOnTheField) { return undefined; } var v3 = 1; while (v3 < 5) { if (respawnWHere eq 'left') { xxxxxx66767 = -580; } else { xxxxxx66767 = 480; } xx = xxxxxx66767 + random(20); yy = -215 + random(350); coordinates_failed = 0; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; calc22312 = CALC_Dist_Xv_Yv(xx, yy, checkenemy._x, checkenemy._y); distance = calc22312[0]; rad1 = checkenemy.radius; rad2 = _root['enemy_radius_' + id]; radsum = 1.1 * (rad1 + rad2); if (distance < radsum) { coordinates_failed = 1; break; } ++v2; } if (coordinates_failed eq 0) { break; } ++v3; } if (coordinates_failed eq 1) { return undefined; } createEnemyUnit(xx, yy, id); } function escapeThroughTeleporter() { _root.yiff.destination = _root.yiff.teleporter; if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; if (trgt) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; if (trgt and trgt.speed < 1) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; if (distance < _root.teleporter_start_distance * 1.2) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found eq 0) { var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgt = _root.enemiesArray[v2]; trgt2 = _root.yiff.destination; if (trgt and trgt.speed < 1) { calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; if (distance < _root.teleporter_start_distance * 1.2) { _root.teleport_target_found = trgt; break; } else { _root.teleport_target_found = 0; } } ++v2; } } v2 = 0; while (v2 < _root.enemiesOnTheField) { trgt = _root.enemiesArray[v2]; if (trgt) { if (trgt != _root.teleport_target_found) { trgt.teleporter_timer = 0; } } ++v2; } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt.teleporter_timer += 0.03333333333333333; if (trgt.teleporter_timer > _root.teleporter_done_time) { if (_root.mouseOverUnit eq trgt) { _root.mouseOverUnit = 0; } ++_root.escaped; removeMovieClip(trgt); _root.teleport_target_found = 0; } } if (_root.teleport_target_found eq 0) { removeMovieClip(_root.yiff.rezinka_blue); removeMovieClip(_root.yiff.warping_unit); } else { if (_root.yiff.rezinka_blue) { } else { _root.yiff.attachMovie('warping_unit', 'warping_unit', _root.warping_unit_depth); _root.yiff.attachMovie('rezinka_blue', 'rezinka_blue', _root.rezinka_blue_depth); } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; trgt3 = _root.yiff.rezinka_blue; trgt3._x = trgt2._x; trgt3._y = trgt2._y; _root.yiff.warping_unit._x = trgt._x; _root.yiff.warping_unit._y = trgt._y; calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; dx = calc12312[3]; dy = calc12312[4]; angle = Math.atan(dy / dx); if (trgt2._x < trgt._x) { angle -= Math.PI; } angle *= 57.29577951308232; angle -= 180; trgt3._rotation = 0; trgt3._width = distance; trgt3._rotation = angle; } } function nukeTruckDetonation(target) { xx = target._x; yy = target._y; removeMovieClip(target); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); ++_root.stat_nukes; _root.yiff.explosions_shell.attachMovie('explosion_nuke', 'explosion_' + iyiff, iyiff); power = 10; explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } function createFriendlyTargetsArray() { friendlyTargetsArray = []; friendlyTargetCount = 0; if (_root.yiff.playerTank.shift_mode != 1) { friendlyTargetsArray.push(_root.yiff.playerTank); } trgtlayer = _root.yiff.turrets_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'turret') { friendlyTargetsArray.push(trgtlayer[v2]); } } } friendlyTargetCount = friendlyTargetsArray.length; } function tankShellDetonation(xx, yy, id) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (id eq 1) { _root.yiff.explosions_shell.attachMovie('explosion_shell_' + (random(2) + 1), 'explosion_' + iyiff, iyiff); power = 101; } else { if (id eq 2) { _root.yiff.explosions_shell.attachMovie('explosion_shell_3', 'explosion_' + iyiff, iyiff); power = 102; } else { if (id eq 3) { _root.yiff.explosions_shell.attachMovie('explosion_emp_' + (random(2) + 1), 'explosion_' + iyiff, iyiff); power = 103; } else { if (id eq 4) { _root.yiff.explosions_shell.attachMovie('explosion_nuke_emp', 'explosion_' + iyiff, iyiff); power = 104; } else { if (id eq 202) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_1', 'explosion_' + iyiff, iyiff); power = 202; } else { if (id eq 204) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_9', 'explosion_' + iyiff, iyiff); power = 204; } else { if (id eq 205) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_12', 'explosion_' + iyiff, iyiff); power = 205; } else { if (id eq 206) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_26', 'explosion_' + iyiff, iyiff); power = 206; } else { if (id eq 207) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_30', 'explosion_' + iyiff, iyiff); power = 207; } else { if (id eq 208) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_31', 'explosion_' + iyiff, iyiff); power = 208; } else { if (id eq 209) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_33', 'explosion_' + iyiff, iyiff); power = 209; } } } } } } } } } } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = xx; this_explosion._y = yy; if (power != 0) { explosion_Effect_OnTargets(xx, yy, power); } } function kursorIntegrity() { if (_root._ymouse > 520) { _root.kursorisinmenu = 1; } else { _root.kursorisinmenu = 0; } if (!mousehideyifftimer) { mousehideyifftimer = 999999999; } mousehideyifftimer += 0.03333333333333333; if (mousehideyifftimer > 1) { mousehideyifftimer = 0; Mouse.hide(); } _root.kursor._x = _root._xmouse; _root.kursor._y = _root._ymouse; if (_root.kursorisinmenu eq 1) { _root.kursor.gotoAndStop(1); return undefined; } if (_root.yiff_paused eq 1) { _root.kursor.gotoAndStop(1); if (_root.cursor_wpn_selected != 0) { _root.kursor.gotoAndStop(_root.cursor_wpn_selected + 10); } return undefined; } if (_root.yiff.playerTank.what eq 'GravityLauncher') { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { wedonthaveachosenball = 1; } else { wedonthaveachosenball = 0; } if (_root.greenballsOnTHeFIeld > 0 or wedonthaveachosenball eq 0) { if (mouse_is_down eq 0 or !mouse_is_down) { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(1); } else { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { _root.kursor.gotoAndStop(4); } else { _root.kursor.gotoAndStop(5); } } } else { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(2); } } if (_root['projectile_encost_' + _root.ammo_chosen] > _root.yiff.playerTank.energy and chosenball eq 'none') { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(2); _root.kursor.aaa.low_energy._visible = true; _root.kursor.aaa.low_energy.play(); } if (_root.yiff.playerTank.shift_mode eq 1 or _root.mouse_over_powerup eq 1 or _root.game_on_hold eq 1 or _root.WorldMap) { _root.kursor.gotoAndStop(1); } if (_root.game_functions_activated eq 0) { _root.kursor.gotoAndStop(1); } } function BTN_specialweaponssummon() { if (_root.missionFInished_menu or _root.missionFailed_menu) { return undefined; } if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } if (_root.pause_menu) { BTN_spawn_wpnmenu(); return undefined; } if (_root.wpn_menu) { BTN_cancelClose_wpnmenu(); return undefined; } if (mouse_is_down != 0) { return undefined; } if (_root.yiff_paused != 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } BTN_spawn_wpnmenu(); } function BTN_spawn_wpnmenu() { if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } removeMovieClip(_root.pause_menu); _root.attachMovie('wpn_menu', 'wpn_menu', _root.pause_menu_depth); _root.wpn_menu._x = 150; _root.wpn_menu._y = 260; } function BTN_cancelClose_wpnmenu() { if (_root.game_on_hold eq 1) { return undefined; } _root.cursor_wpn_selected = 0; yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); removeMovieClip(_root.wpn_menu); spawn_pause_menu(); FUnkciyaKotorayaNaKnopkeDlaProbela(); } function BTN_initiate_wpnmenu() { if (_root.game_on_hold eq 1) { return undefined; } removeMovieClip(_root.wpn_menu); removeMovieClip(_root.pause_menu); FUnkciyaKotorayaNaKnopkeDlaProbela(); } function BTN_wpn_select(id) { if (id != 0) { _root.cursor_wpn_selected = id; trace(_root.cursor_wpn_selected); _root.wpn_menu._visible = false; } else { spawnMarker(id); } } function spawnMarker(id) { tttrrgt = _root.yiff.markers_shell['marker' + id]; removeMovieClip(tttrrgt); iyiff = _root.yiff.markers_shell.getNextHighestDepth(); _root.yiff.markers_shell.attachMovie('marker_' + id, 'marker' + id, iyiff); tttrrgt = _root.yiff.markers_shell['marker' + id]; tttrrgt.id = id; if (id eq 0) { tttrrgt._x = -35; tttrrgt._y = -55; } else { tttrrgt._x = _root.yiff._xmouse; tttrrgt._y = _root.yiff._ymouse; } trace(_root.yiff._xmouse + ' ' + tttrrgt._x); _root.wpn_menu._visible = true; } function markersIntegrity() { trgtlayer = _root.yiff.markers_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { ttgt = trgtlayer[v2]; if (ttgt.id eq 1) { doShockwave(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 2) { doImplosion(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 3) { _root['wpn_reloading_timer_' + ttgt.id] = 0; nukeTruckDetonation(ttgt); } else { if (ttgt.id eq 4) { doDroneSwarm(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 5) { activateBlackhole(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } } } } } if (ttgt.id eq 0) { _root['wpn_reloading_timer_' + ttgt.id] = 0; doCarpetBombing(); } } } yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); } function spclWpnMenuIntegrity() { if (!_root.wpn_menu) { return undefined; } if (_root.wpn_menu.dragged eq 1) { _root.wpn_menu._x = _root._xmouse - _root.wpn_menu.xdif; _root.wpn_menu._y = _root._ymouse - _root.wpn_menu.ydif; } var v2 = 0; while (v2 < 6) { trg = _root.wpn_menu['wpn_slctr_' + v2]; if (_root['wpn_available_' + v2] != 1) { trg.gotoAndStop(1); } else { if (_root['wpn_loaded_' + v2] eq 0) { trg.gotoAndStop(2); trg.ind.aaa.gotoAndStop(_root['wpn_reload_percent_' + v2]); trg.showtime = 'Reloading: ' + _root['wpn_reloadtime_show_' + v2] + ' seconds.'; } else { trg.gotoAndStop(3); } trg.activated.id = v2; if (_root['marker_count_' + v2] eq 1) { trg.activated.gotoAndStop(2); } else { trg.activated.gotoAndStop(1); } } ++v2; } if (_root.markersonthefield > 0) { _root.wpn_menu.initiatye.gotoAndStop(2); } else { _root.wpn_menu.initiatye.gotoAndStop(1); } _root.marker_count_0 = 0; _root.marker_count_1 = 0; _root.marker_count_2 = 0; _root.marker_count_3 = 0; _root.marker_count_4 = 0; _root.marker_count_5 = 0; trgtlayer = _root.yiff.markers_shell; for (var v3 in trgtlayer) { if (trgtlayer[v3] instanceof MovieClip) { ttgt = trgtlayer[v3]; if (ttgt.id > -991) { _root['marker_count_' + ttgt.id] = 1; } } } _root.markersonthefield = _root.marker_count_0 + _root.marker_count_1 + _root.marker_count_2 + _root.marker_count_3 + _root.marker_count_4 + _root.marker_count_5; } function BTN_cancellWeapon(id) { trgtlayer = _root.yiff.markers_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { ttgt = trgtlayer[v2]; if (ttgt.id eq id) { removeMovieClip(ttgt); } } } } function wpnTimersIntegrity() { var v2 = 0; while (v2 < 6) { if (_root['wpn_available_' + v2] eq 1) { _root['wpn_reloading_timer_' + v2] += 0.03333333333333333; _root['wpn_reloadtime_show_' + v2] = Math.floor(_root['wpn_reloading_time_' + v2] - _root['wpn_reloading_timer_' + v2]); _root['wpn_reload_percent_' + v2] = Math.floor((_root['wpn_reloading_timer_' + v2] / _root['wpn_reloading_time_' + v2]) * 100) + 1; if (_root['wpn_reloadtime_show_' + v2] eq 0) { _root['wpn_reloadtime_show_' + v2] = '<1'; } } else { _root['wpn_reloading_timer_' + v2] = 0; } if (_root['wpn_reloading_timer_' + v2] > _root['wpn_reloading_time_' + v2]) { if (_root['wpn_loaded_' + v2] eq 0) { spawnWpnReadyIndicator(v2); _root['wpn_loaded_' + v2] = 1; } } else { _root['wpn_loaded_' + v2] = 0; } ++v2; } } function spawnWpnReadyIndicator(id) { if (id eq 0) { xx = 88; yy = 120; } else { if (id eq 1) { xx = 84; yy = 147; } else { if (id eq 2) { xx = 84; yy = 1174; } else { if (id eq 3) { xx = 107; yy = 200; } else { if (id eq 4) { xx = 93; yy = 226; } else { if (id eq 5) { xx = 118; yy = 252; } } } } } } _root.attachMovie('wpnready_' + id, 'wpnready_' + id, _root.wpn_ready_ind_depth + id); _root['wpnready_' + id]._x = xx; _root['wpnready_' + id]._y = yy; } function saveLoadAbilityLayout(dowhat) { this.saveslot2002 = SharedObject.getLocal('yiffLayoutSave'); if (dowhat eq 'load') { varlocation1111 = this.saveslot2002.data; if (varlocation1111.saved != 1) { return undefined; } } if (dowhat eq 'save') { varlocation1 = this.saveslot2002.data; varlocation2 = _root; varlocation1.saved = 1; } else { if (dowhat eq 'load') { varlocation2 = this.saveslot2002.data; varlocation1 = _root; } else { return undefined; } } varlocation1.skill_points = varlocation2.skill_points; varlocation1.energy_upgrade = varlocation2.energy_upgrade; varlocation1.shield_upgrade = varlocation2.shield_upgrade; varlocation1.proj_upgrade_general = varlocation2.proj_upgrade_general; varlocation1.proj_upgrade_1 = varlocation2.proj_upgrade_1; varlocation1.proj_upgrade_2 = varlocation2.proj_upgrade_2; varlocation1.proj_upgrade_3 = varlocation2.proj_upgrade_3; varlocation1.proj_upgrade_4 = varlocation2.proj_upgrade_4; varlocation1.proj_upgrade_5 = varlocation2.proj_upgrade_5; varlocation1.proj_upgrade_6 = varlocation2.proj_upgrade_6; varlocation1.projPlus1Upgrade = varlocation2.projPlus1Upgrade; varlocation1.projCatcherUpgrade = varlocation2.projCatcherUpgrade; varlocation1.speedUpgrade1 = varlocation2.speedUpgrade1; varlocation1.ballActivationUpgrade = varlocation2.ballActivationUpgrade; varlocation1.speedUpgrade2 = varlocation2.speedUpgrade2; varlocation1.advShieldUpgrade = varlocation2.advShieldUpgrade; varlocation1.zeroConduit = varlocation2.zeroConduit; varlocation1.timeUpgrade = varlocation2.timeUpgrade; varlocation1.projPlus2Upgrade = varlocation2.projPlus2Upgrade; } function BTN_UpgradesMenu() { if (_root.missionFInished_menu or _root.missionFailed_menu) { return undefined; } if (_root.upgrades_menu) { if (_root.game_on_hold eq 1) { removeMovieClip(_root.upgrades_menu); _root.attachMovie('objectivesMenu', 'objectivesMenu', _root.objectives_menu_depth); _root.objectivesMenu._x = 400; _root.objectivesMenu._y = 320; _root.objectivesMenu.gotoAndStop(_root.mapchosen); return undefined; } else { removeMovieClip(_root.upgrades_menu); FUnkciyaKotorayaNaKnopkeDlaProbela(); return undefined; } } if (mouse_is_down != 0) { return undefined; } if (_root.wpn_menu) { removeMovieClip(_root.wpn_menu); } else { if (_root.yiff_paused != 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } } spawnUpgradesMenu(); } function spawnUpgradesMenu() { if (_root.teleporter_tutorial) { return undefined; } removeMovieClip(_root.pause_menu); removeMovieClip(_root.objectivesMenu); _root.attachMovie('upgrades_menu', 'upgrades_menu', _root.pause_menu_depth); _root.upgrades_menu._x = 160; _root.upgrades_menu._y = 300; } function upgradesMenuIntegrity() { if (!_root.upgrades_menu) { return undefined; } var v2 = 1; while (v2 < 25) { _root['upgr_hittest_' + v2] = _root.upgrades_menu['hitzone_' + v2].hitTest(_root._xmouse, _root._ymouse, true); ++v2; } _root.upgrades_menu.description.gotoAndStop(1); v2 = 1; while (v2 < 25) { if (_root['upgr_hittest_' + v2] eq 'true') { _root.upgrades_menu.description.gotoAndStop(v2 + 1); } ++v2; } _root.upgrades_menu.skillshowshell.show_skill = 'Level: ' + _root.lvl + ' Skill points: ' + _root.skill_points; _root.upgrades_menu.description.show_enupgr_lvl = 'Upgrade level: ' + _root.energy_upgrade; _root.upgrades_menu.description.show_maxenergy = 'Max energy: ' + _root.launcher_energy_max; _root.upgrades_menu.description.show_enregen = 'Energy regeneration: ' + _root.energy_regen_rate_percent + '%'; _root.upgrades_menu.description.show_shldupgr_lvl = 'Upgrade level: ' + _root.shield_upgrade; _root.upgrades_menu.description.show_maxdhld = 'Max shield: ' + _root.launcher_shield_max; _root.upgrades_menu.description.show_shldregen = 'Shield regeneration: ' + _root.shld_regen_rate_percent + '%'; v2 = 1; while (v2 < 7) { _root.upgrades_menu.description['show_lvl_pr_' + v2] = 'Upgrade level: ' + _root['proj_upgrade_' + v2]; _root.upgrades_menu.description['show_dmg_pr_' + v2] = 'Damage: ' + _root['balldmg_base_' + v2] + '-' + _root['balldmg_plus_' + v2]; _root.upgrades_menu.description['show_spd_pr_' + v2] = 'Speed factor: ' + _root['projectile_speed_' + v2]; _root.upgrades_menu.description['show_mass_pr_' + v2] = 'Mass factor: ' + _root['projectile_mass_' + v2]; _root.upgrades_menu.description['show_life_pr_' + v2] = 'Stability time: ' + _root['projectile_lifetime_' + v2] + ' sec'; _root.upgrades_menu.description['show_enrg_pr_' + v2] = 'Energy cost: ' + _root['projectile_encost_' + v2]; _root.upgrades_menu.description['show_rech_pr_' + v2] = 'Recharge time: ' + _root['ballProjectile_reloading_time_' + v2] + ' seconds.'; ++v2; } v2 = 1; while (v2 < 6) { _root.upgrades_menu['ball_upgr_' + v2].gotoAndStop(_root['ballProjectile_available_' + v2] + 1); ++v2; } if (_root.projPlus1Upgrade < _root.projPlus1Upgrade_max) { toactivateposdfsdf = _root.projPlus1Upgrade_max - _root.projPlus1Upgrade; _root.upgrades_menu.description.projplus1_show1 = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projplus1_show1 = 'Status: ACTIVE'; } if (_root.projCatcherUpgrade < _root.projCatcherUpgrade_max) { toactivateposdfsdf = _root.projCatcherUpgrade_max - _root.projCatcherUpgrade; _root.upgrades_menu.description.projcatch_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projcatch_show = 'Status: ACTIVE'; } if (_root.speedUpgrade1 < _root.speedUpgrade1_max) { toactivateposdfsdf = _root.speedUpgrade1_max - _root.speedUpgrade1; _root.upgrades_menu.description.mobil1_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.mobil1_show = 'Status: ACTIVE'; } if (_root.advShieldUpgrade < _root.advShieldUpgrade_max) { toactivateposdfsdf = _root.advShieldUpgrade_max - _root.advShieldUpgrade; _root.upgrades_menu.description.shield2_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.shield2_show = 'Status: ACTIVE'; } if (_root.speedUpgrade2 < _root.speedUpgrade2_max) { toactivateposdfsdf = _root.speedUpgrade2_max - _root.speedUpgrade2; _root.upgrades_menu.description.spd2_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.spd2_show = 'Status: ACTIVE'; } if (_root.ballActivationUpgrade < _root.ballActivationUpgrade_max) { toactivateposdfsdf = _root.ballActivationUpgrade_max - _root.ballActivationUpgrade; _root.upgrades_menu.description.inact_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.inact_show = 'Status: ACTIVE'; } if (_root.zeroConduit < _root.zeroConduit_max) { toactivateposdfsdf = _root.zeroConduit_max - _root.zeroConduit; _root.upgrades_menu.description.conduit_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.conduit_show = 'Status: ACTIVE'; } if (_root.timeUpgrade < _root.timeUpgrade_max) { toactivateposdfsdf = _root.timeUpgrade_max - _root.timeUpgrade; _root.upgrades_menu.description.timerboost_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.timerboost_show = 'Status: ACTIVE'; } if (_root.projPlus2Upgrade < _root.projPlus2Upgrade_max) { toactivateposdfsdf = _root.projPlus2Upgrade_max - _root.projPlus2Upgrade; _root.upgrades_menu.description.projplus2_show1 = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projplus2_show1 = 'Status: ACTIVE'; } } function spawn_pause_menu() { if (_root.game_on_hold eq 1) { return undefined; } _root.attachMovie('pause_menu', 'pause_menu', _root.pause_menu_depth); _root.pause_menu._x = 75; _root.pause_menu._y = 252; } function ballProjectileMenuIntegrity() { var v2 = 2; while (v2 < 7) { trgt = _root.ingame_menu['ballSelector_' + v2]; if (_root['ballProjectile_available_' + v2] != 1) { trgt.gotoAndStop(1); } else { if (_root['ballProjectile_loaded_' + v2] eq 1) { trgt.gotoAndStop(3); } else { trgt.ind.aaa.gotoAndStop(_root['ballProjectile_percent_' + v2]); trgt.gotoAndStop(2); } } if (_root.ammo_chosen eq v2) { trgt.gotoAndStop(4); } ++v2; } } function ballProjectileTimerz() { var v2 = 2; while (v2 < 7) { if (_root['ballProjectile_available_' + v2] eq 1) { if (_root.overdrive_activated eq 1) { _root['ballProjectile_reloading_timer_' + v2] += 0.03333333333333333 * _root.overdriveAmmoRechargeSPEEDUP; } else { _root['ballProjectile_reloading_timer_' + v2] += 0.03333333333333333; } _root['ballProjectile_percent_' + v2] = Math.floor((_root['ballProjectile_reloading_timer_' + v2] / _root['ballProjectile_reloading_time_' + v2]) * 100) + 1; } else { _root['ballProjectile_reloading_timer_' + v2] = 0; } if (_root['ballProjectile_reloading_timer_' + v2] > _root['ballProjectile_reloading_time_' + v2]) { _root['ballProjectile_loaded_' + v2] = 1; } else { _root['ballProjectile_loaded_' + v2] = 0; } ++v2; } } function indicatorsIntegrity() { trgt = _root.yiff.playerTank; trgt2 = _root.ingame_menu; if (_root.lvl eq 1) { cur_zero = 0; } else { cur_zero = _root['expmax_' + (_root.lvl - 1)]; } curexpmax = _root['expmax_' + _root.lvl]; cur_max = curexpmax - cur_zero; cur_exp = _root.experience - cur_zero; exp_percent = Math.floor(100 * cur_exp / cur_max); if (exp_percent < 1) { exp_percent = 1; } else { if (exp_percent > 100) { exp_percent = 100; } } trgt2.expind.ind.gotoAndStop(exp_percent); hppercent = Math.floor(((trgt.hp - trgt.dmg) / trgt.hp) * 100) + 1; if (!trgt or hppercent eq undefined or hppercent eq 'NaN') { hppercent = 1; } trgt2.hp_indicator.gotoAndStop(hppercent); enpercent = Math.floor((trgt.energy / trgt.energymax) * 100) + 1; if (!trgt or enpercent eq undefined or enpercent eq 'NaN') { enpercent = 1; } trgt2.en_indicator.gotoAndStop(enpercent); current_encost = _root['projectile_encost_' + _root.ammo_chosen]; current_encost_percent = Math.floor(100 * current_encost / _root.launcher_energy_max); if (current_encost_percent > 100) { current_encost_percent = 100; } else { if (current_encost_percent < 4) { current_encost_percent = 4; } } trgt2.en_indicator.cost_ind.gotoAndStop(current_encost_percent); if (_root.dimensionalSHift_delayTimer > 0) { trgt2.btn_dimshift.gotoAndStop(2); trgt2.btn_dimshift.ind.aaa.gotoAndStop(timeshiftdelaypercent); } else { trgt2.btn_dimshift.gotoAndStop(3); } if (_root.dimshift_available != 1) { trgt2.btn_dimshift.gotoAndStop(1); } if (_root.overdrive_delayTimer > 0) { trgt2.btn_overdrv.gotoAndStop(2); trgt2.btn_overdrv.ind.aaa.gotoAndStop(overdrivedelaypercent); } else { trgt2.btn_overdrv.gotoAndStop(3); } if (_root.overdrive_available != 1) { trgt2.btn_overdrv.gotoAndStop(1); } } function otherTimers() { if (_root.dimensionalSHift_delayTimer > 0) { _root.dimensionalSHift_delayTimer -= 0.03333333333333333; timeshiftdelaypercent = Math.floor(100 * (_root.dimensionalSHift_delay - _root.dimensionalSHift_delayTimer) / _root.dimensionalSHift_delay) + 1; } else { _root.dimensionalSHift_delayTimer = 0; } if (_root.overdrive_delayTimer > 0) { _root.overdrive_delayTimer -= 0.03333333333333333; overdrivedelaypercent = Math.floor(100 * (_root.overdrive_delay - _root.overdrive_delayTimer) / _root.overdrive_delay) + 1; } else { _root.overdrive_delayTimer = 0; } } function upperPannel_integrity() { if (timer55tervdfgdg > -9999999) { } else { timer55tervdfgdg = 999999; } timer55tervdfgdg += 0.03333333333333333; if (timer55tervdfgdg > 1) { timer55tervdfgdg = 0; if (_root.game_on_hold eq 1) { upperPannel.show_time = 'Time: --'; upperPannel.show_kills = 'Kills: --'; upperPannel.show_escaped = 'Escaped: --'; } else { upperPannel.show_kills = 'Kills: ' + _root.kills; if (_root.mapchosen < 2000) { upperPannel.show_time = 'Time: ' + Math.floor(_root.timelength - _root.timer); } else { upperPannel.show_time = 'Time: ' + Math.floor(_root.timer); } if (_root.escaped_max > 0) { upperPannel.show_escaped = 'Escaped: ' + _root.escaped + '/' + _root.escaped_max; } else { upperPannel.show_escaped = 'Escaped: ' + _root.escaped; } } if (mapchosen != 2002) { upperPannel.show_lvl = 'Lvl: ' + _root.lvl + ' Exp: ' + _root.experience + '/' + (_root['expmax_' + _root.lvl] + 1); } else { upperPannel.show_lvl = 'Lvl: MAX'; } } } function showLVLup() { _root.attachMovie('lvlup_indicator', 'lvlup_indicator', _root.lvlupind_depth); _root.lvlup_indicator._x = 600; _root.lvlup_indicator._y = 40; } function spawn_ObjectivesMenu() { _root.attachMovie('objectivesMenu', 'objectivesMenu', _root.objectives_menu_depth); _root.objectivesMenu._x = 400; _root.objectivesMenu._y = 320; _root.objectivesMenu.gotoAndStop(_root.mapchosen); _root.yiff.playerTank.torso.krutilka.stop(); FUnkciyaKotorayaNaKnopkeDlaProbela(); _root.game_on_hold = 1; removeMovieClip(_root.pause_menu); } function spawnWorldMap() { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.attachMovie('WorldMap', 'WorldMap', _root.WorldMap_depth); _root.WorldMap._x = 400; _root.WorldMap._y = 300; } function wordlmapIntegrity() { if (!_root.WorldMap) { _root.mouse_over_marker = 0; if (_root.missionDescription) { removeMovieClip(_root.missionDescription); } return undefined; } forcesprogresscount = 1; var v2 = 1; while (v2 < 40) { if (_root['map_status_' + v2] eq 2) { ++forcesprogresscount; } ++v2; } _root.WorldMap.forcesDislocation.gotoAndStop(forcesprogresscount); if (_root.map_status_1 != 2) { _root.WorldMap.forcesDislocation.gotoAndStop(1); } v2 = 1; while (v2 < 40) { _root.WorldMap['marker_' + v2].gotoAndStop(_root['map_status_' + v2] + 1); _root.WorldMap['marker_' + v2].btn_shell.id = v2; ++v2; } v2 = 1000; while (v2 < 1010) { _root.WorldMap['marker_' + v2].gotoAndStop(_root['map_status_' + v2] + 1); _root.WorldMap['marker_' + v2].btn_shell.id = v2; ++v2; } if (_root.mouse_over_marker > 0) { if (_root.mouse_over_marker < 500) { if (!_root.missionDescription) { _root.attachMovie('missionDescription', 'missionDescription', _root.WorldMap_depth + 2); } } else { if (!_root.missionDescription) { _root.attachMovie('missionDescription_' + _root.mouse_over_marker, 'missionDescription', _root.WorldMap_depth + 2); } } _root.missionDescription._x = _xmouse + 100; _root.missionDescription._y = _ymouse + 60; _root.missionDescription.show_mission = 'Mission ' + _root.mouse_over_marker; _root.missionDescription.show_rank = 'Rank: ' + _root['mission_rank_' + _root.mouse_over_marker]; _root.missionDescription.show_duration = 'Duration: ' + _root['mission_length_' + _root.mouse_over_marker]; } else { removeMovieClip(_root.missionDescription); } } function BTN_markerClick(id) { _root.worldmap_loop.stop(); removeMovieClip(_root.WorldMap); _root.mapchosen = id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function endMissionCalculation() { if (!_root.missionFInished_menu and !_root.missionFailed_menu) { doMissionCalculation = 0; } if (_root.missionFInished_menu) { trgtmnshka = _root.missionFInished_menu; } else { trgtmnshka = _root.missionFailed_menu; } if (trgtmnshka.text_enkill._visible != true) { trgtmnshka.show_kills = 0; trgtmnshka.text_enkill._visible = true; } if (trgtmnshka.text_enkill._visible eq true and trgtmnshka.show_kills < _root.stat_kills) { trgtmnshka.show_kills += 1; trgtmnshka.show_kills2 = Math.floor(trgtmnshka.show_kills); } else { if (trgtmnshka.show_kills eq _root.stat_kills and trgtmnshka.text_esc._visible != true and trgtmnshka.text_enkill._visible eq true) { trgtmnshka.show_kills2 = Math.floor(trgtmnshka.show_kills); trgtmnshka.text_esc._visible = true; trgtmnshka.show_escape = 0; } } if (trgtmnshka.text_esc._visible eq true and trgtmnshka.show_escape < _root.escaped) { trgtmnshka.show_escape += 1; trgtmnshka.show_escape2 = Math.floor(trgtmnshka.show_escape); } else { if (trgtmnshka.show_escape eq _root.escaped and trgtmnshka.text_shots._visible != true and trgtmnshka.text_esc._visible eq true) { trgtmnshka.show_escape2 = Math.floor(trgtmnshka.show_escape); trgtmnshka.text_shots._visible = true; trgtmnshka.show_shots = 0; } } if (trgtmnshka.text_shots._visible eq true and trgtmnshka.show_shots < _root.stat_shots) { trgtmnshka.show_shots += 1; trgtmnshka.show_shots2 = Math.floor(trgtmnshka.show_shots); } else { if (trgtmnshka.show_shots eq _root.stat_shots and trgtmnshka.text_ups._visible != true and trgtmnshka.text_shots._visible eq true) { trgtmnshka.show_shots2 = Math.floor(trgtmnshka.show_shots); trgtmnshka.text_ups._visible = true; trgtmnshka.show_ups = 0; } } if (trgtmnshka.text_ups._visible eq true and trgtmnshka.show_ups < _root.stat_powerups) { trgtmnshka.show_ups += 1; trgtmnshka.show_ups2 = Math.floor(trgtmnshka.show_ups); } else { if (trgtmnshka.show_ups eq _root.stat_powerups and trgtmnshka.text_nukes._visible != true and trgtmnshka.text_ups._visible eq true) { trgtmnshka.show_ups2 = Math.floor(trgtmnshka.show_ups); trgtmnshka.text_nukes._visible = true; trgtmnshka.show_nukes = 0; } } if (trgtmnshka.text_nukes._visible eq true and trgtmnshka.show_nukes < _root.stat_nukes) { trgtmnshka.show_nukes += 1; trgtmnshka.show_nukes2 = Math.floor(trgtmnshka.show_nukes); } else { if (trgtmnshka.show_nukes eq _root.stat_nukes and trgtmnshka.text_holes._visible != true and trgtmnshka.text_nukes._visible eq true) { trgtmnshka.show_nukes2 = Math.floor(trgtmnshka.show_nukes); trgtmnshka.text_holes._visible = true; trgtmnshka.show_holes = 0; } } if (trgtmnshka.text_holes._visible eq true and trgtmnshka.show_holes < _root.stat_blackholes) { trgtmnshka.show_holes += 1; trgtmnshka.show_holes2 = Math.floor(trgtmnshka.show_holes); } else { if (trgtmnshka.show_holes eq _root.stat_blackholes and trgtmnshka.text_holes._visible eq true) { trgtmnshka.show_holes2 = Math.floor(trgtmnshka.show_holes); doMissionCalculation = 0; } } } function spawnEndMissionMenu() { removeMovieClip(_root.wpn_menu); removeMovieClip(_root.upgrades_menu); removeMovieClip(_root.pause_menu); _root.attachMovie('missionFInished_menu', 'missionFInished_menu', _root.objectives_menu_depth); _root.missionFInished_menu._x = 270; _root.missionFInished_menu._y = 350; } function spawnFailMissionMenu() { removeMovieClip(_root.wpn_menu); removeMovieClip(_root.upgrades_menu); removeMovieClip(_root.pause_menu); if (mapchosen > 2000) { _root.attachMovie('missionFailed_menu2', 'missionFailed_menu', _root.objectives_menu_depth); } else { _root.attachMovie('missionFailed_menu', 'missionFailed_menu', _root.objectives_menu_depth); } if (mapchosen eq 2003) { removeMovieClip(_root.missionFailed_menu); _root.attachMovie('missionFailed_menu3', 'missionFailed_menu', _root.objectives_menu_depth); } _root.missionFailed_menu._x = 270; _root.missionFailed_menu._y = 350; } function BTN_backToMap() { deactivateYiffingField(); spawnWorldMap(); } function BTN_backToMap_failed() { deactivateYiffingField(); initPROGRESSVars(); saveANDload('load'); spawnWorldMap(); } function spawnMainMenu() { _root.show_quality._visible = true; _root.overall_volume = 100; _root.game_functions_activated = 0; _root.attachMovie('mainMenu', 'mainMenu', _root.main_menu_depth); } function startCampaign() { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); saveANDload('load'); spawnWorldMap(); } function BTN_quit() { _root.worldmap_loop.stop(); _root.game_functions_activated = 1; deactivateYiffingField(); spawnMainMenu(); } function BTN_quitToMenuFromGame() { deactivateYiffingField(); _root.game_functions_activated = 0; _root.attachMovie('mainMenu', 'mainMenu', _root.main_menu_depth); } function initiateSurvival(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2001; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function initiateArmageddon(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2002; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); _root.lvl = 999; _root.skill_points = 120; } function initiateSandbox(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2003; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function playerMovement() { trgt = _root.yiff.playerTank; deceleration = 0.98; deceleration_active = 0.9; if (trgt.yspeed < -trgt.speedmax) { } else { if (Key.isDown(87)) { trgt.yspeed -= playerTankAcceleration; } } if (trgt.yspeed > trgt.speedmax) { } else { if (Key.isDown(83)) { trgt.yspeed += playerTankAcceleration; } } if (trgt.xspeed < -trgt.speedmax) { } else { if (Key.isDown(65)) { trgt.xspeed -= playerTankAcceleration; } } if (trgt.xspeed > trgt.speedmax) { } else { if (Key.isDown(68)) { trgt.xspeed += playerTankAcceleration; } } if (Key.isDown(68) or Key.isDown(65) or Key.isDown(83) or Key.isDown(87)) { } else { trgt.xspeed *= deceleration; trgt.yspeed *= deceleration; } if (Key.isDown(68) or Key.isDown(65)) { if (Key.isDown(83) or Key.isDown(87)) { } else { trgt.yspeed *= deceleration_active; } } if (Key.isDown(83) or Key.isDown(87)) { if (Key.isDown(68) or Key.isDown(65)) { } else { trgt.xspeed *= deceleration_active; } } } function tankChargeShooting_2() { trgt121 = _root.yiff.playerTank; if (_root['projectile_encost_' + _root.ammo_chosen] > trgt121.energy and chosenball eq 'none') { return undefined; } if (chosenball eq 'none') { sharika_nety = 1; var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.launched != 1) { zomgyiff61666666 = CALC_Dist_Xv_Yv(trgt121._x, trgt121._y, checkball._x, checkball._y); distance = zomgyiff61666666[0]; if (distance < _root.krutilka_radius_max * 1.3) { sharika_nety = 0; chosenball = checkball; } } ++v2; } if (sharika_nety eq 1) { return undefined; } chosenball.purpose = 'ammo'; } if (chosenball != 'none') { zomgyiff61666666 = CALC_Dist_Xv_Yv(trgt121._x, trgt121._y, chosenball._x, chosenball._y); distance = zomgyiff61666666[0]; if (distance > _root.ball_cativation_distance) { Rezinka_ammo(chosenball, trgt121); } else { chosenball.xspeed = 0; chosenball.yspeed = 0; chosenball._x = trgt121._x; chosenball._y = trgt121._y; chosenball.vspishka.play(); if (chosenball.charged != 1) { _root.ballcaught_snd.start(); chosenball.charged = 1; chosenball.type_ = _root.ammo_chosen; chosenball.vspishka2.play(); chosenball.gotoAndStop(chosenball.type_ + 1); trgt121.energy -= _root['projectile_encost_' + chosenball.type_]; } } } } function tankShooting_2() { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { return undefined; } _root.ball_fly_2.start(); if (_root.ammo_chosen > 2) { _root.ammo_chosen = 1; } chosenball.charged = 0; chosenball.launched = 1; type_ = chosenball.type_; trgt = chosenball; chosenball = 'none'; if (type_ != 1) { _root['ballProjectile_reloading_timer_' + type_] = 0; } zomgyiff6666666 = CALC_Dist_Xv_Yv(_root.yiff._xmouse, _root.yiff._ymouse, _root.yiff.playerTank._x, _root.yiff.playerTank._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; xx = _root.yiff.playerTank._x; yy = _root.yiff.playerTank._y; trgt.xspeed = _root['projectile_speed_' + type_] * xmod11; trgt.yspeed = _root['projectile_speed_' + type_] * ymod11; trgt.mass = _root['projectile_mass_' + type_]; trgt.radius = _root['projectile_radius_' + type_]; trgt.lifetime = _root['projectile_lifetime_' + type_]; ++_root.stat_shots; trgt.existtime = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; } function tankShooting_1() { _root.gun_delay_1 = 1; _root.yiff.playerTank.tower.gotoAndPlay(2); if (_root.tank_ammo_selected != 3 and _root.tank_ammo_selected != 4) { _root['tankshot_' + _root.tank_ammo_selected].start(); } zomgyiff6666666 = CALC_Dist_Xv_Yv(_root.yiff._xmouse, _root.yiff._ymouse, _root.yiff.playerTank._x, _root.yiff.playerTank._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; shag = 10; var v3 = 1; while (v3 <= 100) { check_x = _root.yiff.playerTank._x + shag * xmod11 * v3; check_y = _root.yiff.playerTank._y + shag * ymod11 * v3; if (check_x > 425 or check_x < -503) { zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance2 = zomgyiff6612[0]; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 90; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); return undefined; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance = zomgyiff661[0]; distance2 = zomgyiff6612[0]; if (distance < trgtenm.radius) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 10; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); tankShellDetonation(check_x, check_y, _root.tank_ammo_selected); return undefined; } ++v2; } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance2 = zomgyiff6612[0]; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 90; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); tankShellDetonation(check_x, check_y, _root.tank_ammo_selected); return undefined; } ++v3; } } function BTN_dimensionalShift() { if (_root.yiff_paused eq 1 or _root.game_on_hold eq 1) { return undefined; } _root.yiff.playerTank.blendMode = 3; _root.yiff.playerTank.shift_mode = 1; _root.dimensionalSHift_timer = _root.dimensionalSHift_time; _root.overdrive_timer = 0; _root.dimensionalSHift_delayTimer = _root.dimensionalSHift_delay; _root.snd_dimshiftin.start(); if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { } else { detonateBall(chosenball); } } function BTN_overdriveSTarto() { if (_root.yiff_paused eq 1 or _root.game_on_hold eq 1) { return undefined; } _root.overdrive_activated = 1; _root.overdrive_timer = _root.overdrive_time; _root.dimensionalSHift_timer = 0; _root.invul_timer = 0; _root.overdrive_delayTimer = _root.overdrive_delay; _root.overdrive_snd.start(); _root.yiff.playerTank.blendMode = 14; } function BTN_invulnerabilitySTarto() { _root.invul_activated = 1; _root.invul_timer = _root.invul_time; _root.overdrive_timer = 0; _root.yiff.playerTank.blendMode = 14; } function playerTankIntegrity() { if (_root.speedUpgrade1_activated eq 1) { playerTankAcceleration = _root.launcher_acceleration * 2; } else { playerTankAcceleration = _root.launcher_acceleration; } if (_root.speedUpgrade2_activated eq 1) { _root.yiff.playerTank.speedmax = _root.launcher_speedmax * 1.5; } else { _root.yiff.playerTank.speedmax = _root.launcher_speedmax; } if (_root.invul_activated eq 1) { playerTankAcceleration = _root.launcher_acceleration * 3; _root.yiff.playerTank.speedmax = _root.launcher_speedmax * 2; _root.yiff.playerTank.dmg = 0; } if (_root.overdrive_activated eq 1) { hpregen_boost = _root.overdriveHPRegen_boost; enregen_boost = _root.overdriveENRegen_boost; playerTankAcceleration = _root.launcher_acceleration * 3; } else { if (_root.yiff.playerTank.shift_mode eq 1) { hpregen_boost = _root.dimshiftHPRegen_boost; enregen_boost = _root.dimshiftENRegen_boost; } else { hpregen_boost = 1; enregen_boost = 1; } } if (_root.invul_activated eq 1) { if (_root.invul_timer > 0) { _root.invul_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode eq 1) { _root.yiff.playerTank.blendMode = 14; } if (!_root.showtimer_invul) { _root.attachMovie('showtimer_invul', 'showtimer_invul', _root.dimshift_timer_depth - 1); _root.showtimer_invul._x = 21.9; _root.showtimer_invul._y = 26; } else { _root.showtimer_invul.showvar = Math.floor(_root.invul_timer * 10) / 10; if (_root.showtimer_invul.showvar < 0) { _root.showtimer_invul.showvar = 0; } } } else { removeMovieClip(_root.showtimer_invul); _root.invul_activated = 0; _root.yiff.playerTank.blendMode = 1; _root.invul_timer = 0; } } if (_root.overdrive_activated eq 1) { if (_root.overdrive_timer > 0) { _root.overdrive_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode eq 1) { _root.yiff.playerTank.blendMode = 14; } if (!_root.showtimer_overdrive) { _root.attachMovie('showtimer_overdrive', 'showtimer_overdrive', _root.dimshift_timer_depth - 1); _root.showtimer_overdrive._x = 21.9; _root.showtimer_overdrive._y = 26; } else { _root.showtimer_overdrive.showvar = Math.floor(_root.overdrive_timer * 10) / 10; if (_root.showtimer_overdrive.showvar < 0) { _root.showtimer_overdrive.showvar = 0; } } } else { removeMovieClip(_root.showtimer_overdrive); _root.overdrive_activated = 0; _root.yiff.playerTank.blendMode = 1; _root.overdrive_timer = 0; } } if (_root.yiff.playerTank.shift_mode eq 1) { if (_root.dimensionalSHift_timer > 0) { _root.dimensionalSHift_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode != 3) { _root.yiff.playerTank.blendMode = 3; } if (!_root.showtimer_dimshift) { _root.attachMovie('showtimer_dimshift', 'showtimer_dimshift', _root.dimshift_timer_depth); _root.showtimer_dimshift._x = 136; _root.showtimer_dimshift._y = 26; } else { _root.showtimer_dimshift.showvar = Math.floor(_root.dimensionalSHift_timer * 10) / 10; if (_root.showtimer_dimshift.showvar < 0) { _root.showtimer_dimshift.showvar = 0; } } } else { removeMovieClip(_root.showtimer_dimshift); _root.yiff.playerTank.blendMode = 1; _root.snd_dimshiftout.start(); _root.yiff.playerTank.shift_mode = 0; _root.dimensionalSHift_timer = 0; } } _root.yiff.playerTank.hp = _root.launcher_shield_max; if (_root.yiff.playerTank.dmg > 0) { _root.yiff.playerTank.dmg -= _root.shld_regen_rate * hpregen_boost; } else { _root.yiff.playerTank.dmg = 0; } _root.yiff.playerTank.energymax = _root.launcher_energy_max; if (_root.yiff.playerTank.energy < _root.yiff.playerTank.energymax) { _root.yiff.playerTank.energy += _root.energy_regen_rate * enregen_boost; } else { _root.yiff.playerTank.energy = _root.yiff.playerTank.energymax; } if (_root.gun_delay_1 eq 1) { _root.tank_timer_1 += 0.03333333333333333; _root.tank_delay_percent = Math.floor((_root.tank_timer_1 / tank_delay_seconds) * 100); } if (_root.tank_timer_1 > tank_delay_seconds_1) { _root.tank_timer_1 = 0; _root.gun_delay_1 = 0; } if (mouse_is_down eq 1) { _root.yiff.playerTank.torso.effect.play(); _root.yiff.playerTank.torso.krutilka.play(); } else { _root.yiff.playerTank.torso.effect.gotoAndStop(1); _root.yiff.playerTank.torso.krutilka.stop(); } } function spawnPlayerTank(id) { if (id eq 1) { _root.yiff.attachMovie('player_tank_1', 'playerTank', _root.player_tank_depth); trgt = _root.yiff.playerTank; trgt.what = 'SiegeTank'; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = 0; trgt._y = 0; trgt.xpos = 0; trgt.ypos = 0; trgt.tempx = xpos; trgt.tempy = ypos; trgt.mass = 200; trgt.speedmax = 5; trgt.radius = 22; trgt.thesize = 'big'; trgt.experience = 0; trgt.hp = 3000; trgt.dmg = 0; } else { if (id eq 2) { _root.yiff.attachMovie('player_tank_2', 'playerTank', _root.player_tank_depth); trgt = _root.yiff.playerTank; trgt.what = 'GravityLauncher'; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = -40; trgt._y = -70; trgt.xpos = -40; trgt.ypos = -70; trgt.tempx = xpos; trgt.tempy = ypos; trgt.mass = 300; trgt.speedmax = 5; trgt.radius = 40; trgt.thesize = 'hueg'; trgt.experience = 0; trgt.hp = 3000; trgt.dmg = 0; trgt.energymax = _root.launcher_energy_max; trgt.energy = _root.launcher_energy_max; } } } function Krutilka(ball, center) { if (!center) { return undefined; } if (ball.chaos_time > 0 or ball.purpose eq 'ammo') { return undefined; } x1 = ball._x; y1 = ball._y; x2 = center._x; y2 = center._y; var v6 = x1 - x2; var v8 = y1 - y2; var v5 = Math.sqrt(v6 * v6 + v8 * v8); if (v5 > krutilka_radius_max) { _root.rezinka_distancemax = 600; _root.rezinka_jestkost = 2; _root.rezinka_tormojenie = 0.94; Rezinka(ball, center); } krutilka_power = krutilka_power_max * v5 / krutilka_radius_max; if (v5 < krutilka_radius_max * 0.9) { ball.xspeed *= krutilka_speed_amplifier; ball.yspeed *= krutilka_speed_amplifier; } var v7 = _root.bounceball_mass_when_calc_controlz; var v10 = krutilka_mass; var v18 = ball.xspeed; var v20 = ball.yspeed; var v14 = Math.atan2(v8, v6); var v4 = Math.cos(v14); var v3 = Math.sin(v14); var v15 = v18 * v4 + v20 * v3; var v12 = krutilka_power; var v13 = v20 * v4 - v18 * v3; var v11 = 0.0001; var v19 = v7 * v15 + v10 * v12; var v21 = v15 - v12; var v16 = (v19 + v7 * v21) / (v7 + v10); var v17 = v16 - v15 + v12; v15 = v17; v12 = v16; v18 = v15 * v4 - v13 * v3; var v22 = v12 * v4 - v11 * v3; v20 = v13 * v4 + v15 * v3; var v23 = v11 * v4 + v12 * v3; ball.xspeed = v18; ball.yspeed = v20; } function Rezinka(ball, center) { if (!center or !center._x or center._x eq undefined) { return undefined; } _root.rezinka_distancemax = 600; _root.rezinka_jestkost = 8; _root.rezinka_tormojenie = 0.9; calc12312 = CALC_Dist_Xv_Yv(center._x, center._y, ball._x, ball._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; natyajenie = distance / _root.rezinka_distancemax; if (natyajenie > 1) { natyajenie = 1; } sila_natyajeniya = _root.rezinka_jestkost * natyajenie; ball.xspeed += sila_natyajeniya * x_force_modifier; ball.yspeed += sila_natyajeniya * y_force_modifier; ball.xspeed *= _root.rezinka_tormojenie; ball.yspeed *= _root.rezinka_tormojenie; } function Rezinka_ammo(ball, center) { if (!center) { return undefined; } _root.rezinka_distancemax2 = 100; _root.rezinka_jestkost2 = 15; _root.rezinka_tormojenie2 = 0.9; calc12312 = CALC_Dist_Xv_Yv(center._x, center._y, ball._x, ball._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; natyajenie = distance / _root.rezinka_distancemax2; if (natyajenie > 1) { natyajenie = 1; } sila_natyajeniya = _root.rezinka_jestkost2 * natyajenie; ball.xspeed += sila_natyajeniya * x_force_modifier; ball.yspeed += sila_natyajeniya * y_force_modifier; ball.xspeed *= _root.rezinka_tormojenie2; ball.yspeed *= _root.rezinka_tormojenie2; } function spawnBounceBall(locationMC) { iyiff = _root.yiff.bounceballs_shell.getNextHighestDepth(); _root.yiff.bounceballs_shell.attachMovie('bounceball_1', 'bounceball_' + iyiff, iyiff); trgt = _root.yiff.bounceballs_shell['bounceball_' + iyiff]; trgt.what = 'bounceball'; if (locationMC) { xx = locationMC._x; yy = locationMC._y; } else { xx = _root.yiff.playerTank._x; yy = _root.yiff.playerTank._y; } trgt.xspeed = 100 - random(200); trgt.yspeed = 100 - random(200); trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.chaos_time = 0; trgt.type_ = 0; trgt.existtime = 0; trgt.mass = 40; trgt.speedmax = 80; trgt.radius = 7.5; _root.bounceballsArray.push(trgt); _root.bounceballsOnTheField = _root.bounceballsArray.length; } function shleif(trgt) { if (_root.projectile_trails_enabled eq 0) { return undefined; } iyiff = _root.yiff.shleif_shell.getNextHighestDepth(); shleif_id = trgt.type_; _root.yiff.shleif_shell.attachMovie('shleif_' + shleif_id, 'yiffshleifsuka' + iyiff, iyiff); shle = _root.yiff.shleif_shell['yiffshleifsuka' + iyiff]; shle._x = trgt._x; shle._y = trgt._y; } function blackBallIntegrity() { var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.type_ eq 5) { explosion_Effect_OnTargets(checkball._x, checkball._y, 999); } ++v2; } } function createBounceBallsArray() { _root.bounceballsArray = []; _root.bounceballsOnTheField = 0; trgtlayer = _root.yiff.bounceballs_shell; _root.blackballonthefield = 0; _root.greenballsOnTHeFIeld = 0; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'bounceball') { if (trgtlayer[v2].type_ eq 5) { _root.blackballonthefield = trgtlayer[v2]; } if (trgtlayer[v2].type_ eq 0) { ++_root.greenballsOnTHeFIeld; } _root.bounceballsArray.push(trgtlayer[v2]); } } } _root.bounceballsOnTheField = _root.bounceballsArray.length; } function bounceballIntegrity(ball) { if (ball.chaos_time > 0) { ball.chaos_time -= 0.03333333333333333; } if (ball._x > 545 or ball._x < -634 or ball._y < -420 or ball._y > 385) { removeMovieClip(ball); } if (ball.type_ > 0) { ball.existtime += 0.03333333333333333; ball.lifetime -= 0.03333333333333333; if (ball.lifetime < 0) { if (ball.type_ != 1) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } else { xx = ball._x; yy = ball._y; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('blueballCollapse', 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } removeMovieClip(ball); } } else { if (ball.type_ eq 0 and !_root.yiff.playerTank) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(ball); } } } function detonateBall(ball) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(ball); } function projectileCatcher() { if (_root.yiff.playerTank.shift_mode eq 1) { return undefined; } var v2 = 0; while (v2 < _root.bounceballsOnTheField) { trgt = _root.bounceballsArray[v2]; if (trgt.type_ != 0 and trgt.type_ != 5 and trgt.existtime > 1 and chosenball != trgt) { calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance = calc12312[0]; if (distance < _root.yiff.playerTank.radius * 1.3) { halfenergy = _root['projectile_encost_' + trgt.type_] / 2; if (halfenergy > 0) { _root.yiff.playerTank.energy += halfenergy; } _root.yiff.playerTank.torso.core.absorb.gotoAndPlay(2); xx = trgt._x; yy = trgt._y; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('blueballCollapse', 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(trgt); } } ++v2; } } function powerupIntegrity(trgt) { trgt.fade_timer += 0.03333333333333333; trgt.fadePercent = Math.floor(100 * trgt.fade_timer / _root.powerup_fade_time); if (trgt.fadePercent < 1) { trgt.fadePercent = 0; } else { if (trgt.fadePercent > 100) { trgt.fadePercent = 100; } } trgt.showtime.gauge.gotoAndStop(100 - trgt.fadePercent); if (trgt.fadePercent > 99) { _root.mouse_over_powerup = 0; removeMovieClip(trgt); return undefined; } if (trgt.clearing.remove eq 1) { _root.mouse_over_powerup = 0; removeMovieClip(trgt); return undefined; } } function spawnPowerup(xx, yy) { ++_root.powerups_spawned_counter; iyiff = _root.yiff.powerups_shell.getNextHighestDepth(); _root.yiff.powerups_shell.attachMovie('powerupShell', 'pup_' + iyiff, iyiff); trgtup = _root.yiff.powerups_shell['pup_' + iyiff]; trgtup._x = xx; trgtup._y = yy; trgtup.fade_timer = 0; trgtup.what = 'pup'; trgtup.gotoAndStop(random(9) + 2); _root.powerupsArray.push(trgt); _root.powerupsOnTheField = _root.powerupsArray.length; } function createPowerupsArray() { _root.powerupsArray = []; _root.powerupsOnTheField = 0; trgtlayer = _root.yiff.powerups_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'pup') { _root.powerupsArray.push(trgtlayer[v2]); } } } _root.powerupsOnTheField = _root.powerupsArray.length; } function PUP_nulifyAllTimerz() { var v2 = 0; while (v2 < 6) { _root['wpn_reloading_timer_' + v2] = 999; ++v2; } v2 = 2; while (v2 < 7) { _root['ballProjectile_reloading_timer_' + v2] = 999; ++v2; } _root.dimensionalSHift_timer = 0; _root.overdrive_timer = 0; } function failureIntegrity() { dontLeaveBattlefield(); if (_root.yiff.explosions_shell.launcherExplosion or _root.yiff.playerTank or _root.game_on_hold eq 1 or _root.WorldMap) { return undefined; } if (_root.launcher_has_died != 1) { return undefined; } _root.scoretimer = _root.timer; _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } function dontLeaveBattlefield() { if (_root.game_on_hold eq 1 or _root.WorldMap) { return undefined; } if (_root.yiff.playerTank._x < -470 or _root.yiff.playerTank._x > 400) { if (!_root.getbackMSG) { _root.attachMovie('getbackMSG', 'getbackMSG', _root.getbackDepth); _root.getbackMSG._x = 400; _root.getbackMSG._y = 260; } } else { if (_root.getbackMSG) { removeMovieClip(_root.getbackMSG); } } } function initializeTerrain(mapID) { if (mapID > 2000) { mapID = 1 + random(23); } if (mapID eq 1) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_8', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -260; _root.yiff.rubbish_shell.r1._y = -155; _root.yiff.rubbish_shell.r1._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_12', 'r2', 2); _root.yiff.rubbish_shell.r2._x = -61; _root.yiff.rubbish_shell.r2._y = 56; _root.yiff.rubbish_shell.r2._rotation = 0; _root.yiff.rubbish_shell.attachMovie('rubbish_16', 'r3', 3); _root.yiff.rubbish_shell.r3._x = -310; _root.yiff.rubbish_shell.r3._y = 77; _root.yiff.rubbish_shell.r3._rotation = 0; } else { if (mapID eq 2) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_5', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -190; _root.yiff.rubbish_shell.r1._y = -150; _root.yiff.rubbish_shell.r1._rotation = -90; _root.yiff.rubbish_shell.attachMovie('rubbish_7', 'r2', 2); _root.yiff.rubbish_shell.r2._x = 26; _root.yiff.rubbish_shell.r2._y = 7; _root.yiff.rubbish_shell.r2._rotation = 130; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r3', 3); _root.yiff.rubbish_shell.r3._x = 160; _root.yiff.rubbish_shell.r3._y = -100; _root.yiff.rubbish_shell.r3._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_5', 'r4', 4); _root.yiff.rubbish_shell.r4._x = 80; _root.yiff.rubbish_shell.r4._y = 140; _root.yiff.rubbish_shell.r4._rotation = 30; } else { if (mapID eq 3) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_3', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -330; _root.yiff.rubbish_shell.r1._y = -170; _root.yiff.rubbish_shell.r1._rotation = -10; _root.yiff.rubbish_shell.attachMovie('rubbish_3', 'r2', 2); _root.yiff.rubbish_shell.r2._x = 230; _root.yiff.rubbish_shell.r2._y = -150; _root.yiff.rubbish_shell.r2._rotation = 130; _root.yiff.rubbish_shell.attachMovie('rubbish_4', 'r3', 3); _root.yiff.rubbish_shell.r3._x = -120; _root.yiff.rubbish_shell.r3._y = -20; _root.yiff.rubbish_shell.r3._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r4', 4); _root.yiff.rubbish_shell.r4._x = 160; _root.yiff.rubbish_shell.r4._y = 100; _root.yiff.rubbish_shell.r4._rotation = 30; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r5', 5); _root.yiff.rubbish_shell.r5._x = 160; _root.yiff.rubbish_shell.r5._y = 100; _root.yiff.rubbish_shell.r5._rotation = 30; } else { if (mapID eq 4) { spawnBackground(1); putRubbish('rubbish_8', -333, 122, random(360)); putRubbish('rubbish_9', -353, 33, random(360)); putRubbish('rubbish_8', -323, -127, random(360)); putRubbish('rubbish_9', -213, -26, random(360)); putRubbish('rubbish_8', -100, -198, random(360)); putRubbish('rubbish_9', -24, 122, random(360)); putRubbish('rubbish_11', 102, 22, random(360)); putRubbish('rubbish_9', 161, 122, random(360)); putRubbish('rubbish_11', 238, 32, random(360)); putRubbish('rubbish_9', 238, 42, random(360)); putRubbish('rubbish_11', 248, -137, random(360)); } else { if (mapID eq 5) { spawnBackground(1); putRubbish('rubbish_1', -433, -222, random(360)); putRubbish('rubbish_13', -353, 5, random(360)); putRubbish('rubbish_8', -333, 12, random(360)); putRubbish('rubbish_13', -253, 102, random(360)); putRubbish('rubbish_8', -203, -122, random(360)); putRubbish('rubbish_15', -133, -70, random(360)); putRubbish('rubbish_6', -133, -70, 0); putRubbish('rubbish_16', 0, -44, random(360)); putRubbish('rubbish_2', 100, 122, random(360)); putRubbish('rubbish_13', 150, -200, random(360)); putRubbish('rubbish_14', 180, 30, random(360)); putRubbish('rubbish_15', 250, 60, random(360)); putRubbish('rubbish_14', 300, -72, random(360)); } else { if (mapID eq 6) { spawnBackground(2); putRubbish('rubbish_12', -73, -70, 180); } else { if (mapID eq 7) { spawnBackground(3); } else { if (mapID eq 1003) { spawnBackground(1); putRubbish('rubbish_1', -433, -222, 10); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_1', -333, 12, -10); putRubbish('rubbish_2', -253, 102, 15); putRubbish('rubbish_1', -203, -122, 30); putRubbish('rubbish_2', -133, -70, 60); putRubbish('rubbish_5', -133, -70, 0); putRubbish('rubbish_2', 0, -44, 5); putRubbish('rubbish_2', 100, 122, 12); putRubbish('rubbish_1', 150, -200, 44); putRubbish('rubbish_2', 180, 30, -20); putRubbish('rubbish_7', 180, 30, 0); putRubbish('rubbish_1', 250, 60, -30); putRubbish('rubbish_2', 300, -72, -30); putRubbish('rubbish_12', -200, 88, -30); putRubbish('rubbish_12', 96, 0, -130); putRubbish('rubbish_12', -75, -175, -230); } else { if (mapID eq 8) { spawnBackground(2); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_1', -333, 112, -10); putRubbish('rubbish_2', -253, -102, 15); putRubbish('rubbish_5', -133, -70, 70); putRubbish('rubbish_7', 180, 30, 110); putRubbish('rubbish_12', -200, 88, -130); putRubbish('rubbish_12', 96, 0, -1130); putRubbish('rubbish_12', -75, -175, -2230); } else { if (mapID eq 9) { spawnBackground(2); putRubbish('rubbish_16', -353, 5, 20); putRubbish('rubbish_15', -333, 112, -10); putRubbish('rubbish_16', -253, -102, 15); putRubbish('rubbish_15', -133, -70, 70); putRubbish('rubbish_16', 180, 30, 110); putRubbish('rubbish_15', -200, 88, -130); putRubbish('rubbish_16', 96, 0, -1130); putRubbish('rubbish_7', 126, 9, -2230); putRubbish('rubbish_7', -250, -75, -90); } else { if (mapID eq 10) { spawnBackground(2); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_4', -333, 112, -10); putRubbish('rubbish_5', -253, -102, 15); putRubbish('rubbish_6', -133, -70, 70); putRubbish('rubbish_3', 180, 30, 110); putRubbish('rubbish_4', -200, 88, -130); putRubbish('rubbish_5', 96, 0, -1130); putRubbish('rubbish_7', 126, 9, -2230); putRubbish('rubbish_7', -250, -75, -90); } else { if (mapID eq 1004) { spawnBackground(3); putRubbish('rubbish_13', -353, 5, 20); putRubbish('rubbish_14', -333, 112, -10); putRubbish('rubbish_15', -253, -102, 15); putRubbish('rubbish_16', -133, -70, 70); putRubbish('rubbish_13', 180, 30, 110); putRubbish('rubbish_14', -200, 88, -130); putRubbish('rubbish_15', 96, 0, -1130); putRubbish('rubbish_12', 126, 9, -2230); putRubbish('rubbish_12', -250, -75, -90); } else { if (mapID eq 11) { spawnBackground(2); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); } else { if (mapID eq 12) { spawnBackground(2); putRubbish('rubbish_4', -353, 5, random(360)); putRubbish('rubbish_4', -333, 112, random(360)); putRubbish('rubbish_4', -253, -102, random(360)); putRubbish('rubbish_11', -133, -70, random(360)); putRubbish('rubbish_4', 180, 30, random(360)); putRubbish('rubbish_4', -200, 88, random(360)); putRubbish('rubbish_4', 96, 0, random(360)); putRubbish('rubbish_4', 126, 9, random(360)); putRubbish('rubbish_11', -250, -75, random(360)); } else { if (mapID eq 13) { spawnBackground(2); putRubbish('rubbish_7', -353, 5, random(360)); putRubbish('rubbish_7', -333, 112, random(360)); putRubbish('rubbish_7', -253, -102, random(360)); putRubbish('rubbish_10', -133, -70, random(360)); putRubbish('rubbish_7', 180, 30, random(360)); putRubbish('rubbish_7', -200, 88, random(360)); putRubbish('rubbish_7', 96, 0, random(360)); putRubbish('rubbish_7', 126, 9, random(360)); putRubbish('rubbish_10', -250, -75, random(360)); } else { if (mapID eq 14) { spawnBackground(1); var v3 = 0; while (v3 < 6) { putRubbish('rubbish_12', -300, 70, random(360)); putRubbish('rubbish_12', 147, 25, random(360)); ++v3; } } else { if (mapID eq 15) { spawnBackground(1); putRubbish('rubbish_13', -353, 5, 20); putRubbish('rubbish_14', -333, 112, -10); putRubbish('rubbish_15', -253, -102, 15); putRubbish('rubbish_16', -133, -70, 70); putRubbish('rubbish_13', 180, 30, 110); putRubbish('rubbish_14', -200, 88, -130); putRubbish('rubbish_15', 96, 0, -1130); putRubbish('rubbish_12', 126, 9, -2230); putRubbish('rubbish_12', -250, -75, -90); } else { if (mapID eq 16) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 17) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (8 + random(8)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1005) { spawnBackground(3); } else { if (mapID eq 18) { spawnBackground(1); var v3 = 0; while (v3 < 15) { putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 19) { spawnBackground(2); var v3 = 0; while (v3 < 8) { putRubbish('rubbish_12', -286, -35, random(360)); putRubbish('rubbish_12', 195, -35, random(360)); ++v3; } putRubbish('rubbish_7', -306, -35, random(360)); putRubbish('rubbish_7', 195, -35, random(360)); } else { if (mapID eq 20) { spawnBackground(4); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 21) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 22) { spawnBackground(2); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 23) { spawnBackground(1); var v3 = 0; while (v3 < 15) { putRubbish('rubbish_12', -300, 70, random(360)); putRubbish('rubbish_12', 147, 25, random(360)); ++v3; } } else { if (mapID eq 1008) { spawnBackground(4); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1006) { spawnBackground(1); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1007) { spawnBackground(2); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function putRubbish(what, xx, yy, rotat) { iyiff = _root.yiff.rubbish_shell.getNextHighestDepth(); _root.yiff.rubbish_shell.attachMovie(what, 'r' + iyiff, iyiff); _root.yiff.rubbish_shell['r' + iyiff]._x = xx; _root.yiff.rubbish_shell['r' + iyiff]._y = yy; _root.yiff.rubbish_shell['r' + iyiff]._rotation = rotat; } function spawnBackground(id) { if (_root.mapchosen > 2000) { id = _root.scenario_background_selected; } if (id eq 4) { id = 3; _root.yiff.attachMovie('background_bottom_' + id, 'background_bottom', _root.background_depth); _root.yiff.attachMovie('upper_wall_' + id, 'wall_upper', _root.walls_depth + 1); _root.yiff.attachMovie('bottom_wall_' + id, 'wall_bottom', _root.walls_depth); _root.yiff.wall_upper._x = -37; _root.yiff.wall_upper._y = -292; _root.yiff.wall_bottom._x = -37; _root.yiff.wall_bottom._y = 186; _root.yiff.background_bottom._x = -38; _root.yiff.background_bottom._y = -28; return undefined; } _root.yiff.attachMovie('background_bottom_' + id, 'background_bottom', _root.background_depth); _root.yiff.attachMovie('upper_wall_' + id, 'wall_upper', _root.walls_depth + 1); _root.yiff.attachMovie('bottom_wall_' + id, 'wall_bottom', _root.walls_depth); _root.yiff.wall_upper._x = -37; _root.yiff.wall_upper._y = -292; _root.yiff.wall_bottom._x = -37; _root.yiff.wall_bottom._y = 186; _root.yiff.background_bottom._x = -38; _root.yiff.background_bottom._y = -28; if (id eq 3) { _root.yiff.attachMovie('background_top_3', 'background_top', _root.background_up_depth); _root.yiff.background_top._x = -38; _root.yiff.background_top._y = -28; } } function BTN_start_game() { _root.game_on_hold = 0; removeMovieClip(_root.objectivesMenu); if (_root.yiff_paused eq 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } initializeCurrentMap(_root.mapchosen); } function initializeCurrentMap(mapchosen) { _root.yiff.attachMovie('teleporter', 'teleporter', _root.teleporter_depth); _root.yiff.teleporter._x = -256; _root.yiff.teleporter._y = -67; _root.stat_kills = 0; _root.stat_shots = 0; _root.stat_powerups = 0; _root.stat_nukes = 0; _root.stat_blackholes = 0; _root.yiff.playerTank.energy = 9999999; _root.yiff.playerTank.dmg = 0; _root.kills = 0; _root.escaped = 0; _root.escaped_max = 0; _root.towersMustSTay = 0; _root.forced_only_antimatter = 0; if (mapchosen eq 1) { _root.powerupDROPchance = 0; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_1; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_available_0 = 0; _root.wpn_available_1 = 0; } else { if (mapchosen eq 2) { _root.powerupDROPchance = 0; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_2; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_reloading_timer_1 = 999; _root.wpn_available_0 = 0; _root.wpn_available_1 = 1; } else { if (mapchosen eq 3) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_3; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_available_0 = 0; _root.wpn_available_1 = 1; } else { if (mapchosen eq 4) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_4; _root.dimshift_available = 1; _root.overdrive_available = 0; _root.wpn_reloading_timer_0 = 999; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 5) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 0.7; _root.timelength = _root.mission_length_5; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 6) { FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.attachMovie('teleporter_tutorial', 'teleporter_tutorial', _root.teleporter_tutorial_depth); _root.teleporter_tutorial._x = 407; _root.teleporter_tutorial._y = 363; _root.escaped_max = 10; _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 0.7; _root.timelength = _root.mission_length_6; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 7) { _root.towersMustSTay = 2; _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_7; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -33; _root.yiff.teleporter._y = -62; _root.turret_hp_2 = 7000; spawnTurret(-307, -185, 2); spawnTurret(-340, 105, 2); } else { if (mapchosen eq 1003) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_1003; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; enemy_speedmax_13 = 2; spawnTurret(-315, -151, 2); spawnTurret(-315, 59, 1); spawnTurret(184, -184, 2); spawnTurret(184, 74, 1); } else { if (mapchosen eq 8) { _root.escaped_max = 20; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_8; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 9) { _root.escaped_max = 20; _root.towersMustSTay = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.6; _root.timelength = _root.mission_length_9; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.turret_reload_time_1 = 3; _root.turret_reload_time_3 = 3; spawnTurret(-62, 116, 1); spawnTurret(-62, -211, 3); } else { if (mapchosen eq 10) { _root.towersMustSTay = 2; _root.powerups_spawned_counter = 0; _root.escaped_max = 20; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_10; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_3 = 4; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; spawnTurret(-307, -185, 3); spawnTurret(-340, 105, 3); } else { if (mapchosen eq 1004) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_10; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_3 = 3; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; spawnTurret(-307, -185, 3); spawnTurret(-340, 0, 3); spawnTurret(-340, 105, 3); } else { if (mapchosen eq 11) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_11; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 5; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -150; _root.yiff.playerTank._x = -150; spawnTurret(-40, -70, 1); } else { if (mapchosen eq 12) { _root.escaped_max = 35; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.8; _root.timelength = _root.mission_length_12; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 13) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_13; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = 200; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 14) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_14; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -200; _root.yiff.teleporter._y = -70; _root.turret_reload_time_1 = 3; _root.turret_reload_time_3 = 3; spawnTurret(-62, 116, 1); spawnTurret(-62, -211, 3); } else { if (mapchosen eq 15) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_15; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 16) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_14; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = 117; _root.turret_reload_time_1 = 1; spawnTurret(-43, -208, 1); } else { if (mapchosen eq 17) { _root.escaped_max = 25; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_17; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 2; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-100, -70, 1); spawnTurret(30, -70, 1); } else { if (mapchosen eq 1005) { _root.escaped_max = 1; _root.forced_only_antimatter = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1005; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 18) { _root.escaped_max = 50; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_18; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 19) { _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_19; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 20) { _root.towersMustSTay = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_20; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = 117; _root.turret_hp_4 = 10000; spawnTurret(-43, -208, 4); } else { if (mapchosen eq 21) { _root.escaped_max = 30; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_21; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 1.5; _root.turret_reload_time_4 = 1.5; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-100, -70, 1); spawnTurret(30, -70, 4); } else { if (mapchosen eq 22) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_22; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 3; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-400, -200, 1); spawnTurret(-400, 100, 1); } else { if (mapchosen eq 1008) { _root.skill_points += 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_1008; _root.dimshift_available = 1; _root.overdrive_available = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.turret_reload_time_4 = 5; spawnTurret(-40, -200, 4); spawnTurret(-40, 100, 4); enemy_reload_time_1 = 3.5; enemy_reload_time_2 = 3.5; enemy_exp_9 = 3.5; enemy_reload_time_12 = 3.5; enemy_reload_time_30 = 3.5; enemy_exp_31 = 3.5; enemy_reload_time_33 = 5; } else { if (mapchosen eq 1006) { _root.escaped_max = 12; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1006; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 1007) { _root.escaped_max = 5; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1007; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 23) { _root.escaped_max = 12; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_23; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 2001) { _root.escaped_max = 50; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 2002) { _root.escaped_max = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.lvl = 999; } else { if (mapchosen eq 2003) { _root.escaped_max = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; if (_root.SAND_MaxLVL eq 1) { _root.lvl = 999; _root.skill_points = 999; } if (_root.SAND_ALLmaxedUP eq 1) { _root.lvl = 999; _root.energy_upgrade = 30; _root.shield_upgrade = 30; _root.zeroConduit = _root.zeroConduit_max; _root.proj_upgrade_1 = 15; _root.proj_upgrade_2 = 15; _root.proj_upgrade_3 = 15; _root.proj_upgrade_4 = 15; _root.proj_upgrade_5 = 15; _root.proj_upgrade_6 = 15; _root.proj_upgrade_general = 25; _root.projPlus1Upgrade = _root.projPlus1Upgrade_max; _root.projPlus2Upgrade = _root.projPlus2Upgrade_max; _root.projCatcherUpgrade = _root.projCatcherUpgrade_max; _root.speedUpgrade1 = _root.speedUpgrade1_max; _root.ballActivationUpgrade = _root.ballActivationUpgrade_max; _root.advShieldUpgrade = _root.advShieldUpgrade_max; _root.speedUpgrade2 = _root.speedUpgrade2_max; _root.timeUpgrade = _root.timeUpgrade_max; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function scenarioIntegrity() { _root.timer += 0.03333333333333333; if (_root.timelength > -999) { } else { return undefined; } if (_root.towersMustSTay != 0 and _root.turretsOnTheField < _root.towersMustSTay) { _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } if (_root.escaped_max > 0) { if (_root.escaped_max < _root.escaped or _root.escaped_max eq _root.escaped) { _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } } if (mapchosen eq 2001) { _root.respawn_pattern_survival(); } else { if (mapchosen eq 2002) { _root.respawn_pattern_armageddon(); } else { if (mapchosen eq 2003) { _root.respawn_pattern_sandbox(); } } } if (_root.timer < _root.timelength) { _root['respawn_pattern_' + _root.mapchosen](); } else { if (_root.timer > _root.timelength and mapchosen < 2000) { recordMissionCompletion(_root.mapchosen); _root['map_status_' + _root.mapchosen] = 2; if (_root.mapchosen < 500) { _root['map_status_' + (_root.mapchosen + 1)] = 1; } if (_root.mapchosen eq 7) { _root.map_status_1003 = 1; } if (_root.mapchosen eq 10) { _root.map_status_1004 = 1; } if (_root.mapchosen eq 17) { _root.map_status_1005 = 1; } if (_root.mapchosen eq 21) { _root.map_status_1006 = 1; _root.map_status_1007 = 1; _root.map_status_1008 = 1; } saveANDload('save'); _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnEndMissionMenu(); } } } function __com2_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; 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 = mc._root.getSWFVersion; fv = x ? mc.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) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } function recordMissionCompletion(missionid) { if (missionid eq 10) { __com2_mochibot__('c85694cd', this, 10301, true); } else { if (missionid eq 15) { __com2_mochibot__('04e8f74b', this, 10301, true); } else { if (missionid eq 20) { __com2_mochibot__('ec6fa218', this, 10301, true); } } } } function respawn_pattern_1() { if (_root.timer > 0 and _root.timer < 2) { _root.enemies_max = 3; respawnEnemyUnit(29); } else { if (_root.timer > 2 and _root.timer < 4) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 5 and _root.timer < 25) { if (random(50) eq 1) { respawnEnemyUnit(22); } } else { if (_root.timer > 25) { if (random(3) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(22); } } } } } } function respaw234234n_pattern_1() { _root.enemies_max = 3; if (random(40) eq 1) { respawnEnemyUnit(8); } } function respawn_pattern_2() { if (_root.timer < 1) { _root.enemies_max = 6; respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(22); } } } function respawn_pattern_3() { if (_root.powerups_spawned_counter > 10) { _root.powerupDROPchance = 30; } else { if (_root.powerups_spawned_counter > 5) { _root.powerupDROPchance = 6; } else { if (_root.powerups_spawned_counter > -1) { _root.powerupDROPchance = 2; } } } if (_root.timer < 5) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(5); } else { respawnEnemyUnit(4); } } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(22); } } } function respawn_pattern_4() { _root.powerupDROPchance = 10; if (_root.timer < 10) { _root.enemies_max = 2; respawnEnemyUnit(22); } else { if (_root.timer > 10 and _root.timer < 11) { _root.enemies_max = 6; respawnEnemyUnit(7); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(5); } } } } function respawn_pattern_5() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 20) { aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } } } } } } } } function respawn_pattern_6() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 20 and _root.timer < 40) { _root.enemies_max = 6; respawnEnemyUnit(22); } else { if (_root.timer > 40 and _root.timer < 60) { _root.enemies_max = 6; respawnEnemyUnit(24); } else { if (_root.timer > 60 and _root.timer < 80) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(4); } else { respawnEnemyUnit(5); } } else { if (_root.timer > 80) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(20); } else { respawnEnemyUnit(6); } } } } } } } function respawn_pattern_7() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(30); } else { if (_root.timer > 20 and _root.timer < 90) { _root.enemies_max = 6; aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } else { if (aaa eq 5) { respawnEnemyUnit(1); } else { if (aaa eq 6) { respawnEnemyUnit(3); } } } } } } } } else { if (_root.timer > 105) { respawnEnemyUnit(1); } else { if (_root.timer > 90) { respawnEnemyUnit(6); } } } } } function respawn_pattern_1003() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(1); } else { respawnEnemyUnit(1, 'left'); } } else { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(30, 'left'); } } } else { if (_root.timer > 20 and _root.timer < 50) { _root.enemies_max = 8; if (random(2) eq 1) { respawnEnemyUnit(3); } else { respawnEnemyUnit(3, 'left'); } } else { if (_root.timer > 50 and _root.timer < 70) { _root.enemies_max = 6; aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } else { if (aaa eq 5) { respawnEnemyUnit(1); } else { if (aaa eq 6) { respawnEnemyUnit(3); } } } } } } } } else { if (_root.timer > 70 and _root.timer < 90) { _root.enemies_max = 6; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(1); } else { respawnEnemyUnit(1, 'left'); } } else { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(30, 'left'); } } } else { if (_root.timer > 90) { _root.enemies_max = 8; if (random(2) eq 1) { respawnEnemyUnit(3); } else { respawnEnemyUnit(3, 'left'); } } } } } } } function respawn_pattern_8() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(13); } else { respawnEnemyUnit(13, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 61) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); } else { if (_root.timer > 63 and _root.timer < 64) { _root.enemies_max = 10; respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); } else { if (_root.timer > 64) { _root.enemies_max = 6; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_9() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(11); } else { respawnEnemyUnit(20, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 61) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); } else { if (_root.timer > 63 and _root.timer < 64) { _root.enemies_max = 10; respawnEnemyUnit(7); respawnEnemyUnit(7, 'left'); respawnEnemyUnit(7); respawnEnemyUnit(7, 'left'); } else { if (_root.timer > 64) { _root.enemies_max = 6; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_10() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 10; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(3); } } else { if (random(2) eq 1) { respawnEnemyUnit(9); } else { respawnEnemyUnit(3); } } } else { if (_root.timer > 30 and _root.timer < 100) { _root.enemies_max = 8; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 100) { respawnEnemyUnit(3); } } } } function respawn_pattern_1004() { _root.powerupDROPchance = 20; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(1); } } else { if (random(2) eq 1) { respawnEnemyUnit(9); } else { respawnEnemyUnit(3); } } } else { if (_root.timer > 30 and _root.timer < 50) { _root.enemies_max = 10; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 50 and _root.timer < 60) { respawnEnemyUnit(3, 'left'); } else { if (_root.timer > 60 and _root.timer < 100) { _root.enemies_max = 10; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 100) { respawnEnemyUnit(9); } } } } } } function respawn_pattern_11() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(16); } else { respawnEnemyUnit(13, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 9; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(16, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 80) { _root.enemies_max = 8; respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); } else { if (_root.timer > 80) { _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(4, whereto234); } } } } } } } } } } } } } } } function respawn_pattern_12() { _root.powerupDROPchance = 15; if (_root.timer < 60) { _root.enemies_max = 10; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 60 and _root.timer < 75) { _root.enemies_max = 8; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 1.5; respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 75) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } } } } function respawn_pattern_13() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'left'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_14() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'yiff'; enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_15() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'yiff'; enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_16() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'yiff'; } else { whereto234 = 'left'; } enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_17() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 10; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(12, whereto234); } } } } } } } } else { if (_root.timer > 30 and _root.timer < 40) { _root.enemies_max = 8; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 1.5; respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 40 and _root.timer < 80) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 80) { _root.enemies_max = 10; aaa = random(40); if (random(2) eq 1) { whereto234 = 'yiff'; } else { whereto234 = 'left'; } enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(12, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1005() { _root.powerupDROPchance = 15; _root.enemies_max = 12; if (_root.timer < 15) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(1, whereto234); } else { if (_root.timer > 15 and _root.timer < 30) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(30, whereto234); } else { if (_root.timer > 30 and _root.timer < 45) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(9, whereto234); } else { if (_root.timer > 45 and _root.timer < 60) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(12, whereto234); } else { if (_root.timer > 60 and _root.timer < 75) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 75 and _root.timer < 130) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 130 and _root.timer < 145) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 130 and _root.timer < 180) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(12, whereto234); } } } } } else { if (_root.timer > 180) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(15, whereto234); } } } } } } } } } } } } } } function respawn_pattern_18() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 8; whereto234 = 'yiff'; if (random(2) eq 1) { respawnEnemyUnit(18, whereto234); } else { respawnEnemyUnit(6, whereto234); } } else { if (_root.timer > 30 and _root.timer < 50) { _root.enemies_max = 10; whereto234 = 'yiff'; if (random(2) eq 1) { respawnEnemyUnit(18, whereto234); } else { respawnEnemyUnit(6, whereto234); } whereto234 = 'left'; if (random(2) eq 1) { respawnEnemyUnit(9, whereto234); } else { respawnEnemyUnit(3, whereto234); } } else { if (_root.timer > 50 and _root.timer < 100) { _root.enemies_max = 12; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(3, whereto234); } } } } } } } } } } } else { if (_root.timer > 100) { _root.enemies_max = 12; aaa = random(40); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 19) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 20) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 21) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 22) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 23) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 24) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 25) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 26) { respawnEnemyUnit(30, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_19() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 12; respawnEnemyUnit(1, 'left'); respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 40) { _root.enemies_max = 12; respawnEnemyUnit(9, 'left'); respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 40) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { if (random(3) eq 1) { respawnEnemyUnit(31, whereto234); } } } } } } } } } } function respawn_pattern_20() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 10; respawnEnemyUnit(3, 'left'); respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 40) { respawnEnemyUnit(1, 'left'); respawnEnemyUnit(3, 'idinahui'); } else { if (_root.timer > 40 and _root.timer < 55) { _root.enemies_max = 8; respawnEnemyUnit(9, 'left'); respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 60) { _root.enemies_max = 12; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(13, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_21() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(40); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 19) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 20) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 21) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 22) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 23) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 24) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 25) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 26) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 27) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 28) { respawnEnemyUnit(31, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_22() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; respawnEnemyUnit(32, 'idinahui'); respawnEnemyUnit(4, 'idinahui'); respawnEnemyUnit(6, 'idinahui'); } else { if (_root.timer > 30) { _root.enemies_max = 10; aaa = random(30); if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } } } } } } } } } function respawn_pattern_1008() { _root.powerupDROPchance = 15; if (_root.timer < 50) { _root.enemies_max = 8; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 6) { if (random(2) eq 1) { respawnEnemyUnit(33, whereto234); } } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(3, whereto234); } } } } } } } } } } else { if (_root.timer > 50 and _root.timer < 65) { _root.enemies_max = 8; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(32, whereto234); } else { if (aaa eq 2) { if (random(2) eq 1) { respawnEnemyUnit(33, whereto234); } } else { if (aaa eq 3) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(19, whereto234); } } } } } } else { if (_root.timer > 70) { _root.enemies_max = 10; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(10, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1006() { _root.powerupDROPchance = 15; if (_root.timer < 60) { _root.enemies_max = 12; dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; aaa = random(20); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(30, whereto234); } else { respawnEnemyUnit(32, 'left'); } } } } } } } } } } } } } } else { if (_root.timer > 60) { _root.enemies_max = 12; dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; aaa = random(30); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(33, 'left'); } else { if (aaa eq 14) { respawnEnemyUnit(31, 'left'); } else { if (aaa eq 15) { respawnEnemyUnit(3, 'left'); } else { if (aaa eq 16) { respawnEnemyUnit(14, 'left'); } else { if (aaa eq 17) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 18) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 19) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 20) { respawnEnemyUnit(17, 'left'); } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1007() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(20); whereto234 = 'left'; if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(10, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(14, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(10, 'left'); } } } } } } } } } } } } } } } function respawn_pattern_23() { _root.powerupDROPchance = 15; if (_root.timer < 10) { _root.enemies_max = 10; respawnEnemyUnit(1, 'idinahui'); } else { if (_root.timer > 10 and _root.timer < 20) { respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 25) { respawnEnemyUnit(4, 'idinahui'); } else { if (_root.timer > 25 and _root.timer < 30) { respawnEnemyUnit(17, 'idinahui'); } else { if (_root.timer > 30 and _root.timer < 35) { respawnEnemyUnit(9, 'idinahui'); } else { if (_root.timer > 35 and _root.timer < 40) { respawnEnemyUnit(6, 'idinahui'); } else { if (_root.timer > 40 and _root.timer < 45) { respawnEnemyUnit(8, 'idinahui'); } else { if (_root.timer > 45 and _root.timer < 50) { respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 50 and _root.timer < 55) { respawnEnemyUnit(18, 'idinahui'); } else { if (_root.timer > 55 and _root.timer < 70) { respawnEnemyUnit(2, 'idinahui'); } else { if (_root.timer > 70 and _root.timer < 80) { respawnEnemyUnit(3, 'idinahui'); } else { if (_root.timer > 80 and _root.timer < 85) { respawnEnemyUnit(31, 'idinahui'); respawnEnemyUnit(33, 'idinahui'); } else { if (_root.timer > 85 and _root.timer < 100) { _root.enemies_max = 10; aaa = random(20); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } else { if (_root.timer > 100 and _root.timer < 150) { _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } else { if (_root.timer > 150) { _root.enemies_max = 10; aaa = random(33) + 1; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(aaa, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_survival() { _root.powerupDROPchance = 15; _root.enemies_max = 10; if (_root.timer < 20) { _root.enemies_max = 5; } else { if (_root.timer > 20 and _root.timer < 30) { _root.enemies_max = 8; } else { if (_root.timer > 30) { _root.enemies_max = 10; } } } if (_root.timer < 10) { survivalUnitsArray = []; survivalUnitsArray.push(30); } else { if (_root.timer > 10 and _root.timer < 20) { survivalUnitsArray = []; survivalUnitsArray.push(30); survivalUnitsArray.push(28); } else { if (_root.timer > 20 and _root.timer < 30) { survivalUnitsArray = []; survivalUnitsArray.push(3); survivalUnitsArray.push(28); survivalUnitsArray.push(30); } else { if (_root.timer > 30 and _root.timer < 40) { survivalUnitsArray = []; survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 50 and _root.timer < 60) { survivalUnitsArray = []; survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 60 and _root.timer < 70) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 70 and _root.timer < 80) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 80 and _root.timer < 90) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 90 and _root.timer < 200) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 200 and _root.timer < 220) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(3); survivalUnitsArray.push(18); survivalUnitsArray.push(30); } else { if (_root.timer > 220 and _root.timer < 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(32); } else { if (_root.timer > 300 and _root.timer < 500) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); if (random(3) eq 1) { survivalUnitsArray.push(26); } survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); if (random(2) eq 1) { survivalUnitsArray.push(33); } } else { if (_root.timer > 500) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(26); survivalUnitsArray.push(26); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); survivalUnitsArray.push(33); } } } } } } } } } } } } } if (_root.timer < 120) { whereto234 = 'yiff'; } else { if (_root.timer > 120) { if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } } } enemy_speedmax_3 = 1; if (_root.timer > 50) { enemy_speedmax_3 = 2.5; } if (_root.timer > 180) { dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function respawn_pattern_armageddon() { _root.powerupDROPchance = 15; _root.enemies_max = 10; if (_root.timer < 100) { survivalUnitsArray = []; survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); } else { if (_root.timer > 200 and _root.timer < 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); if (random(3) eq 1) { survivalUnitsArray.push(26); } survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); if (random(2) eq 1) { survivalUnitsArray.push(33); } } else { if (_root.timer > 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(26); survivalUnitsArray.push(26); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); survivalUnitsArray.push(33); } } } if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 2.5; if (_root.timer > 180) { dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function respawn_pattern_sandbox() { _root.powerupDROPchance = 15; _root.enemies_max = _root.SANDBOXenemies_max; survivalUnitsArray = []; i = 1; while (i < 41) { if (_root['sandyiff_unit_online_' + i] eq 1) { survivalUnitsArray.push(i); } ++i; } if (_root.sandbox_attackDirection eq 1) { whereto234 = 'left'; } else { if (_root.sandbox_attackDirection eq 2) { whereto234 = 'yiff'; } else { if (_root.sandbox_attackDirection eq 3) { if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } } } } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function levelingUP() { _root.expmax_1 = 15; if (_root.experience > _root.expmax_1 and _root.lvl eq 1) { showLVLup(); _root.expmax_2 = 30; _root.lvl = 2; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_2 and _root.lvl eq 2) { showLVLup(); _root.expmax_3 = 45; _root.lvl = 3; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_3 and _root.lvl eq 3) { showLVLup(); _root.expmax_4 = 60; _root.lvl = 4; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_4 and _root.lvl eq 4) { showLVLup(); _root.expmax_5 = 90; _root.lvl = 5; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_5 and _root.lvl eq 5) { showLVLup(); _root.expmax_6 = 180; _root.lvl = 6; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_6 and _root.lvl eq 6) { showLVLup(); _root.expmax_7 = 360; _root.lvl = 7; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_7 and _root.lvl eq 7) { showLVLup(); _root.expmax_8 = 600; _root.lvl = 8; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_8 and _root.lvl eq 8) { showLVLup(); _root.expmax_9 = 900; _root.lvl = 9; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_9 and _root.lvl eq 9) { showLVLup(); _root.expmax_10 = 1200; _root.lvl = 10; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_10 and _root.lvl eq 10) { showLVLup(); _root.expmax_11 = 1500; _root.lvl = 11; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_11 and _root.lvl eq 11) { showLVLup(); _root.expmax_12 = 1800; _root.lvl = 12; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_12 and _root.lvl eq 12) { showLVLup(); _root.expmax_13 = 2200; _root.lvl = 13; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_13 and _root.lvl eq 13) { showLVLup(); _root.expmax_14 = 2600; _root.lvl = 14; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_14 and _root.lvl eq 14) { showLVLup(); _root.expmax_15 = 3000; _root.lvl = 15; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_15 and _root.lvl eq 15) { showLVLup(); _root.expmax_16 = 3400; _root.lvl = 16; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_16 and _root.lvl eq 16) { showLVLup(); _root.expmax_17 = 3800; _root.lvl = 17; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_17 and _root.lvl eq 17) { showLVLup(); _root.expmax_18 = 4200; _root.lvl = 18; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_18 and _root.lvl eq 18) { showLVLup(); _root.expmax_19 = 4600; _root.lvl = 19; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_19 and _root.lvl eq 19) { showLVLup(); _root.expmax_20 = 5000; _root.lvl = 20; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_20 and _root.lvl eq 20) { showLVLup(); _root.expmax_21 = 5700; _root.lvl = 21; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_21 and _root.lvl eq 21) { showLVLup(); _root.expmax_22 = 6400; _root.lvl = 22; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_22 and _root.lvl eq 22) { showLVLup(); _root.expmax_23 = 7100; _root.lvl = 23; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_23 and _root.lvl eq 23) { showLVLup(); _root.expmax_24 = 8000; _root.lvl = 24; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_24 and _root.lvl eq 24) { showLVLup(); _root.expmax_25 = 9000; _root.lvl = 25; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_25 and _root.lvl eq 25) { showLVLup(); _root.expmax_26 = 99999; _root.lvl = 26; _root.skill_points += 5; } } } } } } } } } } } } } } } } } } } } } } } } } } function upgradesIntegrity() { _root.launcher_energy_max = Math.floor(1000 + 66.666 * _root.energy_upgrade); _root.energy_regen_rate = 0.3 + 0.03333 * _root.energy_upgrade; if (_root.zeroConduit < _root.zeroConduit_max) { } else { _root.energy_regen_rate *= 2.5; } _root.energy_regen_rate_percent = Math.floor(1000 * _root.energy_regen_rate / 0.3) / 10; _root.launcher_shield_max = 3000 + 100 * _root.shield_upgrade; _root.shld_regen_rate = 4 + 0.06666 * _root.shield_upgrade; _root.shld_regen_rate_percent = Math.floor(1000 * _root.shld_regen_rate / 4) / 10; _root.balldmg_base_1 = 200 + _root.proj_upgrade_1 * 10; _root.balldmg_plus_1 = 500 + _root.proj_upgrade_1 * 10; _root.projectile_speed_1 = 25; _root.projectile_mass_1 = 40 + _root.proj_upgrade_1; _root.projectile_radius_1 = 22; _root.projectile_lifetime_1 = Math.floor((1.5 + _root.proj_upgrade_1 * 0.187654) * 10) / 10; _root.projectile_encost_1 = 50 + _root.proj_upgrade_1 * 5; _root.balldmg_base_2 = 200 + _root.proj_upgrade_2 * 25; _root.balldmg_plus_2 = 500 + _root.proj_upgrade_2 * 20; _root.projectile_speed_2 = 40; _root.projectile_mass_2 = 60 + _root.proj_upgrade_2 * 2; _root.projectile_radius_2 = 22; _root.projectile_lifetime_2 = 4; _root.projectile_encost_2 = Math.floor(200 + _root.proj_upgrade_2 * 6.7); _root.balldmg_base_3 = 500; _root.balldmg_plus_3 = 1000; _root.projectile_speed_3 = 15; _root.projectile_mass_3 = 650 + _root.proj_upgrade_3 * 15; _root.projectile_radius_3 = 22; _root.projectile_lifetime_3 = 6; _root.projectile_encost_3 = 400 - _root.proj_upgrade_3 * 20; _root.balldmg_base_4 = 700; _root.balldmg_plus_4 = 700; _root.projectile_speed_4 = 30; _root.projectile_mass_4 = 50; _root.projectile_radius_4 = 22; _root.projectile_lifetime_4 = 8; _root.projectile_encost_4 = 300 - _root.proj_upgrade_4 * 20; _root.projectile_speed_5 = 6 - _root.proj_upgrade_5 * 0.1; _root.projectile_mass_5 = 150; _root.projectile_radius_5 = 22; _root.projectile_lifetime_5 = 12 + _root.proj_upgrade_5; _root.projectile_encost_5 = 1000 - _root.proj_upgrade_5 * 62; _root.ballProjectile_reloading_time_5 = Math.floor(30 - _root.proj_upgrade_5 * 0.7); if (_root.forced_only_antimatter eq 1) { projectile_speed_6 = 40; projectile_mass_6 = 150; projectile_radius_6 = 22; projectile_lifetime_6 = 10; projectile_encost_6 = 100; } else { _root.projectile_speed_6 = 10 + _root.proj_upgrade_6 * 3; _root.projectile_mass_6 = 150; _root.projectile_radius_6 = 22; _root.projectile_lifetime_6 = 12; _root.projectile_encost_6 = 800 - _root.proj_upgrade_6 * 50; } if (_root.proj_upgrade_general > 24) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 1; _root.ballProjectile_available_5 = 1; } else { if (_root.proj_upgrade_general > 14) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 1; _root.ballProjectile_available_5 = 0; } else { if (_root.proj_upgrade_general > 9) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } else { if (_root.proj_upgrade_general > 4) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } else { _root.ballProjectile_available_2 = 0; _root.ballProjectile_available_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } } } } var v2 = 2; while (v2 < 6) { if (_root['ballProjectile_available_' + v2] eq 0 and _root['proj_upgrade_' + v2] > 0) { _root.skill_points += _root['proj_upgrade_' + v2]; _root['proj_upgrade_' + v2] = 0; } ++v2; } if (_root.projPlus1Upgrade < _root.projPlus1Upgrade_max) { projplus1 = 0; } else { projplus1 = 1; } if (_root.projPlus2Upgrade < _root.projPlus2Upgrade_max) { projplus2 = 0; } else { projplus2 = 1; } _root.maxBallsOnTheField = 1 + projplus1 + projplus2; if (_root.projCatcherUpgrade < _root.projCatcherUpgrade_max) { _root.projectile_catcher_activated = 0; } else { _root.projectile_catcher_activated = 1; } if (_root.speedUpgrade1 < _root.speedUpgrade1_max) { _root.speedUpgrade1_activated = 0; } else { _root.speedUpgrade1_activated = 1; } if (_root.ballActivationUpgrade < _root.ballActivationUpgrade_max) { _root.ball_cativation_distance = 30; } else { _root.ball_cativation_distance = 90; } if (mapchosen > 2000) { _root.ball_cativation_distance = 90; } if (_root.advShieldUpgrade < _root.advShieldUpgrade_max) { _root.DMG_blcok_chance = -1; } else { _root.DMG_blcok_chance = 30; } if (_root.speedUpgrade2 < _root.speedUpgrade2_max) { _root.speedUpgrade2_activated = 0; } else { _root.speedUpgrade2_activated = 1; } if (_root.timeUpgrade < _root.timeUpgrade_max) { _root.wpn_reloading_time_0 = 70; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 30; _root.wpn_reloading_time_3 = 30; _root.wpn_reloading_time_4 = 50; _root.wpn_reloading_time_5 = 60; } else { _root.wpn_reloading_time_0 = 50; _root.wpn_reloading_time_1 = 20; _root.wpn_reloading_time_2 = 20; _root.wpn_reloading_time_3 = 20; _root.wpn_reloading_time_4 = 40; _root.wpn_reloading_time_5 = 50; } if (mapchosen > 2000) { _root.wpn_reloading_time_0 = 50; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 40; _root.wpn_reloading_time_3 = 60; _root.wpn_reloading_time_4 = 60; _root.wpn_reloading_time_5 = 50; } if (_root.SAND_invul eq 1 and mapchosen eq 2003) { _root.DMG_blcok_chance = 100; _root.invul_activated = 1; _root.invul_timer = _root.invul_time; _root.overdrive_timer = 0; _root.yiff.playerTank.blendMode = 14; } if (mapchosen eq 2003 and _root.SAND_instantReload eq 1) { _root.wpn_reloading_time_0 = 0; _root.wpn_reloading_time_1 = 0; _root.wpn_reloading_time_2 = 0; _root.wpn_reloading_time_3 = 0; _root.wpn_reloading_time_4 = 0; _root.wpn_reloading_time_5 = 0; _root.dimensionalSHift_delay = 0; _root.overdrive_delay = 0; _root.ballProjectile_reloading_time_2 = 0; _root.ballProjectile_reloading_time_3 = 0; _root.ballProjectile_reloading_time_4 = 0; _root.ballProjectile_reloading_time_5 = 0; _root.ballProjectile_reloading_time_6 = 0; } if (_root.map_status_1003 eq 2) { _root.wpn_available_2 = 1; } else { _root.wpn_available_2 = 0; } if (_root.map_status_1004 eq 2) { _root.wpn_available_3 = 1; } else { _root.wpn_available_3 = 0; } if (_root.map_status_1005 eq 2 or _root.forced_only_antimatter eq 1) { _root.ballProjectile_available_6 = 1; } else { _root.ballProjectile_available_6 = 0; } if (_root.map_status_1006 eq 2) { _root.wpn_available_4 = 1; } else { _root.wpn_available_4 = 0; } if (_root.map_status_1007 eq 2) { _root.wpn_available_5 = 1; } else { _root.wpn_available_5 = 0; } if (_root.forced_only_antimatter eq 1) { _root.ballProjectile_reloading_timer_6 = 999; _root.ammo_chosen = 6; } if (mapchosen > 2000) { _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.wpn_available_2 = 1; _root.wpn_available_3 = 1; _root.wpn_available_4 = 1; _root.wpn_available_5 = 1; _root.wpn_available_6 = 1; _root.ballProjectile_available_6 = 1; } } function initiateYiffingField() { _root.yiff._visible = true; yiff.createEmptyMovieClip('enemy_projectile_shell', _root.enemy_projectile_depth); yiff.createEmptyMovieClip('blackholes_shell', _root.blackholes_depth); yiff.createEmptyMovieClip('explosions_special_shell', _root.explosions_special_depth); yiff.createEmptyMovieClip('explosions_shell', _root.explosions_depth); yiff.createEmptyMovieClip('magnetballs_shell', _root.magnetballs_depth); yiff.createEmptyMovieClip('enemies_shell', _root.enemies_depth); yiff.createEmptyMovieClip('bounceballs_shell', _root.bounceballs_depth); yiff.createEmptyMovieClip('shleif_shell', _root.shleif_depth); yiff.createEmptyMovieClip('turrets_shell', _root.turrets_depth); yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); yiff.createEmptyMovieClip('powerups_shell', _root.powerups_depth); yiff.createEmptyMovieClip('kraters_shell', _root.kraters_depth); yiff.createEmptyMovieClip('rubbish_shell', _root.background_rubbish_depth); yiff.kraters_shell.cacheAsBitmap = true; yiff.rubbish_shell.cacheAsBitmap = true; _root.attachMovie('upperPannel', 'upperPannel', _root.upper_pannel_depth); _root.upperPannel._x = 765; _root.upperPannel._y = 16; _root.attachMovie('ingame_menu', 'ingame_menu', _root.ingame_menu_depth); _root.ingame_menu._x = 400; _root.ingame_menu._y = 556; _root.ingame_menu.showinfo = ''; spawnPlayerTank(2); } function deactivateYiffingField() { removeMovieClip(_root.getbackMSG); trgtlayer = _root.yiff; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { removeMovieClip(trgtlayer[v2]); } } trgtlayer = _root; for (v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2] != _root.show_quality and trgtlayer[v2] != _root.theBannerCore and trgtlayer[v2] != _root.game_music_shell) { removeMovieClip(trgtlayer[v2]); } } } _root.attachMovie('kursor', 'kursor', _root.kursor_depth); yiff.createEmptyMovieClip('enemy_projectile_shell', _root.enemy_projectile_depth); yiff.createEmptyMovieClip('blackholes_shell', _root.blackholes_depth); yiff.createEmptyMovieClip('explosions_special_shell', _root.explosions_special_depth); yiff.createEmptyMovieClip('explosions_shell', _root.explosions_depth); yiff.createEmptyMovieClip('magnetballs_shell', _root.magnetballs_depth); yiff.createEmptyMovieClip('enemies_shell', _root.enemies_depth); yiff.createEmptyMovieClip('bounceballs_shell', _root.bounceballs_depth); yiff.createEmptyMovieClip('shleif_shell', _root.shleif_depth); yiff.createEmptyMovieClip('turrets_shell', _root.turrets_depth); yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); yiff.createEmptyMovieClip('powerups_shell', _root.powerups_depth); yiff.createEmptyMovieClip('kraters_shell', _root.kraters_depth); yiff.createEmptyMovieClip('rubbish_shell', _root.background_rubbish_depth); yiff.kraters_shell.cacheAsBitmap = true; yiff.rubbish_shell.cacheAsBitmap = true; removeMovieClip(_root.upperPannel); removeMovieClip(_root.ingame_menu); _root.yiff._visible = false; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); saveANDload('load'); } function reloadVars11() { initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); } function FUnkciyaKotorayaNaKnopkeDlaProbela() { if (_root.game_functions_activated eq 0) { return undefined; } if (mouse_is_down != 0 and _root.kursorisinmenu != 1) { return undefined; } if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } if (_root.wpn_menu) { BTN_cancelClose_wpnmenu(); return undefined; } if (_root.yiff_paused eq 1) { _root.yiff_paused = 0; globalPause('unpause'); removeMovieClip(_root.pause_menu); removeMovieClip(_root.upgrades_menu); } else { _root.pause_snd.start(); _root.yiff_paused = 1; _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; globalPause('pause'); spawn_pause_menu(); } } function gameplayFunctions() { scenarioIntegrity(); failureIntegrity(); DMG_randomizers(); otherTimers(); wpnTimersIntegrity(); ballProjectileTimerz(); playerTankIntegrity(); showhpIntegrity(); var v5 = 0; while (v5 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v5]; powerupIntegrity(checkpup); ++v5; } createFriendlyTargetsArray(); createTurretsArray(); createMagnetsArray(); createGravityNukesArray(); createSingularitiesArray(); createBounceBallsArray(); createEnemiesArray(); createPowerupsArray(); escapeThroughTeleporter(); v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; enemyAttack(checkenemy); ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; turretAttack(checkturret); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; DefineSpeed(checkenemy); enemy_hp_monitoring(checkenemy); ++v5; } var v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; DefineSpeed(checkmagnet); shleif(checkmagnet); ++v6; } trgtlayer = _root.yiff.enemy_projectile_shell; for (var v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { DefineSpeed(trgtlayer[v7]); } } DefineSpeed(_root.yiff.playerTank); enemy_hp_monitoring(_root.yiff.playerTank); v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; DefineSpeed(checkball); shleif(checkball); bounceballIntegrity(checkball); ++v5; } if (_root.yiff.playerTank.shift_mode != 1) { v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; Krutilka(checkball, _root.yiff.playerTank); ++v5; } } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; moveObject(checkenemy); ++v5; } moveObject(_root.yiff.playerTank); trgtlayer = _root.yiff.enemy_projectile_shell; for (v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { if (trgtlayer[v7].id eq 'friendlyProjectile') { turretProjectileIntegrity(trgtlayer[v7]); } if (trgtlayer[v7].id eq 'enemy_projectile') { enemyProjectileIntegrity(trgtlayer[v7]); } if (trgtlayer[v7].xspeed > -99999999 or trgtlayer[v7].yspeed > -99999999) { moveObject(trgtlayer[v7]); } } } v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; moveObject(checkmagnet); ++v6; } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; if (checkball.charged != 1) { moveObject(checkball); } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; turretIntegrity(checkturret); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; Enemy_movement_to_target(checkenemy); Enemy_rotation(checkenemy); ++v5; } playerMovement(); if (_root.yiff.playerTank.id eq 1) { PlayerTank_rotation(_root.yiff.playerTank); if (_root.yiff.playerTank.tower.shootinganimation eq 0) { rotationTowardsPoint(_root.yiff.playerTank.tower, _root.yiff.playerTank._xmouse, _root.yiff.playerTank._ymouse, 0); } } else { PlayerTank_rotation2(_root.yiff.playerTank); } if (_root.projectile_catcher_activated eq 1) { projectileCatcher(); } markersIntegrity(); gravNukeEffect(); implosionIntegrity(); blackHolesIntegrity(); blackBallIntegrity(); carpetBombingIntegrity(); magnet_balls_integrity(); v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; WallCollision(checkmagnet); ++v6; } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; WallCollision(checkball); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; if (_root.yiff.wall_upper or _root.yiff.wall_bottom) { Enemy2WallCollision(checkenemy); } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; b2 = checkturret; b1 = _root.yiff.playerTank; ballToBallDetection(b1, b2, 1); enemy2enemy_ottalkivanie(b1, b2, distance); enemy_zashita_ot_skleivaniya(b2, b1); ++v5; } Enemy2WallCollision(_root.yiff.playerTank); if (_root.yiff.playerTank.shift_mode != 1) { v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b1 = checkenemy; b2 = _root.yiff.playerTank; ballToBallDetection(b1, b2, 1); enemy_zashita_ot_skleivaniya(_root.yiff.playerTank, checkenemy); calc12312 = CALC_Dist_Xv_Yv(b1._x, b1._y, b2._x, b2._y); distance = calc12312[0]; enemy2enemy_ottalkivanie(checkenemy, _root.yiff.playerTank, distance); ++v5; } } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b2 = checkenemy; v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; b1 = checkmagnet; ballToBallDetection(b1, b2, 5); ++v6; } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; b2 = checkturret; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; b1 = checkenemy; ballToBallDetection(b1, b2, 1); enemy2enemy_ottalkivanie(b1, b2, distance); enemy_zashita_ot_skleivaniya(b1, b2); ++v2; } ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b2 = checkenemy; var v3 = 0; while (v3 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v3]; b1 = checkball; ballToBallDetection(b1, b2, 0); ++v3; } ++v5; } v5 = _root.enemiesOnTheField + 1; while (--v5 + 1) { checkenemy1 = _root.enemiesArray[v5]; var b1 = checkenemy1; var v4 = v5; while (--v4 + 1) { checkenemy2 = _root.enemiesArray[v4]; var b2 = checkenemy2; if (b1 and b2) { calc12312 = CALC_Dist_Xv_Yv(b1._x, b1._y, b2._x, b2._y); distance = calc12312[0]; enemy2enemy_ottalkivanie(b1, b2, distance); if (distance < _root.maxspeed * 2) { ballToBallDetection(b1, b2, 1); enemy_zashita_ot_skleivaniya(b1, b2); } } } } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; if (checkball.charged != 1) { renderObject(checkball); } ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; renderObject(checkenemy); ++v5; } renderObject(_root.yiff.playerTank); v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; renderObject(checkmagnet); ++v6; } trgtlayer = _root.yiff.enemy_projectile_shell; for (v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { if (trgtlayer[v7].xspeed > -99999999 or trgtlayer[v7].yspeed > -99999999) { renderObject(trgtlayer[v7]); } } } if (_root.yiff.playerTank.shift_mode != 1) { if (_root.yiff.playerTank.what eq 'GravityLauncher' and mouse_is_down eq 1 and _root.kursorisinmenu != 1) { tankChargeShooting_2(); } } if (_root.yiff.playerTank.shift_mode != 1) { if (_root.bounceballsOnTheField < _root.maxBallsOnTheField and _root.yiff.playerTank.what eq 'GravityLauncher') { if (_root.greenballsOnTHeFIeld < 2) { spawnBounceBall(); } } } } function pauseEffects(trgt, dowhat) { if (dowhat eq 'pause') { trgt.stop(); trgt.aaa.stop(); trgt.aaa.bbb.stop(); trgt.aaa.bbb.ccc.stop(); trgt.aaa.bbb.ccc.ddd.stop(); trgt.aaa.aaa.stop(); trgt.aaa2.stop(); trgt.bbb.stop(); trgt.ccc.stop(); trgt.ddd.stop(); trgt.insides.stop(); } else { trgt.play(); trgt.aaa.play(); trgt.aaa.bbb.play(); trgt.aaa.bbb.ccc.play(); trgt.aaa.bbb.ccc.ddd.play(); trgt.aaa.aaa.play(); trgt.aaa2.play(); trgt.bbb.play(); trgt.ccc.play(); trgt.ddd.play(); trgt.insides.play(); } } function pauseTanksTurrets(trgt, dowhat) { if (dowhat eq 'pause') { trgt.aaa.stop(); trgt.torso.aaa.stop(); if (trgt.ballhitanim._currentframe > 1) { trgt.ballhitanim.stop(); trgt.ballhitanim.aaa.stop(); trgt.ballhitanim.bbb.stop(); } if (trgt.tower._currentframe > 1) { trgt.tower.stop(); } } else { trgt.aaa.play(); trgt.torso.aaa.play(); if (trgt.ballhitanim._currentframe > 1) { trgt.ballhitanim.play(); trgt.ballhitanim.aaa.play(); trgt.ballhitanim.bbb.play(); } if (trgt.tower._currentframe > 1) { trgt.tower.play(); } } } function pauseTeleporter(trgt, dowhat) { if (dowhat eq 'pause') { _root.yiff.rezinka_blue.aaa.bbb.stop(); _root.yiff.warping_unit.aaa.stop(); _root.yiff.warping_unit.bbb.stop(); } else { _root.yiff.rezinka_blue.aaa.bbb.play(); _root.yiff.warping_unit.aaa.play(); _root.yiff.warping_unit.bbb.play(); } if (dowhat eq 'pause') { trgt.body.stop(); trgt.body.a1.stop(); trgt.body.a2.stop(); } else { trgt.body.play(); trgt.body.a1.play(); trgt.body.a2.play(); } } function pauseBalls(trgt, dowhat) { if (dowhat eq 'pause') { trgt.aura.stop(); trgt.aaa2.stop(); trgt.aaa.bbb.ccc.stop(); trgt.aaa.bbb.ccc.ddd.stop(); if (trgt.vspishka._currentframe > 1) { trgt.vspishka.stop(); } if (trgt.vspishka2._currentframe > 1) { trgt.vspishka2.stop(); } } else { trgt.aura.play(); trgt.aaa2.play(); trgt.aaa.bbb.ccc.play(); trgt.aaa.bbb.ccc.ddd.play(); if (trgt.vspishka._currentframe > 1) { trgt.vspishka.play(); } if (trgt.vspishka2._currentframe > 1) { trgt.vspishka2.play(); } } } function globalPause(dowhat) { if (dowhat eq 'pause') { _root.getbackMSG.stop(); } else { _root.getbackMSG.play(); } if (dowhat eq 'pause') { _root.mouse_over_powerup = 0; var v3 = 0; while (v3 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v3]; checkpup._visible = false; ++v3; } } else { var v3 = 0; while (v3 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v3]; checkpup._visible = true; ++v3; } } trgtlayer = _root.yiff.enemy_projectile_shell; for (var v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } pauseEffects(_root.yiff.implosion, dowhat); trgtlayer = _root.yiff.blackholes_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.explosions_special_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.explosions_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.magnetballs_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.shleif_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } pauseTeleporter(_root.yiff.teleporter, dowhat); trgtlayer = _root.yiff.bounceballs_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseBalls(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.enemies_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseTanksTurrets(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.turrets_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseTanksTurrets(trgtlayer[v4], dowhat); } } if (dowhat eq 'pause') { _root.yiff.carpetbombingAnim.stop(); _root.yiff.playerTank.torso.aaa.stop(); } else { _root.yiff.carpetbombingAnim.play(); _root.yiff.playerTank.torso.aaa.play(); } } _root.projectile_trails_enabled = 1; _root.ball_bounce_1 = new Sound(); _root.ball_bounce_1.attachSound('ball_bounce_1'); _root.ball_bounce_2 = new Sound(); _root.ball_bounce_2.attachSound('ball_bounce_2'); _root.ball_fly_1 = new Sound(); _root.ball_fly_1.attachSound('ball_fly_1'); _root.ball_fly_2 = new Sound(); _root.ball_fly_2.attachSound('ball_fly_2'); _root.balltoenemy_impact1 = new Sound(); _root.balltoenemy_impact1.attachSound('balltoenemy_impact1'); _root.balltoenemy_impact2 = new Sound(); _root.balltoenemy_impact2.attachSound('balltoenemy_impact2'); _root.impact_enemy2wall_1 = new Sound(); _root.impact_enemy2wall_1.attachSound('impact_enemy2wall_1'); _root.impact_enemy2wall_2 = new Sound(); _root.impact_enemy2wall_2.attachSound('impact_enemy2wall_2'); _root.impact_enemy2wall_3 = new Sound(); _root.impact_enemy2wall_3.attachSound('impact_enemy2wall_3'); _root.impact_enemy2wall_4 = new Sound(); _root.impact_enemy2wall_4.attachSound('impact_enemy2wall_4'); _root.impact_enemy2enemy_1 = new Sound(); _root.impact_enemy2enemy_1.attachSound('impact_enemy2enemy_1'); _root.impact_enemy2enemy_2 = new Sound(); _root.impact_enemy2enemy_2.attachSound('impact_enemy2enemy_2'); _root.impact_enemy2enemy_3 = new Sound(); _root.impact_enemy2enemy_3.attachSound('impact_enemy2enemy_3'); _root.impact_enemy2enemy_4 = new Sound(); _root.impact_enemy2enemy_4.attachSound('impact_enemy2enemy_4'); _root.impact_enemy2enemy_5 = new Sound(); _root.impact_enemy2enemy_5.attachSound('impact_enemy2enemy_5'); _root.impact_enemy2enemy_6 = new Sound(); _root.impact_enemy2enemy_6.attachSound('impact_enemy2enemy_6'); _root.impact_enemy2enemy_7 = new Sound(); _root.impact_enemy2enemy_7.attachSound('impact_enemy2enemy_7'); _root.impact_enemy2enemy_8 = new Sound(); _root.impact_enemy2enemy_8.attachSound('impact_enemy2enemy_8'); _root.impact_enemy2enemy_9 = new Sound(); _root.impact_enemy2enemy_9.attachSound('impact_enemy2enemy_9'); _root.impact_enemy2enemy_10 = new Sound(); _root.impact_enemy2enemy_10.attachSound('impact_enemy2enemy_10'); _root.impact_enemy2enemy_11 = new Sound(); _root.impact_enemy2enemy_11.attachSound('impact_enemy2enemy_11'); _root.impact_enemy2enemy_12 = new Sound(); _root.impact_enemy2enemy_12.attachSound('impact_enemy2enemy_12'); _root.impact_enemy2enemy_13 = new Sound(); _root.impact_enemy2enemy_13.attachSound('impact_enemy2enemy_13'); _root.impact_enemy2enemy_14 = new Sound(); _root.impact_enemy2enemy_14.attachSound('impact_enemy2enemy_14'); _root.impact_enemy2enemy_15 = new Sound(); _root.impact_enemy2enemy_15.attachSound('impact_enemy2enemy_15'); _root.impact_enemy2enemy_16 = new Sound(); _root.impact_enemy2enemy_16.attachSound('impact_enemy2enemy_16'); _root.Explosion_1 = new Sound(); _root.Explosion_1.attachSound('Explosion_1'); _root.Explosion_2 = new Sound(); _root.Explosion_2.attachSound('Explosion_2'); _root.Explosion_3 = new Sound(); _root.Explosion_3.attachSound('Explosion_3'); _root.Explosion_4 = new Sound(); _root.Explosion_4.attachSound('Explosion_4'); _root.Explosion_5 = new Sound(); _root.Explosion_5.attachSound('Explosion_5'); _root.Explosion_6 = new Sound(); _root.Explosion_6.attachSound('Explosion_6'); _root.Explosion_7 = new Sound(); _root.Explosion_7.attachSound('Explosion_7'); _root.snd_dimshiftin = new Sound(); _root.snd_dimshiftin.attachSound('dimshiftin'); _root.snd_dimshiftout = new Sound(); _root.snd_dimshiftout.attachSound('dimshiftout'); _root.impact_enemy2wall_1 = new Sound(); _root.impact_enemy2wall_1.attachSound('impact_enemy2wall_1'); _root.impact_enemy2wall_2 = new Sound(); _root.impact_enemy2wall_2.attachSound('impact_enemy2wall_2'); _root.impact_enemy2wall_3 = new Sound(); _root.impact_enemy2wall_3.attachSound('impact_enemy2wall_3'); _root.impact_enemy2wall_4 = new Sound(); _root.impact_enemy2wall_4.attachSound('impact_enemy2wall_4'); _root.IMPACT_singularity = new Sound(); _root.IMPACT_singularity.attachSound('IMPACT_singularity'); _root.tankshot_1 = new Sound(); _root.tankshot_1.attachSound('tankshot'); _root.tankshot_2 = new Sound(); _root.tankshot_2.attachSound('tankshot2'); _root.enemyTankShot1_2 = new Sound(); _root.enemyTankShot1_2.attachSound('enemyTankShot1_2'); _root.enemyTankShot1_1 = new Sound(); _root.enemyTankShot1_1.attachSound('enemyTankShot1_1'); _root.enemyTankShot2 = new Sound(); _root.enemyTankShot2.attachSound('enemy_tank_shot_3'); _root.enemyShotSnd_9 = new Sound(); _root.enemyShotSnd_9.attachSound('enemy_tank_shot_9'); _root.enemyShotSnd_26 = new Sound(); _root.enemyShotSnd_26.attachSound('enemy_tank_shot_26'); _root.enemyShotSnd_30 = new Sound(); _root.enemyShotSnd_30.attachSound('enemy_tank_shot_30'); _root.bullet_hit_1 = new Sound(); _root.bullet_hit_1.attachSound('bullet_hit_1'); _root.ballcaught_snd = new Sound(); _root.ballcaught_snd.attachSound('ballcaught'); _root.deploy_snd = new Sound(); _root.deploy_snd.attachSound('deploy'); _root.minesthrow = new Sound(); _root.minesthrow.attachSound('throwout.wav'); _root.error_snd_1 = new Sound(); _root.error_snd_1.attachSound('error_snd_1'); _root.plasmahit_1 = new Sound(); _root.plasmahit_1.attachSound('plasmahit_1'); _root.plasmahit_2 = new Sound(); _root.plasmahit_2.attachSound('plasmahit_2'); _root.plasmahit_3 = new Sound(); _root.plasmahit_3.attachSound('plasmahit_3'); _root.turret_shot_1 = new Sound(); _root.turret_shot_1.attachSound('turret_shot_1'); _root.pause_snd = new Sound(); _root.pause_snd.attachSound('pause_snd'); _root.overdrive_snd = new Sound(); _root.overdrive_snd.attachSound('overdrive_get'); _root.sound = new Sound(); var game_music_shell = this.createEmptyMovieClip(_root, 161000); _root.game_music_shell.menu_loop = new Sound(); _root.game_music_shell.menu_loop.attachSound('menu_loop'); _root.worldmap_loop = new Sound(); _root.worldmap_loop.attachSound('worldmap_wav'); _root.sound = new Sound(); initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); _root.attachMovie('kursor', 'kursor', _root.kursor_depth); initPROGRESSVars(); _root.SANDBOXenemies_max = 8; _root.sandbox_attackDirection = 3; _root.SAND_invul = 0; _root.SAND_instantReload = 0; _root.SAND_MaxLVL = 0; _root.SAND_instantReload = 0; _root.SAND_ALLmaxedUP = 0; i = 1; while (i < 41) { _root['sandyiff_unit_online_' + i] = 0; ++i; } spawnMainMenu(); onEnterFrame = function () { if (_root.play_menu_music eq 1) { DOmenuMusic(); } _root.sound.setVolume(_root.overall_volume); gotoAndStop(15); kursorIntegrity(); Mouse.hide(); if (_root.game_functions_activated != 0) { if (doMissionCalculation eq 1) { endMissionCalculation(); } levelingUP(); upgradesIntegrity(); wordlmapIntegrity(); spclWpnMenuIntegrity(); ballProjectileMenuIntegrity(); indicatorsIntegrity(); upperPannel_integrity(); upgradesMenuIntegrity(); if (_root.yiff_paused != 1 and _root.game_on_hold != 1) { loopmusic(); gameplayFunctions(); } if (_root.theBannerCore._visible eq true) { if (!_root.missionFInished_menu and !_root.missionFailed_menu) { _root.theBannerCore.UnloadBanner(); removeMovieClip(_root.zaglushka); } } } }; onMouseDown = function () { mouse_is_down = 1; if (_root.mouse_over_powerup eq 1) { return undefined; } if (_root.cursor_wpn_selected != 0) { spawnMarker(_root.cursor_wpn_selected); _root.cursor_wpn_selected = 0; } if (_root.yiff_paused eq 1 or _root.kursorisinmenu eq 1) { return undefined; } if (_root.gun_delay_1 != 1 and _root.kursorisinmenu != 1) { if (_root.yiff.playerTank.what eq 'SiegeTank') { tankShooting_1(); } } }; onMouseUp = function () { _root.ingame_menu.showinfo = ''; mouse_is_down = 0; if (_root.yiff_paused eq 1) { return undefined; } if (chosenball.charged eq 1 and _root.yiff.playerTank.what eq 'GravityLauncher') { tankShooting_2(); } chosenball.purpose = 'none'; chosenball = 'none'; chosenball.charged = 0; }; } frame 15 { stop(); } frame 15 { stop(); } movieClip 136 background_bottom_1 { } movieClip 137 yiff { instance of movieClip 136 background_bottom_1 { onClipEvent (load) { _visible = false; } } } frame 24 { stopAllSounds(); } frame 25 { stopAllSounds(); } movieClip 140 enemy_projectile_1 { } movieClip 152 enemyTankSHellDetonation_1 { frame 16 { removeMovieClip(this); } } movieClip 154 { } movieClip 156 { } movieClip 157 { } movieClip 159 { } movieClip 162 { } movieClip 163 { } movieClip 166 { } movieClip 168 { frame 1 { stop(); } } button 170 { on (rollOver, dragOver) { _root.mouseOverUnit = this_; } on (rollOut, dragOut) { _root.mouseOverUnit = 0; } } movieClip 171 { } movieClip 186 { frame 15 { stop(); } } movieClip 189 { } movieClip 190 { frame 1 { stop(); } } movieClip 191 enemy_1 { } movieClip 204 { } movieClip 205 { } movieClip 206 { } movieClip 210 { } movieClip 217 { frame 1 { stop(); } } movieClip 220 { frame 1 { stop(); } } movieClip 223 { } movieClip 226 { } movieClip 231 { } movieClip 232 { } movieClip 238 { } movieClip 239 bounceball_1 { frame 1 { stop(); } } movieClip 244 { } movieClip 245 shleif_1 { frame 15 { removeMovieClip(this); } } movieClip 246 shleif_2 { frame 15 { removeMovieClip(this); } } movieClip 247 shleif_0 { frame 15 { removeMovieClip(this); } } movieClip 248 shleif_3 { frame 15 { removeMovieClip(this); } } movieClip 249 shleif_4 { frame 15 { removeMovieClip(this); } } movieClip 250 shleif_5 { frame 15 { removeMovieClip(this); } } movieClip 251 shleif_6 { frame 15 { removeMovieClip(this); } } movieClip 253 { } movieClip 254 { } movieClip 257 { } movieClip 259 { } movieClip 264 { frame 1 { stop(); } } movieClip 265 enemy_2 { } movieClip 267 { } movieClip 270 { } movieClip 271 { } movieClip 273 { } movieClip 274 { } movieClip 275 enemy_3 { } movieClip 277 { } movieClip 278 { instance of movieClip 277 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 279 enemy_5 { } movieClip 281 { } movieClip 282 { instance of movieClip 281 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 283 enemy_6 { } movieClip 289 { } movieClip 290 { } movieClip 293 { } movieClip 294 { instance of movieClip 293 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 295 { instance skin_ of movieClip 294 { onClipEvent (load) { if (birth eq 'righty') { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 296 enemy_7 { } movieClip 299 { } movieClip 300 { } movieClip 301 { instance skin_ of movieClip 300 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 302 enemy_8 { } movieClip 305 { } movieClip 306 { } movieClip 307 { } movieClip 310 { } movieClip 311 { } movieClip 313 { } movieClip 317 { frame 1 { stop(); } instance of movieClip 311 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 318 tower_1 { instance of movieClip 305 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 320 { } movieClip 321 ray_1 { frame 9 { removeMovieClip(this); } } movieClip 326 { } movieClip 335 { } movieClip 338 turret_hit_1 { frame 16 { removeMovieClip(this); } } movieClip 340 enemy_projectile_9 { } movieClip 360 { frame 20 { stop(); } } movieClip 374 { frame 20 { stop(); } } movieClip 377 enemyTankSHellDetonation_9 { frame 20 { removeMovieClip(this); } } movieClip 379 { } movieClip 380 { } movieClip 382 { } movieClip 384 { } movieClip 386 { } movieClip 388 { } movieClip 390 { } movieClip 393 { frame 1 { stop(); } } movieClip 394 enemy_9 { } movieClip 396 { } movieClip 398 { } movieClip 399 { } movieClip 401 { } movieClip 403 { } movieClip 410 { frame 1 { doshot = 0; stop(); } instance of movieClip 399 { onClipEvent (load) { cacheAsBitmap = true; } } frame 2 { doshot = 1; } frame 8 { doshot = 1; } frame 14 { doshot = 1; } frame 20 { doshot = 1; } } movieClip 411 tower_2 { instance of movieClip 305 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 413 { } movieClip 414 turret_proj_2 { instance of movieClip 413 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 416 turrenProjDetonation_2 { frame 20 { removeMovieClip(this); } } movieClip 418 { } movieClip 420 { } movieClip 421 { } movieClip 423 { } movieClip 425 { } movieClip 426 { } movieClip 427 { } movieClip 429 { } movieClip 431 { } movieClip 435 { frame 1 { stop(); launch = 0; } frame 12 { launch = 1; } } movieClip 436 tower_3 { instance of movieClip 421 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 423 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 429 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 443 { } movieClip 444 { } movieClip 445 { instance ccc of movieClip 444 { onClipEvent (enterFrame) { if (_root.ball_animation_off eq 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 446 { } movieClip 447 { frame 1 { stop(); } } movieClip 448 homing_mine { frame 1 { xpos = _x; ypos = _y; tempx = xpos; tempy = ypos; mass = _root.magnetball_mass; radius = 5; hits = 0; whatisit = 'magnets'; } } movieClip 452 shleif_44 { frame 19 { removeMovieClip(this); } } movieClip 453 explosion_homing_mine { frame 20 { removeMovieClip(this); } } movieClip 456 { } movieClip 458 { frame 1 { stop(); } instance of movieClip 456 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 459 { instance of movieClip 456 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 460 enemy_10 { } movieClip 462 { } movieClip 463 { instance of movieClip 462 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 464 enemy_11 { } movieClip 466 { } movieClip 467 { } movieClip 468 { } movieClip 470 { } movieClip 472 { } movieClip 474 { } movieClip 478 { frame 1 { stop(); } } movieClip 479 enemy_12 { } movieClip 481 { } movieClip 482 { instance of movieClip 481 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 483 enemy_4 { } movieClip 485 enemy_projectile_12 { } movieClip 486 enemyTankSHellDetonation_12 { frame 20 { removeMovieClip(this); } } movieClip 488 { } movieClip 489 { instance of movieClip 488 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 490 enemy_13 { } movieClip 492 { } movieClip 493 { instance of movieClip 492 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 494 enemy_14 { } movieClip 496 { } movieClip 497 { instance of movieClip 496 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 498 enemy_15 { } movieClip 500 { } movieClip 501 { instance of movieClip 500 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 502 enemy_16 { } movieClip 504 { } movieClip 505 { instance of movieClip 504 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 506 { } movieClip 509 { } movieClip 510 { } movieClip 511 { instance of movieClip 510 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 512 { frame 1 { stop(); } } movieClip 513 enemy_18 { } movieClip 515 { } movieClip 516 { instance of movieClip 515 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 517 enemy_19 { } movieClip 519 { } movieClip 520 { instance of movieClip 519 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 521 enemy_20 { } movieClip 523 { } movieClip 524 { instance of movieClip 523 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 525 enemy_21 { } movieClip 527 { } movieClip 528 { instance of movieClip 527 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 529 enemy_22 { } movieClip 531 { } movieClip 532 { instance of movieClip 531 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 533 enemy_23 { } movieClip 535 { } movieClip 536 { instance of movieClip 535 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 537 enemy_24 { } movieClip 538 { instance of movieClip 421 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 539 { instance of movieClip 423 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 540 { } movieClip 542 { } movieClip 543 { } movieClip 545 { } movieClip 546 { } movieClip 547 { } movieClip 548 { instance of movieClip 547 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 549 { } movieClip 550 tower_4 { instance of movieClip 540 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 543 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 554 { } movieClip 555 ray_magnet { } movieClip 558 { } movieClip 561 { } movieClip 563 { } movieClip 564 specialWeaponsMenu { } movieClip 568 { } movieClip 569 magnet_tower_glow { } movieClip 571 { } movieClip 572 { } movieClip 573 { instance of movieClip 572 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 574 enemy_25 { } movieClip 576 { } movieClip 577 { instance of movieClip 576 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 579 { } movieClip 580 { instance of movieClip 579 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 582 { } movieClip 586 { frame 1 { stop(); } } movieClip 587 enemy_26 { } movieClip 588 enemy_projectile_26 { frame 10 { stop(); } } movieClip 611 { frame 35 { stop(); } } movieClip 617 { } movieClip 634 { } movieClip 641 enemyTankSHellDetonation_26 { frame 5 { _root.explosion_Effect_OnTargets(_x, _y, 28); } frame 11 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 12 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 13 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 14 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 15 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 16 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 17 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 18 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 19 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 20 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 21 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 22 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 23 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 24 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 25 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 26 { _root.explosion_Effect_OnTargets(_x, _y, 29); _root.explosion_Effect_OnTargets(_x, _y, 30); } frame 37 { removeMovieClip(this); } } movieClip 642 { } movieClip 644 { } movieClip 645 { } movieClip 647 { } movieClip 648 { } movieClip 650 { } movieClip 651 { } button 652 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.yiff.playerTank.energy = _root.yiff.playerTank.energymax; } } on (rollOver, dragOver) { if (pup_used != 1) { _root.ingame_menu.showinfo = 'Restore full energy. Click to activate.'; _root.mouse_over_powerup = 1; } } on (rollOut, dragOut) { _root.ingame_menu.showinfo = ''; _root.mouse_over_powerup = 0; } } movieClip 657 { frame 1 { stop(); } frame 17 { stop(); remove = 1; } } movieClip 661 { } movieClip 663 { } movieClip 665 { instance of movieClip 663 { onClipEvent (load) { _visible = false; } } } movieClip 666 { instance gauge of movieClip 665 { onClipEvent (load) { gotoAndStop(1); } } } movieClip 669 { } button 670 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.yiff.playerTank.dmg = 0; } } on (rollOver, dragOver) { if (pup_used != 1) { _root.ingame_menu.showinfo = 'Restore full shield. Click to activate'; _root.mouse_over_powerup = 1; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 673 { } movieClip 674 { } movieClip 675 { } button 676 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.PUP_nulifyAllTimerz(); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Recharge/reload all weapons. Click to activate'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 677 { } button 678 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.nukeTruckDetonation(this); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Nuke. Click to activate. [DANGER]'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 680 { frame 1 { stop(); } frame 2 { stop(); remove = 1; } } movieClip 682 { } movieClip 683 { } button 684 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.activateBlackhole(_x, _y); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Dimensional Rift. Click to activate. [DANGER]'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 687 { } movieClip 688 { } button 689 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.doImplosion(_x, _y); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Implosion. Click to activate. [DANGER]'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 692 { } movieClip 693 { } button 694 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.doDroneSwarm(_x, _y); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Drone Swarm. Click to activate.'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 697 { } button 698 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.spawnGravNuke(_x, _y); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Antimatter Detonation. Click to activate. [DANGER]'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 700 { } movieClip 701 { } button 702 { on (release) { if (pup_used != 1) { ++_root.stat_powerups; clearing.play(); pup_used = 1; icon1._visible = false; _root.mouse_over_powerup = 0; _root.BTN_invulnerabilitySTarto(); } } on (rollOver, dragOver) { if (pup_used != 1) { _root.mouse_over_powerup = 1; _root.ingame_menu.showinfo = 'Partial Invulnerability. Click to activate.'; } } on (rollOut, dragOut) { _root.mouse_over_powerup = 0; _root.ingame_menu.showinfo = ''; } } movieClip 703 powerupShell { instance icon1 of movieClip 648 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 669 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 675 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 677 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 683 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 688 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 693 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 697 { onClipEvent (load) { cacheAsBitmap = true; } } instance icon1 of movieClip 701 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 706 { } movieClip 707 { instance of movieClip 706 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 708 enemy_27 { } movieClip 710 { } movieClip 711 { instance of movieClip 710 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 712 enemy_28 { } movieClip 714 { } movieClip 715 { instance of movieClip 714 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 716 enemy_29 { } movieClip 718 { } movieClip 719 { instance of movieClip 718 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 721 { } movieClip 722 { instance of movieClip 721 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 724 { } movieClip 727 { frame 1 { stop(); } } movieClip 728 enemy_30 { } movieClip 729 enemyTankSHellDetonation_30 { frame 16 { removeMovieClip(this); } } movieClip 731 { } movieClip 732 { } movieClip 733 { instance of movieClip 732 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 734 enemy_projectile_30 { } movieClip 736 { } movieClip 737 { } movieClip 740 { frame 1 { stop(); } } movieClip 741 enemy_31 { } movieClip 743 enemy_projectile_31 { } movieClip 752 enemyTankSHellDetonation_31 { frame 26 { removeMovieClip(this); } } movieClip 754 { } movieClip 755 enemy_32 { } movieClip 756 enemy_projectile_33 { frame 10 { stop(); } } movieClip 763 enemyTankSHellDetonation_33 { frame 5 { _root.explosion_Effect_OnTargets(_x, _y, 2800); } frame 11 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 12 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 13 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 14 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 15 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 16 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 17 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 18 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 19 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 20 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 21 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 22 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 23 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 24 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 25 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 26 { _root.explosion_Effect_OnTargets(_x, _y, 2900); _root.explosion_Effect_OnTargets(_x, _y, 3000); } frame 37 { removeMovieClip(this); } } movieClip 765 { } movieClip 769 { frame 1 { stop(); } } movieClip 770 enemy_33 { } movieClip 771 { } movieClip 774 { } movieClip 775 { } movieClip 777 { } movieClip 779 { } movieClip 781 { } movieClip 782 { } // unknown tag 88 length 197 movieClip 790 { } movieClip 791 { } movieClip 792 { } movieClip 794 { } movieClip 795 { } movieClip 796 { frame 1 { stop(); } instance of movieClip 795 { onClipEvent (load) { _visible = false; } } } movieClip 797 { instance aaa of movieClip 796 { onClipEvent (enterFrame) { persent = Math.floor(100 * (1 - _root.shockwave_delay / _root.shockwave_delaytime)); gotoAndStop(persent); } } } movieClip 799 { } movieClip 801 { } movieClip 802 { } movieClip 804 { } movieClip 805 { } button 807 { on (press) { _root.BTN_cancellWeapon(id); } } movieClip 808 { frame 1 { stop(); } } movieClip 809 { frame 11 { stop(); } } movieClip 812 { } movieClip 815 { } movieClip 817 { } button 821 { on (release) { _root.BTN_wpn_select(5); } } movieClip 823 { } movieClip 827 { } movieClip 828 { } button 829 { on (release) { _root.BTN_wpn_select(4); } } movieClip 831 { } movieClip 836 { } movieClip 837 { } button 839 { on (release) { _root.BTN_wpn_select(3); } } movieClip 840 { } movieClip 844 { } movieClip 845 { } button 847 { on (release) { _root.BTN_wpn_select(2); } } movieClip 849 { } movieClip 854 { } movieClip 855 { } button 857 { on (release) { _root.BTN_wpn_select(1); } } movieClip 859 { } movieClip 862 { } button 864 { on (release) { _root.BTN_cancelClose_wpnmenu(); } } movieClip 866 { } button 867 { on (press) { dragged = 1; xdif = _root._xmouse - _x; ydif = _root._ymouse - _y; } on (release, releaseOutside) { dragged = 0; } } movieClip 869 { } button 871 { on (release) { _root.BTN_cancelClose_wpnmenu(); } } movieClip 873 { } movieClip 875 { } button 876 { on (release) { _root.BTN_initiate_wpnmenu(); } } movieClip 877 { frame 14 { stop(); } } movieClip 878 { frame 1 { stop(); } } movieClip 882 { } movieClip 884 { } movieClip 885 { } movieClip 886 { } movieClip 887 { instance of movieClip 886 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 889 { } button 890 { on (rollOver, dragOver) { _root.wpn_menu.airhelp._visible = true; } on (rollOut, dragOut) { _root.wpn_menu.airhelp._visible = false; } } button 891 { on (release) { _root.BTN_wpn_select(0); } } movieClip 892 { } movieClip 894 { } movieClip 895 { } button 896 { on (rollOver, press, release, releaseOutside, rollOut, dragOver, dragOut) { _visible = false; } } movieClip 898 { } movieClip 900 { } movieClip 901 { } movieClip 902 { } movieClip 903 { instance of movieClip 902 { onClipEvent (load) { cacheAsBitmap = true; } } } // unknown tag 88 length 197 movieClip 908 { } movieClip 909 wpn_menu { instance of movieClip 775 { onClipEvent (load) { cacheAsBitmap = true; } } instance airhelp of movieClip 908 { onClipEvent (load) { _visible = false; } } } movieClip 912 krater_big_1 { } movieClip 915 krater_big_2 { } movieClip 918 krater_big_3 { } movieClip 921 krater_hueg_1 { } movieClip 924 krater_hueg_2 { } movieClip 927 krater_hueg_3 { } movieClip 930 krater_small_1 { } movieClip 933 krater_small_2 { } movieClip 936 krater_small_3 { } movieClip 937 krater_small_4 { } movieClip 938 krater_small_5 { } movieClip 941 krater_nuke { } movieClip 942 shockwave { frame 26 { removeMovieClip(this); } } movieClip 949 { } movieClip 1059 { frame 21 { stop(); } } movieClip 1061 implosion { frame 1 { go = 0; } frame 30 { go = 1; _root.shakescreen = 30; } frame 45 { go = 0; } frame 73 { removeMovieClip(this); } } movieClip 1062 { } movieClip 1064 { } movieClip 1065 { } movieClip 1066 { } movieClip 1067 { } movieClip 1068 { } movieClip 1069 { } movieClip 1070 { } movieClip 1071 { } movieClip 1072 { } movieClip 1073 { } movieClip 1075 { } movieClip 1076 { } movieClip 1077 { } movieClip 1078 { } movieClip 1079 { } movieClip 1080 { } movieClip 1081 { } movieClip 1082 { } movieClip 1083 { } movieClip 1084 { } movieClip 1085 { } movieClip 1086 { } movieClip 1087 { } movieClip 1088 { } movieClip 1089 { } movieClip 1090 { } movieClip 1091 { } movieClip 1092 { } movieClip 1093 { } movieClip 1094 { } movieClip 1095 { } movieClip 1096 { } movieClip 1097 { } movieClip 1098 { } movieClip 1099 { } movieClip 1100 { } movieClip 1101 { } movieClip 1102 ball_expl_0 { frame 20 { removeMovieClip(this); } } movieClip 1103 ball_expl_1 { frame 20 { removeMovieClip(this); } } movieClip 1104 ball_expl_2 { frame 20 { removeMovieClip(this); } } movieClip 1105 ball_expl_3 { frame 20 { removeMovieClip(this); } } movieClip 1106 ball_expl_4 { frame 20 { removeMovieClip(this); } } movieClip 1107 ball_expl_5 { frame 20 { removeMovieClip(this); } } movieClip 1108 ball_expl_10 { frame 20 { removeMovieClip(this); } } movieClip 1123 { frame 15 { stop(); } } movieClip 1129 explosion_mortar_1 { frame 15 { removeMovieClip(this); } } movieClip 1149 { frame 20 { stop(); } } movieClip 1154 explosion_mortar_2 { frame 20 { removeMovieClip(this); } } movieClip 1174 { frame 20 { stop(); } } movieClip 1179 explosion_mortar_3 { frame 20 { removeMovieClip(this); } } movieClip 1184 explosion_mortar_4 { frame 20 { removeMovieClip(this); } } movieClip 1227 explosion_mortar_5 { frame 20 { removeMovieClip(this); } } movieClip 1228 magnetball { } movieClip 1229 explosion_magnetball { frame 20 { removeMovieClip(this); } } movieClip 1241 explosion_magnets_drop { frame 16 { removeMovieClip(this); } } movieClip 1244 shleif_55 { frame 19 { removeMovieClip(this); } } movieClip 1246 { } movieClip 1247 blueballCollapse { frame 23 { removeMovieClip(this); } } movieClip 1257 { } movieClip 1261 { } movieClip 1263 { } movieClip 1264 { } movieClip 1265 { instance a2 of movieClip 1257 { onClipEvent (enterFrame) { if (_root.yiff_paused eq 1) { stop(); } else { play(); } } } instance a1 of movieClip 1261 { onClipEvent (enterFrame) { if (_root.yiff_paused eq 1) { stop(); } else { play(); } } } instance of movieClip 1264 { onClipEvent (enterFrame) { if (_root.yiff_paused != 1) { _rotation = _rotation + 0.5; } } } } movieClip 1266 teleporter { } movieClip 1321 explosion_hueg_2 { frame 29 { removeMovieClip(this); } } movieClip 1331 explosion_hueg_1 { frame 24 { removeMovieClip(this); } } movieClip 1384 explosion_hueg_3 { frame 27 { removeMovieClip(this); } } movieClip 1453 { } movieClip 1454 explosion_nuke { frame 15 { _root.placeKrater(_x, _y, 'nuke'); } frame 80 { removeMovieClip(this); } } movieClip 1462 explosion_nuke_emp { frame 2 { _root.explosion_Effect_OnTargets(_x, _y, 20); } frame 11 { _root.explosion_Effect_OnTargets(_x, _y, 19); } frame 44 { removeMovieClip(this); } } movieClip 1471 { frame 9 { stop(); } } movieClip 1479 { } movieClip 1482 udar { frame 12 { stop(); removeMovieClip(this); } } movieClip 1484 testDot { } movieClip 1540 explosion_special_1 { frame 18 { _root.activateBlackhole(_x, _y); } frame 51 { removeMovieClip(this); } } movieClip 1631 explosion_special_2 { frame 3 { _root.explosion_Effect_OnTargets(_x, _y, 11); } frame 11 { _root.explosion_Effect_OnTargets(_x, _y, 12); } frame 25 { _root.explosion_Effect_OnTargets(_x, _y, 13); } frame 46 { removeMovieClip(this); } } movieClip 1634 bottom_wall_1 { } movieClip 1636 upper_wall_1 { } movieClip 1650 { frame 17 { stop(); } } movieClip 1654 explosion_small_1 { frame 20 { removeMovieClip(this); } } movieClip 1656 { } movieClip 1659 explosion_small_2 { frame 20 { removeMovieClip(this); } } movieClip 1665 explosion_small_3 { frame 20 { removeMovieClip(this); } } movieClip 1676 explosion_small_4 { frame 20 { removeMovieClip(this); } } movieClip 1685 { frame 17 { stop(); } } movieClip 1694 explosion_medium_1 { frame 18 { removeMovieClip(this); } } movieClip 1698 explosion_medium_2 { frame 20 { removeMovieClip(this); } } movieClip 1701 explosion_medium_3 { frame 20 { removeMovieClip(this); } } movieClip 1744 explosion_big_1 { frame 22 { removeMovieClip(this); } } movieClip 1787 explosion_big_2 { frame 22 { removeMovieClip(this); } } movieClip 1830 explosion_big_3 { frame 22 { removeMovieClip(this); } } movieClip 1873 explosion_big_4 { frame 22 { removeMovieClip(this); } } movieClip 1927 { frame 2 { stop(); } } movieClip 1929 explosion_shell_1 { frame 20 { removeMovieClip(this); } } movieClip 1930 explosion_shell_2 { frame 20 { removeMovieClip(this); } } movieClip 1931 { } movieClip 1933 { } movieClip 1934 hpbar { } movieClip 1943 { } movieClip 1945 { } movieClip 1947 { } movieClip 1950 { } movieClip 1952 { frame 1 { shootinganimation = 0; stop(); } frame 2 { shootinganimation = 1; } } button 1954 { on (release) { dmg = 9999999999999998.0; } } movieClip 1955 player_tank_1 { } movieClip 1961 { frame 31 { gotoAndPlay(16); } } movieClip 1963 { } movieClip 1964 { } movieClip 1965 { instance of movieClip 1964 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 1966 { } movieClip 1968 { } movieClip 1969 { } movieClip 1970 { frame 1 { stop(); } } movieClip 1971 { instance of movieClip 1969 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 1973 { } movieClip 1974 { } movieClip 1975 { } movieClip 1976 { instance of movieClip 1975 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 1977 { } movieClip 1978 { } movieClip 1979 player_tank_2 { } movieClip 1991 { } movieClip 1997 { } movieClip 2003 { } movieClip 2004 { } movieClip 2005 { frame 2 { if (random(30) eq 1 and _root.yiff_paused != 1) { play(); } else { gotoAndPlay(1); } } } movieClip 2016 { } movieClip 2045 singularity { frame 33 { blackholeactive = 1; } frame 184 { blackholeactive = 0; } frame 186 { _root.explosion_Effect_OnTargets(_x, _y, 8); } frame 210 { removeMovieClip(this); } } movieClip 2065 { } movieClip 2066 { instance bbb of movieClip 2065 { onClipEvent (load) { gotoAndPlay(random(38) + 1); } } } movieClip 2067 rezinka_blue { } movieClip 2068 { } movieClip 2069 warping_unit { } movieClip 2070 { } movieClip 2073 { } movieClip 2075 { } movieClip 2077 { } movieClip 2079 { } movieClip 2081 { } movieClip 2083 { } movieClip 2086 { } movieClip 2088 { } movieClip 2090 { } movieClip 2092 { } movieClip 2094 { } movieClip 2096 { } movieClip 2098 { } movieClip 2100 { } movieClip 2102 { } movieClip 2104 { } movieClip 2105 { } movieClip 2106 explosion_shell_3 { frame 18 { removeMovieClip(this); } } movieClip 2121 explosion_emp_1 { frame 20 { removeMovieClip(this); } } movieClip 2125 explosion_emp_2 { frame 20 { removeMovieClip(this); } } movieClip 2127 { } movieClip 2128 { } movieClip 2132 { } movieClip 2154 { } movieClip 2155 { } movieClip 2161 { } movieClip 2168 gravity_nuke { frame 2 { gravity_nuke_in_action = 1; } frame 42 { gravity_nuke_in_action = 0; } frame 47 { removeMovieClip(this); } } movieClip 2193 { } movieClip 2195 { } movieClip 2196 { } movieClip 2197 { } movieClip 2199 { } movieClip 2200 { } movieClip 2202 { } movieClip 2203 { } movieClip 2204 { } movieClip 2206 { } movieClip 2207 { } movieClip 2209 { instance of movieClip 796 { onClipEvent (enterFrame) { gotoAndStop(_root.tank_delay_percent + 1); } } } movieClip 2210 { } movieClip 2211 { instance of movieClip 2210 { onClipEvent (enterFrame) { if (_root.gun_delay_1 eq 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 2213 { } movieClip 2214 { instance of movieClip 2213 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2216 { } movieClip 2218 { frame 1 { stop(); } frame 27 { gotoAndPlay(26); } } movieClip 2219 { instance low_energy of movieClip 2218 { onClipEvent (load) { _visible = false; } } } movieClip 2221 { } movieClip 2223 { instance rotor of movieClip 2221 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } } movieClip 2225 { } movieClip 2227 { } movieClip 2229 { } movieClip 2231 { } movieClip 2232 { } movieClip 2233 { } movieClip 2234 { } movieClip 2235 { } movieClip 2236 { frame 5 { stop(); } } movieClip 2238 { } movieClip 2242 { } movieClip 2243 { } movieClip 2244 { } movieClip 2245 marker_1 { } movieClip 2248 { frame 2 { if (random(10) eq 3) { gotoAndPlay(3); } else { gotoAndPlay(1); } } } movieClip 2249 { } movieClip 2251 { } movieClip 2252 { } movieClip 2253 { } movieClip 2254 marker_2 { } movieClip 2255 { } movieClip 2256 { } movieClip 2259 { } movieClip 2260 { } movieClip 2262 { } movieClip 2263 marker_3 { } movieClip 2266 { frame 2 { if (random(5) eq 1) { play(); } else { gotoAndPlay(1); } } } movieClip 2267 { } movieClip 2268 { } movieClip 2272 { } movieClip 2273 marker_4 { } movieClip 2274 { } movieClip 2275 { } movieClip 2276 { } movieClip 2277 { instance of movieClip 2221 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } } movieClip 2278 marker_5 { } movieClip 2279 kursor { frame 2 { stop(); } instance of movieClip 2223 { onClipEvent (load) { aaa = 0; } onClipEvent (enterFrame) { aaa += 1; rotor._rotation += aaa; } } } movieClip 2281 { } movieClip 2283 { } movieClip 2284 { instance of movieClip 2283 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2285 { } movieClip 2287 carpetbombingAnim { instance of movieClip 2281 { onClipEvent (load) { _visible = false; } } frame 60 { _root.carpet_timer = 790; } frame 103 { removeMovieClip(this); } } movieClip 2294 playerTankBeam { frame 6 { removeMovieClip(this); } } movieClip 2297 { } movieClip 2298 { } movieClip 2299 marker_0 { } button 2301 { on (keyPress '1') { _root.tank_ammo_selected = 1; } on (keyPress '2') { _root.tank_ammo_selected = 2; } on (keyPress '3') { _root.tank_ammo_selected = 3; } on (keyPress '4') { _root.tank_ammo_selected = 4; } } movieClip 2302 { } movieClip 2304 { } movieClip 2307 { } movieClip 2308 { } movieClip 2309 { } movieClip 2311 { frame 11 { stop(); } } movieClip 2312 { } movieClip 2313 { instance of movieClip 2312 { onClipEvent (load) { _visible = false; } } } button 2314 { on (release, keyPress '2') { _root.ammo_chosen = 2; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'White Projectile. [Hotkey: 2]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2315 { } movieClip 2316 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2318 { } movieClip 2319 { } button 2321 { on (release, keyPress '3') { _root.ammo_chosen = 3; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Red Projectile. [Hotkey: 3]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2322 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2324 { } movieClip 2325 { } button 2327 { on (release, keyPress '4') { _root.ammo_chosen = 4; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Golden Projectile. [Hotkey: 4]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2328 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2330 { } movieClip 2331 { } button 2333 { on (release, keyPress '5') { _root.ammo_chosen = 5; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Black Projectile. [Hotkey: 5]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2334 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2336 { } movieClip 2337 { } movieClip 2339 { } button 2340 { on (release, keyPress '6') { _root.ammo_chosen = 6; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Antimatter Projectile. [Hotkey: 6]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2341 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2343 { } button 2344 { on (release, keyPress '1') { _root.ammo_chosen = 1; } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Blue Projectile. [Hotkey: 1]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2345 { } movieClip 2346 { } movieClip 2347 { instance of movieClip 902 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2348 { instance of movieClip 2221 { onClipEvent (enterFrame) { _rotation = _rotation - 5; } } } movieClip 2349 { } button 2350 { on (release, keyPress 'e') { _root.BTN_dimensionalShift(); } on (keyPress 'E') { _root.BTN_dimensionalShift(); } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Dimensional SHift. [Hotkey: E]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2351 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2352 { } movieClip 2354 { } movieClip 2355 { } movieClip 2356 { instance of movieClip 2355 { onClipEvent (load) { cacheAsBitmap = true; } } } button 2357 { on (press, keyPress '<Space>') { _root.FUnkciyaKotorayaNaKnopkeDlaProbela(); } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Pause/Access menu. [Hotkey: SPACE]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2359 { } button 2360 { on (press, keyPress '<Space>') { _root.FUnkciyaKotorayaNaKnopkeDlaProbela(); } } movieClip 2361 { } movieClip 2364 { } movieClip 2365 { instance of movieClip 2364 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2366 { } button 2367 { on (release, keyPress 'f') { _root.BTN_overdriveSTarto(); } on (keyPress 'F') { _root.BTN_overdriveSTarto(); } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Overdrive. [Hotkey: F]'; } on (rollOut, dragOut) { play(); _root.ingame_menu.showinfo = ''; } } movieClip 2368 { instance of movieClip 2304 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2370 { } movieClip 2371 { } movieClip 2374 { } movieClip 2375 { } movieClip 2376 { } movieClip 2377 { instance of movieClip 2376 { onClipEvent (load) { cacheAsBitmap = true; } } } button 2378 { on (release, keyPress 'r') { _root.BTN_specialweaponssummon(); } on (keyPress 'R') { _root.BTN_specialweaponssummon(); } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Access Special Weapons. [Hotkey: R]'; } on (rollOut, dragOut) { _root.ingame_menu.showinfo = ''; } } movieClip 2379 { } movieClip 2381 { } movieClip 2383 { } movieClip 2385 { } movieClip 2386 { } movieClip 2387 { } movieClip 2388 { instance of movieClip 2387 { onClipEvent (load) { cacheAsBitmap = true; } } } button 2389 { on (release, keyPress 't') { _root.BTN_UpgradesMenu(); } on (keyPress 'T') { _root.BTN_UpgradesMenu(); } on (rollOver, dragOver) { _root.ingame_menu.showinfo = 'Upgrades / abilities. [Hotkey: T]'; } on (rollOut, dragOut) { _root.ingame_menu.showinfo = ''; } } movieClip 2390 { } movieClip 2393 { } movieClip 2395 { } movieClip 2396 { } movieClip 2397 { instance of movieClip 2396 { onClipEvent (load) { _visible = false; } } } movieClip 2400 { } movieClip 2401 { } movieClip 2402 { } movieClip 2404 { } movieClip 2405 { } movieClip 2406 { instance of movieClip 2405 { onClipEvent (load) { _visible = false; } } } movieClip 2408 { } movieClip 2410 { } movieClip 2411 { } movieClip 2414 { } movieClip 2416 { } movieClip 2417 { } movieClip 2421 { } movieClip 2422 ingame_menu { instance ballSelector1 of movieClip 2346 { onClipEvent (enterFrame) { if (_root.ammo_chosen eq 1) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 2361 { onClipEvent (enterFrame) { gotoAndStop(_root.yiff_paused + 1); } } instance of movieClip 2411 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 2414 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 2417 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 2421 { onClipEvent (enterFrame) { if (_root.game_on_hold eq 1 or _root.yiff_paused eq 1) { _visible = true; } else { _visible = false; } } } } movieClip 2423 { } movieClip 2424 { } movieClip 2426 { frame 16 { stop(); } } movieClip 2427 showtimer_overdrive { instance of movieClip 2424 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2428 { instance of movieClip 902 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2429 { } movieClip 2431 { frame 15 { stop(); } } movieClip 2432 showtimer_dimshift { instance of movieClip 2429 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2433 { } movieClip 2434 { } movieClip 2436 { frame 16 { stop(); } } movieClip 2437 showtimer_invul { instance of movieClip 2434 { onClipEvent (load) { cacheAsBitmap = true; } } } // unknown tag 88 length 78 movieClip 2440 { } movieClip 2445 upperPannel { instance of movieClip 2440 { onClipEvent (load) { timeA = 0; ghghgyiffhgjt = 999; median_fps_sum = 0; median_fps_mod = 5; median_fps_count = 0; median_fps_sum2 = 0; median_fps_mod2 = 25; median_fps_count2 = 0; } onClipEvent (enterFrame) { timeB = getTimer(); var fps_rough = Math.floor(1000 / (this.timeB - this.timeA)); timeA = timeB; if (median_fps_count < median_fps_mod) { ++median_fps_count; median_fps_sum += fps_rough; } else { this.current_fps = Math.floor(median_fps_sum / this.median_fps_count); this.median_fps_sum = 0; this.median_fps_count = 0; } if (median_fps_count2 < median_fps_mod2) { ++median_fps_count2; median_fps_sum2 += fps_rough; } else { this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2); this.median_fps_sum2 = 0; this.median_fps_count2 = 0; } ghghgyiffhgjt += 0.03333333333333333; if (ghghgyiffhgjt > 0.5) { ghghgyiffhgjt = 30; if (inmenu eq 1) { showvar = 'fps: ' + current_fps + ' '; } else { showvar = ' fps: ' + current_fps + ' '; } } } } } movieClip 2447 { } movieClip 2449 { } movieClip 2452 { } movieClip 2453 { } movieClip 2454 { } movieClip 2456 { } movieClip 2458 { } movieClip 2460 { } movieClip 2461 lvlup_indicator { frame 57 { removeMovieClip(this); } } movieClip 2463 { } movieClip 2466 { } movieClip 2467 { } movieClip 2475 { } movieClip 2477 { } movieClip 2480 { } movieClip 2484 { } // unknown tag 88 length 153 movieClip 2492 { } movieClip 2493 { } movieClip 2494 { frame 10 { stop(); } } button 2498 { on (release) { _root.BTN_start_game(); } } movieClip 2501 { } movieClip 2502 { } movieClip 2503 { frame 10 { stop(); } } button 2505 { on (release) { _root.BTN_UpgradesMenu(); } } movieClip 2508 { } movieClip 2509 { } movieClip 2510 { frame 10 { stop(); } } button 2512 { on (release) { _root.BTN_backToMap_failed(); } } movieClip 2515 { } movieClip 2516 { } movieClip 2517 { frame 10 { stop(); } } button 2519 { on (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 2529 { instance icon1 of movieClip 677 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2530 { instance icon1 of movieClip 683 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2531 { instance icon1 of movieClip 688 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2532 { instance icon1 of movieClip 693 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2533 { instance icon1 of movieClip 697 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2534 { instance icon1 of movieClip 648 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2535 { instance icon1 of movieClip 669 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2536 { instance icon1 of movieClip 675 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2537 { instance icon1 of movieClip 701 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2541 { instance of movieClip 886 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2552 { } movieClip 2558 { } movieClip 2563 { } button 2579 { on (release) { nextFrame(); } } movieClip 2582 { } movieClip 2588 { } movieClip 2592 { } button 2596 { on (release) { prevFrame(); } } movieClip 2602 { } movieClip 2605 { } movieClip 2606 { } movieClip 2626 { } movieClip 2630 { } movieClip 2633 { } movieClip 2638 { } movieClip 2639 { frame 1 { stop(); } } movieClip 2656 { } movieClip 2657 { instance of movieClip 510 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 2666 { } movieClip 2675 { } movieClip 2680 { } button 2684 { on (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 2691 { } movieClip 2705 { } movieClip 2708 { } movieClip 2709 { } movieClip 2710 { frame 10 { stop(); } } button 2712 { on (release) { _root.BTN_quitToMenuFromGame(); } } movieClip 2716 { } movieClip 2719 { frame 431 { stop(); } } movieClip 2721 objectivesMenu { instance of movieClip 2467 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 2223 { onClipEvent (load) { aaa = 0; } onClipEvent (enterFrame) { aaa += 1; rotor._rotation += aaa; } } instance of movieClip 2639 { onClipEvent (load) { gotoAndStop(random(8) + 1); } } instance of movieClip 2639 { onClipEvent (load) { gotoAndStop(random(8) + 1); } } instance of movieClip 2639 { onClipEvent (load) { gotoAndStop(random(8) + 1); } } } movieClip 2723 { } movieClip 2724 wpnready_0 { frame 41 { removeMovieClip(this); } } movieClip 2726 { } movieClip 2727 wpnready_1 { frame 42 { removeMovieClip(this); } } movieClip 2729 { } movieClip 2730 wpnready_2 { frame 41 { removeMovieClip(this); } } movieClip 2732 { } movieClip 2733 wpnready_3 { frame 41 { removeMovieClip(this); } } movieClip 2735 { } movieClip 2736 wpnready_4 { frame 41 { removeMovieClip(this); } } movieClip 2738 { } movieClip 2739 wpnready_5 { frame 41 { removeMovieClip(this); } } movieClip 2741 { } movieClip 2743 { } button 2745 { on (release) { _root.FUnkciyaKotorayaNaKnopkeDlaProbela(); } } movieClip 2747 { } button 2749 { on (release) { if (objectives._visible eq true) { objectives._visible = false; } else { objectives._visible = true; } help._visible = false; } } movieClip 2751 { } button 2753 { on (release) { _root.BTN_spawn_wpnmenu(); } } movieClip 2755 { } button 2757 { on (release) { _root.BTN_UpgradesMenu(); } } movieClip 2759 { } button 2761 { on (release) { if (help._visible eq true) { help._visible = false; } else { help._visible = true; } objectives._visible = false; } } movieClip 2763 { } movieClip 2765 { } movieClip 2767 { } button 2769 { on (press) { _root.projectile_trails_enabled = 1; } } button 2770 { on (press) { _root.projectile_trails_enabled = 0; } } movieClip 2771 { frame 1 { stop(); } } movieClip 2773 { } movieClip 2775 { } movieClip 2777 { } movieClip 2779 { } movieClip 2781 { } movieClip 2783 { } button 2784 { on (release) { _root.global_quality = 3; } } movieClip 2786 { } button 2787 { on (release) { _root.global_quality = 4; } } movieClip 2789 { } button 2790 { on (release) { _root.global_quality = 2; } } button 2791 { on (release) { _root.global_quality = 1; } } movieClip 2792 { } button 2793 { on (press) { _root.turn_off_music = 0; } } button 2794 { on (press) { _root.turn_off_music = 1; } } movieClip 2795 { frame 1 { stop(); } } movieClip 2798 { } button 2799 { on (release) { if (aaa < a_max) { aaa += delta_; } } } movieClip 2801 { } button 2802 { on (release) { if (aaa > a_min) { aaa -= delta_; } } } button 2803 { on (press) { toggleAAA = 1; } } button 2804 { on (press) { toggleAAA = 1; } } movieClip 2805 { frame 1 { stop(); } } movieClip 2806 { instance togler of movieClip 2805 { onClipEvent (enterFrame) { if (_root.overall_volume > 0) { gotoAndStop(2); } else { gotoAndStop(1); } } } } movieClip 2810 { } button 2812 { on (release) { _root.BTN_backToMap_failed(); } } movieClip 2814 { } button 2816 { on (release) { _root.BTN_quitToMenuFromGame(); } } movieClip 2817 { frame 2 { stop(); } } movieClip 2819 { } movieClip 2821 { } movieClip 2823 { } movieClip 2825 { } movieClip 2828 { } movieClip 2831 { } button 2832 { on (release) { _visible = false; } } movieClip 2834 { } movieClip 2837 { } movieClip 2838 { } movieClip 2839 pause_menu { instance of movieClip 2771 { onClipEvent (enterFrame) { gotoAndStop(_root.projectile_trails_enabled + 1); } } instance of movieClip 2792 { onClipEvent (enterFrame) { gotoAndStop(_root.global_quality); } } instance of movieClip 2795 { onClipEvent (enterFrame) { if (_root.turn_off_music eq 1) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2806 { onClipEvent (enterFrame) { if (togler.toggleAAA eq 1) { togler.toggleAAA = 0; if (_root.overall_volume > 0) { aaa = 0; } else { aaa = 100; } } thisvar = 'overall_volume'; a_min = 0; a_max = 100; if (_root[thisvar] > a_max) { _root[thisvar] = a_max; } if (_root[thisvar] < a_min) { _root[thisvar] = a_min; } if (yifff132123123123fffff != 'fhtagn') { yifff132123123123fffff = 'fhtagn'; aaa = _root[thisvar]; } else { _root[thisvar] = aaa; } display_var = aaa; delta_ = 5; } } instance of movieClip 2817 { onClipEvent (enterFrame) { if (_root.mapchosen < 2000) { gotoAndStop(2); } else { gotoAndStop(3); } } } instance objectives of movieClip 2834 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { gotoAndStop(_root.mapchosen); } } instance help of movieClip 2838 { onClipEvent (load) { _visible = false; } } } movieClip 2842 { } movieClip 2845 { } movieClip 2846 { } movieClip 2847 { } movieClip 2850 { } button 2854 { on (release) { if (aaa > a_min) { --aaa; ++_root.skill_points; } } } movieClip 2857 { } button 2861 { on (release) { if (aaa < a_max and _root.skill_points > 0) { ++aaa; --_root.skill_points; } } } movieClip 2863 { } button 2869 { on (release) { _root.BTN_UpgradesMenu(); } } button 2870 { on (release) { if (gugugugugyiffffffff eq 999) { _root.ballProjectile_reloading_timer_5 = 0; } if (aaa > a_min) { --aaa; ++_root.skill_points; } } } movieClip 2872 { } movieClip 2875 { } movieClip 2877 { } movieClip 2878 { frame 1 { stop(); } instance of movieClip 2872 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_2_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_2; } else { _root.proj_upgrade_2 = aaa; } display_var = _root.proj_upgrade_2; if (_root.proj_upgrade_2 eq a_max) { display_var = 'MAX'; } } } } movieClip 2881 { } movieClip 2882 { } movieClip 2883 { frame 1 { stop(); } instance of movieClip 2872 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_3_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_3; } else { _root.proj_upgrade_3 = aaa; } display_var = _root.proj_upgrade_3; if (_root.proj_upgrade_3 eq a_max) { display_var = 'MAX'; } } } } movieClip 2886 { } movieClip 2887 { } movieClip 2888 { frame 1 { stop(); } instance of movieClip 2872 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_4_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_4; } else { _root.proj_upgrade_4 = aaa; } display_var = _root.proj_upgrade_4; if (_root.proj_upgrade_4 eq a_max) { display_var = 'MAX'; } } } } movieClip 2891 { } movieClip 2892 { } movieClip 2893 { frame 1 { stop(); } instance of movieClip 2872 { onClipEvent (enterFrame) { gugugugugyiffffffff = 999; a_min = 0; a_max = _root.proj_upgrade_5_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_5; } else { _root.proj_upgrade_5 = aaa; } display_var = _root.proj_upgrade_5; if (_root.proj_upgrade_5 eq a_max) { display_var = 'MAX'; } } } } movieClip 2896 { } movieClip 2897 { } movieClip 2898 { } button 2899 { on (release) { if (aaa > a_min) { --aaa; ++_root.skill_points; } if (hghghyiffffff666767777 eq 1) { _root.wpn_reloading_timer_0 = 0; _root.wpn_reloading_timer_1 = 0; _root.wpn_reloading_timer_2 = 0; _root.wpn_reloading_timer_3 = 0; _root.wpn_reloading_timer_4 = 0; _root.wpn_reloading_timer_5 = 0; } } } button 2900 { on (release) { if (aaa < a_max and _root.skill_points > 0) { ++aaa; --_root.skill_points; } if (hghghyiffffff666767777 eq 1) { _root.wpn_reloading_timer_0 = 0; _root.wpn_reloading_timer_1 = 0; _root.wpn_reloading_timer_2 = 0; _root.wpn_reloading_timer_3 = 0; _root.wpn_reloading_timer_4 = 0; _root.wpn_reloading_timer_5 = 0; } } } movieClip 2902 { } movieClip 2904 { } movieClip 2905 { } movieClip 2906 { } movieClip 2907 { } movieClip 2908 { instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.projPlus1Upgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.projPlus1Upgrade; } else { _root.projPlus1Upgrade = aaa; } percent = Math.floor(100 * _root.projPlus1Upgrade / _root.projPlus1Upgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.projPlus1Upgrade eq a_max) { pb.gotoAndStop(105); } } } } movieClip 2910 { } movieClip 2912 { } movieClip 2914 { } movieClip 2916 { } movieClip 2918 { } movieClip 2919 { } movieClip 2920 { } movieClip 2921 { instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.projCatcherUpgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.projCatcherUpgrade; } else { _root.projCatcherUpgrade = aaa; } percent = Math.floor(100 * _root.projCatcherUpgrade / _root.projCatcherUpgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.projCatcherUpgrade eq a_max) { pb.gotoAndStop(105); } } } } movieClip 2926 { } movieClip 2927 { } movieClip 2928 { } movieClip 2929 { instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.speedUpgrade1_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.speedUpgrade1; } else { _root.speedUpgrade1 = aaa; } percent = Math.floor(100 * _root.speedUpgrade1 / _root.speedUpgrade1_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.speedUpgrade1 eq a_max) { pb.gotoAndStop(105); } } } } movieClip 2931 { } movieClip 2935 { } movieClip 2936 { } movieClip 2937 { instance of movieClip 2936 { onClipEvent (enterFrame) { if (_root.mapchosen > 2000) { _visible = false; } } } } movieClip 2938 { instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.advShieldUpgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.advShieldUpgrade; } else { _root.advShieldUpgrade = aaa; } percent = Math.floor(100 * _root.advShieldUpgrade / _root.advShieldUpgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.advShieldUpgrade eq a_max) { pb.gotoAndStop(105); } } } instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.speedUpgrade2_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.speedUpgrade2; } else { _root.speedUpgrade2 = aaa; } percent = Math.floor(100 * _root.speedUpgrade2 / _root.speedUpgrade2_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.speedUpgrade2 eq a_max) { pb.gotoAndStop(105); } } } instance of movieClip 2935 { onClipEvent (load) { if (_root.mapchosen > 2000) { _visible = false; } } } instance of movieClip 2907 { onClipEvent (enterFrame) { if (_root.mapchosen > 2000) { _visible = false; return undefined; } a_min = 0; a_max = _root.ballActivationUpgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.ballActivationUpgrade; } else { _root.ballActivationUpgrade = aaa; } percent = Math.floor(100 * _root.ballActivationUpgrade / _root.ballActivationUpgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.ballActivationUpgrade eq a_max) { pb.gotoAndStop(105); } } } } movieClip 2940 { } movieClip 2941 { instance of movieClip 2872 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_6_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_6; } else { _root.proj_upgrade_6 = aaa; } display_var = _root.proj_upgrade_6; if (_root.proj_upgrade_6 eq a_max) { display_var = 'MAX'; } } } } movieClip 2944 { } movieClip 2946 { } movieClip 2948 { } movieClip 2949 { } movieClip 2950 { } movieClip 2951 { } movieClip 2952 { } movieClip 2953 { instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.projPlus2Upgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.projPlus2Upgrade; } else { _root.projPlus2Upgrade = aaa; } percent = Math.floor(100 * _root.projPlus2Upgrade / _root.projPlus2Upgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.projPlus2Upgrade eq a_max) { pb.gotoAndStop(105); } } } instance of movieClip 2907 { onClipEvent (enterFrame) { hghghyiffffff666767777 = 1; a_min = 0; a_max = _root.timeUpgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.timeUpgrade; } else { _root.timeUpgrade = aaa; } percent = Math.floor(100 * _root.timeUpgrade / _root.timeUpgrade_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.timeUpgrade eq a_max) { pb.gotoAndStop(105); } } } instance of movieClip 2907 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.zeroConduit_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.zeroConduit; } else { _root.zeroConduit = aaa; } percent = Math.floor(100 * _root.zeroConduit / _root.zeroConduit_max); if (percent eq 0) { percent = 1; } pb.gotoAndStop(percent); if (_root.zeroConduit eq a_max) { pb.gotoAndStop(105); } } } } movieClip 2955 { } movieClip 2956 { } movieClip 2957 { } movieClip 2961 { } // unknown tag 88 length 4 movieClip 2971 { } // unknown tag 88 length 4 movieClip 2976 { } movieClip 3029 { } movieClip 3031 { } movieClip 3033 { } movieClip 3058 { } movieClip 3061 { } movieClip 3063 { } movieClip 3091 { } movieClip 3094 { } movieClip 3095 { } movieClip 3097 { } movieClip 3101 { } movieClip 3106 { } button 3108 { on (release) { _root.saveLoadAbilityLayout('save'); } } movieClip 3110 { } button 3112 { on (release) { _root.upgrades_menu.play(); _root.saveLoadAbilityLayout('load'); } } movieClip 3113 { } movieClip 3114 upgrades_menu { frame 1 { stop(); } instance of movieClip 2863 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.energy_upgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.energy_upgrade; } else { _root.energy_upgrade = aaa; } display_var = _root.energy_upgrade; if (_root.energy_upgrade eq a_max) { display_var = 'MAX'; } } } instance of movieClip 2863 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.shield_upgrade_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.shield_upgrade; } else { _root.shield_upgrade = aaa; } display_var = _root.shield_upgrade; if (_root.shield_upgrade eq a_max) { display_var = 'MAX'; } } } instance of movieClip 2863 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_general_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_general; } else { _root.proj_upgrade_general = aaa; } display_var = _root.proj_upgrade_general; if (_root.proj_upgrade_general eq a_max) { display_var = 'MAX'; } } } instance of movieClip 2872 { onClipEvent (enterFrame) { a_min = 0; a_max = _root.proj_upgrade_1_max; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root.proj_upgrade_1; } else { _root.proj_upgrade_1 = aaa; } display_var = _root.proj_upgrade_1; if (_root.proj_upgrade_1 eq a_max) { display_var = 'MAX'; } } } instance of movieClip 2908 { onClipEvent (enterFrame) { if (_root.lvl < 7) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2921 { onClipEvent (enterFrame) { if (_root.lvl < 7) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2929 { onClipEvent (enterFrame) { if (_root.lvl < 7) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2938 { onClipEvent (enterFrame) { if (_root.lvl < 15) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2941 { onClipEvent (enterFrame) { if (_root.map_status_1005 eq 2 or _root.mapchosen > 2000) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 2953 { onClipEvent (enterFrame) { if (_root.lvl < 25) { gotoAndStop(1); } else { gotoAndStop(2); } } } instance of movieClip 2956 { onClipEvent (enterFrame) { if (_root.mapchosen > 2000) { _visible = true; } else { _visible = false; } } } instance of movieClip 3113 { onClipEvent (enterFrame) { if (_root.mapchosen eq 2002) { _visible = true; } else { _visible = false; } } onClipEvent (load) { _visible = false; } } } movieClip 3115 { } button 3116 { on (release) { gotoAndStop(64); } } movieClip 3119 { } movieClip 3120 { } movieClip 3123 { } movieClip 3124 { } button 3126 { on (release) { _root.BTN_quit(); } } movieClip 3129 { } movieClip 3131 { } movieClip 3132 { frame 1 { stop(); } } movieClip 3133 { } movieClip 3134 { } movieClip 3136 { } movieClip 3137 { } movieClip 3225 { frame 1 { stop(); } } movieClip 3227 { } movieClip 3229 { } movieClip 3240 { } movieClip 3243 { } movieClip 3245 { } movieClip 3247 { } movieClip 3264 { } movieClip 3280 { } movieClip 3281 { } movieClip 3282 { } movieClip 3283 { } movieClip 3284 { } movieClip 3285 { } movieClip 3286 { } movieClip 3287 { } movieClip 3288 { } movieClip 3290 { } movieClip 3291 { } movieClip 3292 { } movieClip 3293 { } movieClip 3294 { } movieClip 3296 { } movieClip 3297 { instance aaa of movieClip 3133 { onClipEvent (load) { stop(); } } } movieClip 3299 { } button 3302 { on (release) { _root.BTN_markerClick(id); } on (rollOver, dragOver) { aaa.aaa.play(); _root.mouse_over_marker = id; } on (rollOut, dragOut) { aaa.aaa.stop(); _root.mouse_over_marker = 0; } } movieClip 3305 { } movieClip 3306 { frame 14 { stop(); } } movieClip 3308 { } movieClip 3309 { } movieClip 3310 { } movieClip 3311 { } movieClip 3312 { } movieClip 3313 { frame 2 { stop(); } instance of movieClip 3312 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 3314 { } movieClip 3315 { } movieClip 3316 { frame 1 { stop(); } } button 3320 { on (release) { _root.BTN_markerClick(id); } on (rollOver, dragOver) { aaa.dothemovement = 1; _root.mouse_over_marker = id; } on (rollOut, dragOut) { aaa.dothemovement = 0; _root.mouse_over_marker = 0; } } movieClip 3321 { frame 16 { stop(); } instance aaa of movieClip 3316 { onClipEvent (enterFrame) { if (dothemovement eq 1) { gotoAndStop(2); aaa.play(); } else { gotoAndStop(1); aaa.stop(); } } } } movieClip 3324 { } movieClip 3326 { } movieClip 3327 { } movieClip 3330 { frame 16 { stop(); } } button 3332 { on (release) { _root.WorldMap.grats._visible = true; this.saveslot2003 = SharedObject.getLocal('yiffLayoutSave3'); varlocation1 = this.saveslot2003.data; varlocation1.campaignFinished = 1; } } movieClip 3333 { } movieClip 3334 { } movieClip 3335 { } movieClip 3336 { } movieClip 3337 { frame 10 { stop(); } } button 3338 { on (release) { _root.BTN_markerClick(id); } on (rollOver, dragOver) { aaa.play(); _root.mouse_over_marker = id; } on (rollOut, dragOut) { aaa.stop(); _root.mouse_over_marker = 0; } } movieClip 3339 { frame 14 { stop(); } instance aaa of movieClip 3133 { onClipEvent (load) { stop(); } } } movieClip 3340 { } movieClip 3341 { } movieClip 3342 { frame 2 { stop(); } instance of movieClip 3341 { onClipEvent (load) { cacheAsBitmap = true; } } } movieClip 3344 { } movieClip 3347 { } movieClip 3350 { } movieClip 3353 { } movieClip 3354 { } movieClip 3355 { } movieClip 3356 WorldMap { frame 1 { stopAllSounds(); } instance of movieClip 3120 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 2440 { onClipEvent (load) { timeA = 0; ghghgyiffhgjt = 999; median_fps_sum = 0; median_fps_mod = 5; median_fps_count = 0; median_fps_sum2 = 0; median_fps_mod2 = 25; median_fps_count2 = 0; } onClipEvent (enterFrame) { timeB = getTimer(); var fps_rough = Math.floor(1000 / (this.timeB - this.timeA)); timeA = timeB; if (median_fps_count < median_fps_mod) { ++median_fps_count; median_fps_sum += fps_rough; } else { this.current_fps = Math.floor(median_fps_sum / this.median_fps_count); this.median_fps_sum = 0; this.median_fps_count = 0; } if (median_fps_count2 < median_fps_mod2) { ++median_fps_count2; median_fps_sum2 += fps_rough; } else { this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2); this.median_fps_sum2 = 0; this.median_fps_count2 = 0; } ghghgyiffhgjt += 0.03333333333333333; if (ghghgyiffhgjt > 0.5) { ghghgyiffhgjt = 30; if (inmenu eq 1) { showvar = 'fps: ' + current_fps + ' '; } else { showvar = ' fps: ' + current_fps + ' '; } } } } frame 2 { stopAllSounds(); } frame 3 { stopAllSounds(); } frame 35 { _root.worldmap_loop.start(0, 99999); dsfgdsfgdsfdsfg = 1; } instance of movieClip 3290 { onClipEvent (enterFrame) { showvar = random(923) + '-' + random(923456789); } } instance of movieClip 3290 { onClipEvent (enterFrame) { showvar = random(92345); } } frame 64 { stop(); } frame 64 { if (dsfgdsfgdsfdsfg != 1) { _root.worldmap_loop.start(0, 99999); } } instance grats of movieClip 3355 { onClipEvent (load) { _visible = false; } } } movieClip 3357 { } movieClip 3358 { } movieClip 3362 missionDescription { } movieClip 3363 { } movieClip 3368 { } movieClip 3369 missionDescription_1003 { } movieClip 3372 missionDescription_1004 { } movieClip 3376 missionDescription_1005 { } movieClip 3379 { } movieClip 3380 missionDescription_1006 { } movieClip 3383 { } movieClip 3384 missionDescription_1007 { } movieClip 3387 { } movieClip 3388 missionDescription_1008 { } movieClip 3390 { } movieClip 3393 { } movieClip 3395 { } movieClip 3397 { } movieClip 3398 getbackMSG { frame 100 { stop(); _root.yiff.playerTank.dmg = 999999999999.0; } } movieClip 3400 { } movieClip 3401 { } movieClip 3405 { } movieClip 3406 { } movieClip 3409 { } movieClip 3413 { } movieClip 3415 { } movieClip 3417 { } movieClip 3418 { } movieClip 3420 { } // unknown tag 88 length 4 movieClip 3429 { } movieClip 3431 { } movieClip 3433 { } movieClip 3435 { } movieClip 3437 { } movieClip 3439 { } movieClip 3441 { } movieClip 3442 { frame 10 { stop(); } } button 3444 { on (release) { _root.theBannerCore.UnloadBanner(); removeMovieClip(_root.zaglushka); _root.BTN_backToMap(); } } movieClip 3445 { frame 85 { stop(); } } movieClip 3446 missionFInished_menu { frame 2 { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; } frame 47 { stop(); show_kills = 0; show_escape = 0; show_ups = 0; show_nukes = 0; show_holes = 0; show_shots = 0; _root.doMissionCalculation = 1; _root.theBannerCore.DOloadBanner(); _root.theBannerCore._x = -52 + this._x; _root.theBannerCore._y = -93 + this._y; _root.attachMovie('zaglushka', 'zaglushka', _root.ad_depth - 1); _root.zaglushka._x = _root.theBannerCore._x; _root.zaglushka._y = _root.theBannerCore._y; } instance of movieClip 3418 { onClipEvent (load) { cacheAsBitmap = true; } } instance text_enkill of movieClip 3429 { onClipEvent (load) { _visible = false; } } instance text_esc of movieClip 3431 { onClipEvent (load) { _visible = false; } } instance text_shots of movieClip 3433 { onClipEvent (load) { _visible = false; } } instance text_ups of movieClip 3435 { onClipEvent (load) { _visible = false; } } instance text_nukes of movieClip 3437 { onClipEvent (load) { _visible = false; } } instance text_holes of movieClip 3439 { onClipEvent (load) { _visible = false; } } } movieClip 3448 { } movieClip 3449 { } movieClip 3453 { } movieClip 3462 { } movieClip 3463 missionFailed_menu { frame 2 { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; } frame 47 { stop(); } frame 47 { stop(); show_kills = 0; show_escape = 0; show_ups = 0; show_nukes = 0; show_holes = 0; show_shots = 0; _root.doMissionCalculation = 1; _root.theBannerCore.DOloadBanner(); _root.theBannerCore._x = -72 + this._x; _root.theBannerCore._y = -97 + this._y; _root.attachMovie('zaglushka', 'zaglushka', _root.ad_depth - 1); _root.zaglushka._x = _root.theBannerCore._x; _root.zaglushka._y = _root.theBannerCore._y; } instance of movieClip 3418 { onClipEvent (load) { cacheAsBitmap = true; } } instance text_enkill of movieClip 3429 { onClipEvent (load) { _visible = false; } } instance text_esc of movieClip 3431 { onClipEvent (load) { _visible = false; } } instance text_shots of movieClip 3433 { onClipEvent (load) { _visible = false; } } instance text_ups of movieClip 3435 { onClipEvent (load) { _visible = false; } } instance text_nukes of movieClip 3437 { onClipEvent (load) { _visible = false; } } instance text_holes of movieClip 3439 { onClipEvent (load) { _visible = false; } } } movieClip 3466 { } // unknown tag 88 length 94 movieClip 3473 { } movieClip 3474 { } button 3475 { on (release) { _root.fgfh666._visible = true; _root.theBannerCore.UnloadBanner(); removeMovieClip(_root.zaglushka); _root.BTN_quitToMenuFromGame(); } } movieClip 3476 { instance of movieClip 3474 { onClipEvent (load) { _visible = false; } } frame 41 { stop(); } } movieClip 3479 { } button 3481 { on (release) { play(); } } movieClip 3484 { } movieClip 3486 { frame 1 { _root.done_submitting = 0; } frame 1 { stop(); } frame 10 { function __rankz_send__(par1, par2, par3, par4) { par227 = new LoadVars(); par228 = new LoadVars(); par227.flashkey = par2; par227.SU0249 = par1; par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3); par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + 'j%e%a%n%s'); par227.flashkey = (par227.flashkey.split('=')).join(''); par227.SU0249 = (par227.SU0249.split('=')).join(''); par228.onLoad = function (success) { if (success) { trace(par228.msg); } else { trace(par228.loaded); } }; par227.sendAndLoad('http://rankz.armorbot.com/submit/', par228, 'POST'); } _root.done_submitting = 1; bXlnYW1lX25hbWVfdmFyaWFibGU = _root.winnername; bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = Math.floor(_root.scoretimer * 1000) / 1000; if (_root.mapchosen eq 2001) { __rankz_send__('MzczOWolZSVhJW4lcw==', 'bnhpRFZuQUY=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl); } else { if (_root.mapchosen eq 2002) { __rankz_send__('Mzc0MWolZSVhJW4lcw==', 'bURuV1RiYUQ=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl); } } } frame 19 { stop(); } } movieClip 3489 { } movieClip 3490 { } movieClip 3491 missionFailed_menu2 { frame 2 { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; } frame 47 { stop(); _root.fgfh666._visible = false; _root.ingame_menu.ballSelector1._visible = false; _root.ingame_menu.ballSelector_2._visible = false; _root.ingame_menu.ballSelector_3._visible = false; _root.ingame_menu.ballSelector_4._visible = false; _root.ingame_menu.ballSelector_5._visible = false; _root.ingame_menu.ballSelector_6._visible = false; _root.ingame_menu.btn_overdrv._visible = false; _root.ingame_menu.btn_dimshift._visible = false; _root.ingame_menu.btnNUKE._visible = false; _root.ingame_menu.btnSKILLZ._visible = false; } frame 47 { stop(); _root.theBannerCore.DOloadBanner(); _root.theBannerCore._x = -72 + this._x; _root.theBannerCore._y = -97 + this._y; _root.attachMovie('zaglushka', 'zaglushka', _root.ad_depth - 1); _root.zaglushka._x = _root.theBannerCore._x; _root.zaglushka._y = _root.theBannerCore._y; } instance of movieClip 3418 { onClipEvent (load) { cacheAsBitmap = true; } } instance of movieClip 3473 { onClipEvent (load) { showvar = Math.floor(_root.scoretimer * 1000) / 1000 + ' sec'; } } instance of movieClip 3490 { onClipEvent (load) { nametxt.text = 'Player ' + random(99999); } onClipEvent (enterFrame) { _root.winnername = nametxt.text; } } } movieClip 3501 missionFailed_menu3 { frame 2 { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; } frame 47 { stop(); } frame 47 { stop(); show_kills = 0; show_escape = 0; show_ups = 0; show_nukes = 0; show_holes = 0; show_shots = 0; _root.doMissionCalculation = 1; _root.theBannerCore.DOloadBanner(); _root.theBannerCore._x = -72 + this._x; _root.theBannerCore._y = -97 + this._y; _root.attachMovie('zaglushka', 'zaglushka', _root.ad_depth - 1); _root.zaglushka._x = _root.theBannerCore._x; _root.zaglushka._y = _root.theBannerCore._y; } instance of movieClip 3418 { onClipEvent (load) { cacheAsBitmap = true; } } instance text_enkill of movieClip 3429 { onClipEvent (load) { _visible = false; } } instance text_esc of movieClip 3431 { onClipEvent (load) { _visible = false; } } instance text_shots of movieClip 3433 { onClipEvent (load) { _visible = false; } } instance text_ups of movieClip 3435 { onClipEvent (load) { _visible = false; } } instance text_nukes of movieClip 3437 { onClipEvent (load) { _visible = false; } } instance text_holes of movieClip 3439 { onClipEvent (load) { _visible = false; } } } movieClip 3504 background_bottom_2 { } movieClip 3507 bottom_wall_2 { } movieClip 3509 upper_wall_2 { } movieClip 3512 { } movieClip 3513 background_bottom_3 { } movieClip 3516 upper_wall_3 { } movieClip 3518 bottom_wall_3 { } movieClip 3521 background_top_3 { } movieClip 3524 rubbish_1 { } movieClip 3527 rubbish_2 { } movieClip 3530 rubbish_3 { } movieClip 3533 rubbish_4 { } movieClip 3536 rubbish_5 { } movieClip 3539 rubbish_6 { } movieClip 3542 rubbish_7 { } movieClip 3545 rubbish_8 { } movieClip 3548 rubbish_9 { } movieClip 3551 rubbish_10 { } movieClip 3554 rubbish_11 { } movieClip 3557 rubbish_12 { } movieClip 3560 rubbish_13 { } movieClip 3563 rubbish_14 { } movieClip 3566 rubbish_15 { } movieClip 3569 rubbish_16 { } movieClip 3571 { } movieClip 3572 { } movieClip 3574 { } movieClip 3580 { } movieClip 3583 { } movieClip 3584 { } button 3586 { on (release) { removeMovieClip(this); FUnkciyaKotorayaNaKnopkeDlaProbela(); } } movieClip 3587 teleporter_tutorial { } movieClip 3588 zaglushka { } movieClip 3590 { } button 3591 { on (release) { gotoAndStop(90); } } movieClip 3593 { } movieClip 3595 { } movieClip 3597 { } movieClip 3598 { } movieClip 3600 { } movieClip 3601 { } movieClip 3603 { } movieClip 3604 { } movieClip 3605 { instance of movieClip 78 { onClipEvent (enterFrame) { cacheAsBitmap = true; } } instance of movieClip 3604 { onClipEvent (enterFrame) { cacheAsBitmap = true; } } } movieClip 3606 { } movieClip 3620 { frame 1 { aaa = 0; } frame 2 { aaa = 1; } frame 32 { aaa = 0; } } movieClip 3621 { instance of movieClip 3620 { onClipEvent (enterFrame) { if (random(_root.menunukedetonate_rr) eq 1) { play(); } else { if (aaa != 1) { gotoAndStop(1); } } } } } movieClip 3622 { instance of movieClip 3620 { onClipEvent (enterFrame) { if (random(_root.menunukedetonate_small_rr) eq 1) { play(); } else { if (aaa != 1) { gotoAndStop(1); } } } } } movieClip 3625 { } button 3627 { on (rollOver, rollOut, dragOver, dragOut) { gotoAndPlay(1); } } movieClip 3630 { } movieClip 3631 { } movieClip 3632 { } movieClip 3635 { } movieClip 3645 { } movieClip 3646 { } movieClip 3649 { } movieClip 3650 { } movieClip 3653 { } movieClip 3654 { } movieClip 3655 { } movieClip 3657 { } movieClip 3659 { } movieClip 3661 { } movieClip 3662 { } movieClip 3663 { } movieClip 3664 { } movieClip 3665 { } movieClip 3666 { } movieClip 3667 { } button 3670 { on (release) { nextFrame(); } } movieClip 3671 { frame 1 { _root.secretacessyiffyiffyiff = 0; stop(); } frame 50 { stop(); _root.mainMenu.secret_menu._visible = true; } } movieClip 3672 { } movieClip 3675 { } movieClip 3676 { } movieClip 3677 { } movieClip 3681 { } movieClip 3685 { } movieClip 3686 { } movieClip 3687 { frame 1 { _root.menunukedetonate_small_rr = 35; _root.menunukedetonate_rr = 40; } instance of movieClip 3290 { onClipEvent (enterFrame) { showvar = random(923) + '-' + random(923456789); } } instance of movieClip 3290 { onClipEvent (enterFrame) { showvar = random(92345); } } } movieClip 3692 { } movieClip 3693 { } movieClip 3696 { } movieClip 3697 { } movieClip 3703 { } movieClip 3704 { } movieClip 3707 { } movieClip 3708 { } movieClip 3713 { } movieClip 3714 { } movieClip 3717 { } movieClip 3718 { } movieClip 3725 { frame 10 { stop(); } } button 3726 { on (release) { secret_menu._visible = false; armag_menu._visible = false; survival_menu._visible = false; if (campaign_menu._visible eq true) { campaign_menu._visible = false; } else { campaign_menu.gotoAndStop(1); campaign_menu._visible = true; } } } movieClip 3727 { frame 10 { stop(); } } button 3728 { on (release) { secret_menu._visible = false; armag_menu._visible = false; campaign_menu.gotoAndStop(1); campaign_menu._visible = false; if (survival_menu._visible eq true) { survival_menu._visible = false; } else { survival_menu.gotoAndStop(1); survival_menu._visible = true; } } } movieClip 3729 { frame 10 { stop(); } } button 3730 { on (release) { secret_menu._visible = false; survival_menu._visible = false; campaign_menu.gotoAndStop(1); campaign_menu._visible = false; if (armag_menu._visible eq true) { armag_menu._visible = false; } else { armag_menu.gotoAndStop(1); armag_menu._visible = true; } } } movieClip 3731 { frame 10 { stop(); } } button 3732 { on (release) { secret_menu._visible = false; survival_menu._visible = false; campaign_menu.gotoAndStop(1); campaign_menu._visible = false; armag_menu._visible = false; if (sand_menu._visible eq true) { sand_menu._visible = false; } else { sand_menu.gotoAndStop(1); sand_menu._visible = true; } } } movieClip 3733 { frame 10 { stop(); } } button 3734 { on (release) { getURL('http://armorgames.com/', '_blank'); } } movieClip 3735 { frame 10 { stop(); } } button 3736 { on (release) { getURL('http://dz2001.newgrounds.com/', '_blank'); } } movieClip 3739 { } movieClip 3740 { } movieClip 3742 { } movieClip 3743 { } movieClip 3745 { } movieClip 3747 { } movieClip 3749 { } movieClip 3751 { } movieClip 3752 { } movieClip 3754 { } movieClip 3755 { } movieClip 3756 { instance of movieClip 3740 { onClipEvent (enterFrame) { if (random(30) eq 1) { aaa = random(4); if (aaa eq 0) { _height = 60; } else { if (aaa eq 1) { _height = 120; } else { if (aaa eq 2) { _height = 30; } else { if (aaa eq 3) { _height = 50; } } } } } } } instance of movieClip 3743 { onClipEvent (enterFrame) { if (random(20) eq 1) { aaa = random(4); if (aaa eq 0) { _height = 60; } else { if (aaa eq 1) { _height = 120; } else { if (aaa eq 2) { _height = 1; } else { if (aaa eq 3) { _height = 50; } } } } } } } instance bb of movieClip 2065 { onClipEvent (load) { gotoAndPlay(random(38) + 1); } } } movieClip 3759 { } movieClip 3760 { } movieClip 3761 { } button 3762 { on (release) { if (wehaveasavedgame != 1) { gotoAndStop(2); } else { _root.startCampaign(); } } } movieClip 3764 { } movieClip 3765 { } movieClip 3766 { } button 3767 { on (release) { if (wehaveasavedgame eq 1) { gotoAndStop(3); } else { _root.startCampaign(); } } } movieClip 3769 { } movieClip 3772 { } movieClip 3774 { } movieClip 3775 { } button 3776 { on (release) { _root.startCampaign(); } } // unknown tag 88 length 100 movieClip 3782 { } button 3784 { on (release) { this.saveslot000 = SharedObject.getLocal('yiffyiffmeowSAVE81610'); varlocation1 = this.saveslot000.data; varlocation1.saved = 0; _root.reloadVars11(); _root.startCampaign(); } } movieClip 3786 { } button 3787 { on (release) { gotoAndStop(1); } } // unknown tag 88 length 81 movieClip 3790 { frame 1 { stop(); saveslot000 = SharedObject.getLocal('yiffyiffmeowSAVE81610'); varlocation1111 = saveslot000.data; if (varlocation1111.saved eq 1) { wehaveasavedgame = 1; } else { wehaveasavedgame = 0; } } } movieClip 3792 { } button 3794 { on (release) { getURL('http://rankz.armorbot.com/mmm4_survival/', '_blank'); } } // unknown tag 88 length 146 movieClip 3798 { } movieClip 3799 { } movieClip 3800 { instance of movieClip 3799 { onClipEvent (load) { cacheAsBitmap = true; } } } button 3802 { on (release) { _root.initiateSurvival(2); } } movieClip 3804 { } movieClip 3805 { instance of movieClip 3804 { onClipEvent (load) { cacheAsBitmap = true; } } } button 3807 { on (release) { _root.initiateSurvival(1); } } movieClip 3808 { } movieClip 3809 { instance of movieClip 3808 { onClipEvent (load) { cacheAsBitmap = true; } } } button 3811 { on (release) { _root.initiateSurvival(3); } } movieClip 3812 { } movieClip 3813 { instance of movieClip 3812 { onClipEvent (load) { cacheAsBitmap = true; } } } button 3815 { on (release) { _root.initiateSurvival(4); } } movieClip 3816 { } button 3817 { on (release) { getURL('http://rankz.armorbot.com/mmm4_armag/', '_blank'); } } button 3818 { on (release) { _root.initiateArmageddon(2); } } button 3819 { on (release) { _root.initiateArmageddon(1); } } button 3820 { on (release) { _root.initiateArmageddon(3); } } button 3821 { on (release) { _root.initiateArmageddon(4); } } movieClip 3822 { } movieClip 3824 { } button 3826 { on (release) { nextFrame(); } } movieClip 3828 { } movieClip 3830 { } button 3832 { on (release) { gotoAndStop(1); _visible = false; } } movieClip 3833 { } movieClip 3834 { } movieClip 3835 { } movieClip 3836 { } movieClip 3837 { } movieClip 3838 { } movieClip 3839 { } movieClip 3840 { } button 3841 { on (press) { aaa = 1; } } button 3842 { on (press) { aaa = 0; } } movieClip 3843 { frame 1 { stop(); } } movieClip 3846 { } movieClip 3847 { frame 1 { stop(); } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 14; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 10; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 33; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 26; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } } movieClip 3848 { frame 1 { stop(); } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 5; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 13; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 27; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 28; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 29; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 20; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 21; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 22; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 23; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 24; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 11; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 6; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 4; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 17; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 16; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 32; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 3; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 31; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 12; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 2; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 9; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 30; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 1; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 19; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 18; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 25; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 7; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 15; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3843 { onClipEvent (enterFrame) { id = 8; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root['sandyiff_unit_online_' + id]; } else { _root['sandyiff_unit_online_' + id] = aaa; } gotoAndStop(aaa + 1); } } instance locked of movieClip 3847 { onClipEvent (load) { this.saveslot2003 = SharedObject.getLocal('yiffLayoutSave3'); varlocation1 = this.saveslot2003.data; if (varlocation1.campaignFinished eq 1) { gotoAndStop(2); } else { _root.sandyiff_unit_online_14 = 0; _root.sandyiff_unit_online_10 = 0; _root.sandyiff_unit_online_33 = 0; _root.sandyiff_unit_online_26 = 0; gotoAndStop(1); } } } } movieClip 3850 { } button 3852 { on (release) { selector.play(); i = 1; while (i < 41) { trace(i); if (_root['sandyiff_unit_online_' + i] != 1) { _root['sandyiff_unit_online_' + i] = 1; } else { _root['sandyiff_unit_online_' + i] = 0; } ++i; } } } movieClip 3854 { } button 3856 { on (release) { selector.play(); i = 1; while (i < 41) { _root['sandyiff_unit_online_' + i] = random(2); ++i; } } } movieClip 3858 { } button 3860 { on (release) { selector.play(); i = 1; while (i < 41) { _root['sandyiff_unit_online_' + i] = 0; ++i; } } } movieClip 3862 { } movieClip 3864 { } movieClip 3866 { } button 3868 { on (release) { prevFrame(); } } movieClip 3869 { } movieClip 3871 { } movieClip 3874 { } button 3875 { on (release) { if (aaa < a_max) { aaa += delta_; } } } movieClip 3876 { } button 3877 { on (release) { if (aaa > a_min) { aaa -= delta_; } } } movieClip 3878 { } movieClip 3881 { } movieClip 3883 { } button 3885 { on (release) { _root.sandbox_attackDirection = 2; } } movieClip 3887 { } button 3889 { on (release) { _root.sandbox_attackDirection = 3; } } button 3891 { on (release) { _root.sandbox_attackDirection = 1; } } movieClip 3892 { } movieClip 3894 { } movieClip 3895 { } button 3896 { on (press) { aaa = 1; } } button 3897 { on (press) { aaa = 0; } } movieClip 3898 { frame 1 { stop(); } } button 3904 { on (release) { _root.initiateSandbox(2); } } button 3905 { on (release) { _root.initiateSandbox(1); } } button 3906 { on (release) { _root.initiateSandbox(3); } } button 3907 { on (release) { _root.initiateSandbox(4); } } movieClip 3908 { frame 1 { stop(); } instance of movieClip 3878 { onClipEvent (enterFrame) { thisvar = 'SANDBOXenemies_max'; a_min = 2; a_max = 500; nominal = 8; if (_root[thisvar] > a_min - 1 and _root[thisvar] < a_max + 1) { } else { _root[thisvar] = nominal; } if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root[thisvar]; } else { _root[thisvar] = aaa; } display_var = aaa; if (aaa > 30) { delta_ = 5; } else { delta_ = 1; } } } instance of movieClip 3892 { onClipEvent (enterFrame) { gotoAndStop(_root.sandbox_attackDirection); } } instance of movieClip 3898 { onClipEvent (enterFrame) { varname = 'SAND_invul'; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root[varname]; } else { _root[varname] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3898 { onClipEvent (enterFrame) { varname = 'SAND_MaxLVL'; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root[varname]; } else { _root[varname] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3898 { onClipEvent (enterFrame) { varname = 'SAND_ALLmaxedUP'; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root[varname]; } else { _root[varname] = aaa; } gotoAndStop(aaa + 1); } } instance of movieClip 3898 { onClipEvent (enterFrame) { varname = 'SAND_instantReload'; if (yiffffffff != 'fhtagn') { yiffffffff = 'fhtagn'; aaa = _root[varname]; } else { _root[varname] = aaa; } gotoAndStop(aaa + 1); } } } movieClip 3910 { } movieClip 3912 { } movieClip 3914 { } button 3916 { on (release) { nextFrame(); } } button 3920 { on (release) { _visible = false; } } movieClip 3922 { } movieClip 3925 { } button 3926 { on (release) { prevFrame(); } } movieClip 3927 { frame 1 { stop(); } } button 3934 { on (release) { getURL('http://soluslunes.newgrounds.com/', '_blank'); } } movieClip 3935 mainMenu { frame 31 { _root.game_music_shell.menu_loop.start(0, 9999); asdasdasda = 1; } instance of movieClip 3606 { onClipEvent (load) { cacheAsBitmap = true; } } frame 90 { stop(); if (asdasdasda != 1) { _root.game_music_shell.menu_loop.start(0, 9999); } } instance campaign_menu of movieClip 3790 { onClipEvent (load) { _visible = false; } } instance survival_menu of movieClip 3816 { onClipEvent (load) { _visible = false; } } instance armag_menu of movieClip 3822 { onClipEvent (load) { _visible = false; } } instance sand_menu of movieClip 3908 { onClipEvent (load) { _visible = false; } } instance secret_menu of movieClip 3927 { onClipEvent (load) { _visible = false; } } } movieClip 3936 { frame 1 { stop(); } instance of movieClip 279 enemy_5 { onClipEvent (load) { if (birth eq 'righty') { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 3 { function initBaseVars_0() { _root.kursor_depth = 99999; _root.teleporter_tutorial_depth = 4050; _root.WorldMap_depth = 4001; _root.objectives_menu_depth = 4000; _root.ad_depth = 3700; _root.lvlupind_depth = 3550; _root.upper_pannel_depth = 3500; _root.pause_menu_depth = 3000; _root.ingame_menu_depth = 2800; _root.getbackDepth = 2700; _root.wpn_ready_ind_depth = 2600; _root.dimshift_timer_depth = 2500; _root.main_menu_depth = 1050; _root.markers_depth = 6000; _root.planes_depth = 5000; _root.hpbar_depth = 3000; _root.background_up_depth = 999; _root.teleporter_depth = 810; _root.warping_unit_depth = 799; _root.rezinka_blue_depth = 798; _root.blackholes_depth = 700; _root.explosions_special_depth = 602; _root.implosion_depth = 601; _root.explosions_depth = 600; _root.walls_depth = 560; _root.bounceballs_depth = 550; _root.magnetballs_depth = 549; _root.shleif_depth = 548; _root.enemy_projectile_depth = 500; _root.enemy2enemy_collision_depth = 100; _root.player_tank_depth = 95; _root.enemies_depth = 90; _root.turrets_depth = 80; _root.powerups_depth = 15; _root.kraters_depth = 10; _root.background_rubbish_depth = 6; _root.background_depth = 5; } function initBaseVars_1() { _root.maxKratersOnTheField = 450; _root.maxBallsOnTheField = 1; _root.teleporter_start_distance = 100; _root.teleporter_done_time = 1; _root.enemy_acceleration = 0.05; _root.maxspeed = 70; _root.speed_zakru4ivanie = 10; _root.ball_loose_control_time = 0.5; _root.powerup_fade_time = 5; _root.launcher_acceleration = 0.2; _root.launcher_speedmax = 5; _root.launcher_shield_max = 3000; _root.launcher_energy_max = 1000; _root.shld_regen_rate = 4; _root.energy_regen_rate = 0.3; } function DMG_randomizers() { _root.gravity_nuke_hueg_dmg = 500 + random(3000); _root.gravity_nuke_radius_dmg = 550 + random(1500); _root.bounceball_damage_0 = 200 + random(300); _root.bounceball_damage_1 = _root.balldmg_base_1 + random(_root.balldmg_plus_1); _root.bounceball_damage_2 = _root.balldmg_base_2 + random(_root.balldmg_plus_2); _root.bounceball_damage_3 = _root.balldmg_base_3 + random(_root.balldmg_plus_3); _root.bounceball_damage_4 = _root.balldmg_base_4 + random(_root.balldmg_plus_4); _root.bounceball_damage_10 = 700 + random(700); _root.bounceball_damage_6 = 500 + random(500); _root.balldetonation_dmg = 1000 + random(500); _root.small_explosion_dmg = random(500); _root.big_explosion_dmg = 500 + random(700); _root.hueg_explosion_dmg = 1000 + random(1000); _root.nuke_dmg = 8000 + random(8000); _root.emp_nuke_dmg = 4000 + random(4000); _root.airstrike_small_dmg = 500 + random(1000); _root.airstrike_big_dmg = 1500 + random(1500); _root.turret_dmg_1 = 500 + random(1500); _root.turret_dmg_2 = 100 + random(100); _root.turret_dmg_3 = 1000 + random(1500); _root.enemy_dmg_1 = 300 + random(300); _root.enemy_dmg_2 = 500 + random(700); _root.enemy_dmg_9 = 500 + random(500); _root.enemy_dmg_12 = 400 + random(700); _root.enemy_dmg_26 = 500 + random(1000); _root.enemy_dmg_26_constantdmg_core = random(200); _root.enemy_dmg_26_constantdmg = random(100); _root.enemy_dmg_30 = 100 + random(400); _root.enemy_dmg_31 = 500 + random(500); _root.playerTank_smallSHell = 1000 + random(1000); _root.playerTank_bigSHell = 2000 + random(2000); _root.playerTank_empSHell = 500 + random(600); } function initBaseVars_2() { _root.razmagni4evanie_time = 0.3; _root.magnetball_mass = 10; _root.magnetball_startspeed = 15; _root.magnetball_average_lifetime = 10; _root.emp_unitDeactivation_time = 5; tank_delay_seconds_1 = 0.6; tank_delay_seconds_2 = 1; _root.krutilka_mass = 20; _root.krutilka_power_max = -40; _root.krutilka_radius_max = 60; _root.krutilka_radius_min = 1; _root.krutilka_speed_amplifier = 1.07; _root.bounceball_mass_when_calc_controlz = 100; _root.mission_length_1 = 60; _root.mission_length_2 = 60; _root.mission_length_3 = 60; _root.mission_length_4 = 60; _root.mission_length_5 = 60; _root.mission_length_6 = 120; _root.mission_length_7 = 120; _root.mission_length_1003 = 120; _root.mission_length_8 = 120; _root.mission_length_9 = 120; _root.mission_length_1004 = 120; _root.mission_length_10 = 120; _root.mission_length_11 = 120; _root.mission_length_12 = 120; _root.mission_length_13 = 120; _root.mission_length_14 = 200; _root.mission_length_15 = 200; _root.mission_length_16 = 200; _root.mission_length_17 = 200; _root.mission_length_18 = 200; _root.mission_length_1005 = 200; _root.mission_length_19 = 100; _root.mission_length_20 = 100; _root.mission_length_21 = 300; _root.mission_length_22 = 200; _root.mission_length_23 = 250; _root.mission_length_1006 = 130; _root.mission_length_1007 = 200; _root.mission_length_1008 = 120; _root.mission_rank_1 = 'Training'; _root.mission_rank_2 = 'Training'; _root.mission_rank_3 = 'Training'; _root.mission_rank_4 = 'Training'; _root.mission_rank_5 = 'Training'; _root.mission_rank_6 = 'D'; _root.mission_rank_7 = 'D'; _root.mission_rank_8 = 'D'; _root.mission_rank_9 = 'D'; _root.mission_rank_10 = 'C'; _root.mission_rank_11 = 'B'; _root.mission_rank_12 = 'C'; _root.mission_rank_13 = 'C'; _root.mission_rank_14 = 'C'; _root.mission_rank_15 = 'C'; _root.mission_rank_16 = 'C'; _root.mission_rank_17 = 'B'; _root.mission_rank_18 = 'B'; _root.mission_rank_19 = 'A'; _root.mission_rank_20 = 'A'; _root.mission_rank_21 = 'A'; _root.mission_rank_22 = 'A'; _root.mission_rank_23 = 'A'; projectile_speed_1 = 15; projectile_mass_1 = 40; projectile_radius_1 = 22; projectile_lifetime_1 = 1.5; projectile_encost_1 = 50; projectile_speed_2 = 40; projectile_mass_2 = 80; projectile_radius_2 = 22; projectile_lifetime_2 = 4; projectile_encost_2 = 250; projectile_speed_3 = 15; projectile_mass_3 = 650; projectile_radius_3 = 22; projectile_lifetime_3 = 6; projectile_encost_3 = 300; projectile_speed_4 = 30; projectile_mass_4 = 50; projectile_radius_4 = 22; projectile_lifetime_4 = 8; projectile_encost_4 = 300; projectile_speed_5 = 6; projectile_mass_5 = 150; projectile_radius_5 = 22; projectile_lifetime_5 = 6; projectile_encost_5 = 300; projectile_speed_6 = 40; projectile_mass_6 = 150; projectile_radius_6 = 22; projectile_lifetime_6 = 10; projectile_encost_6 = 100; _root.dimensionalSHift_time = 10; _root.dimensionalSHift_delay = 40; _root.overdrive_time = 15; _root.overdrive_delay = 55; _root.overdriveHPRegen_boost = 10; _root.overdriveENRegen_boost = 10; _root.overdriveAmmoRechargeSPEEDUP = 5; _root.dimshiftHPRegen_boost = 2; _root.dimshiftENRegen_boost = 4; _root.invul_time = 10; _root.wpn_reloading_time_0 = 70; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 30; _root.wpn_reloading_time_3 = 30; _root.wpn_reloading_time_4 = 50; _root.wpn_reloading_time_5 = 60; _root.ballProjectile_reloading_time_2 = 0.2; _root.ballProjectile_reloading_time_3 = 20; _root.ballProjectile_reloading_time_4 = 20; _root.ballProjectile_reloading_time_5 = 40; _root.ballProjectile_reloading_time_6 = 30; } function initBaseVars_3() { _root.scoretimer = 0; _root.powerups_spawned_counter = 0; _root.yiff_paused = 0; _root.gun_delay_1 = 0; _root.tank_timer_1 = 0; _root.enemiesArray = []; _root.bounceballsArray = []; _root.singularitiesArray = []; _root.magnetsArray = []; _root.turretsArray = []; friendlyTargetsArray = []; _root.powerupsArray = []; _root.powerupsOnTheField = 0; _root.turretsOnTheField = 0; _root.magnetsOnTheField = 0; _root.overdrive_activated = 0; _root.mouseOverUnit = 0; tnksht2timer = 0; _root.forced_only_antimatter = 0; chosenball = 'none'; _root.mouse_over_powerup = 0; _root.blackballonthefield = 0; _root.tank_ammo_selected = 1; _root.ammo_chosen = 1; _root.carpet_timer = 0; _root.cursor_wpn_selected = 0; mouse_is_down = 0; _root.wpn_reloading_timer_0 = 0; _root.wpn_available_0 = 0; _root.wpn_loaded_0 = 0; _root.wpn_reloading_timer_1 = 0; _root.wpn_available_1 = 0; _root.wpn_loaded_1 = 0; _root.wpn_reloading_timer_2 = 0; _root.wpn_available_2 = 0; _root.wpn_loaded_2 = 0; _root.wpn_reloading_timer_3 = 0; _root.wpn_available_3 = 0; _root.wpn_loaded_3 = 0; _root.wpn_reloading_timer_4 = 0; _root.wpn_available_4 = 0; _root.wpn_loaded_4 = 0; _root.wpn_reloading_timer_5 = 0; _root.wpn_available_5 = 0; _root.wpn_loaded_5 = 0; _root.overdrive_timer = 0; _root.overdrive_delayTimer = 0; _root.invul_timer = 0; _root.invul_delayTimer = 0; _root.stat_kills = 0; _root.stat_shots = 0; _root.stat_powerups = 0; _root.stat_nukes = 0; _root.stat_blackholes = 0; _root.ballProjectile_available_2 = 0; _root.ballProjectile_loaded_2 = 0; _root.ballProjectile_reloading_timer_2 = 0; _root.ballProjectile_available_3 = 0; _root.ballProjectile_loaded_3 = 0; _root.ballProjectile_reloading_timer_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_loaded_4 = 0; _root.ballProjectile_reloading_timer_4 = 0; _root.ballProjectile_available_5 = 0; _root.ballProjectile_loaded_5 = 0; _root.ballProjectile_reloading_timer_5 = 0; _root.ballProjectile_available_6 = 0; _root.ballProjectile_loaded_6 = 0; _root.ballProjectile_reloading_timer_6 = 0; _root.dimensionalSHift_timer = 0; _root.dimensionalSHift_delayTimer = 0; _root.launcher_has_died = 0; _root.timer = 0; _root.kills = 0; _root.escaped = 0; } function initPROGRESSVars() { _root.lvl = 1; _root.experience = 0; _root.skill_points = 0; var v2 = 1; while (v2 < 40) { _root['map_status_' + v2] = 0; ++v2; } _root.map_status_1003 = 0; _root.map_status_1004 = 0; _root.map_status_1005 = 0; _root.map_status_1006 = 0; _root.map_status_1007 = 0; _root.map_status_1008 = 0; _root.map_status_1 = 1; _root.energy_upgrade_max = 30; _root.energy_upgrade = 0; _root.shield_upgrade_max = 30; _root.shield_upgrade = 0; _root.proj_upgrade_general = 0; _root.proj_upgrade_general_max = 25; _root.proj_upgrade_1 = 0; _root.proj_upgrade_1_max = 15; _root.proj_upgrade_2 = 0; _root.proj_upgrade_2_max = 15; _root.proj_upgrade_3 = 0; _root.proj_upgrade_3_max = 15; _root.proj_upgrade_4 = 0; _root.proj_upgrade_4_max = 15; _root.proj_upgrade_5 = 0; _root.proj_upgrade_5_max = 15; _root.proj_upgrade_6 = 0; _root.proj_upgrade_6_max = 15; _root.projPlus1Upgrade_max = 5; _root.projPlus1Upgrade = 0; _root.projCatcherUpgrade_max = 5; _root.projCatcherUpgrade = 0; _root.speedUpgrade1_max = 5; _root.speedUpgrade1 = 0; _root.ballActivationUpgrade_max = 10; _root.ballActivationUpgrade = 0; _root.speedUpgrade2_max = 10; _root.speedUpgrade2 = 0; _root.advShieldUpgrade_max = 5; _root.advShieldUpgrade = 0; _root.zeroConduit_max = 10; _root.zeroConduit = 0; _root.timeUpgrade_max = 10; _root.timeUpgrade = 0; _root.projPlus2Upgrade_max = 10; _root.projPlus2Upgrade = 0; } function saveANDload(dowhat) { trace(dowhat); this.saveslot000 = SharedObject.getLocal('yiffyiffmeowSAVE81610'); if (dowhat eq 'load') { varlocation1111 = this.saveslot000.data; if (varlocation1111.saved != 1) { return undefined; } } if (dowhat eq 'save') { varlocation1 = this.saveslot000.data; varlocation2 = _root; varlocation1.saved = 1; } else { if (dowhat eq 'load') { varlocation2 = this.saveslot000.data; varlocation1 = _root; } else { return undefined; } } varlocation1.lvl = varlocation2.lvl; varlocation1.experience = varlocation2.experience; varlocation1.skill_points = varlocation2.skill_points; var v3 = 1; while (v3 < 40) { varlocation1['map_status_' + v3] = varlocation2['map_status_' + v3]; ++v3; } varlocation1.map_status_1003 = varlocation2.map_status_1003; varlocation1.map_status_1004 = varlocation2.map_status_1004; varlocation1.map_status_1005 = varlocation2.map_status_1005; varlocation1.map_status_1006 = varlocation2.map_status_1006; varlocation1.map_status_1007 = varlocation2.map_status_1007; varlocation1.map_status_1008 = varlocation2.map_status_1008; v3 = 1; while (v3 < 40) { varlocation1['expmax_' + v3] = varlocation2['expmax_' + v3]; ++v3; } varlocation1.energy_upgrade = varlocation2.energy_upgrade; varlocation1.shield_upgrade = varlocation2.shield_upgrade; varlocation1.proj_upgrade_general = varlocation2.proj_upgrade_general; varlocation1.proj_upgrade_1 = varlocation2.proj_upgrade_1; varlocation1.proj_upgrade_2 = varlocation2.proj_upgrade_2; varlocation1.proj_upgrade_3 = varlocation2.proj_upgrade_3; varlocation1.proj_upgrade_4 = varlocation2.proj_upgrade_4; varlocation1.proj_upgrade_5 = varlocation2.proj_upgrade_5; varlocation1.proj_upgrade_6 = varlocation2.proj_upgrade_6; varlocation1.projPlus1Upgrade = varlocation2.projPlus1Upgrade; varlocation1.projCatcherUpgrade = varlocation2.projCatcherUpgrade; varlocation1.speedUpgrade1 = varlocation2.speedUpgrade1; varlocation1.ballActivationUpgrade = varlocation2.ballActivationUpgrade; varlocation1.speedUpgrade2 = varlocation2.speedUpgrade2; varlocation1.advShieldUpgrade = varlocation2.advShieldUpgrade; varlocation1.zeroConduit = varlocation2.zeroConduit; varlocation1.timeUpgrade = varlocation2.timeUpgrade; varlocation1.projPlus2Upgrade = varlocation2.projPlus2Upgrade; if (dowhat eq 'load') { return undefined; } } function initBaseVars_enemyANDturrets() { enemy_mass_1 = 60; enemy_speedmax_1 = 1.3; enemy_radius_1 = 15; enemy_thesize_1 = 'medium'; enemy_gunlength_1 = 30; enemy_reload_time_1 = 5; enemy_armed_1 = 1; enemy_popravka1_1 = 0; enemy_popravka2_1 = 0; enemy_exp_1 = 2; enemy_mass_2 = 200; enemy_speedmax_2 = 1; enemy_radius_2 = 22; enemy_thesize_2 = 'big'; enemy_gunlength_2 = 30; enemy_reload_time_2 = 5; enemy_armed_2 = 1; enemy_popravka1_2 = 90; enemy_popravka2_2 = 90; enemy_loading_charge_time_2 = 1; enemy_exp_2 = 4; enemy_mass_3 = 150; enemy_speedmax_3 = 1; enemy_radius_3 = 22; enemy_thesize_3 = 'big'; enemy_gunlength_3 = 0; enemy_reload_time_3 = 5; enemy_armed_3 = 0; enemy_popravka1_3 = 0; enemy_popravka2_3 = 0; enemy_loading_charge_time_3 = 0; enemy_exp_3 = 4; enemy_mass_4 = 150; enemy_speedmax_4 = 1; enemy_radius_4 = 22; enemy_thesize_4 = 'big'; enemy_gunlength_4 = 0; enemy_reload_time_4 = 5; enemy_armed_4 = 0; enemy_popravka1_4 = 0; enemy_popravka2_4 = 0; enemy_loading_charge_time_4 = 0; enemy_exp_4 = 3; enemy_mass_5 = 40; enemy_speedmax_5 = 1.5; enemy_radius_5 = 13; enemy_thesize_5 = 'small'; enemy_gunlength_5 = 0; enemy_reload_time_5 = 5; enemy_armed_5 = 0; enemy_popravka1_5 = 0; enemy_popravka2_5 = 0; enemy_loading_charge_time_5 = 0; enemy_exp_5 = 1; enemy_mass_6 = 150; enemy_speedmax_6 = 1; enemy_radius_6 = 22; enemy_thesize_6 = 'big'; enemy_gunlength_6 = 0; enemy_reload_time_6 = 5; enemy_armed_6 = 0; enemy_popravka1_6 = 0; enemy_popravka2_6 = 0; enemy_loading_charge_time_6 = 0; enemy_exp_6 = 3; enemy_mass_7 = 800; enemy_speedmax_7 = 1; enemy_radius_7 = 42.5; enemy_thesize_7 = 'hueg'; enemy_gunlength_7 = 0; enemy_reload_time_7 = 5; enemy_armed_7 = 0; enemy_popravka1_7 = 0; enemy_popravka2_7 = 0; enemy_loading_charge_time_7 = 0; enemy_exp_7 = 7; enemy_mass_8 = 800; enemy_speedmax_8 = 1; enemy_radius_8 = 42.5; enemy_thesize_8 = 'hueg'; enemy_gunlength_8 = 0; enemy_reload_time_8 = 5; enemy_armed_8 = 0; enemy_popravka1_8 = 0; enemy_popravka2_8 = 0; enemy_loading_charge_time_8 = 0; enemy_exp_8 = 7; enemy_mass_9 = 300; enemy_speedmax_9 = 1; enemy_radius_9 = 22; enemy_thesize_9 = 'big'; enemy_gunlength_9 = 30; enemy_reload_time_9 = 4.5; enemy_armed_9 = 1; enemy_popravka1_9 = 90; enemy_popravka2_9 = 90; enemy_loading_charge_time_9 = 1; enemy_exp_9 = 4; enemy_mass_10 = 900; enemy_speedmax_10 = 1; enemy_radius_10 = 42.5; enemy_thesize_10 = 'special1'; enemy_gunlength_10 = 0; enemy_reload_time_10 = 9999; enemy_armed_10 = 0; enemy_popravka1_10 = 0; enemy_popravka2_10 = 0; enemy_loading_charge_time_10 = 0; enemy_exp_10 = 10; enemy_mass_11 = 40; enemy_speedmax_11 = 1.5; enemy_radius_11 = 13; enemy_thesize_11 = 'small'; enemy_gunlength_11 = 0; enemy_reload_time_11 = 5; enemy_armed_11 = 0; enemy_popravka1_11 = 0; enemy_popravka2_11 = 0; enemy_loading_charge_time_11 = 0; enemy_exp_11 = 1; enemy_mass_12 = 300; enemy_speedmax_12 = 1; enemy_radius_12 = 22; enemy_thesize_12 = 'big'; enemy_gunlength_12 = 30; enemy_reload_time_12 = 2.5; enemy_armed_12 = 1; enemy_popravka1_12 = 90; enemy_popravka2_12 = 90; enemy_loading_charge_time_12 = 1; enemy_exp_12 = 4; enemy_mass_13 = 100; enemy_speedmax_13 = 1.5; enemy_radius_13 = 16.5; enemy_thesize_13 = 'medium'; enemy_gunlength_13 = 0; enemy_reload_time_13 = 5; enemy_armed_13 = 0; enemy_popravka1_13 = 0; enemy_popravka2_13 = 0; enemy_loading_charge_time_13 = 0; enemy_exp_13 = 2; enemy_mass_14 = 1300; enemy_speedmax_14 = 1; enemy_radius_14 = 42.5; enemy_thesize_14 = 'special1'; enemy_gunlength_14 = 0; enemy_reload_time_14 = 9999; enemy_armed_14 = 0; enemy_popravka1_14 = 0; enemy_popravka2_14 = 0; enemy_loading_charge_time_14 = 0; enemy_exp_14 = 12; enemy_mass_15 = 800; enemy_speedmax_15 = 1; enemy_radius_15 = 42.5; enemy_thesize_15 = 'hueg'; enemy_gunlength_15 = 0; enemy_reload_time_15 = 5; enemy_armed_15 = 0; enemy_popravka1_15 = 0; enemy_popravka2_15 = 0; enemy_loading_charge_time_15 = 0; enemy_exp_15 = 7; enemy_mass_16 = 200; enemy_speedmax_16 = 1.3; enemy_radius_16 = 22; enemy_thesize_16 = 'big'; enemy_gunlength_16 = 0; enemy_reload_time_16 = 5; enemy_armed_16 = 0; enemy_popravka1_16 = 0; enemy_popravka2_16 = 0; enemy_loading_charge_time_16 = 0; enemy_exp_16 = 3; enemy_mass_17 = 150; enemy_speedmax_17 = 1; enemy_radius_17 = 22; enemy_thesize_17 = 'big'; enemy_gunlength_17 = 0; enemy_reload_time_17 = 5; enemy_armed_17 = 0; enemy_popravka1_17 = 0; enemy_popravka2_17 = 0; enemy_loading_charge_time_17 = 0; enemy_exp_17 = 3; enemy_mass_18 = 350; enemy_speedmax_18 = 1; enemy_radius_18 = 35; enemy_thesize_18 = 'special2'; enemy_gunlength_18 = 0; enemy_reload_time_18 = 9999; enemy_armed_18 = 0; enemy_popravka1_18 = 0; enemy_popravka2_18 = 0; enemy_loading_charge_time_18 = 0; enemy_exp_18 = 5; enemy_mass_19 = 300; enemy_speedmax_19 = 1; enemy_radius_19 = 35; enemy_thesize_19 = 'special2'; enemy_gunlength_19 = 0; enemy_reload_time_19 = 9999; enemy_armed_19 = 0; enemy_popravka1_19 = 0; enemy_popravka2_19 = 0; enemy_loading_charge_time_19 = 0; enemy_exp_19 = 5; enemy_mass_20 = 60; enemy_speedmax_20 = 2; enemy_radius_20 = 15; enemy_thesize_20 = 'medium'; enemy_gunlength_20 = 0; enemy_reload_time_20 = 0; enemy_armed_20 = 0; enemy_popravka1_20 = 0; enemy_popravka2_20 = 0; enemy_exp_20 = 1; enemy_mass_21 = 80; enemy_speedmax_21 = 1; enemy_radius_21 = 19; enemy_thesize_21 = 'medium'; enemy_gunlength_21 = 0; enemy_reload_time_21 = 0; enemy_armed_21 = 0; enemy_popravka1_21 = 0; enemy_popravka2_21 = 0; enemy_exp_21 = 1; enemy_mass_22 = 40; enemy_speedmax_22 = 2; enemy_radius_22 = 13; enemy_thesize_22 = 'small'; enemy_gunlength_22 = 0; enemy_reload_time_22 = 5; enemy_armed_22 = 0; enemy_popravka1_22 = 0; enemy_popravka2_22 = 0; enemy_loading_charge_time_22 = 0; enemy_exp_22 = 1; enemy_mass_23 = 70; enemy_speedmax_23 = 1; enemy_radius_23 = 19; enemy_thesize_23 = 'medium'; enemy_gunlength_23 = 0; enemy_reload_time_23 = 0; enemy_armed_23 = 0; enemy_popravka1_23 = 0; enemy_popravka2_23 = 0; enemy_exp_23 = 1; enemy_mass_24 = 50; enemy_speedmax_24 = 1.3; enemy_radius_24 = 16; enemy_thesize_24 = 'medium'; enemy_gunlength_24 = 0; enemy_reload_time_24 = 0; enemy_armed_24 = 0; enemy_popravka1_24 = 0; enemy_popravka2_24 = 0; enemy_exp_24 = 1; enemy_mass_25 = 300; enemy_speedmax_25 = 1; enemy_radius_25 = 35; enemy_thesize_25 = 'special2'; enemy_gunlength_25 = 0; enemy_reload_time_25 = 9999; enemy_armed_25 = 0; enemy_popravka1_25 = 0; enemy_popravka2_25 = 0; enemy_loading_charge_time_25 = 0; enemy_exp_25 = 6; enemy_mass_26 = 1000; enemy_speedmax_26 = 0.6; enemy_radius_26 = 42.5; enemy_thesize_26 = 'special1'; enemy_gunlength_26 = 30; enemy_reload_time_26 = 3.5; enemy_armed_26 = 1; enemy_popravka1_26 = 0; enemy_popravka2_26 = 0; enemy_exp_26 = 20; enemy_mass_27 = 60; enemy_speedmax_27 = 1; enemy_radius_27 = 19; enemy_thesize_27 = 'medium'; enemy_gunlength_27 = 0; enemy_reload_time_27 = 0; enemy_armed_27 = 0; enemy_popravka1_27 = 0; enemy_popravka2_27 = 0; enemy_exp_27 = 1; enemy_mass_28 = 70; enemy_speedmax_28 = 0.8; enemy_radius_28 = 19; enemy_thesize_28 = 'medium'; enemy_gunlength_28 = 0; enemy_reload_time_28 = 0; enemy_armed_28 = 0; enemy_popravka1_28 = 0; enemy_popravka2_28 = 0; enemy_exp_28 = 1; enemy_mass_29 = 70; enemy_speedmax_29 = 0.8; enemy_radius_29 = 19; enemy_thesize_29 = 'medium'; enemy_gunlength_29 = 0; enemy_reload_time_29 = 0; enemy_armed_29 = 0; enemy_popravka1_29 = 0; enemy_popravka2_29 = 0; enemy_exp_29 = 1; enemy_mass_30 = 70; enemy_speedmax_30 = 1.3; enemy_radius_30 = 15; enemy_thesize_30 = 'medium'; enemy_gunlength_30 = 30; enemy_reload_time_30 = 5; enemy_armed_30 = 1; enemy_popravka1_30 = 0; enemy_popravka2_30 = 0; enemy_exp_30 = 2; enemy_mass_31 = 400; enemy_speedmax_31 = 1; enemy_radius_31 = 22; enemy_thesize_31 = 'big'; enemy_gunlength_31 = 30; enemy_reload_time_31 = 3; enemy_armed_31 = 1; enemy_popravka1_31 = 0; enemy_popravka2_31 = 0; enemy_loading_charge_time_31 = 1; enemy_exp_31 = 4; enemy_mass_32 = 150; enemy_speedmax_32 = 2; enemy_radius_32 = 22; enemy_thesize_32 = 'big'; enemy_gunlength_32 = 0; enemy_reload_time_32 = 5; enemy_armed_32 = 0; enemy_popravka1_32 = 0; enemy_popravka2_32 = 0; enemy_loading_charge_time_32 = 0; enemy_exp_32 = 3; enemy_mass_33 = 700; enemy_speedmax_33 = 0.8; enemy_radius_33 = 42.5; enemy_thesize_33 = 'hueg'; enemy_gunlength_33 = 30; enemy_reload_time_33 = 5; enemy_armed_33 = 1; enemy_popravka1_33 = 0; enemy_popravka2_33 = 0; enemy_exp_33 = 17; _root.turret_hp_1 = 7000; _root.turret_radius_1 = 30; _root.turret_reload_time_1 = 6; _root.turret_min_distance_1 = 150; _root.turret_gunlength_1 = 30; _root.turret_hp_2 = 7000; _root.turret_radius_2 = 30; _root.turret_reload_time_2 = 4; _root.turret_min_distance_2 = 70; _root.turret_gunlength_2 = 30; _root.turret_hp_3 = 7000; _root.turret_radius_3 = 18.5; _root.turret_reload_time_3 = 5; _root.turret_min_distance_3 = 70; _root.turret_gunlength_3 = 30; _root.turret_hp_4 = 7000; _root.turret_radius_4 = 18.5; _root.turret_reload_time_4 = 3; _root.turret_min_distance_4 = 10; _root.turret_gunlength_4 = 30; } function enemy2enemyImpactSound() { _root['impact_enemy2enemy_' + (random(16) + 1)].start(); } function enemy2wallImpactSound() { _root.collisionenemy2wallrandomizer = random(4); if (_root.collisionenemy2wallrandomizer eq 3) { _root.impact_enemy2wall_4.start(); } else { if (_root.collisionenemy2wallrandomizer eq 2) { _root.impact_enemy2wall_3.start(); } else { if (_root.collisionenemy2wallrandomizer eq 1) { _root.impact_enemy2wall_2.start(); } else { if (_root.collisionenemy2wallrandomizer eq 0) { _root.impact_enemy2wall_1.start(); } } } } } function ExplosionSound(thesize) { if (thesize eq 'small' or thesize eq 'medium') { _root['Explosion_' + (random(4) + 1)].start(); } else { if (thesize eq 'big') { _root['Explosion_' + (random(2) + 5)].start(); } else { if (thesize eq 'hueg') { _root.Explosion_7.start(); } } } } function enemyShotSound_1() { if (random(2) eq 1) { _root.enemyTankShot1_1.start(); } else { _root.enemyTankShot1_2.start(); } } function enemyShotSound_2() { _root.enemyTankShot2.start(); } function enemyShotSound_9() { _root.enemyShotSnd_9.start(); } function enemyShotSound_12() { _root.enemyShotSnd_9.start(); } function enemyShotSound_26() { _root.enemyShotSnd_26.start(); } function enemyShotSound_30() { _root.enemyShotSnd_30.start(); } function enemyShotSound_31() { _root.enemyShotSnd_30.start(); } function enemyShotSound_33() { _root.enemyShotSnd_26.start(); } function loopmusic() { if (_root.yiff_paused eq 1 or _root.WorldMap) { return undefined; _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); } if (_root.turn_off_music eq 1) { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); return undefined; } if (_root.musicwas_paused eq 1) { musicstartposition = _root.music_paused_at / 1000; } else { musicstartposition = 0; } maxlendth = _root.game_music_shell.mmm3_musicloop_1.duration; now_position = _root.game_music_shell.mmm3_musicloop_1.position; if (now_position / maxlendth > 0.999 or now_position eq 0 or _root.musicwas_paused eq 1) { _root.musicwas_paused = 0; var v3 = this.createEmptyMovieClip('game_music_shell', 70000); _root.game_music_shell.mmm3_musicloop_1 = new Sound(); _root.game_music_shell.mmm3_musicloop_1.attachSound('mmm4_musicloop'); _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.game_music_shell.mmm3_musicloop_1.start(musicstartposition, 1); if (_root.music_off eq 1) { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); } } } function rotation_towards_movement(trg, xspeed, yspeed) { speedpovorota = 1; dx = xspeed; dy = yspeed; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { trg._rotation -= aa; } else { trg._rotation = angle1; } } function rotationTowardsPoint(trgt1, xx2, yy2, popravka) { mewmewmewmewmewmew = CALC_Dist_Xv_Yv(xx2, yy2, trgt1._x, trgt1._y); speedpovorota = 0.9; trg = trgt1; dx = mewmewmewmewmewmew[3]; dy = mewmewmewmewmewmew[4]; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { trg._rotation -= aa; } else { trg._rotation = angle1; } trg._rotation += popravka; } function rotationTowardsPoint_2(kogoRotate, xx1, yy1, xx2, yy2, popravka, slowness) { mewmewmewmewmewmew = CALC_Dist_Xv_Yv(xx2, yy2, xx1, yy1); if (slowness eq 1) { speedpovorota = 0.1; } else { speedpovorota = 0.9; } trg = trgt1; dx = mewmewmewmewmewmew[3]; dy = mewmewmewmewmewmew[4]; _root.tempwar_xmod = mewmewmewmewmewmew[1]; _root.tempwar_ymod = mewmewmewmewmewmew[2]; angle1 = Math.atan2(dy, dx) * 57.29577951308232; angle2 = trg._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } aa = angle2 - angle1; if (aa > 180) { aa -= 360; } else { if (aa < -180) { aa += 360; } } aa *= speedpovorota; if (Math.abs(aa) > 0.01) { kogoRotate._rotation -= aa; } else { kogoRotate._rotation = angle1; } kogoRotate._rotation += popravka; } function DefineSpeed(target) { target.speed = Math.sqrt(target.xspeed * target.xspeed + target.yspeed * target.yspeed); aaa = _root.maxspeed / target.speed; if (aaa < 1) { target.xspeed *= aaa; target.yspeed *= aaa; } target.speed = Math.sqrt(target.xspeed * target.xspeed + target.yspeed * target.yspeed); } function moveObject(target) { if (target) { target.tempx = target.xpos + target.xspeed; target.tempy = target.ypos + target.yspeed; } } function renderObject(target) { if (target) { target.xpos = target.tempx; target.ypos = target.tempy; target._x = target.xpos; target._y = target.ypos; } } function CALC_Dist_Xv_Yv(x1, y1, x2, y2) { A = {}; B = {}; A.xx = x1; A.yy = y1; B.xx = x2; B.yy = y2; dx = A.xx - B.xx; dy = A.yy - B.yy; distance = Math.sqrt(dx * dx + dy * dy); dx_a = Math.abs(dx); dy_a = Math.abs(dy); if (dx > 0 or dx eq 0) { xmod = 1; } else { xmod = -1; } if (dy > 0 or dy eq 0) { ymod = 1; } else { ymod = -1; } if (dx_a > dy_a) { spdmod = dy_a / dx_a; x_modifier = xmod; y_modifier = ymod * spdmod; return [distance, x_modifier, y_modifier, dx, dy]; } if (dx_a < dy_a) { spdmod = dx_a / dy_a; x_modifier = xmod * spdmod; y_modifier = ymod; return [distance, x_modifier, y_modifier, dx, dy]; } x_modifier = xmod; y_modifier = ymod; return [distance, x_modifier, y_modifier, dx, dy]; } function ball2BallReaction(b1, b2, x1, x2, y1, y2, time, type) { var v6 = b1.mass; var v12 = b2.mass; var v24 = b1.xspeed; var v23 = b2.xspeed; var v33 = b1.xspeed; var v34 = b2.xspeed; var v27 = b1.yspeed; var v25 = b2.yspeed; var v28 = x1 - x2; var v32 = y1 - y2; if (b1.type_ eq 2) { var v18 = random(360); } else { var v18 = Math.atan2(v32, v28); } var v5 = Math.cos(v18); var v4 = Math.sin(v18); var v30 = x1 - x2; var v29 = y1 - y2; R_2 = b2.radius; var v14 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R_2 * Math.sin(v14 * 0.0174532925199433); collision_x3 = x2 - R_2 * Math.cos(v14 * 0.0174532925199433); GenerateSparkles(collision_x3, collision_y3); collisionEffect(collision_x3, collision_y3); var v19 = v24 * v5 + v27 * v4; var v16 = v23 * v5 + v25 * v4; var v17 = v27 * v5 - v24 * v4; var v15 = v25 * v5 - v23 * v4; if (type eq 0) { if (b2.id eq 18 or b2.id eq 10) { if (b1.type_ eq 0 or b1.type_ eq 1 or b1.type_ eq 2) { removeMovieClip(b1); b2.dmg *= 0.7; b2.absorb.play(); b2.torso.absorb.play(); return undefined; } } b2.ballhitanim.play(); b1.vspishka.play(); b1.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.ballhitanim.play(); if (b1.type_ != 6) { b2.dmg += _root['bounceball_damage_' + b1.type_]; } } else { if (type eq 1) { if (b2.what eq 'turret') { b1.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; b2.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; } else { b1dmg111 = (Math.abs(v19) + Math.abs(v16)) * v12; b2dmg111 = (Math.abs(v19) + Math.abs(v16)) * v6; if (b2 eq _root.yiff.playerTank) { b2dmg111max = _root.yiff.playerTank.hp / 4; if (b2dmg111 > b2dmg111max) { b2dmg111 = b2dmg111max; } } b1.dmg += b1dmg111; b2.dmg += b2dmg111; } enemy2enemyImpactSound(); v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 2) { b1.vspishka.play(); b1.chaos_timer = _root.ball_losecontroll_time; ++b1.hits; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } else { if (type eq 3) { b1.dmg += Math.abs(v19) * v6; enemy2wallImpactSound(); v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 4) { b2.thecore.ballhitanim.play(); ++b1.enemy_hits; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.dmg += (Math.abs(v19) + Math.abs(v16)) * v6; b2.dmg + _root.disc_dmg; v30 = x1 - x2; v29 = y1 - y2; R2 = b2.radius; var v20 = -Math.atan2(v30, v29) / 0.0174532925199433 + 270; collision_y3 = y2 - R2 * Math.sin(v20 * 0.0174532925199433); collision_x3 = x2 - R2 * Math.cos(v20 * 0.0174532925199433); collisionEffect(collision_x3, collision_y3); } else { if (type eq 5) { b2.ballhitanim.play(); b1.razmagni4ivanie_timer = _root.razmagni4evanie_time; if (b1.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(b1); } if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } b2.dmg += 500 + random(500); } } } } } } var v26 = v6 * v19 + v12 * v16; var v31 = v19 - v16; var v21 = (v26 + v6 * v31) / (v6 + v12); var v22 = v21 - v19 + v16; v19 = v22; v16 = v21; v24 = v19 * v5 - v17 * v4; v23 = v16 * v5 - v15 * v4; v27 = v17 * v5 + v19 * v4; v25 = v15 * v5 + v16 * v4; if (b1.type_ eq 10) { b1.xspeed *= 1.03; b1.yspeed *= 1.03; } if (b1.type_ eq 4) { b1._x = b2._x; b1._y = b2._y; b1.type_ = 10; b1.gotoAndStop(10); return undefined; } if (b1.type_ eq 6) { spawnGravNuke(b2._x, b2._y); removeMovieClip(b1); return undefined; } if (b1.type_ eq 44) { turretShellDetonation(b1._x, b1._y, 303); removeMovieClip(b1); return undefined; } b1.tempx = b1.xpos + b1.xspeed * time * 0.9; b1.tempy = b1.ypos + b1.yspeed * time * 0.9; b1.xspeed = v24; b1.yspeed = v27; b2.tempx = b2.xpos + b2.xspeed * time * 0.9; b2.tempy = b2.ypos + b2.yspeed * time * 0.9; b2.xspeed = v23; b2.yspeed = v25; } function ballToBallDetection(b1, b2, type) { if (b1.type_ eq 5) { return undefined; } var v7 = b1.xspeed; var v9 = b1.yspeed; var v6 = b2.xspeed; var v8 = b2.yspeed; var v4 = b1.xpos; var v2 = b1.ypos; var v3 = b2.xpos; var v1 = b2.ypos; var v15 = b1.radius + b2.radius; var v21 = -2 * v7 * v6 + v7 * v7 + v6 * v6; var v20 = -2 * v4 * v6 - 2 * v3 * v7 + 2 * v4 * v7 + 2 * v3 * v6; var v19 = -2 * v4 * v3 + v4 * v4 + v3 * v3; var v18 = -2 * v9 * v8 + v9 * v9 + v8 * v8; var v17 = -2 * v2 * v8 - 2 * v1 * v9 + 2 * v2 * v9 + 2 * v1 * v8; var v25 = -2 * v2 * v1 + v2 * v2 + v1 * v1; var v14 = v21 + v18; var v11 = v20 + v17; var v24 = v19 + v25 - v15 * v15; var v16 = Math.sqrt(v11 * v11 - 4 * v14 * v24); var v13 = (-v11 + v16) / 2 * v14; var v12 = (-v11 - v16) / 2 * v14; if (v13 > 0 && v13 <= 1) { var v22 = v13; var v23 = true; } if (v12 > 0 && v12 <= 1) { if (v22 == null || v12 < v13) { v22 = v12; v23 = true; } } if (v23) { ball2BallReaction(b1, b2, v4, v3, v2, v1, v22, type); } } function WallCollision(ball) { var v2 = ball; var v5 = v2.ypos + v2.yspeed; var v4 = v2.radius; if (_root.yiff.wall_bottom) { if (v5 + v4 > _root.yiff.wall_bottom._y) { if (ball.type_ eq 6) { spawnGravNuke(ball._x, ball._y); removeMovieClip(ball); return undefined; } if (v2.whatisit eq 'magnets' and v2.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(v2); } v2.tempy = _root.yiff.wall_bottom._y - v4; v2.yspeed *= -1; v2.vspishka.play(); v2.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } } if (_root.yiff.wall_upper) { if (v5 - v4 < _root.yiff.wall_upper._y) { if (ball.type_ eq 6) { spawnGravNuke(ball._x, ball._y); removeMovieClip(ball); return undefined; } if (v2.whatisit eq 'magnets' and v2.lifetimer > _root.magnetball_average_lifetime) { magnetball_detonation(v2); } v2.tempy = _root.yiff.wall_upper._y + v4; v2.yspeed *= -1; v2.vspishka.play(); v2.chaos_time = _root.ball_loose_control_time; if (random(2) eq 1) { _root.balltoenemy_impact2.start(); } else { _root.balltoenemy_impact1.start(); } } } } function Enemy2WallCollision(enemy) { var v2 = enemy; var v4 = v2.ypos + v2.yspeed; var v3 = v2.radius; if (v4 + v3 > _root.yiff.wall_bottom._y) { v2.tempy = _root.yiff.wall_bottom._y - v3; doenemycillisioneffect = 1; } if (v4 - v3 < _root.yiff.wall_upper._y) { v2.tempy = _root.yiff.wall_upper._y + v3; doenemycillisioneffect = 2; } if (doenemycillisioneffect != 0) { if (Math.abs(v2.yspeed) > 5) { v2.yspeed *= -0.5; } else { v2.yspeed *= -0.8; } enemy2wallImpactSound(); walldmg = Math.abs(v2.yspeed * v2.mass); if (walldmg < 100) { walldmg = 100; } if (v2 eq _root.yiff.playerTank) { dmgmax111 = _root.yiff.playerTank.hp / 4; if (walldmg > dmgmax111) { walldmg = dmgmax111; } } v2.dmg += walldmg; if (doenemycillisioneffect eq 1) { collisionEffect(v2._x, _root.yiff.wall_bottom._y); } else { collisionEffect(v2._x, _root.yiff.wall_upper._y); } doenemycillisioneffect = 0; } } function collisionEffect(collision_x, collision_y) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('udar', 'udar_anim' + iyiff, iyiff); _root.yiff.explosions_shell['udar_anim' + iyiff]._x = collision_x; _root.yiff.explosions_shell['udar_anim' + iyiff]._y = collision_y; _root.yiff.explosions_shell['udar_anim' + iyiff]._rotation = random(360); } function explosion_Effect_OnTargets(xx, yy, power) { var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.type_ != 5) { Explosion(checkball, xx, yy, power); } ++v2; } v2 = 0; while (v2 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v2]; Explosion(checkturret, xx, yy, power); ++v2; } if (_root.yiff.playerTank.shift_mode != 1 and power != 999) { if (random(100) > _root.DMG_blcok_chance) { Explosion(_root.yiff.playerTank, xx, yy, power); } } v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; Explosion(checkenemy, xx, yy, power); ++v2; } } function Explosion(target, explosion_x, explosion_y, power) { if (power eq 0) { return undefined; } if (power eq 1) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.small_explosion_dmg; } else { if (power eq 2) { explosion_radius = 41.5; explosion_mass = 50; explosion_power = 8; _root.shakescreen = 6; explosion_dmg = _root.small_explosion_dmg; } else { if (power eq 3) { explosion_radius = 57.5; explosion_mass = 100; explosion_power = 15; _root.shakescreen = 7; explosion_dmg = _root.big_explosion_dmg; } else { if (power eq 4) { explosion_radius = 85; explosion_mass = 100; explosion_power = 25; _root.shakescreen = 10; explosion_dmg = _root.hueg_explosion_dmg; } else { if (power eq 5) { explosion_radius = 95; explosion_mass = 100; explosion_power = 25; _root.shakescreen = 10; explosion_dmg = 2000 + random(5000); } else { if (power eq 6) { explosion_radius = 70; _root.shakescreen = 15; explosion_mass = 100; explosion_power = 50; explosion_dmg = 1; } else { if (power eq 8) { explosion_radius = 150; _root.shakescreen = 5; explosion_mass = 100; explosion_power = 80; explosion_dmg = 1; } else { if (power eq 9) { explosion_radius = 135; _root.shakescreen = 10; explosion_mass = 100; explosion_power = 20; explosion_dmg = 1000; } else { if (power eq 10) { explosion_radius = 170; _root.shakescreen = 30; explosion_mass = 50; explosion_power = 40; explosion_dmg = _root.nuke_dmg; } else { if (power eq 11) { explosion_radius = 80; _root.shakescreen = 5; explosion_mass = 35; explosion_power = 35; explosion_dmg = 1500; } else { if (power eq 12) { explosion_radius = 100; _root.shakescreen = 5; explosion_mass = 50; explosion_power = -40; explosion_dmg = 1; } else { if (power eq 13) { explosion_radius = 80; _root.shakescreen = 5; explosion_mass = 60; explosion_power = 80; explosion_dmg = 1; } else { if (power eq 14) { explosion_radius = _root.blackball_effectradius; explosion_mass = _root.blackball_power; explosion_power = -40; explosion_dmg = 5; } else { if (power eq 15) { explosion_radius = 37.5; explosion_mass = 100; explosion_power = 8; _root.shakescreen = 5; explosion_dmg = 500 + random(1000); } else { if (power eq 16) { explosion_radius = 41.5; explosion_mass = 80; explosion_power = 7; _root.shakescreen = 5; explosion_dmg = _root.airstrike_small_dmg; } else { if (power eq 17) { explosion_radius = 37.5; explosion_mass = 30; explosion_power = 8; _root.shakescreen = 5; explosion_dmg = _root.artillery_emp_damage; } else { if (power eq 18) { explosion_radius = 70; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.airstrike_big_dmg; } else { if (power eq 19) { explosion_radius = 100; _root.shakescreen = 30; explosion_mass = 30; explosion_power = 40; explosion_dmg = _root.emp_nuke_dmg; } else { if (power eq 20) { explosion_radius = 200; _root.do_emp_shytdown = 1; explosion_mass = 25; explosion_power = 5; explosion_dmg = 100 + random(400); } else { if (power eq 21) { explosion_radius = 40; explosion_mass = 100; explosion_power = 10; _root.shakescreen = 5; explosion_dmg = _root.homing_mines_dmg; } else { if (power eq 22) { } else { if (power eq 23) { } else { if (power eq 24) { } else { if (power eq 25) { } else { if (power eq 26) { } else { if (power eq 27) { } else { if (power eq 28) { explosion_radius = 180; explosion_mass = 100; explosion_power = 7; _root.shakescreen = 3; explosion_dmg = _root.enemy_dmg_26; } else { if (power eq 29) { explosion_radius = 190; explosion_mass = 100; explosion_power = -5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg; } else { if (power eq 30) { explosion_radius = 20; explosion_mass = 1; explosion_power = 5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg_core; } else { if (power eq 2800) { explosion_radius = 100; explosion_mass = 100; explosion_power = 7; _root.shakescreen = 3; explosion_dmg = _root.enemy_dmg_26; } else { if (power eq 2900) { explosion_radius = 80; explosion_mass = 100; explosion_power = -5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg; } else { if (power eq 3000) { explosion_radius = 20; explosion_mass = 1; explosion_power = 5; _root.shakescreen = 0; explosion_dmg = _root.enemy_dmg_26_constantdmg_core; } else { if (power eq 31) { explosion_radius = 45; explosion_mass = 100; explosion_power = 15; _root.shakescreen = 5; explosion_dmg = _root.balldetonation_dmg; } else { if (power eq 101) { explosion_radius = 32.5; explosion_mass = 80; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.playerTank_smallSHell; } else { if (power eq 102) { explosion_radius = 100; explosion_mass = 80; explosion_power = 5; _root.shakescreen = 5; explosion_dmg = _root.playerTank_bigSHell; } else { if (power eq 103) { explosion_radius = 32.5; explosion_mass = 10; explosion_power = 5; _root.shakescreen = 2; explosion_dmg = _root.playerTank_empSHell; _root.do_emp_shytdown = 1; } else { if (power eq 104) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 0; } else { if (power eq 202) { explosion_radius = 25; explosion_mass = 50; explosion_power = 5; explosion_dmg = _root.enemy_dmg_1; } else { if (power eq 203) { explosion_radius = 50; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_2; } else { if (power eq 204) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_9; } else { if (power eq 205) { explosion_radius = 32.5; explosion_mass = 100; explosion_power = 5; _root.shakescreen = 6; explosion_dmg = _root.enemy_dmg_12; } else { if (power eq 206) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 1; explosion_dmg = 1; } else { if (power eq 207) { explosion_radius = 25; explosion_mass = 50; explosion_power = 5; explosion_dmg = _root.enemy_dmg_30; } else { if (power eq 208) { explosion_radius = 25; explosion_mass = 50; explosion_power = 40; explosion_dmg = _root.enemy_dmg_31; } else { if (power eq 209) { explosion_radius = 1; explosion_mass = 1; explosion_power = 1; _root.shakescreen = 1; explosion_dmg = 1; } else { if (power eq 301) { explosion_radius = 40; explosion_mass = 80; explosion_power = 10; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_1; } else { if (power eq 302) { explosion_radius = 10; explosion_mass = 20; explosion_power = 8; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_2; } else { if (power eq 303) { trace('explosion 303'); explosion_radius = 40; explosion_mass = 60; explosion_power = 8; _root.shakescreen = 1; explosion_dmg = _root.turret_dmg_3; } else { if (power eq 999) { explosion_radius = 75; explosion_mass = 20; explosion_power = -70; explosion_dmg = 1; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } x1 = target._x; y1 = target._y; x2 = explosion_x; y2 = explosion_y; var v6 = x1 - x2; var v7 = y1 - y2; var v20 = Math.sqrt(v6 * v6 + v7 * v7); if (v20 - target.radius < explosion_radius and Math.abs(v6) + Math.abs(v7) > 0.0001) { target.dmg += explosion_dmg; if (_root.do_emp_shytdown eq 1) { _root.do_emp_shytdown = 0; target.emp_timer = _root.emp_unitDeactivation_time; } var v8 = target.mass; var v9 = explosion_mass; var v17 = target.xspeed; var v19 = target.yspeed; var v13 = Math.atan2(v7, v6); var v5 = Math.cos(v13); var v4 = Math.sin(v13); var v14 = v17 * v5 + v19 * v4; var v11 = explosion_power; var v12 = v19 * v5 - v17 * v4; var v10 = 0.0001; var v18 = v8 * v14 + v9 * v11; var v21 = v14 - v11; var v15 = (v18 + v8 * v21) / (v8 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v5 - v12 * v4; var v22 = v11 * v5 - v10 * v4; v19 = v12 * v5 + v14 * v4; var v23 = v10 * v5 + v11 * v4; target.xspeed = v17; target.yspeed = v19; } } function implosionEffect(enemy, xx, yy) { implosion_radius = 250; x1 = enemy._x; y1 = enemy._y; x2 = xx; y2 = yy; var v4 = x1 - x2; var v6 = y1 - y2; var v7 = Math.sqrt(v4 * v4 + v6 * v6); if (v7 < implosion_radius) { implosion_mass = 55; implosion_suckingpower = -18 * v7 / implosion_radius; var v5 = enemy.mass; var v8 = implosion_mass; var v16 = enemy.xspeed; var v18 = enemy.yspeed; var v12 = Math.atan2(v6, v4); var v2 = Math.cos(v12); var v1 = Math.sin(v12); var v13 = v16 * v2 + v18 * v1; var v10 = implosion_suckingpower; var v11 = v18 * v2 - v16 * v1; var v9 = 0.0001; var v17 = v5 * v13 + v8 * v10; var v19 = v13 - v10; var v14 = (v17 + v5 * v19) / (v5 + v8); var v15 = v14 - v13 + v10; v13 = v15; v10 = v14; v16 = v13 * v2 - v11 * v1; var v20 = v10 * v2 - v9 * v1; v18 = v11 * v2 + v13 * v1; var v21 = v9 * v2 + v10 * v1; enemy.xspeed = v16; enemy.yspeed = v18; } } function BlackHoleEffect(targ, iks, igrik) { blackhole_mass = 0.25; blackhole_power_max = -100; blackhole_power_min = -5; blackhole_radius = 600; event_horizon = 50; speed_amplifier = 1.05; x1 = targ._x; y1 = targ._y; x2 = iks; y2 = igrik; var v7 = x1 - x2; var v8 = y1 - y2; var v6 = Math.sqrt(v7 * v7 + v8 * v8); if (v6 < blackhole_radius) { blackhole_power = blackhole_power_min + blackhole_power_max * blackhole_radius / v6; if (v6 < event_horizon) { if (_root.yiff.playerTank eq targ) { targ.dmg += 9999999999999.0; _root.launcher_has_died = 1; } else { removeMovieClip(targ); } } var v5 = targ.mass; if (v5 eq undefined or !v5) { v5 = 10; } var v9 = blackhole_mass; var v17 = targ.xspeed; var v19 = targ.yspeed; var v13 = Math.atan2(v8, v7); var v4 = Math.cos(v13); var v3 = Math.sin(v13); var v14 = v17 * v4 + v19 * v3; var v11 = blackhole_power; var v12 = v19 * v4 - v17 * v3; var v10 = 0.0001; var v18 = v5 * v14 + v9 * v11; var v20 = v14 - v11; var v15 = (v18 + v5 * v20) / (v5 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v4 - v12 * v3; var v21 = v11 * v4 - v10 * v3; v19 = v12 * v4 + v14 * v3; var v22 = v10 * v4 + v11 * v3; targ.xspeed = v17; targ.yspeed = v19; } } function maintenancePutDotOnSTage(xx, yy) {} function createSingularitiesArray() { _root.singularitiesArray = []; _root.singularitiesOnTheField = 0; trgtlayer = _root.yiff.blackholes_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'singularity') { _root.singularitiesArray.push(trgtlayer[v2]); } } } _root.singularitiesOnTheField = _root.singularitiesArray.length; } function activateBlackhole(xx, yy) { ++_root.stat_blackholes; iyiff = _root.yiff.blackholes_shell.getNextHighestDepth(); _root.yiff.blackholes_shell.attachMovie('singularity', 'singularity' + iyiff, iyiff); trgtexplos = _root.yiff.blackholes_shell['singularity' + iyiff]; trgtexplos._x = xx; trgtexplos._y = yy; trgtexplos.what = 'singularity'; _root.singularitiesArray.push(trgtlayer[name]); _root.singularitiesOnTheField = _root.singularitiesArray.length; } function blackHolesIntegrity() { if (_root.singularitiesOnTheField > 0) { } else { return undefined; } var v3 = 0; while (v3 < _root.singularitiesOnTheField) { trgtbh = _root.singularitiesArray[v3]; xxx = trgtbh._x; yyy = trgtbh._y; if (trgtbh.blackholeactive != 1) { break; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; BlackHoleEffect(trgtenm, xxx, yyy); ++v2; } if (_root.yiff.playerTank.shift_mode != 1) { BlackHoleEffect(_root.yiff.playerTank, xxx, yyy); } v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; BlackHoleEffect(checkball, xxx, yyy); ++v2; } ++v3; } } function createGravityNukesArray() { _root.gravnukesArray = []; _root.gravnukesOnTheField = 0; trgtlayer = _root.yiff.explosions_special_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'gravnuke') { _root.gravnukesArray.push(trgtlayer[v2]); } } } _root.gravnukesOnTheField = _root.gravnukesArray.length; } function spawnGravNuke(xx, yy) { iyiff = _root.yiff.explosions_special_shell.getNextHighestDepth(); _root.yiff.explosions_special_shell.attachMovie('gravity_nuke', 'explosion_' + iyiff, iyiff); trgt_expl = _root.yiff.explosions_special_shell['explosion_' + iyiff]; trgt_expl.what = 'gravnuke'; trgt_expl._x = xx; trgt_expl._y = yy; _root.gravnukesArray.push(trgt_expl); _root.gravnukesOnTheField = _root.enemiesArray.length; } function gravNukeEffect() { var v3 = 0; while (v3 < _root.gravnukesOnTheField) { checkgravnuke = _root.gravnukesArray[v3]; if (checkgravnuke.gravity_nuke_in_action eq 1) { gravity_nuke_epicenter = checkgravnuke.inner_size._width / 2; gravity_nuke_radius = checkgravnuke.outer_size._width / 2; if (_root.yiff.playerTank) { GravityNuke(_root.yiff.playerTank, checkgravnuke._x, checkgravnuke._y, gravity_nuke_epicenter, gravity_nuke_radius); } var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; GravityNuke(checkenemy, checkgravnuke._x, checkgravnuke._y, gravity_nuke_epicenter, gravity_nuke_radius); ++v2; } } ++v3; } } function GravityNuke(enemy, gravnuke_x, gravnuke_y, gravnuke_radius_small, gravnuke_radius_big) { x1 = enemy._x; y1 = enemy._y; x2 = gravnuke_x; y2 = gravnuke_y; var v5 = x1 - x2; var v7 = y1 - y2; var v8 = Math.sqrt(v5 * v5 + v7 * v7); if (v8 < gravnuke_radius_small) { enemy.dmg += random(_root.gravity_nuke_hueg_dmg); } else { if (v8 < gravnuke_radius_big) { enemy.dmg += random(_root.gravity_nuke_radius_dmg); implosion_mass = 20; Gravnuke_power = 25; implosion_suckingpower = -1.3 * Gravnuke_power + random(Gravnuke_power * 2); var v6 = enemy.mass; var v9 = implosion_mass; var v17 = enemy.xspeed; var v19 = enemy.yspeed; var v13 = Math.atan2(v7, v5); var v4 = Math.cos(v13); var v3 = Math.sin(v13); var v14 = v17 * v4 + v19 * v3; var v11 = implosion_suckingpower; var v12 = v19 * v4 - v17 * v3; var v10 = 0.0001; var v18 = v6 * v14 + v9 * v11; var v20 = v14 - v11; var v15 = (v18 + v6 * v20) / (v6 + v9); var v16 = v15 - v14 + v11; v14 = v16; v11 = v15; v17 = v14 * v4 - v12 * v3; var v21 = v11 * v4 - v10 * v3; v19 = v12 * v4 + v14 * v3; var v22 = v10 * v4 + v11 * v3; enemy.xspeed = v17; enemy.yspeed = v19; } } } function doShockwave(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('shockwave', 'explosion_' + iyiff, iyiff); trshck = _root.yiff.explosions_shell['explosion_' + iyiff]; trshck._x = xx; trshck._y = yy; explosion_Effect_OnTargets(xx, yy, 6); } function doImplosion(xx, yy) { _root.yiff.attachMovie('implosion', 'implosion', _root.implosion_depth); trim = _root.yiff.implosion; trim._x = xx; trim._y = yy; } function implosionIntegrity() { trim = _root.yiff.implosion; if (trim.go != 1) { return undefined; } xx = trim._x; yy = trim._y; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; implosionEffect(checkenemy, xx, yy); ++v2; } } function MortarHit_small(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 16; ExplosionSound('medium'); explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; placeKrater(xx, yy, 'small'); } function MortarHit_big(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 18; ExplosionSound('medium'); explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._width *= 1.75; _root.yiff.explosions_shell['explosion_' + iyiff]._height *= 1.75; _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; placeKrater(xx, yy, 'big'); } function carpetBombingIntegrity() { if (_root.carpet_timer < 0 or _root.carpet_timer eq 0) { _root.carpet_shagtimer = 0; _root.carpet_timer2 = 0; return undefined; } var v2 = 0; while (v2 < 3) { _root.carpet_timer -= 5; _root.carpet_timer2 += 5; carpetShag = 1; xstart = -430; ++_root.carpet_shagtimer; if (_root.carpet_shagtimer > carpetShag) { _root.carpet_shagtimer = 0; xx = _root.carpet_timer2 - 430; yy = -205 + random(290); if (random(2) eq 1) { MortarHit_big(xx, yy); } else { MortarHit_small(xx, yy); } } ++v2; } } function doCarpetBombing() { _root.yiff.attachMovie('carpetbombingAnim', 'carpetbombingAnim', _root.planes_depth); _root.yiff.carpetbombingAnim._x = -477; _root.yiff.carpetbombingAnim._y = -175; } function doDroneSwarm(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_magnets_drop', 'explosion_' + iyiff, iyiff); power = 1; explosion_Effect_OnTargets(xx, yy, power); trgtexplio = _root.yiff.explosions_shell['explosion_' + iyiff]; trgtexplio._x = xx; trgtexplio._y = yy; trgtexplio._rotation = random(360); var v3 = 0; while (v3 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v3]; magnetball_detonation(checkmagnet); ++v3; } var v2 = 0; while (v2 < 8) { iyiff = _root.yiff.magnetballs_shell.getNextHighestDepth(); _root.yiff.magnetballs_shell.attachMovie('magnetball', 'magnetball' + v2, iyiff); trgtmgntbl = _root.yiff.magnetballs_shell['magnetball' + v2]; trgtmgntbl._x = xx; trgtmgntbl._y = yy; trgtmgntbl.lifetimer = 0; trgtmgntbl.razmagni4ivanie_timer = _root.razmagni4evanie_time; trgtmgntbl.xpos = xx; trgtmgntbl.ypos = yy; trgtmgntbl.tempx = xpos; trgtmgntbl.tempy = ypos; trgtmgntbl.mass = _root.magnetball_mass; trgtmgntbl.radius = 5; trgtmgntbl.hits = 0; trgtmgntbl.whatisit = 'magnets'; trgtmgntbl.type_ = 55; ++v2; } _root.yiff.magnetballs_shell.magnetball0.xspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball0.yspeed = -1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball1.xspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball1.yspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball2.xspeed = 1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball2.yspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball3.xspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball3.yspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball4.xspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball4.yspeed = 1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball5.xspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball5.yspeed = 0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball6.xspeed = -1 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball6.yspeed = 0 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball7.xspeed = -0.71 * _root.magnetball_startspeed; _root.yiff.magnetballs_shell.magnetball7.yspeed = -0.71 * _root.magnetball_startspeed; } function magnetball_detonation(trgt) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_magnetball', 'explosion_' + iyiff, iyiff); power = 1; explosion_Effect_OnTargets(trgt._x, trgt._y, power); thisexpl = _root.yiff.explosions_shell['explosion_' + iyiff]; thisexpl._x = trgt._x; thisexpl._y = trgt._y; removeMovieClip(trgt); } function magnet_balls_integrity() { magnet_balls_magnetism(); var v2 = 0; while (v2 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v2]; if (checkmagnet._x > 545 or checkmagnet._x < -634 or checkmagnet._y < -420 or checkmagnet._y > 385) { removeMovieClip(checkmagnet); } ++v2; } v2 = 0; while (v2 < _root.magnetsOnTheField) { trgt = _root.magnetsArray[v2]; trgt.lifetimer += 1 / (random(20) + 10); if (trgt.razmagni4ivanie_timer > 0) { trgt.razmagni4ivanie_timer -= 0.03333333333333333; } if (trgt.speed > _root.magnetball_startspeed) { trgt.xspeed *= 0.96; trgt.yspeed *= 0.96; } ++v2; } } function magnet_balls_magnetism() { var v3 = 0; while (v3 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v3]; if (checkmagnet.razmagni4ivanie_timer > 0) { } else { var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; if (checkenemy and checkmagnet) { magnetsEffect(checkmagnet, checkenemy._x, checkenemy._y); } ++v2; } } ++v3; } } function createMagnetsArray() { _root.magnetsArray = []; _root.magnetsOnTheField = 0; trgtlayer = _root.yiff.magnetballs_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].whatisit eq 'magnets') { _root.magnetsArray.push(trgtlayer[v2]); } } } _root.magnetsOnTheField = _root.magnetsArray.length; } function magnetsEffect(targ, iks, igrik) { b1lackhole_mass = 0.25; b1lackhole_power_max = -10; b1lackhole_power_min = -1; b1lackhole_radius = 700; speed_amplifier = 1.005; x1 = targ._x; y1 = targ._y; x2 = iks; y2 = igrik; var v4 = x1 - x2; var v6 = y1 - y2; var v7 = Math.sqrt(v4 * v4 + v6 * v6); if (v7 < b1lackhole_radius) { b1lackhole_power = b1lackhole_power_min + b1lackhole_power_max * b1lackhole_radius / v7; var v5 = targ.mass; var v8 = b1lackhole_mass; var v16 = targ.xspeed; var v18 = targ.yspeed; var v12 = Math.atan2(v6, v4); var v2 = Math.cos(v12); var v1 = Math.sin(v12); var v13 = v16 * v2 + v18 * v1; var v10 = b1lackhole_power; var v11 = v18 * v2 - v16 * v1; var v9 = 0.0001; var v17 = v5 * v13 + v8 * v10; var v19 = v13 - v10; var v14 = (v17 + v5 * v19) / (v5 + v8); var v15 = v14 - v13 + v10; v13 = v15; v10 = v14; v16 = v13 * v2 - v11 * v1; var v20 = v10 * v2 - v9 * v1; v18 = v11 * v2 + v13 * v1; var v21 = v9 * v2 + v10 * v1; targ.xspeed = v16; targ.yspeed = v18; } } function turretIntegrity(trgt) { trgt.xspeed = 0; trgt.yspeed = 0; trgt.speed = 0; trgt.hp_indicator.gotoAndStop(Math.floor(101 - ((trgt.hp - trgt.dmg) / trgt.hp) * 100)); if (trgt.dmg > trgt.hp) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); power = 3; _root.yiff.explosions_shell.attachMovie('explosion_big_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = trgt._x; this_explosion._y = trgt._y; this_explosion._rotation = random(360); explosion_Effect_OnTargets(trgt._x, trgt._y, power); if (trgt.id eq 4) { trgtlayer = _root.yiff.explosions_shell; for (var v3 in trgtlayer) { if (trgtlayer[v3] instanceof MovieClip) { if (trgtlayer[v3].what eq 'turret4thingy') { removeMovieClip(trgtlayer[v3]); } } } } removeMovieClip(trgt); } } function spawnTurret(xx, yy, id) { iyiff = _root.yiff.turrets_shell.getNextHighestDepth(); _root.yiff.turrets_shell.attachMovie('tower_' + id, 'turret_' + iyiff, iyiff); trgt = _root.yiff.turrets_shell['turret_' + iyiff]; trgt.what = 'turret'; trgt.id = id; trgt.depthId = iyiff; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.dmg = 0; trgt.targeted_enemy = 'none'; trgt.mass = 999999; trgt.speedmax = 0; trgt.gunlength = _root['turret_gunlength_' + id]; trgt.min_distance = _root['turret_min_distance_' + id]; trgt.radius = _root['turret_radius_' + id]; trgt.thesize = _root['enemy_thesize_' + id]; trgt.reload_time = _root['turret_reload_time_' + id]; trgt.reload_timer = 0; trgt.hp = _root['turret_hp_' + id]; _root.turretsArray.push(trgt); _root.turretsOnTheField = _root.turretsArray.length; } function createTurretsArray() { _root.turretsArray = []; _root.turretsOnTheField = 0; trgtlayer = _root.yiff.turrets_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'turret') { _root.turretsArray.push(trgtlayer[v2]); } } } _root.turretsOnTheField = _root.turretsArray.length; } function findClosestTargetToTurret(tur, min_distance, do_random) { turret_temp_targeting_array = []; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; dontaddthiusenemy = 0; if (checkenemy._x > 344 or checkenemy._x < -427) { dontaddthiusenemy = 1; } zomgyiff6561 = CALC_Dist_Xv_Yv(tur._x, tur._y, checkenemy._x, checkenemy._y); distance = zomgyiff6561[0]; if (distance < min_distance) { dontaddthiusenemy = 1; } if (dontaddthiusenemy != 1) { checkenemy.tempturdist = distance; turret_temp_targeting_array.push(checkenemy); } ++v2; } if (turret_temp_targeting_array.length eq 0) { return 'none'; } turret_temp_targeting_array.sortOn('distance', Array.NUMERIC); if (do_random != 1) { asdasdasdhh = 0; return turret_temp_targeting_array[asdasdasdhh]; } asdasdasdhh = random(Math.floor(turret_temp_targeting_array.length / 2)); return turret_temp_targeting_array[asdasdasdhh]; } function turretAttack(trgt) { turret4attack(trgt); if (!trgt) { return undefined; } if (trgt.id eq 4) { do_random = 1; } else { do_random = 0; } trgt2 = findClosestTargetToTurret(trgt, trgt.min_distance, do_random); if (!trgt2 or trgt2 eq 'none') { return undefined; } if (!trgt.yifftimerrotaata and trgt.yifftimerrotaata != 0) { trgt.yifftimerrotaata = 999999; } if (trgt.yifftimerrotaata > 1) { if (trgt.tower._currentframe eq 1 and trgt.start_loading_charge != 1) { rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, 0, 1); } trgt.yifftimerrotaata = 0; } else { trgt.yifftimerrotaata += 0.03333333333333333; } trgt.reload_timer += 0.03333333333333333; if (trgt.reload_timer > trgt.reload_time) { trgt.reload_timer = 0; if (trgt.id eq 4) { trgt.targeted_enemy = trgt2; } if (trgt.id eq 1) { if (trgt._x - trgt2._x < 0) { yiff777mod = 1; } else { yiff777mod = -1; } shotpoint_x = trgt2._x - yiff777mod * 20 - yiff777mod * random(20); shotpoint_y = trgt2._y + 15 - random(30); rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, shotpoint_x, shotpoint_y, 0); _root['turret_shot_' + trgt.id].start(); trgt.tower.play(); zomgyiff6666666 = CALC_Dist_Xv_Yv(shotpoint_x, shotpoint_y, trgt._x, trgt._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; distance = zomgyiff6666666[0]; iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('ray_1', 'ray_' + iyiff, iyiff); setX = trgt._x + trgt.gunlength * xmod11; setY = trgt._y + trgt.gunlength * ymod11; trgt_proj = _root.yiff.enemy_projectile_shell['ray_' + iyiff]; trgt_proj._x = setX; trgt_proj._y = setY; trgt_proj._width = distance - trgt.gunlength; rotation_towards_movement(trgt_proj, xmod11, ymod11); iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('turret_hit_1', 'turret_hit_' + iyiff, iyiff); trgtexpl = _root.yiff.enemy_projectile_shell['turret_hit_' + iyiff]; trgtexpl._x = shotpoint_x; trgtexpl._y = shotpoint_y; explosion_Effect_OnTargets(shotpoint_x, shotpoint_y, 301); } else { if (trgt.id eq 2) { trgt.shotpoint_x = trgt2._x; trgt.shotpoint_y = trgt2._y; trgt.tower.play(); } else { if (trgt.id eq 3) { trgt.shotpoint_x = trgt2._x; trgt.shotpoint_y = trgt2._y; trgt.tower.play(); } } } } if (trgt.id eq 2 and trgt.tower.doshot eq 1) { trgt.tower.doshot = 0; iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('turret_proj_2', 'friendly_projectile_' + iyiff, iyiff); trgtFproj = _root.yiff.enemy_projectile_shell['friendly_projectile_' + iyiff]; trgtFproj.id = 'friendlyProjectile'; trgtFproj.id_2 = 2; shotpoint_x = trgt.shotpoint_x - 30 + random(60); shotpoint_y = trgt.shotpoint_y - 30 + random(60); rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, shotpoint_x, shotpoint_y, 0); zomgyiff6666666 = CALC_Dist_Xv_Yv(shotpoint_x, shotpoint_y, trgt._x, trgt._y); trgt.xmod99 = zomgyiff6666666[1]; trgt.ymod99 = zomgyiff6666666[2]; trgt.distance99 = zomgyiff6666666[0]; trgt.x99 = trgt._x + trgt.gunlength * trgt.xmod99; trgt.y99 = trgt._y + trgt.gunlength * trgt.ymod99; speed567567575633 = 15; trgtFproj.tempx = trgt.x99; trgtFproj.tempy = trgt.y99; trgtFproj.xpos = trgt.x99; trgtFproj.ypos = trgt.y99; trgtFproj._x = trgt.x99; trgtFproj._y = trgt.y99; trgtFproj.xspeed = speed567567575633 * trgt.xmod99; trgtFproj.yspeed = speed567567575633 * trgt.ymod99; } if (trgt.id eq 3 and trgt.tower.launch eq 1) { trgt.tower.launch = 0; zomgyiff6666666 = CALC_Dist_Xv_Yv(trgt.shotpoint_x, trgt.shotpoint_y, trgt._x, trgt._y); trgt.xmod99 = zomgyiff6666666[1]; trgt.ymod99 = zomgyiff6666666[2]; iyiff = _root.yiff.magnetballs_shell.getNextHighestDepth(); _root.yiff.magnetballs_shell.attachMovie('homing_mine', 'magnetball' + iyiff, iyiff); trgtFproj = _root.yiff.magnetballs_shell['magnetball' + iyiff]; trgtFproj.mass = 50; trgtFproj.whatisit = 'magnets'; trgtFproj.type_ = 44; speed567567575633 = 8; trgtFproj.tempx = trgt._x; trgtFproj.tempy = trgt._y; trgtFproj.xpos = trgt._x; trgtFproj.ypos = trgt._y; trgtFproj._x = trgt._x; trgtFproj._y = trgt._y; trgtFproj.xspeed = speed567567575633 * trgt.xmod99; trgtFproj.yspeed = speed567567575633 * trgt.ymod99; } } function turret4attack(trgt) { if (trgt.id eq 4) { if (trgt.targeted_enemy eq 'none' or !trgt.targeted_enemy or trgt.targeted_enemy._x eq undefined or !trgt.targeted_enemy._x) { trgt_ray = _root.yiff.explosions_shell['ray_' + trgt.depthId]; trgt_glow_1 = _root.yiff.explosions_shell['glow_' + trgt.depthId]; trgt_glow_2 = _root.yiff.explosions_shell['glow_' + trgt.depthId + '_a']; removeMovieClip(trgt_ray); removeMovieClip(trgt_glow_1); removeMovieClip(trgt_glow_2); return undefined; } } if (trgt.id eq 4 and trgt.targeted_enemy != 'none' and trgt.targeted_enemy) { tr__1 = trgt; tr__2 = trgt.targeted_enemy; } else { return undefined; } zomgyiff6612 = CALC_Dist_Xv_Yv(tr__2._x, tr__2._y, tr__1._x, tr__1._y); distance2 = zomgyiff6612[0]; xmod11 = zomgyiff6612[1]; ymod11 = zomgyiff6612[2]; trgt_ray = _root.yiff.explosions_shell['ray_' + tr__1.depthId]; trgt_glow_1 = _root.yiff.explosions_shell['glow_' + tr__1.depthId]; trgt_glow_2 = _root.yiff.explosions_shell['glow_' + tr__1.depthId + '_a']; if (!trgt_ray) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ray_magnet', 'ray_' + tr__1.depthId, iyiff); } if (!trgt_glow_1) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('magnet_tower_glow', 'glow_' + tr__1.depthId, iyiff); } if (!trgt_glow_2) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('magnet_tower_glow', 'glow_' + tr__1.depthId + '_a', iyiff); } trgt_glow_1._x = tr__1._x; trgt_glow_1._y = tr__1._y; trgt_glow_1.what = 'turret4thingy'; trgt_glow_2._x = tr__2._x; trgt_glow_2._y = tr__2._y; trgt_glow_2.what = 'turret4thingy'; trgt_ray._x = tr__1._x; trgt_ray._y = tr__1._y; trgt_ray.what = 'turret4thingy'; trgt_ray._rotation = 0; trgt_ray._width = distance2; rotation_towards_movement(trgt_ray, xmod11, ymod11); checkmagnet0 = tr__2; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; if (checkenemy and checkmagnet0 and checkenemy != checkmagnet0) { magnetsEffect(checkmagnet0, checkenemy._x, checkenemy._y); } ++v2; } } function turretProjectileIntegrity(trgt) { check_x = trgt._x; check_y = trgt._y; if (check_x > 425 or check_x < -503) { removeMovieClip(trgt); return undefined; } if (trgt.id_2 eq 2) { power = 302; } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { turretShellDetonation(check_x, check_y, power); removeMovieClip(trgt); return undefined; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); distance = zomgyiff661[0]; if (distance < trgtenm.radius) { turretShellDetonation(check_x, check_y, power); removeMovieClip(trgt); return undefined; } ++v2; } } function turretShellDetonation(xx, yy, id) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (id eq 302) { _root.yiff.explosions_shell.attachMovie('turrenProjDetonation_2', 'explosion_' + iyiff, iyiff); } else { if (id eq 303) { _root.yiff.explosions_shell.attachMovie('explosion_homing_mine', 'explosion_' + iyiff, iyiff); } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = xx; this_explosion._y = yy; explosion_Effect_OnTargets(xx, yy, id); } function Enemy_movement_to_target(target) { if (target._x > 550 or target._x < -600) { removeMovieClip(target); return undefined; } if (target.speed > target.speedmax) { target.xspeed *= 0.98; target.yspeed *= 0.98; } if (target.emp_timer > 0) { target.xspeed *= 0.95; target.yspeed *= 0.95; return undefined; } if (target.id eq 3) { if (!target.targeted_friendly_unit or target.targeted_friendly_unit._x eq NaN or target.targeted_friendly_unit._x eq undefined) { target.targeted_friendly_unit = friendlyTargetsArray[random(friendlyTargetCount)]; } destination_x = target.targeted_friendly_unit._x; destination_y = target.targeted_friendly_unit._y; } else { destination_x = _root.yiff.teleporter._x; destination_y = _root.yiff.teleporter._y; } calc12312 = CALC_Dist_Xv_Yv(destination_x, destination_y, target._x, target._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; if (target.id eq 3 and distance < 120) { nukeTruckDetonation(target); return undefined; } xspd = target.xspeed; yspd = target.yspeed; xspd_nom = x_force_modifier * target.speedmax; yspd_nom = y_force_modifier * target.speedmax; xdif = Math.abs(Math.abs(xspd) - Math.abs(xspd_nom)); ydif = Math.abs(Math.abs(yspd) - Math.abs(yspd_nom)); rasstoyanie_ostanovki = _root.teleporter_start_distance; if (distance > rasstoyanie_ostanovki) { if (xspd != xspd_nom) { if (Math.abs(Math.abs(xspd) - Math.abs(xspd_nom))) { if (xspd > xspd_nom) { target.xspeed -= _root.enemy_acceleration; } else { target.xspeed += _root.enemy_acceleration; } } } if (yspd != yspd_nom) { if (Math.abs(Math.abs(yspd) - Math.abs(yspd_nom))) { if (yspd > yspd_nom) { target.yspeed -= _root.enemy_acceleration; } else { target.yspeed += _root.enemy_acceleration; } } } } if (distance < rasstoyanie_ostanovki) { target.yspeed *= 0.9; target.xspeed *= 0.9; } if (target.speed > 5 * _root.enemy_speed_1) { target.yspeed *= 0.97; target.xspeed *= 0.97; } } function PlayerTank_rotation(target) { if (!target) { return undefined; } if (target.speed > _root.speed_zakru4ivanie) { target._rotation += 20 * (target.speed / _root.speed_zakru4ivanie); return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { _rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.3; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = _rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { _rotation -= a; } else { _rotation = angle1; } } } } } function PlayerTank_rotation2(target) { if (!target) { return undefined; } if (target.speed > _root.speed_zakru4ivanie) { target._rotation += 20 * (target.speed / _root.speed_zakru4ivanie); return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { _rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.3; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = torso.core._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { torso.core._rotation -= a; } else { torso.core._rotation = angle1; } } } } } function Enemy_rotation(target) { if (!target) { return undefined; } if (target.hhhhhhhhhhhhhhh != 1337) { target.hhhhhhhhhhhhhhh = 1337; target.rotationcount = 0; target.zcount = 0; } if (random(3) != 1) { return undefined; } ++target.rotationcount; with (target) { if (speed > _root.speed_zakru4ivanie) { torso._rotation += 20 * (speed / _root.speed_zakru4ivanie); tower._rotation += 20 * (speed / _root.speed_zakru4ivanie); } else { if (rotationcount > 2) { rotationcount = 0; speedpovorota = 0.4; var dx = xspeed; var dy = yspeed; var angle1 = Math.atan2(dy, dx) * 57.29577951308232; var angle2 = torso._rotation; if (angle2 < 0) { angle2 += 360; } if (angle1 < 0) { angle1 += 360; } var a = angle2 - angle1; if (a > 180) { a -= 360; } else { if (a < -180) { a += 360; } } a *= speedpovorota; if (Math.abs(a) > 0.01) { torso._rotation -= a; tower._rotation -= a; } else { torso._rotation = angle1; tower._rotation -= a; } } } } } function enemy2enemy_ottalkivanie(trg1, trg2, dist) { if (trg1.radius > trg2.radius and trg2 != _root.yiff.playerTank) { forced_one = trg2; stronger_one = trg1; } else { forced_one = trg1; stronger_one = trg2; } if (trgt2.what eq 'turret') { forced_one = trg1; stronger_one = trg2; } if (forced_one.emp_timer > 0) { return undefined; } radius_ottalkivaniya = (trg1.radius + trg2.radius) * 1.25; if (radius_ottalkivaniya > dist) { calc12312 = CALC_Dist_Xv_Yv(stronger_one._x, stronger_one._y, forced_one._x, forced_one._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; xspd = forced_one.xspeed; yspd = forced_one.yspeed; xspd_nom = x_force_modifier * forced_one.speedmax; yspd_nom = y_force_modifier * forced_one.speedmax; xdif = Math.abs(Math.abs(xspd) - Math.abs(xspd_nom)); ydif = Math.abs(Math.abs(yspd) - Math.abs(yspd_nom)); ottalkivanie_modifier = 1.4; if (xspd != xspd_nom) { if (xspd > xspd_nom) { forced_one.xspeed += _root.enemy_acceleration * ottalkivanie_modifier; } else { forced_one.xspeed -= _root.enemy_acceleration * ottalkivanie_modifier; } } if (yspd != yspd_nom) { if (yspd > yspd_nom) { forced_one.yspeed += _root.enemy_acceleration * ottalkivanie_modifier; } else { forced_one.yspeed -= _root.enemy_acceleration * ottalkivanie_modifier; } } } } function enemy_hp_monitoring(target) { if (target.emp_timer > 0) { target.emp_timer -= 0.03333333333333333; } else { target.emp_timer = 0; } if (target.dmg > target.hp) { ++_root.stat_kills; thesize = target.thesize; ExplosionSound(thesize); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (target.what eq 'enemy_unit') { ++_root.kills; } if (thesize eq 'small') { _root.yiff.explosions_shell.attachMovie('explosion_small_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); power = 1; } else { if (thesize eq 'medium') { power = 2; _root.yiff.explosions_shell.attachMovie('explosion_medium_' + (random(3) + 1), 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'big') { power = 3; _root.yiff.explosions_shell.attachMovie('explosion_big_' + (random(4) + 1), 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'hueg') { power = 4; if (_root.yiff.playerTank eq target) { _root.yiff.explosions_shell.attachMovie('explosion_hueg_' + (random(3) + 1), 'launcherExplosion', iyiff); _root.yiff.explosions_shell.launcherExplosion._x = target._x; _root.yiff.explosions_shell.launcherExplosion._y = target._y; } else { _root.yiff.explosions_shell.attachMovie('explosion_hueg_' + (random(3) + 1), 'explosion_' + iyiff, iyiff); } } else { if (thesize eq 'special1') { power = 9; _root.yiff.explosions_shell.attachMovie('explosion_special_1', 'explosion_' + iyiff, iyiff); } else { if (thesize eq 'special2') { power = 0; _root.yiff.explosions_shell.attachMovie('explosion_special_2', 'explosion_' + iyiff, iyiff); } else { power = 0; } } } } } } if (_root.yiff.playerTank eq target) { _root.launcher_has_died = 1; } if (thesize eq 'small' or thesize eq 'medium') { realpowerchance = Math.floor(_root.powerupDROPchance * 1.5); } else { if (thesize eq 'big' or thesize eq 'special1' or thesize eq 'special2') { realpowerchance = _root.powerupDROPchance; } else { if (thesize eq 'hueg') { realpowerchance = Math.floor(_root.powerupDROPchance / 2); } } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; if (random(realpowerchance) eq 1) { spawnPowerup(target._x, target._y); } this_explosion._x = target._x; this_explosion._y = target._y; placeKrater(target._x, target._y, thesize); this_explosion._rotation = random(360); if (power != 0) { explosion_Effect_OnTargets(target._x, target._y, power); } if (_root.mouseOverUnit eq target) { _root.mouseOverUnit = 0; } if (_root.overdrive_activated != 1) { if (mapchosen < 2000) { _root.experience += target.experience; } else { _root.experience += target.experience * 4; } } removeMovieClip(target); } } function placeKrater(xx, yy, thesize) { iyiff2 = _root.yiff.kraters_shell.getNextHighestDepth(); if (iyiff2 > _root.maxKratersOnTheField) { trgttttttt = _root.yiff.kraters_shell['krater_' + (iyiff2 - _root.maxKratersOnTheField + 1)]; removeMovieClip(trgttttttt); } if (thesize eq 'big') { _root.yiff.kraters_shell.attachMovie('krater_big_' + (random(3) + 1), 'krater_' + iyiff2, iyiff2); } else { if (thesize eq 'small' or thesize eq 'medium') { _root.yiff.kraters_shell.attachMovie('krater_small_' + (random(5) + 1), 'krater_' + iyiff2, iyiff2); } else { if (thesize eq 'nuke') { _root.yiff.kraters_shell.attachMovie('krater_nuke', 'krater_' + iyiff2, iyiff2); } else { _root.yiff.kraters_shell.attachMovie('krater_hueg_' + (random(3) + 1), 'krater_' + iyiff2, iyiff2); } } } this_krater = _root.yiff.kraters_shell['krater_' + iyiff2]; this_krater.cacheAsBitmap = true; this_krater._x = xx; this_krater._y = yy; } function enemy_zashita_ot_skleivaniya(trg1, trg2) { calc12312 = CALC_Dist_Xv_Yv(trg1._x, trg1._y, trg2._x, trg2._y); distance = calc12312[0]; r12 = trg1.radius + trg2.radius; skleivanie_dmg = 0.125; if (trg2.thisisobstacle eq 1) { trg1.dmg += 9999999999999.0; } if (distance < r12) { if (trg1.radius > trg2.radius) { trg2.dmg += skleivanie_dmg * trg2.hp; } else { if (trg2.radius > trg1.radius) { trg1.dmg += skleivanie_dmg * trg1.hp; } else { trg1.dmg += skleivanie_dmg * trg1.hp; trg2.dmg += skleivanie_dmg * trg2.hp; } } } } function showhpIntegrity() { if (_root.mouseOverUnit != 0) { if (!_root.hpbar) { _root.yiff.attachMovie('hpbar', 'hpbar', _root.hpbar_depth); } _root.yiff.hpbar._x = _root.mouseOverUnit._x; _root.yiff.hpbar._y = _root.mouseOverUnit._y; showhppercentmousover = Math.floor(100 * (_root.mouseOverUnit.hp - _root.mouseOverUnit.dmg) / _root.mouseOverUnit.hp) + 1; _root.yiff.hpbar.gotoAndStop(showhppercentmousover); } else { if (_root.yiff.hpbar) { removeMovieClip(_root.yiff.hpbar); } } if (_root.yiff.hpbar) { if (_root.yiff.hpbar._x eq 0 and _root.yiff.hpbar._y eq 0 and !_root.mouseOverUnit.hp or _root.mouseOverUnit.hp eq undefined) { _root.mouseOverUnit = 0; removeMovieClip(_root.yiff.hpbar); } } } function enemyAttack(trgt) { if (trgt._x < -430 or trgt._x > 350) { return undefined; } if (trgt.speed > 5) { trgt.tower.gotoAndStop(1); } if (trgt.speed > 5 or trgt.emp_timer > 0 or trgt.armed != 1) { return undefined; } if (!trgt.targeted_friendly_unit or trgt.targeted_friendly_unit._x eq NaN or trgt.targeted_friendly_unit._x eq undefined) { trgt2 = friendlyTargetsArray[random(friendlyTargetCount)]; trgt.targeted_friendly_unit = trgt2; } else { trgt2 = trgt.targeted_friendly_unit; } if (!trgt2) { return undefined; } if (!trgt.yifftimerrotaata and trgt.yifftimerrotaata != 0) { trgt.yifftimerrotaata = 999999; } if (trgt.yifftimerrotaata > 0.5) { if (trgt.tower._currentframe eq 1 and trgt.start_loading_charge != 1) { rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, trgt.popravka2, 1); } trgt.yifftimerrotaata = 0; } else { trgt.yifftimerrotaata += (1 + random(2)) / 30; } trgt.reload_timer += 0.03333333333333333; if (trgt.reload_timer > trgt.reload_time) { trgt.reload_timer = 0; rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt2._x, trgt2._y, trgt.popravka2); if (trgt.id eq 1 or trgt.id eq 9 or trgt.id eq 12 or trgt.id eq 26 or trgt.id eq 30 or trgt.id eq 31 or trgt.id eq 33) { _root['enemyShotSound_' + trgt.id](); trgt.tower.play(); iyiff = _root.yiff.enemy_projectile_shell.getNextHighestDepth(); _root.yiff.enemy_projectile_shell.attachMovie('enemy_projectile_' + trgt.id, 'enemy_projectile_' + iyiff, iyiff); setX = trgt._x + trgt.gunlength * _root.tempwar_xmod; setY = trgt._y + trgt.gunlength * _root.tempwar_ymod; trgt_proj = _root.yiff.enemy_projectile_shell['enemy_projectile_' + iyiff]; trgt_proj._x = setX; trgt_proj._y = setY; trgt_proj.id_2 = trgt.id; enemy_projectile_1_speed = 15; trgt_proj.xspeed = enemy_projectile_1_speed * _root.tempwar_xmod; trgt_proj.yspeed = enemy_projectile_1_speed * _root.tempwar_ymod; trgt_proj.xpos = setX; trgt_proj.ypos = setY; trgt_proj.id = 'enemy_projectile'; trgt_proj.tempx = xpos; trgt_proj.tempy = ypos; } else { if (trgt.id eq 2) { trgt.capture_x = trgt2._x - 10 + random(20); trgt.capture_y = trgt2._y - 10 + random(20); trgt.start_loading_charge = 1; trgt.loading_charge_timer = 0; } } } if (trgt.start_loading_charge eq 1) { trgt.loading_charge_timer += 0.03333333333333333; if (trgt.loading_charge_timer > trgt.loading_charge_time) { trgt.start_loading_charge = o; trgt.loading_charge_timer = 0; trgt.xspeed *= 0.1; trgt.yspeed *= 0.1; rotationTowardsPoint_2(trgt.tower, trgt._x, trgt._y, trgt.capture_x, trgt.capture_y, trgt.popravka2); _root['enemyShotSound_' + trgt.id](); trgt.tower.play(); Enemy2hitGround(trgt.capture_x, trgt.capture_y); } } } function Enemy2hitGround(xx, yy) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('explosion_mortar_' + (1 + random(5)), 'explosion_' + iyiff, iyiff); power = 203; explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._width *= 1.55; _root.yiff.explosions_shell['explosion_' + iyiff]._height *= 1.55; _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } function enemyProjectileIntegrity(trgt) { check_x = trgt._x; check_y = trgt._y; if (check_x > 425 or check_x < -503) { removeMovieClip(trgt); return undefined; } if (trgt.id_2 eq 1) { power = 202; } else { if (trgt.id_2 eq 9) { power = 204; } else { if (trgt.id_2 eq 12) { power = 205; } else { if (trgt.id_2 eq 26) { power = 206; } else { if (trgt.id_2 eq 30) { power = 207; } else { if (trgt.id_2 eq 31) { power = 208; } else { if (trgt.id_2 eq 33) { power = 209; } } } } } } } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { tankShellDetonation(check_x, check_y, power); _root.bullet_hit_1.start(); removeMovieClip(trgt); return undefined; } var v2 = 0; while (v2 < _root.friendlyTargetCount) { trgtenm = _root.friendlyTargetsArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); distance = zomgyiff661[0]; if (distance < trgtenm.radius) { tankShellDetonation(check_x, check_y, power); _root.bullet_hit_1.start(); removeMovieClip(trgt); return undefined; } ++v2; } } function createEnemyUnit(xx, yy, id) { iyiff = _root.yiff.enemies_shell.getNextHighestDepth(); _root.yiff.enemies_shell.attachMovie('enemy_' + id, 'enemy_' + iyiff, iyiff); trgt = _root.yiff.enemies_shell['enemy_' + iyiff]; trgt.what = 'enemy_unit'; trgt.id = id; trgt.emp_timer = 0; trgt.btn.this_ = trgt; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.dmg = 0; trgt.experience = _root['enemy_exp_' + id]; trgt.armed = _root['enemy_armed_' + id]; trgt.mass = _root['enemy_mass_' + id]; trgt.speedmax = _root['enemy_speedmax_' + id]; trgt.radius = _root['enemy_radius_' + id]; trgt.thesize = _root['enemy_thesize_' + id]; trgt.gunlength = _root['enemy_gunlength_' + id]; trgt.reload_time = _root['enemy_reload_time_' + id]; trgt.reload_timer = random(trgt.reload_time + 1); if (trgt.thesize eq 'small' or trgt.thesize eq 'medium') { hpk = 30; } else { if (trgt.thesize eq 'big') { hpk = 25; } else { if (trgt.thesize eq 'hueg') { hpk = 23; } else { if (trgt.thesize eq 'special1' or trgt.thesize eq 'special2') { hpk = 33; } else { hpk = 30; } } } } trgt.hp = trgt.mass * hpk; trgt.loading_charge_time = _root['enemy_loading_charge_time_' + id]; trgt.popravka1 = _root['enemy_popravka1_' + id]; trgt.popravka2 = _root['enemy_popravka2_' + id]; _root.enemiesArray.push(trgt); _root.enemiesOnTheField = _root.enemiesArray.length; } function createEnemiesArray() { _root.enemiesArray = []; _root.enemiesOnTheField = 0; trgtlayer = _root.yiff.enemies_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'enemy_unit') { _root.enemiesArray.push(trgtlayer[v2]); } } } _root.enemiesOnTheField = _root.enemiesArray.length; } function respawnEnemyUnit(id, respawnWHere) { if (_root.enemies_max < _root.enemiesOnTheField or _root.enemies_max eq _root.enemiesOnTheField) { return undefined; } var v3 = 1; while (v3 < 5) { if (respawnWHere eq 'left') { xxxxxx66767 = -580; } else { xxxxxx66767 = 480; } xx = xxxxxx66767 + random(20); yy = -215 + random(350); coordinates_failed = 0; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; calc22312 = CALC_Dist_Xv_Yv(xx, yy, checkenemy._x, checkenemy._y); distance = calc22312[0]; rad1 = checkenemy.radius; rad2 = _root['enemy_radius_' + id]; radsum = 1.1 * (rad1 + rad2); if (distance < radsum) { coordinates_failed = 1; break; } ++v2; } if (coordinates_failed eq 0) { break; } ++v3; } if (coordinates_failed eq 1) { return undefined; } createEnemyUnit(xx, yy, id); } function escapeThroughTeleporter() { _root.yiff.destination = _root.yiff.teleporter; if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; if (trgt) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; if (trgt and trgt.speed < 1) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; if (distance < _root.teleporter_start_distance * 1.2) { } else { _root.teleport_target_found = 0; } } if (_root.teleport_target_found eq 0) { var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgt = _root.enemiesArray[v2]; trgt2 = _root.yiff.destination; if (trgt and trgt.speed < 1) { calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; if (distance < _root.teleporter_start_distance * 1.2) { _root.teleport_target_found = trgt; break; } else { _root.teleport_target_found = 0; } } ++v2; } } v2 = 0; while (v2 < _root.enemiesOnTheField) { trgt = _root.enemiesArray[v2]; if (trgt) { if (trgt != _root.teleport_target_found) { trgt.teleporter_timer = 0; } } ++v2; } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt.teleporter_timer += 0.03333333333333333; if (trgt.teleporter_timer > _root.teleporter_done_time) { if (_root.mouseOverUnit eq trgt) { _root.mouseOverUnit = 0; } ++_root.escaped; removeMovieClip(trgt); _root.teleport_target_found = 0; } } if (_root.teleport_target_found eq 0) { removeMovieClip(_root.yiff.rezinka_blue); removeMovieClip(_root.yiff.warping_unit); } else { if (_root.yiff.rezinka_blue) { } else { _root.yiff.attachMovie('warping_unit', 'warping_unit', _root.warping_unit_depth); _root.yiff.attachMovie('rezinka_blue', 'rezinka_blue', _root.rezinka_blue_depth); } } if (_root.teleport_target_found != 0) { trgt = _root.teleport_target_found; trgt2 = _root.yiff.destination; trgt3 = _root.yiff.rezinka_blue; trgt3._x = trgt2._x; trgt3._y = trgt2._y; _root.yiff.warping_unit._x = trgt._x; _root.yiff.warping_unit._y = trgt._y; calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, trgt2._x, trgt2._y); distance = calc12312[0]; dx = calc12312[3]; dy = calc12312[4]; angle = Math.atan(dy / dx); if (trgt2._x < trgt._x) { angle -= Math.PI; } angle *= 57.29577951308232; angle -= 180; trgt3._rotation = 0; trgt3._width = distance; trgt3._rotation = angle; } } function nukeTruckDetonation(target) { xx = target._x; yy = target._y; removeMovieClip(target); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); ++_root.stat_nukes; _root.yiff.explosions_shell.attachMovie('explosion_nuke', 'explosion_' + iyiff, iyiff); power = 10; explosion_Effect_OnTargets(xx, yy, power); _root.yiff.explosions_shell['explosion_' + iyiff]._rotation = random(360); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } function createFriendlyTargetsArray() { friendlyTargetsArray = []; friendlyTargetCount = 0; if (_root.yiff.playerTank.shift_mode != 1) { friendlyTargetsArray.push(_root.yiff.playerTank); } trgtlayer = _root.yiff.turrets_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'turret') { friendlyTargetsArray.push(trgtlayer[v2]); } } } friendlyTargetCount = friendlyTargetsArray.length; } function tankShellDetonation(xx, yy, id) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); if (id eq 1) { _root.yiff.explosions_shell.attachMovie('explosion_shell_' + (random(2) + 1), 'explosion_' + iyiff, iyiff); power = 101; } else { if (id eq 2) { _root.yiff.explosions_shell.attachMovie('explosion_shell_3', 'explosion_' + iyiff, iyiff); power = 102; } else { if (id eq 3) { _root.yiff.explosions_shell.attachMovie('explosion_emp_' + (random(2) + 1), 'explosion_' + iyiff, iyiff); power = 103; } else { if (id eq 4) { _root.yiff.explosions_shell.attachMovie('explosion_nuke_emp', 'explosion_' + iyiff, iyiff); power = 104; } else { if (id eq 202) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_1', 'explosion_' + iyiff, iyiff); power = 202; } else { if (id eq 204) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_9', 'explosion_' + iyiff, iyiff); power = 204; } else { if (id eq 205) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_12', 'explosion_' + iyiff, iyiff); power = 205; } else { if (id eq 206) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_26', 'explosion_' + iyiff, iyiff); power = 206; } else { if (id eq 207) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_30', 'explosion_' + iyiff, iyiff); power = 207; } else { if (id eq 208) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_31', 'explosion_' + iyiff, iyiff); power = 208; } else { if (id eq 209) { _root.yiff.explosions_shell.attachMovie('enemyTankSHellDetonation_33', 'explosion_' + iyiff, iyiff); power = 209; } } } } } } } } } } } this_explosion = _root.yiff.explosions_shell['explosion_' + iyiff]; this_explosion._x = xx; this_explosion._y = yy; if (power != 0) { explosion_Effect_OnTargets(xx, yy, power); } } function kursorIntegrity() { if (_root._ymouse > 520) { _root.kursorisinmenu = 1; } else { _root.kursorisinmenu = 0; } if (!mousehideyifftimer) { mousehideyifftimer = 999999999; } mousehideyifftimer += 0.03333333333333333; if (mousehideyifftimer > 1) { mousehideyifftimer = 0; Mouse.hide(); } _root.kursor._x = _root._xmouse; _root.kursor._y = _root._ymouse; if (_root.kursorisinmenu eq 1) { _root.kursor.gotoAndStop(1); return undefined; } if (_root.yiff_paused eq 1) { _root.kursor.gotoAndStop(1); if (_root.cursor_wpn_selected != 0) { _root.kursor.gotoAndStop(_root.cursor_wpn_selected + 10); } return undefined; } if (_root.yiff.playerTank.what eq 'GravityLauncher') { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { wedonthaveachosenball = 1; } else { wedonthaveachosenball = 0; } if (_root.greenballsOnTHeFIeld > 0 or wedonthaveachosenball eq 0) { if (mouse_is_down eq 0 or !mouse_is_down) { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(1); } else { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { _root.kursor.gotoAndStop(4); } else { _root.kursor.gotoAndStop(5); } } } else { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(2); } } if (_root['projectile_encost_' + _root.ammo_chosen] > _root.yiff.playerTank.energy and chosenball eq 'none') { _root.kursor.gotoAndStop(3); _root.kursor.aaa.gotoAndStop(2); _root.kursor.aaa.low_energy._visible = true; _root.kursor.aaa.low_energy.play(); } if (_root.yiff.playerTank.shift_mode eq 1 or _root.mouse_over_powerup eq 1 or _root.game_on_hold eq 1 or _root.WorldMap) { _root.kursor.gotoAndStop(1); } if (_root.game_functions_activated eq 0) { _root.kursor.gotoAndStop(1); } } function BTN_specialweaponssummon() { if (_root.missionFInished_menu or _root.missionFailed_menu) { return undefined; } if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } if (_root.pause_menu) { BTN_spawn_wpnmenu(); return undefined; } if (_root.wpn_menu) { BTN_cancelClose_wpnmenu(); return undefined; } if (mouse_is_down != 0) { return undefined; } if (_root.yiff_paused != 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } BTN_spawn_wpnmenu(); } function BTN_spawn_wpnmenu() { if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } removeMovieClip(_root.pause_menu); _root.attachMovie('wpn_menu', 'wpn_menu', _root.pause_menu_depth); _root.wpn_menu._x = 150; _root.wpn_menu._y = 260; } function BTN_cancelClose_wpnmenu() { if (_root.game_on_hold eq 1) { return undefined; } _root.cursor_wpn_selected = 0; yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); removeMovieClip(_root.wpn_menu); spawn_pause_menu(); FUnkciyaKotorayaNaKnopkeDlaProbela(); } function BTN_initiate_wpnmenu() { if (_root.game_on_hold eq 1) { return undefined; } removeMovieClip(_root.wpn_menu); removeMovieClip(_root.pause_menu); FUnkciyaKotorayaNaKnopkeDlaProbela(); } function BTN_wpn_select(id) { if (id != 0) { _root.cursor_wpn_selected = id; trace(_root.cursor_wpn_selected); _root.wpn_menu._visible = false; } else { spawnMarker(id); } } function spawnMarker(id) { tttrrgt = _root.yiff.markers_shell['marker' + id]; removeMovieClip(tttrrgt); iyiff = _root.yiff.markers_shell.getNextHighestDepth(); _root.yiff.markers_shell.attachMovie('marker_' + id, 'marker' + id, iyiff); tttrrgt = _root.yiff.markers_shell['marker' + id]; tttrrgt.id = id; if (id eq 0) { tttrrgt._x = -35; tttrrgt._y = -55; } else { tttrrgt._x = _root.yiff._xmouse; tttrrgt._y = _root.yiff._ymouse; } trace(_root.yiff._xmouse + ' ' + tttrrgt._x); _root.wpn_menu._visible = true; } function markersIntegrity() { trgtlayer = _root.yiff.markers_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { ttgt = trgtlayer[v2]; if (ttgt.id eq 1) { doShockwave(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 2) { doImplosion(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 3) { _root['wpn_reloading_timer_' + ttgt.id] = 0; nukeTruckDetonation(ttgt); } else { if (ttgt.id eq 4) { doDroneSwarm(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } else { if (ttgt.id eq 5) { activateBlackhole(ttgt._x, ttgt._y); _root['wpn_reloading_timer_' + ttgt.id] = 0; } } } } } if (ttgt.id eq 0) { _root['wpn_reloading_timer_' + ttgt.id] = 0; doCarpetBombing(); } } } yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); } function spclWpnMenuIntegrity() { if (!_root.wpn_menu) { return undefined; } if (_root.wpn_menu.dragged eq 1) { _root.wpn_menu._x = _root._xmouse - _root.wpn_menu.xdif; _root.wpn_menu._y = _root._ymouse - _root.wpn_menu.ydif; } var v2 = 0; while (v2 < 6) { trg = _root.wpn_menu['wpn_slctr_' + v2]; if (_root['wpn_available_' + v2] != 1) { trg.gotoAndStop(1); } else { if (_root['wpn_loaded_' + v2] eq 0) { trg.gotoAndStop(2); trg.ind.aaa.gotoAndStop(_root['wpn_reload_percent_' + v2]); trg.showtime = 'Reloading: ' + _root['wpn_reloadtime_show_' + v2] + ' seconds.'; } else { trg.gotoAndStop(3); } trg.activated.id = v2; if (_root['marker_count_' + v2] eq 1) { trg.activated.gotoAndStop(2); } else { trg.activated.gotoAndStop(1); } } ++v2; } if (_root.markersonthefield > 0) { _root.wpn_menu.initiatye.gotoAndStop(2); } else { _root.wpn_menu.initiatye.gotoAndStop(1); } _root.marker_count_0 = 0; _root.marker_count_1 = 0; _root.marker_count_2 = 0; _root.marker_count_3 = 0; _root.marker_count_4 = 0; _root.marker_count_5 = 0; trgtlayer = _root.yiff.markers_shell; for (var v3 in trgtlayer) { if (trgtlayer[v3] instanceof MovieClip) { ttgt = trgtlayer[v3]; if (ttgt.id > -991) { _root['marker_count_' + ttgt.id] = 1; } } } _root.markersonthefield = _root.marker_count_0 + _root.marker_count_1 + _root.marker_count_2 + _root.marker_count_3 + _root.marker_count_4 + _root.marker_count_5; } function BTN_cancellWeapon(id) { trgtlayer = _root.yiff.markers_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { ttgt = trgtlayer[v2]; if (ttgt.id eq id) { removeMovieClip(ttgt); } } } } function wpnTimersIntegrity() { var v2 = 0; while (v2 < 6) { if (_root['wpn_available_' + v2] eq 1) { _root['wpn_reloading_timer_' + v2] += 0.03333333333333333; _root['wpn_reloadtime_show_' + v2] = Math.floor(_root['wpn_reloading_time_' + v2] - _root['wpn_reloading_timer_' + v2]); _root['wpn_reload_percent_' + v2] = Math.floor((_root['wpn_reloading_timer_' + v2] / _root['wpn_reloading_time_' + v2]) * 100) + 1; if (_root['wpn_reloadtime_show_' + v2] eq 0) { _root['wpn_reloadtime_show_' + v2] = '<1'; } } else { _root['wpn_reloading_timer_' + v2] = 0; } if (_root['wpn_reloading_timer_' + v2] > _root['wpn_reloading_time_' + v2]) { if (_root['wpn_loaded_' + v2] eq 0) { spawnWpnReadyIndicator(v2); _root['wpn_loaded_' + v2] = 1; } } else { _root['wpn_loaded_' + v2] = 0; } ++v2; } } function spawnWpnReadyIndicator(id) { if (id eq 0) { xx = 88; yy = 120; } else { if (id eq 1) { xx = 84; yy = 147; } else { if (id eq 2) { xx = 84; yy = 1174; } else { if (id eq 3) { xx = 107; yy = 200; } else { if (id eq 4) { xx = 93; yy = 226; } else { if (id eq 5) { xx = 118; yy = 252; } } } } } } _root.attachMovie('wpnready_' + id, 'wpnready_' + id, _root.wpn_ready_ind_depth + id); _root['wpnready_' + id]._x = xx; _root['wpnready_' + id]._y = yy; } function saveLoadAbilityLayout(dowhat) { this.saveslot2002 = SharedObject.getLocal('yiffLayoutSave'); if (dowhat eq 'load') { varlocation1111 = this.saveslot2002.data; if (varlocation1111.saved != 1) { return undefined; } } if (dowhat eq 'save') { varlocation1 = this.saveslot2002.data; varlocation2 = _root; varlocation1.saved = 1; } else { if (dowhat eq 'load') { varlocation2 = this.saveslot2002.data; varlocation1 = _root; } else { return undefined; } } varlocation1.skill_points = varlocation2.skill_points; varlocation1.energy_upgrade = varlocation2.energy_upgrade; varlocation1.shield_upgrade = varlocation2.shield_upgrade; varlocation1.proj_upgrade_general = varlocation2.proj_upgrade_general; varlocation1.proj_upgrade_1 = varlocation2.proj_upgrade_1; varlocation1.proj_upgrade_2 = varlocation2.proj_upgrade_2; varlocation1.proj_upgrade_3 = varlocation2.proj_upgrade_3; varlocation1.proj_upgrade_4 = varlocation2.proj_upgrade_4; varlocation1.proj_upgrade_5 = varlocation2.proj_upgrade_5; varlocation1.proj_upgrade_6 = varlocation2.proj_upgrade_6; varlocation1.projPlus1Upgrade = varlocation2.projPlus1Upgrade; varlocation1.projCatcherUpgrade = varlocation2.projCatcherUpgrade; varlocation1.speedUpgrade1 = varlocation2.speedUpgrade1; varlocation1.ballActivationUpgrade = varlocation2.ballActivationUpgrade; varlocation1.speedUpgrade2 = varlocation2.speedUpgrade2; varlocation1.advShieldUpgrade = varlocation2.advShieldUpgrade; varlocation1.zeroConduit = varlocation2.zeroConduit; varlocation1.timeUpgrade = varlocation2.timeUpgrade; varlocation1.projPlus2Upgrade = varlocation2.projPlus2Upgrade; } function BTN_UpgradesMenu() { if (_root.missionFInished_menu or _root.missionFailed_menu) { return undefined; } if (_root.upgrades_menu) { if (_root.game_on_hold eq 1) { removeMovieClip(_root.upgrades_menu); _root.attachMovie('objectivesMenu', 'objectivesMenu', _root.objectives_menu_depth); _root.objectivesMenu._x = 400; _root.objectivesMenu._y = 320; _root.objectivesMenu.gotoAndStop(_root.mapchosen); return undefined; } else { removeMovieClip(_root.upgrades_menu); FUnkciyaKotorayaNaKnopkeDlaProbela(); return undefined; } } if (mouse_is_down != 0) { return undefined; } if (_root.wpn_menu) { removeMovieClip(_root.wpn_menu); } else { if (_root.yiff_paused != 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } } spawnUpgradesMenu(); } function spawnUpgradesMenu() { if (_root.teleporter_tutorial) { return undefined; } removeMovieClip(_root.pause_menu); removeMovieClip(_root.objectivesMenu); _root.attachMovie('upgrades_menu', 'upgrades_menu', _root.pause_menu_depth); _root.upgrades_menu._x = 160; _root.upgrades_menu._y = 300; } function upgradesMenuIntegrity() { if (!_root.upgrades_menu) { return undefined; } var v2 = 1; while (v2 < 25) { _root['upgr_hittest_' + v2] = _root.upgrades_menu['hitzone_' + v2].hitTest(_root._xmouse, _root._ymouse, true); ++v2; } _root.upgrades_menu.description.gotoAndStop(1); v2 = 1; while (v2 < 25) { if (_root['upgr_hittest_' + v2] eq 'true') { _root.upgrades_menu.description.gotoAndStop(v2 + 1); } ++v2; } _root.upgrades_menu.skillshowshell.show_skill = 'Level: ' + _root.lvl + ' Skill points: ' + _root.skill_points; _root.upgrades_menu.description.show_enupgr_lvl = 'Upgrade level: ' + _root.energy_upgrade; _root.upgrades_menu.description.show_maxenergy = 'Max energy: ' + _root.launcher_energy_max; _root.upgrades_menu.description.show_enregen = 'Energy regeneration: ' + _root.energy_regen_rate_percent + '%'; _root.upgrades_menu.description.show_shldupgr_lvl = 'Upgrade level: ' + _root.shield_upgrade; _root.upgrades_menu.description.show_maxdhld = 'Max shield: ' + _root.launcher_shield_max; _root.upgrades_menu.description.show_shldregen = 'Shield regeneration: ' + _root.shld_regen_rate_percent + '%'; v2 = 1; while (v2 < 7) { _root.upgrades_menu.description['show_lvl_pr_' + v2] = 'Upgrade level: ' + _root['proj_upgrade_' + v2]; _root.upgrades_menu.description['show_dmg_pr_' + v2] = 'Damage: ' + _root['balldmg_base_' + v2] + '-' + _root['balldmg_plus_' + v2]; _root.upgrades_menu.description['show_spd_pr_' + v2] = 'Speed factor: ' + _root['projectile_speed_' + v2]; _root.upgrades_menu.description['show_mass_pr_' + v2] = 'Mass factor: ' + _root['projectile_mass_' + v2]; _root.upgrades_menu.description['show_life_pr_' + v2] = 'Stability time: ' + _root['projectile_lifetime_' + v2] + ' sec'; _root.upgrades_menu.description['show_enrg_pr_' + v2] = 'Energy cost: ' + _root['projectile_encost_' + v2]; _root.upgrades_menu.description['show_rech_pr_' + v2] = 'Recharge time: ' + _root['ballProjectile_reloading_time_' + v2] + ' seconds.'; ++v2; } v2 = 1; while (v2 < 6) { _root.upgrades_menu['ball_upgr_' + v2].gotoAndStop(_root['ballProjectile_available_' + v2] + 1); ++v2; } if (_root.projPlus1Upgrade < _root.projPlus1Upgrade_max) { toactivateposdfsdf = _root.projPlus1Upgrade_max - _root.projPlus1Upgrade; _root.upgrades_menu.description.projplus1_show1 = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projplus1_show1 = 'Status: ACTIVE'; } if (_root.projCatcherUpgrade < _root.projCatcherUpgrade_max) { toactivateposdfsdf = _root.projCatcherUpgrade_max - _root.projCatcherUpgrade; _root.upgrades_menu.description.projcatch_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projcatch_show = 'Status: ACTIVE'; } if (_root.speedUpgrade1 < _root.speedUpgrade1_max) { toactivateposdfsdf = _root.speedUpgrade1_max - _root.speedUpgrade1; _root.upgrades_menu.description.mobil1_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.mobil1_show = 'Status: ACTIVE'; } if (_root.advShieldUpgrade < _root.advShieldUpgrade_max) { toactivateposdfsdf = _root.advShieldUpgrade_max - _root.advShieldUpgrade; _root.upgrades_menu.description.shield2_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.shield2_show = 'Status: ACTIVE'; } if (_root.speedUpgrade2 < _root.speedUpgrade2_max) { toactivateposdfsdf = _root.speedUpgrade2_max - _root.speedUpgrade2; _root.upgrades_menu.description.spd2_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.spd2_show = 'Status: ACTIVE'; } if (_root.ballActivationUpgrade < _root.ballActivationUpgrade_max) { toactivateposdfsdf = _root.ballActivationUpgrade_max - _root.ballActivationUpgrade; _root.upgrades_menu.description.inact_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.inact_show = 'Status: ACTIVE'; } if (_root.zeroConduit < _root.zeroConduit_max) { toactivateposdfsdf = _root.zeroConduit_max - _root.zeroConduit; _root.upgrades_menu.description.conduit_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.conduit_show = 'Status: ACTIVE'; } if (_root.timeUpgrade < _root.timeUpgrade_max) { toactivateposdfsdf = _root.timeUpgrade_max - _root.timeUpgrade; _root.upgrades_menu.description.timerboost_show = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.timerboost_show = 'Status: ACTIVE'; } if (_root.projPlus2Upgrade < _root.projPlus2Upgrade_max) { toactivateposdfsdf = _root.projPlus2Upgrade_max - _root.projPlus2Upgrade; _root.upgrades_menu.description.projplus2_show1 = 'Status: OFFLINE, ' + toactivateposdfsdf + ' points to activate!'; } else { _root.upgrades_menu.description.projplus2_show1 = 'Status: ACTIVE'; } } function spawn_pause_menu() { if (_root.game_on_hold eq 1) { return undefined; } _root.attachMovie('pause_menu', 'pause_menu', _root.pause_menu_depth); _root.pause_menu._x = 75; _root.pause_menu._y = 252; } function ballProjectileMenuIntegrity() { var v2 = 2; while (v2 < 7) { trgt = _root.ingame_menu['ballSelector_' + v2]; if (_root['ballProjectile_available_' + v2] != 1) { trgt.gotoAndStop(1); } else { if (_root['ballProjectile_loaded_' + v2] eq 1) { trgt.gotoAndStop(3); } else { trgt.ind.aaa.gotoAndStop(_root['ballProjectile_percent_' + v2]); trgt.gotoAndStop(2); } } if (_root.ammo_chosen eq v2) { trgt.gotoAndStop(4); } ++v2; } } function ballProjectileTimerz() { var v2 = 2; while (v2 < 7) { if (_root['ballProjectile_available_' + v2] eq 1) { if (_root.overdrive_activated eq 1) { _root['ballProjectile_reloading_timer_' + v2] += 0.03333333333333333 * _root.overdriveAmmoRechargeSPEEDUP; } else { _root['ballProjectile_reloading_timer_' + v2] += 0.03333333333333333; } _root['ballProjectile_percent_' + v2] = Math.floor((_root['ballProjectile_reloading_timer_' + v2] / _root['ballProjectile_reloading_time_' + v2]) * 100) + 1; } else { _root['ballProjectile_reloading_timer_' + v2] = 0; } if (_root['ballProjectile_reloading_timer_' + v2] > _root['ballProjectile_reloading_time_' + v2]) { _root['ballProjectile_loaded_' + v2] = 1; } else { _root['ballProjectile_loaded_' + v2] = 0; } ++v2; } } function indicatorsIntegrity() { trgt = _root.yiff.playerTank; trgt2 = _root.ingame_menu; if (_root.lvl eq 1) { cur_zero = 0; } else { cur_zero = _root['expmax_' + (_root.lvl - 1)]; } curexpmax = _root['expmax_' + _root.lvl]; cur_max = curexpmax - cur_zero; cur_exp = _root.experience - cur_zero; exp_percent = Math.floor(100 * cur_exp / cur_max); if (exp_percent < 1) { exp_percent = 1; } else { if (exp_percent > 100) { exp_percent = 100; } } trgt2.expind.ind.gotoAndStop(exp_percent); hppercent = Math.floor(((trgt.hp - trgt.dmg) / trgt.hp) * 100) + 1; if (!trgt or hppercent eq undefined or hppercent eq 'NaN') { hppercent = 1; } trgt2.hp_indicator.gotoAndStop(hppercent); enpercent = Math.floor((trgt.energy / trgt.energymax) * 100) + 1; if (!trgt or enpercent eq undefined or enpercent eq 'NaN') { enpercent = 1; } trgt2.en_indicator.gotoAndStop(enpercent); current_encost = _root['projectile_encost_' + _root.ammo_chosen]; current_encost_percent = Math.floor(100 * current_encost / _root.launcher_energy_max); if (current_encost_percent > 100) { current_encost_percent = 100; } else { if (current_encost_percent < 4) { current_encost_percent = 4; } } trgt2.en_indicator.cost_ind.gotoAndStop(current_encost_percent); if (_root.dimensionalSHift_delayTimer > 0) { trgt2.btn_dimshift.gotoAndStop(2); trgt2.btn_dimshift.ind.aaa.gotoAndStop(timeshiftdelaypercent); } else { trgt2.btn_dimshift.gotoAndStop(3); } if (_root.dimshift_available != 1) { trgt2.btn_dimshift.gotoAndStop(1); } if (_root.overdrive_delayTimer > 0) { trgt2.btn_overdrv.gotoAndStop(2); trgt2.btn_overdrv.ind.aaa.gotoAndStop(overdrivedelaypercent); } else { trgt2.btn_overdrv.gotoAndStop(3); } if (_root.overdrive_available != 1) { trgt2.btn_overdrv.gotoAndStop(1); } } function otherTimers() { if (_root.dimensionalSHift_delayTimer > 0) { _root.dimensionalSHift_delayTimer -= 0.03333333333333333; timeshiftdelaypercent = Math.floor(100 * (_root.dimensionalSHift_delay - _root.dimensionalSHift_delayTimer) / _root.dimensionalSHift_delay) + 1; } else { _root.dimensionalSHift_delayTimer = 0; } if (_root.overdrive_delayTimer > 0) { _root.overdrive_delayTimer -= 0.03333333333333333; overdrivedelaypercent = Math.floor(100 * (_root.overdrive_delay - _root.overdrive_delayTimer) / _root.overdrive_delay) + 1; } else { _root.overdrive_delayTimer = 0; } } function upperPannel_integrity() { if (timer55tervdfgdg > -9999999) { } else { timer55tervdfgdg = 999999; } timer55tervdfgdg += 0.03333333333333333; if (timer55tervdfgdg > 1) { timer55tervdfgdg = 0; if (_root.game_on_hold eq 1) { upperPannel.show_time = 'Time: --'; upperPannel.show_kills = 'Kills: --'; upperPannel.show_escaped = 'Escaped: --'; } else { upperPannel.show_kills = 'Kills: ' + _root.kills; if (_root.mapchosen < 2000) { upperPannel.show_time = 'Time: ' + Math.floor(_root.timelength - _root.timer); } else { upperPannel.show_time = 'Time: ' + Math.floor(_root.timer); } if (_root.escaped_max > 0) { upperPannel.show_escaped = 'Escaped: ' + _root.escaped + '/' + _root.escaped_max; } else { upperPannel.show_escaped = 'Escaped: ' + _root.escaped; } } if (mapchosen != 2002) { upperPannel.show_lvl = 'Lvl: ' + _root.lvl + ' Exp: ' + _root.experience + '/' + (_root['expmax_' + _root.lvl] + 1); } else { upperPannel.show_lvl = 'Lvl: MAX'; } } } function showLVLup() { _root.attachMovie('lvlup_indicator', 'lvlup_indicator', _root.lvlupind_depth); _root.lvlup_indicator._x = 600; _root.lvlup_indicator._y = 40; } function spawn_ObjectivesMenu() { _root.attachMovie('objectivesMenu', 'objectivesMenu', _root.objectives_menu_depth); _root.objectivesMenu._x = 400; _root.objectivesMenu._y = 320; _root.objectivesMenu.gotoAndStop(_root.mapchosen); _root.yiff.playerTank.torso.krutilka.stop(); FUnkciyaKotorayaNaKnopkeDlaProbela(); _root.game_on_hold = 1; removeMovieClip(_root.pause_menu); } function spawnWorldMap() { _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.attachMovie('WorldMap', 'WorldMap', _root.WorldMap_depth); _root.WorldMap._x = 400; _root.WorldMap._y = 300; } function wordlmapIntegrity() { if (!_root.WorldMap) { _root.mouse_over_marker = 0; if (_root.missionDescription) { removeMovieClip(_root.missionDescription); } return undefined; } forcesprogresscount = 1; var v2 = 1; while (v2 < 40) { if (_root['map_status_' + v2] eq 2) { ++forcesprogresscount; } ++v2; } _root.WorldMap.forcesDislocation.gotoAndStop(forcesprogresscount); if (_root.map_status_1 != 2) { _root.WorldMap.forcesDislocation.gotoAndStop(1); } v2 = 1; while (v2 < 40) { _root.WorldMap['marker_' + v2].gotoAndStop(_root['map_status_' + v2] + 1); _root.WorldMap['marker_' + v2].btn_shell.id = v2; ++v2; } v2 = 1000; while (v2 < 1010) { _root.WorldMap['marker_' + v2].gotoAndStop(_root['map_status_' + v2] + 1); _root.WorldMap['marker_' + v2].btn_shell.id = v2; ++v2; } if (_root.mouse_over_marker > 0) { if (_root.mouse_over_marker < 500) { if (!_root.missionDescription) { _root.attachMovie('missionDescription', 'missionDescription', _root.WorldMap_depth + 2); } } else { if (!_root.missionDescription) { _root.attachMovie('missionDescription_' + _root.mouse_over_marker, 'missionDescription', _root.WorldMap_depth + 2); } } _root.missionDescription._x = _xmouse + 100; _root.missionDescription._y = _ymouse + 60; _root.missionDescription.show_mission = 'Mission ' + _root.mouse_over_marker; _root.missionDescription.show_rank = 'Rank: ' + _root['mission_rank_' + _root.mouse_over_marker]; _root.missionDescription.show_duration = 'Duration: ' + _root['mission_length_' + _root.mouse_over_marker]; } else { removeMovieClip(_root.missionDescription); } } function BTN_markerClick(id) { _root.worldmap_loop.stop(); removeMovieClip(_root.WorldMap); _root.mapchosen = id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function endMissionCalculation() { if (!_root.missionFInished_menu and !_root.missionFailed_menu) { doMissionCalculation = 0; } if (_root.missionFInished_menu) { trgtmnshka = _root.missionFInished_menu; } else { trgtmnshka = _root.missionFailed_menu; } if (trgtmnshka.text_enkill._visible != true) { trgtmnshka.show_kills = 0; trgtmnshka.text_enkill._visible = true; } if (trgtmnshka.text_enkill._visible eq true and trgtmnshka.show_kills < _root.stat_kills) { trgtmnshka.show_kills += 1; trgtmnshka.show_kills2 = Math.floor(trgtmnshka.show_kills); } else { if (trgtmnshka.show_kills eq _root.stat_kills and trgtmnshka.text_esc._visible != true and trgtmnshka.text_enkill._visible eq true) { trgtmnshka.show_kills2 = Math.floor(trgtmnshka.show_kills); trgtmnshka.text_esc._visible = true; trgtmnshka.show_escape = 0; } } if (trgtmnshka.text_esc._visible eq true and trgtmnshka.show_escape < _root.escaped) { trgtmnshka.show_escape += 1; trgtmnshka.show_escape2 = Math.floor(trgtmnshka.show_escape); } else { if (trgtmnshka.show_escape eq _root.escaped and trgtmnshka.text_shots._visible != true and trgtmnshka.text_esc._visible eq true) { trgtmnshka.show_escape2 = Math.floor(trgtmnshka.show_escape); trgtmnshka.text_shots._visible = true; trgtmnshka.show_shots = 0; } } if (trgtmnshka.text_shots._visible eq true and trgtmnshka.show_shots < _root.stat_shots) { trgtmnshka.show_shots += 1; trgtmnshka.show_shots2 = Math.floor(trgtmnshka.show_shots); } else { if (trgtmnshka.show_shots eq _root.stat_shots and trgtmnshka.text_ups._visible != true and trgtmnshka.text_shots._visible eq true) { trgtmnshka.show_shots2 = Math.floor(trgtmnshka.show_shots); trgtmnshka.text_ups._visible = true; trgtmnshka.show_ups = 0; } } if (trgtmnshka.text_ups._visible eq true and trgtmnshka.show_ups < _root.stat_powerups) { trgtmnshka.show_ups += 1; trgtmnshka.show_ups2 = Math.floor(trgtmnshka.show_ups); } else { if (trgtmnshka.show_ups eq _root.stat_powerups and trgtmnshka.text_nukes._visible != true and trgtmnshka.text_ups._visible eq true) { trgtmnshka.show_ups2 = Math.floor(trgtmnshka.show_ups); trgtmnshka.text_nukes._visible = true; trgtmnshka.show_nukes = 0; } } if (trgtmnshka.text_nukes._visible eq true and trgtmnshka.show_nukes < _root.stat_nukes) { trgtmnshka.show_nukes += 1; trgtmnshka.show_nukes2 = Math.floor(trgtmnshka.show_nukes); } else { if (trgtmnshka.show_nukes eq _root.stat_nukes and trgtmnshka.text_holes._visible != true and trgtmnshka.text_nukes._visible eq true) { trgtmnshka.show_nukes2 = Math.floor(trgtmnshka.show_nukes); trgtmnshka.text_holes._visible = true; trgtmnshka.show_holes = 0; } } if (trgtmnshka.text_holes._visible eq true and trgtmnshka.show_holes < _root.stat_blackholes) { trgtmnshka.show_holes += 1; trgtmnshka.show_holes2 = Math.floor(trgtmnshka.show_holes); } else { if (trgtmnshka.show_holes eq _root.stat_blackholes and trgtmnshka.text_holes._visible eq true) { trgtmnshka.show_holes2 = Math.floor(trgtmnshka.show_holes); doMissionCalculation = 0; } } } function spawnEndMissionMenu() { removeMovieClip(_root.wpn_menu); removeMovieClip(_root.upgrades_menu); removeMovieClip(_root.pause_menu); _root.attachMovie('missionFInished_menu', 'missionFInished_menu', _root.objectives_menu_depth); _root.missionFInished_menu._x = 270; _root.missionFInished_menu._y = 350; } function spawnFailMissionMenu() { removeMovieClip(_root.wpn_menu); removeMovieClip(_root.upgrades_menu); removeMovieClip(_root.pause_menu); if (mapchosen > 2000) { _root.attachMovie('missionFailed_menu2', 'missionFailed_menu', _root.objectives_menu_depth); } else { _root.attachMovie('missionFailed_menu', 'missionFailed_menu', _root.objectives_menu_depth); } if (mapchosen eq 2003) { removeMovieClip(_root.missionFailed_menu); _root.attachMovie('missionFailed_menu3', 'missionFailed_menu', _root.objectives_menu_depth); } _root.missionFailed_menu._x = 270; _root.missionFailed_menu._y = 350; } function BTN_backToMap() { deactivateYiffingField(); spawnWorldMap(); } function BTN_backToMap_failed() { deactivateYiffingField(); initPROGRESSVars(); saveANDload('load'); spawnWorldMap(); } function spawnMainMenu() { _root.show_quality._visible = true; _root.overall_volume = 100; _root.game_functions_activated = 0; _root.attachMovie('mainMenu', 'mainMenu', _root.main_menu_depth); } function startCampaign() { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); saveANDload('load'); spawnWorldMap(); } function BTN_quit() { _root.worldmap_loop.stop(); _root.game_functions_activated = 1; deactivateYiffingField(); spawnMainMenu(); } function BTN_quitToMenuFromGame() { deactivateYiffingField(); _root.game_functions_activated = 0; _root.attachMovie('mainMenu', 'mainMenu', _root.main_menu_depth); } function initiateSurvival(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2001; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function initiateArmageddon(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2002; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); _root.lvl = 999; _root.skill_points = 120; } function initiateSandbox(map_id) { removeMovieClip(_root.mainMenu); _root.game_functions_activated = 1; _root.game_music_shell.menu_loop.stop(); _root.mapchosen = 2003; _root.scenario_background_selected = map_id; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); initiateYiffingField(); spawn_ObjectivesMenu(); initializeTerrain(_root.mapchosen); } function playerMovement() { trgt = _root.yiff.playerTank; deceleration = 0.98; deceleration_active = 0.9; if (trgt.yspeed < -trgt.speedmax) { } else { if (Key.isDown(87)) { trgt.yspeed -= playerTankAcceleration; } } if (trgt.yspeed > trgt.speedmax) { } else { if (Key.isDown(83)) { trgt.yspeed += playerTankAcceleration; } } if (trgt.xspeed < -trgt.speedmax) { } else { if (Key.isDown(65)) { trgt.xspeed -= playerTankAcceleration; } } if (trgt.xspeed > trgt.speedmax) { } else { if (Key.isDown(68)) { trgt.xspeed += playerTankAcceleration; } } if (Key.isDown(68) or Key.isDown(65) or Key.isDown(83) or Key.isDown(87)) { } else { trgt.xspeed *= deceleration; trgt.yspeed *= deceleration; } if (Key.isDown(68) or Key.isDown(65)) { if (Key.isDown(83) or Key.isDown(87)) { } else { trgt.yspeed *= deceleration_active; } } if (Key.isDown(83) or Key.isDown(87)) { if (Key.isDown(68) or Key.isDown(65)) { } else { trgt.xspeed *= deceleration_active; } } } function tankChargeShooting_2() { trgt121 = _root.yiff.playerTank; if (_root['projectile_encost_' + _root.ammo_chosen] > trgt121.energy and chosenball eq 'none') { return undefined; } if (chosenball eq 'none') { sharika_nety = 1; var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.launched != 1) { zomgyiff61666666 = CALC_Dist_Xv_Yv(trgt121._x, trgt121._y, checkball._x, checkball._y); distance = zomgyiff61666666[0]; if (distance < _root.krutilka_radius_max * 1.3) { sharika_nety = 0; chosenball = checkball; } } ++v2; } if (sharika_nety eq 1) { return undefined; } chosenball.purpose = 'ammo'; } if (chosenball != 'none') { zomgyiff61666666 = CALC_Dist_Xv_Yv(trgt121._x, trgt121._y, chosenball._x, chosenball._y); distance = zomgyiff61666666[0]; if (distance > _root.ball_cativation_distance) { Rezinka_ammo(chosenball, trgt121); } else { chosenball.xspeed = 0; chosenball.yspeed = 0; chosenball._x = trgt121._x; chosenball._y = trgt121._y; chosenball.vspishka.play(); if (chosenball.charged != 1) { _root.ballcaught_snd.start(); chosenball.charged = 1; chosenball.type_ = _root.ammo_chosen; chosenball.vspishka2.play(); chosenball.gotoAndStop(chosenball.type_ + 1); trgt121.energy -= _root['projectile_encost_' + chosenball.type_]; } } } } function tankShooting_2() { if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { return undefined; } _root.ball_fly_2.start(); if (_root.ammo_chosen > 2) { _root.ammo_chosen = 1; } chosenball.charged = 0; chosenball.launched = 1; type_ = chosenball.type_; trgt = chosenball; chosenball = 'none'; if (type_ != 1) { _root['ballProjectile_reloading_timer_' + type_] = 0; } zomgyiff6666666 = CALC_Dist_Xv_Yv(_root.yiff._xmouse, _root.yiff._ymouse, _root.yiff.playerTank._x, _root.yiff.playerTank._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; xx = _root.yiff.playerTank._x; yy = _root.yiff.playerTank._y; trgt.xspeed = _root['projectile_speed_' + type_] * xmod11; trgt.yspeed = _root['projectile_speed_' + type_] * ymod11; trgt.mass = _root['projectile_mass_' + type_]; trgt.radius = _root['projectile_radius_' + type_]; trgt.lifetime = _root['projectile_lifetime_' + type_]; ++_root.stat_shots; trgt.existtime = 0; trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; } function tankShooting_1() { _root.gun_delay_1 = 1; _root.yiff.playerTank.tower.gotoAndPlay(2); if (_root.tank_ammo_selected != 3 and _root.tank_ammo_selected != 4) { _root['tankshot_' + _root.tank_ammo_selected].start(); } zomgyiff6666666 = CALC_Dist_Xv_Yv(_root.yiff._xmouse, _root.yiff._ymouse, _root.yiff.playerTank._x, _root.yiff.playerTank._y); xmod11 = zomgyiff6666666[1]; ymod11 = zomgyiff6666666[2]; shag = 10; var v3 = 1; while (v3 <= 100) { check_x = _root.yiff.playerTank._x + shag * xmod11 * v3; check_y = _root.yiff.playerTank._y + shag * ymod11 * v3; if (check_x > 425 or check_x < -503) { zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance2 = zomgyiff6612[0]; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 90; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); return undefined; } var v2 = 0; while (v2 < _root.enemiesOnTheField) { trgtenm = _root.enemiesArray[v2]; zomgyiff661 = CALC_Dist_Xv_Yv(check_x, check_y, trgtenm._x, trgtenm._y); zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance = zomgyiff661[0]; distance2 = zomgyiff6612[0]; if (distance < trgtenm.radius) { iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 10; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); tankShellDetonation(check_x, check_y, _root.tank_ammo_selected); return undefined; } ++v2; } if (check_y < _root.yiff.wall_upper._y or check_y > _root.yiff.wall_bottom._y) { zomgyiff6612 = CALC_Dist_Xv_Yv(check_x, check_y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance2 = zomgyiff6612[0]; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('playerTankBeam', 'ray_' + iyiff, iyiff); trgt_ray = _root.yiff.explosions_shell['ray_' + iyiff]; playerTankGunlength = 90; setX = _root.yiff.playerTank._x + playerTankGunlength * xmod11; setY = _root.yiff.playerTank._y + playerTankGunlength * ymod11; trgt_ray._x = setX; trgt_ray._y = setY; trgt_ray._width = distance2 - playerTankGunlength; rotation_towards_movement(trgt_ray, xmod11, ymod11); tankShellDetonation(check_x, check_y, _root.tank_ammo_selected); return undefined; } ++v3; } } function BTN_dimensionalShift() { if (_root.yiff_paused eq 1 or _root.game_on_hold eq 1) { return undefined; } _root.yiff.playerTank.blendMode = 3; _root.yiff.playerTank.shift_mode = 1; _root.dimensionalSHift_timer = _root.dimensionalSHift_time; _root.overdrive_timer = 0; _root.dimensionalSHift_delayTimer = _root.dimensionalSHift_delay; _root.snd_dimshiftin.start(); if (!chosenball or chosenball eq 'none' or chosenball.charged != 1) { } else { detonateBall(chosenball); } } function BTN_overdriveSTarto() { if (_root.yiff_paused eq 1 or _root.game_on_hold eq 1) { return undefined; } _root.overdrive_activated = 1; _root.overdrive_timer = _root.overdrive_time; _root.dimensionalSHift_timer = 0; _root.invul_timer = 0; _root.overdrive_delayTimer = _root.overdrive_delay; _root.overdrive_snd.start(); _root.yiff.playerTank.blendMode = 14; } function BTN_invulnerabilitySTarto() { _root.invul_activated = 1; _root.invul_timer = _root.invul_time; _root.overdrive_timer = 0; _root.yiff.playerTank.blendMode = 14; } function playerTankIntegrity() { if (_root.speedUpgrade1_activated eq 1) { playerTankAcceleration = _root.launcher_acceleration * 2; } else { playerTankAcceleration = _root.launcher_acceleration; } if (_root.speedUpgrade2_activated eq 1) { _root.yiff.playerTank.speedmax = _root.launcher_speedmax * 1.5; } else { _root.yiff.playerTank.speedmax = _root.launcher_speedmax; } if (_root.invul_activated eq 1) { playerTankAcceleration = _root.launcher_acceleration * 3; _root.yiff.playerTank.speedmax = _root.launcher_speedmax * 2; _root.yiff.playerTank.dmg = 0; } if (_root.overdrive_activated eq 1) { hpregen_boost = _root.overdriveHPRegen_boost; enregen_boost = _root.overdriveENRegen_boost; playerTankAcceleration = _root.launcher_acceleration * 3; } else { if (_root.yiff.playerTank.shift_mode eq 1) { hpregen_boost = _root.dimshiftHPRegen_boost; enregen_boost = _root.dimshiftENRegen_boost; } else { hpregen_boost = 1; enregen_boost = 1; } } if (_root.invul_activated eq 1) { if (_root.invul_timer > 0) { _root.invul_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode eq 1) { _root.yiff.playerTank.blendMode = 14; } if (!_root.showtimer_invul) { _root.attachMovie('showtimer_invul', 'showtimer_invul', _root.dimshift_timer_depth - 1); _root.showtimer_invul._x = 21.9; _root.showtimer_invul._y = 26; } else { _root.showtimer_invul.showvar = Math.floor(_root.invul_timer * 10) / 10; if (_root.showtimer_invul.showvar < 0) { _root.showtimer_invul.showvar = 0; } } } else { removeMovieClip(_root.showtimer_invul); _root.invul_activated = 0; _root.yiff.playerTank.blendMode = 1; _root.invul_timer = 0; } } if (_root.overdrive_activated eq 1) { if (_root.overdrive_timer > 0) { _root.overdrive_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode eq 1) { _root.yiff.playerTank.blendMode = 14; } if (!_root.showtimer_overdrive) { _root.attachMovie('showtimer_overdrive', 'showtimer_overdrive', _root.dimshift_timer_depth - 1); _root.showtimer_overdrive._x = 21.9; _root.showtimer_overdrive._y = 26; } else { _root.showtimer_overdrive.showvar = Math.floor(_root.overdrive_timer * 10) / 10; if (_root.showtimer_overdrive.showvar < 0) { _root.showtimer_overdrive.showvar = 0; } } } else { removeMovieClip(_root.showtimer_overdrive); _root.overdrive_activated = 0; _root.yiff.playerTank.blendMode = 1; _root.overdrive_timer = 0; } } if (_root.yiff.playerTank.shift_mode eq 1) { if (_root.dimensionalSHift_timer > 0) { _root.dimensionalSHift_timer -= 0.03333333333333333; if (_root.yiff.playerTank.blendMode != 3) { _root.yiff.playerTank.blendMode = 3; } if (!_root.showtimer_dimshift) { _root.attachMovie('showtimer_dimshift', 'showtimer_dimshift', _root.dimshift_timer_depth); _root.showtimer_dimshift._x = 136; _root.showtimer_dimshift._y = 26; } else { _root.showtimer_dimshift.showvar = Math.floor(_root.dimensionalSHift_timer * 10) / 10; if (_root.showtimer_dimshift.showvar < 0) { _root.showtimer_dimshift.showvar = 0; } } } else { removeMovieClip(_root.showtimer_dimshift); _root.yiff.playerTank.blendMode = 1; _root.snd_dimshiftout.start(); _root.yiff.playerTank.shift_mode = 0; _root.dimensionalSHift_timer = 0; } } _root.yiff.playerTank.hp = _root.launcher_shield_max; if (_root.yiff.playerTank.dmg > 0) { _root.yiff.playerTank.dmg -= _root.shld_regen_rate * hpregen_boost; } else { _root.yiff.playerTank.dmg = 0; } _root.yiff.playerTank.energymax = _root.launcher_energy_max; if (_root.yiff.playerTank.energy < _root.yiff.playerTank.energymax) { _root.yiff.playerTank.energy += _root.energy_regen_rate * enregen_boost; } else { _root.yiff.playerTank.energy = _root.yiff.playerTank.energymax; } if (_root.gun_delay_1 eq 1) { _root.tank_timer_1 += 0.03333333333333333; _root.tank_delay_percent = Math.floor((_root.tank_timer_1 / tank_delay_seconds) * 100); } if (_root.tank_timer_1 > tank_delay_seconds_1) { _root.tank_timer_1 = 0; _root.gun_delay_1 = 0; } if (mouse_is_down eq 1) { _root.yiff.playerTank.torso.effect.play(); _root.yiff.playerTank.torso.krutilka.play(); } else { _root.yiff.playerTank.torso.effect.gotoAndStop(1); _root.yiff.playerTank.torso.krutilka.stop(); } } function spawnPlayerTank(id) { if (id eq 1) { _root.yiff.attachMovie('player_tank_1', 'playerTank', _root.player_tank_depth); trgt = _root.yiff.playerTank; trgt.what = 'SiegeTank'; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = 0; trgt._y = 0; trgt.xpos = 0; trgt.ypos = 0; trgt.tempx = xpos; trgt.tempy = ypos; trgt.mass = 200; trgt.speedmax = 5; trgt.radius = 22; trgt.thesize = 'big'; trgt.experience = 0; trgt.hp = 3000; trgt.dmg = 0; } else { if (id eq 2) { _root.yiff.attachMovie('player_tank_2', 'playerTank', _root.player_tank_depth); trgt = _root.yiff.playerTank; trgt.what = 'GravityLauncher'; trgt.xspeed = 0; trgt.yspeed = 0; trgt._x = -40; trgt._y = -70; trgt.xpos = -40; trgt.ypos = -70; trgt.tempx = xpos; trgt.tempy = ypos; trgt.mass = 300; trgt.speedmax = 5; trgt.radius = 40; trgt.thesize = 'hueg'; trgt.experience = 0; trgt.hp = 3000; trgt.dmg = 0; trgt.energymax = _root.launcher_energy_max; trgt.energy = _root.launcher_energy_max; } } } function Krutilka(ball, center) { if (!center) { return undefined; } if (ball.chaos_time > 0 or ball.purpose eq 'ammo') { return undefined; } x1 = ball._x; y1 = ball._y; x2 = center._x; y2 = center._y; var v6 = x1 - x2; var v8 = y1 - y2; var v5 = Math.sqrt(v6 * v6 + v8 * v8); if (v5 > krutilka_radius_max) { _root.rezinka_distancemax = 600; _root.rezinka_jestkost = 2; _root.rezinka_tormojenie = 0.94; Rezinka(ball, center); } krutilka_power = krutilka_power_max * v5 / krutilka_radius_max; if (v5 < krutilka_radius_max * 0.9) { ball.xspeed *= krutilka_speed_amplifier; ball.yspeed *= krutilka_speed_amplifier; } var v7 = _root.bounceball_mass_when_calc_controlz; var v10 = krutilka_mass; var v18 = ball.xspeed; var v20 = ball.yspeed; var v14 = Math.atan2(v8, v6); var v4 = Math.cos(v14); var v3 = Math.sin(v14); var v15 = v18 * v4 + v20 * v3; var v12 = krutilka_power; var v13 = v20 * v4 - v18 * v3; var v11 = 0.0001; var v19 = v7 * v15 + v10 * v12; var v21 = v15 - v12; var v16 = (v19 + v7 * v21) / (v7 + v10); var v17 = v16 - v15 + v12; v15 = v17; v12 = v16; v18 = v15 * v4 - v13 * v3; var v22 = v12 * v4 - v11 * v3; v20 = v13 * v4 + v15 * v3; var v23 = v11 * v4 + v12 * v3; ball.xspeed = v18; ball.yspeed = v20; } function Rezinka(ball, center) { if (!center or !center._x or center._x eq undefined) { return undefined; } _root.rezinka_distancemax = 600; _root.rezinka_jestkost = 8; _root.rezinka_tormojenie = 0.9; calc12312 = CALC_Dist_Xv_Yv(center._x, center._y, ball._x, ball._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; natyajenie = distance / _root.rezinka_distancemax; if (natyajenie > 1) { natyajenie = 1; } sila_natyajeniya = _root.rezinka_jestkost * natyajenie; ball.xspeed += sila_natyajeniya * x_force_modifier; ball.yspeed += sila_natyajeniya * y_force_modifier; ball.xspeed *= _root.rezinka_tormojenie; ball.yspeed *= _root.rezinka_tormojenie; } function Rezinka_ammo(ball, center) { if (!center) { return undefined; } _root.rezinka_distancemax2 = 100; _root.rezinka_jestkost2 = 15; _root.rezinka_tormojenie2 = 0.9; calc12312 = CALC_Dist_Xv_Yv(center._x, center._y, ball._x, ball._y); distance = calc12312[0]; x_force_modifier = calc12312[1]; y_force_modifier = calc12312[2]; natyajenie = distance / _root.rezinka_distancemax2; if (natyajenie > 1) { natyajenie = 1; } sila_natyajeniya = _root.rezinka_jestkost2 * natyajenie; ball.xspeed += sila_natyajeniya * x_force_modifier; ball.yspeed += sila_natyajeniya * y_force_modifier; ball.xspeed *= _root.rezinka_tormojenie2; ball.yspeed *= _root.rezinka_tormojenie2; } function spawnBounceBall(locationMC) { iyiff = _root.yiff.bounceballs_shell.getNextHighestDepth(); _root.yiff.bounceballs_shell.attachMovie('bounceball_1', 'bounceball_' + iyiff, iyiff); trgt = _root.yiff.bounceballs_shell['bounceball_' + iyiff]; trgt.what = 'bounceball'; if (locationMC) { xx = locationMC._x; yy = locationMC._y; } else { xx = _root.yiff.playerTank._x; yy = _root.yiff.playerTank._y; } trgt.xspeed = 100 - random(200); trgt.yspeed = 100 - random(200); trgt._x = xx; trgt._y = yy; trgt.xpos = xx; trgt.ypos = yy; trgt.tempx = xpos; trgt.tempy = ypos; trgt.chaos_time = 0; trgt.type_ = 0; trgt.existtime = 0; trgt.mass = 40; trgt.speedmax = 80; trgt.radius = 7.5; _root.bounceballsArray.push(trgt); _root.bounceballsOnTheField = _root.bounceballsArray.length; } function shleif(trgt) { if (_root.projectile_trails_enabled eq 0) { return undefined; } iyiff = _root.yiff.shleif_shell.getNextHighestDepth(); shleif_id = trgt.type_; _root.yiff.shleif_shell.attachMovie('shleif_' + shleif_id, 'yiffshleifsuka' + iyiff, iyiff); shle = _root.yiff.shleif_shell['yiffshleifsuka' + iyiff]; shle._x = trgt._x; shle._y = trgt._y; } function blackBallIntegrity() { var v2 = 0; while (v2 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v2]; if (checkball.type_ eq 5) { explosion_Effect_OnTargets(checkball._x, checkball._y, 999); } ++v2; } } function createBounceBallsArray() { _root.bounceballsArray = []; _root.bounceballsOnTheField = 0; trgtlayer = _root.yiff.bounceballs_shell; _root.blackballonthefield = 0; _root.greenballsOnTHeFIeld = 0; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'bounceball') { if (trgtlayer[v2].type_ eq 5) { _root.blackballonthefield = trgtlayer[v2]; } if (trgtlayer[v2].type_ eq 0) { ++_root.greenballsOnTHeFIeld; } _root.bounceballsArray.push(trgtlayer[v2]); } } } _root.bounceballsOnTheField = _root.bounceballsArray.length; } function bounceballIntegrity(ball) { if (ball.chaos_time > 0) { ball.chaos_time -= 0.03333333333333333; } if (ball._x > 545 or ball._x < -634 or ball._y < -420 or ball._y > 385) { removeMovieClip(ball); } if (ball.type_ > 0) { ball.existtime += 0.03333333333333333; ball.lifetime -= 0.03333333333333333; if (ball.lifetime < 0) { if (ball.type_ != 1) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } else { xx = ball._x; yy = ball._y; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('blueballCollapse', 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; } removeMovieClip(ball); } } else { if (ball.type_ eq 0 and !_root.yiff.playerTank) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(ball); } } } function detonateBall(ball) { xx = ball._x; yy = ball._y; explosion_Effect_OnTargets(xx, yy, 31); iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('ball_expl_' + ball.type_, 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(ball); } function projectileCatcher() { if (_root.yiff.playerTank.shift_mode eq 1) { return undefined; } var v2 = 0; while (v2 < _root.bounceballsOnTheField) { trgt = _root.bounceballsArray[v2]; if (trgt.type_ != 0 and trgt.type_ != 5 and trgt.existtime > 1 and chosenball != trgt) { calc12312 = CALC_Dist_Xv_Yv(trgt._x, trgt._y, _root.yiff.playerTank._x, _root.yiff.playerTank._y); distance = calc12312[0]; if (distance < _root.yiff.playerTank.radius * 1.3) { halfenergy = _root['projectile_encost_' + trgt.type_] / 2; if (halfenergy > 0) { _root.yiff.playerTank.energy += halfenergy; } _root.yiff.playerTank.torso.core.absorb.gotoAndPlay(2); xx = trgt._x; yy = trgt._y; iyiff = _root.yiff.explosions_shell.getNextHighestDepth(); _root.yiff.explosions_shell.attachMovie('blueballCollapse', 'explosion_' + iyiff, iyiff); _root.yiff.explosions_shell['explosion_' + iyiff]._x = xx; _root.yiff.explosions_shell['explosion_' + iyiff]._y = yy; removeMovieClip(trgt); } } ++v2; } } function powerupIntegrity(trgt) { trgt.fade_timer += 0.03333333333333333; trgt.fadePercent = Math.floor(100 * trgt.fade_timer / _root.powerup_fade_time); if (trgt.fadePercent < 1) { trgt.fadePercent = 0; } else { if (trgt.fadePercent > 100) { trgt.fadePercent = 100; } } trgt.showtime.gauge.gotoAndStop(100 - trgt.fadePercent); if (trgt.fadePercent > 99) { _root.mouse_over_powerup = 0; removeMovieClip(trgt); return undefined; } if (trgt.clearing.remove eq 1) { _root.mouse_over_powerup = 0; removeMovieClip(trgt); return undefined; } } function spawnPowerup(xx, yy) { ++_root.powerups_spawned_counter; iyiff = _root.yiff.powerups_shell.getNextHighestDepth(); _root.yiff.powerups_shell.attachMovie('powerupShell', 'pup_' + iyiff, iyiff); trgtup = _root.yiff.powerups_shell['pup_' + iyiff]; trgtup._x = xx; trgtup._y = yy; trgtup.fade_timer = 0; trgtup.what = 'pup'; trgtup.gotoAndStop(random(9) + 2); _root.powerupsArray.push(trgt); _root.powerupsOnTheField = _root.powerupsArray.length; } function createPowerupsArray() { _root.powerupsArray = []; _root.powerupsOnTheField = 0; trgtlayer = _root.yiff.powerups_shell; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2].what eq 'pup') { _root.powerupsArray.push(trgtlayer[v2]); } } } _root.powerupsOnTheField = _root.powerupsArray.length; } function PUP_nulifyAllTimerz() { var v2 = 0; while (v2 < 6) { _root['wpn_reloading_timer_' + v2] = 999; ++v2; } v2 = 2; while (v2 < 7) { _root['ballProjectile_reloading_timer_' + v2] = 999; ++v2; } _root.dimensionalSHift_timer = 0; _root.overdrive_timer = 0; } function failureIntegrity() { dontLeaveBattlefield(); if (_root.yiff.explosions_shell.launcherExplosion or _root.yiff.playerTank or _root.game_on_hold eq 1 or _root.WorldMap) { return undefined; } if (_root.launcher_has_died != 1) { return undefined; } _root.scoretimer = _root.timer; _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } function dontLeaveBattlefield() { if (_root.game_on_hold eq 1 or _root.WorldMap) { return undefined; } if (_root.yiff.playerTank._x < -470 or _root.yiff.playerTank._x > 400) { if (!_root.getbackMSG) { _root.attachMovie('getbackMSG', 'getbackMSG', _root.getbackDepth); _root.getbackMSG._x = 400; _root.getbackMSG._y = 260; } } else { if (_root.getbackMSG) { removeMovieClip(_root.getbackMSG); } } } function initializeTerrain(mapID) { if (mapID > 2000) { mapID = 1 + random(23); } if (mapID eq 1) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_8', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -260; _root.yiff.rubbish_shell.r1._y = -155; _root.yiff.rubbish_shell.r1._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_12', 'r2', 2); _root.yiff.rubbish_shell.r2._x = -61; _root.yiff.rubbish_shell.r2._y = 56; _root.yiff.rubbish_shell.r2._rotation = 0; _root.yiff.rubbish_shell.attachMovie('rubbish_16', 'r3', 3); _root.yiff.rubbish_shell.r3._x = -310; _root.yiff.rubbish_shell.r3._y = 77; _root.yiff.rubbish_shell.r3._rotation = 0; } else { if (mapID eq 2) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_5', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -190; _root.yiff.rubbish_shell.r1._y = -150; _root.yiff.rubbish_shell.r1._rotation = -90; _root.yiff.rubbish_shell.attachMovie('rubbish_7', 'r2', 2); _root.yiff.rubbish_shell.r2._x = 26; _root.yiff.rubbish_shell.r2._y = 7; _root.yiff.rubbish_shell.r2._rotation = 130; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r3', 3); _root.yiff.rubbish_shell.r3._x = 160; _root.yiff.rubbish_shell.r3._y = -100; _root.yiff.rubbish_shell.r3._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_5', 'r4', 4); _root.yiff.rubbish_shell.r4._x = 80; _root.yiff.rubbish_shell.r4._y = 140; _root.yiff.rubbish_shell.r4._rotation = 30; } else { if (mapID eq 3) { spawnBackground(1); _root.yiff.rubbish_shell.attachMovie('rubbish_3', 'r1', 1); _root.yiff.rubbish_shell.r1._x = -330; _root.yiff.rubbish_shell.r1._y = -170; _root.yiff.rubbish_shell.r1._rotation = -10; _root.yiff.rubbish_shell.attachMovie('rubbish_3', 'r2', 2); _root.yiff.rubbish_shell.r2._x = 230; _root.yiff.rubbish_shell.r2._y = -150; _root.yiff.rubbish_shell.r2._rotation = 130; _root.yiff.rubbish_shell.attachMovie('rubbish_4', 'r3', 3); _root.yiff.rubbish_shell.r3._x = -120; _root.yiff.rubbish_shell.r3._y = -20; _root.yiff.rubbish_shell.r3._rotation = 90; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r4', 4); _root.yiff.rubbish_shell.r4._x = 160; _root.yiff.rubbish_shell.r4._y = 100; _root.yiff.rubbish_shell.r4._rotation = 30; _root.yiff.rubbish_shell.attachMovie('rubbish_6', 'r5', 5); _root.yiff.rubbish_shell.r5._x = 160; _root.yiff.rubbish_shell.r5._y = 100; _root.yiff.rubbish_shell.r5._rotation = 30; } else { if (mapID eq 4) { spawnBackground(1); putRubbish('rubbish_8', -333, 122, random(360)); putRubbish('rubbish_9', -353, 33, random(360)); putRubbish('rubbish_8', -323, -127, random(360)); putRubbish('rubbish_9', -213, -26, random(360)); putRubbish('rubbish_8', -100, -198, random(360)); putRubbish('rubbish_9', -24, 122, random(360)); putRubbish('rubbish_11', 102, 22, random(360)); putRubbish('rubbish_9', 161, 122, random(360)); putRubbish('rubbish_11', 238, 32, random(360)); putRubbish('rubbish_9', 238, 42, random(360)); putRubbish('rubbish_11', 248, -137, random(360)); } else { if (mapID eq 5) { spawnBackground(1); putRubbish('rubbish_1', -433, -222, random(360)); putRubbish('rubbish_13', -353, 5, random(360)); putRubbish('rubbish_8', -333, 12, random(360)); putRubbish('rubbish_13', -253, 102, random(360)); putRubbish('rubbish_8', -203, -122, random(360)); putRubbish('rubbish_15', -133, -70, random(360)); putRubbish('rubbish_6', -133, -70, 0); putRubbish('rubbish_16', 0, -44, random(360)); putRubbish('rubbish_2', 100, 122, random(360)); putRubbish('rubbish_13', 150, -200, random(360)); putRubbish('rubbish_14', 180, 30, random(360)); putRubbish('rubbish_15', 250, 60, random(360)); putRubbish('rubbish_14', 300, -72, random(360)); } else { if (mapID eq 6) { spawnBackground(2); putRubbish('rubbish_12', -73, -70, 180); } else { if (mapID eq 7) { spawnBackground(3); } else { if (mapID eq 1003) { spawnBackground(1); putRubbish('rubbish_1', -433, -222, 10); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_1', -333, 12, -10); putRubbish('rubbish_2', -253, 102, 15); putRubbish('rubbish_1', -203, -122, 30); putRubbish('rubbish_2', -133, -70, 60); putRubbish('rubbish_5', -133, -70, 0); putRubbish('rubbish_2', 0, -44, 5); putRubbish('rubbish_2', 100, 122, 12); putRubbish('rubbish_1', 150, -200, 44); putRubbish('rubbish_2', 180, 30, -20); putRubbish('rubbish_7', 180, 30, 0); putRubbish('rubbish_1', 250, 60, -30); putRubbish('rubbish_2', 300, -72, -30); putRubbish('rubbish_12', -200, 88, -30); putRubbish('rubbish_12', 96, 0, -130); putRubbish('rubbish_12', -75, -175, -230); } else { if (mapID eq 8) { spawnBackground(2); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_1', -333, 112, -10); putRubbish('rubbish_2', -253, -102, 15); putRubbish('rubbish_5', -133, -70, 70); putRubbish('rubbish_7', 180, 30, 110); putRubbish('rubbish_12', -200, 88, -130); putRubbish('rubbish_12', 96, 0, -1130); putRubbish('rubbish_12', -75, -175, -2230); } else { if (mapID eq 9) { spawnBackground(2); putRubbish('rubbish_16', -353, 5, 20); putRubbish('rubbish_15', -333, 112, -10); putRubbish('rubbish_16', -253, -102, 15); putRubbish('rubbish_15', -133, -70, 70); putRubbish('rubbish_16', 180, 30, 110); putRubbish('rubbish_15', -200, 88, -130); putRubbish('rubbish_16', 96, 0, -1130); putRubbish('rubbish_7', 126, 9, -2230); putRubbish('rubbish_7', -250, -75, -90); } else { if (mapID eq 10) { spawnBackground(2); putRubbish('rubbish_3', -353, 5, 20); putRubbish('rubbish_4', -333, 112, -10); putRubbish('rubbish_5', -253, -102, 15); putRubbish('rubbish_6', -133, -70, 70); putRubbish('rubbish_3', 180, 30, 110); putRubbish('rubbish_4', -200, 88, -130); putRubbish('rubbish_5', 96, 0, -1130); putRubbish('rubbish_7', 126, 9, -2230); putRubbish('rubbish_7', -250, -75, -90); } else { if (mapID eq 1004) { spawnBackground(3); putRubbish('rubbish_13', -353, 5, 20); putRubbish('rubbish_14', -333, 112, -10); putRubbish('rubbish_15', -253, -102, 15); putRubbish('rubbish_16', -133, -70, 70); putRubbish('rubbish_13', 180, 30, 110); putRubbish('rubbish_14', -200, 88, -130); putRubbish('rubbish_15', 96, 0, -1130); putRubbish('rubbish_12', 126, 9, -2230); putRubbish('rubbish_12', -250, -75, -90); } else { if (mapID eq 11) { spawnBackground(2); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); putRubbish('rubbish_12', -70, -70, random(360)); } else { if (mapID eq 12) { spawnBackground(2); putRubbish('rubbish_4', -353, 5, random(360)); putRubbish('rubbish_4', -333, 112, random(360)); putRubbish('rubbish_4', -253, -102, random(360)); putRubbish('rubbish_11', -133, -70, random(360)); putRubbish('rubbish_4', 180, 30, random(360)); putRubbish('rubbish_4', -200, 88, random(360)); putRubbish('rubbish_4', 96, 0, random(360)); putRubbish('rubbish_4', 126, 9, random(360)); putRubbish('rubbish_11', -250, -75, random(360)); } else { if (mapID eq 13) { spawnBackground(2); putRubbish('rubbish_7', -353, 5, random(360)); putRubbish('rubbish_7', -333, 112, random(360)); putRubbish('rubbish_7', -253, -102, random(360)); putRubbish('rubbish_10', -133, -70, random(360)); putRubbish('rubbish_7', 180, 30, random(360)); putRubbish('rubbish_7', -200, 88, random(360)); putRubbish('rubbish_7', 96, 0, random(360)); putRubbish('rubbish_7', 126, 9, random(360)); putRubbish('rubbish_10', -250, -75, random(360)); } else { if (mapID eq 14) { spawnBackground(1); var v3 = 0; while (v3 < 6) { putRubbish('rubbish_12', -300, 70, random(360)); putRubbish('rubbish_12', 147, 25, random(360)); ++v3; } } else { if (mapID eq 15) { spawnBackground(1); putRubbish('rubbish_13', -353, 5, 20); putRubbish('rubbish_14', -333, 112, -10); putRubbish('rubbish_15', -253, -102, 15); putRubbish('rubbish_16', -133, -70, 70); putRubbish('rubbish_13', 180, 30, 110); putRubbish('rubbish_14', -200, 88, -130); putRubbish('rubbish_15', 96, 0, -1130); putRubbish('rubbish_12', 126, 9, -2230); putRubbish('rubbish_12', -250, -75, -90); } else { if (mapID eq 16) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 17) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (8 + random(8)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1005) { spawnBackground(3); } else { if (mapID eq 18) { spawnBackground(1); var v3 = 0; while (v3 < 15) { putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 19) { spawnBackground(2); var v3 = 0; while (v3 < 8) { putRubbish('rubbish_12', -286, -35, random(360)); putRubbish('rubbish_12', 195, -35, random(360)); ++v3; } putRubbish('rubbish_7', -306, -35, random(360)); putRubbish('rubbish_7', 195, -35, random(360)); } else { if (mapID eq 20) { spawnBackground(4); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 21) { spawnBackground(1); var v3 = 0; while (v3 < 20) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 22) { spawnBackground(2); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 23) { spawnBackground(1); var v3 = 0; while (v3 < 15) { putRubbish('rubbish_12', -300, 70, random(360)); putRubbish('rubbish_12', 147, 25, random(360)); ++v3; } } else { if (mapID eq 1008) { spawnBackground(4); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1006) { spawnBackground(1); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } else { if (mapID eq 1007) { spawnBackground(2); var v3 = 0; while (v3 < 10) { putRubbish('rubbish_' + (13 + random(4)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (8 + random(5)), -450 + random(830), -260 + random(420), random(360)); putRubbish('rubbish_' + (3 + random(5)), -450 + random(830), -260 + random(420), random(360)); ++v3; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function putRubbish(what, xx, yy, rotat) { iyiff = _root.yiff.rubbish_shell.getNextHighestDepth(); _root.yiff.rubbish_shell.attachMovie(what, 'r' + iyiff, iyiff); _root.yiff.rubbish_shell['r' + iyiff]._x = xx; _root.yiff.rubbish_shell['r' + iyiff]._y = yy; _root.yiff.rubbish_shell['r' + iyiff]._rotation = rotat; } function spawnBackground(id) { if (_root.mapchosen > 2000) { id = _root.scenario_background_selected; } if (id eq 4) { id = 3; _root.yiff.attachMovie('background_bottom_' + id, 'background_bottom', _root.background_depth); _root.yiff.attachMovie('upper_wall_' + id, 'wall_upper', _root.walls_depth + 1); _root.yiff.attachMovie('bottom_wall_' + id, 'wall_bottom', _root.walls_depth); _root.yiff.wall_upper._x = -37; _root.yiff.wall_upper._y = -292; _root.yiff.wall_bottom._x = -37; _root.yiff.wall_bottom._y = 186; _root.yiff.background_bottom._x = -38; _root.yiff.background_bottom._y = -28; return undefined; } _root.yiff.attachMovie('background_bottom_' + id, 'background_bottom', _root.background_depth); _root.yiff.attachMovie('upper_wall_' + id, 'wall_upper', _root.walls_depth + 1); _root.yiff.attachMovie('bottom_wall_' + id, 'wall_bottom', _root.walls_depth); _root.yiff.wall_upper._x = -37; _root.yiff.wall_upper._y = -292; _root.yiff.wall_bottom._x = -37; _root.yiff.wall_bottom._y = 186; _root.yiff.background_bottom._x = -38; _root.yiff.background_bottom._y = -28; if (id eq 3) { _root.yiff.attachMovie('background_top_3', 'background_top', _root.background_up_depth); _root.yiff.background_top._x = -38; _root.yiff.background_top._y = -28; } } function BTN_start_game() { _root.game_on_hold = 0; removeMovieClip(_root.objectivesMenu); if (_root.yiff_paused eq 1) { FUnkciyaKotorayaNaKnopkeDlaProbela(); } initializeCurrentMap(_root.mapchosen); } function initializeCurrentMap(mapchosen) { _root.yiff.attachMovie('teleporter', 'teleporter', _root.teleporter_depth); _root.yiff.teleporter._x = -256; _root.yiff.teleporter._y = -67; _root.stat_kills = 0; _root.stat_shots = 0; _root.stat_powerups = 0; _root.stat_nukes = 0; _root.stat_blackholes = 0; _root.yiff.playerTank.energy = 9999999; _root.yiff.playerTank.dmg = 0; _root.kills = 0; _root.escaped = 0; _root.escaped_max = 0; _root.towersMustSTay = 0; _root.forced_only_antimatter = 0; if (mapchosen eq 1) { _root.powerupDROPchance = 0; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_1; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_available_0 = 0; _root.wpn_available_1 = 0; } else { if (mapchosen eq 2) { _root.powerupDROPchance = 0; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_2; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_reloading_timer_1 = 999; _root.wpn_available_0 = 0; _root.wpn_available_1 = 1; } else { if (mapchosen eq 3) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_3; _root.dimshift_available = 0; _root.overdrive_available = 0; _root.wpn_available_0 = 0; _root.wpn_available_1 = 1; } else { if (mapchosen eq 4) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_4; _root.dimshift_available = 1; _root.overdrive_available = 0; _root.wpn_reloading_timer_0 = 999; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 5) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 0.7; _root.timelength = _root.mission_length_5; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 6) { FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.attachMovie('teleporter_tutorial', 'teleporter_tutorial', _root.teleporter_tutorial_depth); _root.teleporter_tutorial._x = 407; _root.teleporter_tutorial._y = 363; _root.escaped_max = 10; _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 40; _root.teleporter_done_time = 0.7; _root.timelength = _root.mission_length_6; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.dimensionalSHift_delayTimer = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; } else { if (mapchosen eq 7) { _root.towersMustSTay = 2; _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_7; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -33; _root.yiff.teleporter._y = -62; _root.turret_hp_2 = 7000; spawnTurret(-307, -185, 2); spawnTurret(-340, 105, 2); } else { if (mapchosen eq 1003) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_1003; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; enemy_speedmax_13 = 2; spawnTurret(-315, -151, 2); spawnTurret(-315, 59, 1); spawnTurret(184, -184, 2); spawnTurret(184, 74, 1); } else { if (mapchosen eq 8) { _root.escaped_max = 20; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_8; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 9) { _root.escaped_max = 20; _root.towersMustSTay = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.6; _root.timelength = _root.mission_length_9; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.turret_reload_time_1 = 3; _root.turret_reload_time_3 = 3; spawnTurret(-62, 116, 1); spawnTurret(-62, -211, 3); } else { if (mapchosen eq 10) { _root.towersMustSTay = 2; _root.powerups_spawned_counter = 0; _root.escaped_max = 20; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_10; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_3 = 4; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; spawnTurret(-307, -185, 3); spawnTurret(-340, 105, 3); } else { if (mapchosen eq 1004) { _root.powerups_spawned_counter = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_10; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_3 = 3; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; spawnTurret(-307, -185, 3); spawnTurret(-340, 0, 3); spawnTurret(-340, 105, 3); } else { if (mapchosen eq 11) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_11; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 5; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -150; _root.yiff.playerTank._x = -150; spawnTurret(-40, -70, 1); } else { if (mapchosen eq 12) { _root.escaped_max = 35; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.8; _root.timelength = _root.mission_length_12; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 13) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_13; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = 200; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 14) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.5; _root.timelength = _root.mission_length_14; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -200; _root.yiff.teleporter._y = -70; _root.turret_reload_time_1 = 3; _root.turret_reload_time_3 = 3; spawnTurret(-62, 116, 1); spawnTurret(-62, -211, 3); } else { if (mapchosen eq 15) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_15; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = 0; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 16) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_14; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = 117; _root.turret_reload_time_1 = 1; spawnTurret(-43, -208, 1); } else { if (mapchosen eq 17) { _root.escaped_max = 25; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_17; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 2; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-100, -70, 1); spawnTurret(30, -70, 1); } else { if (mapchosen eq 1005) { _root.escaped_max = 1; _root.forced_only_antimatter = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1005; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 18) { _root.escaped_max = 50; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_18; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 19) { _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_19; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 20) { _root.towersMustSTay = 1; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_20; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = 117; _root.turret_hp_4 = 10000; spawnTurret(-43, -208, 4); } else { if (mapchosen eq 21) { _root.escaped_max = 30; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_21; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 1.5; _root.turret_reload_time_4 = 1.5; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-100, -70, 1); spawnTurret(30, -70, 4); } else { if (mapchosen eq 22) { _root.escaped_max = 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_22; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.turret_reload_time_1 = 3; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.yiff.playerTank.xpos = -250; _root.yiff.playerTank._x = -250; spawnTurret(-400, -200, 1); spawnTurret(-400, 100, 1); } else { if (mapchosen eq 1008) { _root.skill_points += 15; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = _root.mission_length_1008; _root.dimshift_available = 1; _root.overdrive_available = 0; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.turret_reload_time_4 = 5; spawnTurret(-40, -200, 4); spawnTurret(-40, 100, 4); enemy_reload_time_1 = 3.5; enemy_reload_time_2 = 3.5; enemy_exp_9 = 3.5; enemy_reload_time_12 = 3.5; enemy_reload_time_30 = 3.5; enemy_exp_31 = 3.5; enemy_reload_time_33 = 5; } else { if (mapchosen eq 1006) { _root.escaped_max = 12; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1006; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 1007) { _root.escaped_max = 5; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_1007; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 23) { _root.escaped_max = 12; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = _root.mission_length_23; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 2001) { _root.escaped_max = 50; _root.powerupDROPchance = 10; _root.teleporter_done_time = 0.3; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; } else { if (mapchosen eq 2002) { _root.escaped_max = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; _root.lvl = 999; } else { if (mapchosen eq 2003) { _root.escaped_max = 0; _root.powerupDROPchance = 10; _root.teleporter_done_time = 1; _root.timelength = 0; _root.dimshift_available = 1; _root.overdrive_available = 1; _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; enemy_speedmax_3 = 2.5; _root.dimensionalSHift_delay = 60; _root.overdrive_delay = 50; _root.yiff.teleporter._x = -40; _root.yiff.teleporter._y = -70; if (_root.SAND_MaxLVL eq 1) { _root.lvl = 999; _root.skill_points = 999; } if (_root.SAND_ALLmaxedUP eq 1) { _root.lvl = 999; _root.energy_upgrade = 30; _root.shield_upgrade = 30; _root.zeroConduit = _root.zeroConduit_max; _root.proj_upgrade_1 = 15; _root.proj_upgrade_2 = 15; _root.proj_upgrade_3 = 15; _root.proj_upgrade_4 = 15; _root.proj_upgrade_5 = 15; _root.proj_upgrade_6 = 15; _root.proj_upgrade_general = 25; _root.projPlus1Upgrade = _root.projPlus1Upgrade_max; _root.projPlus2Upgrade = _root.projPlus2Upgrade_max; _root.projCatcherUpgrade = _root.projCatcherUpgrade_max; _root.speedUpgrade1 = _root.speedUpgrade1_max; _root.ballActivationUpgrade = _root.ballActivationUpgrade_max; _root.advShieldUpgrade = _root.advShieldUpgrade_max; _root.speedUpgrade2 = _root.speedUpgrade2_max; _root.timeUpgrade = _root.timeUpgrade_max; } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function scenarioIntegrity() { _root.timer += 0.03333333333333333; if (_root.timelength > -999) { } else { return undefined; } if (_root.towersMustSTay != 0 and _root.turretsOnTheField < _root.towersMustSTay) { _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } if (_root.escaped_max > 0) { if (_root.escaped_max < _root.escaped or _root.escaped_max eq _root.escaped) { _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnFailMissionMenu(); } } if (mapchosen eq 2001) { _root.respawn_pattern_survival(); } else { if (mapchosen eq 2002) { _root.respawn_pattern_armageddon(); } else { if (mapchosen eq 2003) { _root.respawn_pattern_sandbox(); } } } if (_root.timer < _root.timelength) { _root['respawn_pattern_' + _root.mapchosen](); } else { if (_root.timer > _root.timelength and mapchosen < 2000) { recordMissionCompletion(_root.mapchosen); _root['map_status_' + _root.mapchosen] = 2; if (_root.mapchosen < 500) { _root['map_status_' + (_root.mapchosen + 1)] = 1; } if (_root.mapchosen eq 7) { _root.map_status_1003 = 1; } if (_root.mapchosen eq 10) { _root.map_status_1004 = 1; } if (_root.mapchosen eq 17) { _root.map_status_1005 = 1; } if (_root.mapchosen eq 21) { _root.map_status_1006 = 1; _root.map_status_1007 = 1; _root.map_status_1008 = 1; } saveANDload('save'); _root.timer = 0; removeMovieClip(chosenball); FUnkciyaKotorayaNaKnopkeDlaProbela(); removeMovieClip(_root.pause_menu); _root.game_on_hold = 1; spawnEndMissionMenu(); } } } function __com2_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; 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 = mc._root.getSWFVersion; fv = x ? mc.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) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } function recordMissionCompletion(missionid) { if (missionid eq 10) { __com2_mochibot__('c85694cd', this, 10301, true); } else { if (missionid eq 15) { __com2_mochibot__('04e8f74b', this, 10301, true); } else { if (missionid eq 20) { __com2_mochibot__('ec6fa218', this, 10301, true); } } } } function respawn_pattern_1() { if (_root.timer > 0 and _root.timer < 2) { _root.enemies_max = 3; respawnEnemyUnit(29); } else { if (_root.timer > 2 and _root.timer < 4) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 5 and _root.timer < 25) { if (random(50) eq 1) { respawnEnemyUnit(22); } } else { if (_root.timer > 25) { if (random(3) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(22); } } } } } } function respaw234234n_pattern_1() { _root.enemies_max = 3; if (random(40) eq 1) { respawnEnemyUnit(8); } } function respawn_pattern_2() { if (_root.timer < 1) { _root.enemies_max = 6; respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); respawnEnemyUnit(29); } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(22); } } } function respawn_pattern_3() { if (_root.powerups_spawned_counter > 10) { _root.powerupDROPchance = 30; } else { if (_root.powerups_spawned_counter > 5) { _root.powerupDROPchance = 6; } else { if (_root.powerups_spawned_counter > -1) { _root.powerupDROPchance = 2; } } } if (_root.timer < 5) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(5); } else { respawnEnemyUnit(4); } } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(22); } } } function respawn_pattern_4() { _root.powerupDROPchance = 10; if (_root.timer < 10) { _root.enemies_max = 2; respawnEnemyUnit(22); } else { if (_root.timer > 10 and _root.timer < 11) { _root.enemies_max = 6; respawnEnemyUnit(7); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); respawnEnemyUnit(30); } else { _root.enemies_max = 6; if (random(60) eq 1) { respawnEnemyUnit(29); if (random(2) eq 1) { respawnEnemyUnit(30); } respawnEnemyUnit(5); } } } } function respawn_pattern_5() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 20) { aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } } } } } } } } function respawn_pattern_6() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(30); } else { if (_root.timer > 20 and _root.timer < 40) { _root.enemies_max = 6; respawnEnemyUnit(22); } else { if (_root.timer > 40 and _root.timer < 60) { _root.enemies_max = 6; respawnEnemyUnit(24); } else { if (_root.timer > 60 and _root.timer < 80) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(4); } else { respawnEnemyUnit(5); } } else { if (_root.timer > 80) { _root.enemies_max = 6; if (random(2) eq 1) { respawnEnemyUnit(20); } else { respawnEnemyUnit(6); } } } } } } } function respawn_pattern_7() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(30); } else { if (_root.timer > 20 and _root.timer < 90) { _root.enemies_max = 6; aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } else { if (aaa eq 5) { respawnEnemyUnit(1); } else { if (aaa eq 6) { respawnEnemyUnit(3); } } } } } } } } else { if (_root.timer > 105) { respawnEnemyUnit(1); } else { if (_root.timer > 90) { respawnEnemyUnit(6); } } } } } function respawn_pattern_1003() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 6; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(1); } else { respawnEnemyUnit(1, 'left'); } } else { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(30, 'left'); } } } else { if (_root.timer > 20 and _root.timer < 50) { _root.enemies_max = 8; if (random(2) eq 1) { respawnEnemyUnit(3); } else { respawnEnemyUnit(3, 'left'); } } else { if (_root.timer > 50 and _root.timer < 70) { _root.enemies_max = 6; aaa = random(10); if (aaa eq 0) { respawnEnemyUnit(30); } else { if (aaa eq 1) { respawnEnemyUnit(22); } else { if (aaa eq 2) { respawnEnemyUnit(4); } else { if (aaa eq 3) { respawnEnemyUnit(5); } else { if (aaa eq 4) { respawnEnemyUnit(6); } else { if (aaa eq 5) { respawnEnemyUnit(1); } else { if (aaa eq 6) { respawnEnemyUnit(3); } } } } } } } } else { if (_root.timer > 70 and _root.timer < 90) { _root.enemies_max = 6; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(1); } else { respawnEnemyUnit(1, 'left'); } } else { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(30, 'left'); } } } else { if (_root.timer > 90) { _root.enemies_max = 8; if (random(2) eq 1) { respawnEnemyUnit(3); } else { respawnEnemyUnit(3, 'left'); } } } } } } } function respawn_pattern_8() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(13); } else { respawnEnemyUnit(13, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 61) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); } else { if (_root.timer > 63 and _root.timer < 64) { _root.enemies_max = 10; respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); } else { if (_root.timer > 64) { _root.enemies_max = 6; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_9() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(11); } else { respawnEnemyUnit(20, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 61) { _root.enemies_max = 6; respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); respawnEnemyUnit(1); } else { if (_root.timer > 63 and _root.timer < 64) { _root.enemies_max = 10; respawnEnemyUnit(7); respawnEnemyUnit(7, 'left'); respawnEnemyUnit(7); respawnEnemyUnit(7, 'left'); } else { if (_root.timer > 64) { _root.enemies_max = 6; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_10() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 10; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(3); } } else { if (random(2) eq 1) { respawnEnemyUnit(9); } else { respawnEnemyUnit(3); } } } else { if (_root.timer > 30 and _root.timer < 100) { _root.enemies_max = 8; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 100) { respawnEnemyUnit(3); } } } } function respawn_pattern_1004() { _root.powerupDROPchance = 20; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { if (random(2) eq 1) { respawnEnemyUnit(30); } else { respawnEnemyUnit(1); } } else { if (random(2) eq 1) { respawnEnemyUnit(9); } else { respawnEnemyUnit(3); } } } else { if (_root.timer > 30 and _root.timer < 50) { _root.enemies_max = 10; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 50 and _root.timer < 60) { respawnEnemyUnit(3, 'left'); } else { if (_root.timer > 60 and _root.timer < 100) { _root.enemies_max = 10; aaa = random(15); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(9, whereto234); } } } } } } } } } } } } } } } } else { if (_root.timer > 100) { respawnEnemyUnit(9); } } } } } } function respawn_pattern_11() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; if (random(2) eq 1) { respawnEnemyUnit(16); } else { respawnEnemyUnit(13, 'left'); } } else { if (_root.timer > 30 and _root.timer < 60) { _root.enemies_max = 9; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(16, whereto234); } } } } } } } } else { if (_root.timer > 60 and _root.timer < 80) { _root.enemies_max = 8; respawnEnemyUnit(8); respawnEnemyUnit(8, 'left'); } else { if (_root.timer > 80) { _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(4, whereto234); } } } } } } } } } } } } } } } function respawn_pattern_12() { _root.powerupDROPchance = 15; if (_root.timer < 60) { _root.enemies_max = 10; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 60 and _root.timer < 75) { _root.enemies_max = 8; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 1.5; respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 75) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } } } } function respawn_pattern_13() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'left'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_14() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'yiff'; enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_15() { _root.powerupDROPchance = 15; _root.enemies_max = 12; aaa = random(20); whereto234 = 'yiff'; enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_16() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'yiff'; } else { whereto234 = 'left'; } enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_17() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 10; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(12, whereto234); } } } } } } } } else { if (_root.timer > 30 and _root.timer < 40) { _root.enemies_max = 8; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 1.5; respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 40 and _root.timer < 80) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 80) { _root.enemies_max = 10; aaa = random(40); if (random(2) eq 1) { whereto234 = 'yiff'; } else { whereto234 = 'left'; } enemy_speedmax_3 = 2.5; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(12, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1005() { _root.powerupDROPchance = 15; _root.enemies_max = 12; if (_root.timer < 15) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(1, whereto234); } else { if (_root.timer > 15 and _root.timer < 30) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(30, whereto234); } else { if (_root.timer > 30 and _root.timer < 45) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(9, whereto234); } else { if (_root.timer > 45 and _root.timer < 60) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(12, whereto234); } else { if (_root.timer > 60 and _root.timer < 75) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 75 and _root.timer < 130) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } } } } } } } } } else { if (_root.timer > 130 and _root.timer < 145) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(3, whereto234); } else { if (_root.timer > 130 and _root.timer < 180) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(12, whereto234); } } } } } else { if (_root.timer > 180) { _root.enemies_max = 8; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(15, whereto234); } } } } } } } } } } } } } } function respawn_pattern_18() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 8; whereto234 = 'yiff'; if (random(2) eq 1) { respawnEnemyUnit(18, whereto234); } else { respawnEnemyUnit(6, whereto234); } } else { if (_root.timer > 30 and _root.timer < 50) { _root.enemies_max = 10; whereto234 = 'yiff'; if (random(2) eq 1) { respawnEnemyUnit(18, whereto234); } else { respawnEnemyUnit(6, whereto234); } whereto234 = 'left'; if (random(2) eq 1) { respawnEnemyUnit(9, whereto234); } else { respawnEnemyUnit(3, whereto234); } } else { if (_root.timer > 50 and _root.timer < 100) { _root.enemies_max = 12; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(3, whereto234); } } } } } } } } } } } else { if (_root.timer > 100) { _root.enemies_max = 12; aaa = random(40); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 19) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 20) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 21) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 22) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 23) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 24) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 25) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 26) { respawnEnemyUnit(30, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_19() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 12; respawnEnemyUnit(1, 'left'); respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 40) { _root.enemies_max = 12; respawnEnemyUnit(9, 'left'); respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 40) { _root.enemies_max = 12; aaa = random(10); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { if (random(3) eq 1) { respawnEnemyUnit(31, whereto234); } } } } } } } } } } function respawn_pattern_20() { _root.powerupDROPchance = 15; if (_root.timer < 20) { _root.enemies_max = 10; respawnEnemyUnit(3, 'left'); respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 40) { respawnEnemyUnit(1, 'left'); respawnEnemyUnit(3, 'idinahui'); } else { if (_root.timer > 40 and _root.timer < 55) { _root.enemies_max = 8; respawnEnemyUnit(9, 'left'); respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 60) { _root.enemies_max = 12; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(13, whereto234); } } } } } } } } } } } } } } } } } function respawn_pattern_21() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(40); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 18) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 19) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 20) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 21) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 22) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 23) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 24) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 25) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 26) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 27) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 28) { respawnEnemyUnit(31, whereto234); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_22() { _root.powerupDROPchance = 15; if (_root.timer < 30) { _root.enemies_max = 12; respawnEnemyUnit(32, 'idinahui'); respawnEnemyUnit(4, 'idinahui'); respawnEnemyUnit(6, 'idinahui'); } else { if (_root.timer > 30) { _root.enemies_max = 10; aaa = random(30); if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } } } } } } } } } function respawn_pattern_1008() { _root.powerupDROPchance = 15; if (_root.timer < 50) { _root.enemies_max = 8; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 6) { if (random(2) eq 1) { respawnEnemyUnit(33, whereto234); } } else { if (aaa eq 7) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(3, whereto234); } } } } } } } } } } else { if (_root.timer > 50 and _root.timer < 65) { _root.enemies_max = 8; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(32, whereto234); } else { if (aaa eq 2) { if (random(2) eq 1) { respawnEnemyUnit(33, whereto234); } } else { if (aaa eq 3) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(19, whereto234); } } } } } } else { if (_root.timer > 70) { _root.enemies_max = 10; aaa = random(30); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(4, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(6, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(10, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(16, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(17, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 14) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 15) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 16) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 17) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1006() { _root.powerupDROPchance = 15; if (_root.timer < 60) { _root.enemies_max = 12; dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; aaa = random(20); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(30, whereto234); } else { respawnEnemyUnit(32, 'left'); } } } } } } } } } } } } } } else { if (_root.timer > 60) { _root.enemies_max = 12; dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; aaa = random(30); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(1, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(5, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(11, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(13, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(20, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(21, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(22, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(23, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(24, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(27, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(28, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(29, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(30, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(33, 'left'); } else { if (aaa eq 14) { respawnEnemyUnit(31, 'left'); } else { if (aaa eq 15) { respawnEnemyUnit(3, 'left'); } else { if (aaa eq 16) { respawnEnemyUnit(14, 'left'); } else { if (aaa eq 17) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 18) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 19) { respawnEnemyUnit(17, 'left'); } else { if (aaa eq 20) { respawnEnemyUnit(17, 'left'); } } } } } } } } } } } } } } } } } } } } } } } } function respawn_pattern_1007() { _root.powerupDROPchance = 15; _root.enemies_max = 10; aaa = random(20); whereto234 = 'left'; if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(7, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(8, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(10, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(14, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(15, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(18, whereto234); } else { if (aaa eq 9) { respawnEnemyUnit(19, whereto234); } else { if (aaa eq 10) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 11) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 12) { respawnEnemyUnit(33, whereto234); } else { if (aaa eq 13) { respawnEnemyUnit(10, 'left'); } } } } } } } } } } } } } } } function respawn_pattern_23() { _root.powerupDROPchance = 15; if (_root.timer < 10) { _root.enemies_max = 10; respawnEnemyUnit(1, 'idinahui'); } else { if (_root.timer > 10 and _root.timer < 20) { respawnEnemyUnit(30, 'idinahui'); } else { if (_root.timer > 20 and _root.timer < 25) { respawnEnemyUnit(4, 'idinahui'); } else { if (_root.timer > 25 and _root.timer < 30) { respawnEnemyUnit(17, 'idinahui'); } else { if (_root.timer > 30 and _root.timer < 35) { respawnEnemyUnit(9, 'idinahui'); } else { if (_root.timer > 35 and _root.timer < 40) { respawnEnemyUnit(6, 'idinahui'); } else { if (_root.timer > 40 and _root.timer < 45) { respawnEnemyUnit(8, 'idinahui'); } else { if (_root.timer > 45 and _root.timer < 50) { respawnEnemyUnit(12, 'idinahui'); } else { if (_root.timer > 50 and _root.timer < 55) { respawnEnemyUnit(18, 'idinahui'); } else { if (_root.timer > 55 and _root.timer < 70) { respawnEnemyUnit(2, 'idinahui'); } else { if (_root.timer > 70 and _root.timer < 80) { respawnEnemyUnit(3, 'idinahui'); } else { if (_root.timer > 80 and _root.timer < 85) { respawnEnemyUnit(31, 'idinahui'); respawnEnemyUnit(33, 'idinahui'); } else { if (_root.timer > 85 and _root.timer < 100) { _root.enemies_max = 10; aaa = random(20); whereto234 = 'yiff'; if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } else { if (_root.timer > 100 and _root.timer < 150) { _root.enemies_max = 10; aaa = random(20); if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } if (aaa eq 0) { respawnEnemyUnit(2, whereto234); } else { if (aaa eq 1) { respawnEnemyUnit(9, whereto234); } else { if (aaa eq 2) { respawnEnemyUnit(12, whereto234); } else { if (aaa eq 3) { respawnEnemyUnit(3, whereto234); } else { if (aaa eq 4) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 5) { respawnEnemyUnit(26, whereto234); } else { if (aaa eq 6) { respawnEnemyUnit(25, whereto234); } else { if (aaa eq 7) { respawnEnemyUnit(31, whereto234); } else { if (aaa eq 8) { respawnEnemyUnit(33, whereto234); } } } } } } } } } } else { if (_root.timer > 150) { _root.enemies_max = 10; aaa = random(33) + 1; if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } respawnEnemyUnit(aaa, whereto234); } } } } } } } } } } } } } } } } function respawn_pattern_survival() { _root.powerupDROPchance = 15; _root.enemies_max = 10; if (_root.timer < 20) { _root.enemies_max = 5; } else { if (_root.timer > 20 and _root.timer < 30) { _root.enemies_max = 8; } else { if (_root.timer > 30) { _root.enemies_max = 10; } } } if (_root.timer < 10) { survivalUnitsArray = []; survivalUnitsArray.push(30); } else { if (_root.timer > 10 and _root.timer < 20) { survivalUnitsArray = []; survivalUnitsArray.push(30); survivalUnitsArray.push(28); } else { if (_root.timer > 20 and _root.timer < 30) { survivalUnitsArray = []; survivalUnitsArray.push(3); survivalUnitsArray.push(28); survivalUnitsArray.push(30); } else { if (_root.timer > 30 and _root.timer < 40) { survivalUnitsArray = []; survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 50 and _root.timer < 60) { survivalUnitsArray = []; survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 60 and _root.timer < 70) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 70 and _root.timer < 80) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 80 and _root.timer < 90) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 90 and _root.timer < 200) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); } else { if (_root.timer > 200 and _root.timer < 220) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(9); survivalUnitsArray.push(12); survivalUnitsArray.push(3); survivalUnitsArray.push(18); survivalUnitsArray.push(30); } else { if (_root.timer > 220 and _root.timer < 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(32); } else { if (_root.timer > 300 and _root.timer < 500) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); if (random(3) eq 1) { survivalUnitsArray.push(26); } survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); if (random(2) eq 1) { survivalUnitsArray.push(33); } } else { if (_root.timer > 500) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(26); survivalUnitsArray.push(26); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); survivalUnitsArray.push(33); } } } } } } } } } } } } } if (_root.timer < 120) { whereto234 = 'yiff'; } else { if (_root.timer > 120) { if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } } } enemy_speedmax_3 = 1; if (_root.timer > 50) { enemy_speedmax_3 = 2.5; } if (_root.timer > 180) { dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function respawn_pattern_armageddon() { _root.powerupDROPchance = 15; _root.enemies_max = 10; if (_root.timer < 100) { survivalUnitsArray = []; survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(9); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); } else { if (_root.timer > 200 and _root.timer < 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); if (random(3) eq 1) { survivalUnitsArray.push(26); } survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(32); if (random(2) eq 1) { survivalUnitsArray.push(33); } } else { if (_root.timer > 300) { survivalUnitsArray = []; survivalUnitsArray.push(1); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(2); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(3); survivalUnitsArray.push(4); survivalUnitsArray.push(5); survivalUnitsArray.push(6); survivalUnitsArray.push(7); survivalUnitsArray.push(8); survivalUnitsArray.push(9); survivalUnitsArray.push(10); survivalUnitsArray.push(10); survivalUnitsArray.push(11); survivalUnitsArray.push(12); survivalUnitsArray.push(13); survivalUnitsArray.push(14); survivalUnitsArray.push(14); survivalUnitsArray.push(15); survivalUnitsArray.push(16); survivalUnitsArray.push(17); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(18); survivalUnitsArray.push(19); survivalUnitsArray.push(20); survivalUnitsArray.push(21); survivalUnitsArray.push(22); survivalUnitsArray.push(23); survivalUnitsArray.push(24); survivalUnitsArray.push(25); survivalUnitsArray.push(26); survivalUnitsArray.push(26); survivalUnitsArray.push(27); survivalUnitsArray.push(28); survivalUnitsArray.push(29); survivalUnitsArray.push(30); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(31); survivalUnitsArray.push(32); survivalUnitsArray.push(33); survivalUnitsArray.push(33); } } } if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } enemy_speedmax_3 = 2.5; if (_root.timer > 180) { dfgdfgdfg888 = 2; enemy_speedmax_1 = dfgdfgdfg888; enemy_speedmax_11 = dfgdfgdfg888; enemy_speedmax_13 = dfgdfgdfg888; enemy_speedmax_20 = dfgdfgdfg888; enemy_speedmax_21 = dfgdfgdfg888; enemy_speedmax_22 = dfgdfgdfg888; enemy_speedmax_23 = dfgdfgdfg888; enemy_speedmax_24 = dfgdfgdfg888; } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function respawn_pattern_sandbox() { _root.powerupDROPchance = 15; _root.enemies_max = _root.SANDBOXenemies_max; survivalUnitsArray = []; i = 1; while (i < 41) { if (_root['sandyiff_unit_online_' + i] eq 1) { survivalUnitsArray.push(i); } ++i; } if (_root.sandbox_attackDirection eq 1) { whereto234 = 'left'; } else { if (_root.sandbox_attackDirection eq 2) { whereto234 = 'yiff'; } else { if (_root.sandbox_attackDirection eq 3) { if (random(2) eq 1) { whereto234 = 'left'; } else { whereto234 = 'yiff'; } } } } unitslengtharrasy = survivalUnitsArray.length; respawnunitiff = survivalUnitsArray[random(unitslengtharrasy)]; respawnEnemyUnit(respawnunitiff, whereto234); } function levelingUP() { _root.expmax_1 = 15; if (_root.experience > _root.expmax_1 and _root.lvl eq 1) { showLVLup(); _root.expmax_2 = 30; _root.lvl = 2; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_2 and _root.lvl eq 2) { showLVLup(); _root.expmax_3 = 45; _root.lvl = 3; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_3 and _root.lvl eq 3) { showLVLup(); _root.expmax_4 = 60; _root.lvl = 4; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_4 and _root.lvl eq 4) { showLVLup(); _root.expmax_5 = 90; _root.lvl = 5; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_5 and _root.lvl eq 5) { showLVLup(); _root.expmax_6 = 180; _root.lvl = 6; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_6 and _root.lvl eq 6) { showLVLup(); _root.expmax_7 = 360; _root.lvl = 7; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_7 and _root.lvl eq 7) { showLVLup(); _root.expmax_8 = 600; _root.lvl = 8; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_8 and _root.lvl eq 8) { showLVLup(); _root.expmax_9 = 900; _root.lvl = 9; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_9 and _root.lvl eq 9) { showLVLup(); _root.expmax_10 = 1200; _root.lvl = 10; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_10 and _root.lvl eq 10) { showLVLup(); _root.expmax_11 = 1500; _root.lvl = 11; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_11 and _root.lvl eq 11) { showLVLup(); _root.expmax_12 = 1800; _root.lvl = 12; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_12 and _root.lvl eq 12) { showLVLup(); _root.expmax_13 = 2200; _root.lvl = 13; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_13 and _root.lvl eq 13) { showLVLup(); _root.expmax_14 = 2600; _root.lvl = 14; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_14 and _root.lvl eq 14) { showLVLup(); _root.expmax_15 = 3000; _root.lvl = 15; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_15 and _root.lvl eq 15) { showLVLup(); _root.expmax_16 = 3400; _root.lvl = 16; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_16 and _root.lvl eq 16) { showLVLup(); _root.expmax_17 = 3800; _root.lvl = 17; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_17 and _root.lvl eq 17) { showLVLup(); _root.expmax_18 = 4200; _root.lvl = 18; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_18 and _root.lvl eq 18) { showLVLup(); _root.expmax_19 = 4600; _root.lvl = 19; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_19 and _root.lvl eq 19) { showLVLup(); _root.expmax_20 = 5000; _root.lvl = 20; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_20 and _root.lvl eq 20) { showLVLup(); _root.expmax_21 = 5700; _root.lvl = 21; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_21 and _root.lvl eq 21) { showLVLup(); _root.expmax_22 = 6400; _root.lvl = 22; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_22 and _root.lvl eq 22) { showLVLup(); _root.expmax_23 = 7100; _root.lvl = 23; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_23 and _root.lvl eq 23) { showLVLup(); _root.expmax_24 = 8000; _root.lvl = 24; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_24 and _root.lvl eq 24) { showLVLup(); _root.expmax_25 = 9000; _root.lvl = 25; _root.skill_points += 5; } else { if (_root.experience > _root.expmax_25 and _root.lvl eq 25) { showLVLup(); _root.expmax_26 = 99999; _root.lvl = 26; _root.skill_points += 5; } } } } } } } } } } } } } } } } } } } } } } } } } } function upgradesIntegrity() { _root.launcher_energy_max = Math.floor(1000 + 66.666 * _root.energy_upgrade); _root.energy_regen_rate = 0.3 + 0.03333 * _root.energy_upgrade; if (_root.zeroConduit < _root.zeroConduit_max) { } else { _root.energy_regen_rate *= 2.5; } _root.energy_regen_rate_percent = Math.floor(1000 * _root.energy_regen_rate / 0.3) / 10; _root.launcher_shield_max = 3000 + 100 * _root.shield_upgrade; _root.shld_regen_rate = 4 + 0.06666 * _root.shield_upgrade; _root.shld_regen_rate_percent = Math.floor(1000 * _root.shld_regen_rate / 4) / 10; _root.balldmg_base_1 = 200 + _root.proj_upgrade_1 * 10; _root.balldmg_plus_1 = 500 + _root.proj_upgrade_1 * 10; _root.projectile_speed_1 = 25; _root.projectile_mass_1 = 40 + _root.proj_upgrade_1; _root.projectile_radius_1 = 22; _root.projectile_lifetime_1 = Math.floor((1.5 + _root.proj_upgrade_1 * 0.187654) * 10) / 10; _root.projectile_encost_1 = 50 + _root.proj_upgrade_1 * 5; _root.balldmg_base_2 = 200 + _root.proj_upgrade_2 * 25; _root.balldmg_plus_2 = 500 + _root.proj_upgrade_2 * 20; _root.projectile_speed_2 = 40; _root.projectile_mass_2 = 60 + _root.proj_upgrade_2 * 2; _root.projectile_radius_2 = 22; _root.projectile_lifetime_2 = 4; _root.projectile_encost_2 = Math.floor(200 + _root.proj_upgrade_2 * 6.7); _root.balldmg_base_3 = 500; _root.balldmg_plus_3 = 1000; _root.projectile_speed_3 = 15; _root.projectile_mass_3 = 650 + _root.proj_upgrade_3 * 15; _root.projectile_radius_3 = 22; _root.projectile_lifetime_3 = 6; _root.projectile_encost_3 = 400 - _root.proj_upgrade_3 * 20; _root.balldmg_base_4 = 700; _root.balldmg_plus_4 = 700; _root.projectile_speed_4 = 30; _root.projectile_mass_4 = 50; _root.projectile_radius_4 = 22; _root.projectile_lifetime_4 = 8; _root.projectile_encost_4 = 300 - _root.proj_upgrade_4 * 20; _root.projectile_speed_5 = 6 - _root.proj_upgrade_5 * 0.1; _root.projectile_mass_5 = 150; _root.projectile_radius_5 = 22; _root.projectile_lifetime_5 = 12 + _root.proj_upgrade_5; _root.projectile_encost_5 = 1000 - _root.proj_upgrade_5 * 62; _root.ballProjectile_reloading_time_5 = Math.floor(30 - _root.proj_upgrade_5 * 0.7); if (_root.forced_only_antimatter eq 1) { projectile_speed_6 = 40; projectile_mass_6 = 150; projectile_radius_6 = 22; projectile_lifetime_6 = 10; projectile_encost_6 = 100; } else { _root.projectile_speed_6 = 10 + _root.proj_upgrade_6 * 3; _root.projectile_mass_6 = 150; _root.projectile_radius_6 = 22; _root.projectile_lifetime_6 = 12; _root.projectile_encost_6 = 800 - _root.proj_upgrade_6 * 50; } if (_root.proj_upgrade_general > 24) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 1; _root.ballProjectile_available_5 = 1; } else { if (_root.proj_upgrade_general > 14) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 1; _root.ballProjectile_available_5 = 0; } else { if (_root.proj_upgrade_general > 9) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 1; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } else { if (_root.proj_upgrade_general > 4) { _root.ballProjectile_available_2 = 1; _root.ballProjectile_available_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } else { _root.ballProjectile_available_2 = 0; _root.ballProjectile_available_3 = 0; _root.ballProjectile_available_4 = 0; _root.ballProjectile_available_5 = 0; } } } } var v2 = 2; while (v2 < 6) { if (_root['ballProjectile_available_' + v2] eq 0 and _root['proj_upgrade_' + v2] > 0) { _root.skill_points += _root['proj_upgrade_' + v2]; _root['proj_upgrade_' + v2] = 0; } ++v2; } if (_root.projPlus1Upgrade < _root.projPlus1Upgrade_max) { projplus1 = 0; } else { projplus1 = 1; } if (_root.projPlus2Upgrade < _root.projPlus2Upgrade_max) { projplus2 = 0; } else { projplus2 = 1; } _root.maxBallsOnTheField = 1 + projplus1 + projplus2; if (_root.projCatcherUpgrade < _root.projCatcherUpgrade_max) { _root.projectile_catcher_activated = 0; } else { _root.projectile_catcher_activated = 1; } if (_root.speedUpgrade1 < _root.speedUpgrade1_max) { _root.speedUpgrade1_activated = 0; } else { _root.speedUpgrade1_activated = 1; } if (_root.ballActivationUpgrade < _root.ballActivationUpgrade_max) { _root.ball_cativation_distance = 30; } else { _root.ball_cativation_distance = 90; } if (mapchosen > 2000) { _root.ball_cativation_distance = 90; } if (_root.advShieldUpgrade < _root.advShieldUpgrade_max) { _root.DMG_blcok_chance = -1; } else { _root.DMG_blcok_chance = 30; } if (_root.speedUpgrade2 < _root.speedUpgrade2_max) { _root.speedUpgrade2_activated = 0; } else { _root.speedUpgrade2_activated = 1; } if (_root.timeUpgrade < _root.timeUpgrade_max) { _root.wpn_reloading_time_0 = 70; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 30; _root.wpn_reloading_time_3 = 30; _root.wpn_reloading_time_4 = 50; _root.wpn_reloading_time_5 = 60; } else { _root.wpn_reloading_time_0 = 50; _root.wpn_reloading_time_1 = 20; _root.wpn_reloading_time_2 = 20; _root.wpn_reloading_time_3 = 20; _root.wpn_reloading_time_4 = 40; _root.wpn_reloading_time_5 = 50; } if (mapchosen > 2000) { _root.wpn_reloading_time_0 = 50; _root.wpn_reloading_time_1 = 30; _root.wpn_reloading_time_2 = 40; _root.wpn_reloading_time_3 = 60; _root.wpn_reloading_time_4 = 60; _root.wpn_reloading_time_5 = 50; } if (_root.SAND_invul eq 1 and mapchosen eq 2003) { _root.DMG_blcok_chance = 100; _root.invul_activated = 1; _root.invul_timer = _root.invul_time; _root.overdrive_timer = 0; _root.yiff.playerTank.blendMode = 14; } if (mapchosen eq 2003 and _root.SAND_instantReload eq 1) { _root.wpn_reloading_time_0 = 0; _root.wpn_reloading_time_1 = 0; _root.wpn_reloading_time_2 = 0; _root.wpn_reloading_time_3 = 0; _root.wpn_reloading_time_4 = 0; _root.wpn_reloading_time_5 = 0; _root.dimensionalSHift_delay = 0; _root.overdrive_delay = 0; _root.ballProjectile_reloading_time_2 = 0; _root.ballProjectile_reloading_time_3 = 0; _root.ballProjectile_reloading_time_4 = 0; _root.ballProjectile_reloading_time_5 = 0; _root.ballProjectile_reloading_time_6 = 0; } if (_root.map_status_1003 eq 2) { _root.wpn_available_2 = 1; } else { _root.wpn_available_2 = 0; } if (_root.map_status_1004 eq 2) { _root.wpn_available_3 = 1; } else { _root.wpn_available_3 = 0; } if (_root.map_status_1005 eq 2 or _root.forced_only_antimatter eq 1) { _root.ballProjectile_available_6 = 1; } else { _root.ballProjectile_available_6 = 0; } if (_root.map_status_1006 eq 2) { _root.wpn_available_4 = 1; } else { _root.wpn_available_4 = 0; } if (_root.map_status_1007 eq 2) { _root.wpn_available_5 = 1; } else { _root.wpn_available_5 = 0; } if (_root.forced_only_antimatter eq 1) { _root.ballProjectile_reloading_timer_6 = 999; _root.ammo_chosen = 6; } if (mapchosen > 2000) { _root.wpn_available_0 = 1; _root.wpn_available_1 = 1; _root.wpn_available_2 = 1; _root.wpn_available_3 = 1; _root.wpn_available_4 = 1; _root.wpn_available_5 = 1; _root.wpn_available_6 = 1; _root.ballProjectile_available_6 = 1; } } function FUnkciyaKotorayaNaKnopkeDlaProbela() { if (_root.game_functions_activated eq 0) { return undefined; } if (mouse_is_down != 0 and _root.kursorisinmenu != 1) { return undefined; } if (_root.game_on_hold eq 1 or _root.teleporter_tutorial) { return undefined; } if (_root.wpn_menu) { BTN_cancelClose_wpnmenu(); return undefined; } if (_root.yiff_paused eq 1) { _root.yiff_paused = 0; globalPause('unpause'); removeMovieClip(_root.pause_menu); removeMovieClip(_root.upgrades_menu); } else { _root.pause_snd.start(); _root.yiff_paused = 1; _root.game_music_shell.mmm3_musicloop_1.stop('mmm4_musicloop'); _root.music_paused_at = _root.game_music_shell.mmm3_musicloop_1.position; _root.musicwas_paused = 1; globalPause('pause'); spawn_pause_menu(); } } function gameplayFunctions() { scenarioIntegrity(); failureIntegrity(); DMG_randomizers(); otherTimers(); wpnTimersIntegrity(); ballProjectileTimerz(); playerTankIntegrity(); showhpIntegrity(); var v5 = 0; while (v5 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v5]; powerupIntegrity(checkpup); ++v5; } createFriendlyTargetsArray(); createTurretsArray(); createMagnetsArray(); createGravityNukesArray(); createSingularitiesArray(); createBounceBallsArray(); createEnemiesArray(); createPowerupsArray(); escapeThroughTeleporter(); v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; enemyAttack(checkenemy); ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; turretAttack(checkturret); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; DefineSpeed(checkenemy); enemy_hp_monitoring(checkenemy); ++v5; } var v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; DefineSpeed(checkmagnet); shleif(checkmagnet); ++v6; } trgtlayer = _root.yiff.enemy_projectile_shell; for (var v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { DefineSpeed(trgtlayer[v7]); } } DefineSpeed(_root.yiff.playerTank); enemy_hp_monitoring(_root.yiff.playerTank); v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; DefineSpeed(checkball); shleif(checkball); bounceballIntegrity(checkball); ++v5; } if (_root.yiff.playerTank.shift_mode != 1) { v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; Krutilka(checkball, _root.yiff.playerTank); ++v5; } } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; moveObject(checkenemy); ++v5; } moveObject(_root.yiff.playerTank); trgtlayer = _root.yiff.enemy_projectile_shell; for (v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { if (trgtlayer[v7].id eq 'friendlyProjectile') { turretProjectileIntegrity(trgtlayer[v7]); } if (trgtlayer[v7].id eq 'enemy_projectile') { enemyProjectileIntegrity(trgtlayer[v7]); } if (trgtlayer[v7].xspeed > -99999999 or trgtlayer[v7].yspeed > -99999999) { moveObject(trgtlayer[v7]); } } } v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; moveObject(checkmagnet); ++v6; } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; if (checkball.charged != 1) { moveObject(checkball); } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; turretIntegrity(checkturret); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; Enemy_movement_to_target(checkenemy); Enemy_rotation(checkenemy); ++v5; } playerMovement(); if (_root.yiff.playerTank.id eq 1) { PlayerTank_rotation(_root.yiff.playerTank); if (_root.yiff.playerTank.tower.shootinganimation eq 0) { rotationTowardsPoint(_root.yiff.playerTank.tower, _root.yiff.playerTank._xmouse, _root.yiff.playerTank._ymouse, 0); } } else { PlayerTank_rotation2(_root.yiff.playerTank); } if (_root.projectile_catcher_activated eq 1) { projectileCatcher(); } markersIntegrity(); gravNukeEffect(); implosionIntegrity(); blackHolesIntegrity(); blackBallIntegrity(); carpetBombingIntegrity(); magnet_balls_integrity(); v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; WallCollision(checkmagnet); ++v6; } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; WallCollision(checkball); ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; if (_root.yiff.wall_upper or _root.yiff.wall_bottom) { Enemy2WallCollision(checkenemy); } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; b2 = checkturret; b1 = _root.yiff.playerTank; ballToBallDetection(b1, b2, 1); enemy2enemy_ottalkivanie(b1, b2, distance); enemy_zashita_ot_skleivaniya(b2, b1); ++v5; } Enemy2WallCollision(_root.yiff.playerTank); if (_root.yiff.playerTank.shift_mode != 1) { v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b1 = checkenemy; b2 = _root.yiff.playerTank; ballToBallDetection(b1, b2, 1); enemy_zashita_ot_skleivaniya(_root.yiff.playerTank, checkenemy); calc12312 = CALC_Dist_Xv_Yv(b1._x, b1._y, b2._x, b2._y); distance = calc12312[0]; enemy2enemy_ottalkivanie(checkenemy, _root.yiff.playerTank, distance); ++v5; } } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b2 = checkenemy; v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; b1 = checkmagnet; ballToBallDetection(b1, b2, 5); ++v6; } ++v5; } v5 = 0; while (v5 < _root.turretsOnTheField) { checkturret = _root.turretsArray[v5]; b2 = checkturret; var v2 = 0; while (v2 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v2]; b1 = checkenemy; ballToBallDetection(b1, b2, 1); enemy2enemy_ottalkivanie(b1, b2, distance); enemy_zashita_ot_skleivaniya(b1, b2); ++v2; } ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; b2 = checkenemy; var v3 = 0; while (v3 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v3]; b1 = checkball; ballToBallDetection(b1, b2, 0); ++v3; } ++v5; } v5 = _root.enemiesOnTheField + 1; while (--v5 + 1) { checkenemy1 = _root.enemiesArray[v5]; var b1 = checkenemy1; var v4 = v5; while (--v4 + 1) { checkenemy2 = _root.enemiesArray[v4]; var b2 = checkenemy2; if (b1 and b2) { calc12312 = CALC_Dist_Xv_Yv(b1._x, b1._y, b2._x, b2._y); distance = calc12312[0]; enemy2enemy_ottalkivanie(b1, b2, distance); if (distance < _root.maxspeed * 2) { ballToBallDetection(b1, b2, 1); enemy_zashita_ot_skleivaniya(b1, b2); } } } } v5 = 0; while (v5 < _root.bounceballsOnTheField) { checkball = _root.bounceballsArray[v5]; if (checkball.charged != 1) { renderObject(checkball); } ++v5; } v5 = 0; while (v5 < _root.enemiesOnTheField) { checkenemy = _root.enemiesArray[v5]; renderObject(checkenemy); ++v5; } renderObject(_root.yiff.playerTank); v6 = 0; while (v6 < _root.magnetsOnTheField) { checkmagnet = _root.magnetsArray[v6]; renderObject(checkmagnet); ++v6; } trgtlayer = _root.yiff.enemy_projectile_shell; for (v7 in trgtlayer) { if (trgtlayer[v7] instanceof MovieClip) { if (trgtlayer[v7].xspeed > -99999999 or trgtlayer[v7].yspeed > -99999999) { renderObject(trgtlayer[v7]); } } } if (_root.yiff.playerTank.shift_mode != 1) { if (_root.yiff.playerTank.what eq 'GravityLauncher' and mouse_is_down eq 1 and _root.kursorisinmenu != 1) { tankChargeShooting_2(); } } if (_root.yiff.playerTank.shift_mode != 1) { if (_root.bounceballsOnTheField < _root.maxBallsOnTheField and _root.yiff.playerTank.what eq 'GravityLauncher') { if (_root.greenballsOnTHeFIeld < 2) { spawnBounceBall(); } } } } function pauseEffects(trgt, dowhat) { if (dowhat eq 'pause') { trgt.stop(); trgt.aaa.stop(); trgt.aaa.bbb.stop(); trgt.aaa.bbb.ccc.stop(); trgt.aaa.bbb.ccc.ddd.stop(); trgt.aaa.aaa.stop(); trgt.aaa2.stop(); trgt.bbb.stop(); trgt.ccc.stop(); trgt.ddd.stop(); trgt.insides.stop(); } else { trgt.play(); trgt.aaa.play(); trgt.aaa.bbb.play(); trgt.aaa.bbb.ccc.play(); trgt.aaa.bbb.ccc.ddd.play(); trgt.aaa.aaa.play(); trgt.aaa2.play(); trgt.bbb.play(); trgt.ccc.play(); trgt.ddd.play(); trgt.insides.play(); } } function pauseTanksTurrets(trgt, dowhat) { if (dowhat eq 'pause') { trgt.aaa.stop(); trgt.torso.aaa.stop(); if (trgt.ballhitanim._currentframe > 1) { trgt.ballhitanim.stop(); trgt.ballhitanim.aaa.stop(); trgt.ballhitanim.bbb.stop(); } if (trgt.tower._currentframe > 1) { trgt.tower.stop(); } } else { trgt.aaa.play(); trgt.torso.aaa.play(); if (trgt.ballhitanim._currentframe > 1) { trgt.ballhitanim.play(); trgt.ballhitanim.aaa.play(); trgt.ballhitanim.bbb.play(); } if (trgt.tower._currentframe > 1) { trgt.tower.play(); } } } function pauseTeleporter(trgt, dowhat) { if (dowhat eq 'pause') { _root.yiff.rezinka_blue.aaa.bbb.stop(); _root.yiff.warping_unit.aaa.stop(); _root.yiff.warping_unit.bbb.stop(); } else { _root.yiff.rezinka_blue.aaa.bbb.play(); _root.yiff.warping_unit.aaa.play(); _root.yiff.warping_unit.bbb.play(); } if (dowhat eq 'pause') { trgt.body.stop(); trgt.body.a1.stop(); trgt.body.a2.stop(); } else { trgt.body.play(); trgt.body.a1.play(); trgt.body.a2.play(); } } function pauseBalls(trgt, dowhat) { if (dowhat eq 'pause') { trgt.aura.stop(); trgt.aaa2.stop(); trgt.aaa.bbb.ccc.stop(); trgt.aaa.bbb.ccc.ddd.stop(); if (trgt.vspishka._currentframe > 1) { trgt.vspishka.stop(); } if (trgt.vspishka2._currentframe > 1) { trgt.vspishka2.stop(); } } else { trgt.aura.play(); trgt.aaa2.play(); trgt.aaa.bbb.ccc.play(); trgt.aaa.bbb.ccc.ddd.play(); if (trgt.vspishka._currentframe > 1) { trgt.vspishka.play(); } if (trgt.vspishka2._currentframe > 1) { trgt.vspishka2.play(); } } } function globalPause(dowhat) { if (dowhat eq 'pause') { _root.getbackMSG.stop(); } else { _root.getbackMSG.play(); } if (dowhat eq 'pause') { _root.mouse_over_powerup = 0; var v3 = 0; while (v3 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v3]; checkpup._visible = false; ++v3; } } else { var v3 = 0; while (v3 < _root.powerupsOnTheField) { checkpup = _root.powerupsArray[v3]; checkpup._visible = true; ++v3; } } trgtlayer = _root.yiff.enemy_projectile_shell; for (var v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } pauseEffects(_root.yiff.implosion, dowhat); trgtlayer = _root.yiff.blackholes_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.explosions_special_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.explosions_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.magnetballs_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.shleif_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseEffects(trgtlayer[v4], dowhat); } } pauseTeleporter(_root.yiff.teleporter, dowhat); trgtlayer = _root.yiff.bounceballs_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseBalls(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.enemies_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseTanksTurrets(trgtlayer[v4], dowhat); } } trgtlayer = _root.yiff.turrets_shell; for (v4 in trgtlayer) { if (trgtlayer[v4] instanceof MovieClip) { pauseTanksTurrets(trgtlayer[v4], dowhat); } } if (dowhat eq 'pause') { _root.yiff.carpetbombingAnim.stop(); _root.yiff.playerTank.torso.aaa.stop(); } else { _root.yiff.carpetbombingAnim.play(); _root.yiff.playerTank.torso.aaa.play(); } } function initiateYiffingField() { _root.yiff._visible = true; yiff.createEmptyMovieClip('enemy_projectile_shell', _root.enemy_projectile_depth); yiff.createEmptyMovieClip('blackholes_shell', _root.blackholes_depth); yiff.createEmptyMovieClip('explosions_special_shell', _root.explosions_special_depth); yiff.createEmptyMovieClip('explosions_shell', _root.explosions_depth); yiff.createEmptyMovieClip('magnetballs_shell', _root.magnetballs_depth); yiff.createEmptyMovieClip('enemies_shell', _root.enemies_depth); yiff.createEmptyMovieClip('bounceballs_shell', _root.bounceballs_depth); yiff.createEmptyMovieClip('shleif_shell', _root.shleif_depth); yiff.createEmptyMovieClip('turrets_shell', _root.turrets_depth); yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); yiff.createEmptyMovieClip('powerups_shell', _root.powerups_depth); yiff.createEmptyMovieClip('kraters_shell', _root.kraters_depth); yiff.createEmptyMovieClip('rubbish_shell', _root.background_rubbish_depth); yiff.kraters_shell.cacheAsBitmap = true; yiff.rubbish_shell.cacheAsBitmap = true; _root.attachMovie('upperPannel', 'upperPannel', _root.upper_pannel_depth); _root.upperPannel._x = 765; _root.upperPannel._y = 16; _root.attachMovie('ingame_menu', 'ingame_menu', _root.ingame_menu_depth); _root.ingame_menu._x = 400; _root.ingame_menu._y = 556; _root.ingame_menu.showinfo = ''; spawnPlayerTank(2); } function deactivateYiffingField() { removeMovieClip(_root.getbackMSG); trgtlayer = _root.yiff; for (var v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { removeMovieClip(trgtlayer[v2]); } } trgtlayer = _root; for (v2 in trgtlayer) { if (trgtlayer[v2] instanceof MovieClip) { if (trgtlayer[v2] != _root.show_quality and trgtlayer[v2] != _root.theBannerCore and trgtlayer[v2] != _root.game_music_shell) { removeMovieClip(trgtlayer[v2]); } } } _root.attachMovie('kursor', 'kursor', _root.kursor_depth); yiff.createEmptyMovieClip('enemy_projectile_shell', _root.enemy_projectile_depth); yiff.createEmptyMovieClip('blackholes_shell', _root.blackholes_depth); yiff.createEmptyMovieClip('explosions_special_shell', _root.explosions_special_depth); yiff.createEmptyMovieClip('explosions_shell', _root.explosions_depth); yiff.createEmptyMovieClip('magnetballs_shell', _root.magnetballs_depth); yiff.createEmptyMovieClip('enemies_shell', _root.enemies_depth); yiff.createEmptyMovieClip('bounceballs_shell', _root.bounceballs_depth); yiff.createEmptyMovieClip('shleif_shell', _root.shleif_depth); yiff.createEmptyMovieClip('turrets_shell', _root.turrets_depth); yiff.createEmptyMovieClip('markers_shell', _root.markers_depth); yiff.createEmptyMovieClip('powerups_shell', _root.powerups_depth); yiff.createEmptyMovieClip('kraters_shell', _root.kraters_depth); yiff.createEmptyMovieClip('rubbish_shell', _root.background_rubbish_depth); yiff.kraters_shell.cacheAsBitmap = true; yiff.rubbish_shell.cacheAsBitmap = true; removeMovieClip(_root.upperPannel); removeMovieClip(_root.ingame_menu); _root.yiff._visible = false; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); saveANDload('load'); } function reloadVars11() { initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); initPROGRESSVars(); } _root.ball_bounce_1 = new Sound(); _root.ball_bounce_1.attachSound('ball_bounce_1'); _root.ball_bounce_2 = new Sound(); _root.ball_bounce_2.attachSound('ball_bounce_2'); _root.ball_fly_1 = new Sound(); _root.ball_fly_1.attachSound('ball_fly_1'); _root.ball_fly_2 = new Sound(); _root.ball_fly_2.attachSound('ball_fly_2'); _root.balltoenemy_impact1 = new Sound(); _root.balltoenemy_impact1.attachSound('balltoenemy_impact1'); _root.balltoenemy_impact2 = new Sound(); _root.balltoenemy_impact2.attachSound('balltoenemy_impact2'); _root.impact_enemy2wall_1 = new Sound(); _root.impact_enemy2wall_1.attachSound('impact_enemy2wall_1'); _root.impact_enemy2wall_2 = new Sound(); _root.impact_enemy2wall_2.attachSound('impact_enemy2wall_2'); _root.impact_enemy2wall_3 = new Sound(); _root.impact_enemy2wall_3.attachSound('impact_enemy2wall_3'); _root.impact_enemy2wall_4 = new Sound(); _root.impact_enemy2wall_4.attachSound('impact_enemy2wall_4'); _root.impact_enemy2enemy_1 = new Sound(); _root.impact_enemy2enemy_1.attachSound('impact_enemy2enemy_1'); _root.impact_enemy2enemy_2 = new Sound(); _root.impact_enemy2enemy_2.attachSound('impact_enemy2enemy_2'); _root.impact_enemy2enemy_3 = new Sound(); _root.impact_enemy2enemy_3.attachSound('impact_enemy2enemy_3'); _root.impact_enemy2enemy_4 = new Sound(); _root.impact_enemy2enemy_4.attachSound('impact_enemy2enemy_4'); _root.impact_enemy2enemy_5 = new Sound(); _root.impact_enemy2enemy_5.attachSound('impact_enemy2enemy_5'); _root.impact_enemy2enemy_6 = new Sound(); _root.impact_enemy2enemy_6.attachSound('impact_enemy2enemy_6'); _root.impact_enemy2enemy_7 = new Sound(); _root.impact_enemy2enemy_7.attachSound('impact_enemy2enemy_7'); _root.impact_enemy2enemy_8 = new Sound(); _root.impact_enemy2enemy_8.attachSound('impact_enemy2enemy_8'); _root.impact_enemy2enemy_9 = new Sound(); _root.impact_enemy2enemy_9.attachSound('impact_enemy2enemy_9'); _root.impact_enemy2enemy_10 = new Sound(); _root.impact_enemy2enemy_10.attachSound('impact_enemy2enemy_10'); _root.impact_enemy2enemy_11 = new Sound(); _root.impact_enemy2enemy_11.attachSound('impact_enemy2enemy_11'); _root.impact_enemy2enemy_12 = new Sound(); _root.impact_enemy2enemy_12.attachSound('impact_enemy2enemy_12'); _root.impact_enemy2enemy_13 = new Sound(); _root.impact_enemy2enemy_13.attachSound('impact_enemy2enemy_13'); _root.impact_enemy2enemy_14 = new Sound(); _root.impact_enemy2enemy_14.attachSound('impact_enemy2enemy_14'); _root.impact_enemy2enemy_15 = new Sound(); _root.impact_enemy2enemy_15.attachSound('impact_enemy2enemy_15'); _root.impact_enemy2enemy_16 = new Sound(); _root.impact_enemy2enemy_16.attachSound('impact_enemy2enemy_16'); _root.Explosion_1 = new Sound(); _root.Explosion_1.attachSound('Explosion_1'); _root.Explosion_2 = new Sound(); _root.Explosion_2.attachSound('Explosion_2'); _root.Explosion_3 = new Sound(); _root.Explosion_3.attachSound('Explosion_3'); _root.Explosion_4 = new Sound(); _root.Explosion_4.attachSound('Explosion_4'); _root.Explosion_5 = new Sound(); _root.Explosion_5.attachSound('Explosion_5'); _root.Explosion_6 = new Sound(); _root.Explosion_6.attachSound('Explosion_6'); _root.Explosion_7 = new Sound(); _root.Explosion_7.attachSound('Explosion_7'); _root.snd_dimshiftin = new Sound(); _root.snd_dimshiftin.attachSound('dimshiftin'); _root.snd_dimshiftout = new Sound(); _root.snd_dimshiftout.attachSound('dimshiftout'); _root.impact_enemy2wall_1 = new Sound(); _root.impact_enemy2wall_1.attachSound('impact_enemy2wall_1'); _root.impact_enemy2wall_2 = new Sound(); _root.impact_enemy2wall_2.attachSound('impact_enemy2wall_2'); _root.impact_enemy2wall_3 = new Sound(); _root.impact_enemy2wall_3.attachSound('impact_enemy2wall_3'); _root.impact_enemy2wall_4 = new Sound(); _root.impact_enemy2wall_4.attachSound('impact_enemy2wall_4'); _root.IMPACT_singularity = new Sound(); _root.IMPACT_singularity.attachSound('IMPACT_singularity'); _root.tankshot_1 = new Sound(); _root.tankshot_1.attachSound('tankshot'); _root.tankshot_2 = new Sound(); _root.tankshot_2.attachSound('tankshot2'); _root.enemyTankShot1_2 = new Sound(); _root.enemyTankShot1_2.attachSound('enemyTankShot1_2'); _root.enemyTankShot1_1 = new Sound(); _root.enemyTankShot1_1.attachSound('enemyTankShot1_1'); _root.enemyTankShot2 = new Sound(); _root.enemyTankShot2.attachSound('enemy_tank_shot_3'); _root.enemyShotSnd_9 = new Sound(); _root.enemyShotSnd_9.attachSound('enemy_tank_shot_9'); _root.enemyShotSnd_26 = new Sound(); _root.enemyShotSnd_26.attachSound('enemy_tank_shot_26'); _root.enemyShotSnd_30 = new Sound(); _root.enemyShotSnd_30.attachSound('enemy_tank_shot_30'); _root.bullet_hit_1 = new Sound(); _root.bullet_hit_1.attachSound('bullet_hit_1'); _root.ballcaught_snd = new Sound(); _root.ballcaught_snd.attachSound('ballcaught'); _root.deploy_snd = new Sound(); _root.deploy_snd.attachSound('deploy'); _root.minesthrow = new Sound(); _root.minesthrow.attachSound('throwout.wav'); _root.error_snd_1 = new Sound(); _root.error_snd_1.attachSound('error_snd_1'); _root.plasmahit_1 = new Sound(); _root.plasmahit_1.attachSound('plasmahit_1'); _root.plasmahit_2 = new Sound(); _root.plasmahit_2.attachSound('plasmahit_2'); _root.plasmahit_3 = new Sound(); _root.plasmahit_3.attachSound('plasmahit_3'); _root.turret_shot_1 = new Sound(); _root.turret_shot_1.attachSound('turret_shot_1'); _root.pause_snd = new Sound(); _root.pause_snd.attachSound('pause_snd'); _root.overdrive_snd = new Sound(); _root.overdrive_snd.attachSound('overdrive_get'); _root.sound = new Sound(); var game_music_shell = this.createEmptyMovieClip(_root, 161000); _root.game_music_shell.menu_loop = new Sound(); _root.game_music_shell.menu_loop.attachSound('menu_loop'); _root.worldmap_loop = new Sound(); _root.worldmap_loop.attachSound('worldmap_wav'); _root.sound = new Sound(); onEnterFrame = function () { if (_root.play_menu_music eq 1) { DOmenuMusic(); } _root.sound.setVolume(_root.overall_volume); gotoAndStop(15); kursorIntegrity(); Mouse.hide(); if (_root.game_functions_activated != 0) { if (doMissionCalculation eq 1) { endMissionCalculation(); } levelingUP(); upgradesIntegrity(); wordlmapIntegrity(); spclWpnMenuIntegrity(); ballProjectileMenuIntegrity(); indicatorsIntegrity(); upperPannel_integrity(); upgradesMenuIntegrity(); if (_root.yiff_paused != 1 and _root.game_on_hold != 1) { loopmusic(); gameplayFunctions(); } if (_root.theBannerCore._visible eq true) { if (!_root.missionFInished_menu and !_root.missionFailed_menu) { _root.theBannerCore.UnloadBanner(); removeMovieClip(_root.zaglushka); } } } }; onMouseDown = function () { mouse_is_down = 1; if (_root.mouse_over_powerup eq 1) { return undefined; } if (_root.cursor_wpn_selected != 0) { spawnMarker(_root.cursor_wpn_selected); _root.cursor_wpn_selected = 0; } if (_root.yiff_paused eq 1 or _root.kursorisinmenu eq 1) { return undefined; } if (_root.gun_delay_1 != 1 and _root.kursorisinmenu != 1) { if (_root.yiff.playerTank.what eq 'SiegeTank') { tankShooting_1(); } } }; onMouseUp = function () { _root.ingame_menu.showinfo = ''; mouse_is_down = 0; if (_root.yiff_paused eq 1) { return undefined; } if (chosenball.charged eq 1 and _root.yiff.playerTank.what eq 'GravityLauncher') { tankShooting_2(); } chosenball.purpose = 'none'; chosenball = 'none'; chosenball.charged = 0; }; initBaseVars_0(); initBaseVars_1(); initBaseVars_2(); initBaseVars_3(); initBaseVars_enemyANDturrets(); _root.attachMovie('kursor', 'kursor', _root.kursor_depth); initPROGRESSVars(); _root.SANDBOXenemies_max = 8; _root.sandbox_attackDirection = 3; _root.SAND_invul = 0; _root.SAND_instantReload = 0; _root.SAND_MaxLVL = 0; _root.SAND_instantReload = 0; _root.SAND_ALLmaxedUP = 0; i = 1; while (i < 41) { _root['sandyiff_unit_online_' + i] = 0; ++i; } spawnMainMenu(); } frame 3 { stopAllSounds(); } frame 4 { stopAllSounds(); } frame 5 { stopAllSounds(); } instance singularity2_source of movieClip 2045 singularity { onClipEvent (enterFrame) { if (go eq 1) { play(); if (_root.game_on_hold eq 1) { removeMovieClip(this); } } else { gotoAndStop(1); } } } instance of movieClip 2302 { onClipEvent (load) { if (_root.yiff.playerTank.what eq 'GravityLauncher') { _visible = false; } } } frame 7 { stopAllSounds(); } frame 8 { stopAllSounds(); } frame 10 { stopAllSounds(); } frame 12 { stopAllSounds(); } } frame 26 { stopAllSounds(); } frame 27 { gotoAndPlay(13); }




http://swfchan.com/18/89246/info.shtml
Created: 29/3 -2019 02:25:44 Last modified: 29/3 -2019 02:25:44 Server time: 26/04 -2024 22:16:10