Frame 1
ifFrameLoaded (4) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 3
stop();
if (quality_is_set != 1337) {
quality_is_set = 1337;
_root.global_quality = 3;
}
timeA = 0;
median_fps_sum = 0;
median_fps_mod = 5;
median_fps_count = 0;
median_fps_sum2 = 0;
median_fps_mod2 = 25;
median_fps_count2 = 0;
onEnterFrame = function () {
timeB = getTimer();
var _local3 = Math.floor(1000 / (this.timeB - this.timeA));
timeA = timeB;
if (median_fps_count < median_fps_mod) {
median_fps_count++;
median_fps_sum = median_fps_sum + _local3;
} 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 = median_fps_sum2 + _local3;
} else {
this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2);
this.median_fps_sum2 = 0;
this.median_fps_count2 = 0;
}
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
};
Frame 4
gotoAndPlay ("INTROZ");
Frame 5
stop();
Frame 6
if (quality_is_set != 1337) {
quality_is_set = 1337;
_root.global_quality = 3;
}
stop();
timeA = 0;
median_fps_sum = 0;
median_fps_mod = 5;
median_fps_count = 0;
median_fps_sum2 = 0;
median_fps_mod2 = 25;
median_fps_count2 = 0;
onEnterFrame = function () {
timeB = getTimer();
var _local3 = Math.floor(1000 / (this.timeB - this.timeA));
timeA = timeB;
if (median_fps_count < median_fps_mod) {
median_fps_count++;
median_fps_sum = median_fps_sum + _local3;
} 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 = median_fps_sum2 + _local3;
} else {
this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2);
this.median_fps_sum2 = 0;
this.median_fps_count2 = 0;
}
if (_root.all_sound_off eq 1) {
sound = new Sound();
sound.setVolume(0);
} else {
sound = new Sound();
sound.setVolume(100);
}
};
stop();
Instance of Symbol 1685 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (((_root.kursor eq 11) or (_root.kursor eq 6)) or (_root.kursor eq 12)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1728 MovieClip in Frame 6
onClipEvent (enterFrame) {
cacheAsBitmap = true;
}
Instance of Symbol 2365 MovieClip "ingame_menu" in Frame 6
onClipEvent (enterFrame) {
if (_root.levelupmenu_opened eq 1) {
gotoAndPlay (6);
}
}
Instance of Symbol 2490 MovieClip in Frame 6
onClipEvent (enterFrame) {
if ((_root.game_on_hold eq 1) or (_root.game_modo != 10)) {
_visible = false;
} else {
_visible = true;
}
}
Frame 7
if (_root.loading_modo eq 1) {
prevFrame();
_root.loading_modo = 0;
} else if (_root.gotomenu eq 1) {
_root.gotomenu = 0;
gotoAndStop ("1");
} else if (_root.retrygame eq 1) {
prevFrame();
_root.retrygame = 0;
}
stopAllSounds();
Frame 8
_root.stopthefuckingmusic = 0;
if (quality_is_set != 1337) {
quality_is_set = 1337;
_root.global_quality = 3;
}
stop();
Mouse.show();
timeA = 0;
median_fps_sum = 0;
median_fps_mod = 5;
median_fps_count = 0;
median_fps_sum2 = 0;
median_fps_mod2 = 25;
median_fps_count2 = 0;
onEnterFrame = function () {
timeB = getTimer();
var _local2 = Math.floor(1000 / (this.timeB - this.timeA));
timeA = timeB;
if (median_fps_count < median_fps_mod) {
median_fps_count++;
median_fps_sum = median_fps_sum + _local2;
} 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 = median_fps_sum2 + _local2;
} else {
this.current_fps2 = Math.floor(median_fps_sum2 / this.median_fps_count2);
this.median_fps_sum2 = 0;
this.median_fps_count2 = 0;
}
};
Instance of Symbol 3029 MovieClip in Frame 8
onClipEvent (enterFrame) {
cacheAsBitmap = true;
}
Frame 9
gotoAndPlay ("start");
Frame 63
gotoAndStop ("mainmenu1");
Frame 64
startDrag ("_root.kursor", true);
Mouse.hide();
Frame 65
stop();
Frame 66
stop();
Frame 67
stop();
Instance of Symbol 3160 MovieClip in Frame 67
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 68
gotoAndPlay (10);
Symbol 6 MovieClip Frame 2
loading = _root.getBytesLoaded() / 350000;
if (loading < 1) {
procent = loading;
} else {
procent = 1;
}
if (longcatisloooo0006ng != "wryyyyyyyy") {
longcatisloooo0006ng = "wryyyyyyyy";
dlinna = bar._width;
}
bar._width = dlinna * procent;
Symbol 9 MovieClip Frame 16
stop();
Symbol 35 MovieClip Frame 115
gotoAndPlay (21);
Symbol 36 MovieClip Frame 28
stop();
Symbol 3161 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 21
stop();
Symbol 44 MovieClip Frame 1
radius = 364;
mass = 1000000000 /* 0x3B9ACA00 */;
xspeed = 0;
yspeed = 0;
xpos = _x;
ypos = _y;
tempx = xpos;
tempy = ypos;
Symbol 49 MovieClip Frame 14
removeMovieClip(this);
Symbol 57 MovieClip Frame 1
if (_name eq "cannonballdeath_source") {
gotoAndStop (30);
_visible = false;
}
Symbol 57 MovieClip Frame 26
removeMovieClip(this);
Symbol 76 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
if (_name != "bounceball_source") {
if (_root.shleifcount > 100) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
duplicateMovieClip (_root.game.shleif_red, "shleif" + _root.shleifcount, _root.shleifcount + 0);
_root.game["shleif" + _root.shleifcount]._x = _x;
_root.game["shleif" + _root.shleifcount]._y = _y;
}
if (_name != "bounceball_source") {
if (yiffiness != 1337) {
yiffiness = 1337;
radius = sizer._width / 2;
mass = 1000;
deathtimer = 0;
xspeed = -5 + random(15);
yspeed = -5 + random(16);
xpos = _x;
ypos = _y;
}
}
if (_root.speeeedemup eq 1) {
xspeed = xspeed * 1.03;
yspeed = yspeed * 1.03;
} else if (_root.deathtoaaaaallllll eq 1) {
xspeed = xspeed * 0.8;
yspeed = yspeed * 0.8;
} else {
if ((Math.abs(xspeed) > 50) or (Math.abs(yspeed) > 50)) {
xspeed = xspeed * 0.5;
yspeed = yspeed * 0.5;
}
if ((Math.abs(xspeed) > 10) or (Math.abs(yspeed) > 10)) {
xspeed = xspeed * 0.8;
yspeed = yspeed * 0.8;
}
}
if ((Math.abs(xspeed) < 1) and (Math.abs(yspeed) < 1)) {
deathtimer++;
trace(xspeed);
if (deathtimer > 5) {
death = 1;
}
} else {
deathtimer = 0;
}
Instance of Symbol 69 MovieClip in Symbol 79 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 78 MovieClip "sizer" in Symbol 79 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 79 MovieClip Frame 2
if (_name != "bounceball_source") {
gotoAndPlay (1);
}
if (random(3000) eq 1) {
death = 1;
}
Symbol 79 MovieClip Frame 3
stop();
_visible = false;
Instance of Symbol 85 MovieClip in Symbol 86 MovieClip Frame 1
onClipEvent (enterFrame) {
zagrujeno = Math.floor(_root.PercentLoaded) + "%";
}
Instance of Symbol 90 MovieClip "bytesloaded" in Symbol 91 MovieClip Frame 1
onClipEvent (enterFrame) {
zagrujeno = _root.getBytesLoaded();
total = _root.getBytesTotal();
}
Symbol 94 Button
on (press) {
_root.done_loading_gotomenu = 1;
}
Symbol 104 Button
on (release) {
_root.play();
}
Symbol 126 MovieClip Frame 1
if (setdsf != "yiff") {
setdsf = "yiff";
radius = 90;
mass = 10000;
xspeed = 0;
yspeed = 0;
xpos = _x;
ypos = _y;
tempx = xpos;
tempy = ypos;
}
Instance of Symbol 95 MovieClip in Symbol 126 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.PercentLoaded eq 100) or (_root.PercentLoaded > 100)) {
if (_root.done_loading_gotomenu eq 1) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 97 MovieClip in Symbol 126 MovieClip Frame 1
/* no clip actions */
Symbol 126 MovieClip Frame 2
if (_root.done_loading_gotomenu != 1) {
gotoAndPlay (1);
}
Symbol 126 MovieClip Frame 4
_root.statsatsar.play();
Symbol 126 MovieClip Frame 55
stop();
_root.play();
Symbol 127 MovieClip Frame 1
stop();
if (yiff != 1111) {
yiff = 1111;
_root.repspspawn_timer = 0;
_root.sparklecount = 0;
_root.shleifcount = 0;
_root.nukecount = 0;
_root.bounceball_maxcount = 5;
change_course_timer = 0;
}
function ZashitaOtVipadeniya(enemy_1) {
x_dist2 = Math.abs(_root.game[enemy_1]._x - _root.game.ball2._x);
y_dist2 = Math.abs(_root.game[enemy_1]._y - _root.game.ball2._y);
diste2 = Math.sqrt((x_dist2 * x_dist2) + (y_dist2 * y_dist2));
if (((diste1 < (Rr1 - 3)) or (diste2 > (_root.game.ball2.radius + 10))) or (_root.game[enemy_1].death eq 1)) {
if (_root.nukecount > 100) {
_root.nukecount = 0;
} else {
_root.nukecount++;
}
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game[enemy_1]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game[enemy_1]._y;
removeMovieClip(_root.game[enemy_1]);
}
}
function ZashitaOtSkleivaniya(enemy_1, enemy_2) {
x_dist = Math.abs(_root.game[enemy_1]._x - _root.game[enemy_2]._x);
y_dist = Math.abs(_root.game[enemy_1]._y - _root.game[enemy_2]._y);
diste = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
x_dist2 = Math.abs(_root.game[enemy_1]._x - _root.game.ball1._x);
y_dist2 = Math.abs(_root.game[enemy_1]._y - _root.game.ball1._y);
diste2 = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr2 = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
if (diste < Rr) {
if (enemy_2 eq "loader_ball") {
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game[enemy_1]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game[enemy_1]._y;
removeMovieClip(_root.game[enemy_1]);
} else {
_root.game[enemy_1].xspeed = _root.game[enemy_1].xspeed * 2;
_root.game[enemy_1].yspeed = _root.game[enemy_1].yspeed * 2;
_root.game[enemy_2].xspeed = _root.game[enemy_2].xspeed * 2;
_root.game[enemy_2].yspeed = _root.game[enemy_2].yspeed * 2;
}
}
}
function BlackHoleEffect2(targ, iks, igrik) {
blackhole_mass = 20;
blackhole_power_max = -100;
x1 = _root.game[targ]._x;
y1 = _root.game[targ]._y;
x2 = iks;
y2 = igrik;
var _local6 = x1 - x2;
var _local8 = y1 - y2;
var _local5 = Math.sqrt((_local6 * _local6) + (_local8 * _local8));
if (_local5 < 100) {
blackhole_power = 0;
blackhole_mass = 0;
blackhole_power_max = 0;
} else if (_local5 < 500) {
blackhole_power = (blackhole_power_max / 1000) * _local5;
} else {
blackhole_power = ((blackhole_power_max / 1000) * 3) * _local5;
}
var _local7 = _root.game[targ].mass;
var _local9 = blackhole_mass;
var _local17 = _root.game[targ].xspeed;
var _local19 = _root.game[targ].yspeed;
var _local13 = Math.atan2(_local8, _local6);
var _local3 = Math.cos(_local13);
var _local2 = Math.sin(_local13);
var _local14 = (_local17 * _local3) + (_local19 * _local2);
var _local11 = blackhole_power;
var _local12 = (_local19 * _local3) - (_local17 * _local2);
var _local10 = 0.0001;
var _local18 = (_local7 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local7 * _local20)) / (_local7 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local3) - (_local12 * _local2);
var _local21 = (_local11 * _local3) - (_local10 * _local2);
_local19 = (_local12 * _local3) + (_local14 * _local2);
var _local22 = (_local10 * _local3) + (_local11 * _local2);
_root.game[targ].xspeed = _local17;
_root.game[targ].yspeed = _local19;
}
function ball2BallReaction(b1, b2, x1, x2, y1, y2, time) {
var _local6 = _root.game[b1].mass;
var _local9 = _root.game[b2].mass;
var _local20 = _root.game[b1].xspeed;
var _local19 = _root.game[b2].xspeed;
var _local31 = _root.game[b1].xspeed;
var _local32 = _root.game[b2].xspeed;
var _local23 = _root.game[b1].yspeed;
var _local21 = _root.game[b2].yspeed;
var _local24 = x1 - x2;
var _local28 = y1 - y2;
var _local13 = Math.atan2(_local28, _local24);
var _local5 = Math.cos(_local13);
var _local4 = Math.sin(_local13);
var _local26 = x1 - x2;
var _local25 = y1 - y2;
R_2 = _root.game[b2].radius;
var _local8 = ((-Math.atan2(_local26, _local25)) / (Math.PI/180)) + 270;
collision_y3 = y2 - (R_2 * Math.sin(_local8 * (Math.PI/180)));
collision_x3 = x2 - (R_2 * Math.cos(_local8 * (Math.PI/180)));
GenerateSparkles(collision_x3, collision_y3);
collisionEffect(collision_x3, collision_y3);
var _local14 = (_local20 * _local5) + (_local23 * _local4);
var _local11 = (_local19 * _local5) + (_local21 * _local4);
var _local12 = (_local23 * _local5) - (_local20 * _local4);
var _local10 = (_local21 * _local5) - (_local19 * _local4);
var _local22 = (_local6 * _local14) + (_local9 * _local11);
var _local27 = _local14 - _local11;
var _local15 = (_local22 + (_local6 * _local27)) / (_local6 + _local9);
var _local18 = (_local15 - _local14) + _local11;
_local14 = _local18;
_local11 = _local15;
_root.game[b1].vspishka.play();
_root.game[b2].vspishka.play();
_local20 = (_local14 * _local5) - (_local12 * _local4);
_local19 = (_local11 * _local5) - (_local10 * _local4);
_local23 = (_local12 * _local5) + (_local14 * _local4);
_local21 = (_local10 * _local5) + (_local11 * _local4);
_root.game[b1].tempx = _root.game[b1].xpos + ((_root.game[b1].xspeed * time) * 0.86);
_root.game[b1].tempy = _root.game[b1].ypos + ((_root.game[b1].yspeed * time) * 0.86);
_root.game[b2].tempx = _root.game[b2].xpos + ((_root.game[b2].xspeed * time) * 0.86);
_root.game[b2].tempy = _root.game[b2].ypos + ((_root.game[b2].yspeed * time) * 0.86);
_root.game[b1].xspeed = _local20;
_root.game[b2].xspeed = _local19;
_root.game[b1].yspeed = _local23;
_root.game[b2].yspeed = _local21;
}
function ballToBallDetection(b1, b2) {
var _local7 = _root.game[b1].xspeed;
var _local9 = _root.game[b1].yspeed;
var _local6 = _root.game[b2].xspeed;
var _local8 = _root.game[b2].yspeed;
var _local5 = _root.game[b1].xpos;
var _local3 = _root.game[b1].ypos;
var _local4 = _root.game[b2].xpos;
var _local2 = _root.game[b2].ypos;
var _local16 = _root.game[b1].radius + _root.game[b2].radius;
var _local22 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local21 = ((((-2 * _local5) * _local6) - ((2 * _local4) * _local7)) + ((2 * _local5) * _local7)) + ((2 * _local4) * _local6);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local18 = ((((-2 * _local3) * _local8) - ((2 * _local2) * _local9)) + ((2 * _local3) * _local9)) + ((2 * _local2) * _local8);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local12 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local12 * _local12) - ((4 * _local15) * _local25));
var _local14 = ((-_local12) + _local17) / (2 * _local15);
var _local13 = ((-_local12) - _local17) / (2 * _local15);
if ((_local14 > 0) && (_local14 <= 1)) {
var _local23 = _local14;
var _local24 = true;
}
if ((_local13 > 0) && (_local13 <= 1)) {
if ((_local23 == null) || (_local13 < _local14)) {
var _local23 = _local13;
var _local24 = true;
}
}
if (_local24) {
ball2BallReaction(b1, b2, _local5, _local4, _local3, _local2, _local23);
}
}
function moveBounceBalls() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
var _local3 = _root.game["bounceball_" + _local2];
_local3.tempx = _local3.xpos + _local3.xspeed;
_local3.tempy = _local3.ypos + _local3.yspeed;
}
_local2++;
}
var _local3 = _root.game.loader_ball;
_local3.tempx = _local3.xpos + _local3.xspeed;
_local3.tempy = _local3.ypos + _local3.yspeed;
}
function renderBounceBalls() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
var _local3 = _root.game["bounceball_" + _local2];
_local3.xpos = _local3.tempx;
_local3.ypos = _local3.tempy;
_local3._x = _local3.xpos;
_local3._y = _local3.ypos;
}
_local2++;
}
var _local3 = _root.game.loader_ball;
_local3.xpos = _local3.tempx;
_local3.ypos = _local3.tempy;
_local3._x = _local3.xpos;
_local3._y = _local3.ypos;
}
function BlackHoleEffect(targ, iks, igrik) {
blackhole_mass = 1;
blackhole_power_max = -80;
blackhole_power_min = -5;
x1 = _root.game[targ]._x;
y1 = _root.game[targ]._y;
x2 = iks;
y2 = igrik;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local22 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
blackhole_power = blackhole_power_min + blackhole_power_max;
var _local6 = _root.game[targ].mass;
var _local8 = blackhole_mass;
var _local16 = _root.game[targ].xspeed;
var _local18 = _root.game[targ].yspeed;
var _local12 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local12);
var _local2 = Math.sin(_local12);
var _local13 = (_local16 * _local3) + (_local18 * _local2);
var _local10 = blackhole_power;
var _local11 = (_local18 * _local3) - (_local16 * _local2);
var _local9 = 0.0001;
var _local17 = (_local6 * _local13) + (_local8 * _local10);
var _local19 = _local13 - _local10;
var _local14 = (_local17 + (_local6 * _local19)) / (_local6 + _local8);
var _local15 = (_local14 - _local13) + _local10;
_local13 = _local15;
_local10 = _local14;
_local16 = (_local13 * _local3) - (_local11 * _local2);
var _local20 = (_local10 * _local3) - (_local9 * _local2);
_local18 = (_local11 * _local3) + (_local13 * _local2);
var _local21 = (_local9 * _local3) + (_local10 * _local2);
_root.game[targ].xspeed = _local16;
_root.game[targ].yspeed = _local18;
}
onEnterFrame = function () {
if (_root.done_loading_gotomenu eq 1) {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
if (_root.nukecount > 100) {
_root.nukecount = 0;
} else {
_root.nukecount++;
}
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game["bounceball_" + _local3]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game["bounceball_" + _local3]._y;
removeMovieClip(_root.game["bounceball_" + _local3]);
}
_local3++;
}
}
change_course_timer++;
if ((change_course_timer / 30) > 10) {
change_course_timer = 0;
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
if (random(2) eq 1) {
_root.game["bounceball_" + _local3].xspeed = -random(10);
} else {
_root.game["bounceball_" + _local3].xspeed = random(10);
}
if (random(2) eq 1) {
_root.game["bounceball_" + _local3].yspeed = -random(10);
} else {
_root.game["bounceball_" + _local3].yspeed = random(10);
}
}
_local3++;
}
}
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
ZashitaOtVipadeniya("bounceball_" + _local3);
}
_local3++;
}
if (_root.dotheblackholeyiff eq 1) {
_local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
_root.game.BlackHoleEffect("bounceball_" + _local3, _root.game._xmouse, _root.game._ymouse);
}
_local3++;
}
}
if (_root.done_loading_gotomenu != 1) {
moveBounceBalls();
}
_local3 = 0;
while (_local3 < 3) {
if (_root.game["ball" + _local3]) {
j = 0;
while (j < 20) {
if (_root.game["bounceball_" + j]) {
ballToBallDetection("ball" + _local3, "bounceball_" + j);
}
j++;
}
}
_local3++;
}
_local3 = _root.bounceball_maxcount + 1;
while (_local3-- , _local3 + 1) {
var _local4 = "bounceball_" + _local3;
var j = _local3;
while ((--j) + 1) {
var _local2 = "bounceball_" + j;
if (_root.game["bounceball_" + j] and _root.game["bounceball_" + _local3]) {
ballToBallDetection(_local4, _local2);
ZashitaOtSkleivaniya(_local4, _local2);
}
}
}
BlackHoleEffect2("loader_ball", 2, -50);
_local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
ballToBallDetection("bounceball_" + _local3, "loader_ball");
ZashitaOtSkleivaniya("bounceball_" + _local3, "loader_ball");
}
_local3++;
}
if (_root.done_loading_gotomenu != 1) {
renderBounceBalls();
}
if (_root.done_loading_gotomenu != 1) {
_root.repspspawn_timer++;
if (_root.repspspawn_timer > 25) {
_root.repspspawn_timer = 0;
var _local5 = 0;
while (_local5 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local5]) {
} else {
respawn = 1;
_root.numberi = _local5;
break;
}
_local5++;
}
if (respawn eq 1) {
respawn = 0;
a = random(3);
if (a eq 0) {
xplace = -211;
yplace = 110;
} else if (a eq 1) {
xplace = 243;
yplace = 33;
} else if (a eq 2) {
xplace = 5;
yplace = -325;
}
duplicateMovieClip (_root.game.bounceball_source, "bounceball_" + _root.numberi, 5000 + _root.numberi);
_root.game["bounceball_" + _root.numberi]._x = xplace;
_root.game["bounceball_" + _root.numberi]._y = yplace;
}
}
}
};
Instance of Symbol 44 MovieClip "ball2" in Symbol 127 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 49 MovieClip "shleif_red" in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_red") {
gotoAndStop (25);
}
}
Instance of Symbol 131 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 137 MovieClip Frame 2
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip Frame 3
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);
}
}
Symbol 137 MovieClip Frame 4
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 139 MovieClip 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";
}
Symbol 142 Button
on (keyPress "Q") {
gotoAndPlay (2);
if (_root.global_quality < 4) {
_root.global_quality = _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 = _root.global_quality + 1;
} else if (_root.global_quality eq 4) {
_root.global_quality = 1;
}
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
_root.show_quality.play_ = 1;
Symbol 143 MovieClip Frame 35
_root.show_quality.play_ = 0;
Symbol 160 MovieClip Frame 1
current_fps = _root.current_fps;
current_fps2 = _root.current_fps2;
Symbol 174 Button
on (release) {
_root.preloaderinfothingie.play();
}
Symbol 181 Button
on (press) {
_root.done_loading_gotomenu = 1;
}
Symbol 187 Button
on (release) {
getURL ("http://dz2001.newgrounds.com/", "_blank");
}
Symbol 193 Button
on (release) {
getURL ("http://requie.deviantart.com/", "_blank");
}
Symbol 200 Button
on (release) {
gotoAndStop (2);
}
Symbol 205 Button
on (release) {
gotoAndStop (3);
}
Symbol 210 Button
on (release) {
gotoAndStop (4);
}
Symbol 215 Button
on (release) {
gotoAndStop (5);
}
Symbol 224 Button
on (release) {
nextFrame();
}
Symbol 238 Button
on (release) {
prevFrame();
}
Symbol 243 Button
on (release) {
getURL ("http://armorgames.com/download/mmm-ultimate.html", "_blank");
}
Symbol 270 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.PercentLoaded eq 100) or (_root.PercentLoaded > 100)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 301 MovieClip Frame 1
if (aa != 45) {
aa = 45;
stop();
}
Symbol 312 Button
on (release) {
play();
}
on (rollOver, dragOver) {
kr.play();
}
on (rollOut, dragOut) {
kr.stop();
}
Symbol 313 MovieClip Frame 13
stop();
onEnterFrame = function () {
if (_root.done_loading_gotomenu eq 1) {
play();
}
};
Symbol 313 MovieClip Frame 63
stop();
Symbol 313 MovieClip Frame 70
if (_root.done_loading_gotomenu != 1) {
gotoAndPlay (1);
}
Symbol 324 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 331 MovieClip Frame 1
stop();
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.launcher_location eq 1) {
gotoAndStop (1);
} else if (_root.launcher_location eq 2) {
gotoAndStop (2);
} else if (_root.launcher_location eq 3) {
gotoAndStop (3);
}
}
Symbol 348 MovieClip Frame 15
stop();
Symbol 376 MovieClip Frame 20
stop();
Symbol 438 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 43
var i = 0;
while (i < _root.max_enemies) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _root.game.center._x, _root.game.center._y, 4);
}
i++;
}
Symbol 438 MovieClip Frame 101
stop();
_root.death_animation_ended = 1;
Symbol 470 MovieClip Frame 14
stop();
Instance of Symbol 480 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_animation_off eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 483 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 19
ball_ready = 1;
Symbol 493 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 1
if (_root.limit_unstable_zone != 1) {
unstablezone._visible = true;
} else {
unstablezone._visible = false;
}
Symbol 510 MovieClip Frame 32
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
if (agggggrrh != "yiff") {
agggggrrh = "yiff";
barwidthmax = bar._width;
}
Symbol 546 MovieClip Frame 2
bar._width = barwidthmax * (hp / max);
Symbol 635 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 659 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 1
stop();
Instance of Symbol 533 MovieClip "skin_" in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 549 MovieClip "skin_" in Symbol 683 MovieClip Frame 2
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 554 MovieClip "skin_" in Symbol 683 MovieClip Frame 3
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 572 MovieClip "skin_" in Symbol 683 MovieClip Frame 4
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 578 MovieClip "skin_" in Symbol 683 MovieClip Frame 5
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 583 MovieClip "skin_" in Symbol 683 MovieClip Frame 6
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 591 MovieClip "skin_" in Symbol 683 MovieClip Frame 7
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 594 MovieClip "skin_" in Symbol 683 MovieClip Frame 8
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 598 MovieClip "skin_" in Symbol 683 MovieClip Frame 9
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 601 MovieClip "skin_" in Symbol 683 MovieClip Frame 10
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 604 MovieClip "skin_" in Symbol 683 MovieClip Frame 11
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 607 MovieClip "skin_" in Symbol 683 MovieClip Frame 12
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 610 MovieClip "skin_" in Symbol 683 MovieClip Frame 13
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 614 MovieClip "skin_" in Symbol 683 MovieClip Frame 14
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 618 MovieClip "skin_" in Symbol 683 MovieClip Frame 15
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 622 MovieClip "skin_" in Symbol 683 MovieClip Frame 16
onClipEvent (load) {
if (birth eq "righty") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 16
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 17
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 18
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 546 MovieClip "health_bar" in Symbol 683 MovieClip Frame 21
onClipEvent (load) {
_visible = false;
}
Symbol 685 Button
on (press) {
if (unit_chosen eq 16) {
if ((_root.kursor eq 12) or (_root.kursor eq 6)) {
the_core.repel.play();
}
} else {
if (_root.kursor eq 12) {
hacked = 1;
_root.kursor = 1;
_root.hacking_snd.start();
the_core.ballhitanim.play();
_root.hacking_timeout = _root.hacking_loading_time;
}
if (_root.kursor eq 6) {
startdragthis = 1;
_root.kursor = 7;
}
the_core.health_bar._visible = false;
}
}
on (release, releaseOutside) {
if (startdragthis eq 1) {
startdragthis = 0;
_root.kursor = 1;
}
the_core.health_bar._visible = false;
}
on (rollOver, dragOver) {
the_core.health_bar._visible = true;
}
on (rollOut, dragOut) {
the_core.health_bar._visible = false;
}
Symbol 686 MovieClip Frame 1
if (_name eq "enemy") {
gotoAndStop (3);
}
if (_name != "enemy") {
if ((allset != 1) and (gooo eq 1)) {
allset = 1;
if (birth eq "righty") {
_rotation = 180;
}
hacked = 0;
hacked_timer = 0;
being_thrown = 0;
being_thrown_timer = 0;
the_core.health_bar._visible = false;
speed_k = 0.94;
if (unit_chosen eq 0) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
the_core.gotoAndStop(2);
mass = 35;
size = "small";
power = 1;
hp = _root.small_tank_hp;
} else if (unit_chosen eq 1) {
exp_points = 2;
var score = 100;
speed_k = 0.96;
the_core.gotoAndStop(1);
mass = 50;
size = "medium";
power = 2;
hp = _root.lazer_tank_hp;
} else if (unit_chosen eq 2) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
the_core.gotoAndStop(3);
mass = 25;
size = "small";
power = 1;
hp = _root.hover_tank_hp;
} else if (unit_chosen eq 3) {
if (second_modification eq 1) {
exp_points = 6;
var score = 700;
speed_k = 0.89;
_root.trace_mammoth = _name;
the_core.gotoAndStop(14);
mass = 750;
size = "hueg";
power = 5;
hp = _root.mammoth_tank2_hp;
} else {
exp_points = 5;
var score = 500;
speed_k = 0.89;
_root.trace_mammoth = _name;
the_core.gotoAndStop(4);
mass = 550;
size = "hueg";
power = 5;
hp = _root.mammoth_tank_hp;
}
} else if (unit_chosen eq 4) {
exp_points = 3;
var score = 100;
_root.heavy_tank_count++;
the_core.gotoAndStop(5);
mass = 170;
size = "big";
power = 3;
hp = _root.heavy_tank_hp;
} else if (unit_chosen eq 5) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
the_core.gotoAndStop(6);
mass = 20;
size = "small";
power = 1;
hp = _root.railgrav_tank_hp;
} else if (unit_chosen eq 6) {
exp_points = 3;
var score = 200;
the_core.gotoAndStop(7);
mass = 150;
size = "big";
power = 3;
hp = _root.nuketruck_hp;
} else if (unit_chosen eq 7) {
exp_points = 1;
var score = 60;
speed_k = 0.96;
the_core.gotoAndStop(8);
mass = 25;
size = "small";
power = 1;
hp = _root.mech1_hp;
} else if (unit_chosen eq 8) {
exp_points = 2;
var score = 110;
the_core.gotoAndStop(9);
mass = 90;
size = "big";
power = 3;
hp = _root.black_tank_hp;
} else if (unit_chosen eq 9) {
exp_points = 3;
var score = 130;
the_core.gotoAndStop(10);
mass = 130;
size = "big";
power = 3;
hp = _root.mech2_hp;
} else if (unit_chosen eq 10) {
exp_points = 3;
var score = 110;
the_core.gotoAndStop(11);
mass = 130;
size = "big";
power = 3;
hp = _root.sciencevessel_hp;
} else if (unit_chosen eq 11) {
exp_points = 1;
var score = 40;
speed_k = 0.96;
the_core.gotoAndStop(12);
mass = 40;
size = "medium";
power = 2;
hp = _root.kindabike_hp;
} else if (unit_chosen eq 12) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
the_core.gotoAndStop(13);
mass = 40;
size = "medium";
power = 2;
hp = _root.kindabike2_hp;
} else if (unit_chosen eq 14) {
exp_points = 7;
var score = 800;
speed_k = 0.89;
the_core.gotoAndStop(15);
mass = 750;
size = "hueg";
power = 5;
hp = _root.clinch_tank_hp;
} else if (unit_chosen eq 15) {
exp_points = 3;
var score = 130;
the_core.gotoAndStop(16);
mass = 120;
size = "big";
power = 3;
hp = _root.smooth_tank_hp;
} else if (unit_chosen eq 16) {
exp_points = 20;
var score = 500;
the_core.gotoAndStop(17);
mass = 600;
size = "hueg";
power = 3;
hp = _root.singularity_tank_hp;
} else if (unit_chosen eq 17) {
exp_points = 3;
var score = 120;
the_core.gotoAndStop(18);
mass = 160;
size = "big";
power = 3;
hp = _root.square_tank_hp;
} else if (unit_chosen eq 18) {
exp_points = 10;
var score = 420;
the_core.gotoAndStop(19);
mass = 300;
size = "big";
power = 3;
hp = _root.dragoon_hp;
} else if (unit_chosen eq 19) {
exp_points = 8;
var score = 300;
the_core.gotoAndStop(20);
mass = 400;
size = "big";
power = 3;
hp = _root.tarakan_hp;
} else if (unit_chosen eq 20) {
exp_points = 2;
var score = 100;
speed_k = 0.96;
the_core.gotoAndStop(21);
mass = 50;
size = "medium";
power = 2;
hp = _root.spikey_hp;
} else if (unit_chosen eq 21) {
exp_points = 2;
var score = 100;
speed_k = 0.96;
the_core.gotoAndStop(22);
mass = 60;
size = "medium";
power = 2;
hp = _root.predator_hp;
}
}
if (birth eq "righty") {
xspeed_nominal = -1 * _root.enemy_speed;
} else {
xspeed_nominal = 1 * _root.enemy_speed;
}
if (dss != 1) {
temp_count = 0;
radius = _root["enemy_diameter_" + unit_chosen] / 2;
dss = 1;
damage = 0;
ydar = 0;
ydar_count = 0;
xspeed = xspeed_nominal;
yspeed = 0;
xpos = _x;
ypos = _y;
exist = 1;
}
}
if (hacked != 1) {
yspeed_nominal = 0;
if (birth eq "righty") {
xspeed_nominal = -1 * _root.enemy_speed;
} else {
xspeed_nominal = 1 * _root.enemy_speed;
}
} else {
xspeed_nominal = 0;
hacked_timer = hacked_timer + 0.0333333333333333;
if (hacked_timer > 5) {
hacked_timer = 0;
if (yspeed_nominal > 0) {
yspeed_nominal = -4;
} else {
yspeed_nominal = 4;
}
}
}
if (Math.abs(throw_yspeed) > 0.1) {
yspeed = throw_yspeed;
throw_yspeed = throw_yspeed * speed_k;
} else {
if (Math.abs(yspeed_nominal - yspeed) > 10) {
yd = 0.5;
} else if ((Math.abs(yspeed_nominal - yspeed) >= 5) and (Math.abs(yspeed_nominal - yspeed) < 10)) {
yd = 0.25;
} else if ((Math.abs(yspeed_nominal - yspeed) >= 3) and (Math.abs(yspeed_nominal - yspeed) < 5)) {
yd = 0.115;
} else if ((Math.abs(yspeed_nominal - yspeed) >= 1) and (Math.abs(yspeed_nominal - yspeed) < 3)) {
yd = 0.05;
} else if ((Math.abs(yspeed_nominal - yspeed) < 1) and (Math.abs(yspeed_nominal - yspeed) > 0)) {
yd = 0.01;
} else {
yd = 0;
}
if ((yspeed - yspeed_nominal) > 0) {
yspeed = yspeed - yd;
} else if ((yspeed - yspeed_nominal) < 0) {
yspeed = yspeed + yd;
}
}
if (Math.abs(throw_xspeed) > 0.1) {
xspeed = throw_xspeed;
throw_xspeed = throw_xspeed * speed_k;
} else {
if (Math.abs(xspeed_nominal - xspeed) > 10) {
xd = 0.5;
} else if ((Math.abs(xspeed_nominal - xspeed) >= 5) and (Math.abs(xspeed_nominal - xspeed) < 10)) {
xd = 0.25;
} else if ((Math.abs(xspeed_nominal - xspeed) >= 3) and (Math.abs(xspeed_nominal - xspeed) < 5)) {
xd = 0.115;
} else if ((Math.abs(xspeed_nominal - xspeed) >= 1) and (Math.abs(xspeed_nominal - xspeed) < 3)) {
xd = 0.05;
} else if ((Math.abs(xspeed_nominal - xspeed) < 1) and (Math.abs(xspeed_nominal - xspeed) > 0)) {
xd = 0.01;
} else {
xd = 0;
}
if ((xspeed - xspeed_nominal) > 0) {
xspeed = xspeed - xd;
} else if ((xspeed - xspeed_nominal) < 0) {
xspeed = xspeed + xd;
}
}
if (_name != "enemy") {
if (hhhhhhhhhhhhhhh != 1337) {
hhhhhhhhhhhhhhh = 1337;
rotationcount = 0;
zcount = 0;
}
rotationcount++;
if (rotationcount > 2) {
rotationcount = 0;
speedpovorota = 0.3;
var angle1 = (Math.atan2(dy, dx) * 57.2957795130823);
var dx = xspeed;
var dy = yspeed;
var angle2 = _rotation;
if (angle2 < 0) {
angle2 = angle2 + 360;
}
if (angle1 < 0) {
angle1 = angle1 + 360;
}
var a = (angle2 - angle1);
if (a > 180) {
a = a - 360;
} else if (a < -180) {
a = a + 360;
}
a = a * speedpovorota;
if (Math.abs(a) > 0.01) {
_rotation = (_rotation - a);
} else {
_rotation = angle1;
}
}
}
if (unit_chosen eq 19) {
var ai = 0;
while (ai < 6) {
if (_root.game["ball" + ai]) {
distx = _x - _root.game["ball" + ai]._x;
disty = _y - _root.game["ball" + ai]._y;
realdistance = Math.sqrt((distx * distx) + (disty * disty));
if (realdistance < 125) {
the_core.repel.play();
stopingrate = 0.91;
_root.game["ball" + ai].xspeed = _root.game["ball" + ai].xspeed * stopingrate;
_root.game["ball" + ai].yspeed = _root.game["ball" + ai].yspeed * stopingrate;
}
}
ai++;
}
}
if (_name != "enemy") {
if (birth eq "righty") {
if (_x < -450) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
_root.misses++;
_root.justgotaway = unit_chosen;
removeMovieClip(this);
}
} else if (_x > 450) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
_root.justgotaway = unit_chosen;
_root.misses++;
removeMovieClip(this);
}
}
if (damage >= hp) {
stop();
death = 1;
}
if ((death eq 1) and (_name != "enemy")) {
_root.kills_count++;
_root.kills_exp_count = _root.kills_exp_count + exp_points;
_root.score = _root.score + score;
if (_root.explosions_count > 50) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
if (unit_chosen eq 16) {
duplicateMovieClip ("_root.game.singularity_source", "singularityblow" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["singularityblow" + _root.explosions_count].go = 1;
_root.game["singularityblow" + _root.explosions_count]._x = _x;
_root.game["singularityblow" + _root.explosions_count]._y = _y;
_root.game["singularityblow" + _root.explosions_count]._rotation = random(360);
} else if ((unit_chosen eq 18) or (unit_chosen eq 19)) {
duplicateMovieClip ("_root.game.singularity3_source", "singularityblow3_" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["singularityblow3_" + _root.explosions_count].go = 1;
_root.game["singularityblow3_" + _root.explosions_count]._x = _x;
_root.game["singularityblow3_" + _root.explosions_count]._y = _y;
_root.game["singularityblow3_" + _root.explosions_count]._rotation = random(360);
} else {
if (size eq "medium") {
duplicateMovieClip ("_root.game.explosions_medium", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
} else if (size eq "small") {
duplicateMovieClip ("_root.game.explosions_small", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
} else if (size eq "big") {
if ((unit_chosen eq 6) and (random(3) eq 2)) {
power = 4;
duplicateMovieClip ("_root.game.explosions_nuke", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
} else {
duplicateMovieClip ("_root.game.explosions_big", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
}
} else if (size eq "hueg") {
duplicateMovieClip ("_root.game.explosions_hueg", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
}
_root.game["explosion" + _root.explosions_count].gotoAndPlay(random(3) + 1);
_root.game["explosion" + _root.explosions_count]._x = _x;
_root.game["explosion" + _root.explosions_count]._y = _y;
_root.game["explosion" + _root.explosions_count]._rotation = random(360);
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, power);
}
i++;
}
_root.game.ExplosionSound(power);
}
if (unit_chosen eq 3) {
true_respawn_rate = 2;
} else {
true_respawn_rate = _root.powerup_respawn_rate;
}
if (random(true_respawn_rate) eq 1) {
if (_root.powerups_count > 3) {
_root.powerups_count = 0;
} else {
_root.powerups_count++;
}
duplicateMovieClip ("_root.game.powerup_source", "powerup_" + _root.powerups_count, _root.powerups_count);
_root.game["powerup_" + _root.powerups_count]._x = _x;
_root.game["powerup_" + _root.powerups_count]._y = _y;
}
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
removeMovieClip(this);
}
if (_root.kill_all_units_nowww eq 1) {
damage = 10000000 /* 0x989680 */;
}
Symbol 686 MovieClip Frame 2
if (allset777 != "yiff") {
allset777 = "yiff";
the_core.videlenie._visible = false;
thisname = _name;
thiswidth = the_core._width;
thisheight = the_core._height;
thisdepth = this.getDepth();
the_core.skin_.birth = birth;
if (birth eq "righty") {
the_core.skin_.gotoAndStop(2);
} else {
the_core.skin_.gotoAndStop(1);
}
}
if (_y < _root.game.upper_wall._y) {
if (_x > 450) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
removeMovieClip(this);
}
damage = 1000000 /* 0x0F4240 */;
_y = _root.game.upper_wall._y;
} else if (_y > _root.game.bottom_wall._y) {
if (_x > 450) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
removeMovieClip(this);
}
damage = 1000000 /* 0x0F4240 */;
_y = _root.game.bottom_wall._y;
}
if (birth eq "righty") {
if (((_x > 600) or (removethisnow eq 1)) or (suckedintohole eq 1)) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
removeMovieClip(this);
}
} else if (((_x < -600) or (removethisnow eq 1)) or (suckedintohole eq 1)) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
removeMovieClip(this);
}
if (damage < 100000) {
if (startdragthis eq 1) {
the_core.health_bar._visible = false;
the_core.videlenie._visible = true;
if (size eq "small") {
_root.manipulator_timeout = _root.manipulator_loading_time / 2.2;
} else if (size eq "medium") {
_root.manipulator_timeout = _root.manipulator_loading_time / 1.9;
} else if (size eq "big") {
_root.manipulator_timeout = _root.manipulator_loading_time / 1.5;
if (_root.manipulator_lvl < 2) {
startdragthis = 0;
_root.call_error = 2;
_root.kursor = 1;
_root.manipulator_timeout = _root.manipulator_loading_time;
}
} else if (size eq "hueg") {
_root.manipulator_timeout = _root.manipulator_loading_time;
if (_root.manipulator_lvl < 3) {
startdragthis = 0;
_root.kursor = 1;
_root.call_error = 3;
}
}
being_thrown = 1;
being_thrown_timer = 0;
drag_x = _x;
drag_y = _y;
_x = _root.game._xmouse;
_y = _root.game._ymouse;
xpos = _x;
ypos = _y;
captured = 1;
swapDepths(50);
} else if (captured eq 1) {
the_core.videlenie._visible = false;
throwspeedmax = 20;
koefficient_broska = 0.8;
throw_xspeed = ((-drag_x) + _root.game._xmouse) * koefficient_broska;
throw_yspeed = ((-drag_y) + _root.game._ymouse) * koefficient_broska;
if (Math.abs(throw_xspeed) > throwspeedmax) {
voskilkobolshe_x = Math.abs(throw_xspeed) / throwspeedmax;
throw_xspeed = throw_xspeed * (1 / voskilkobolshe_x);
throw_yspeed = throw_yspeed * (1 / voskilkobolshe_x);
}
if (Math.abs(throw_yspeed) > throwspeedmax) {
voskilkobolshe_y = Math.abs(throw_yspeed) / throwspeedmax;
throw_yspeed = throw_yspeed * (1 / voskilkobolshe_y);
throw_xspeed = throw_xspeed * (1 / voskilkobolshe_y);
}
_name = thisname;
captured = 0;
swapDepths(thisdepth);
}
}
if ((being_thrown eq 1) and (captured eq 0)) {
being_thrown_timer++;
}
if (being_thrown_timer > 15) {
being_thrown_timer = 0;
being_thrown = 0;
}
gotoAndPlay (1);
if (ydar > 5) {
damage = 1000000 /* 0x0F4240 */;
}
ydar_count++;
if (ydar_count > 17) {
ydar_count = 0;
ydar = 0;
}
the_core.health_bar.hp = hp - damage;
the_core.health_bar.max = hp;
Instance of Symbol 691 MovieClip in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Symbol 700 MovieClip Frame 1
stop();
Symbol 708 Button
on (rollOver, dragOver) {
hp_bar._visible = true;
}
on (rollOut, dragOut, releaseOutside) {
hp_bar._visible = false;
}
Symbol 731 MovieClip Frame 1
if (_name eq "shockwave_tower_source") {
gotoAndStop (1);
_visible = false;
}
Instance of Symbol 706 MovieClip "hp_bar" in Symbol 731 MovieClip Frame 1
onClipEvent (load) {
widthmax = _width;
}
onClipEvent (enterFrame) {
_width = ((health / fullhealth) * widthmax);
}
Symbol 731 MovieClip Frame 15
if (health > 0) {
gotoAndPlay (1);
}
Symbol 731 MovieClip Frame 16
_name = ("dead_tower" + random(99999999));
Symbol 731 MovieClip Frame 45
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 5);
}
i++;
}
Symbol 731 MovieClip Frame 86
removeMovieClip(this);
Symbol 731 MovieClip Frame 87
stop();
Instance of Symbol 733 MovieClip in Symbol 734 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Symbol 735 MovieClip Frame 1
stop();
Instance of Symbol 706 MovieClip "hp_bar" in Symbol 757 MovieClip Frame 1
onClipEvent (load) {
widthmax = _width;
}
onClipEvent (enterFrame) {
_width = ((health / fullhealth) * widthmax);
}
Symbol 757 MovieClip Frame 2
if (health > 0) {
gotoAndPlay (1);
}
Symbol 757 MovieClip Frame 3
_name = ("dead_tower" + random(99999999));
Symbol 757 MovieClip Frame 32
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 5);
}
i++;
}
Symbol 757 MovieClip Frame 73
removeMovieClip(this);
Symbol 757 MovieClip Frame 74
stop();
Symbol 760 MovieClip Frame 1
stop();
Instance of Symbol 706 MovieClip "hp_bar" in Symbol 776 MovieClip Frame 1
onClipEvent (load) {
widthmax = _width;
}
onClipEvent (enterFrame) {
_width = ((health / fullhealth) * widthmax);
}
Symbol 776 MovieClip Frame 2
if (health > 0) {
gotoAndPlay (1);
}
Symbol 776 MovieClip Frame 3
_name = ("dead_tower" + random(99999999));
Symbol 776 MovieClip Frame 32
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 5);
}
i++;
}
Symbol 776 MovieClip Frame 73
removeMovieClip(this);
Symbol 776 MovieClip Frame 74
stop();
Symbol 790 MovieClip Frame 17
stop();
Symbol 795 MovieClip Frame 20
remove = 1;
Symbol 800 MovieClip Frame 20
remove = 1;
Symbol 821 MovieClip Frame 20
stop();
Symbol 826 MovieClip Frame 20
remove = 1;
Symbol 827 MovieClip Frame 1
stop();
Symbol 836 MovieClip Frame 17
stop();
Symbol 845 MovieClip Frame 18
remove = 1;
Symbol 846 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 22
remove = 1;
Symbol 876 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 29
remove = 1;
Symbol 896 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 30
stop();
Symbol 940 MovieClip Frame 80
remove = 1;
Symbol 941 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 26
stop();
Symbol 952 MovieClip Frame 1
if (this._name eq "gravity_shockwave") {
stop();
}
Symbol 952 MovieClip Frame 3
var i = 0;
while (i < _root.max_enemies) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 6);
}
i++;
}
Symbol 952 MovieClip Frame 39
removeMovieClip(this);
Symbol 952 MovieClip Frame 40
stop();
Symbol 967 MovieClip Frame 1
if ((_name eq "projectile_explode_1") or (_name eq "projectile_explode_2")) {
gotoAndStop (55);
}
Symbol 967 MovieClip Frame 9
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 7);
}
i++;
}
Symbol 967 MovieClip Frame 38
removeMovieClip(this);
Symbol 1012 MovieClip Frame 1
if (_name eq "teh_nuke") {
gotoAndStop (70);
}
Symbol 1012 MovieClip Frame 2
gravity_nuke_in_action = 1;
Symbol 1012 MovieClip Frame 42
gravity_nuke_in_action = 0;
Symbol 1012 MovieClip Frame 48
removeMovieClip(this);
Symbol 1012 MovieClip Frame 50
stop();
Symbol 1012 MovieClip Frame 70
stop();
Symbol 1056 MovieClip Frame 2
if (random(30) eq 1) {
play();
} else {
gotoAndPlay (1);
}
Symbol 1086 MovieClip Frame 7
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 9);
}
i++;
}
_root.game.blackhole_x = _x;
_root.game.blackhole_y = _y;
Symbol 1086 MovieClip Frame 55
blackhole_activated = 1;
Symbol 1086 MovieClip Frame 285
blackhole_activated = 0;
Symbol 1086 MovieClip Frame 287
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 10);
}
i++;
}
Symbol 1086 MovieClip Frame 311
removeMovieClip(this);
Symbol 1098 MovieClip Frame 34
blackhole_activated = 1;
Symbol 1098 MovieClip Frame 185
blackhole_activated = 0;
Symbol 1098 MovieClip Frame 187
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 10);
}
i++;
}
Symbol 1098 MovieClip Frame 211
removeMovieClip(this);
Symbol 1171 MovieClip Frame 1
if (_name eq "singularity3_source") {
stop();
}
Symbol 1171 MovieClip Frame 4
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 11);
}
i++;
}
Symbol 1171 MovieClip Frame 12
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 12);
}
i++;
}
Symbol 1171 MovieClip Frame 26
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 13);
}
i++;
}
Symbol 1171 MovieClip Frame 47
removeMovieClip(this);
Symbol 1187 MovieClip Frame 1
if (((((_name eq "projectile_explode_3") or (_name eq "projectile_explode_4")) or (_name eq "projectile_explode_5")) or (_name eq "projectile_explode_7")) or (_name eq "projectile_explode_9")) {
gotoAndStop (55);
}
Symbol 1187 MovieClip Frame 4
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, 15);
}
i++;
}
Symbol 1187 MovieClip Frame 21
removeMovieClip(this);
Symbol 1213 MovieClip Frame 1
if (_name eq "alldie_explosion") {
gotoAndStop (60);
}
Symbol 1213 MovieClip Frame 26
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 16);
}
i++;
}
Symbol 1213 MovieClip Frame 53
removeMovieClip(this);
Symbol 1217 MovieClip Frame 1
stop();
Symbol 1217 MovieClip Frame 20
gotoAndPlay (2);
Symbol 1228 MovieClip Frame 10
_root.antimatter_chargin.play();
Symbol 1231 Button
on (press) {
if (_root.kursor != 11) {
if (_root.energy >= _root["ball_type_energycost_" + type_]) {
_root.game.ball_targeting = 1;
_root.game.ball_targeting_name = _name;
rezinka = 1;
_root.kursor = 2;
} else {
_root.noenergy_triggered = 1;
_root.call_error = 1;
}
}
}
on (release, releaseOutside) {
if (_root.kursor != 11) {
if (_root.noenergy_triggered != 1) {
_root.game.ball_targeting = 0;
go = 1;
_root.ball_ready_to_launch = 0;
rezinka = 0;
_root.kursor = 1;
_root.game.launch.play();
if (type_ eq 10) {
_root.ball_type = 1;
_root.antimatter_timeout = _root.antimatter_loading_time;
} else if ((((type_ eq 5) or (type_ eq 4)) or (type_ eq 9)) or (type_ eq 8)) {
_root.ball_type = 1;
}
} else {
_root.noenergy_triggered = 0;
}
}
}
on (rollOut, release, dragOut) {
if (_root.kursor != 11) {
_root.current_energy_cost = 0;
if (_root.game.ball_targeting != 1) {
_root.kursor = 1;
}
}
}
on (rollOver, dragOver) {
if (go != 1) {
_root.kursor = 3;
_root.current_energy_cost = _root["ball_type_energycost_" + type_];
}
}
Symbol 1233 Button
on (press) {
if (_root.kursor eq 11) {
startdragthis = 1;
_root.kursor = 7;
}
}
on (release, releaseOutside) {
if (startdragthis eq 1) {
_root.ball_captured = 0;
startdragthis = 0;
_root.kursor = 1;
}
}
Symbol 1258 MovieClip Frame 1
stop();
go = 0;
Symbol 1258 MovieClip Frame 2
go = 1;
Symbol 1258 MovieClip Frame 15
go = 0;
Symbol 1259 MovieClip Frame 1
if (v667 != "yiff") {
v667 = "yiff";
captured_animation._visible = false;
ostanovka_counter = 0;
implode_timer = 0;
mass = 90;
udar = 0;
udar2 = 0;
udar_count = 0;
radius = ball_core._width / 2;
hits = 0;
throw_xspeed = 0;
throw_yspeed = 0;
}
if (go != 1) {
radius = ball_core._width / 2;
}
if ((type_ eq 5) or (type_ eq 6)) {
maxspddesu = 40;
if ((Math.abs(xspeed) > maxspddesu) and (Math.abs(xspeed) > Math.abs(yspeed))) {
ratiodesu = Math.abs(yspeed) / Math.abs(xspeed);
xspeed = xspeed * maxspddesu;
yspeed = yspeed * ratiodesu;
} else if ((Math.abs(yspeed) > maxspddesu) and (Math.abs(yspeed) > Math.abs(xspeed))) {
ratiodesu = Math.abs(xspeed) / Math.abs(yspeed);
xspeed = xspeed * maxspddesu;
yspeed = yspeed * ratiodesu;
}
} else if ((Math.abs(xspeed) > 70) or (Math.abs(yspeed) > 70)) {
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
}
if ((go eq 1) and (stability_checked != 1)) {
if ((((type_ eq 5) or (type_ eq 4)) or (type_ eq 9)) or (type_ eq 8)) {
_root.tier2projectiles_timeout = _root.tier2projectiles_loading_time;
}
stability_checked = 1;
xpos = _x;
ypos = _y;
rand_tol = 10000;
stability_rating = _root.stability_rating / 100;
if (random(rand_tol) > (rand_tol * stability_rating)) {
projectile_unstable = 1;
}
if (projectile_unstable != 1) {
if (distance > 8) {
_root.ball_fly_2.start();
}
}
if (projectile_unstable != 1) {
_root.energy = _root.energy - _root["ball_type_energycost_" + type_];
} else {
_root.energy = _root.energy - (_root["ball_type_energycost_" + type_] * 0.5);
}
}
if ((go eq 1) and (speedset != 1)) {
speedset = 1;
xspeed = speed * speed_modifier_x;
yspeed = speed * speed_modifier_y;
}
if (go eq 1) {
knopka._visible = false;
if (_root.kursor eq 11) {
knopka2._visible = true;
} else {
knopka2._visible = false;
}
removeMovieClip(energy_aura);
} else {
knopka2._visible = false;
}
if ((udar_count > 15) and (udar > 4)) {
removeMovieClip(this);
} else if ((udar_count > 15) and (udar < 4)) {
udar = 0;
udar_count = 0;
}
udar_count++;
if (go eq 1) {
if ((Math.abs(xspeed) < 1.5) and (Math.abs(yspeed) < 1.5)) {
ostanovka_counter = ostanovka_counter + 0.0333333333333333;
} else {
ostanovka_counter = 0;
}
if (((hits >= hits_max) or (projectile_unstable eq 1)) or (ostanovka_counter > 1)) {
if (_root.explosions_count > 100) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
if (type_ eq 1) {
explosivetype_ = 1;
} else if (type_ eq 2) {
explosivetype_ = 2;
} else if (type_ eq 3) {
explosivetype_ = 3;
} else if ((type_ eq 4) or (type_ eq 8)) {
explosivetype_ = 4;
} else if (type_ eq 5) {
explosivetype_ = 5;
} else if ((type_ eq 6) or (type_ eq 7)) {
explosivetype_ = 7;
} else if (type_ eq 9) {
explosivetype_ = 9;
}
duplicateMovieClip ("_root.game.projectile_explode_" + explosivetype_, "explosion" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["explosion" + _root.explosions_count].gotoAndPlay(1);
_root.game["explosion" + _root.explosions_count]._x = _x;
_root.game["explosion" + _root.explosions_count]._y = _y;
_root.game["explosion" + _root.explosions_count]._rotation = random(360);
removeMovieClip(this);
}
}
if ((suckedintohole eq 1) and (go eq 1)) {
removeMovieClip(this);
}
if (_root.game.ball_targeting eq 1) {
speed = 1;
var angle1 = (Math.atan2(dy, dx) * 57.2957795130823);
var dx = (_root.game.center._x - _x);
var dy = (_root.game.center._y - _y);
var angle2 = _rotation;
if (angle2 < 0) {
angle2 = angle2 + 360;
}
if (angle1 < 0) {
angle1 = angle1 + 360;
}
var a = (angle2 - angle1);
if (a > 180) {
a = a - 360;
} else if (a < -180) {
a = a + 360;
}
a = a * speed;
_rotation = (_rotation - (a - 90));
}
_root.game.ball_radius = ball_core._width / 2;
if (go eq 1) {
strelka_shell._visible = 0;
}
if (tremorarsset != 1) {
tremorarsset = 1;
tremor_def_x = ball_animation._x;
tremor_def_y = ball_animation._y;
tremor_count = 0;
}
if ((rezinka eq 1) and (distance > 55)) {
if (tremor_count eq 1) {
if (random(2) eq 1) {
tremor_x_mod = 1;
} else {
tremor_x_mod = -1;
}
if (random(2) eq 1) {
tremor_y_mod = 1;
} else {
tremor_y_mod = -1;
}
tremor_magnitude = (30 * (distance - 55)) / (_root.game.maxdistance - 55);
energy_aura._alpha = 10 + (((distance - 55) / (_root.game.maxdistance - 55)) * 100);
tremor_y_plus = random(tremor_magnitude) / 10;
ball_animation._x = ball_animation._x + (tremor_x_plus * tremor_x_mod);
ball_animation._y = ball_animation._y + (tremor_y_plus * tremor_y_mod);
}
if (tremor_count eq 2) {
ball_animation._x = tremor_def_x;
ball_animation._y = tremor_def_y;
tremor_count = 0;
}
tremor_count++;
energy_aura._x = ball_animation._x;
energy_aura._y = ball_animation._y;
} else {
ball_animation._x = tremor_def_x;
ball_animation._y = tremor_def_y;
}
if (go != 1) {
type_ = _root.ball_type;
}
ball_animation.gotoAndStop(type_);
if (type_ eq 1) {
damage = random(800);
mass = 70;
explosion_power = 7;
hits_max = 10;
} else if (type_ eq 2) {
damage = 200 + random(600);
mass = 80;
explosion_power = 7;
hits_max = 15;
} else if (type_ eq 3) {
damage = random(800);
mass = 70;
explosion_power = 7;
hits_max = 20;
} else if (type_ eq 4) {
damage = 4000;
mass = 90;
explosion_power = 7;
hits_max = 15;
} else if ((type_ eq 5) or (type_ eq 6)) {
damage = random(500);
mass = 80;
explosion_power = 7;
hits_max = 100;
} else if (type_ eq 7) {
damage = 300 + random(700);
mass = 90;
explosion_power = 7;
hits_max = 20;
} else if (type_ eq 8) {
damage = random(500);
mass = 2500;
explosion_power = 7;
hits_max = 500;
} else if (type_ eq 9) {
damage = 1;
mass = 100;
explosion_power = 7;
hits_max = 4;
} else if (type_ eq 10) {
damage = random(5);
mass = 150;
explosion_power = 7;
hits_max = 50;
}
if (sssgsfgs != 1) {
skorostottyagivaniya = 0;
skorostottyagivaniya2 = 0;
sssgsfgs = 1;
strelka_shell._visible = false;
}
if (rezinka eq 1) {
strelka_shell._visible = true;
maus_distance_x = _root.game._xmouse - _root.game.center._x;
maus_distance_y = _root.game._ymouse - _root.game.center._y;
maus_distance = Math.sqrt(Math.abs(maus_distance_x * maus_distance_x) + Math.abs(maus_distance_y * maus_distance_y));
_root.resinka_length = maus_distance;
alpha = Math.atan(maus_distance_y / maus_distance_x);
if (_root.limit_unstable_zone != 1) {
krai = 90;
} else {
krai = 55;
}
if (maus_distance < krai) {
_x = _root.game._xmouse;
_y = _root.game._ymouse;
} else {
if (maus_distance_x < 0) {
ix = ((-Math.cos(alpha)) * krai) + _root.game.center._x;
igrik = ((-Math.sin(alpha)) * krai) + _root.game.center._y;
} else {
ix = (Math.cos(alpha) * krai) + _root.game.center._x;
igrik = (Math.sin(alpha) * krai) + _root.game.center._y;
}
_x = ix;
_y = igrik;
}
}
strelka_shell.distance = distance;
Instance of Symbol 1218 MovieClip "strelka_shell" in Symbol 1259 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.game.ball_targeting eq 1) {
maxdistance = _root.game.maxdistance;
if (distance < 5) {
_alpha = 0;
} else if (distance >= 5) {
_alpha = (30 + ((70 * distance) / maxdistance));
}
if (distance < maxdistance) {
width_ = 18 + ((102 * distance) / maxdistance);
strelka.gotoAndStop(1);
} else {
width_ = 120;
strelka.play();
}
strelka._width = width_;
}
}
Symbol 1259 MovieClip Frame 2
if ((_x < -500) or (_x > 500)) {
removeMovieClip(this);
}
if (captured != 1) {
captured_animation._visible = false;
} else {
captured_animation._visible = true;
}
if (go eq 1) {
if (startdragthis eq 1) {
_root.manipulator2_timeout = _root.manipulator2_loading_time;
_root.ball_captured = 1;
being_thrown = 1;
being_thrown_timer = 0;
drag_x = _x;
drag_y = _y;
_x = _root.game._xmouse;
_y = _root.game._ymouse;
xpos = _x;
ypos = _y;
captured = 1;
} else if (captured eq 1) {
throwspeedmax = 50;
koefficient_broska = 0.8;
throw_xspeed = ((-drag_x) + _root.game._xmouse) * koefficient_broska;
throw_yspeed = ((-drag_y) + _root.game._ymouse) * koefficient_broska;
if (Math.abs(throw_xspeed) > throwspeedmax) {
voskilkobolshe_x = Math.abs(throw_xspeed) / throwspeedmax;
throw_xspeed = throw_xspeed * (1 / voskilkobolshe_x);
throw_yspeed = throw_yspeed * (1 / voskilkobolshe_x);
}
if (Math.abs(throw_yspeed) > throwspeedmax) {
voskilkobolshe_y = Math.abs(throw_yspeed) / throwspeedmax;
throw_yspeed = throw_yspeed * (1 / voskilkobolshe_y);
throw_xspeed = throw_xspeed * (1 / voskilkobolshe_y);
}
captured = 0;
xspeed = throw_xspeed;
yspeed = throw_yspeed;
}
}
if ((being_thrown eq 1) and (captured eq 0)) {
being_thrown_timer++;
}
if (being_thrown_timer > 15) {
being_thrown_timer = 0;
being_thrown = 0;
}
gotoAndPlay (1);
if ((go != 1) and (rezinka eq 1)) {
_root.current_energy_cost = _root["ball_type_energycost_" + type_];
_root.currentballbeinglaunched = _name;
}
if ((type_ eq 9) and (go eq 1)) {
if ((xspeed > 100) or (xspeed > 100)) {
xspeed = xspeed * 0.3;
yspeed = yspeed * 0.3;
} else if ((xspeed > 80) or (yspeed > 80)) {
xspeed = xspeed * 0.7;
yspeed = yspeed * 0.7;
} else if ((xspeed > 40) or (yspeed > 40)) {
xspeed = xspeed * 0.95;
yspeed = yspeed * 0.95;
} else if ((xspeed > 10) or (yspeed > 10)) {
xspeed = xspeed * 0.98;
yspeed = yspeed * 0.98;
}
if (captured != 1) {
implode.play();
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root.game.Explosion("enemy" + i, _x, _y, 14);
}
i++;
}
}
}
if ((rezinka eq 1) and (distance > 55)) {
_root.ball_charge.gotoAndPlay(2);
} else {
_root.ball_charge.gotoAndPlay(1);
}
if ((rezinka eq 1) and (distance > 70)) {
ball_animation.vspishka.play();
}
Symbol 1259 MovieClip Frame 3
stop();
Symbol 1268 MovieClip Frame 9
stop();
Symbol 1276 MovieClip Frame 8
stop();
Symbol 1280 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 1289 MovieClip Frame 5
stop();
Symbol 1293 MovieClip Frame 4
stop();
Symbol 1294 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 1303 MovieClip Frame 9
stop();
Symbol 1304 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 1313 MovieClip Frame 9
stop();
Symbol 1314 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 1318 Button
on (release) {
play();
}
Symbol 1406 MovieClip Frame 21
stop();
Symbol 1409 MovieClip Frame 1
_root.implosion_go = 0;
Symbol 1409 MovieClip Frame 31
_root.implosion_go = 1;
_root.shakescreen = 30;
Symbol 1409 MovieClip Frame 46
_root.implosion_go = 0;
Symbol 1409 MovieClip Frame 74
removeMovieClip(this);
Symbol 1418 Button
on (release) {
_root.energyup_time = _root.energyup_time + _root.energyup_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 17
stop();
remove = 1;
Instance of Symbol 1429 MovieClip in Symbol 1431 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1431 MovieClip "gauge" in Symbol 1432 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Symbol 1436 Button
on (release) {
_root.structureup_time = _root.structureup_time + _root.structureup_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1441 Button
on (release) {
_root.nodelay_time = _root.nodelay_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1445 Button
on (release) {
_root.antimatter_time = _root.antimatter_time + _root.antimatter_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1446 Button
on (release) {
_root.kursor = 10;
removeMovieClip(this);
btn._visible = false;
}
Symbol 1449 Button
on (release) {
_root.speedup_time = _root.speedup_time + _root.speedup_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1451 Button
on (release) {
_root.stabilityup_time = _root.stabilityup_time + _root.stabilityup_time_bonus;
cleared = 1;
clearing.play();
}
Symbol 1454 Button
on (release) {
_root.kursor = 14;
removeMovieClip(this);
btn._visible = false;
}
Symbol 1455 MovieClip Frame 1
if (_name != "powerup_source") {
gotoAndStop(random(7) + 2);
}
Symbol 1455 MovieClip Frame 6
if (random(3) eq 0) {
gotoAndStop (25);
} else {
stop();
}
Symbol 1459 MovieClip Frame 14
removeMovieClip(this);
Symbol 1475 MovieClip Frame 1
function ballSpeedAndDirection(ball) {
maxdistance = _root.game.maxdistance;
maxspeed = _root.game.maxspeed;
x_distance = Math.abs(_root.game[ball]._x - _root.game.center._x);
y_distance = Math.abs(_root.game[ball]._y - _root.game.center._y);
distance = Math.sqrt((x_distance * x_distance) + (y_distance * y_distance));
_root.game[ball].distance = distance;
if (x_distance > y_distance) {
abs_speed_modifier_x = 1;
abs_speed_modifier_y = y_distance / x_distance;
} else if (x_distance < y_distance) {
abs_speed_modifier_y = 1;
abs_speed_modifier_x = x_distance / y_distance;
} else {
abs_speed_modifier_y = 1;
abs_speed_modifier_x = 1;
}
napravlenie_x = _root.game[ball]._x - _root.game.center._x;
napravlenie_y = _root.game[ball]._y - _root.game.center._y;
if (napravlenie_x < 0) {
_root.game[ball].speed_modifier_x = 1 * abs_speed_modifier_x;
} else {
_root.game[ball].speed_modifier_x = -1 * abs_speed_modifier_x;
}
if (napravlenie_y < 0) {
_root.game[ball].speed_modifier_y = 1 * abs_speed_modifier_y;
} else {
_root.game[ball].speed_modifier_y = -1 * abs_speed_modifier_y;
}
if ((maxdistance / distance) >= 1.5) {
if (distance < maxdistance) {
_root.game[ball].speed = (distance / maxdistance) * maxspeed;
_root.speed = (distance / maxdistance) * maxspeed;
} else {
_root.game[ball].speed = maxspeed - 10;
_root.speed = maxspeed - 10;
}
} else if (distance < maxdistance) {
_root.game[ball].speed = (distance / maxdistance) * maxspeed;
_root.speed = (distance / maxdistance) * maxspeed;
} else {
_root.game[ball].speed = maxspeed;
_root.speed = maxspeed;
}
if ((maxdistance / distance) <= pokazatel_stabilnosty) {
_root.stability_rating = minimalnaya_stabilnost + ((((maxdistance / distance) - 1) / (pokazatel_stabilnosty - 1)) * 100);
if (_root.stability_rating > maximalnaya_stabilnost) {
_root.stability_rating = maximalnaya_stabilnost;
}
} else {
_root.stability_rating = maximalnaya_stabilnost;
}
_root.stability_rating = _root.stability_rating + _root.stability_skillbonus;
if (_root.stability_rating > 100) {
_root.stability_rating = 100;
}
if (_root.speed < 1.5) {
_root.stability_rating = 0;
}
}
function WallCollision(ball) {
if (_root.game[ball]) {
var _local2 = _root.game[ball];
var _local5 = _local2.ypos + _local2.yspeed;
var _local4 = _local2.radius;
if ((_local5 + _local4) > _root.game.bottom_wall._y) {
_local2.tempy = _root.game.bottom_wall._y - _local4;
_local2.yspeed = _local2.yspeed * -1;
doballcillisioneffect = 1;
}
if ((_local5 - _local4) < _root.game.upper_wall._y) {
_local2.tempy = _root.game.upper_wall._y + _local4;
_local2.yspeed = _local2.yspeed * -1;
doballcillisioneffect = 1;
}
if (doballcillisioneffect eq 1) {
doballcillisioneffect = 0;
_root.game[ball].udar++;
_root.game[ball].hits++;
if (_root.game[ball].type_ eq 3) {
_root.game[ball].yspeed = _root.game[ball].yspeed * 1.1;
_root.game[ball].xspeed = _root.game[ball].xspeed * 1.1;
}
_root.game[ball].ball_animation.vspishka.play();
if (random(2) eq 1) {
_root.ball_bounce_1.start();
} else {
_root.ball_bounce_2.start();
}
}
}
}
function Enemy2WallCollision(enemy) {
if (_root.game[enemy]) {
var _local2 = _root.game[enemy];
var _local4 = _local2.ypos + _local2.yspeed;
var _local3 = _local2.radius;
if ((_local4 + _local3) > _root.game.bottom_wall._y) {
_local2.tempy = _root.game.bottom_wall._y - _local3;
doenemycillisioneffect = 1;
}
if ((_local4 - _local3) < _root.game.upper_wall._y) {
_local2.tempy = _root.game.upper_wall._y + _local3;
doenemycillisioneffect = 1;
}
if (doenemycillisioneffect eq 1) {
doenemycillisioneffect = 0;
if (Math.abs(_local2.yspeed) > 5) {
_local2.yspeed = _local2.yspeed * -0.5;
_local2.throw_yspeed = _local2.throw_yspeed * -1;
} else {
_local2.throw_yspeed = _local2.throw_yspeed * -1;
_local2.yspeed = _local2.yspeed * -0.8;
}
wallImpactSound();
_local2.damage = _local2.damage + Math.abs(_local2.yspeed * _local2.mass);
_local2.ydar = _local2.ydar + 1;
if (framesleft1 <= 1) {
collisionEffect(_local2._x, _local2._y + 4, "upper");
} else {
collisionEffect(_local2._x, _local2._y - 4, "bottom");
}
}
}
}
function StolknovenieVragaIsharika(ball, enemy, x1, x2, y1, y2, time) {
var _local6 = _root.game[ball].mass;
var _local8 = _root.game[enemy].mass;
var _local17 = _root.game[ball].xspeed;
var _local16 = _root.game[enemy].xspeed;
var _local20 = _root.game[ball].yspeed;
var _local18 = _root.game[enemy].yspeed;
cryticalpoint = 35;
if ((_local17 > cryticalpoint) or (_local20 > cryticalpoint)) {
kritikalspeed = 1;
} else {
kritikalspeed = 0;
}
var _local21 = x1 - x2;
var _local23 = y1 - y2;
if (_root.game[ball].type_ eq 7) {
var _local12 = random(360);
} else {
var _local12 = Math.atan2(_local23, _local21);
}
var _local5 = Math.cos(_local12);
var _local4 = Math.sin(_local12);
if (((_root.game[enemy].unit_chosen eq 16) or (_root.game[enemy].unit_chosen eq 18)) and (kritikalspeed != 1)) {
_root.game[enemy].damage = _root.game[enemy].damage * 0.333333333333333;
} else {
if (_root.game[enemy].hp <= _root.game[ball].damage) {
nocollisionduetoenemydeath = 1;
} else {
nocollisionduetoenemydeath = 0;
}
_root.game[enemy].damage = _root.game[enemy].damage + _root.game[ball].damage;
if (_root.game[ball].type_ != 9) {
_root.game[ball].hits++;
_root.game[ball].udar2++;
_root.game[ball].ball_animation.vspishka.play();
if (random(2) eq 1) {
_root.balltoenemy_impact2.start();
} else {
_root.balltoenemy_impact1.start();
}
}
}
var _local13 = (_local17 * _local5) + (_local20 * _local4);
var _local10 = (_local16 * _local5) + (_local18 * _local4);
var _local11 = (_local20 * _local5) - (_local17 * _local4);
var _local9 = (_local18 * _local5) - (_local16 * _local4);
var _local19 = (_local6 * _local13) + (_local8 * _local10);
var _local22 = _local13 - _local10;
var _local14 = (_local19 + (_local6 * _local22)) / (_local6 + _local8);
if (((_root.game[ball].type_ eq 1) or (_root.game[ball].type_ eq 8)) or (_root.game[ball].type_ eq 3)) {
var _local15 = (_local14 - _local13) + _local10;
} else {
var _local15 = (-_local13) + _local10;
}
_local13 = _local15;
_local10 = _local14;
_local17 = (_local13 * _local5) - (_local11 * _local4);
_local16 = (_local10 * _local5) - (_local9 * _local4);
_local20 = (_local11 * _local5) + (_local13 * _local4);
_local18 = (_local9 * _local5) + (_local10 * _local4);
if (_root.game[ball].type_ eq 10) {
removeMovieClip(_root.game[ball]);
if (_root.explosions_count > 50) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
duplicateMovieClip ("_root.game.teh_nuke", "zomg_nuke_" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["zomg_nuke_" + _root.explosions_count]._x = _root.game[enemy]._x;
_root.game["zomg_nuke_" + _root.explosions_count]._y = _root.game[enemy]._y;
}
if (((_root.game[enemy].unit_chosen eq 16) or (_root.game[enemy].unit_chosen eq 18)) and (kritikalspeed != 1)) {
removeMovieClip(_root.game[ball]);
_root.game[enemy].the_core.absorb.play();
} else if (_root.game[ball].type_ eq 9) {
} else {
_root.game[enemy].the_core.ballhitanim.play();
if (_root.game[enemy].hp > _root.game[ball].damage) {
if ((_root.game[ball].type_ eq 5) and (_root.game[ball].glued != 1)) {
_root.game[ball].glued = 1;
_root.game[ball].type_ = 6;
_root.game[ball].tempx = _root.game[enemy].tempx;
_root.game[ball].tempy = _root.game[enemy].tempy;
_root.game[ball].xspeed = 5;
_root.game[ball].yspeed = random(5);
} else {
if ((_root.game[ball].type_ != 5) and (_root.game[ball].type_ != 6)) {
time_modifier = 0.95;
} else if (_root.game[ball].type_ eq 6) {
time_modifier = 0.8;
}
_root.game[enemy].tempx = _root.game[enemy].xpos + ((_root.game[enemy].xspeed * time) * time_modifier);
_root.game[enemy].tempy = _root.game[enemy].ypos + ((_root.game[enemy].yspeed * time) * time_modifier);
_root.game[ball].tempx = _root.game[ball].xpos + ((_root.game[ball].xspeed * time) * time_modifier);
_root.game[ball].tempy = _root.game[ball].ypos + ((_root.game[ball].yspeed * time) * time_modifier);
_root.game[ball].xspeed = _local17;
_root.game[ball].yspeed = _local20;
}
_root.game[enemy].xspeed = _local16;
_root.game[enemy].yspeed = _local18;
if (_root.game[ball].type_ eq 3) {
_root.game[ball].yspeed = _root.game[ball].yspeed * 1.1;
_root.game[ball].xspeed = _root.game[ball].xspeed * 1.1;
}
}
}
}
function ballToEnemyCollisionDetectionAndReaction(ball, enemy) {
var _local9 = _root.game[ball].xspeed;
var _local7 = _root.game[ball].yspeed;
var _local8 = _root.game[enemy].xspeed;
var _local6 = _root.game[enemy].yspeed;
var _local5 = _root.game[ball]._x;
var _local3 = _root.game[ball]._y;
var _local4 = _root.game[enemy]._x;
var _local2 = _root.game[enemy]._y;
var _local16 = _root.game[ball].radius + _root.game[enemy].radius;
var _local22 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local21 = ((((-2 * _local5) * _local8) - ((2 * _local4) * _local9)) + ((2 * _local5) * _local9)) + ((2 * _local4) * _local8);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local18 = ((((-2 * _local3) * _local6) - ((2 * _local2) * _local7)) + ((2 * _local3) * _local7)) + ((2 * _local2) * _local6);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local12 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local12 * _local12) - ((4 * _local15) * _local25));
var _local14 = ((-_local12) + _local17) / (2 * _local15);
var _local13 = ((-_local12) - _local17) / (2 * _local15);
if ((_local14 > 0) && (_local14 <= 1)) {
var _local23 = _local14;
var _local24 = true;
}
if ((_local13 > 0) && (_local13 <= 1)) {
if ((_local23 == null) || (_local13 < _local14)) {
var _local23 = _local13;
var _local24 = true;
}
}
if (_local24) {
StolknovenieVragaIsharika(ball, enemy, _local5, _local4, _local3, _local2, _local23);
}
}
function StolknovenieVragov(enemy_1, enemy_2, x1, x2, y1, y2, time) {
var _local4 = _root.game[enemy_1].mass;
var _local5 = _root.game[enemy_2].mass;
var _local22 = _root.game[enemy_1].xspeed;
var _local21 = _root.game[enemy_2].xspeed;
var _local25 = _root.game[enemy_1].yspeed;
var _local23 = _root.game[enemy_2].yspeed;
if ((((Math.abs(_local25) < 1.5) and (Math.abs(_local23) < 1.5)) and (Math.abs(_local22) < 1.5)) and (Math.abs(_local21) < 1.5)) {
skorost_nominalnaya = 1;
} else {
skorost_nominalnaya = 0;
}
var _local26 = x1 - x2;
var _local30 = y1 - y2;
var _local13 = Math.atan2(_local30, _local26);
var _local7 = Math.cos(_local13);
var _local6 = Math.sin(_local13);
var _local14 = (_local22 * _local7) + (_local25 * _local6);
var _local11 = (_local21 * _local7) + (_local23 * _local6);
var _local12 = (_local25 * _local7) - (_local22 * _local6);
var _local10 = (_local23 * _local7) - (_local21 * _local6);
if ((_root.game[enemy_1].unit_chosen eq 17) and (_root.game[enemy_2].unit_chosen eq 17)) {
if (_root.game[enemy_1].birth != _root.game[enemy_2].birth) {
if (_root.explosions_count > 50) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
duplicateMovieClip ("_root.game.alldie_explosion", "alldie" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["alldie" + _root.explosions_count]._x = x1;
_root.game["alldie" + _root.explosions_count]._y = y1;
removeMovieClip(_root.game[enemy_1]);
removeMovieClip(_root.game[enemy_2]);
}
}
_root.game[enemy_1].damage = _root.game[enemy_1].damage + ((Math.abs(_local14) + Math.abs(_local11)) * _local5);
_root.game[enemy_2].damage = _root.game[enemy_2].damage + ((Math.abs(_local14) + Math.abs(_local11)) * _local4);
enemy2enemyImpactSound();
var _local28 = x1 - x2;
var _local27 = y1 - y2;
R2 = _root.game[enemy_2].radius;
var _local15 = ((-Math.atan2(_local28, _local27)) / (Math.PI/180)) + 270;
collision_y3 = y2 - (R2 * Math.sin(_local15 * (Math.PI/180)));
collision_x3 = x2 - (R2 * Math.cos(_local15 * (Math.PI/180)));
collisionEffect(collision_x3, collision_y3);
var _local24 = (_local4 * _local14) + (_local5 * _local11);
var _local29 = _local14 - _local11;
var _local8 = (_local24 + (_local4 * _local29)) / (_local4 + _local5);
if (_root.game[enemy_1].birth != _root.game[enemy_2].birth) {
if (((_local4 / _local5) > 4) or ((_local4 / _local5) < 0.25)) {
} else {
_local8 = 0;
}
if (skorost_nominalnaya eq 1) {
if (random(2) eq 1) {
if ((_local4 / _local5) < 1) {
_local25 = -2;
}
if ((_local5 / _local4) < 1) {
_local23 = 2;
}
} else {
if ((_local4 / _local5) < 1) {
_local25 = 2;
}
if ((_local5 / _local4) < 1) {
_local23 = -2;
}
}
}
}
var _local20 = (_local8 - _local14) + _local11;
_local14 = _local20;
_local11 = _local8;
_local22 = (_local14 * _local7) - (_local12 * _local6);
_local21 = (_local11 * _local7) - (_local10 * _local6);
_local25 = (_local12 * _local7) + (_local14 * _local6);
_local23 = (_local10 * _local7) + (_local11 * _local6);
_root.game[enemy_1].tempx = _root.game[enemy_1].xpos + ((_root.game[enemy_1].xspeed * time) * 0.95);
_root.game[enemy_1].tempy = _root.game[enemy_1].ypos + ((_root.game[enemy_1].yspeed * time) * 0.95);
_root.game[enemy_2].tempx = _root.game[enemy_2].xpos + ((_root.game[enemy_2].xspeed * time) * 0.95);
_root.game[enemy_2].tempy = _root.game[enemy_2].ypos + ((_root.game[enemy_2].yspeed * time) * 0.95);
_root.game[enemy_1].xspeed = _local22;
_root.game[enemy_2].xspeed = _local21;
_root.game[enemy_1].yspeed = _local25;
_root.game[enemy_2].yspeed = _local23;
}
function EnemyToEnemyCollisionDetectionAndReaction(enemy_1, enemy_2) {
var _local9 = _root.game[enemy_1].xspeed;
var _local7 = _root.game[enemy_1].yspeed;
var _local8 = _root.game[enemy_2].xspeed;
var _local6 = _root.game[enemy_2].yspeed;
var _local5 = _root.game[enemy_1]._x;
var _local3 = _root.game[enemy_1]._y;
var _local4 = _root.game[enemy_2]._x;
var _local2 = _root.game[enemy_2]._y;
var _local16 = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
var _local22 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local21 = ((((-2 * _local5) * _local8) - ((2 * _local4) * _local9)) + ((2 * _local5) * _local9)) + ((2 * _local4) * _local8);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local18 = ((((-2 * _local3) * _local6) - ((2 * _local2) * _local7)) + ((2 * _local3) * _local7)) + ((2 * _local2) * _local6);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local10 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local10 * _local10) - ((4 * _local15) * _local25));
var _local13 = ((-_local10) + _local17) / (2 * _local15);
var _local11 = ((-_local10) - _local17) / (2 * _local15);
if ((_local13 > 0) && (_local13 <= 1)) {
var _local23 = _local13;
var _local24 = true;
}
if ((_local11 > 0) && (_local11 <= 1)) {
if ((_local23 == null) || (_local11 < _local13)) {
var _local23 = _local11;
var _local24 = true;
}
}
if (_local24 eq "true") {
StolknovenieVragov(enemy_1, enemy_2, _local5, _local4, _local3, _local2, _local23);
}
}
function Implosion(enemy) {
implosion_radius = 250;
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = _root.game.implosion1._x;
y2 = _root.game.implosion1._y;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local8 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
if (_local8 < implosion_radius) {
implosion_mass = 55;
implosion_suckingpower = (-18 * _local8) / implosion_radius;
var _local6 = _root.game[enemy].mass;
var _local9 = implosion_mass;
var _local17 = _root.game[enemy].xspeed;
var _local19 = _root.game[enemy].yspeed;
var _local13 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local13);
var _local2 = Math.sin(_local13);
var _local14 = (_local17 * _local3) + (_local19 * _local2);
var _local11 = implosion_suckingpower;
var _local12 = (_local19 * _local3) - (_local17 * _local2);
var _local10 = 0.0001;
var _local18 = (_local6 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local6 * _local20)) / (_local6 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local3) - (_local12 * _local2);
var _local21 = (_local11 * _local3) - (_local10 * _local2);
_local19 = (_local12 * _local3) + (_local14 * _local2);
var _local22 = (_local10 * _local3) + (_local11 * _local2);
_root.game[enemy].xspeed = _local17;
_root.game[enemy].yspeed = _local19;
}
}
function GravityNuke(enemy, gravnuke_x, gravnuke_y, gravnuke_radius_small, gravnuke_radius_big) {
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = gravnuke_x;
y2 = gravnuke_y;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local8 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
rdb_dx = _root.game.center._x - x2;
rdb_dy = _root.game.center._y - y2;
rasstoyanie_do_bazi = Math.sqrt((rdb_dx * rdb_dx) + (rdb_dy * rdb_dy)) - 40;
if (rasstoyanie_do_bazi < 0) {
rasstoyanie_do_bazi = 0;
}
if (rasstoyanie_do_bazi < gravnuke_radius_small) {
_root.structure = _root.structure - (_root.gravity_nuke_hueg_dmg * koef_oslableniya_dmg_po_baze);
} else if (rasstoyanie_do_bazi < gravnuke_radius_big) {
_root.structure = _root.structure - (_root.gravity_nuke_radius_dmg * koef_oslableniya_dmg_po_baze);
}
if (_local8 < gravnuke_radius_small) {
_root.game[enemy].damage = _root.game[enemy].damage + _root.gravity_nuke_hueg_dmg;
} else if (_local8 < gravnuke_radius_big) {
_root.game[enemy].damage = _root.game[enemy].damage + _root.gravity_nuke_radius_dmg;
implosion_mass = 20;
Gravnuke_power = 25;
implosion_suckingpower = (-1.3 * Gravnuke_power) + random(Gravnuke_power * 2);
var _local6 = _root.game[enemy].mass;
var _local9 = implosion_mass;
var _local17 = _root.game[enemy].xspeed;
var _local19 = _root.game[enemy].yspeed;
var _local13 = Math.atan2(_local7, _local5);
var _local4 = Math.cos(_local13);
var _local3 = Math.sin(_local13);
var _local14 = (_local17 * _local4) + (_local19 * _local3);
var _local11 = implosion_suckingpower;
var _local12 = (_local19 * _local4) - (_local17 * _local3);
var _local10 = 0.0001;
var _local18 = (_local6 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local6 * _local20)) / (_local6 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local4) - (_local12 * _local3);
var _local21 = (_local11 * _local4) - (_local10 * _local3);
_local19 = (_local12 * _local4) + (_local14 * _local3);
var _local22 = (_local10 * _local4) + (_local11 * _local3);
_root.game[enemy].xspeed = _local17;
_root.game[enemy].yspeed = _local19;
}
}
function Explosion(enemy, explosion_x, explosion_y, power) {
if (power eq 1) {
explosion_radius = 35;
explosion_mass = 10;
explosion_power = 8;
_root.shakescreen = 5;
explosion_dmg = random(300);
} else if (power eq 2) {
explosion_radius = 55;
_root.shakescreen = 7;
explosion_mass = 20;
explosion_power = 12;
explosion_dmg = random(400);
} else if (power eq 3) {
explosion_radius = 75;
_root.shakescreen = 15;
explosion_mass = 25;
explosion_power = 25;
explosion_dmg = random(700);
} else if (power eq 5) {
_root.shakescreen = 20;
explosion_radius = 130;
explosion_mass = 35;
explosion_power = 35;
explosion_dmg = 500 + random(1000);
} else if (power eq 4) {
explosion_radius = 170;
_root.shakescreen = 30;
explosion_mass = 50;
explosion_power = 40;
explosion_dmg = 4000 + random(2500);
} else if (power eq 6) {
explosion_radius = 70;
_root.shakescreen = 15;
explosion_mass = 100;
explosion_power = 50;
explosion_dmg = 1;
} else if (power eq 7) {
explosion_radius = 30;
_root.shakescreen = 15;
explosion_mass = 50;
explosion_power = 10;
explosion_dmg = 500 + random(1000);
} else if (power eq 8) {
explosion_radius = 40;
_root.shakescreen = 10;
explosion_mass = 100;
explosion_power = 40;
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 = 150;
_root.shakescreen = 5;
explosion_mass = 100;
explosion_power = 80;
explosion_dmg = 1;
} 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 = 75;
explosion_mass = 20;
explosion_power = -40;
explosion_dmg = 1;
} else if (power eq 15) {
explosion_radius = 66.5;
_root.shakescreen = 15;
explosion_mass = 50;
explosion_power = 10;
explosion_dmg = 200 + random(1000);
} else if (power eq 16) {
explosion_radius = 5000;
_root.shakescreen = 50;
explosion_mass = 500;
explosion_power = 10;
explosion_dmg = 50000;
}
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = explosion_x;
y2 = explosion_y;
var _local7 = x1 - x2;
var _local8 = y1 - y2;
var _local21 = Math.sqrt((_local7 * _local7) + (_local8 * _local8));
damage_po_baze = explosion_dmg / _root.enemies_onthefield;
var _local2 = 0;
while (_local2 < 6) {
if (_root.game["shockwave_tower_" + _local2]) {
shocktower_dx = _root.game["shockwave_tower_" + _local2]._x - x2;
shocktower_dy = _root.game["shockwave_tower_" + _local2]._y - y2;
shocktower_dist = Math.sqrt((shocktower_dx * shocktower_dx) + (shocktower_dy * shocktower_dy)) - 25;
if (shocktower_dist < explosion_radius) {
damage_po_baze = damage_po_baze / 10;
_root.game["shockwave_tower_" + _local2].health = _root.game["shockwave_tower_" + _local2].health - damage_po_baze;
}
}
_local2++;
}
_local2 = 0;
while (_local2 < 6) {
if (_root.game["tremor_tower_" + _local2]) {
tremortower_dx = _root.game["tremorwave_tower_" + _local2]._x - x2;
tremortower_dy = _root.game["tremorwave_tower_" + _local2]._y - y2;
tremortower_dist = Math.sqrt((tremortower_dx * tremortower_dx) + (tremortower_dy * tremortower_dy)) - 25;
if (tremortower_dist < explosion_radius) {
damage_po_baze = damage_po_baze / 10;
_root.game["tremorwave_tower_" + _local2].health = _root.game["tremorwave_tower_" + _local2].health - damage_po_baze;
}
}
_local2++;
}
rdb_dx = _root.game.center._x - x2;
rdb_dy = _root.game.center._y - y2;
rasstoyanie_do_bazi = Math.sqrt((rdb_dx * rdb_dx) + (rdb_dy * rdb_dy)) - 40;
if (rasstoyanie_do_bazi < 0) {
rasstoyanie_do_bazi = 0;
}
if (rasstoyanie_do_bazi < explosion_radius) {
_root.structure = _root.structure - damage_po_baze;
}
if (((_local21 - _root.game[enemy].radius) < explosion_radius) and ((Math.abs(_local7) + Math.abs(_local8)) > 0.0001)) {
_root.game[enemy].damage = _root.game[enemy].damage + explosion_dmg;
var _local9 = _root.game[enemy].mass;
var _local10 = explosion_mass;
var _local18 = _root.game[enemy].xspeed;
var _local20 = _root.game[enemy].yspeed;
var _local14 = Math.atan2(_local8, _local7);
var _local6 = Math.cos(_local14);
var _local5 = Math.sin(_local14);
var _local15 = (_local18 * _local6) + (_local20 * _local5);
var _local12 = explosion_power;
var _local13 = (_local20 * _local6) - (_local18 * _local5);
var _local11 = 0.0001;
var _local19 = (_local9 * _local15) + (_local10 * _local12);
var _local22 = _local15 - _local12;
var _local16 = (_local19 + (_local9 * _local22)) / (_local9 + _local10);
var _local17 = (_local16 - _local15) + _local12;
_local15 = _local17;
_local12 = _local16;
_local18 = (_local15 * _local6) - (_local13 * _local5);
var _local23 = (_local12 * _local6) - (_local11 * _local5);
_local20 = (_local13 * _local6) + (_local15 * _local5);
var _local24 = (_local11 * _local6) + (_local12 * _local5);
_root.game[enemy].xspeed = _local18;
_root.game[enemy].yspeed = _local20;
}
}
function ZashitaOtRespaNaOdnomMeste(enemy_1, enemy_2) {
if ((_root.game[enemy_1]._x < -410) or (_root.game[enemy_2]._x < -410)) {
if ((_root.game[enemy_1].birth eq "lefty") and (_root.game[enemy_2].birth eq "lefty")) {
x_dist = Math.abs(_root.game[enemy_1]._x - _root.game[enemy_2]._x);
y_dist = Math.abs(_root.game[enemy_1]._y - _root.game[enemy_2]._y);
diste = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
if ((diste < Rr) and (_root.game[enemy_2].removprotect != 1)) {
if (_root.game[enemy_1]._x < -410) {
_root.game[enemy_1].removethisnow = 1;
_root.game[enemy_2].removprotect = 1;
}
}
}
} else if ((_root.game[enemy_1]._x > 410) or (_root.game[enemy_2]._x > 410)) {
if ((_root.game[enemy_1].birth eq "righty") and (_root.game[enemy_2].birth eq "righty")) {
x_dist = Math.abs(_root.game[enemy_1]._x - _root.game[enemy_2]._x);
y_dist = Math.abs(_root.game[enemy_1]._y - _root.game[enemy_2]._y);
diste = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
if ((diste < Rr) and (_root.game[enemy_2].removprotect != 1)) {
if (_root.game[enemy_1]._x > 410) {
_root.game[enemy_1].removethisnow = 1;
_root.game[enemy_2].removprotect = 1;
}
}
}
}
}
function ZashitaOtSkleivaniya(enemy_1, enemy_2) {
x_dist2 = Math.abs(_root.game[enemy_1]._x - _root.game[enemy_2]._x);
y_dist2 = Math.abs(_root.game[enemy_1]._y - _root.game[enemy_2]._y);
diste2 = Math.sqrt((x_dist2 * x_dist2) + (y_dist2 * y_dist2));
Rr2 = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
if (_root.game[enemy_1].birth eq _root.game[enemy_2].birth) {
if (((diste2 < Rr2) and (_root.game[enemy_1].captured != 1)) and (_root.game[enemy_2].captured != 1)) {
if ((_root.game[enemy_1].being_thrown eq 1) or (_root.game[enemy_2].being_thrown eq 1)) {
if (_root.game[enemy_1].radius > _root.game[enemy_2].radius) {
_root.game[enemy_2].damage = _root.game[enemy_2].damage + 2000000;
} else if (_root.game[enemy_2].radius > _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + 2000000;
} else if (_root.game[enemy_2].radius eq _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + 2000000;
_root.game[enemy_2].damage = _root.game[enemy_2].damage + 2000000;
}
} else {
collision_damage_defined = 0.142857142857143;
if (_root.game[enemy_1].radius > _root.game[enemy_2].radius) {
_root.game[enemy_2].damage = _root.game[enemy_2].damage + (_root.game[enemy_2].hp * collision_damage_defined);
} else if (_root.game[enemy_2].radius > _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + (_root.game[enemy_1].hp * collision_damage_defined);
} else if (_root.game[enemy_2].radius eq _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + (_root.game[enemy_1].hp * collision_damage_defined);
_root.game[enemy_2].damage = _root.game[enemy_2].damage + (_root.game[enemy_2].hp * collision_damage_defined);
}
}
}
} else if (((diste2 < Rr2) and (_root.game[enemy_1].captured != 1)) and (_root.game[enemy_2].captured != 1)) {
if ((_root.game[enemy_1].being_thrown eq 1) or (_root.game[enemy_2].being_thrown eq 1)) {
if (_root.game[enemy_1].radius > _root.game[enemy_2].radius) {
_root.game[enemy_2].damage = _root.game[enemy_2].damage + 2000000;
} else if (_root.game[enemy_2].radius > _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + 2000000;
} else if (_root.game[enemy_2].radius eq _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + 2000000;
_root.game[enemy_2].damage = _root.game[enemy_2].damage + 2000000;
}
} else {
collision_damage_defined = 200;
if (_root.game[enemy_1].radius > _root.game[enemy_2].radius) {
_root.game[enemy_2].damage = _root.game[enemy_2].damage + (_root.game[enemy_2].hp * collision_damage_defined);
} else if (_root.game[enemy_2].radius > _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + (_root.game[enemy_1].hp * collision_damage_defined);
} else if (_root.game[enemy_2].radius eq _root.game[enemy_1].radius) {
_root.game[enemy_1].damage = _root.game[enemy_1].damage + (_root.game[enemy_1].hp * collision_damage_defined);
_root.game[enemy_2].damage = _root.game[enemy_2].damage + (_root.game[enemy_2].hp * collision_damage_defined);
}
}
}
}
function shleifOtSharika(ball) {
if (_root.shleifcount > 100) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
if (_root.game[ball].type_ eq 1) {
duplicateMovieClip (_root.game.shleif_blue, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 2) {
duplicateMovieClip (_root.game.shleif_purple, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 3) {
duplicateMovieClip (_root.game.shleif_green, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 4) {
duplicateMovieClip (_root.game.shleif_red, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 5) {
duplicateMovieClip (_root.game.shleif_gold, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 6) {
duplicateMovieClip (_root.game.shleif_white, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 7) {
duplicateMovieClip (_root.game.shleif_white, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 8) {
duplicateMovieClip (_root.game.shleif_red, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 9) {
duplicateMovieClip (_root.game.shleif_black, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
} else if (_root.game[ball].type_ eq 10) {
duplicateMovieClip (_root.game.shleif_red, "shleif" + _root.shleifcount, _root.shleifcount + 5000);
}
_root.game["shleif" + _root.shleifcount]._x = _root.game[ball]._x;
_root.game["shleif" + _root.shleifcount]._y = _root.game[ball]._y;
_root.game["shleif" + _root.shleifcount].gotoAndPlay(2);
}
function collisionEffect(collision_x, collision_y, mod) {
if (collision_count < 100) {
collision_count++;
} else {
collision_count = 0;
}
duplicateMovieClip (_root.game.udar, "udar_anim" + collision_count, 20000 + collision_count);
_root.game["udar_anim" + collision_count]._x = collision_x;
_root.game["udar_anim" + collision_count]._y = collision_y;
_root.game["udar_anim" + collision_count]._rotation = random(360);
_root.game["udar_anim" + collision_count].gotoAndStop(random(4) + 1);
if (mod eq "upper") {
_root.game["udar_anim" + collision_count].anim.bottom_._visible = false;
} else if (mod eq "bottom") {
_root.game["udar_anim" + collision_count].anim.upper_._visible = false;
} else {
_root.game["udar_anim" + collision_count].anim.bottom_._visible = false;
_root.game["udar_anim" + collision_count].anim.upper_._visible = false;
}
}
function wallImpactSound() {
_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 enemy2enemyImpactSound() {
_root["impact_enemy2enemy_" + (random(10) + 1)].start();
}
function ExplosionSound(power) {
if ((power eq 1) or (power eq 2)) {
_root["Explosion_" + (random(4) + 1)].start();
} else if (power eq 3) {
_root["Explosion_" + (random(2) + 5)].start();
} else if ((power eq 4) or (power eq 5)) {
}
}
function MammonthTankTrace() {
if (_root.trace_mammoth != 0) {
if (_root.game[_root.trace_mammoth]) {
_root.game.mammoth_tank_onthefield = 1;
} else {
mammoth_tank_onthefield = 0;
_root.trace_mammoth = 0;
}
}
}
function Spawn(unit_id) {
var _local2 = 0;
while (_local2 < _root.max_enemies) {
if (_root.game["enemy" + _local2]) {
} else {
the_chosen_Y = 30;
var _local4 = 0;
while (_local4 < _root.shirina_potoka_mobov) {
if (_root.metod_sortirovki_unitov eq 1) {
if (vverh_vniz eq 1) {
polojenie_y = 30 + _local4;
} else {
polojenie_y = 30 - _local4;
}
} else if (_root.metod_sortirovki_unitov eq 2) {
polojenie_y = (2 * random(_root.shirina_potoka_mobov)) - _root.shirina_potoka_mobov;
}
if (_root.respawn_pattern eq 2) {
if ((((((((((_local2 eq 1) or (_local2 eq 3)) or (_local2 eq 5)) or (_local2 eq 7)) or (_local2 eq 9)) or (_local2 eq 11)) or (_local2 eq 13)) or (_local2 eq 15)) or (_local2 eq 17)) or (_local2 eq 19)) {
polojenie_x = -500;
} else {
polojenie_x = 500;
}
} else if (_root.respawn_pattern eq 1) {
polojenie_x = -500;
} else if (_root.respawn_pattern eq 3) {
polojenie_x = 500;
}
finding_location_failed = 0;
var _local3 = 0;
while (_local3 < _root.max_enemies) {
if (_root.game["enemy" + _local3]) {
distancepox = _root.game["enemy" + _local3]._x - polojenie_x;
distancepoy = _root.game["enemy" + _local3]._y - polojenie_y;
distancecheck = Math.sqrt((distancepox * distancepox) + (distancepoy * distancepoy));
}
if (((polojenie_y - 5) < _root.game.upper_wall._y) or ((polojenie_y + 5) > _root.game.bottom_wall._y)) {
fail_des1u = 1;
} else {
fail_des1u = 0;
}
radius_summa_desu = (_root["enemy_diameter_" + unit_id] / 2) + _root.game["enemy" + _local3].radius;
if ((distancecheck < (radius_summa_desu + _root.rasstoyanie_mejdu_unitami)) and (fail_des1u != 1)) {
finding_location_failed = 1;
break;
}
_local3++;
}
if (vverh_vniz != 1) {
vverh_vniz = 1;
} else {
vverh_vniz = 0;
}
if (finding_location_failed != 1) {
if (polojenie_y eq 30) {
polojenie_y = 30.1;
}
the_chosen_Y = polojenie_y;
_local4 = 0;
break;
}
_local4++;
}
if (_root.enemies_onthefield eq 0) {
the_chosen_Y = 30.1;
}
if (the_chosen_Y != 30) {
duplicateMovieClip (_root.game.enemy, "enemy" + _local2, _local2 + 30);
if (_root.respawn_pattern eq 2) {
if ((((((((((_local2 eq 1) or (_local2 eq 3)) or (_local2 eq 5)) or (_local2 eq 7)) or (_local2 eq 9)) or (_local2 eq 11)) or (_local2 eq 13)) or (_local2 eq 15)) or (_local2 eq 17)) or (_local2 eq 19)) {
_root.game["enemy" + _local2]._x = -500;
_root.game["enemy" + _local2].birth = "lefty";
} else {
_root.game["enemy" + _local2]._x = 500;
_root.game["enemy" + _local2].birth = "righty";
}
} else if (_root.respawn_pattern eq 3) {
_root.game["enemy" + _local2]._x = 500;
_root.game["enemy" + _local2].birth = "righty";
} else if (_root.respawn_pattern eq 1) {
_root.game["enemy" + _local2]._x = -500;
_root.game["enemy" + _local2].birth = "lefty";
}
_root.game["enemy" + _local2]._y = the_chosen_Y;
_root.game["enemy" + _local2].gooo = 1;
_root.game["enemy" + _local2].unit_chosen = unit_id;
_root.game["enemy" + _local2].radius = _root["enemy_diameter_" + unit_id] / 2;
if (unit_id eq 13) {
if (_root.wave eq 6) {
_root.game["enemy" + _local2].bossmode = 1;
}
_root.game["enemy" + _local2].unit_chosen = 3;
_root.game["enemy" + _local2].second_modification = 1;
}
}
break;
}
_local2++;
}
}
function ShockwaveColumnSucking(enemy, iks, igrik) {
implosion_radius = 150;
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = iks;
y2 = igrik;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local19 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
if (_local19 < implosion_radius) {
implosion_mass = 3;
implosion_suckingpower = -3;
var _local6 = _root.game[enemy].mass;
var _local8 = implosion_mass;
var _local16 = _root.game[enemy].xspeed;
var _local18 = _root.game[enemy].yspeed;
var _local12 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local12);
var _local2 = Math.sin(_local12);
var _local13 = (_local16 * _local3) + (_local18 * _local2);
var _local10 = implosion_suckingpower;
var _local11 = (_local18 * _local3) - (_local16 * _local2);
var _local9 = 0.0001;
var _local17 = (_local6 * _local13) + (_local8 * _local10);
var _local20 = _local13 - _local10;
var _local14 = (_local17 + (_local6 * _local20)) / (_local6 + _local8);
var _local15 = (_local14 - _local13) + _local10;
_local13 = _local15;
_local10 = _local14;
_local16 = (_local13 * _local3) - (_local11 * _local2);
var _local21 = (_local10 * _local3) - (_local9 * _local2);
_local18 = (_local11 * _local3) + (_local13 * _local2);
var _local22 = (_local9 * _local3) + (_local10 * _local2);
_root.game[enemy].xspeed = _local16;
_root.game[enemy].yspeed = _local18;
}
}
function TremorColumnEffect(enemy, iks, igrik, tower_id) {
implosion_radius = 100;
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = iks;
y2 = igrik;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local19 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
if (_local19 < implosion_radius) {
_root.game["tremor_tower_" + tower_id].visual.play();
implosion_mass = 20;
tremor_power = _root.tremor_power;
var _local6 = _root.game[enemy].mass;
var _local8 = implosion_mass;
var _local16 = _root.game[enemy].xspeed;
var _local18 = _root.game[enemy].yspeed;
var _local12 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local12);
var _local2 = Math.sin(_local12);
var _local13 = (_local16 * _local3) + (_local18 * _local2);
var _local10 = tremor_power;
var _local11 = (_local18 * _local3) - (_local16 * _local2);
var _local9 = 0.0001;
var _local17 = (_local6 * _local13) + (_local8 * _local10);
var _local20 = _local13 - _local10;
var _local14 = (_local17 + (_local6 * _local20)) / (_local6 + _local8);
var _local15 = (_local14 - _local13) + _local10;
_local13 = _local15;
_local10 = _local14;
_local16 = (_local13 * _local3) - (_local11 * _local2);
var _local21 = (_local10 * _local3) - (_local9 * _local2);
_local18 = (_local11 * _local3) + (_local13 * _local2);
var _local22 = (_local9 * _local3) + (_local10 * _local2);
_root.game[enemy].xspeed = _local16;
_root.game[enemy].yspeed = _local18;
}
}
function BallcatcherEffect(ball, iks, igrik, tower_id) {
if (_root.game[ball].type_ eq 8) {
ballcatcher_mass = 250;
ballcatcher_power_max = -60;
ballcatcher_radius_max = 120;
ballcatcher_radius_min = 10;
speed_amplifier = 1.035;
} else {
ballcatcher_mass = 30;
ballcatcher_power_max = -30;
ballcatcher_radius_max = 120;
ballcatcher_radius_min = 10;
speed_amplifier = 1.035;
}
x1 = _root.game[ball]._x;
y1 = _root.game[ball]._y;
x2 = iks;
y2 = igrik;
var _local6 = x1 - x2;
var _local8 = y1 - y2;
var _local5 = Math.sqrt((_local6 * _local6) + (_local8 * _local8));
if ((_local5 < ballcatcher_radius_max) and (_local5 > ballcatcher_radius_min)) {
ballcatcher_power = (ballcatcher_power_max * _local5) / ballcatcher_radius_max;
if (_local5 < (ballcatcher_radius_max * 0.9)) {
_root.game[ball].xspeed = _root.game[ball].xspeed * speed_amplifier;
_root.game[ball].yspeed = _root.game[ball].yspeed * speed_amplifier;
}
_root.game["ballcatcher_" + tower_id].rotations++;
_root.game["ballcatcher_" + tower_id].visual.play();
var _local7 = _root.game[ball].mass;
var _local9 = ballcatcher_mass;
var _local17 = _root.game[ball].xspeed;
var _local19 = _root.game[ball].yspeed;
var _local13 = Math.atan2(_local8, _local6);
var _local4 = Math.cos(_local13);
var _local3 = Math.sin(_local13);
var _local14 = (_local17 * _local4) + (_local19 * _local3);
var _local11 = ballcatcher_power;
var _local12 = (_local19 * _local4) - (_local17 * _local3);
var _local10 = 0.0001;
var _local18 = (_local7 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local7 * _local20)) / (_local7 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local4) - (_local12 * _local3);
var _local22 = (_local11 * _local4) - (_local10 * _local3);
_local19 = (_local12 * _local4) + (_local14 * _local3);
var _local23 = (_local10 * _local4) + (_local11 * _local3);
_root.game[ball].xspeed = _local17;
_root.game[ball].yspeed = _local19;
}
}
function DropShockwaveTower() {
var _local2 = 0;
while (_local2 < 5) {
if (_root.game["shockwave_tower_" + _local2]) {
} else {
duplicateMovieClip (_root.game.shockwave_tower_source, "shockwave_tower_" + _local2, _local2 + 100);
_root.game["shockwave_tower_" + _local2]._x = _root.game._xmouse;
_root.game["shockwave_tower_" + _local2]._y = _root.game._ymouse;
_root.deploy_snd.start();
break;
}
_local2++;
}
}
function DropTremorTower() {
var _local2 = 0;
while (_local2 < 5) {
if (_root.game["tremor_tower_" + _local2]) {
} else {
duplicateMovieClip (_root.game.tremor_tower_source, "tremor_tower_" + _local2, _local2 + 10);
_root.game["tremor_tower_" + _local2]._x = _root.game._xmouse;
_root.game["tremor_tower_" + _local2]._y = _root.game._ymouse;
_root.deploy_snd.start();
break;
}
_local2++;
}
}
function DropBallcatcher() {
var _local2 = 0;
while (_local2 < 5) {
if (_root.game["ballcatcher_" + _local2]) {
} else {
duplicateMovieClip (_root.game.ballcatcher_source, "ballcatcher_" + _local2, _local2 + 20);
_root.game["ballcatcher_" + _local2]._x = _root.game._xmouse;
_root.game["ballcatcher_" + _local2]._y = _root.game._ymouse;
_root.deploy_snd.start();
break;
}
_local2++;
}
}
function BlackHoleEffect(targ, iks, igrik) {
blackhole_mass = 0.2;
blackhole_power_max = -80;
blackhole_power_min = -5;
blackhole_radius = 500;
event_horizon = 50;
speed_amplifier = 1.05;
x1 = _root.game[targ]._x;
y1 = _root.game[targ]._y;
x2 = iks;
y2 = igrik;
var _local6 = x1 - x2;
var _local8 = y1 - y2;
var _local5 = Math.sqrt((_local6 * _local6) + (_local8 * _local8));
if (_local5 < blackhole_radius) {
blackhole_power = blackhole_power_min + ((blackhole_power_max * blackhole_radius) / _local5);
if (_local5 < event_horizon) {
_root.game[targ].suckedintohole = 1;
}
_root.game[targ].yspeed = _root.game[targ].yspeed * speed_amplifier;
_root.game["blackhole_" + tower_id].rotations++;
_root.game["blackhole_" + tower_id].visual.play();
var _local7 = _root.game[targ].mass;
var _local9 = blackhole_mass;
var _local17 = _root.game[targ].xspeed;
var _local19 = _root.game[targ].yspeed;
var _local13 = Math.atan2(_local8, _local6);
var _local4 = Math.cos(_local13);
var _local3 = Math.sin(_local13);
var _local14 = (_local17 * _local4) + (_local19 * _local3);
var _local11 = blackhole_power;
var _local12 = (_local19 * _local4) - (_local17 * _local3);
var _local10 = 0.0001;
var _local18 = (_local7 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local7 * _local20)) / (_local7 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local4) - (_local12 * _local3);
var _local21 = (_local11 * _local4) - (_local10 * _local3);
_local19 = (_local12 * _local4) + (_local14 * _local3);
var _local22 = (_local10 * _local4) + (_local11 * _local3);
_root.game[targ].xspeed = _local17;
_root.game[targ].yspeed = _local19;
}
}
function MoveTarget(target) {
targeted_item = _root.game[target];
targeted_item.tempx = targeted_item.xpos + targeted_item.xspeed;
targeted_item.tempy = targeted_item.ypos + targeted_item.yspeed;
}
function RenderTargets(target) {
targeted_item = _root.game[target];
targeted_item.xpos = targeted_item.tempx;
targeted_item.ypos = targeted_item.tempy;
targeted_item._x = targeted_item.xpos;
targeted_item._y = targeted_item.ypos;
}
Crafted_By = "Project Gravity Launcher (c) DimonZerg aka DZ / 2007 / dimonzerg.narod.ru";
if (_root.ball_type eq 1) {
pokazatel_stabilnosty = 5;
minimalnaya_stabilnost = 75;
maximalnaya_stabilnost = 95;
maxspeed_source = 15;
} else if (_root.ball_type eq 2) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 80;
maximalnaya_stabilnost = 100;
maxspeed_source = 20;
} else if (_root.ball_type eq 3) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 50;
maximalnaya_stabilnost = 80;
maxspeed_source = 30;
} else if (_root.ball_type eq 4) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 15;
maximalnaya_stabilnost = 35;
maxspeed_source = 25;
} else if (_root.ball_type eq 5) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 15;
maximalnaya_stabilnost = 50;
maxspeed_source = 10;
} else if (_root.ball_type eq 7) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 40;
maximalnaya_stabilnost = 70;
maxspeed_source = 23;
} else if (_root.ball_type eq 8) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 1;
maximalnaya_stabilnost = 50;
maxspeed_source = 10;
} else if (_root.ball_type eq 9) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 1;
maximalnaya_stabilnost = 30;
maxspeed_source = 5;
} else if (_root.ball_type eq 10) {
pokazatel_stabilnosty = 0.1;
minimalnaya_stabilnost = 100;
maximalnaya_stabilnost = 100;
maxspeed_source = 20;
}
if (_root.stabilityup_maxed eq 1) {
minimalnaya_stabilnost = 100;
maximalnaya_stabilnost = 100;
}
if (_root.ultraspeed_activated eq 1) {
maxspeed = maxspeed_source * 2;
} else {
maxspeed = maxspeed_source;
}
_root.gravity_nuke_hueg_dmg = random(500);
_root.gravity_nuke_radius_dmg = random(150);
_root.implosion_loading_time_real = _root.implosion_loading_time;
_root.shockwave_loading_time_real = _root.shockwave_loading_time;
if (_root.extreme_mode_activated eq 1) {
extremomode_enemybonus = 1.4;
_root.small_tank_hp = 900 * extremomode_enemybonus;
_root.hover_tank_hp = 700 * extremomode_enemybonus;
_root.mech1_hp = 1000 * extremomode_enemybonus;
_root.mech2_hp = 3000 * extremomode_enemybonus;
_root.black_tank_hp = 2000 * extremomode_enemybonus;
_root.lazer_tank_hp = 1300 * extremomode_enemybonus;
_root.kindabike_hp = 1500 * extremomode_enemybonus;
_root.kindabike2_hp = 1200 * extremomode_enemybonus;
_root.mammoth_tank_hp = 11000 * extremomode_enemybonus;
_root.mammoth_tank2_hp = 10000 * extremomode_enemybonus;
_root.railgrav_tank_hp = 700 * extremomode_enemybonus;
_root.heavy_tank_hp = 4000 * extremomode_enemybonus;
_root.nuketruck_hp = 2000 * extremomode_enemybonus;
_root.sciencevessel_hp = 2500 * extremomode_enemybonus;
_root.clinch_tank_hp = 11000 * extremomode_enemybonus;
_root.smooth_tank_hp = 2700 * extremomode_enemybonus;
_root.singularity_tank_hp = 14000 * extremomode_enemybonus;
_root.square_tank_hp = 3500 * extremomode_enemybonus;
_root.dragoon_hp = 3000 * extremomode_enemybonus;
_root.tarakan_hp = 6500 * extremomode_enemybonus;
_root.spikey_hp = 1000 * extremomode_enemybonus;
_root.predator_hp = 1100 * extremomode_enemybonus;
} else {
_root.predator_hp = 1100;
_root.spikey_hp = 1000;
_root.tarakan_hp = 6500;
_root.dragoon_hp = 3000;
_root.square_tank_hp = 3500;
_root.small_tank_hp = 900;
_root.hover_tank_hp = 700;
_root.mech1_hp = 1000;
_root.mech2_hp = 3000;
_root.black_tank_hp = 2000;
_root.lazer_tank_hp = 1300;
_root.kindabike_hp = 1500;
_root.kindabike2_hp = 1200;
_root.mammoth_tank_hp = 11000;
_root.mammoth_tank2_hp = 10000;
_root.railgrav_tank_hp = 700;
_root.heavy_tank_hp = 4000;
_root.nuketruck_hp = 2000;
_root.sciencevessel_hp = 2500;
_root.clinch_tank_hp = 11000;
_root.smooth_tank_hp = 2700;
_root.singularity_tank_hp = 14000;
}
if (_root.game_modo eq 1) {
_root.structure_max = 3000;
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 20;
_root.manipulator2_loading_time = 25;
_root.hacking_loading_time = 35;
_root.ballcatcher_loading_time = 100;
_root.shock_tower_loading_time = 60;
_root.tremor_tower_loading_time = 60;
_root.tier2projectiles_loading_time = 10;
_root.structure_regen = 0.1;
} else if ((_root.game_modo eq 2) or (_root.game_modo eq 3)) {
_root.structure_max = 3000;
_root.implosion_loading_time = 30;
_root.shockwave_loading_time = 20;
_root.manipulator_loading_time = 15;
_root.manipulator2_loading_time = 20;
_root.hacking_loading_time = 25;
_root.ballcatcher_loading_time = 70;
_root.shock_tower_loading_time = 40;
_root.tremor_tower_loading_time = 30;
_root.tier2projectiles_loading_time = 5;
_root.structure_regen = 0.3;
} else if (_root.game_modo eq 4) {
_root.initial_lives = 100000 /* 0x0186A0 */;
_root.structure_max = 2500;
_root.implosion_loading_time = 25;
_root.shockwave_loading_time = 20;
_root.manipulator_loading_time = 15;
_root.manipulator2_loading_time = 15;
_root.hacking_loading_time = 20;
_root.ballcatcher_loading_time = 100;
_root.shock_tower_loading_time = 20;
_root.tremor_tower_loading_time = 20;
_root.tier2projectiles_loading_time = 10;
_root.structure_regen = 0.2;
} else if (_root.game_modo eq 5) {
_root.initial_lives = 0;
_root.structure_max = 1000;
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 15;
_root.manipulator2_loading_time = 10;
_root.hacking_loading_time = 10;
_root.ballcatcher_loading_time = 100;
_root.shock_tower_loading_time = 60;
_root.tremor_tower_loading_time = 60;
_root.tier2projectiles_loading_time = 10;
_root.structure_regen = 0.1;
} else if (_root.game_modo eq 6) {
_root.initial_lives = 99999 /* 0x01869F */;
_root.structure_max = 2300;
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 20;
_root.manipulator2_loading_time = 25;
_root.hacking_loading_time = 35;
_root.ballcatcher_loading_time = 100;
_root.shock_tower_loading_time = 60;
_root.tremor_tower_loading_time = 60;
_root.tier2projectiles_loading_time = 10;
_root.structure_regen = 0.5;
} else if (_root.game_modo eq 10) {
_root.initial_lives = 1000000 /* 0x0F4240 */;
_root.structure_max = 3000;
_root.structure_regen = 1;
} else {
_root.initial_lives = 10;
_root.structure_regen = 0.1;
}
if (resetvariables != "yiff") {
resetvariables = "yiff";
_root.enemy_speed = 1;
_root.launcher_location = 1;
_root.respawn_pattern = 3;
_root.metod_sortirovki_unitov = 1;
_root.ball_type = 1;
maxspeed = 20;
_root.dla_skolkih_unitov_funkcii = 10;
_root.max_enemies = 10;
_root.powerup_respawn_rate = 15;
_root.powerup_timeout = 7;
koef_oslableniya_dmg_po_baze = 0.04;
_root.structure_max = 1000;
_root.structure = _root.structure_max;
_root.energy_max = 1000;
_root.energy = _root.energy_max;
_root.energy_regen = 2;
_root.structure_regen = 0.05;
_root.shirina_potoka_mobov = 70;
_root.rasstoyanie_mejdu_unitami = 10;
_root.ball_type_energycost_1 = 250;
_root.ball_type_energycost_2 = 200;
_root.ball_type_energycost_3 = 550;
_root.ball_type_energycost_4 = 700;
_root.ball_type_energycost_5 = 500;
_root.ball_type_energycost_7 = 300;
_root.ball_type_energycost_8 = 700;
_root.ball_type_energycost_9 = 1000;
_root.ball_type_energycost_10 = 150;
_root.implosion_energycost_max = 800;
_root.shockwave_energycost_max = 600;
_root.antimatter_energycost = _root.ball_type_energycost_10;
_root.stability_bonus_per_level = 3.5;
_root.energy_bonus_per_level = 3.5;
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 20;
_root.manipulator2_loading_time = 20;
_root.antimatter_loading_time = 35;
_root.tier2projectiles_loading_time = 15;
_root.hacking_loading_time = 5;
_root.ballcatcher_loading_time = 5;
_root.implosion_points_max = 15;
_root.antimatter_points_max = 15;
_root.shockwave_points_max = 6;
_root.manipulator_points_max = 25;
_root.manipulator_points_step_1 = 5;
_root.manipulator_points_step_2 = 10;
_root.manipulator2_points_max = 5;
_root.hacking_points_max = 5;
_root.ballcatcher_points_max = 10;
_root.tremor_points_max = 5;
_root.shocktower_points_max = 15;
_root.small_tank_hp = 900;
_root.hover_tank_hp = 700;
_root.mech1_hp = 1000;
_root.mech2_hp = 3000;
_root.black_tank_hp = 2000;
_root.lazer_tank_hp = 1300;
_root.kindabike_hp = 1500;
_root.kindabike2_hp = 1200;
_root.mammoth_tank_hp = 11000;
_root.mammoth_tank2_hp = 10000;
_root.railgrav_tank_hp = 700;
_root.heavy_tank_hp = 4000;
_root.nuketruck_hp = 2000;
_root.sciencevessel_hp = 2500;
ball_targeting = 0;
mammoth_timer = 0;
maxdistance = 90;
collision_count = 0;
zashita_ot_skleivaniya_count = 0;
mammoth_tank_onthefield = 0;
_root.skill_points = 0;
_root.energy_points = 0;
_root.stability_points = 0;
_root.projectile_points = 0;
_root.shockwave_points = 0;
_root.implosion_points = 0;
_root.manipulator_points = 0;
_root.manipulator2_points = 0;
_root.hacking_points = 0;
_root.ballcatcher_points = 0;
_root.antimatter_points = 0;
_root.shocktower_points = 0;
_root.tremor_points = 0;
_root.enemy_diameter_0 = 26.6;
_root.enemy_diameter_1 = 30.5;
_root.enemy_diameter_2 = 26.6;
_root.enemy_diameter_3 = 82.9;
_root.enemy_diameter_4 = 44.7;
_root.enemy_diameter_5 = 33.4;
_root.enemy_diameter_6 = 44.7;
_root.enemy_diameter_7 = 30.5;
_root.enemy_diameter_8 = 44.7;
_root.enemy_diameter_9 = 44.7;
_root.enemy_diameter_10 = 44.7;
_root.enemy_diameter_11 = 30.5;
_root.enemy_diameter_12 = 30.5;
_root.enemy_diameter_14 = 82.9;
_root.enemy_diameter_15 = 44.7;
_root.enemy_diameter_16 = 80;
_root.enemy_diameter_17 = 44.7;
_root.enemy_diameter_18 = 67;
_root.enemy_diameter_19 = 67;
_root.enemy_diameter_20 = 30.5;
_root.enemy_diameter_21 = 30.5;
_root.wave_timer_rough = 0;
_root.extreme_mode_activated = 0;
_root.game_on_hold = 1;
_root.base_dead = 0;
_root.score = 0;
_root.score2 = 0;
_root.misses = 0;
_root.showwhichballinfo = 0;
_root.lvl = 1;
_root.powerupcheatmenu = 0;
_root.kill_all_units_nowww = 0;
_root.survival_trigger_1 = 0;
_root.survival_timer_1 = 0;
_root.survival_timer_2 = 0;
_root.stoptime = 20;
_root.armageddon_timer = 0;
_root.wave = 1;
_root.skill_points = 0;
_root.ball_captured = 0;
_root.kills_count = 0;
_root.kills_exp_count = 0;
_root.kills_max = 0;
_root.victory = 0;
_root.tremor_power = 0;
_root.stop_all_respawns = 1;
_root.ultraspeed_activated = 0;
_root.death_animation_ended = 0;
_root.mission_is_failed = 0;
_root.gravity_nuke_in_action = 0;
_root.blackhole_activated = 0;
_root.limit_unstable_zone = 0;
_root.current_energy_cost = 1;
_root.stability_rating = 100;
_root.speed = 0;
_root.mmm2_trigger_1 = 0;
_root.mmm2_trigger_2 = 0;
_root.mmm2_trigger_3 = 0;
_root.mmm2_trigger_4 = 0;
_root.mmm2_trigger_5 = 0;
_root.mmm2_trigger_6 = 0;
_root.mmm2_trigger_7 = 0;
_root.mmm2_trigger_8 = 0;
_root.mmm2_trigger_9 = 0;
_root.heavy_tank_count = 0;
_root.shakescreen = 0;
_root.trace_mammoth = 0;
_root.justgotaway = 0;
_root.explosions_count = 0;
_root.enemy_count = 0;
_root.enemies_onthefield = 0;
_root.kursor = 1;
_root.shleifcount = 0;
_root.ball_ready_to_launch = 0;
_root.powerups_count = 0;
function_timer_2 = 0;
_root.antimatter_time = 0;
_root.antimatter_time_bonus = 10;
_root.speedup_time = 0;
_root.speedup_time_bonus = 15;
_root.energyup_time = 0;
_root.energyup_time_bonus = 15;
_root.structureup_time = 0;
_root.structureup_time_bonus = 20;
_root.nodelay_time = 0;
_root.nodelay_time_bonus = 10;
_root.stabilityup_time = 0;
_root.stabilityup_time_bonus = 20;
_root.shock_tower_timeout = 0;
_root.tremor_tower_timeout = 0;
_root.shockwave_timeout = 0;
_root.manipulator_timeout = 0;
_root.manipulator2_timeout = 0;
_root.hacking_timeout = 0;
_root.ballcatcher_timeout = 0;
_root.implosion_timeout = 0;
_root.tier2projectiles_timeout = 0;
_root.manipulator_available = 0;
_root.manipulator2_available = 0;
_root.hacking_available = 0;
_root.ballcatcher_available = 0;
_root.shockwave_available = 0;
_root.implosion_available = 0;
_root.antimatter_available = 0;
_root.shock_tower_available = 0;
_root.tremor_tower_available = 0;
_root.enemy_alive_0 = 0;
_root.enemy_alive_1 = 0;
_root.enemy_alive_2 = 0;
_root.enemy_alive_3 = 0;
_root.enemy_alive_4 = 0;
_root.enemy_alive_5 = 0;
_root.enemy_alive_6 = 0;
_root.enemy_alive_7 = 0;
_root.enemy_alive_8 = 0;
_root.enemy_alive_9 = 0;
_root.enemy_alive_10 = 0;
_root.enemy_alive_11 = 0;
_root.enemy_alive_12 = 0;
_root.enemy_alive_13 = 0;
_root.enemy_alive_14 = 0;
_root.enemy_alive_15 = 0;
_root.enemy_alive_16 = 0;
_root.enemy_alive_17 = 0;
_root.enemy_alive_18 = 0;
_root.enemy_alive_19 = 0;
_root.enemy_alive_20 = 0;
_root.enemy_alive_21 = 0;
_root.enemy_alive_22 = 0;
_root.enemy_alive_23 = 0;
_root.enemy_alive_24 = 0;
_root.enemy_alive_25 = 0;
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 0;
_root.ball_type_available_3 = 0;
_root.ball_type_available_4 = 0;
_root.ball_type_available_5 = 0;
_root.ball_type_available_7 = 0;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
tarakan_rr = 0;
spikey_rr = 0;
predator_rr = 0;
smooth_tank_rr = 0;
if (_root.game_modo eq 4) {
_root.lvl = 100;
_root.skill_points = 80;
} else if (_root.game_modo eq 5) {
_root.lvl = 100;
_root.skill_points = 30;
} else if (_root.game_modo eq 6) {
_root.lvl = 100;
_root.skill_points = 60;
} else if (_root.game_modo eq 10) {
_root.lvl = 999;
_root.skill_points = 1000;
}
}
if (soundsset != 1337) {
soundsset = 1337;
_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.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.deploy_snd = new Sound();
_root.deploy_snd.attachSound("deploy");
_root.hacking_snd = new Sound();
_root.hacking_snd.attachSound("hacking");
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
_root["enemy_alive_" + i] = 1;
} else {
_root["enemy_alive_" + i] = 0;
}
i++;
}
_root.enemies_onthefield = ((((((((((((((((((((((((_root.enemy_alive_0 + _root.enemy_alive_1) + _root.enemy_alive_2) + _root.enemy_alive_3) + _root.enemy_alive_4) + _root.enemy_alive_5) + _root.enemy_alive_6) + _root.enemy_alive_7) + _root.enemy_alive_8) + _root.enemy_alive_9) + _root.enemy_alive_10) + _root.enemy_alive_11) + _root.enemy_alive_12) + _root.enemy_alive_13) + _root.enemy_alive_14) + _root.enemy_alive_15) + _root.enemy_alive_16) + _root.enemy_alive_17) + _root.enemy_alive_18) + _root.enemy_alive_19) + _root.enemy_alive_20) + _root.enemy_alive_21) + _root.enemy_alive_22) + _root.enemy_alive_23) + _root.enemy_alive_24) + _root.enemy_alive_25;
if (_root.stop_all_respawns != 0) {
_root.stop_all_respawns = 0;
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
}
_root.stability_skillbonus = _root.stability_points * _root.stability_bonus_per_level;
_root.energy_max = 1000 + (_root.energy_points * (1000 * (_root.energy_bonus_per_level / 100)));
_root.energy_regen = (2 + (0.05 * _root.energy_points)) * _root.energy_regen_multiplyer;
if ((_root.manipulator_points >= _root.manipulator_points_step_1) and (_root.manipulator_points < _root.manipulator_points_step_2)) {
_root.manipulator_available = 1;
_root.manipulator_lvl = 1;
} else if ((_root.manipulator_points >= _root.manipulator_points_step_2) and (_root.manipulator_points < _root.manipulator_points_max)) {
_root.manipulator_available = 1;
_root.manipulator_lvl = 2;
} else if (_root.manipulator_points >= _root.manipulator_points_max) {
_root.manipulator_available = 1;
_root.manipulator_lvl = 3;
}
if (_root.shockwave_points >= _root.shockwave_points_max) {
_root.shockwave_available = 1;
}
if (_root.antimatter_points >= _root.antimatter_points_max) {
_root.antimatter_available = 1;
}
if (_root.implosion_points >= _root.implosion_points_max) {
_root.implosion_available = 1;
}
if (_root.manipulator2_points >= _root.manipulator2_points_max) {
_root.manipulator2_available = 1;
}
if (_root.hacking_points >= _root.hacking_points_max) {
_root.hacking_available = 1;
}
if (_root.ballcatcher_points >= _root.ballcatcher_points_max) {
_root.ballcatcher_available = 1;
}
if (_root.shocktower_points >= _root.shocktower_points_max) {
_root.shock_tower_available = 1;
}
if (_root.tremor_points >= _root.tremor_points_max) {
_root.tremor_tower_available = 1;
}
if ((_root.structure <= 0) and (_root.base_dead != 1)) {
_root.base_dead = 1;
_root.game.base_death._visible = true;
_root.game.base_death.gotoAndPlay(2);
}
if (_root.game_on_hold eq 1) {
_root.stop_all_respawns = 1;
_root.structure = _root.structure_max;
_root.energy = _root.energy_max;
_root.justgotaway = 0;
_root.antimatter_timeout = 0;
_root.shockwave_timeout = 0;
_root.manipulator_timeout = 0;
_root.implosion_timeout = 0;
_root.tier2projectiles_timeout = 0;
_root.shock_tower_timeout = 0;
_root.tremor_tower_timeout = 0;
_root.ballcatcher_timeout = 0;
_root.manipulator_timeout = 0;
_root.manipulator2_timeout = 0;
_root.implosion_timeout = 0;
_root.shockwave_timeout = 0;
_root.hacking_timeout = 0;
_root.tier2projectiles_timeout = 0;
_root.kursor = 1;
removeMovieClip(_root.game.ball1);
removeMovieClip(_root.game.ball2);
removeMovieClip(_root.game.ball3);
removeMovieClip(_root.game.ball4);
removeMovieClip(_root.game.ball5);
_root.ball_ready_to_launch = 0;
_root.game.launch._visible = false;
} else {
_root.game.launch._visible = true;
}
if (_root.victory eq 1) {
_root.kursor = 1;
removeMovieClip(_root.game.ball1);
removeMovieClip(_root.game.ball2);
removeMovieClip(_root.game.ball3);
removeMovieClip(_root.game.ball4);
removeMovieClip(_root.game.ball5);
_root.ball_ready_to_launch = 0;
_root.game.launch._visible = false;
_root.ingame_menu.gotoAndStop(1);
_root.levelup_menu.gotoAndStop(1);
_root.ingame_menu._visible = false;
_root.levelup_menu._visible = false;
removeMovieClip(_root.ingame_menu);
removeMovieClip(_root.levelup_menu);
_root.victory_menu.gotoAndStop(2);
}
if (_root.base_dead eq 1) {
_root.showwhichballinfo = 0;
_root.ingame_menu.gotoAndStop(1);
_root.levelup_menu.gotoAndStop(1);
_root.ingame_menu._visible = false;
_root.levelup_menu._visible = false;
removeMovieClip(_root.ingame_menu);
removeMovieClip(_root.levelup_menu);
_root.stop_all_respawns = 1;
_root.kursor = 1;
if (_root.death_animation_ended eq 1) {
_root.game_over_menu.gotoAndStop(2);
}
removeMovieClip(_root.game.ball);
removeMovieClip(_root.game.ball1);
removeMovieClip(_root.game.ball2);
removeMovieClip(_root.game.ball3);
removeMovieClip(_root.game.ball4);
removeMovieClip(_root.game.ball5);
removeMovieClip(_root.game.launch);
removeMovieClip(_root.game.lipu4ka);
removeMovieClip(_root.game.zones);
}
if (ball_targeting eq 1) {
lipu4ka._visible = true;
lipu4ka.lp._width = Math.sqrt((lipu4ka_dx * lipu4ka_dx) + (lipu4ka_dy * lipu4ka_dy));
lipu4ka_speed = 1;
var lipu4ka_dx = (_root.game[_root.currentballbeinglaunched]._x - center._x);
var lipu4ka_dy = (_root.game[_root.currentballbeinglaunched]._y - center._y);
var angle1 = (Math.atan2(lipu4ka_dy, lipu4ka_dx) * 57.2957795130823);
var angle2 = lipu4ka._rotation;
if (angle2 < 0) {
angle2 = angle2 + 360;
}
if (angle1 < 0) {
angle1 = angle1 + 360;
}
var a = (angle2 - angle1);
if (a > 180) {
a = a - 360;
} else if (a < -180) {
a = a + 360;
}
a = a * lipu4ka_speed;
if (Math.abs(a) > 0.01) {
lipu4ka._rotation = lipu4ka._rotation - a;
} else {
lipu4ka._rotation = angle1;
}
} else {
lipu4ka._visible = false;
}
if (yifflocationremembered != 1337) {
yifflocationremembered = 1337;
lipu4ka_rx = _root.game.lipu4ka._x;
zones_rx = _root.game.zones._x;
center_rx = _root.game.center._x;
launch_rx = _root.game.launch._x;
base_death_rx = _root.game.base_death._x;
antimatter_chargin_rx = _root.antimatter_chargin._x;
}
sdvig = 267;
if (_root.launcher_location eq 1) {
_root.game.lipu4ka._x = lipu4ka_rx;
_root.game.zones._x = zones_rx;
_root.game.center._x = center_rx;
_root.game.launch._x = launch_rx;
_root.game.base_death._x = base_death_rx;
_root.antimatter_chargin._x = antimatter_chargin_rx;
_root.antimatter_chargin._x = antimatter_chargin_rx - sdvig;
} else if (_root.launcher_location eq 2) {
_root.game.lipu4ka._x = lipu4ka_rx + sdvig;
_root.game.zones._x = zones_rx + sdvig;
_root.game.center._x = center_rx + sdvig;
_root.game.launch._x = launch_rx + sdvig;
_root.game.base_death._x = base_death_rx + sdvig;
_root.antimatter_chargin._x = antimatter_chargin_rx;
} else if (_root.launcher_location eq 3) {
_root.game.lipu4ka._x = (lipu4ka_rx + (sdvig * 2)) + 4;
_root.game.zones._x = (zones_rx + (sdvig * 2)) + 4;
_root.game.center._x = (center_rx + (sdvig * 2)) + 4;
_root.game.launch._x = (launch_rx + (sdvig * 2)) + 4;
_root.game.base_death._x = (base_death_rx + (sdvig * 2)) + 4;
_root.antimatter_chargin._x = (antimatter_chargin_rx + sdvig) + 4;
}
if (ball_targeting eq 1) {
ballSpeedAndDirection(ball_targeting_name);
_root.kursor = 2;
zones._visible = true;
} else {
_root.speed = 0;
_root.stability_rating = 100;
zones._visible = false;
}
var i = 1;
while (i < 6) {
if (_root.game["ball" + i]) {
if (_root.game["ball" + i].go eq 1) {
WallCollision(["ball" + i]);
shleifOtSharika(["ball" + i]);
}
}
i++;
}
var i = 0;
while (i < 6) {
if ((_root.game["ball" + i].go eq 1) and (_root.game["ball" + i].captured != 1)) {
MoveTarget("ball" + i);
}
i++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if ((_root.game["enemy" + i].allset eq 1) and (_root.game["enemy" + i].captured != 1)) {
MoveTarget("enemy" + i);
}
i++;
}
var i = (_root.dla_skolkih_unitov_funkcii + 1);
while ((--i) + 1) {
var b1 = ("enemy" + i);
var j = i;
while ((--j) + 1) {
var b2 = ("enemy" + j);
if (_root.game["enemy" + j] and _root.game["enemy" + i]) {
EnemyToEnemyCollisionDetectionAndReaction(b1, b2);
}
}
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
Enemy2WallCollision("enemy" + i);
var ai = 0;
while (ai < 6) {
if (_root.game["ball" + ai]) {
if (_root.game["ball" + ai].captured != 1) {
ballToEnemyCollisionDetectionAndReaction("ball" + ai, "enemy" + i);
}
}
ai++;
}
}
i++;
}
function_timer_2++;
if (function_timer_2 >= 3) {
function_timer_2 = 0;
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (["enemy" + i]) {
var j = 0;
while (j < _root.dla_skolkih_unitov_funkcii) {
if (i != j) {
if (["enemy" + j]) {
ZashitaOtRespaNaOdnomMeste("enemy" + i, "enemy" + j);
}
}
j++;
}
}
i++;
}
}
zashita_ot_skleivaniya_count++;
if (zashita_ot_skleivaniya_count >= 2) {
zashita_ot_skleivaniya_count = 0;
var i = (_root.dla_skolkih_unitov_funkcii + 1);
while ((--i) + 1) {
var b1 = ("enemy" + i);
var j = i;
while ((--j) + 1) {
var b2 = ("enemy" + j);
if (_root.game["enemy" + j] and _root.game["enemy" + i]) {
ZashitaOtSkleivaniya(b1, b2);
}
}
}
}
var i = 0;
while (i < 6) {
if ((_root.game["ball" + i].go eq 1) and (_root.game["ball" + i].captured != 1)) {
RenderTargets("ball" + i);
}
i++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if ((_root.game["enemy" + i].allset eq 1) and (_root.game["enemy" + i].captured != 1)) {
RenderTargets("enemy" + i);
}
i++;
}
if (_root.implosion_go eq 1) {
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
Implosion("enemy" + i);
}
i++;
}
}
var lll = 0;
while (lll < 51) {
if (_root.game["zomg_nuke_" + lll].gravity_nuke_in_action eq 1) {
gravity_nuke_epicenter = _root.game["zomg_nuke_" + lll].inner_size._width / 2;
gravity_nuke_radius = _root.game["zomg_nuke_" + lll].outer_size._width / 2;
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
GravityNuke("enemy" + i, _root.game["zomg_nuke_" + lll]._x, _root.game["zomg_nuke_" + lll]._y, gravity_nuke_epicenter, gravity_nuke_radius);
}
i++;
}
}
lll++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
var mm = 0;
while (mm < 5) {
if (_root.game["enemy" + i] and _root.game["shockwave_tower_" + mm]) {
ShockwaveColumnSucking("enemy" + i, _root.game["shockwave_tower_" + mm]._x, _root.game["shockwave_tower_" + mm]._y);
xdist = Math.abs(_root.game["enemy" + i]._x - _root.game["shockwave_tower_" + mm]._x);
ydist = Math.abs(_root.game["enemy" + i]._y - _root.game["shockwave_tower_" + mm]._y);
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if ((_root.game["enemy" + i].radius + 32.5) > dist) {
var iu = 0;
while (iu < _root.dla_skolkih_unitov_funkcii) {
Explosion("enemy" + iu, _root.game["shockwave_tower_" + mm]._x, _root.game["shockwave_tower_" + mm]._y, 8);
iu++;
}
_root.game["shockwave_tower_" + mm].energy_field.play();
}
}
mm++;
}
i++;
}
if (_root.tremor_power > 9) {
_root.tremor_power = -11;
} else {
_root.tremor_power++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
var mm = 0;
while (mm < 5) {
if (_root.game["enemy" + i] and _root.game["tremor_tower_" + mm]) {
TremorColumnEffect("enemy" + i, _root.game["tremor_tower_" + mm]._x, _root.game["tremor_tower_" + mm]._y, mm);
}
mm++;
}
i++;
}
var i = 0;
while (i < 6) {
var j = 0;
while (j < 6) {
if (_root.game["ball" + i] and _root.game["ballcatcher_" + j]) {
BallcatcherEffect("ball" + i, _root.game["ballcatcher_" + j]._x, _root.game["ballcatcher_" + j]._y, j);
}
j++;
}
i++;
}
var zyzy = 0;
while (zyzy < 51) {
if (_root.game["singularityblow" + zyzy]) {
if (_root.game["singularityblow" + zyzy].blackhole_activated eq 1) {
var i = 0;
while (i < 6) {
if (_root.game["ball" + i]) {
BlackHoleEffect("ball" + i, _root.game["singularityblow" + zyzy]._x, _root.game["singularityblow" + zyzy]._y);
}
i++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (["enemy" + i]) {
BlackHoleEffect("enemy" + i, _root.game["singularityblow" + zyzy]._x, _root.game["singularityblow" + zyzy]._y);
}
i++;
}
}
}
zyzy++;
}
if (_root.game_modo eq 1) {
if (_root.wave eq 1) {
_root.wave_length = 30;
} else if (_root.wave eq 2) {
_root.wave_length = 30;
} else if (_root.wave eq 3) {
_root.wave_length = 30;
} else if (_root.wave eq 4) {
_root.wave_length = 60;
} else if (_root.wave eq 5) {
_root.wave_length = 30;
} else if (_root.wave eq 6) {
_root.wave_length = 30;
} else if (_root.wave eq 7) {
_root.wave_length = 60;
} else if (_root.wave eq 8) {
_root.wave_length = 60;
} else if (_root.wave eq 9) {
_root.wave_length = 30;
} else if (_root.wave eq 10) {
_root.wave_length = 60;
} else if (_root.wave eq 11) {
_root.wave_length = 30;
} else if (_root.wave eq 12) {
_root.wave_length = 60;
} else if (_root.wave eq 13) {
_root.wave_length = 60;
} else if (_root.wave eq 14) {
_root.wave_length = 70;
} else if (_root.wave eq 15) {
_root.wave_length = 100;
} else if (_root.wave eq 16) {
_root.wave_length = 60;
} else if (_root.wave eq 17) {
_root.wave_length = 60;
} else if (_root.wave eq 18) {
_root.wave_length = 80;
} else if (_root.wave eq 19) {
_root.wave_length = 60;
} else if (_root.wave eq 20) {
_root.wave_length = 100;
} else if (_root.wave eq 21) {
_root.wave_length = 50;
} else if (_root.wave eq 22) {
_root.wave_length = 100;
} else if (_root.wave eq 23) {
_root.wave_length = 80;
} else if (_root.wave eq 24) {
_root.wave_length = 60;
} else if (_root.wave eq 25) {
_root.wave_length = 40;
} else if (_root.wave eq 26) {
_root.wave_length = 100;
} else if (_root.wave eq 27) {
_root.wave_length = 60;
} else if (_root.wave eq 28) {
_root.wave_length = 100;
} else if (_root.wave eq 29) {
_root.wave_length = 100;
} else if (_root.wave eq 30) {
_root.wave_length = 300;
}
} else if (_root.game_modo != 1) {
_root.wave_length = 10000000 /* 0x989680 */;
}
if (_root.game_on_hold != 1) {
if (_root.base_dead != 1) {
_root.wave_timer_rough = _root.wave_timer_rough + 0.0333333333333333;
}
elapsed_time = Math.floor(_root.wave_timer_rough);
time_difference = Math.floor(_root.wave_length - _root.wave_timer_rough);
if (time_difference < 0) {
time_difference = 0;
}
_root.time_show = "Time: " + time_difference;
if (_root.game_modo != 1) {
_root.time_show = "Time: " + elapsed_time;
}
} else {
_root.time_show = "Time: Pause";
}
if (time_difference <= 0) {
_root.stop_all_respawns = 1;
}
if ((_root.wave_timer_rough > _root.wave_length) and (_root.enemies_onthefield eq 0)) {
_root.wave++;
if (_root.wave eq 31) {
_root.victory = 1;
} else {
_root.misses = 0;
_root.game_on_hold = 1;
_root.wave_timer_rough = 0;
_root.showwhichballinfo = 0;
_root.antimatter_time = 0;
_root.speedup_time = 0;
_root.energyup_time = 0;
_root.structureup_time = 0;
_root.nodelay_time = 0;
_root.stabilityup_time = 0;
}
}
if (_root.game_modo eq 1) {
if ((_root.wave eq 6) and (_root.justgotaway eq 3)) {
_root.mission_is_failed = 1;
}
if ((_root.wave eq 15) and (_root.justgotaway eq 6)) {
_root.mission_is_failed = 1;
}
if ((_root.wave eq 22) and (_root.justgotaway eq 14)) {
_root.mission_is_failed = 1;
}
if ((_root.wave eq 29) and (_root.justgotaway eq 16)) {
_root.mission_is_failed = 1;
}
if (_root.wave eq 30) {
if ((((_root.justgotaway eq 16) or (_root.justgotaway eq 14)) or (_root.justgotaway eq 3)) or (_root.justgotaway eq 6)) {
_root.mission_is_failed = 1;
}
}
}
if (_root.game_modo eq 2) {
_root.powerup_respawn_rate = 7;
_root.initial_lives = 10;
_root.respawn_pattern = 3;
} else if (_root.game_modo eq 3) {
_root.powerup_respawn_rate = 7;
_root.initial_lives = 15;
_root.respawn_pattern = 2;
}
if ((_root.game_modo eq 2) or (_root.game_modo eq 3)) {
if (_root.wave_timer_rough < 600) {
_root.enemy_speed = Math.floor(1 + (0.5 * (_root.wave_timer_rough / 600)));
} else {
_root.enemy_speed = Math.floor(1.5 + (0.05 * ((_root.wave_timer_rough - 600) / 20)));
}
}
if ((_root.game_modo eq 4) and (_root.wave_timer_rough > 600)) {
_root.structure = _root.structure - 10;
}
if (_root.game_modo eq 4) {
_root.armageddon_timer = Math.floor(600 - _root.wave_timer_rough);
if (_root.wave_timer_rough < 500) {
_root.enemy_speed = Math.floor(1 + (0.6 * (_root.wave_timer_rough / 500)));
} else {
_root.enemy_speed = 1.6;
}
}
if (_root.game_modo eq 5) {
if (_root.wave_timer_rough < 200) {
_root.enemy_speed = Math.floor(1 + (0.5 * (_root.wave_timer_rough / 200)));
} else {
_root.enemy_speed = 1.5 + (0.1 * ((_root.wave_timer_rough - 200) / 20));
}
_root.antimatter_time = 999;
_root.speedup_time = 999;
}
if (_root.game_modo eq 6) {
if (_root.wave_timer_rough < 200) {
_root.enemy_speed = Math.floor(1 + (0.5 * (_root.wave_timer_rough / 250)));
} else {
_root.enemy_speed = 1.5 + (0.1 * ((_root.wave_timer_rough - 250) / 20));
}
}
if (_root.game_modo eq 10) {
if (_root.game_on_hold eq 1) {
_root.enemy_speed = 1;
}
if (_root.crazyacceleration eq 1) {
_root.enemy_speed = _root.enemy_speed * 1.003;
} else {
_root.enemy_speed = 1.1;
}
if (_root.cm_invul eq 1) {
_root.structure_max = 999999 /* 0x0F423F */;
_root.structure = _root.structure_max;
}
if (_root.cooldowncheat != 1) {
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 20;
_root.manipulator2_loading_time = 25;
_root.hacking_loading_time = 35;
_root.ballcatcher_loading_time = 100;
_root.shock_tower_loading_time = 60;
_root.tremor_tower_loading_time = 60;
_root.tier2projectiles_loading_time = 10;
} else {
_root.implosion_loading_time = 0.1;
_root.shockwave_loading_time = 0.1;
_root.manipulator_loading_time = 0.1;
_root.manipulator2_loading_time = 0.1;
_root.hacking_loading_time = 0.1;
_root.ballcatcher_loading_time = 0.1;
_root.shock_tower_loading_time = 0.1;
_root.tremor_tower_loading_time = 0.1;
_root.tier2projectiles_loading_time = 0.1;
}
_root.dla_skolkih_unitov_funkcii = _root.max_enemies;
_root.shirina_potoka_mobov = 170;
_root.powerup_respawn_rate = 6;
if (setvarsforconstruct != "yiff") {
setvarsforconstruct = "yiff";
_root.respawn_pattern = 3;
_root.max_enemies = 8;
_root.batch_rr = 0;
_root.cm_invul = 0;
_root.cooldowncheat = 0;
_root.powerupcheatmenu = 0;
_root.cm_spikey_rr = 0;
_root.cm_clinch_tank_rr = 0;
_root.cm_singularity_tank_rr = 0;
_root.cm_mammoth_tank_rr = 0;
_root.cm_mammoth_tank2_rr = 0;
_root.cm_kindabike_rr = 0;
_root.cm_smooth_tank_rr = 0;
_root.cm_ord_tank_rr = 0;
_root.cm_lazer_tank_rr = 0;
_root.cm_hover_tank_rr = 0;
_root.cm_heavy_tank_rr = 0;
_root.cm_railgrav_tank_rr = 0;
_root.cm_nuketruck_rr = 0;
_root.cm_black_tank_rr = 0;
_root.cm_mech2_rr = 0;
_root.cm_tarakan_rr = 0;
_root.cm_mech1_rr = 0;
_root.cm_kindabike2_rr = 0;
_root.cm_sciencevessel_rr = 0;
_root.cm_square_tank_rr = 0;
_root.cm_dragoon_rr = 0;
_root.cm_predator_rr = 0;
}
}
Instance of Symbol 438 MovieClip "base_death" in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 731 MovieClip "shockwave_tower_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
if (_name != "shockwave_tower_source") {
health = 500;
fullhealth = health;
}
}
onClipEvent (enterFrame) {
hp_bar.health = health;
hp_bar.fullhealth = fullhealth;
if (_name != "shockwave_tower_source") {
if (_root.game_on_hold eq 1) {
removeMovieClip(this);
}
lifetime = 30;
po_skoka_snimat_v_sekundu = fullhealth / lifetime;
health = health - (0.0333333333333333 * po_skoka_snimat_v_sekundu);
}
}
Instance of Symbol 757 MovieClip "tremor_tower_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "tremor_tower_source") {
_visible = false;
stop();
}
}
onClipEvent (load) {
if (_name != "tremor_tower_source") {
health = 1000;
fullhealth = health;
}
}
onClipEvent (enterFrame) {
hp_bar.health = health;
hp_bar.fullhealth = fullhealth;
if (_name != "tremor_tower_source") {
if (_root.game_on_hold eq 1) {
removeMovieClip(this);
}
lifetime = 30;
po_skoka_snimat_v_sekundu = fullhealth / lifetime;
health = health - (0.0333333333333333 * po_skoka_snimat_v_sekundu);
}
}
Instance of Symbol 776 MovieClip "ballcatcher_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "ballcatcher_source") {
_visible = false;
stop();
}
}
onClipEvent (load) {
if (_name != "ballcatcher_source") {
health = 1000;
fullhealth = health;
rotations = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "ballcatcher_source") {
if (_root.game_on_hold eq 1) {
removeMovieClip(this);
}
hp_bar.health = health;
hp_bar.fullhealth = fullhealth;
lifetime = 40;
if (rotations > 0) {
po_skoka_snimat_v_sekundu = fullhealth / lifetime;
health = health - ((0.0333333333333333 * po_skoka_snimat_v_sekundu) * rotations);
rotations = 0;
}
}
}
Instance of Symbol 827 MovieClip "explosions_small" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 846 MovieClip "explosions_medium" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 876 MovieClip "explosions_big" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 896 MovieClip "explosions_hueg" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 941 MovieClip "explosions_nuke" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 1086 MovieClip "singularity_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go eq 1) {
play();
if (_root.game_on_hold eq 1) {
removeMovieClip(this);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1098 MovieClip "singularity2_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go eq 1) {
play();
if (_root.game_on_hold eq 1) {
removeMovieClip(this);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1315 MovieClip "udar" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (anim.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 1455 MovieClip "powerup_source" in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
ttime = 0;
}
onClipEvent (enterFrame) {
if (_name != "powerup_source") {
ttime = ttime + 0.032258064516129;
timeleftpercent = Math.floor(((_root.powerup_timeout - ttime) / _root.powerup_timeout) * 100);
showtime.gauge.gotoAndStop(timeleftpercent);
if (ttime > _root.powerup_timeout) {
removeMovieClip(this);
}
if (cleared eq 1) {
btn._visible = false;
removeMovieClip(bkgrnd);
removeMovieClip(sign);
removeMovieClip(ring);
if (clearing.remove eq 1) {
removeMovieClip(this);
}
}
} else {
gotoAndStop (1);
_visible = false;
}
}
Instance of Symbol 1459 MovieClip "shleif_blue" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_blue") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_purple" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_purple") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_green" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_green") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_white" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_white") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_gold" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_gold") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_red" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_red") {
gotoAndStop (25);
}
}
Instance of Symbol 1459 MovieClip "shleif_black" in Symbol 1475 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_black") {
gotoAndStop (25);
}
}
Instance of Symbol 1469 MovieClip "upper_wall" in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 1472 MovieClip in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(90000);
this.swapDepths(_root.game.wall1);
removeMovieClip(this);
}
Instance of Symbol 1472 MovieClip in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(90001);
this.swapDepths(_root.game.wall2);
removeMovieClip(this);
}
Instance of Symbol 1474 MovieClip "bottom_wall" in Symbol 1475 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 1475 MovieClip Frame 2
_root.game.enemy.gotoAndStop(3);
_root.game.enemy._visible = false;
_root.game.ball.gotoAndStop(3);
_root.game.ball._visible = false;
_root.game.shleif.gotoAndStop(20);
_root.game.shleif._visible = false;
_root.game.udar.gotoAndStop(20);
_root.game.udar._visible = false;
_root.game.implosion.gotoAndStop(1);
_root.game.implosion._visible = false;
_root.game.explosions_small.gotoAndStop(55);
_root.game.explosions_small._visible = false;
_root.game.explosions_medium.gotoAndStop(55);
_root.game.explosions_medium._visible = false;
_root.game.explosions_big.gotoAndStop(55);
_root.game.explosions_big._visible = false;
_root.game.explosions_hueg.gotoAndStop(55);
_root.game.explosions_hueg._visible = false;
_root.game.explosions_nuke.gotoAndStop(55);
_root.game.explosions_nuke._visible = false;
_root.game.gravity_shockwave.gotoAndStop(55);
_root.game.gravity_shockwave._visible = false;
_root.game.teh_nuke._visible = false;
if (((_root.ball_ready_to_launch != 1) and (_root.base_dead != 1)) and (_root.game_on_hold != 1)) {
if (_root.game.launch.ball_charging.ball_ready != 1) {
_root.game.launch.ball_charging.play();
} else {
_root.game.launch.ball_charging.gotoAndStop(1);
_root.game.launch.ball_charging.ball_ready = 0;
if (!_root.game.ball1) {
duplicateMovieClip (_root.game.ball, "ball1", 10000);
_root.game.ball1._x = _root.game.center._x - 0.01;
_root.game.ball1._y = _root.game.center._y - 0.01;
_root.game.ball1.sfgfg = 1;
_root.ball_ready_to_launch = 1;
} else if (!_root.game.ball2) {
duplicateMovieClip (_root.game.ball, "ball2", 10001);
_root.game.ball2._x = _root.game.center._x - 0.01;
_root.game.ball2._y = _root.game.center._y - 0.01;
_root.game.ball2.sfgfg = 1;
_root.ball_ready_to_launch = 1;
} else if (!_root.game.ball3) {
duplicateMovieClip (_root.game.ball, "ball3", 10002);
_root.game.ball3._x = _root.game.center._x - 0.01;
_root.game.ball3._y = _root.game.center._y - 0.01;
_root.game.ball3.sfgfg = 1;
_root.ball_ready_to_launch = 1;
} else if (!_root.game.ball4) {
duplicateMovieClip (_root.game.ball, "ball4", 10003);
_root.game.ball4._x = _root.game.center._x - 0.01;
_root.game.ball4._y = _root.game.center._y - 0.01;
_root.game.ball4.sfgfg = 1;
_root.ball_ready_to_launch = 1;
} else if (!_root.game.ball5) {
duplicateMovieClip (_root.game.ball, "ball5", 10004);
_root.game.ball5._x = _root.game.center._x - 0.01;
_root.game.ball5._y = _root.game.center._y - 0.01;
_root.game.ball5.sfgfg = 1;
_root.ball_ready_to_launch = 1;
}
}
}
if (_root.load_slot eq "slot1") {
_root.load_slot = 0;
save_slot1 = SharedObject.getLocal("save_slot1");
if (save_slot1.data.saved eq 1) {
_root.wave = save_slot1.data.wave;
_root.score = save_slot1.data.score;
_root.misses = save_slot1.data.misses;
_root.lvl = save_slot1.data.lvl;
_root.kills_count = save_slot1.data.kills_count;
_root.kills_exp_count = save_slot1.data.kills_exp_count;
_root.skill_points = save_slot1.data.skill_points;
_root.energy_points = save_slot1.data.energy_points;
_root.stability_points = save_slot1.data.stability_points;
_root.projectile_points = save_slot1.data.projectile_points;
_root.shockwave_points = save_slot1.data.shockwave_points;
_root.implosion_points = save_slot1.data.implosion_points;
_root.manipulator_points = save_slot1.data.manipulator_points;
_root.antimatter_points = save_slot1.data.antimatter_points;
_root.manipulator2_points = save_slot1.data.manipulator2_points;
_root.hacking_points = save_slot1.data.hacking_points;
_root.ballcatcher_points = save_slot1.data.ballcatcher_points;
_root.shocktower_points = save_slot1.data.shocktower_points;
_root.tremor_points = save_slot1.data.tremor_points;
}
} else if (_root.load_slot eq "slot2") {
_root.load_slot = 0;
save_slot2 = SharedObject.getLocal("save_slot2");
if (save_slot2.data.saved eq 1) {
_root.wave = save_slot2.data.wave;
_root.score = save_slot2.data.score;
_root.misses = save_slot2.data.misses;
_root.lvl = save_slot2.data.lvl;
_root.kills_count = save_slot2.data.kills_count;
_root.kills_exp_count = save_slot2.data.kills_exp_count;
_root.skill_points = save_slot2.data.skill_points;
_root.energy_points = save_slot2.data.energy_points;
_root.stability_points = save_slot2.data.stability_points;
_root.projectile_points = save_slot2.data.projectile_points;
_root.shockwave_points = save_slot2.data.shockwave_points;
_root.implosion_points = save_slot2.data.implosion_points;
_root.manipulator_points = save_slot2.data.manipulator_points;
_root.antimatter_points = save_slot2.data.antimatter_points;
_root.manipulator2_points = save_slot2.data.manipulator2_points;
_root.hacking_points = save_slot2.data.hacking_points;
_root.ballcatcher_points = save_slot2.data.ballcatcher_points;
_root.shocktower_points = save_slot2.data.shocktower_points;
_root.tremor_points = save_slot2.data.tremor_points;
}
} else if (_root.load_slot eq "slot3") {
_root.load_slot = 0;
save_slot3 = SharedObject.getLocal("save_slot3");
if (save_slot3.data.saved eq 1) {
_root.wave = save_slot3.data.wave;
_root.score = save_slot3.data.score;
_root.misses = save_slot3.data.misses;
_root.lvl = save_slot3.data.lvl;
_root.kills_count = save_slot3.data.kills_count;
_root.kills_exp_count = save_slot3.data.kills_exp_count;
_root.skill_points = save_slot3.data.skill_points;
_root.energy_points = save_slot3.data.energy_points;
_root.stability_points = save_slot3.data.stability_points;
_root.projectile_points = save_slot3.data.projectile_points;
_root.shockwave_points = save_slot3.data.shockwave_points;
_root.implosion_points = save_slot3.data.implosion_points;
_root.manipulator_points = save_slot3.data.manipulator_points;
_root.antimatter_points = save_slot3.data.antimatter_points;
_root.manipulator2_points = save_slot3.data.manipulator2_points;
_root.hacking_points = save_slot3.data.hacking_points;
_root.ballcatcher_points = save_slot3.data.ballcatcher_points;
_root.shocktower_points = save_slot3.data.shocktower_points;
_root.tremor_points = save_slot3.data.tremor_points;
}
}
if (ksgsagsfg != 1) {
ksgsagsfg = 1;
enemy.gotoAndStop(3);
}
if (mammoth_tank_onthefield eq 1) {
mammoth_tank_rr = 0;
}
if (_root.heavy_tank_count > 1) {
heavy_tank_rr = 0;
}
if (random(ord_tank_rr) eq 1) {
Spawn(0);
}
if (random(lazer_tank_rr) eq 1) {
Spawn(1);
}
if (random(hover_tank_rr) eq 1) {
Spawn(2);
}
if (random(mammoth_tank_rr) eq 1) {
Spawn(3);
}
if (random(heavy_tank_rr) eq 1) {
Spawn(4);
}
if (random(railgrav_tank_rr) eq 1) {
Spawn(5);
}
if (random(nuketruck_rr) eq 1) {
Spawn(6);
}
if (random(mech1_rr) eq 1) {
Spawn(7);
}
if (random(black_tank_rr) eq 1) {
Spawn(8);
}
if (random(mech2_rr) eq 1) {
Spawn(9);
}
if (random(sciencevessel_rr) eq 1) {
Spawn(10);
}
if (random(kindabike_rr) eq 1) {
Spawn(11);
}
if (random(kindabike2_rr) eq 1) {
Spawn(12);
}
if (random(mammoth_tank2_rr) eq 1) {
Spawn(13);
}
if (random(clinch_tank_rr) eq 1) {
Spawn(14);
}
if (random(smooth_tank_rr) eq 1) {
Spawn(15);
}
if (random(singularity_tank_rr) eq 1) {
singularity_hueg_count = 0;
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (_root.game["enemy" + i]) {
if (_root.game["enemy" + i].unit_chosen eq 16) {
singularity_hueg_count++;
}
}
i++;
}
if (singularity_hueg_count < 2) {
Spawn(16);
}
}
if (random(square_tank_rr) eq 1) {
Spawn(17);
}
if (random(dragoon_rr) eq 1) {
Spawn(18);
}
if (random(tarakan_rr) eq 1) {
Spawn(19);
}
if (random(spikey_rr) eq 1) {
Spawn(20);
}
if (random(predator_rr) eq 1) {
Spawn(21);
}
if (_root.projectile_points eq 1) {
_root.ball_type_available_2 = 1;
_root.ball_type_available_1 = 1;
} else if (_root.projectile_points eq 2) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 0;
_root.ball_type_available_5 = 0;
_root.ball_type_available_7 = 0;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
} else if (_root.projectile_points eq 3) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 0;
_root.ball_type_available_5 = 0;
_root.ball_type_available_7 = 1;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
} else if (_root.projectile_points eq 4) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 0;
_root.ball_type_available_5 = 1;
_root.ball_type_available_7 = 1;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
} else if (_root.projectile_points eq 5) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 1;
_root.ball_type_available_5 = 1;
_root.ball_type_available_7 = 1;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
} else if (_root.projectile_points eq 6) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 1;
_root.ball_type_available_5 = 1;
_root.ball_type_available_7 = 1;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 1;
} else if (_root.projectile_points eq 7) {
_root.ball_type_available_1 = 1;
_root.ball_type_available_2 = 1;
_root.ball_type_available_3 = 1;
_root.ball_type_available_4 = 1;
_root.ball_type_available_5 = 1;
_root.ball_type_available_7 = 1;
_root.ball_type_available_8 = 1;
_root.ball_type_available_9 = 1;
}
_root.implosion_energycost = _root.implosion_energycost_max;
_root.shockwave_energycost = _root.shockwave_energycost_max;
_root.speed_floored = Math.floor(_root.speed * 10) / 10;
if (_root.stability_rating > 0) {
_root.stability_rating_show = Math.floor(_root.stability_rating) + "%";
} else {
_root.stability_rating_show = "0%";
}
if (_root.base_dead != 1) {
_root.energy_show = (Math.floor(_root.energy) + "/") + Math.floor(_root.energy_max);
_root.structure_show = (Math.floor(_root.structure) + "/") + Math.floor(_root.structure_max);
if (_root.energy < _root.energy_max) {
_root.energy = _root.energy + _root.energy_regen;
} else {
_root.energy = _root.energy_max;
}
if (_root.energy < 0) {
_root.energy = 0;
}
if (_root.structure < _root.structure_max) {
_root.structure = _root.structure + (_root.structure_regen * _root.structureup_regen_multiplyer);
} else {
_root.structure = _root.structure_max;
}
if (_root.structure < 0) {
_root.structure = 0;
}
}
_root.lives_show = "Lives: " + (_root.initial_lives - _root.misses);
_root.lvl_show = "Tech Level: " + _root.lvl;
_root.kills_show = "Kills: " + _root.kills_count;
if (_root.game_modo eq 1) {
if (_root.lvl eq 1) {
_root.kills_max = 10;
} else if (_root.lvl eq 2) {
_root.kills_max = 20;
} else if (_root.lvl eq 3) {
_root.kills_max = 30;
} else if (_root.lvl eq 4) {
_root.kills_max = 40;
} else if (_root.lvl eq 5) {
_root.kills_max = 50;
} else if (_root.lvl eq 6) {
_root.kills_max = 80;
} else if (_root.lvl eq 7) {
_root.kills_max = 150;
} else if (_root.lvl eq 8) {
_root.kills_max = 150;
} else if (_root.lvl eq 9) {
_root.kills_max = 150;
} else if (_root.lvl eq 10) {
_root.kills_max = 200;
} else if (_root.lvl eq 11) {
_root.kills_max = 200;
} else if (_root.lvl eq 12) {
_root.kills_max = 200;
} else if (_root.lvl eq 13) {
_root.kills_max = 200;
} else if (_root.lvl eq 14) {
_root.kills_max = 200;
} else if (_root.lvl eq 15) {
_root.kills_max = 200;
} else if (_root.lvl eq 16) {
_root.kills_max = 200;
} else if (_root.lvl eq 17) {
_root.kills_max = 200;
} else if (_root.lvl eq 18) {
_root.kills_max = 200;
} else if (_root.lvl eq 19) {
_root.kills_max = 600;
} else if (_root.lvl > 19) {
_root.kills_max = 2000;
}
} else if (((_root.game_modo eq 4) or (_root.game_modo eq 5)) or (_root.game_modo eq 6)) {
_root.kills_max = 5000;
} else if (_root.lvl eq 1) {
_root.kills_max = 10;
} else if (_root.lvl eq 2) {
_root.kills_max = 10;
} else if (_root.lvl eq 3) {
_root.kills_max = 10;
} else if (_root.lvl eq 4) {
_root.kills_max = 20;
} else if (_root.lvl eq 5) {
_root.kills_max = 20;
} else if (_root.lvl eq 6) {
_root.kills_max = 20;
} else if (_root.lvl eq 7) {
_root.kills_max = 30;
} else if (_root.lvl eq 8) {
_root.kills_max = 40;
} else if (_root.lvl eq 9) {
_root.kills_max = 50;
} else if (_root.lvl eq 10) {
_root.kills_max = 100;
} else if (_root.lvl eq 11) {
_root.kills_max = 150;
} else if (_root.lvl eq 12) {
_root.kills_max = 200;
} else if (_root.lvl eq 13) {
_root.kills_max = 250;
} else if (_root.lvl eq 14) {
_root.kills_max = 300;
} else if (_root.lvl eq 15) {
_root.kills_max = 300;
} else if (_root.lvl eq 16) {
_root.kills_max = 350;
} else if (_root.lvl eq 17) {
_root.kills_max = 400;
} else if (_root.lvl eq 18) {
_root.kills_max = 400;
} else if (_root.lvl eq 19) {
_root.kills_max = 400;
} else if (_root.lvl > 19) {
_root.kills_max = 2000;
}
if (_root.kills_exp_count >= _root.kills_max) {
_root.lvl++;
_root.kills_exp_count = 0;
_root.skill_points = _root.skill_points + 5;
}
if ((_root.misses > _root.initial_lives) or (_root.mission_is_failed eq 1)) {
_root.base_dead = 1;
_root.death_animation_ended = 1;
}
if (_root.antimatter_time > 0) {
_root.antimatter_time = _root.antimatter_time - 0.0333333333333333;
_root.ball_type = 10;
} else {
_root.antimatter_time = 0;
_root.antimatter_time = 0;
}
if (_root.speedup_time > 0) {
_root.speedup_time = _root.speedup_time - 0.0333333333333333;
_root.ultraspeed_activated = 1;
} else {
_root.speedup_time = 0;
_root.ultraspeed_activated = 0;
}
if (_root.energyup_time > 0) {
_root.energyup_time = _root.energyup_time - 0.0333333333333333;
_root.energy_regen_multiplyer = 5;
} else {
_root.energyup_time = 0;
_root.energy_regen_multiplyer = 1;
}
if (_root.structureup_time > 0) {
_root.structureup_time = _root.structureup_time - 0.0333333333333333;
_root.structureup_regen_multiplyer = 50;
} else {
_root.structureup_time = 0;
_root.structureup_regen_multiplyer = 1;
}
if (_root.nodelay_time > 0) {
_root.nodelay_time = _root.nodelay_time - 0.0333333333333333;
_root.manipulator_timeout = 0;
_root.manipulator2_timeout = 0;
_root.implosion_timeout = 0;
_root.shockwave_timeout = 0;
_root.hacking_timeout = 0;
_root.tier2projectiles_timeout = 0;
} else {
_root.nodelay_time = 0;
}
if (_root.stabilityup_time > 0) {
_root.stabilityup_time = _root.stabilityup_time - 0.0333333333333333;
_root.stabilityup_maxed = 1;
} else {
_root.stabilityup_time = 0;
_root.stabilityup_maxed = 0;
}
gotoAndPlay (1);
MammonthTankTrace();
if (_root.wave_timer_rough > _root.wave_length) {
_root.stop_all_respawns = 1;
} else if ((_root.game_on_hold != 1) and (_root.game_modo eq 1)) {
if (_root.wave eq 1) {
if (_root.wave_timer_rough < 1) {
_root.initial_lives = 10000;
ord_tank_rr = 5;
_root.max_enemies = 2;
predator_rr = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 100;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 10)) {
_root.max_enemies = 3;
} else if ((_root.wave_timer_rough > 10) and (_root.wave_timer_rough < 20)) {
_root.max_enemies = 4;
} else if (_root.wave_timer_rough > 20) {
_root.max_enemies = 10;
}
} else if (_root.wave eq 2) {
_root.initial_lives = 10000;
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 5;
predator_rr = 10;
lazer_tank_rr = 20;
_root.max_enemies = 4;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 100;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 10)) {
_root.max_enemies = 5;
} else if ((_root.wave_timer_rough > 10) and (_root.wave_timer_rough < 20)) {
_root.max_enemies = 6;
} else if (_root.wave_timer_rough > 20) {
_root.max_enemies = 7;
}
} else if (_root.wave eq 3) {
_root.initial_lives = 10000;
if (_root.wave_timer_rough < 1) {
_root.max_enemies = 1;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 100;
ord_tank_rr = 0;
predator_rr = 10;
lazer_tank_rr = 0;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 3)) {
ord_tank_rr = 0;
predator_rr = 0;
lazer_tank_rr = 10;
_root.max_enemies = 4;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 120;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 5)) {
_root.max_enemies = 10;
ord_tank_rr = 10;
lazer_tank_rr = 0;
} else if (_root.wave_timer_rough > 10) {
ord_tank_rr = 10;
predator_rr = 20;
lazer_tank_rr = 20;
}
} else if (_root.wave eq 4) {
_root.initial_lives = 10000;
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 0;
lazer_tank_rr = 5;
_root.max_enemies = 3;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 60;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 2)) {
ord_tank_rr = 5;
lazer_tank_rr = 0;
_root.max_enemies = 8;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 120;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 30)) {
ord_tank_rr = 25;
lazer_tank_rr = 25;
_root.max_enemies = 6;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 30) and (_root.wave_timer_rough < 40)) {
ord_tank_rr = 25;
lazer_tank_rr = 25;
_root.max_enemies = 6;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 30;
} else if (_root.wave_timer_rough > 40) {
ord_tank_rr = 0;
lazer_tank_rr = 5;
_root.max_enemies = 6;
_root.rasstoyanie_mejdu_unitami = 20;
_root.shirina_potoka_mobov = 170;
}
} else if (_root.wave eq 5) {
_root.initial_lives = 10000;
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 5;
lazer_tank_rr = 0;
railgrav_tank_rr = 5;
kindabike_rr = 5;
kindabike2_rr = 5;
_root.max_enemies = 5;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 2)) {
ord_tank_rr = 0;
lazer_tank_rr = 5;
railgrav_tank_rr = 0;
kindabike_rr = 0;
kindabike2_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 7;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 2) {
lazer_tank_rr = 15;
ord_tank_rr = 5;
railgrav_tank_rr = 30;
kindabike_rr = 10;
kindabike2_rr = 5;
_root.max_enemies = 6;
_root.rasstoyanie_mejdu_unitami = 7;
_root.shirina_potoka_mobov = 170;
}
} else if (_root.wave eq 6) {
_root.initial_lives = 10000;
if (_root.wave_timer_rough < 2) {
lazer_tank_rr = 0;
_root.max_enemies = 1;
mammoth_tank2_rr = 5;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 999)) {
lazer_tank_rr = 10;
_root.max_enemies = 6;
mammoth_tank2_rr = 0;
}
} else if (_root.wave eq 7) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 1) {
lazer_tank_rr = 0;
black_tank_rr = 5;
_root.max_enemies = 5;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 2)) {
lazer_tank_rr = 5;
black_tank_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 15;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 2) {
ord_tank_rr = 15;
railgrav_tank_rr = 15;
kindabike_rr = 15;
kindabike2_rr = 15;
lazer_tank_rr = 25;
black_tank_rr = 40;
_root.max_enemies = 6;
}
} else if (_root.wave eq 8) {
_root.initial_lives = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
kindabike_rr = 10;
ord_tank_rr = 10;
lazer_tank_rr = 10;
hover_tank_rr = 10;
predator_rr = 10;
spikey_rr = 10;
kindabike2_rr = 10;
} else if (_root.wave eq 9) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 3) {
lazer_tank_rr = 5;
black_tank_rr = 5;
mech1_rr = 5;
kindabike2_rr = 5;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 3) {
lazer_tank_rr = 20;
black_tank_rr = 35;
ord_tank_rr = 15;
railgrav_tank_rr = 15;
kindabike_rr = 15;
kindabike2_rr = 15;
_root.max_enemies = 8;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
}
} else if (_root.wave eq 10) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 1.5) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 5;
_root.max_enemies = 3;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 1.5) and (_root.wave_timer_rough < 2)) {
mech1_rr = 5;
kindabike_rr = 0;
sciencevessel_rr = 0;
_root.max_enemies = 8;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 3)) {
mech1_rr = 0;
kindabike_rr = 5;
sciencevessel_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 40;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 30)) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 0;
kindabike_rr = 25;
sciencevessel_rr = 35;
_root.max_enemies = 7;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 30) {
_root.metod_sortirovki_unitov = 2;
lazer_tank_rr = 20;
black_tank_rr = 35;
mech1_rr = 30;
ord_tank_rr = 20;
}
} else if (_root.wave eq 11) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 1.5) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
nuketruck_rr = 3;
_root.max_enemies = 1;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 1.5) and (_root.wave_timer_rough < 2)) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 3;
nuketruck_rr = 0;
_root.max_enemies = 4;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 4)) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
black_tank_rr = 3;
nuketruck_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
} else if ((_root.wave_timer_rough > 4) and (_root.wave_timer_rough < 60)) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 30;
sciencevessel_rr = 30;
black_tank_rr = 30;
nuketruck_rr = 200;
_root.max_enemies = 7;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 80;
}
} else if (_root.wave eq 12) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 1) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 5;
mech2_rr = 3;
kindabike2_rr = 0;
sciencevessel_rr = 0;
nuketruck_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 1) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 20;
mech2_rr = 20;
kindabike2_rr = 30;
sciencevessel_rr = 40;
nuketruck_rr = 40;
_root.max_enemies = 8;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
}
} else if (_root.wave eq 13) {
_root.initial_lives = 4;
if (_root.wave_timer_rough < 1) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 7;
mech2_rr = 5;
kindabike2_rr = 0;
sciencevessel_rr = 0;
nuketruck_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 1) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 20;
mech2_rr = 20;
nuketruck_rr = 20;
_root.max_enemies = 9;
}
} else if (_root.wave eq 14) {
_root.initial_lives = 14;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 1) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
mech2_rr = 0;
kindabike_rr = 7;
sciencevessel_rr = 5;
nuketruck_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 1) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 20;
mech2_rr = 20;
sciencevessel_rr = 20;
kindabike_rr = 20;
nuketruck_rr = 100;
_root.max_enemies = 9;
}
} else if (_root.wave eq 15) {
_root.initial_lives = 140000 /* 0x0222E0 */;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 1) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
mech2_rr = 0;
kindabike_rr = 7;
sciencevessel_rr = 5;
nuketruck_rr = 0;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 1) {
_root.metod_sortirovki_unitov = 2;
mech1_rr = 20;
mech2_rr = 20;
sciencevessel_rr = 20;
kindabike_rr = 20;
kindabike2_rr = 20;
nuketruck_rr = 20;
_root.max_enemies = 9;
}
} else if (_root.wave eq 16) {
_root.initial_lives = 0;
_root.powerup_respawn_rate = 8;
if (_root.wave_timer_rough < 2) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
mech2_rr = 0;
kindabike_rr = 0;
sciencevessel_rr = 0;
nuketruck_rr = 0;
mammoth_tank_rr = 3;
_root.max_enemies = 1;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 3.5)) {
kindabike_rr = 5;
_root.max_enemies = 10;
mammoth_tank_rr = 0;
} else if (_root.wave_timer_rough > 3.5) {
kindabike_rr = 0;
_root.metod_sortirovki_unitov = 2;
mammoth_tank_rr = 30;
mech2_rr = 20;
sciencevessel_rr = 20;
nuketruck_rr = 70;
}
} else if (_root.wave eq 17) {
_root.initial_lives = 0;
_root.powerup_respawn_rate = 5;
if (_root.wave_timer_rough < 2) {
_root.metod_sortirovki_unitov = 1;
mech1_rr = 0;
mech2_rr = 0;
kindabike_rr = 0;
sciencevessel_rr = 0;
nuketruck_rr = 0;
mammoth_tank2_rr = 3;
_root.max_enemies = 1;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 3.5)) {
mech1_rr = 5;
_root.max_enemies = 10;
mammoth_tank2_rr = 0;
} else if (_root.wave_timer_rough > 3.5) {
kindabike_rr = 0;
_root.metod_sortirovki_unitov = 2;
mammoth2_tank_rr = 30;
mech2_rr = 20;
mech1_rr = 40;
sciencevessel_rr = 20;
nuketruck_rr = 70;
kindabike_rr = 40;
black_tank_rr = 40;
lazer_tank_rr = 40;
}
} else if (_root.wave eq 18) {
_root.initial_lives = 10;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 5) {
_root.metod_sortirovki_unitov = 2;
mammoth_tank2_rr = 10;
_root.max_enemies = 2;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 5) {
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.metod_sortirovki_unitov = 2;
mammoth_tank_rr = 60;
mammoth_tank2_rr = 0;
kindabike_rr = 60;
ord_tank_rr = 60;
lazer_tank_rr = 60;
hover_tank_rr = 60;
heavy_tank_rr = 0;
railgrav_tank_rr = 60;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 60;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
} else if (_root.wave eq 19) {
_root.initial_lives = 10;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 2) {
_root.metod_sortirovki_unitov = 1;
heavy_tank_rr = 5;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
} else if ((_root.wave_timer_rough > 2) and (_root.wave_timer_rough < 3)) {
_root.metod_sortirovki_unitov = 1;
black_tank_rr = 6;
} else if (_root.wave_timer_rough > 3) {
_root.metod_sortirovki_unitov = 2;
mammoth_tank_rr = 60;
mammoth_tank2_rr = 0;
kindabike_rr = 60;
ord_tank_rr = 60;
lazer_tank_rr = 60;
hover_tank_rr = 60;
heavy_tank_rr = 30;
smooth_tank_rr = 60;
spikey_rr = 60;
railgrav_tank_rr = 60;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 60;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
} else if (_root.wave eq 20) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 200;
_root.initial_lives = 100000 /* 0x0186A0 */;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough > 5) {
spikey_rr = 30;
square_tank_rr = 20;
} else if (_root.wave_timer_rough < 5) {
square_tank_rr = 5;
}
if (_root.wave_timer_rough > 50) {
predator_rr = 40;
smooth_tank_rr = 40;
}
} else if (_root.wave eq 21) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 200;
_root.initial_lives = 4;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 900) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 8;
_root.shirina_potoka_mobov = 170;
smooth_tank_rr = 40;
predator_rr = 40;
clinch_tank_rr = 60;
spikey_rr = 60;
mammoth_tank2_rr = 40;
kindabike_rr = 50;
lazer_tank_rr = 90;
heavy_tank_rr = 30;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 40;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
} else if (_root.wave eq 22) {
if (_root.wave_timer_rough < 900) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 200;
_root.initial_lives = 99999 /* 0x01869F */;
_root.powerup_respawn_rate = 10;
square_tank_rr = 50;
predator_rr = 40;
smooth_tank_rr = 40;
spikey_rr = 60;
clinch_tank_rr = 10;
kindabike_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 90;
hover_tank_rr = 70;
heavy_tank_rr = 30;
railgrav_tank_rr = 70;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 70;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
} else if (_root.wave eq 23) {
if (_root.wave_timer_rough < 50) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 12;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 200;
_root.initial_lives = 0;
_root.powerup_respawn_rate = 10;
spikey_rr = 10;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 10;
smooth_tank_rr = 0;
ord_tank_rr = 10;
lazer_tank_rr = 10;
hover_tank_rr = 10;
heavy_tank_rr = 0;
railgrav_tank_rr = 10;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 10;
kindabike2_rr = 10;
sciencevessel_rr = 0;
square_tank_rr = 0;
predator_rr = 10;
} else if ((_root.wave_timer_rough > 50) and (_root.wave_timer_rough < 60)) {
_root.stop_all_respawns = 1;
} else if (_root.wave_timer_rough > 60) {
_root.max_enemies = 3;
_root.metod_sortirovki_unitov = 1;
dragoon_rr = 10;
}
} else if (_root.wave eq 24) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 12;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 200;
_root.initial_lives = 4;
_root.powerup_respawn_rate = 10;
nuketruck_rr = 20;
sciencevessel_rr = 30;
square_tank_rr = 40;
} else if (_root.wave eq 25) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
_root.initial_lives = 0;
_root.powerup_respawn_rate = 10;
smooth_tank_rr = 20;
nuketruck_rr = 20;
sciencevessel_rr = 30;
square_tank_rr = 40;
} else if (_root.wave eq 26) {
_root.metod_sortirovki_unitov = 1;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
_root.initial_lives = 0;
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 3) {
_root.max_enemies = 3;
dragoon_rr = 5;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 25)) {
_root.max_enemies = 10;
nuketruck_rr = 25;
square_tank_rr = 40;
dragoon_rr = 35;
} else if ((_root.wave_timer_rough > 25) and (_root.wave_timer_rough < 55)) {
_root.max_enemies = 5;
nuketruck_rr = 0;
square_tank_rr = 0;
dragoon_rr = 35;
mammoth_tank2_rr = 25;
clinch_tank_rr = 25;
} else if (_root.wave_timer_rough > 55) {
nuketruck_rr = 0;
square_tank_rr = 0;
dragoon_rr = 75;
mammoth_tank2_rr = 0;
clinch_tank_rr = 0;
lazer_tank_rr = 25;
hover_tank_rr = 25;
heavy_tank_rr = 25;
predator_rr = 25;
}
} else if (_root.wave eq 27) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 12;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
_root.initial_lives = 0;
_root.powerup_respawn_rate = 9;
spikey_rr = 50;
clinch_tank_rr = 50;
singularity_tank_rr = 0;
mammoth_tank_rr = 50;
mammoth_tank2_rr = 50;
kindabike_rr = 50;
smooth_tank_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 50;
hover_tank_rr = 50;
heavy_tank_rr = 50;
railgrav_tank_rr = 50;
nuketruck_rr = 50;
black_tank_rr = 50;
mech2_rr = 50;
tarakan_rr = 0;
mech1_rr = 50;
kindabike2_rr = 50;
sciencevessel_rr = 50;
square_tank_rr = 40;
dragoon_rr = 50;
predator_rr = 50;
} else if (_root.wave eq 28) {
_root.metod_sortirovki_unitov = 1;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
_root.initial_lives = 0;
_root.powerup_respawn_rate = 9;
if (_root.wave_timer_rough < 10) {
_root.max_enemies = 6;
tarakan_rr = 5;
} else {
_root.max_enemies = 12;
spikey_rr = 50;
clinch_tank_rr = 70;
singularity_tank_rr = 0;
mammoth_tank_rr = 70;
mammoth_tank2_rr = 70;
kindabike_rr = 50;
smooth_tank_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 50;
hover_tank_rr = 50;
heavy_tank_rr = 50;
railgrav_tank_rr = 50;
nuketruck_rr = 50;
black_tank_rr = 50;
mech2_rr = 50;
tarakan_rr = 40;
mech1_rr = 50;
kindabike2_rr = 50;
sciencevessel_rr = 50;
square_tank_rr = 50;
dragoon_rr = 150;
predator_rr = 50;
}
} else if (_root.wave eq 29) {
_root.metod_sortirovki_unitov = 2;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
_root.initial_lives = 100000 /* 0x0186A0 */;
_root.powerup_respawn_rate = 9;
if (_root.wave_timer_rough < 3) {
_root.max_enemies = 3;
singularity_tank_rr = 5;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 35)) {
singularity_tank_rr = 45;
_root.max_enemies = 10;
tarakan_rr = 40;
sciencevessel_rr = 40;
square_tank_rr = 40;
dragoon_rr = 40;
predator_rr = 40;
} else if (_root.wave_timer_rough > 35) {
_root.max_enemies = 12;
spikey_rr = 50;
clinch_tank_rr = 170;
singularity_tank_rr = 50;
mammoth_tank_rr = 170;
mammoth_tank2_rr = 170;
kindabike_rr = 50;
smooth_tank_rr = 50;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 50;
railgrav_tank_rr = 0;
nuketruck_rr = 50;
black_tank_rr = 0;
mech2_rr = 50;
tarakan_rr = 40;
mech1_rr = 50;
kindabike2_rr = 0;
sciencevessel_rr = 50;
square_tank_rr = 50;
dragoon_rr = 150;
predator_rr = 50;
if (_root.wave_timer_rough > 90) {
singularity_tank_rr = 20;
}
}
} else if (_root.wave eq 30) {
_root.metod_sortirovki_unitov = 1;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 180;
_root.initial_lives = 9990;
_root.powerup_respawn_rate = 9;
_root.max_enemies = 12;
if (_root.wave_timer_rough < 10) {
spikey_rr = 10;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 10) and (_root.wave_timer_rough < 20)) {
spikey_rr = 0;
clinch_tank_rr = 20;
singularity_tank_rr = 20;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 20) and (_root.wave_timer_rough < 30)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 10;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 10;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 20) and (_root.wave_timer_rough < 30)) {
spikey_rr = 30;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 30;
smooth_tank_rr = 0;
ord_tank_rr = 30;
lazer_tank_rr = 30;
hover_tank_rr = 30;
heavy_tank_rr = 30;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 30) and (_root.wave_timer_rough < 40)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 10;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 10;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 40) and (_root.wave_timer_rough < 50)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 10;
square_tank_rr = 10;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 50) and (_root.wave_timer_rough < 60)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 10;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 10;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 10;
} else if ((_root.wave_timer_rough > 60) and (_root.wave_timer_rough < 70)) {
spikey_rr = 0;
clinch_tank_rr = 10;
singularity_tank_rr = 0;
mammoth_tank_rr = 10;
mammoth_tank2_rr = 10;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 50;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 70) and (_root.wave_timer_rough < 80)) {
spikey_rr = 0;
clinch_tank_rr = 30;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 10;
black_tank_rr = 10;
mech2_rr = 0;
tarakan_rr = 10;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 10;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 80) and (_root.wave_timer_rough < 90)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 10;
black_tank_rr = 10;
mech2_rr = 10;
tarakan_rr = 10;
mech1_rr = 10;
kindabike2_rr = 10;
sciencevessel_rr = 10;
square_tank_rr = 10;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 90) and (_root.wave_timer_rough < 150)) {
spikey_rr = 40;
clinch_tank_rr = 40;
singularity_tank_rr = 40;
mammoth_tank_rr = 40;
mammoth_tank2_rr = 40;
kindabike_rr = 40;
smooth_tank_rr = 40;
ord_tank_rr = 40;
lazer_tank_rr = 40;
hover_tank_rr = 40;
heavy_tank_rr = 40;
railgrav_tank_rr = 40;
nuketruck_rr = 20;
black_tank_rr = 40;
mech2_rr = 40;
tarakan_rr = 40;
mech1_rr = 40;
kindabike2_rr = 40;
sciencevessel_rr = 40;
square_tank_rr = 40;
dragoon_rr = 60;
predator_rr = 40;
} else if ((_root.wave_timer_rough > 150) and (_root.wave_timer_rough < 190)) {
spikey_rr = 0;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 15;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 20;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 20;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 190) and (_root.wave_timer_rough < 230)) {
spikey_rr = 0;
clinch_tank_rr = 30;
singularity_tank_rr = 50;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 10;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 35;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 30;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 30;
predator_rr = 0;
} else if (_root.wave_timer_rough > 230) {
spikey_rr = 40;
clinch_tank_rr = 50;
singularity_tank_rr = 80;
mammoth_tank_rr = 40;
mammoth_tank2_rr = 40;
kindabike_rr = 40;
smooth_tank_rr = 40;
ord_tank_rr = 40;
lazer_tank_rr = 40;
hover_tank_rr = 40;
heavy_tank_rr = 40;
railgrav_tank_rr = 40;
nuketruck_rr = 20;
black_tank_rr = 40;
mech2_rr = 40;
tarakan_rr = 90;
mech1_rr = 40;
kindabike2_rr = 40;
sciencevessel_rr = 40;
square_tank_rr = 40;
dragoon_rr = 90;
predator_rr = 40;
}
}
}
if (_root.game_modo eq 1) {
if (_root.game_on_hold != 1) {
if ((_root.wave eq 8) and (_root.mmm2_trigger_1 != 1)) {
_root.mmm2_trigger_1 = 1;
_root.antimatter_time = 500;
}
if ((_root.wave eq 15) and (_root.mmm2_trigger_2 != 1)) {
_root.mmm2_trigger_2 = 1;
_root.antimatter_time = 500;
_root.energyup_time = 500;
}
if ((_root.wave eq 20) and (_root.mmm2_trigger_3 != 1)) {
_root.mmm2_trigger_3 = 1;
_root.energyup_time = 500;
}
if ((_root.wave eq 23) and (_root.mmm2_trigger_4 != 1)) {
_root.mmm2_trigger_4 = 1;
_root.antimatter_time = 50;
}
if ((_root.wave eq 25) and (_root.mmm2_trigger_5 != 1)) {
_root.mmm2_trigger_5 = 1;
_root.antimatter_time = 500;
}
if ((_root.wave eq 27) and (_root.mmm2_trigger_6 != 1)) {
_root.mmm2_trigger_6 = 1;
_root.speedup_time = 500;
_root.structureup_time = 500;
}
if ((_root.wave eq 30) and (_root.mmm2_trigger_7 != 1)) {
_root.mmm2_trigger_7 = 1;
_root.speedup_time = 500;
}
}
if (_root.wave < 8) {
_root.enemy_speed = 1;
} else if (_root.wave eq 8) {
_root.enemy_speed = 1.2;
} else if ((_root.wave > 8) and (_root.wave < 14)) {
_root.enemy_speed = 1;
} else if ((_root.wave > 13) and (_root.wave < 16)) {
_root.enemy_speed = 1.05;
} else if ((_root.wave > 15) and (_root.wave < 22)) {
_root.enemy_speed = 1.1;
} else if ((_root.wave > 21) and (_root.wave < 23)) {
_root.enemy_speed = 1.15;
} else if (_root.wave eq 23) {
_root.enemy_speed = 1.4;
} else if ((_root.wave > 23) and (_root.wave < 25)) {
_root.enemy_speed = 1.15;
} else if (_root.wave eq 25) {
_root.enemy_speed = 1;
} else if (_root.wave eq 26) {
_root.enemy_speed = 1.15;
} else if ((_root.wave >= 27) and (_root.wave < 29)) {
_root.enemy_speed = 1.1;
} else if (_root.wave eq 29) {
_root.enemy_speed = 1.15;
} else if (_root.wave eq 30) {
if (_root.wave_timer_rough < 30) {
_root.enemy_speed = 1.2;
} else if ((_root.wave_timer_rough > 30) and (_root.wave_timer_rough < 60)) {
_root.enemy_speed = 1.25;
} else if ((_root.wave_timer_rough > 60) and (_root.wave_timer_rough < 80)) {
_root.enemy_speed = 1.3;
} else if ((_root.wave_timer_rough > 80) and (_root.wave_timer_rough < 120)) {
_root.enemy_speed = 1.3;
} else if ((_root.wave_timer_rough > 120) and (_root.wave_timer_rough < 140)) {
_root.enemy_speed = 1.3;
} else if ((_root.wave_timer_rough > 140) and (_root.wave_timer_rough < 180)) {
_root.enemy_speed = 1.3;
} else if ((_root.wave_timer_rough > 180) and (_root.wave_timer_rough < 250)) {
_root.enemy_speed = 1.35;
} else if (_root.wave_timer_rough > 250) {
_root.enemy_speed = 1.5;
}
}
if (_root.wave < 9) {
_root.respawn_pattern = 3;
} else if ((_root.wave >= 9) and (_root.wave < 14)) {
_root.respawn_pattern = 1;
} else if ((_root.wave >= 14) and (_root.wave < 16)) {
_root.respawn_pattern = 2;
} else if ((_root.wave >= 16) and (_root.wave < 18)) {
_root.respawn_pattern = 3;
} else if ((_root.wave >= 18) and (_root.wave < 20)) {
_root.respawn_pattern = 1;
} else if ((_root.wave >= 20) and (_root.wave < 22)) {
_root.respawn_pattern = 2;
} else if ((_root.wave >= 22) and (_root.wave < 24)) {
_root.respawn_pattern = 3;
} else if ((_root.wave >= 24) and (_root.wave < 26)) {
_root.respawn_pattern = 2;
} else if ((_root.wave eq 26) and (_root.wave < 52)) {
_root.respawn_pattern = 1;
} else if (_root.wave eq 27) {
_root.respawn_pattern = 2;
} else if (_root.wave eq 28) {
_root.respawn_pattern = 3;
} else if (_root.wave eq 29) {
_root.respawn_pattern = 2;
} else if (_root.wave eq 30) {
_root.respawn_pattern = 3;
}
}
if (_root.game_on_hold != 1) {
if ((_root.game_modo eq 2) or (_root.game_modo eq 3)) {
if (_root.wave_timer_rough > 300) {
_root.extreme_mode_activated = 1;
}
if (_root.wave eq 1) {
if (_root.wave_timer_rough < 120) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 12;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 170;
if (_root.enemies_onthefield < 4) {
scenario_trigger_1 = 1;
}
if (scenario_trigger_1 eq 0) {
_root.stop_all_respawns = 1;
}
if ((scenario_trigger_1 eq 1) and (_root.enemies_onthefield < _root.max_enemies)) {
if (_root.wave_timer_rough < 40) {
predator_rr = 40;
spikey_rr = 40;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 20;
ord_tank_rr = 20;
lazer_tank_rr = 20;
hover_tank_rr = 30;
heavy_tank_rr = 0;
railgrav_tank_rr = 20;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
mech1_rr = 20;
kindabike2_rr = 20;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 40) and (_root.wave_timer_rough < 60)) {
lazer_tank_rr = 20;
} else if ((_root.wave_timer_rough > 60) and (_root.wave_timer_rough < 80)) {
black_tank_rr = 20;
} else if ((_root.wave_timer_rough > 80) and (_root.wave_timer_rough < 100)) {
heavy_tank_rr = 20;
mech2_rr = 20;
} else if ((_root.wave_timer_rough > 100) and (_root.wave_timer_rough < 120)) {
nuketruck_rr = 20;
mammoth_tank_rr = 10;
}
}
if (_root.enemies_onthefield eq _root.max_enemies) {
scenario_trigger_1 = 0;
}
} else if ((_root.wave_timer_rough > 120) and (_root.wave_timer_rough < 180)) {
_root.metod_sortirovki_unitov = 1;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 5;
_root.shirina_potoka_mobov = 90;
predator_rr = 90;
spikey_rr = 90;
heavy_tank_rr = 20;
nuketruck_rr = 70;
black_tank_rr = 20;
sciencevessel_rr = 20;
} else if ((_root.wave_timer_rough > 180) and (_root.wave_timer_rough < 210)) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 170;
heavy_tank_rr = 20;
nuketruck_rr = 70;
black_tank_rr = 20;
sciencevessel_rr = 20;
} else if (_root.wave_timer_rough > 210) {
if (_root.survival_trigger_1 != 1) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 12;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
predator_rr = 90;
spikey_rr = 90;
mammoth_tank_rr = 20;
mammoth_tank2_rr = 20;
kindabike_rr = 20;
ord_tank_rr = 20;
lazer_tank_rr = 20;
hover_tank_rr = 20;
heavy_tank_rr = 20;
railgrav_tank_rr = 20;
nuketruck_rr = 20;
black_tank_rr = 20;
mech2_rr = 20;
mech1_rr = 20;
kindabike2_rr = 20;
sciencevessel_rr = 20;
clinch_tank_rr = 20;
singularity_tank_rr = 100;
tarakan_rr = 50;
dragoon_rr = 50;
square_tank_rr = 20;
} else {
_root.stop_all_respawns = 1;
}
_root.survival_timer_1 = _root.survival_timer_1 + 0.032258064516129;
if (_root.survival_timer_1 > _root.stoptime) {
_root.survival_trigger_1 = 1;
_root.survival_timer_2 = _root.survival_timer_2 + 0.032258064516129;
if (_root.survival_timer_2 > 10) {
_root.survival_timer_2 = 0;
_root.survival_timer_1 = 0;
_root.survival_trigger_1 = 0;
_root.stoptime = _root.stoptime + 20;
}
}
}
}
}
}
if (_root.game_modo eq 4) {
_root.powerup_respawn_rate = 10;
_root.metod_sortirovki_unitov = 2;
_root.respawn_pattern = 2;
}
if (_root.game_on_hold != 1) {
if (_root.game_modo eq 4) {
_root.dla_skolkih_unitov_funkcii = 14;
_root.max_enemies = 14;
if (_root.wave_timer_rough < 15) {
spikey_rr = 20;
clinch_tank_rr = 0;
singularity_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
smooth_tank_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
tarakan_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 0;
square_tank_rr = 0;
dragoon_rr = 0;
predator_rr = 0;
} else if ((_root.wave_timer_rough > 15) and (_root.wave_timer_rough < 20)) {
spikey_rr = 30;
kindabike_rr = 30;
ord_tank_rr = 30;
lazer_tank_rr = 30;
railgrav_tank_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
predator_rr = 0;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 0;
square_tank_rr = 0;
smooth_tank_rr = 0;
heavy_tank_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 20) and (_root.wave_timer_rough < 30)) {
spikey_rr = 30;
kindabike_rr = 30;
ord_tank_rr = 30;
lazer_tank_rr = 30;
railgrav_tank_rr = 30;
mech1_rr = 30;
kindabike2_rr = 30;
predator_rr = 30;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 0;
square_tank_rr = 0;
smooth_tank_rr = 0;
heavy_tank_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 30) and (_root.wave_timer_rough < 45)) {
spikey_rr = 30;
kindabike_rr = 30;
ord_tank_rr = 30;
lazer_tank_rr = 30;
railgrav_tank_rr = 30;
mech1_rr = 30;
kindabike2_rr = 30;
predator_rr = 30;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 0;
square_tank_rr = 0;
smooth_tank_rr = 0;
heavy_tank_rr = 10;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 45) and (_root.wave_timer_rough < 60)) {
spikey_rr = 30;
kindabike_rr = 30;
ord_tank_rr = 30;
lazer_tank_rr = 30;
railgrav_tank_rr = 30;
mech1_rr = 30;
kindabike2_rr = 30;
predator_rr = 30;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 0;
square_tank_rr = 0;
smooth_tank_rr = 10;
heavy_tank_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 60) and (_root.wave_timer_rough < 120)) {
spikey_rr = 30;
kindabike_rr = 30;
ord_tank_rr = 30;
lazer_tank_rr = 30;
railgrav_tank_rr = 30;
mech1_rr = 30;
kindabike2_rr = 30;
predator_rr = 30;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 0;
square_tank_rr = 0;
smooth_tank_rr = 40;
heavy_tank_rr = 40;
black_tank_rr = 40;
mech2_rr = 40;
sciencevessel_rr = 40;
} else if ((_root.wave_timer_rough > 120) and (_root.wave_timer_rough < 200)) {
kindabike_rr = 40;
ord_tank_rr = 40;
lazer_tank_rr = 40;
railgrav_tank_rr = 40;
mech1_rr = 40;
kindabike2_rr = 40;
predator_rr = 40;
spikey_rr = 40;
clinch_tank_rr = 100;
mammoth_tank_rr = 100;
mammoth_tank2_rr = 100;
singularity_tank_rr = 0;
tarakan_rr = 0;
dragoon_rr = 0;
nuketruck_rr = 200;
square_tank_rr = 0;
smooth_tank_rr = 40;
heavy_tank_rr = 40;
black_tank_rr = 40;
mech2_rr = 40;
sciencevessel_rr = 40;
} else if ((_root.wave_timer_rough > 200) and (_root.wave_timer_rough < 300)) {
spikey_rr = 50;
kindabike_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 50;
railgrav_tank_rr = 50;
mech1_rr = 50;
kindabike2_rr = 50;
predator_rr = 50;
clinch_tank_rr = 80;
mammoth_tank_rr = 80;
mammoth_tank2_rr = 80;
singularity_tank_rr = 0;
tarakan_rr = 90;
dragoon_rr = 0;
nuketruck_rr = 80;
square_tank_rr = 0;
smooth_tank_rr = 40;
heavy_tank_rr = 40;
black_tank_rr = 40;
mech2_rr = 40;
sciencevessel_rr = 40;
} else if ((_root.wave_timer_rough > 300) and (_root.wave_timer_rough < 370)) {
spikey_rr = 0;
kindabike_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
railgrav_tank_rr = 0;
mech1_rr = 0;
kindabike2_rr = 0;
predator_rr = 0;
clinch_tank_rr = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
singularity_tank_rr = 0;
tarakan_rr = 100;
dragoon_rr = 100;
nuketruck_rr = 80;
square_tank_rr = 30;
smooth_tank_rr = 0;
heavy_tank_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
} else if ((_root.wave_timer_rough > 370) and (_root.wave_timer_rough < 500)) {
spikey_rr = 50;
kindabike_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 50;
railgrav_tank_rr = 50;
mech1_rr = 50;
kindabike2_rr = 50;
predator_rr = 50;
clinch_tank_rr = 70;
mammoth_tank_rr = 70;
mammoth_tank2_rr = 70;
singularity_tank_rr = 0;
tarakan_rr = 60;
dragoon_rr = 60;
nuketruck_rr = 80;
square_tank_rr = 130;
smooth_tank_rr = 50;
heavy_tank_rr = 50;
black_tank_rr = 50;
mech2_rr = 50;
sciencevessel_rr = 50;
} else if ((_root.wave_timer_rough > 350) and (_root.wave_timer_rough < 500)) {
spikey_rr = 50;
kindabike_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 50;
railgrav_tank_rr = 50;
mech1_rr = 50;
kindabike2_rr = 50;
predator_rr = 50;
clinch_tank_rr = 70;
mammoth_tank_rr = 70;
mammoth_tank2_rr = 70;
singularity_tank_rr = 40;
tarakan_rr = 60;
dragoon_rr = 60;
nuketruck_rr = 40;
square_tank_rr = 50;
smooth_tank_rr = 50;
heavy_tank_rr = 50;
black_tank_rr = 50;
mech2_rr = 50;
sciencevessel_rr = 50;
}
}
}
if (_root.game_modo eq 5) {
_root.powerup_respawn_rate = 8;
_root.metod_sortirovki_unitov = 2;
_root.respawn_pattern = 3;
if (_root.base_dead != 1) {
_root.score2 = Math.floor(_root.wave_timer_rough * 100);
}
}
if (_root.game_on_hold != 1) {
if (_root.game_modo eq 5) {
if (_root.wave_timer_rough < 120) {
tytykaka = 1 + Math.floor(11 * (_root.wave_timer_rough / 120));
} else {
tytykaka = 12;
}
_root.dla_skolkih_unitov_funkcii = tytykaka;
_root.max_enemies = tytykaka;
spikey_rr = 10;
kindabike_rr = 10;
ord_tank_rr = 10;
lazer_tank_rr = 10;
railgrav_tank_rr = 10;
mech1_rr = 10;
kindabike2_rr = 10;
predator_rr = 10;
nuketruck_rr = 100;
}
}
if (_root.game_modo eq 6) {
_root.shirina_potoka_mobov = 170;
_root.powerup_respawn_rate = 7;
_root.metod_sortirovki_unitov = 2;
_root.respawn_pattern = 2;
if (_root.base_dead != 1) {
_root.score2 = Math.floor(_root.wave_timer_rough * 100);
}
}
if (_root.game_on_hold != 1) {
if (_root.game_modo eq 6) {
_root.dla_skolkih_unitov_funkcii = 12;
_root.max_enemies = 12;
bordertime = 100;
ordinaryunitsfall = Math.floor(300 * (_root.wave_timer_rough / bordertime));
singularitytankfall = Math.floor(400 * (_root.wave_timer_rough / bordertime));
squarefall = Math.floor(20 * (_root.wave_timer_rough / bordertime));
spikey_rr = 30 + ordinaryunitsfall;
mech1_rr = 30 + ordinaryunitsfall;
clinch_tank_rr = 50 + ordinaryunitsfall;
mammoth_tank_rr = 50 + ordinaryunitsfall;
mammoth_tank2_rr = 50 + ordinaryunitsfall;
singularity_tank_rr = 500 - singularitytankfall;
tarakan_rr = 80;
dragoon_rr = 80;
nuketruck_rr = 60 - squarefall;
square_tank_rr = 15;
smooth_tank_rr = 30 + ordinaryunitsfall;
heavy_tank_rr = 30 + ordinaryunitsfall;
black_tank_rr = 30 + ordinaryunitsfall;
mech2_rr = 30 + ordinaryunitsfall;
sciencevessel_rr = 30 + ordinaryunitsfall;
}
}
if (_root.game_modo eq 10) {
if (_root.cm_smooth_tank_rr eq 0) {
smooth_tank_rr = 0;
} else if (_root.cm_smooth_tank_rr eq 1) {
smooth_tank_rr = 400;
} else if ((_root.cm_smooth_tank_rr > 1) and (_root.cm_smooth_tank_rr < 9)) {
smooth_tank_rr = 400 - (_root.cm_smooth_tank_rr * 35);
} else if (_root.cm_smooth_tank_rr eq 9) {
smooth_tank_rr = 80;
} else if (_root.cm_smooth_tank_rr eq 10) {
smooth_tank_rr = 50;
} else if (_root.cm_smooth_tank_rr eq 11) {
smooth_tank_rr = 10;
}
if (_root.cm_ord_tank_rr eq 0) {
ord_tank_rr = 0;
} else if (_root.cm_ord_tank_rr eq 1) {
ord_tank_rr = 400;
} else if ((_root.cm_ord_tank_rr > 1) and (_root.cm_ord_tank_rr < 9)) {
ord_tank_rr = 400 - (_root.cm_ord_tank_rr * 35);
} else if (_root.cm_ord_tank_rr eq 9) {
ord_tank_rr = 80;
} else if (_root.cm_ord_tank_rr eq 10) {
ord_tank_rr = 50;
} else if (_root.cm_ord_tank_rr eq 11) {
ord_tank_rr = 10;
}
if (_root.cm_lazer_tank_rr eq 0) {
lazer_tank_rr = 0;
} else if (_root.cm_lazer_tank_rr eq 1) {
lazer_tank_rr = 400;
} else if ((_root.cm_lazer_tank_rr > 1) and (_root.cm_lazer_tank_rr < 9)) {
lazer_tank_rr = 400 - (_root.cm_lazer_tank_rr * 35);
} else if (_root.cm_lazer_tank_rr eq 9) {
lazer_tank_rr = 80;
} else if (_root.cm_lazer_tank_rr eq 10) {
lazer_tank_rr = 50;
} else if (_root.cm_lazer_tank_rr eq 11) {
lazer_tank_rr = 10;
}
if (_root.cm_kindabike2_rr eq 0) {
kindabike_rr = 0;
} else if (_root.cm_kindabike2_rr eq 1) {
kindabike_rr = 400;
} else if ((_root.cm_kindabike2_rr > 1) and (_root.cm_kindabike2_rr < 9)) {
kindabike_rr = 400 - (_root.cm_kindabike2_rr * 35);
} else if (_root.cm_kindabike2_rr eq 9) {
kindabike_rr = 80;
} else if (_root.cm_kindabike2_rr eq 10) {
kindabike_rr = 50;
} else if (_root.cm_kindabike2_rr eq 11) {
kindabike_rr = 10;
}
if (_root.cm_mammoth_tank2_rr eq 0) {
mammoth_tank2_rr = 0;
} else if (_root.cm_mammoth_tank2_rr eq 1) {
mammoth_tank2_rr = 400;
} else if ((_root.cm_mammoth_tank2_rr > 1) and (_root.cm_mammoth_tank2_rr < 9)) {
mammoth_tank2_rr = 400 - (_root.cm_mammoth_tank2_rr * 35);
} else if (_root.cm_mammoth_tank2_rr eq 9) {
mammoth_tank2_rr = 80;
} else if (_root.cm_mammoth_tank2_rr eq 10) {
mammoth_tank2_rr = 50;
} else if (_root.cm_mammoth_tank2_rr eq 11) {
mammoth_tank2_rr = 10;
}
if (_root.cm_mammoth_tank_rr eq 0) {
mammoth_tank_rr = 0;
} else if (_root.cm_mammoth_tank_rr eq 1) {
mammoth_tank_rr = 400;
} else if ((_root.cm_mammoth_tank_rr > 1) and (_root.cm_mammoth_tank_rr < 9)) {
mammoth_tank_rr = 400 - (_root.cm_mammoth_tank_rr * 35);
} else if (_root.cm_mammoth_tank_rr eq 9) {
mammoth_tank_rr = 80;
} else if (_root.cm_mammoth_tank_rr eq 10) {
mammoth_tank_rr = 50;
} else if (_root.cm_mammoth_tank_rr eq 11) {
mammoth_tank_rr = 10;
}
if (_root.cm_singularity_tank_rr eq 0) {
singularity_tank_rr = 0;
} else if (_root.cm_singularity_tank_rr eq 1) {
singularity_tank_rr = 400;
} else if ((_root.cm_singularity_tank_rr > 1) and (_root.cm_singularity_tank_rr < 9)) {
singularity_tank_rr = 400 - (_root.cm_singularity_tank_rr * 35);
} else if (_root.cm_singularity_tank_rr eq 9) {
singularity_tank_rr = 80;
} else if (_root.cm_singularity_tank_rr eq 10) {
singularity_tank_rr = 50;
} else if (_root.cm_singularity_tank_rr eq 11) {
singularity_tank_rr = 10;
}
if (_root.cm_hover_tank_rr eq 0) {
hover_tank_rr = 0;
} else if (_root.cm_hover_tank_rr eq 1) {
hover_tank_rr = 400;
} else if ((_root.cm_hover_tank_rr > 1) and (_root.cm_hover_tank_rr < 9)) {
hover_tank_rr = 400 - (_root.cm_hover_tank_rr * 35);
} else if (_root.cm_hover_tank_rr eq 9) {
hover_tank_rr = 80;
} else if (_root.cm_hover_tank_rr eq 10) {
hover_tank_rr = 50;
} else if (_root.cm_hover_tank_rr eq 11) {
hover_tank_rr = 10;
}
if (_root.cm_heavy_tank_rr eq 0) {
heavy_tank_rr = 0;
} else if (_root.cm_heavy_tank_rr eq 1) {
heavy_tank_rr = 400;
} else if ((_root.cm_heavy_tank_rr > 1) and (_root.cm_heavy_tank_rr < 9)) {
heavy_tank_rr = 400 - (_root.cm_heavy_tank_rr * 35);
} else if (_root.cm_heavy_tank_rr eq 9) {
heavy_tank_rr = 80;
} else if (_root.cm_heavy_tank_rr eq 10) {
heavy_tank_rr = 50;
} else if (_root.cm_heavy_tank_rr eq 11) {
heavy_tank_rr = 10;
}
if (_root.cm_railgrav_tank_rr eq 0) {
railgrav_tank_rr = 0;
} else if (_root.cm_railgrav_tank_rr eq 1) {
railgrav_tank_rr = 400;
} else if ((_root.cm_railgrav_tank_rr > 1) and (_root.cm_railgrav_tank_rr < 9)) {
railgrav_tank_rr = 400 - (_root.cm_railgrav_tank_rr * 35);
} else if (_root.cm_railgrav_tank_rr eq 9) {
railgrav_tank_rr = 80;
} else if (_root.cm_railgrav_tank_rr eq 10) {
railgrav_tank_rr = 50;
} else if (_root.cm_railgrav_tank_rr eq 11) {
railgrav_tank_rr = 10;
}
if (_root.cm_nuketruck_rr eq 0) {
nuketruck_rr = 0;
} else if (_root.cm_nuketruck_rr eq 1) {
nuketruck_rr = 400;
} else if ((_root.cm_nuketruck_rr > 1) and (_root.cm_nuketruck_rr < 9)) {
nuketruck_rr = 400 - (_root.cm_nuketruck_rr * 35);
} else if (_root.cm_nuketruck_rr eq 9) {
nuketruck_rr = 80;
} else if (_root.cm_nuketruck_rr eq 10) {
nuketruck_rr = 50;
} else if (_root.cm_nuketruck_rr eq 11) {
nuketruck_rr = 10;
}
if (_root.cm_black_tank_rr eq 0) {
black_tank_rr = 0;
} else if (_root.cm_black_tank_rr eq 1) {
black_tank_rr = 400;
} else if ((_root.cm_black_tank_rr > 1) and (_root.cm_black_tank_rr < 9)) {
black_tank_rr = 400 - (_root.cm_black_tank_rr * 35);
} else if (_root.cm_black_tank_rr eq 9) {
black_tank_rr = 80;
} else if (_root.cm_black_tank_rr eq 10) {
black_tank_rr = 50;
} else if (_root.cm_black_tank_rr eq 11) {
black_tank_rr = 10;
}
if (_root.cm_mech2_rr eq 0) {
mech2_rr = 0;
} else if (_root.cm_mech2_rr eq 1) {
mech2_rr = 400;
} else if ((_root.cm_mech2_rr > 1) and (_root.cm_mech2_rr < 9)) {
mech2_rr = 400 - (_root.cm_mech2_rr * 35);
} else if (_root.cm_mech2_rr eq 9) {
mech2_rr = 80;
} else if (_root.cm_mech2_rr eq 10) {
mech2_rr = 50;
} else if (_root.cm_mech2_rr eq 11) {
mech2_rr = 10;
}
if (_root.cm_tarakan_rr eq 0) {
tarakan_rr = 0;
} else if (_root.cm_tarakan_rr eq 1) {
tarakan_rr = 400;
} else if ((_root.cm_tarakan_rr > 1) and (_root.cm_tarakan_rr < 9)) {
tarakan_rr = 400 - (_root.cm_tarakan_rr * 35);
} else if (_root.cm_tarakan_rr eq 9) {
tarakan_rr = 80;
} else if (_root.cm_tarakan_rr eq 10) {
tarakan_rr = 50;
} else if (_root.cm_tarakan_rr eq 11) {
tarakan_rr = 10;
}
if (_root.cm_mech1_rr eq 0) {
mech1_rr = 0;
} else if (_root.cm_mech1_rr eq 1) {
mech1_rr = 400;
} else if ((_root.cm_mech1_rr > 1) and (_root.cm_mech1_rr < 9)) {
mech1_rr = 400 - (_root.cm_mech1_rr * 35);
} else if (_root.cm_mech1_rr eq 9) {
mech1_rr = 80;
} else if (_root.cm_mech1_rr eq 10) {
mech1_rr = 50;
} else if (_root.cm_mech1_rr eq 11) {
mech1_rr = 10;
}
if (_root.cm_kindabike2_rr eq 0) {
kindabike_rr = 0;
} else if (_root.cm_kindabike2_rr eq 1) {
kindabike_rr = 400;
} else if ((_root.cm_kindabike2_rr > 1) and (_root.cm_kindabike2_rr < 9)) {
kindabike_rr = 400 - (_root.cm_kindabike2_rr * 35);
} else if (_root.cm_kindabike2_rr eq 9) {
kindabike_rr = 80;
} else if (_root.cm_kindabike2_rr eq 10) {
kindabike_rr = 50;
} else if (_root.cm_kindabike2_rr eq 11) {
kindabike_rr = 10;
}
if (_root.cm_spikey_rr eq 0) {
spikey_rr = 0;
} else if (_root.cm_spikey_rr eq 1) {
spikey_rr = 400;
} else if ((_root.cm_spikey_rr > 1) and (_root.cm_spikey_rr < 9)) {
spikey_rr = 400 - (_root.cm_spikey_rr * 35);
} else if (_root.cm_spikey_rr eq 9) {
spikey_rr = 80;
} else if (_root.cm_spikey_rr eq 10) {
spikey_rr = 50;
} else if (_root.cm_spikey_rr eq 11) {
spikey_rr = 10;
}
if (_root.cm_predator_rr eq 0) {
predator_rr = 0;
} else if (_root.cm_predator_rr eq 1) {
predator_rr = 400;
} else if ((_root.cm_predator_rr > 1) and (_root.cm_predator_rr < 9)) {
predator_rr = 400 - (_root.cm_predator_rr * 35);
} else if (_root.cm_predator_rr eq 9) {
predator_rr = 80;
} else if (_root.cm_predator_rr eq 10) {
predator_rr = 50;
} else if (_root.cm_predator_rr eq 11) {
predator_rr = 10;
}
if (_root.cm_dragoon_rr eq 0) {
dragoon_rr = 0;
} else if (_root.cm_dragoon_rr eq 1) {
dragoon_rr = 400;
} else if ((_root.cm_dragoon_rr > 1) and (_root.cm_dragoon_rr < 9)) {
dragoon_rr = 400 - (_root.cm_dragoon_rr * 35);
} else if (_root.cm_dragoon_rr eq 9) {
dragoon_rr = 80;
} else if (_root.cm_dragoon_rr eq 10) {
dragoon_rr = 50;
} else if (_root.cm_dragoon_rr eq 11) {
dragoon_rr = 10;
}
if (_root.cm_square_tank_rr eq 0) {
square_tank_rr = 0;
} else if (_root.cm_square_tank_rr eq 1) {
square_tank_rr = 400;
} else if ((_root.cm_square_tank_rr > 1) and (_root.cm_square_tank_rr < 9)) {
square_tank_rr = 400 - (_root.cm_square_tank_rr * 35);
} else if (_root.cm_square_tank_rr eq 9) {
square_tank_rr = 80;
} else if (_root.cm_square_tank_rr eq 10) {
square_tank_rr = 50;
} else if (_root.cm_square_tank_rr eq 11) {
square_tank_rr = 10;
}
if (_root.cm_sciencevessel_rr eq 0) {
sciencevessel_rr = 0;
} else if (_root.cm_sciencevessel_rr eq 1) {
sciencevessel_rr = 400;
} else if ((_root.cm_sciencevessel_rr > 1) and (_root.cm_sciencevessel_rr < 9)) {
sciencevessel_rr = 400 - (_root.cm_sciencevessel_rr * 35);
} else if (_root.cm_sciencevessel_rr eq 9) {
sciencevessel_rr = 80;
} else if (_root.cm_sciencevessel_rr eq 10) {
sciencevessel_rr = 50;
} else if (_root.cm_sciencevessel_rr eq 11) {
sciencevessel_rr = 10;
}
if (_root.cm_clinch_tank_rr eq 0) {
clinch_tank_rr = 0;
} else if (_root.cm_clinch_tank_rr eq 1) {
clinch_tank_rr = 400;
} else if ((_root.cm_clinch_tank_rr > 1) and (_root.cm_clinch_tank_rr < 9)) {
clinch_tank_rr = 400 - (_root.cm_clinch_tank_rr * 35);
} else if (_root.cm_clinch_tank_rr eq 9) {
clinch_tank_rr = 80;
} else if (_root.cm_clinch_tank_rr eq 10) {
clinch_tank_rr = 50;
} else if (_root.cm_clinch_tank_rr eq 11) {
clinch_tank_rr = 10;
}
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1483 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.antimatter_time * 10) / 10;
}
Symbol 1484 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1484 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1487 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.nodelay_time * 10) / 10;
}
Symbol 1488 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1488 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1491 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.speedup_time * 10) / 10;
}
Symbol 1492 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1492 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1495 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.structureup_time * 10) / 10;
}
Symbol 1496 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1496 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1499 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.energyup_time * 10) / 10;
}
Symbol 1500 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1500 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Instance of Symbol 1480 MovieClip "timer" in Symbol 1503 MovieClip Frame 1
onClipEvent (enterFrame) {
time = Math.floor(_root.stabilityup_time * 10) / 10;
}
Symbol 1504 MovieClip Frame 2
if (indicator.timer.time > 0) {
play();
_visible = true;
} else {
gotoAndPlay (1);
_visible = false;
}
Symbol 1504 MovieClip Frame 14
if (indicator.timer.time > 0) {
gotoAndPlay (13);
} else {
play();
}
Symbol 1533 MovieClip Frame 2
stop();
Symbol 1535 MovieClip Frame 2
stop();
Symbol 1535 MovieClip Frame 10
gotoAndPlay (3);
Symbol 1537 MovieClip Frame 1
count = 0;
Symbol 1537 MovieClip Frame 2
if ((_root.shakescreen eq 0) or (_root.block_screen_shake eq 1)) {
gotoAndPlay (1);
}
Symbol 1537 MovieClip Frame 3
def_x = _root.game._x;
def_y = _root.game._y;
if (_root.shakescreen != 0) {
magnitude = _root.shakescreen;
}
_root.shakescreen = 0;
Symbol 1537 MovieClip Frame 4
if (random(2) eq 1) {
x_mod = 1;
} else {
x_mod = -1;
}
if (random(2) eq 1) {
y_mod = 1;
} else {
y_mod = -1;
}
x_plus = random(magnitude);
y_plus = random(magnitude);
_root.game._x = _root.game._x + (x_plus * x_mod);
_root.game._y = _root.game._y + (y_plus * y_mod);
Symbol 1537 MovieClip Frame 5
count++;
magnitude = magnitude - (magnitude / 12);
_root.game._x = def_x;
_root.game._y = def_y;
if (_root.shakescreen != 0) {
gotoAndPlay (3);
}
Symbol 1537 MovieClip Frame 6
if (count < 12) {
gotoAndPlay (4);
}
Symbol 1548 MovieClip Frame 1
max_dlinna = bar._width;
onEnterFrame = function () {
this.bar._width = (max_dlinna * _root.energy) / _root.energy_max;
ukazatel_rough = _root.current_energy_cost / _root.energy_max;
ukazatel = Math.floor(ukazatel_rough * max_dlinna);
if (_root.current_energy_cost > _root.energy_max) {
strelkabolshe._visible = true;
} else {
strelkabolshe._visible = false;
}
thedifference = Math.abs(this.meniscus._x - ukazatel);
if ((thedifference < 500) and (thedifference >= 25)) {
skorostmeniska = 5 + (Math.abs(this.meniscus._x - ukazatel) * 0.04);
} else if (thedifference < 25) {
skorostmeniska = 1 + (Math.abs(this.meniscus._x - ukazatel) * 0.2);
} else {
skorostmeniska = 50;
}
if (Math.abs(this.meniscus._x - ukazatel) > 3) {
if (this.meniscus._x < ukazatel) {
this.meniscus._x = this.meniscus._x + skorostmeniska;
} else if (this.meniscus._x > ukazatel) {
this.meniscus._x = this.meniscus._x - skorostmeniska;
}
}
if (_root.current_energy_cost < 5) {
meniscus._visible = false;
} else {
meniscus._visible = true;
}
};
Symbol 1553 MovieClip Frame 1
source_width = poloska.bar._width;
Symbol 1553 MovieClip Frame 2
if (temsfg != 1) {
temsfg = 1;
RRR = 0;
GGG = 0;
BBB = 0;
}
var trans = (new flash.geom.Transform(poloska));
var blueColorTransform = (new flash.geom.ColorTransform(0, 1, 1, 1, RRR, GGG, BBB, 0));
trans.colorTransform = blueColorTransform;
otnoshenie = currentvalue / maxvalue;
poloska.bar._width = source_width * otnoshenie;
if (_name eq "speed_indicator") {
currentvalue = _root.speed;
maxvalue = _root.game.maxspeed;
RRR = (255 * otnoshenie) + 50;
} else if (_name eq "stability_indicator") {
currentvalue = _root.stability_rating;
maxvalue = 100;
RRR = (255 * (1 - otnoshenie)) + 50;
GGG = -(255 * (1 - otnoshenie));
}
Symbol 1553 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1561 MovieClip Frame 1
max_dlinna = bar._width;
onEnterFrame = function () {
if (_root.base_dead eq 1) {
this.bar._width = 0.1;
} else {
this.bar._width = (max_dlinna * _root.structure) / _root.structure_max;
}
};
Symbol 1566 MovieClip Frame 11
stop();
Symbol 1573 Button
on (release, keyPress "r") {
_root.kursor = 6;
}
Symbol 1581 Button
on (release, keyPress "e") {
if (_root.energy >= _root.implosion_energycost) {
_root.kursor = 4;
_root.current_energy_cost = _root.implosion_energycost;
} else {
_root.call_error = 1;
}
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.implosion_energycost;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 1;
}
Symbol 1587 Button
on (release, keyPress "w") {
if (_root.energy >= _root.shockwave_energycost) {
_root.kursor = 5;
_root.current_energy_cost = _root.shockwave_energycost;
} else {
_root.call_error = 1;
}
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.shockwave_energycost;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 1;
}
Symbol 1594 Button
on (release, keyPress "s") {
_root.kursor = 8;
}
Symbol 1600 Button
on (release, keyPress "a") {
_root.kursor = 9;
}
Symbol 1602 Button
on (release, keyPress "t") {
_root.kursor = 11;
}
Symbol 1608 Button
on (release, keyPress "y") {
_root.kursor = 12;
}
Symbol 1615 Button
on (release, keyPress "d") {
_root.kursor = 13;
}
Instance of Symbol 1574 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.manipulator_available eq 1) {
if ((_root.manipulator_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1582 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.implosion_available eq 1) {
if ((_root.implosion_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1588 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.shockwave_available eq 1) {
if ((_root.shockwave_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1595 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.shock_tower_available eq 1) {
if ((_root.shock_tower_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1601 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.tremor_tower_available eq 1) {
if ((_root.tremor_tower_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1603 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.manipulator2_available eq 1) {
if ((_root.manipulator2_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1609 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hacking_available eq 1) {
if ((_root.hacking_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1616 MovieClip in Symbol 1617 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ballcatcher_available eq 1) {
if ((_root.ballcatcher_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Symbol 1618 MovieClip Frame 2
procentzagruzki = Math.floor((100 * (maximum_value - current_value)) / maximum_value);
diagrama.gotoAndStop(procentzagruzki);
Symbol 1619 MovieClip Frame 1
implosion_loader.maximum_value = _root.implosion_loading_time;
shockwave_loader.maximum_value = _root.shockwave_loading_time;
manipulator_loader.maximum_value = _root.manipulator_loading_time;
shock_tower_loader.maximum_value = _root.shock_tower_loading_time;
tremor_tower_loader.maximum_value = _root.tremor_tower_loading_time;
manipulator2_loader.maximum_value = _root.manipulator2_loading_time;
hacking_loader.maximum_value = _root.hacking_loading_time;
ballcatcher_loader.maximum_value = _root.ballcatcher_loading_time;
Symbol 1619 MovieClip Frame 2
gotoAndPlay (1);
if (_root.implosion_timeout != 0) {
implosion_loader._visible = true;
if (_root.implosion_timeout > 0) {
_root.implosion_timeout = _root.implosion_timeout - 0.032258064516129;
} else {
_root.implosion_timeout = 0;
}
implosion_loader.current_value = _root.implosion_timeout;
} else {
implosion_loader.diagrama.gotoAndStop(1);
implosion_loader._visible = false;
}
if (_root.shockwave_timeout != 0) {
shockwave_loader._visible = true;
if (_root.shockwave_timeout > 0) {
_root.shockwave_timeout = _root.shockwave_timeout - 0.032258064516129;
} else {
_root.shockwave_timeout = 0;
}
shockwave_loader.current_value = _root.shockwave_timeout;
} else {
shockwave_loader.diagrama.gotoAndStop(1);
shockwave_loader._visible = false;
}
if (_root.manipulator_timeout != 0) {
manipulator_loader._visible = true;
if (_root.manipulator_timeout > 0) {
_root.manipulator_timeout = _root.manipulator_timeout - 0.032258064516129;
} else {
_root.manipulator_timeout = 0;
}
manipulator_loader.current_value = _root.manipulator_timeout;
} else {
manipulator_loader.diagrama.gotoAndStop(1);
manipulator_loader._visible = false;
}
if (_root.shock_tower_timeout != 0) {
shock_tower_loader._visible = true;
if (_root.shock_tower_timeout > 0) {
_root.shock_tower_timeout = _root.shock_tower_timeout - 0.032258064516129;
} else {
_root.shock_tower_timeout = 0;
}
shock_tower_loader.current_value = _root.shock_tower_timeout;
} else {
shock_tower_loader.diagrama.gotoAndStop(1);
shock_tower_loader._visible = false;
}
if (_root.tremor_tower_timeout != 0) {
tremor_tower_loader._visible = true;
if (_root.tremor_tower_timeout > 0) {
_root.tremor_tower_timeout = _root.tremor_tower_timeout - 0.032258064516129;
} else {
_root.tremor_tower_timeout = 0;
}
tremor_tower_loader.current_value = _root.tremor_tower_timeout;
} else {
tremor_tower_loader.diagrama.gotoAndStop(1);
tremor_tower_loader._visible = false;
}
if (_root.manipulator2_timeout != 0) {
manipulator2_loader._visible = true;
if (_root.manipulator2_timeout > 0) {
_root.manipulator2_timeout = _root.manipulator2_timeout - 0.032258064516129;
} else {
_root.manipulator2_timeout = 0;
}
manipulator2_loader.current_value = _root.manipulator2_timeout;
} else {
manipulator2_loader.diagrama.gotoAndStop(1);
manipulator2_loader._visible = false;
}
if (_root.hacking_timeout != 0) {
hacking_loader._visible = true;
if (_root.hacking_timeout > 0) {
_root.hacking_timeout = _root.hacking_timeout - 0.032258064516129;
} else {
_root.hacking_timeout = 0;
}
hacking_loader.current_value = _root.hacking_timeout;
} else {
hacking_loader.diagrama.gotoAndStop(1);
hacking_loader._visible = false;
}
if (_root.ballcatcher_timeout != 0) {
ballcatcher_loader._visible = true;
if (_root.ballcatcher_timeout > 0) {
_root.ballcatcher_timeout = _root.ballcatcher_timeout - 0.032258064516129;
} else {
_root.ballcatcher_timeout = 0;
}
ballcatcher_loader.current_value = _root.ballcatcher_timeout;
} else {
ballcatcher_loader.diagrama.gotoAndStop(1);
ballcatcher_loader._visible = false;
}
Instance of Symbol 1624 MovieClip in Symbol 1625 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1629 Button
on (release, keyPress "1") {
_root.ball_type = 1;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_1;
_root.showwhichballinfo = 1;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1633 Button
on (release, keyPress "2") {
_root.ball_type = 2;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_2;
_root.showwhichballinfo = 2;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1638 Button
on (release, keyPress "3") {
_root.ball_type = 3;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_3;
_root.showwhichballinfo = 3;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1644 Button
on (release, keyPress "5") {
_root.ball_type = 5;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_5;
_root.showwhichballinfo = 5;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1650 Button
on (release, keyPress "7") {
_root.ball_type = 9;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_9;
_root.showwhichballinfo = 9;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1656 Button
on (release, keyPress "8") {
_root.ball_type = 8;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_8;
_root.showwhichballinfo = 8;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1662 Button
on (release, keyPress "4") {
_root.ball_type = 7;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_7;
_root.showwhichballinfo = 7;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Symbol 1668 Button
on (release, keyPress "6") {
_root.ball_type = 4;
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.ball_type_energycost_4;
_root.showwhichballinfo = 4;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 0;
_root.showwhichballinfo = 0;
}
Instance of Symbol 1634 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_2 + 1);
}
}
Instance of Symbol 1639 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_3 + 1);
}
}
Instance of Symbol 1645 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.tier2projectiles_timeout > 0) or (_root.base_dead eq 1)) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_5 + 1);
}
}
Instance of Symbol 1651 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.tier2projectiles_timeout > 0) or (_root.base_dead eq 1)) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_9 + 1);
}
}
Instance of Symbol 1657 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.tier2projectiles_timeout > 0) or (_root.base_dead eq 1)) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_8 + 1);
}
}
Instance of Symbol 1663 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_7 + 1);
}
}
Instance of Symbol 1669 MovieClip in Symbol 1670 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.tier2projectiles_timeout > 0) or (_root.base_dead eq 1)) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_4 + 1);
}
}
Symbol 1673 MovieClip Frame 4
procentzagruzki = Math.floor((100 * (maximum_value - current_value)) / maximum_value);
diagrama.gotoAndStop(procentzagruzki);
Symbol 1674 MovieClip Frame 1
mc1.maximum_value = _root.tier2projectiles_loading_time;
mc2.maximum_value = _root.tier2projectiles_loading_time;
mc3.maximum_value = _root.tier2projectiles_loading_time;
mc4.maximum_value = _root.tier2projectiles_loading_time;
Symbol 1674 MovieClip Frame 2
gotoAndPlay (1);
if (_root.tier2projectiles_timeout != 0) {
mc1._visible = true;
mc2._visible = true;
mc3._visible = true;
mc4._visible = true;
if (_root.tier2projectiles_timeout > 0) {
_root.tier2projectiles_timeout = _root.tier2projectiles_timeout - 0.032258064516129;
} else {
_root.tier2projectiles_timeout = 0;
}
mc1.current_value = _root.tier2projectiles_timeout;
mc2.current_value = _root.tier2projectiles_timeout;
mc3.current_value = _root.tier2projectiles_timeout;
mc4.current_value = _root.tier2projectiles_timeout;
} else {
mc1.diagrama.gotoAndStop(1);
mc1._visible = false;
mc2.diagrama.gotoAndStop(1);
mc2._visible = false;
mc3.diagrama.gotoAndStop(1);
mc3._visible = false;
mc4.diagrama.gotoAndStop(1);
mc4._visible = false;
}
Symbol 1682 MovieClip Frame 1
if (yiffffff != 1337) {
source_width = bar._width;
yiffffff = 1337;
}
otnoshenie = _root.kills_exp_count / _root.kills_max;
bar._width = source_width * otnoshenie;
Symbol 1682 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1684 Button
on (release) {
_root.kursor = 1;
}
Instance of Symbol 1691 MovieClip in Symbol 1693 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1694 MovieClip Frame 2
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 1693 MovieClip in Symbol 1694 MovieClip Frame 3
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);
}
}
Symbol 1694 MovieClip Frame 4
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 1695 MovieClip 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";
}
Symbol 1696 Button
on (press, keyPress "Q") {
gotoAndPlay (2);
if (_root.global_quality < 4) {
_root.global_quality = _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 = _root.global_quality + 1;
} else if (_root.global_quality eq 4) {
_root.global_quality = 1;
}
}
Symbol 1697 MovieClip Frame 1
stop();
Symbol 1697 MovieClip Frame 2
_root.show_quality.play_ = 1;
Symbol 1697 MovieClip Frame 35
_root.show_quality.play_ = 0;
Symbol 1708 MovieClip Frame 9
stop();
Instance of Symbol 1715 MovieClip in Symbol 1716 MovieClip Frame 1
onClipEvent (load) {
_root.call_error = 0;
timer = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.call_error != 0) {
gotoAndStop(_root.call_error + 1);
timer = timer + 0.0333333333333333;
if (timer > 1.2) {
timer = 0;
_root.call_error = 0;
}
} else {
gotoAndStop (1);
}
}
Symbol 1722 MovieClip Frame 1
if (yiff != 1) {
var score = 0;
var yiff = 1;
var aaa = 0;
}
Symbol 1722 MovieClip Frame 3
if ((_root.game_modo eq 5) or (_root.game_modo eq 6)) {
dif = _root.score2 - score;
if (score < _root.score2) {
score = score + aaa;
}
} else {
dif = _root.score - score;
if (score < _root.score) {
score = score + aaa;
}
}
difference = Math.abs(dif);
if (difference >= 100) {
aaa = Math.floor(difference / 10) + 10;
} else if ((difference >= 10) and (difference < 100)) {
aaa = 10;
} else if ((difference > 0) and (difference < 1)) {
aaa = 1;
} else if (difference eq 0) {
aaa = 0;
} else {
aaa = 0;
}
Symbol 1725 MovieClip Frame 5
lives_show = _root.lives_show;
Instance of Symbol 1727 MovieClip in Symbol 1728 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.initial_lives > 100) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 1728 MovieClip Frame 5
lvl_show = _root.lvl_show;
kills_show = _root.kills_show;
if (_root.game_modo eq 4) {
wave_show = "Armageddon";
if (_root.armageddon_timer > 0) {
time_show = "Time: " + _root.armageddon_timer;
} else {
time_show = "Time: 0";
}
} else {
if (_root.game_modo eq 5) {
wave_show = "Rush";
} else if (_root.game_modo eq 6) {
wave_show = "Crossfire";
} else {
wave_show = "Wave: " + _root.wave;
}
time_show = _root.time_show;
}
Symbol 1737 MovieClip Frame 1
stop();
Symbol 1747 Button
on (release) {
play();
_root.gotomenu = 1;
}
Symbol 1755 MovieClip Frame 4
if ((_root.game_on_hold eq 1) or (_root.stopthefuckingmusic eq 1)) {
gotoAndPlay (3);
} else {
play();
}
Symbol 1755 MovieClip Frame 7
if ((_root.game_on_hold != 1) and (_root.stopthefuckingmusic != 1)) {
gotoAndPlay (6);
} else {
play();
}
Symbol 1761 Button
on (release) {
play();
}
Symbol 1771 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 1780 Button
on (release) {
if ((_root.skill_points > 0) and (_root.implosion_points < _root.implosion_points_max)) {
_root.skill_points--;
_root.implosion_points++;
}
}
Symbol 1787 MovieClip Frame 22
stop();
Symbol 1791 Button
on (release) {
if ((_root.skill_points > 0) and (_root.shockwave_points < _root.shockwave_points_max)) {
_root.skill_points--;
_root.shockwave_points++;
}
}
Symbol 1797 Button
on (release) {
if (_root.skill_points > 0) {
_root.skill_points--;
_root.energy_points++;
}
}
Symbol 1801 Button
on (release) {
if (_root.skill_points > 0) {
_root.skill_points--;
_root.stability_points++;
}
}
Symbol 1808 Button
on (release) {
if ((_root.skill_points > 0) and (_root.manipulator_points < _root.manipulator_points_max)) {
_root.skill_points--;
_root.manipulator_points++;
}
}
Symbol 1810 Button
on (release) {
if ((_root.skill_points > 0) and (_root.manipulator2_points < _root.manipulator2_points_max)) {
_root.skill_points--;
_root.manipulator2_points++;
}
}
Symbol 1817 Button
on (release) {
if ((_root.skill_points > 0) and (_root.projectile_points < 7)) {
_root.skill_points--;
_root.projectile_points++;
}
}
Symbol 1819 MovieClip Frame 1
stop();
Symbol 1819 MovieClip Frame 2
stop();
Symbol 1831 Button
on (release) {
if ((_root.skill_points > 0) and (_root.hacking_points < _root.hacking_points_max)) {
_root.skill_points--;
_root.hacking_points++;
}
}
Symbol 1835 Button
on (release) {
if ((_root.skill_points > 0) and (_root.shocktower_points < _root.shocktower_points_max)) {
_root.skill_points--;
_root.shocktower_points++;
}
}
Symbol 1840 Button
on (release) {
if ((_root.skill_points > 0) and (_root.ballcatcher_points < _root.ballcatcher_points_max)) {
_root.skill_points--;
_root.ballcatcher_points++;
}
}
Symbol 1847 Button
on (release) {
if ((_root.skill_points > 0) and (_root.tremor_points < _root.tremor_points_max)) {
_root.skill_points--;
_root.tremor_points++;
}
}
Symbol 1868 Button
on (release) {
saveskillzslot = "save_skillz_slot_" + _root.game_modo;
saveskillzslot = SharedObject.getLocal(saveskillzslot);
saveskillzslot.data.saved = 1;
saveskillzslot.data.skill_points = _root.skill_points;
saveskillzslot.data.energy_points = _root.energy_points;
saveskillzslot.data.stability_points = _root.stability_points;
saveskillzslot.data.projectile_points = _root.projectile_points;
saveskillzslot.data.shockwave_points = _root.shockwave_points;
saveskillzslot.data.implosion_points = _root.implosion_points;
saveskillzslot.data.manipulator_points = _root.manipulator_points;
saveskillzslot.data.manipulator2_points = _root.manipulator2_points;
saveskillzslot.data.hacking_points = _root.hacking_points;
saveskillzslot.data.ballcatcher_points = _root.ballcatcher_points;
saveskillzslot.data.shocktower_points = _root.shocktower_points;
saveskillzslot.data.tremor_points = _root.tremor_points;
}
Symbol 1872 Button
on (release) {
saveskillzslot = "save_skillz_slot_" + _root.game_modo;
saveskillzslot = SharedObject.getLocal(saveskillzslot);
if (saveskillzslot.data.saved eq 1) {
_root.skill_points = saveskillzslot.data.skill_points;
_root.energy_points = saveskillzslot.data.energy_points;
_root.stability_points = saveskillzslot.data.stability_points;
_root.projectile_points = saveskillzslot.data.projectile_points;
_root.shockwave_points = saveskillzslot.data.shockwave_points;
_root.implosion_points = saveskillzslot.data.implosion_points;
_root.manipulator_points = saveskillzslot.data.manipulator_points;
_root.manipulator2_points = saveskillzslot.data.manipulator2_points;
_root.hacking_points = saveskillzslot.data.hacking_points;
_root.ballcatcher_points = saveskillzslot.data.ballcatcher_points;
_root.shocktower_points = saveskillzslot.data.shocktower_points;
_root.tremor_points = saveskillzslot.data.tremor_points;
}
}
Symbol 1876 Button
on (release) {
if (_root.game_modo eq 4) {
_root.skill_points = 80;
} else if (_root.game_modo eq 5) {
_root.skill_points = 30;
} else if (_root.game_modo eq 6) {
_root.skill_points = 60;
}
_root.energy_points = 0;
_root.stability_points = 0;
_root.projectile_points = 0;
_root.shockwave_points = 0;
_root.implosion_points = 0;
_root.manipulator_points = 0;
_root.manipulator2_points = 0;
_root.hacking_points = 0;
_root.ballcatcher_points = 0;
_root.shocktower_points = 0;
_root.tremor_points = 0;
_root.shockwave_available = 0;
_root.implosion_available = 0;
_root.manipulator_available = 0;
_root.manipulator2_available = 0;
_root.hacking_available = 0;
_root.tremor_tower_available = 0;
_root.shock_tower_available = 0;
_root.ballcatcher_available = 0;
_root.ball_type_available_2 = 0;
_root.ball_type_available_3 = 0;
_root.ball_type_available_4 = 0;
_root.ball_type_available_5 = 0;
_root.ball_type_available_7 = 0;
_root.ball_type_available_8 = 0;
_root.ball_type_available_9 = 0;
}
Symbol 1911 MovieClip Frame 117
changemovie = 1;
Symbol 1917 MovieClip Frame 204
changemovie = 1;
Symbol 1922 MovieClip Frame 197
changemovie = 1;
Symbol 1928 MovieClip Frame 316
changemovie = 1;
Symbol 1934 MovieClip Frame 283
changemovie = 1;
Symbol 1943 MovieClip Frame 420
changemovie = 1;
Symbol 1948 MovieClip Frame 289
changemovie = 1;
Symbol 1956 MovieClip Frame 480
changemovie = 1;
Symbol 1957 MovieClip Frame 2
stop();
Instance of Symbol 1877 MovieClip in Symbol 1957 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.game_modo eq 1) or (_root.game_modo eq 2)) or (_root.game_modo eq 3)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 1961 Button
on (release) {
gotoAndStop (1);
}
Symbol 1967 Button
on (release) {
gotoAndStop (1);
}
Symbol 1968 MovieClip Frame 1
if (_root.ingame_menu._visible eq false) {
_root.ingame_menu._visible = true;
}
onEnterFrame = function () {
_root.levelupmenu_opened = 0;
if (_root.skill_points > 0) {
gotoAndStop (2);
} else if (_root.game_on_hold != 1) {
gotoAndStop (1);
} else {
stop();
}
};
Symbol 1968 MovieClip Frame 2
if (_root.ingame_menu._visible eq false) {
_root.ingame_menu._visible = true;
}
onEnterFrame = function () {
_root.levelupmenu_opened = 0;
if (_root.skill_points <= 0) {
gotoAndStop (1);
}
};
Symbol 1968 MovieClip Frame 3
stop();
if (_root.ingame_menu._visible eq true) {
_root.ingame_menu._visible = false;
}
onEnterFrame = function () {
_root.levelupmenu_opened = 1;
if ((_root.skill_points <= 0) and (_root.game_on_hold != 1)) {
gotoAndStop (1);
}
skill_points_show = "Unused Skillpoints: " + _root.skill_points;
energy_show = "Level: " + _root.energy_points;
stability_show = "Level: " + _root.stability_points;
if (_root.projectile_points > 6) {
projectile_button_module.gotoAndStop(3);
projectile_show = "[max]";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
projectile_tf.setTextFormat(_local2);
} else {
projectile_show = "Level: " + _root.projectile_points;
if ((_root.ball_type_available_2 eq 1) and (_root.lvl < 3)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 3 Required";
} else if ((_root.ball_type_available_3 eq 1) and (_root.lvl < 5)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 5 Required";
} else if ((_root.ball_type_available_7 eq 1) and (_root.lvl < 7)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 7 Required";
} else if ((_root.ball_type_available_5 eq 1) and (_root.lvl < 9)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 9 Required";
} else if ((_root.ball_type_available_4 eq 1) and (_root.lvl < 11)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 11 Required";
} else if ((_root.ball_type_available_9 eq 1) and (_root.lvl < 13)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 13 Required";
} else if ((_root.ball_type_available_8 eq 1) and (_root.lvl < 15)) {
projectile_button_module.gotoAndStop(1);
projectile_show2 = "Tech Level 15 Required";
} else {
projectile_show2 = "";
projectile_button_module.gotoAndStop(2);
}
}
if (_root.antimatter_points >= _root.antimatter_points_max) {
antimatter_button_module.gotoAndStop(2);
antimatter_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
antimatter_tf.setTextFormat(_local2);
} else {
antimatter_button_module.gotoAndStop(1);
antimatter_show = (("Points: " + _root.antimatter_points) + "/") + _root.antimatter_points_max;
}
if (_root.shockwave_points >= _root.shockwave_points_max) {
shockwave_button_module.gotoAndStop(2);
shockwave_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
shockwave_tf.setTextFormat(_local2);
} else {
shockwave_button_module.gotoAndStop(1);
shockwave_show = (("Points: " + _root.shockwave_points) + "/") + _root.shockwave_points_max;
}
if (_root.manipulator_points >= _root.manipulator_points_max) {
manipulator_button_module.gotoAndStop(2);
manipulator_show = "Level: 3/3";
manipulator_lvl_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
manipulator_lvl_tf.setTextFormat(_local2);
} else if (_root.manipulator_points < _root.manipulator_points_step_1) {
manipulator_button_module.gotoAndStop(1);
manipulator_show = (("Points: " + _root.manipulator_points) + "/") + _root.manipulator_points_step_1;
manipulator_lvl_show = "Level: 0/3";
} else if ((_root.manipulator_points >= _root.manipulator_points_step_1) and (_root.manipulator_points < _root.manipulator_points_step_2)) {
manipulator_button_module.gotoAndStop(1);
manipulator_show = (("Points: " + _root.manipulator_points) + "/") + _root.manipulator_points_step_2;
manipulator_lvl_show = "Level: 1/3";
} else if (_root.manipulator_points >= _root.manipulator_points_step_2) {
manipulator_button_module.gotoAndStop(1);
manipulator_show = (("Points: " + _root.manipulator_points) + "/") + _root.manipulator_points_max;
manipulator_lvl_show = "Level: 2/3";
}
if (_root.hacking_points >= _root.hacking_points_max) {
hacking_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
hacking_tf.setTextFormat(_local2);
hacking_button_module.gotoAndStop(3);
} else if (_root.energy_points > 9) {
hacking_show = (("Points: " + _root.hacking_points) + "/") + _root.hacking_points_max;
hacking_button_module.gotoAndStop(2);
} else {
hacking_show = (("Points: " + _root.hacking_points) + "/") + _root.hacking_points_max;
hacking_button_module.gotoAndStop(1);
}
if (_root.implosion_points >= _root.implosion_points_max) {
implosion_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
implosion_tf.setTextFormat(_local2);
implosion_button_module.gotoAndStop(3);
} else if (_root.shockwave_available eq 1) {
implosion_show = (("Points: " + _root.implosion_points) + "/") + _root.implosion_points_max;
implosion_button_module.gotoAndStop(2);
} else {
implosion_show = (("Points: " + _root.implosion_points) + "/") + _root.implosion_points_max;
implosion_button_module.gotoAndStop(1);
}
if (_root.manipulator2_points >= _root.manipulator2_points_max) {
manipulator2_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
manipulator2_tf.setTextFormat(_local2);
manipulator2_button_module.gotoAndStop(3);
} else if (_root.manipulator_points > 4) {
manipulator2_show = (("Points: " + _root.manipulator2_points) + "/") + _root.manipulator2_points_max;
manipulator2_button_module.gotoAndStop(2);
} else {
manipulator2_show = (("Points: " + _root.manipulator2_points) + "/") + _root.manipulator2_points_max;
manipulator2_button_module.gotoAndStop(1);
}
if (_root.ballcatcher_points >= _root.ballcatcher_points_max) {
ballcatcher_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
ballcatcher_tf.setTextFormat(_local2);
ballcatcher_button_module.gotoAndStop(3);
} else if (((_root.energy_points > 4) and (_root.shockwave_available eq 1)) and (_root.stability_points > 9)) {
ballcatcher_show = (("Points: " + _root.ballcatcher_points) + "/") + _root.ballcatcher_points_max;
ballcatcher_button_module.gotoAndStop(2);
} else {
ballcatcher_show = (("Points: " + _root.ballcatcher_points) + "/") + _root.ballcatcher_points_max;
ballcatcher_button_module.gotoAndStop(1);
}
if (_root.tremor_points >= _root.tremor_points_max) {
tremor_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
tremor_tf.setTextFormat(_local2);
tremor_button_module.gotoAndStop(3);
} else if ((_root.shockwave_available eq 1) and (_root.manipulator_points > 4)) {
tremor_show = (("Points: " + _root.tremor_points) + "/") + _root.tremor_points_max;
tremor_button_module.gotoAndStop(2);
} else {
tremor_show = (("Points: " + _root.tremor_points) + "/") + _root.tremor_points_max;
tremor_button_module.gotoAndStop(1);
}
if (_root.shocktower_points >= _root.shocktower_points_max) {
shocktower_show = "obtained";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
shocktower_tf.setTextFormat(_local2);
shocktower_button_module.gotoAndStop(3);
} else if ((_root.shockwave_available eq 1) and (_root.manipulator_points > 9)) {
shocktower_show = (("Points: " + _root.shocktower_points) + "/") + _root.shocktower_points_max;
shocktower_button_module.gotoAndStop(2);
} else {
shocktower_show = (("Points: " + _root.shocktower_points) + "/") + _root.shocktower_points_max;
shocktower_button_module.gotoAndStop(1);
}
};
Instance of Symbol 1957 MovieClip "ekransinfoi" in Symbol 1968 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.game_on_hold eq 1) {
_visible = true;
channel_3 = location_3.hitTest(_root._xmouse, _root._ymouse, true);
channel_4 = location_4.hitTest(_root._xmouse, _root._ymouse, true);
channel_5 = location_5.hitTest(_root._xmouse, _root._ymouse, true);
channel_6 = location_6.hitTest(_root._xmouse, _root._ymouse, true);
channel_7 = location_7.hitTest(_root._xmouse, _root._ymouse, true);
channel_8 = location_8.hitTest(_root._xmouse, _root._ymouse, true);
channel_9 = location_9.hitTest(_root._xmouse, _root._ymouse, true);
channel_10 = location_10.hitTest(_root._xmouse, _root._ymouse, true);
channel_11 = location_11.hitTest(_root._xmouse, _root._ymouse, true);
channel_12 = location_12.hitTest(_root._xmouse, _root._ymouse, true);
channel_13 = location_13.hitTest(_root._xmouse, _root._ymouse, true);
if (channel_3 eq "true") {
gotoAndStop (3);
} else if (channel_4 eq "true") {
gotoAndStop (4);
} else if (channel_5 eq "true") {
gotoAndStop (5);
} else if (channel_6 eq "true") {
gotoAndStop (6);
} else if (channel_7 eq "true") {
gotoAndStop (7);
} else if (channel_8 eq "true") {
gotoAndStop (8);
} else if (channel_9 eq "true") {
gotoAndStop (9);
} else if (channel_10 eq "true") {
gotoAndStop (10);
} else if (channel_11 eq "true") {
gotoAndStop (11);
} else if (channel_12 eq "true") {
gotoAndStop (12);
} else if (channel_13 eq "true") {
gotoAndStop (13);
} else {
gotoAndStop (2);
}
} else {
_visible = false;
}
}
Symbol 1990 Button
on (release) {
menushka.gotoAndStop(18);
}
Symbol 1992 Button
on (release) {
play();
kuda = "main menu";
}
Symbol 1994 Button
on (release) {
play();
kuda = 1;
if (_root.game_modo eq 1) {
save_slot3 = SharedObject.getLocal("save_slot3");
save_slot3.data.saved = 1;
save_slot3.data.wave = _root.wave;
save_slot3.data.score = _root.score;
save_slot3.data.misses = _root.misses;
save_slot3.data.lvl = _root.lvl;
save_slot3.data.kills_count = _root.kills_count;
save_slot3.data.kills_exp_count = _root.kills_exp_count;
save_slot3.data.skill_points = _root.skill_points;
save_slot3.data.energy_points = _root.energy_points;
save_slot3.data.stability_points = _root.stability_points;
save_slot3.data.projectile_points = _root.projectile_points;
save_slot3.data.shockwave_points = _root.shockwave_points;
save_slot3.data.implosion_points = _root.implosion_points;
save_slot3.data.manipulator_points = _root.manipulator_points;
save_slot3.data.antimatter_points = _root.antimatter_points;
save_slot3.data.manipulator2_points = _root.manipulator2_points;
save_slot3.data.hacking_points = _root.hacking_points;
save_slot3.data.ballcatcher_points = _root.ballcatcher_points;
save_slot3.data.shocktower_points = _root.shocktower_points;
save_slot3.data.tremor_points = _root.tremor_points;
}
}
Symbol 1996 Button
on (release) {
play();
kuda = 2;
}
Symbol 1998 Button
on (release) {
menushka.gotoAndStop(17);
}
Symbol 2000 Button
on (release) {
_root.ingame_menu.menushka.gotoAndStop(16);
}
Symbol 2021 Button
on (press) {
_root.launcher_location = 3;
}
Symbol 2022 Button
on (press) {
_root.launcher_location = 2;
}
Symbol 2023 Button
on (press) {
_root.launcher_location = 1;
}
Instance of Symbol 2024 MovieClip in Symbol 2028 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.launcher_location);
}
Instance of Symbol 2027 MovieClip in Symbol 2028 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.respawn_pattern);
}
Symbol 2034 Button
on (release) {
_root.launcher_location = 2;
}
Symbol 2038 Button
on (release) {
_root.launcher_location = 3;
}
Symbol 2040 Button
on (release) {
_root.launcher_location = 1;
}
Instance of Symbol 2095 MovieClip in Symbol 2103 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.wave + 1);
}
Symbol 2108 MovieClip Frame 1
wave = _root.wave;
Symbol 2122 MovieClip Frame 2
stop();
Instance of Symbol 2041 MovieClip in Symbol 2122 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.launcher_location);
}
Instance of Symbol 2050 MovieClip in Symbol 2122 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.respawn_pattern);
}
Instance of Symbol 2103 MovieClip in Symbol 2122 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.game_modo);
}
Instance of Symbol 2115 MovieClip in Symbol 2122 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(_root.game_modo + 1);
}
Symbol 2126 MovieClip Frame 11
stop();
Symbol 2128 Button
on (release) {
play();
}
Symbol 2136 MovieClip Frame 1
stop();
Symbol 2136 MovieClip Frame 5
save_slot1 = SharedObject.getLocal("save_slot1");
save_slot1.data.saved = 1;
save_slot1.data.wave = _root.wave;
save_slot1.data.score = _root.score;
save_slot1.data.misses = _root.misses;
save_slot1.data.lvl = _root.lvl;
save_slot1.data.kills_count = _root.kills_count;
save_slot1.data.kills_exp_count = _root.kills_exp_count;
save_slot1.data.skill_points = _root.skill_points;
save_slot1.data.energy_points = _root.energy_points;
save_slot1.data.stability_points = _root.stability_points;
save_slot1.data.projectile_points = _root.projectile_points;
save_slot1.data.shockwave_points = _root.shockwave_points;
save_slot1.data.implosion_points = _root.implosion_points;
save_slot1.data.manipulator_points = _root.manipulator_points;
save_slot1.data.antimatter_points = _root.antimatter_points;
save_slot1.data.manipulator2_points = _root.manipulator2_points;
save_slot1.data.hacking_points = _root.hacking_points;
save_slot1.data.ballcatcher_points = _root.ballcatcher_points;
save_slot1.data.shocktower_points = _root.shocktower_points;
save_slot1.data.tremor_points = _root.tremor_points;
Symbol 2136 MovieClip Frame 18
stop();
Symbol 2139 Button
on (release) {
play();
}
Symbol 2140 MovieClip Frame 1
stop();
Symbol 2140 MovieClip Frame 5
save_slot2 = SharedObject.getLocal("save_slot2");
save_slot2.data.saved = 1;
save_slot2.data.wave = _root.wave;
save_slot2.data.score = _root.score;
save_slot2.data.misses = _root.misses;
save_slot2.data.lvl = _root.lvl;
save_slot2.data.kills_count = _root.kills_count;
save_slot2.data.kills_exp_count = _root.kills_exp_count;
save_slot2.data.skill_points = _root.skill_points;
save_slot2.data.energy_points = _root.energy_points;
save_slot2.data.stability_points = _root.stability_points;
save_slot2.data.projectile_points = _root.projectile_points;
save_slot2.data.shockwave_points = _root.shockwave_points;
save_slot2.data.implosion_points = _root.implosion_points;
save_slot2.data.manipulator_points = _root.manipulator_points;
save_slot2.data.antimatter_points = _root.antimatter_points;
save_slot2.data.manipulator2_points = _root.manipulator2_points;
save_slot2.data.hacking_points = _root.hacking_points;
save_slot2.data.ballcatcher_points = _root.ballcatcher_points;
save_slot2.data.shocktower_points = _root.shocktower_points;
save_slot2.data.tremor_points = _root.tremor_points;
Symbol 2140 MovieClip Frame 18
stop();
Symbol 2147 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 2149 MovieClip Frame 28
stop();
Symbol 2153 Button
on (release) {
gotoAndStop (15);
}
Symbol 2159 MovieClip Frame 304
changemovie = 1;
Symbol 2234 MovieClip Frame 1
stop();
Symbol 2243 Button
on (release) {
play();
}
Symbol 2250 MovieClip Frame 1
stop();
a = 0;
Symbol 2250 MovieClip Frame 2
stop();
a = 1;
Symbol 2257 MovieClip Frame 15
stop();
initial_lives = _root.initial_lives;
Instance of Symbol 2250 MovieClip in Symbol 2257 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.block_screen_shake != 1) and (_root.block_screen_shake != 0)) {
_root.block_screen_shake = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.block_screen_shake + 1);
} else {
_root.block_screen_shake = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2257 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.ball_animation_off != 1) and (_root.ball_animation_off != 0)) {
_root.ball_animation_off = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.ball_animation_off + 1);
} else {
_root.ball_animation_off = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2257 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.stopthefuckingmusic != 1) and (_root.stopthefuckingmusic != 0)) {
_root.stopthefuckingmusic = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.stopthefuckingmusic + 1);
} else {
_root.stopthefuckingmusic = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2257 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.all_sound_off != 1) and (_root.all_sound_off != 0)) {
_root.all_sound_off = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.all_sound_off + 1);
} else {
_root.all_sound_off = a;
}
}
Symbol 2268 Button
on (release) {
nextFrame();
batching = 1;
}
Symbol 2269 Button
on (release) {
gotoAndStop (12);
batching = 1;
}
Symbol 2271 Button
on (release) {
prevFrame();
batching = 1;
}
Symbol 2282 Button
on (release) {
gotoAndStop (1);
batching = 1;
}
Symbol 2283 Button
on (release) {
prevFrame();
batching = 1;
}
Symbol 2285 MovieClip Frame 1
rr = 0;
stop();
Symbol 2285 MovieClip Frame 2
rr = 1;
Symbol 2285 MovieClip Frame 3
rr = 2;
Symbol 2285 MovieClip Frame 4
rr = 3;
Symbol 2285 MovieClip Frame 5
rr = 4;
Symbol 2285 MovieClip Frame 6
rr = 5;
Symbol 2285 MovieClip Frame 7
rr = 6;
Symbol 2285 MovieClip Frame 8
rr = 7;
Symbol 2285 MovieClip Frame 9
rr = 8;
Symbol 2285 MovieClip Frame 10
rr = 9;
Symbol 2285 MovieClip Frame 11
rr = 10;
Symbol 2285 MovieClip Frame 12
rr = 11;
Symbol 2296 Button
on (release) {
_root.play();
_root.gotomenu = 1;
}
Symbol 2300 Button
on (release) {
_root.game_on_hold = 0;
_root.ingame_menu.gotoAndPlay(1);
}
Symbol 2306 Button
on (release) {
_root.levelup_menu.gotoAndStop(3);
}
Symbol 2312 Button
on (release) {
if ((enemies > 20) and (enemies < 35)) {
ddd = 2;
} else if (enemies > 35) {
ddd = 5;
} else {
ddd = 1;
}
if (enemies < 95) {
enemies = enemies + ddd;
}
if (enemies > 100) {
enemies = 100;
}
}
Symbol 2316 Button
on (release) {
if ((enemies > 20) and (enemies < 35)) {
ddd = 2;
} else if (enemies > 35) {
ddd = 5;
} else {
ddd = 1;
}
if (enemies > 1) {
enemies = enemies - ddd;
}
if (enemies < 1) {
enemies = 1;
}
}
Symbol 2320 MovieClip Frame 1
stop();
a = 0;
Symbol 2320 MovieClip Frame 2
stop();
a = 1;
Symbol 2332 Button
on (release) {
optionsmenu._visible = true;
}
Symbol 2339 Button
on (release) {
_root.respawn_pattern = 2;
}
Symbol 2343 Button
on (release) {
_root.respawn_pattern = 3;
}
Symbol 2348 Button
on (release) {
_root.respawn_pattern = 1;
}
Symbol 2354 MovieClip Frame 1
stop();
a = 1;
Symbol 2354 MovieClip Frame 2
stop();
a = 2;
Symbol 2360 Button
on (release) {
_visible = false;
}
Symbol 2363 MovieClip Frame 1
_visible = false;
Symbol 2363 MovieClip Frame 2
stop();
Instance of Symbol 2250 MovieClip in Symbol 2363 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.block_screen_shake != 1) and (_root.block_screen_shake != 0)) {
_root.block_screen_shake = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.block_screen_shake + 1);
} else {
_root.block_screen_shake = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2363 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.ball_animation_off != 1) and (_root.ball_animation_off != 0)) {
_root.ball_animation_off = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.ball_animation_off + 1);
} else {
_root.ball_animation_off = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2363 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.stopthefuckingmusic != 1) and (_root.stopthefuckingmusic != 0)) {
_root.stopthefuckingmusic = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.stopthefuckingmusic + 1);
} else {
_root.stopthefuckingmusic = a;
}
}
Instance of Symbol 2250 MovieClip in Symbol 2363 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.all_sound_off != 1) and (_root.all_sound_off != 0)) {
_root.all_sound_off = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.all_sound_off + 1);
} else {
_root.all_sound_off = a;
}
}
Symbol 2364 MovieClip Frame 2
_root.respawnrates67yiffyiff = 13;
Symbol 2364 MovieClip Frame 18
stop();
Instance of Symbol 2285 MovieClip "batchrr" in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (respawnratesyiffyiff != 1337) {
respawnratesyiffyiff = 1337;
gotoAndStop(_root.batch_rr + 1);
} else {
_root.batch_rr = rr;
}
if (batching eq 1) {
batching = 0;
_root.respawnrates67yiffyiff = 1;
_root.cm_spikey_rr = rr;
_root.cm_clinch_tank_rr = rr;
_root.cm_singularity_tank_rr = rr;
_root.cm_mammoth_tank_rr = rr;
_root.cm_mammoth_tank2_rr = rr;
_root.cm_kindabike_rr = rr;
_root.cm_smooth_tank_rr = rr;
_root.cm_ord_tank_rr = rr;
_root.cm_lazer_tank_rr = rr;
_root.cm_hover_tank_rr = rr;
_root.cm_heavy_tank_rr = rr;
_root.cm_railgrav_tank_rr = rr;
_root.cm_nuketruck_rr = rr;
_root.cm_black_tank_rr = rr;
_root.cm_mech2_rr = rr;
_root.cm_tarakan_rr = rr;
_root.cm_mech1_rr = rr;
_root.cm_kindabike2_rr = rr;
_root.cm_sciencevessel_rr = rr;
_root.cm_square_tank_rr = rr;
_root.cm_dragoon_rr = rr;
_root.cm_predator_rr = rr;
}
}
Instance of Symbol 2289 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.respawnrates67yiffyiff != 1337) {
_root.respawnrates67yiffyiff = 1337;
spikey_rr.gotoAndStop(_root.cm_spikey_rr + 1);
clinch_tank_rr.gotoAndStop(_root.cm_clinch_tank_rr + 1);
singularity_tank_rr.gotoAndStop(_root.cm_singularity_tank_rr + 1);
mammoth_tank_rr.gotoAndStop(_root.cm_mammoth_tank_rr + 1);
mammoth_tank2_rr.gotoAndStop(_root.cm_mammoth_tank2_rr + 1);
kindabike_rr.gotoAndStop(_root.cm_kindabike_rr + 1);
smooth_tank_rr.gotoAndStop(_root.cm_smooth_tank_rr + 1);
ord_tank_rr.gotoAndStop(_root.cm_ord_tank_rr + 1);
lazer_tank_rr.gotoAndStop(_root.cm_lazer_tank_rr + 1);
hover_tank_rr.gotoAndStop(_root.cm_hover_tank_rr + 1);
heavy_tank_rr.gotoAndStop(_root.cm_heavy_tank_rr + 1);
railgrav_tank_rr.gotoAndStop(_root.cm_railgrav_tank_rr + 1);
nuketruck_rr.gotoAndStop(_root.cm_nuketruck_rr + 1);
black_tank_rr.gotoAndStop(_root.cm_black_tank_rr + 1);
mech2_rr.gotoAndStop(_root.cm_mech2_rr + 1);
tarakan_rr.gotoAndStop(_root.cm_tarakan_rr + 1);
mech1_rr.gotoAndStop(_root.cm_mech1_rr + 1);
kindabike2_rr.gotoAndStop(_root.cm_kindabike2_rr + 1);
sciencevessel_rr.gotoAndStop(_root.cm_sciencevessel_rr + 1);
square_tank_rr.gotoAndStop(_root.cm_square_tank_rr + 1);
dragoon_rr.gotoAndStop(_root.cm_dragoon_rr + 1);
predator_rr.gotoAndStop(_root.cm_predator_rr + 1);
} else {
_root.cm_spikey_rr = spikey_rr.rr;
_root.cm_clinch_tank_rr = clinch_tank_rr.rr;
_root.cm_singularity_tank_rr = singularity_tank_rr.rr;
_root.cm_mammoth_tank_rr = mammoth_tank_rr.rr;
_root.cm_mammoth_tank2_rr = mammoth_tank2_rr.rr;
_root.cm_kindabike_rr = kindabike_rr.rr;
_root.cm_smooth_tank_rr = smooth_tank_rr.rr;
_root.cm_ord_tank_rr = ord_tank_rr.rr;
_root.cm_lazer_tank_rr = lazer_tank_rr.rr;
_root.cm_hover_tank_rr = hover_tank_rr.rr;
_root.cm_heavy_tank_rr = heavy_tank_rr.rr;
_root.cm_railgrav_tank_rr = railgrav_tank_rr.rr;
_root.cm_nuketruck_rr = nuketruck_rr.rr;
_root.cm_black_tank_rr = black_tank_rr.rr;
_root.cm_mech2_rr = mech2_rr.rr;
_root.cm_tarakan_rr = tarakan_rr.rr;
_root.cm_mech1_rr = mech1_rr.rr;
_root.cm_kindabike2_rr = kindabike2_rr.rr;
_root.cm_sciencevessel_rr = sciencevessel_rr.rr;
_root.cm_square_tank_rr = square_tank_rr.rr;
_root.cm_dragoon_rr = dragoon_rr.rr;
_root.cm_predator_rr = predator_rr.rr;
}
}
Instance of Symbol 2317 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
enemies = _root.max_enemies;
} else {
_root.max_enemies = enemies;
}
}
Instance of Symbol 2041 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
gotoAndStop(_root.launcher_location);
}
Instance of Symbol 2320 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.cm_invul + 1);
} else {
_root.cm_invul = a;
}
}
Instance of Symbol 2320 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.cooldowncheat + 1);
} else {
_root.cooldowncheat = a;
}
}
Instance of Symbol 2320 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.powerupcheatmenu + 1);
} else {
_root.powerupcheatmenu = a;
}
}
Instance of Symbol 2320 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.crazyacceleration != 1) and (_root.crazyacceleration != 0)) {
_root.crazyacceleration = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.crazyacceleration + 1);
} else {
_root.crazyacceleration = a;
}
}
Instance of Symbol 2350 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
gotoAndStop(_root.respawn_pattern);
}
Instance of Symbol 2354 MovieClip in Symbol 2364 MovieClip Frame 18
onClipEvent (enterFrame) {
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.metod_sortirovki_unitov);
} else {
_root.metod_sortirovki_unitov = a;
}
}
Symbol 2365 MovieClip Frame 2
if ((_root.game_on_hold eq 1) and (_root.levelupmenu_opened != 1)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 2365 MovieClip Frame 3
kuda = 0;
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 4
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 5
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 6
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 7
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 14
if ((_root.game_modo eq 10) and (_root.game_on_hold eq 1)) {
gotoAndStop (55);
}
Symbol 2365 MovieClip Frame 28
stop();
Instance of Symbol 2001 MovieClip in Symbol 2365 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.game_modo eq 1) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 2365 MovieClip Frame 44
if (kuda eq 1) {
_root.game_on_hold = 0;
gotoAndPlay (1);
} else if (kuda eq 2) {
_root.levelup_menu.gotoAndStop(3);
} else if (kuda eq "main menu") {
stop();
_root.play();
_root.gotomenu = 1;
}
Symbol 2378 Button
on (release) {
_root.play();
_root.gotomenu = 1;
}
Symbol 2382 Button
on (release) {
if (_root.game_modo eq 1) {
_root.play();
_root.loading_modo = 1;
_root.load_slot = "slot3";
} else {
_root.play();
_root.retrygame = 1;
}
}
Symbol 2385 Button
on (release) {
if (_root.game_modo eq 321111111111) {
gotowhere = 5;
} else if (_root.game_modo eq 5) {
gotowhere = 6;
} else if (_root.game_modo eq 6) {
gotowhere = 7;
} else {
gotowhere = _root.game_modo;
}
}
Symbol 2386 MovieClip Frame 1
gotowhere = 1;
Symbol 2396 MovieClip Frame 24
stop();
Symbol 2400 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 2408 MovieClip Frame 2
if ((_root.game_modo eq 5) or (_root.game_modo eq 6)) {
score = _root.score2;
} else {
score = _root.score;
}
Symbol 2413 MovieClip Frame 1
nametext.text = "Player " + random(99999);
_root.teh_name = nametext.text;
Symbol 2413 MovieClip Frame 4
_root.teh_name = nametext.text;
gotoAndPlay (2);
Symbol 2415 MovieClip Frame 1
teh_name = _root.teh_name;
Symbol 2416 MovieClip Frame 1
stop();
Symbol 2420 Button
on (release) {
play();
}
Symbol 2425 MovieClip Frame 1
_root.done_submitting = 0;
stop();
Symbol 2425 MovieClip 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;
if (_root.game_modo eq 1) {
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTc0OWolZSVhJW4lcw==", "TXRoUVBFV3A=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (_root.game_modo eq 2) {
trace("desu2");
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTc1MGolZSVhJW4lcw==", "TEhEeEpzR2w=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (_root.game_modo eq 3) {
trace("desu3");
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTc1MWolZSVhJW4lcw==", "VkxiZVhqcG4=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (_root.game_modo eq 4) {
trace("desu4");
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MTc1MmolZSVhJW4lcw==", "ZmFiUlJyUnA=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (_root.game_modo eq 5) {
trace("desu5");
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score2;
__rankz_send__("MTc1M2olZSVhJW4lcw==", "a0F6ZFF2R2s=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
} else if (_root.game_modo eq 6) {
trace("desu6");
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.teh_name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score2;
__rankz_send__("MTc1NGolZSVhJW4lcw==", "a2xIbUtQVUw=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
Symbol 2425 MovieClip Frame 19
stop();
Symbol 2432 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(submitbutton.gotowhere);
};
Instance of Symbol 2386 MovieClip "submitbutton" in Symbol 2432 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.game_modo eq 10) or (_root.game_modo eq 1)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2416 MovieClip in Symbol 2432 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.done_submitting eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 2433 MovieClip Frame 1
stop();
Instance of Symbol 2453 MovieClip in Symbol 2454 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.showwhichballinfo + 1);
}
Symbol 2458 MovieClip Frame 7
qb_stat = SharedObject.getLocal("qb_stat");
qb_stat.data.victory = 1;
Symbol 2458 MovieClip Frame 20
stop();
Symbol 2459 MovieClip Frame 1
stop();
Instance of Symbol 2416 MovieClip in Symbol 2459 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.done_submitting eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 2464 Button
on (release) {
play();
}
Symbol 2465 Button
on (release) {
close_menu = 1;
}
Symbol 2466 Button
on (release) {
_root.kursor = 10;
close_menu = 1;
}
Symbol 2467 Button
on (release) {
_root.kursor = 14;
close_menu = 1;
}
Symbol 2468 Button
on (release) {
_root.antimatter_time = _root.antimatter_time + _root.antimatter_time_bonus;
close_menu = 1;
}
Symbol 2469 Button
on (release) {
_root.nodelay_time = _root.nodelay_time_bonus;
close_menu = 1;
}
Symbol 2470 Button
on (release) {
_root.speedup_time = _root.speedup_time + _root.speedup_time_bonus;
close_menu = 1;
}
Symbol 2472 Button
on (release) {
_root.stabilityup_time = _root.stabilityup_time + _root.stabilityup_time_bonus;
close_menu = 1;
}
Symbol 2473 Button
on (release) {
_root.structureup_time = _root.structureup_time + _root.structureup_time_bonus;
close_menu = 1;
}
Symbol 2474 Button
on (release) {
_root.energyup_time = _root.energyup_time + _root.energyup_time_bonus;
close_menu = 1;
}
Symbol 2480 MovieClip Frame 2
if (_root.powerupcheatmenu eq 1) {
play();
} else {
gotoAndPlay (1);
}
Symbol 2480 MovieClip Frame 3
stop();
Symbol 2480 MovieClip Frame 16
if (menushka.close_menu eq 1) {
play();
} else {
gotoAndPlay (15);
}
Symbol 2485 Button
on (release) {
play();
}
Symbol 2490 MovieClip Frame 1
stop();
Symbol 2490 MovieClip Frame 2
_root.cm_spikey_rr = 0;
_root.cm_clinch_tank_rr = 0;
_root.cm_singularity_tank_rr = 0;
_root.cm_mammoth_tank_rr = 0;
_root.cm_mammoth_tank2_rr = 0;
_root.cm_kindabike_rr = 0;
_root.cm_smooth_tank_rr = 0;
_root.cm_ord_tank_rr = 0;
_root.cm_lazer_tank_rr = 0;
_root.cm_hover_tank_rr = 0;
_root.cm_heavy_tank_rr = 0;
_root.cm_railgrav_tank_rr = 0;
_root.cm_nuketruck_rr = 0;
_root.cm_black_tank_rr = 0;
_root.cm_mech2_rr = 0;
_root.cm_tarakan_rr = 0;
_root.cm_mech1_rr = 0;
_root.cm_kindabike2_rr = 0;
_root.cm_sciencevessel_rr = 0;
_root.cm_square_tank_rr = 0;
_root.cm_dragoon_rr = 0;
_root.cm_predator_rr = 0;
Symbol 2490 MovieClip Frame 14
_root.kill_all_units_nowww = 1;
Symbol 2490 MovieClip Frame 24
_root.kill_all_units_nowww = 0;
Symbol 2490 MovieClip Frame 31
_root.game_on_hold = 1;
Symbol 2523 MovieClip Frame 2
if (random(10) eq 3) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 2526 Button
on (release) {
if (_root.game._ymouse < (_root.game.bottom_wall._y - 10)) {
_root.energy = _root.energy - _root.implosion_energycost;
_root.kursor = 1;
duplicateMovieClip (_root.game.implosion, "implosion1", 89999);
_root.game.implosion1._x = _root.game._xmouse;
_root.game.implosion1._y = _root.game._ymouse;
_root.game.implosion1.gotoAndPlay(2);
_root.implosion_timeout = _root.implosion_loading_time_real;
} else {
_root.kursor = 1;
}
}
Symbol 2538 Button
on (release) {
if (_root.game._ymouse < (_root.game.bottom_wall._y - 10)) {
_root.energy = _root.energy - _root.shockwave_energycost;
_root.kursor = 1;
duplicateMovieClip (_root.game.gravity_shockwave, "gravity_shockwave_1", 89998);
_root.game.gravity_shockwave_1._x = _root.game._xmouse;
_root.game.gravity_shockwave_1._y = _root.game._ymouse;
_root.game.gravity_shockwave_1.play();
_root.shockwave_timeout = _root.shockwave_loading_time_real;
} else {
_root.kursor = 1;
}
}
Symbol 2552 Button
on (release) {
_root.game.DropShockwaveTower();
_root.kursor = 1;
_root.shock_tower_timeout = _root.shock_tower_loading_time;
if (_root.game_modo eq 4) {
_root.ballcatcher_timeout = _root.shock_tower_loading_time;
_root.shock_tower_timeout = _root.shock_tower_loading_time;
_root.tremor_tower_timeout = _root.shock_tower_loading_time;
}
}
Symbol 2557 Button
on (release) {
_root.kursor = 1;
}
Symbol 2559 Button
on (release) {
_root.game.DropTremorTower();
_root.kursor = 1;
_root.tremor_tower_timeout = _root.tremor_tower_loading_time;
if (_root.game_modo eq 4) {
_root.ballcatcher_timeout = _root.tremor_tower_loading_time;
_root.shock_tower_timeout = _root.tremor_tower_loading_time;
_root.tremor_tower_timeout = _root.tremor_tower_loading_time;
}
}
Symbol 2560 Button
on (release) {
_root.kursor = 1;
}
Symbol 2572 Button
on (release) {
if (_root.explosions_count > 50) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
current_x = _root.game._xmouse;
current_y = _root.game._ymouse;
power = 4;
duplicateMovieClip ("_root.game.explosions_nuke", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["explosion" + _root.explosions_count]._x = current_x;
_root.game["explosion" + _root.explosions_count]._y = current_y;
_root.game["explosion" + _root.explosions_count]._rotation = random(360);
var i = 0;
while (i < _root.max_enemies) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], current_x, current_y, power);
}
i++;
}
_root.game.ExplosionSound(power);
_root.kursor = 1;
}
Symbol 2573 Button
on (release) {
_root.kursor = 1;
}
Symbol 2584 Button
on (release) {
_root.game.DropBallcatcher();
_root.kursor = 1;
_root.ballcatcher_timeout = _root.ballcatcher_loading_time;
if (_root.game_modo eq 4) {
_root.ballcatcher_timeout = _root.ballcatcher_loading_time;
_root.shock_tower_timeout = _root.shock_tower_loading_time;
_root.tremor_tower_timeout = _root.tremor_tower_loading_time;
}
}
Symbol 2585 Button
on (release) {
_root.kursor = 1;
}
Symbol 2601 Button
on (release) {
if (_root.explosions_count > 50) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
current_x = _root.game._xmouse;
current_y = _root.game._ymouse;
duplicateMovieClip ("_root.game.singularity2_source", "singularityblow" + _root.explosions_count, _root.explosions_count + 10500);
_root.game["singularityblow" + _root.explosions_count].go = 1;
_root.game["singularityblow" + _root.explosions_count]._x = current_x;
_root.game["singularityblow" + _root.explosions_count]._y = current_y;
_root.game["singularityblow" + _root.explosions_count]._rotation = random(360);
_root.kursor = 1;
}
Instance of Symbol 2558 MovieClip in Symbol 2603 MovieClip Frame 7
onClipEvent (enterFrame) {
i = 0;
while (i < 6) {
if (_root.game["tremor_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["tremor_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["tremor_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_1 = 1;
break;
}
zanyato_1 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["shockwave_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["shockwave_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["shockwave_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_2 = 1;
break;
}
zanyato_2 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["ballcatcher_" + i]) {
xdist = _root.game._xmouse - _root.game["ballcatcher_" + i]._x;
ydist = _root.game._ymouse - _root.game["ballcatcher_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_3 = 1;
break;
}
zanyato_3 = 0;
}
i++;
}
hittest = _root.game.center.forbid.hitTest(_root._xmouse, _root._ymouse, true);
if (((hittest eq "true") or (_root.game._ymouse > (_root.game.bottom_wall._y - 20))) or (_root.game._ymouse < (_root.game.upper_wall._y + 25))) {
wrong_location = 1;
} else {
wrong_location = 0;
}
if ((((wrong_location eq 1) or (zanyato_2 eq 1)) or (zanyato_1 eq 1)) or (zanyato_3 eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2561 MovieClip in Symbol 2603 MovieClip Frame 8
onClipEvent (enterFrame) {
i = 0;
while (i < 6) {
if (_root.game["tremor_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["tremor_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["tremor_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_1 = 1;
break;
}
zanyato_1 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["shockwave_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["shockwave_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["shockwave_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_2 = 1;
break;
}
zanyato_2 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["ballcatcher_" + i]) {
xdist = _root.game._xmouse - _root.game["ballcatcher_" + i]._x;
ydist = _root.game._ymouse - _root.game["ballcatcher_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_3 = 1;
break;
}
zanyato_3 = 0;
}
i++;
}
hittest = _root.game.center.forbid.hitTest(_root._xmouse, _root._ymouse, true);
if (((hittest eq "true") or (_root.game._ymouse > (_root.game.bottom_wall._y - 20))) or (_root.game._ymouse < (_root.game.upper_wall._y + 25))) {
wrong_location = 1;
} else {
wrong_location = 0;
}
if ((((wrong_location eq 1) or (zanyato_2 eq 1)) or (zanyato_1 eq 1)) or (zanyato_3 eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2574 MovieClip in Symbol 2603 MovieClip Frame 9
onClipEvent (enterFrame) {
if ((_root.game._ymouse > -160) and (_root.game._ymouse < 220)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2575 MovieClip in Symbol 2603 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.ball_captured eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2586 MovieClip in Symbol 2603 MovieClip Frame 12
onClipEvent (enterFrame) {
i = 0;
while (i < 6) {
if (_root.game["tremor_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["tremor_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["tremor_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_1 = 1;
break;
}
zanyato_1 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["shockwave_tower_" + i]) {
xdist = _root.game._xmouse - _root.game["shockwave_tower_" + i]._x;
ydist = _root.game._ymouse - _root.game["shockwave_tower_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 50) {
zanyato_2 = 1;
break;
}
zanyato_2 = 0;
}
i++;
}
i = 0;
while (i < 6) {
if (_root.game["ballcatcher_" + i]) {
xdist = _root.game._xmouse - _root.game["ballcatcher_" + i]._x;
ydist = _root.game._ymouse - _root.game["ballcatcher_" + i]._y;
dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
if (dist < 220) {
zanyato_3 = 1;
break;
}
zanyato_3 = 0;
}
i++;
}
hittest = _root.game.center.forbid.hitTest(_root._xmouse, _root._ymouse, true);
if (((hittest eq "true") or (_root.game._ymouse > (_root.game.bottom_wall._y - 20))) or (_root.game._ymouse < (_root.game.upper_wall._y + 25))) {
wrong_location = 1;
} else {
wrong_location = 0;
}
if ((((wrong_location eq 1) or (zanyato_2 eq 1)) or (zanyato_1 eq 1)) or (zanyato_3 eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2602 MovieClip in Symbol 2603 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((_root.game._ymouse > -160) and (_root.game._ymouse < 220)) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 2604 MovieClip Frame 1
Mouse.hide();
startDrag (this, true);
Instance of Symbol 2603 MovieClip in Symbol 2604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.kursor eq 1) {
gotoAndStop (1);
} else if ((_root.kursor eq 2) or (_root.kursor eq 3)) {
gotoAndStop (2);
} else if (_root.kursor eq 4) {
gotoAndStop (3);
} else if (_root.kursor eq 5) {
gotoAndStop (4);
} else if (_root.kursor eq 6) {
gotoAndStop (5);
} else if (_root.kursor eq 7) {
gotoAndStop (6);
} else if (_root.kursor eq 8) {
gotoAndStop (7);
} else if (_root.kursor eq 9) {
gotoAndStop (8);
} else if (_root.kursor eq 10) {
gotoAndStop (9);
} else if (_root.kursor eq 11) {
gotoAndStop (10);
} else if (_root.kursor eq 12) {
gotoAndStop (11);
} else if (_root.kursor eq 13) {
gotoAndStop (12);
} else if (_root.kursor eq 14) {
gotoAndStop (13);
}
}
Instance of Symbol 2611 MovieClip in Symbol 2612 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(4));
}
onClipEvent (enterFrame) {
cacheAsBitmap = true;
}
Symbol 2614 MovieClip Frame 14
stop();
Symbol 2616 MovieClip Frame 1
radius = 160;
mass = 1000000000 /* 0x3B9ACA00 */;
xspeed = 0;
yspeed = 0;
xpos = _x;
ypos = _y;
tempx = xpos;
tempy = ypos;
Symbol 2655 MovieClip Frame 1
if (_name eq "teh_nuke") {
gotoAndStop (70);
}
Symbol 2655 MovieClip Frame 2
gravity_nuke_in_action = 1;
Symbol 2655 MovieClip Frame 42
gravity_nuke_in_action = 0;
Symbol 2655 MovieClip Frame 48
removeMovieClip(this);
Symbol 2655 MovieClip Frame 50
stop();
Symbol 2655 MovieClip Frame 70
stop();
Symbol 2656 MovieClip Frame 1
stop();
if (yiff != 1111) {
yiff = 1111;
_root.repspspawn_timer = 0;
_root.sparklecount = 0;
_root.shleifcount = 0;
_root.nukecount = 0;
_root.bounceball_maxcount = 5;
}
function ZashitaOtVipadeniya(enemy_1) {
x_dist2 = Math.abs(_root.game[enemy_1]._x - _root.game.ball2._x);
y_dist2 = Math.abs(_root.game[enemy_1]._y - _root.game.ball2._y);
diste2 = Math.sqrt((x_dist2 * x_dist2) + (y_dist2 * y_dist2));
if (((diste1 < (Rr1 - 3)) or (diste2 > (_root.game.ball2.radius + 10))) or (_root.game[enemy_1].death eq 1)) {
if (_root.nukecount > 100) {
_root.nukecount = 0;
} else {
_root.nukecount++;
}
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game[enemy_1]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game[enemy_1]._y;
removeMovieClip(_root.game[enemy_1]);
}
}
function ZashitaOtSkleivaniya(enemy_1, enemy_2) {
x_dist = Math.abs(_root.game[enemy_1]._x - _root.game[enemy_2]._x);
y_dist = Math.abs(_root.game[enemy_1]._y - _root.game[enemy_2]._y);
diste = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
x_dist2 = Math.abs(_root.game[enemy_1]._x - _root.game.ball1._x);
y_dist2 = Math.abs(_root.game[enemy_1]._y - _root.game.ball1._y);
diste2 = Math.sqrt((x_dist * x_dist) + (y_dist * y_dist));
Rr2 = _root.game[enemy_1].radius + _root.game[enemy_2].radius;
if (diste < Rr) {
if (enemy_2 eq "loader_ball") {
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game[enemy_1]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game[enemy_1]._y;
removeMovieClip(_root.game[enemy_1]);
} else {
_root.game[enemy_1].xspeed = _root.game[enemy_1].xspeed * 2;
_root.game[enemy_1].yspeed = _root.game[enemy_1].yspeed * 2;
_root.game[enemy_2].xspeed = _root.game[enemy_2].xspeed * 2;
_root.game[enemy_2].yspeed = _root.game[enemy_2].yspeed * 2;
}
}
}
function BlackHoleEffect2(targ, iks, igrik) {
blackhole_mass = 20;
blackhole_power_max = -100;
x1 = _root.game[targ]._x;
y1 = _root.game[targ]._y;
x2 = iks;
y2 = igrik;
var _local6 = x1 - x2;
var _local8 = y1 - y2;
var _local5 = Math.sqrt((_local6 * _local6) + (_local8 * _local8));
if (_local5 < 100) {
blackhole_power = 0;
blackhole_mass = 0;
blackhole_power_max = 0;
} else if (_local5 < 500) {
blackhole_power = (blackhole_power_max / 1000) * _local5;
} else {
blackhole_power = ((blackhole_power_max / 1000) * 3) * _local5;
}
var _local7 = _root.game[targ].mass;
var _local9 = blackhole_mass;
var _local17 = _root.game[targ].xspeed;
var _local19 = _root.game[targ].yspeed;
var _local13 = Math.atan2(_local8, _local6);
var _local3 = Math.cos(_local13);
var _local2 = Math.sin(_local13);
var _local14 = (_local17 * _local3) + (_local19 * _local2);
var _local11 = blackhole_power;
var _local12 = (_local19 * _local3) - (_local17 * _local2);
var _local10 = 0.0001;
var _local18 = (_local7 * _local14) + (_local9 * _local11);
var _local20 = _local14 - _local11;
var _local15 = (_local18 + (_local7 * _local20)) / (_local7 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local3) - (_local12 * _local2);
var _local21 = (_local11 * _local3) - (_local10 * _local2);
_local19 = (_local12 * _local3) + (_local14 * _local2);
var _local22 = (_local10 * _local3) + (_local11 * _local2);
_root.game[targ].xspeed = _local17;
_root.game[targ].yspeed = _local19;
}
function ball2BallReaction(b1, b2, x1, x2, y1, y2, time) {
var _local6 = _root.game[b1].mass;
var _local9 = _root.game[b2].mass;
var _local20 = _root.game[b1].xspeed;
var _local19 = _root.game[b2].xspeed;
var _local31 = _root.game[b1].xspeed;
var _local32 = _root.game[b2].xspeed;
var _local23 = _root.game[b1].yspeed;
var _local21 = _root.game[b2].yspeed;
var _local24 = x1 - x2;
var _local28 = y1 - y2;
var _local13 = Math.atan2(_local28, _local24);
var _local5 = Math.cos(_local13);
var _local4 = Math.sin(_local13);
var _local26 = x1 - x2;
var _local25 = y1 - y2;
R_2 = _root.game[b2].radius;
var _local8 = ((-Math.atan2(_local26, _local25)) / (Math.PI/180)) + 270;
collision_y3 = y2 - (R_2 * Math.sin(_local8 * (Math.PI/180)));
collision_x3 = x2 - (R_2 * Math.cos(_local8 * (Math.PI/180)));
GenerateSparkles(collision_x3, collision_y3);
collisionEffect(collision_x3, collision_y3);
var _local14 = (_local20 * _local5) + (_local23 * _local4);
var _local11 = (_local19 * _local5) + (_local21 * _local4);
var _local12 = (_local23 * _local5) - (_local20 * _local4);
var _local10 = (_local21 * _local5) - (_local19 * _local4);
var _local22 = (_local6 * _local14) + (_local9 * _local11);
var _local27 = _local14 - _local11;
var _local15 = (_local22 + (_local6 * _local27)) / (_local6 + _local9);
var _local18 = (_local15 - _local14) + _local11;
_local14 = _local18;
_local11 = _local15;
_root.game[b1].vspishka.play();
_root.game[b2].vspishka.play();
_local20 = (_local14 * _local5) - (_local12 * _local4);
_local19 = (_local11 * _local5) - (_local10 * _local4);
_local23 = (_local12 * _local5) + (_local14 * _local4);
_local21 = (_local10 * _local5) + (_local11 * _local4);
_root.game[b1].tempx = _root.game[b1].xpos + ((_root.game[b1].xspeed * time) * 0.86);
_root.game[b1].tempy = _root.game[b1].ypos + ((_root.game[b1].yspeed * time) * 0.86);
_root.game[b2].tempx = _root.game[b2].xpos + ((_root.game[b2].xspeed * time) * 0.86);
_root.game[b2].tempy = _root.game[b2].ypos + ((_root.game[b2].yspeed * time) * 0.86);
_root.game[b1].xspeed = _local20;
_root.game[b2].xspeed = _local19;
_root.game[b1].yspeed = _local23;
_root.game[b2].yspeed = _local21;
}
function ballToBallDetection(b1, b2) {
var _local7 = _root.game[b1].xspeed;
var _local9 = _root.game[b1].yspeed;
var _local6 = _root.game[b2].xspeed;
var _local8 = _root.game[b2].yspeed;
var _local5 = _root.game[b1].xpos;
var _local3 = _root.game[b1].ypos;
var _local4 = _root.game[b2].xpos;
var _local2 = _root.game[b2].ypos;
var _local16 = _root.game[b1].radius + _root.game[b2].radius;
var _local22 = (((-2 * _local7) * _local6) + (_local7 * _local7)) + (_local6 * _local6);
var _local21 = ((((-2 * _local5) * _local6) - ((2 * _local4) * _local7)) + ((2 * _local5) * _local7)) + ((2 * _local4) * _local6);
var _local20 = (((-2 * _local5) * _local4) + (_local5 * _local5)) + (_local4 * _local4);
var _local19 = (((-2 * _local9) * _local8) + (_local9 * _local9)) + (_local8 * _local8);
var _local18 = ((((-2 * _local3) * _local8) - ((2 * _local2) * _local9)) + ((2 * _local3) * _local9)) + ((2 * _local2) * _local8);
var _local26 = (((-2 * _local3) * _local2) + (_local3 * _local3)) + (_local2 * _local2);
var _local15 = _local22 + _local19;
var _local12 = _local21 + _local18;
var _local25 = (_local20 + _local26) - (_local16 * _local16);
var _local17 = Math.sqrt((_local12 * _local12) - ((4 * _local15) * _local25));
var _local14 = ((-_local12) + _local17) / (2 * _local15);
var _local13 = ((-_local12) - _local17) / (2 * _local15);
if ((_local14 > 0) && (_local14 <= 1)) {
var _local23 = _local14;
var _local24 = true;
}
if ((_local13 > 0) && (_local13 <= 1)) {
if ((_local23 == null) || (_local13 < _local14)) {
var _local23 = _local13;
var _local24 = true;
}
}
if (_local24) {
ball2BallReaction(b1, b2, _local5, _local4, _local3, _local2, _local23);
}
}
function moveBounceBalls() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
var _local3 = _root.game["bounceball_" + _local2];
_local3.tempx = _local3.xpos + _local3.xspeed;
_local3.tempy = _local3.ypos + _local3.yspeed;
}
_local2++;
}
var _local3 = _root.game.loader_ball;
_local3.tempx = _local3.xpos + _local3.xspeed;
_local3.tempy = _local3.ypos + _local3.yspeed;
}
function renderBounceBalls() {
var _local2 = 0;
while (_local2 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local2]) {
var _local3 = _root.game["bounceball_" + _local2];
_local3.xpos = _local3.tempx;
_local3.ypos = _local3.tempy;
_local3._x = _local3.xpos;
_local3._y = _local3.ypos;
}
_local2++;
}
var _local3 = _root.game.loader_ball;
_local3.xpos = _local3.tempx;
_local3.ypos = _local3.tempy;
_local3._x = _local3.xpos;
_local3._y = _local3.ypos;
}
function BlackHoleEffect(targ, iks, igrik) {
blackhole_mass = 1;
blackhole_power_max = -80;
blackhole_power_min = -5;
x1 = _root.game[targ]._x;
y1 = _root.game[targ]._y;
x2 = iks;
y2 = igrik;
var _local5 = x1 - x2;
var _local7 = y1 - y2;
var _local22 = Math.sqrt((_local5 * _local5) + (_local7 * _local7));
blackhole_power = blackhole_power_min + blackhole_power_max;
var _local6 = _root.game[targ].mass;
var _local8 = blackhole_mass;
var _local16 = _root.game[targ].xspeed;
var _local18 = _root.game[targ].yspeed;
var _local12 = Math.atan2(_local7, _local5);
var _local3 = Math.cos(_local12);
var _local2 = Math.sin(_local12);
var _local13 = (_local16 * _local3) + (_local18 * _local2);
var _local10 = blackhole_power;
var _local11 = (_local18 * _local3) - (_local16 * _local2);
var _local9 = 0.0001;
var _local17 = (_local6 * _local13) + (_local8 * _local10);
var _local19 = _local13 - _local10;
var _local14 = (_local17 + (_local6 * _local19)) / (_local6 + _local8);
var _local15 = (_local14 - _local13) + _local10;
_local13 = _local15;
_local10 = _local14;
_local16 = (_local13 * _local3) - (_local11 * _local2);
var _local20 = (_local10 * _local3) - (_local9 * _local2);
_local18 = (_local11 * _local3) + (_local13 * _local2);
var _local21 = (_local9 * _local3) + (_local10 * _local2);
_root.game[targ].xspeed = _local16;
_root.game[targ].yspeed = _local18;
}
onEnterFrame = function () {
if (_root.terminate_menu_physics eq 1) {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
if (_root.nukecount > 100) {
_root.nukecount = 0;
} else {
_root.nukecount++;
}
duplicateMovieClip (_root.game.teh_nuke, "nukee_" + _root.nukecount, _root.nukecount + 30000);
_root.game["nukee_" + _root.nukecount]._x = _root.game["bounceball_" + _local3]._x;
_root.game["nukee_" + _root.nukecount]._y = _root.game["bounceball_" + _local3]._y;
removeMovieClip(_root.game["bounceball_" + _local3]);
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
ZashitaOtVipadeniya("bounceball_" + _local3);
}
_local3++;
}
moveBounceBalls();
_local3 = 0;
while (_local3 < 3) {
if (_root.game["ball" + _local3]) {
j = 0;
while (j < 20) {
if (_root.game["bounceball_" + j]) {
ballToBallDetection("ball" + _local3, "bounceball_" + j);
}
j++;
}
}
_local3++;
}
_local3 = _root.bounceball_maxcount + 1;
while (_local3-- , _local3 + 1) {
var _local4 = "bounceball_" + _local3;
var j = _local3;
while ((--j) + 1) {
var _local2 = "bounceball_" + j;
if (_root.game["bounceball_" + j] and _root.game["bounceball_" + _local3]) {
ballToBallDetection(_local4, _local2);
ZashitaOtSkleivaniya(_local4, _local2);
}
}
}
BlackHoleEffect2("loader_ball", 2, -50);
_local3 = 0;
while (_local3 < (_root.bounceball_maxcount + 1)) {
if (_root.game["bounceball_" + _local3]) {
ballToBallDetection("bounceball_" + _local3, "loader_ball");
ZashitaOtSkleivaniya("bounceball_" + _local3, "loader_ball");
}
_local3++;
}
renderBounceBalls();
_root.repspspawn_timer++;
if (_root.repspspawn_timer > 25) {
_root.repspspawn_timer = 0;
var _local5 = 0;
while (_local5 < _root.bounceball_maxcount) {
if (_root.game["bounceball_" + _local5]) {
} else {
respawn = 1;
_root.numberi = _local5;
break;
}
_local5++;
}
if (respawn eq 1) {
respawn = 0;
a = random(3);
if (a eq 0) {
xplace = -211;
yplace = 110;
} else if (a eq 1) {
xplace = 243;
yplace = 33;
} else if (a eq 2) {
xplace = 5;
yplace = -325;
}
duplicateMovieClip (_root.game.bounceball_source, "bounceball_" + _root.numberi, 5000 + _root.numberi);
_root.game["bounceball_" + _root.numberi]._x = xplace;
_root.game["bounceball_" + _root.numberi]._y = yplace;
}
}
}
};
Instance of Symbol 44 MovieClip "ball2" in Symbol 2656 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2616 MovieClip "ball1" in Symbol 2656 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 49 MovieClip "shleif_red" in Symbol 2656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name eq "shleif_red") {
gotoAndStop (25);
}
}
Symbol 2661 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 2665 Button
on (release) {
gotoAndStop (1);
}
Symbol 2666 Button
on (release) {
if (random(3) eq 1) {
gotoAndStop (2);
}
}
Symbol 2673 Button
on (release) {
stopAllSounds();
}
Symbol 2676 Button
on (release) {
_root.dsgfdsfgdsfg_blyarghgfh1 = 1337;
_root.dsgfdsfgdsfg_blyarghgfh2 = 1337;
_root.dsgfdsfgdsfg_blyarghgfh3 = 1337;
}
Symbol 2681 MovieClip Frame 1
aaa = 1;
Symbol 2681 MovieClip Frame 2
aaa = 2;
Symbol 2681 MovieClip Frame 3
aaa = 3;
Symbol 2681 MovieClip Frame 4
aaa = 4;
Symbol 2681 MovieClip Frame 5
aaa = 5;
Symbol 2681 MovieClip Frame 6
aaa = 6;
Symbol 2681 MovieClip Frame 7
aaa = 7;
Symbol 2681 MovieClip Frame 8
aaa = 8;
Symbol 2681 MovieClip Frame 9
aaa = 9;
Symbol 2683 MovieClip Frame 1
stop();
Symbol 2685 Button
on (release) {
play();
}
Symbol 2687 MovieClip Frame 1
stop();
a = 0;
Symbol 2687 MovieClip Frame 2
stop();
a = 1;
Symbol 2689 Button
on (release) {
play();
}
Symbol 2691 MovieClip Frame 1
stop();
a = 0;
Symbol 2691 MovieClip Frame 2
stop();
a = 1;
Symbol 2693 Button
on (release) {
play();
}
Symbol 2695 MovieClip Frame 1
stop();
a = 0;
Symbol 2695 MovieClip Frame 2
stop();
a = 1;
Symbol 2700 Button
on (release) {
_root.lock_deactivatecenter = 1;
if (_root.colorlocknumber3 eq 7) {
_root.colorlockunlocked3 = 1;
}
if (_root.colorlocknumber2 eq 7) {
_root.colorlockunlocked2 = 1;
}
if (_root.colorlocknumber1 eq 7) {
_root.colorlockunlocked1 = 1;
}
}
Instance of Symbol 2702 MovieClip "krutilka" in Symbol 2703 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Symbol 2708 Button
on (release) {
if (_root.stopmenubackgroundanimation eq 1) {
_root.gotothelock = 2;
} else {
_root.gotothelock = 1;
}
}
Symbol 2709 MovieClip Frame 1
stop();
Symbol 2709 MovieClip Frame 3
_root.gotothelock = 1;
Instance of Symbol 2683 MovieClip "colorlock1" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.colorlocknumber1 = lock.aaa;
if (_root.colorlockunlocked1 eq 1) {
gotoAndStop (2);
}
if (_root.dsgfdsfgdsfg_blyarghgfh1 != "yiff") {
lock.gotoAndStop(random(9) + 1);
_root.dsgfdsfgdsfg_blyarghgfh1 = "yiff";
}
}
Instance of Symbol 2683 MovieClip "colorlock2" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.colorlocknumber2 = lock.aaa;
if (_root.colorlockunlocked2 eq 1) {
gotoAndStop (2);
}
if (_root.dsgfdsfgdsfg_blyarghgfh2 != "yiff") {
lock.gotoAndStop(random(9) + 1);
trace("ad235346545");
_root.dsgfdsfgdsfg_blyarghgfh2 = "yiff";
}
}
Instance of Symbol 2683 MovieClip "colorlock3" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.colorlocknumber3 = lock.aaa;
if (_root.colorlockunlocked3 eq 1) {
gotoAndStop (2);
}
if (_root.dsgfdsfgdsfg_blyarghgfh3 != "yiff") {
lock.gotoAndStop(random(9) + 1);
_root.dsgfdsfgdsfg_blyarghgfh3 = "yiff";
}
}
Instance of Symbol 2687 MovieClip "lock_activator_1" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.lock_activator_1 = a;
}
Instance of Symbol 2691 MovieClip "lock_activator_2" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.lock_activator_2 = a;
}
Instance of Symbol 2695 MovieClip "lock_activator_3" in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.lock_activator_3 = a;
}
Instance of Symbol 2709 MovieClip in Symbol 2716 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.colorlockunlocked3 eq 1) and (_root.colorlockunlocked2 eq 1)) and (_root.colorlockunlocked1 eq 1)) {
gotoAndStop (3);
} else if (((_root.lock_activator_1 eq 1) and (_root.lock_activator_2 eq 1)) and (_root.lock_activator_3 eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2713 MovieClip in Symbol 2716 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.colorlockunlocked1 eq 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2713 MovieClip in Symbol 2716 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.colorlockunlocked3 eq 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2713 MovieClip in Symbol 2716 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.colorlockunlocked2 eq 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 2717 MovieClip Frame 1
stop();
Instance of Symbol 2716 MovieClip in Symbol 2717 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lock_deactivatecenter eq 1) {
_root.lock_deactivatecenter = 0;
lock_activator_1.gotoAndStop(1);
lock_activator_2.gotoAndStop(1);
lock_activator_3.gotoAndStop(1);
}
}
Symbol 2718 MovieClip Frame 1
stop();
Instance of Symbol 2721 MovieClip in Symbol 2722 MovieClip Frame 1
onClipEvent (load) {
secretocountero = 0;
}
onClipEvent (enterFrame) {
test = testzone.hitTest(_root._xmouse, _root._ymouse, true);
onMouseDown = function () {
if (test eq "true") {
secretocountero++;
}
};
if (secretocountero eq 25) {
secretocountero = 0;
_root.colorlockunlocked3 = 1;
_root.colorlockunlocked2 = 1;
_root.colorlockunlocked1 = 1;
}
}
Symbol 2757 MovieClip Frame 1
changemovie = 0;
Symbol 2757 MovieClip Frame 99
if (random(2) eq 1) {
changemovie = 1;
}
Symbol 2758 MovieClip Frame 1
stop();
Symbol 2770 Button
on (release) {
gotoAndStop (2);
}
Symbol 2772 Button
on (release) {
gotoAndStop (3);
}
Symbol 2774 Button
on (release) {
getURL ("http://armorgames.com/download/mmm-ultimate.html", "_blank");
}
Symbol 2776 Button
on (release) {
gotoAndStop (11);
}
Symbol 2777 Button
on (release) {
getURL ("http://dz2001.newgrounds.com/", "_blank");
}
Symbol 2786 Button
on (release) {
gotoAndStop (1);
}
Symbol 2790 Button
on (release) {
gotoAndStop (4);
}
Symbol 2794 Button
on (release) {
gotoAndStop (6);
}
Symbol 2798 Button
on (release) {
gotoAndStop (7);
}
Symbol 2802 Button
on (release) {
gotoAndStop (5);
}
Symbol 2805 Button
on (release) {
gotoAndStop (8);
}
Symbol 2808 Button
on (release) {
gotoAndStop (9);
}
Symbol 2812 Button
on (release) {
gotoAndStop (10);
}
Symbol 2818 Button
on (release) {
_root.play();
_root.load_slot = "slot1";
_root.game_modo = 1;
}
Symbol 2822 Button
on (release) {
_root.play();
_root.load_slot = "slot2";
_root.game_modo = 1;
}
Symbol 2826 Button
on (release) {
_root.play();
_root.load_slot = "slot3";
_root.game_modo = 1;
}
Symbol 2829 Button
on (release) {
gotoAndStop (2);
}
Symbol 2833 Button
on (release) {
_root.play();
_root.game_modo = 1;
}
Symbol 2837 Button
on (release) {
_root.play();
_root.game_modo = 4;
}
Symbol 2841 Button
on (release) {
_root.play();
_root.game_modo = 2;
}
Symbol 2845 Button
on (release) {
_root.play();
_root.game_modo = 3;
}
Symbol 2849 Button
on (release) {
_root.play();
_root.game_modo = 5;
}
Symbol 2853 Button
on (release) {
_root.play();
_root.game_modo = 6;
}
Symbol 2857 Button
on (release) {
_root.play();
_root.game_modo = 10;
}
Symbol 2861 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_sm/", "_blank");
}
Symbol 2862 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_sur/", "_blank");
}
Symbol 2863 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_surex/", "_blank");
}
Symbol 2864 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_arm/", "_blank");
}
Symbol 2865 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_rush/", "_blank");
}
Symbol 2866 Button
on (release) {
getURL ("http://rankz.armorbot.com/mmm2_cross/", "_blank");
}
Symbol 2875 Button
on (release) {
play();
if ((((((_root.aaaloker3 eq 0) and (_root.aaaloker1 eq 0)) and (_root.aaaloker9_1 eq 0)) and (_root.aaaloker9_2 eq 0)) and (_root.aaaloker5 eq 1)) and (_root.aaaloker0 eq 0)) {
} else {
_root.lokergoesasplanned = 0;
}
if ((_root.lokergoesasplanned eq 0) and (random(2) eq 1)) {
_root.sbroslok0 = random(2);
_root.sbroslok3 = random(2);
_root.sbroslok1 = random(2);
_root.sbroslok9_1 = random(2);
_root.sbroslok9_2 = random(2);
_root.sbroslok5 = random(2);
}
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if ((checkingsum < 3) and (_root.lokergoesasplanned eq 0)) {
_root.sbroslok0 = 1;
_root.sbroslok3 = 1;
_root.sbroslok1 = 1;
_root.sbroslok9_1 = 1;
_root.sbroslok9_2 = 1;
_root.sbroslok5 = 1;
}
}
Symbol 2877 Button
on (release) {
play();
}
Symbol 2879 MovieClip Frame 1
locked = 1;
stop();
stop();
Symbol 2879 MovieClip Frame 6
locked = 0;
stop();
stop();
Symbol 2882 Button
on (release) {
play();
if ((((_root.aaaloker3 eq 0) and (_root.aaaloker1 eq 0)) and (_root.aaaloker5 eq 1)) and (_root.aaaloker0 eq 0)) {
} else {
_root.lokergoesasplanned = 0;
}
if ((_root.lokergoesasplanned eq 0) and (random(2) eq 1)) {
_root.sbroslok0 = random(2);
_root.sbroslok3 = random(2);
_root.sbroslok1 = random(2);
_root.sbroslok9_1 = random(2);
_root.sbroslok9_2 = random(2);
_root.sbroslok5 = random(2);
}
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if ((checkingsum < 3) and (_root.lokergoesasplanned eq 0)) {
_root.sbroslok0 = 1;
_root.sbroslok3 = 1;
_root.sbroslok1 = 1;
_root.sbroslok9_1 = 1;
_root.sbroslok9_2 = 1;
_root.sbroslok5 = 1;
}
}
Symbol 2883 MovieClip Frame 1
locked = 1;
stop();
Symbol 2883 MovieClip Frame 6
locked = 0;
stop();
Symbol 2886 Button
on (release) {
play();
if (((((_root.aaaloker3 eq 1) and (_root.aaaloker1 eq 1)) and (_root.aaaloker9_1 eq 1)) and (_root.aaaloker9_2 eq 1)) and (_root.aaaloker5 eq 1)) {
} else {
_root.lokergoesasplanned = 0;
}
if ((_root.lokergoesasplanned eq 0) and (random(2) eq 1)) {
_root.sbroslok0 = random(2);
_root.sbroslok3 = random(2);
_root.sbroslok1 = random(2);
_root.sbroslok9_1 = random(2);
_root.sbroslok9_2 = random(2);
_root.sbroslok5 = random(2);
}
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if ((checkingsum < 3) and (_root.lokergoesasplanned eq 0)) {
_root.sbroslok0 = 1;
_root.sbroslok3 = 1;
_root.sbroslok1 = 1;
_root.sbroslok9_1 = 1;
_root.sbroslok9_2 = 1;
_root.sbroslok5 = 1;
}
}
Symbol 2887 MovieClip Frame 1
locked = 1;
stop();
stop();
Symbol 2887 MovieClip Frame 6
locked = 0;
stop();
stop();
Symbol 2890 Button
on (release) {
play();
if ((((((_root.aaaloker3 eq 0) and (_root.aaaloker1 eq 1)) and (_root.aaaloker9_1 eq 1)) and (_root.aaaloker9_2 eq 1)) and (_root.aaaloker5 eq 1)) and (_root.aaaloker0 eq 0)) {
} else {
_root.lokergoesasplanned = 0;
}
if ((_root.lokergoesasplanned eq 0) and (random(2) eq 1)) {
_root.sbroslok0 = random(2);
_root.sbroslok3 = random(2);
_root.sbroslok1 = random(2);
_root.sbroslok9_1 = random(2);
_root.sbroslok9_2 = random(2);
_root.sbroslok5 = random(2);
}
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if ((checkingsum < 3) and (_root.lokergoesasplanned eq 0)) {
_root.sbroslok0 = 1;
_root.sbroslok3 = 1;
_root.sbroslok1 = 1;
_root.sbroslok9_1 = 1;
_root.sbroslok9_2 = 1;
_root.sbroslok5 = 1;
}
}
Symbol 2891 MovieClip Frame 1
locked = 1;
stop();
stop();
Symbol 2891 MovieClip Frame 6
locked = 0;
stop();
stop();
Symbol 2894 MovieClip Frame 1
locked = 1;
stop();
stop();
Symbol 2894 MovieClip Frame 6
locked = 0;
stop();
stop();
Symbol 2897 Button
on (release) {
play();
if ((((((_root.aaaloker3 eq 1) and (_root.aaaloker1 eq 1)) and (_root.aaaloker9_1 eq 1)) and (_root.aaaloker9_2 eq 1)) and (_root.aaaloker5 eq 1)) and (_root.aaaloker0 eq 0)) {
} else {
_root.lokergoesasplanned = 0;
}
if ((_root.lokergoesasplanned eq 0) and (random(2) eq 1)) {
_root.sbroslok0 = random(2);
_root.sbroslok3 = random(2);
_root.sbroslok1 = random(2);
_root.sbroslok9_1 = random(2);
_root.sbroslok9_2 = random(2);
_root.sbroslok5 = random(2);
}
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if ((checkingsum < 3) and (_root.lokergoesasplanned eq 0)) {
_root.sbroslok0 = 1;
_root.sbroslok3 = 1;
_root.sbroslok1 = 1;
_root.sbroslok9_1 = 1;
_root.sbroslok9_2 = 1;
_root.sbroslok5 = 1;
}
}
Symbol 2898 MovieClip Frame 1
locked = 1;
stop();
stop();
Symbol 2898 MovieClip Frame 6
locked = 0;
stop();
stop();
Symbol 2902 MovieClip Frame 1
stop();
Symbol 2904 Button
on (release) {
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if (checkingsum eq 0) {
play();
} else {
failtry.play();
}
}
Symbol 2934 MovieClip Frame 1
stop();
Instance of Symbol 2879 MovieClip "loker5" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker5 = locked;
if (_root.sbroslok5 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok5 = 0;
} else {
_root.sbroslok5 = 0;
}
}
}
Instance of Symbol 2883 MovieClip "loker9_1" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker9_1 = locked;
if (_root.sbroslok9_1 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok9_1 = 0;
} else {
_root.sbroslok9_1 = 0;
}
}
}
Instance of Symbol 2887 MovieClip "loker0" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker0 = locked;
if (_root.sbroslok0 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok0 = 0;
} else {
_root.sbroslok0 = 0;
}
}
}
Instance of Symbol 2891 MovieClip "loker1" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker1 = locked;
if (_root.sbroslok1 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok1 = 0;
} else {
_root.sbroslok1 = 0;
}
}
}
Instance of Symbol 2894 MovieClip "loker9_2" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker9_2 = locked;
if (_root.sbroslok9_2 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok9_2 = 0;
} else {
_root.sbroslok9_2 = 0;
}
}
}
Instance of Symbol 2898 MovieClip "loker3" in Symbol 2934 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.aaaloker3 = locked;
if (_root.sbroslok3 eq 1) {
if (locked eq 0) {
play();
_root.sbroslok3 = 0;
} else {
_root.sbroslok3 = 0;
}
}
}
Symbol 2934 MovieClip Frame 2
_root.mainmenucircle.menu_core.gotoAndStop(21);
Symbol 2934 MovieClip Frame 182
stop();
Symbol 2950 Button
on (release) {
nextFrame();
}
Symbol 2951 Button
on (release) {
prevFrame();
}
Symbol 2959 Button
on (press) {
_root.fotki.gotoAndStop(2);
}
on (release, releaseOutside) {
_root.fotki.gotoAndStop(1);
}
Symbol 2963 Button
on (press) {
_root.fotki.gotoAndStop(3);
}
on (release, releaseOutside) {
_root.fotki.gotoAndStop(1);
}
Symbol 2974 Button
on (release) {
gotoAndStop (6);
}
Symbol 2983 Button
on (release) {
gotoAndStop (1);
}
Symbol 2984 MovieClip Frame 1
stop();
Instance of Symbol 2320 MovieClip in Symbol 2984 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.pokosi_vklu4eni != 1) and (_root.pokosi_vklu4eni != 0)) {
_root.pokosi_vklu4eni = 1;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.pokosi_vklu4eni + 1);
} else {
_root.pokosi_vklu4eni = a;
}
}
Symbol 2985 MovieClip Frame 1
_root.stopmenubackgroundanimation = 0;
_root.terminate_menu_physics = 0;
stop();
Symbol 2985 MovieClip Frame 20
_root.stopmenubackgroundanimation = 1;
_root.terminate_menu_physics = 1;
Instance of Symbol 2934 MovieClip in Symbol 2985 MovieClip Frame 20
onClipEvent (enterFrame) {
checkingsum = ((((_root.aaaloker0 + _root.aaaloker3) + _root.aaaloker1) + _root.aaaloker9_1) + _root.aaaloker9_2) + _root.aaaloker5;
if (checkingsum eq 6) {
_root.lokergoesasplanned = 1;
}
}
Symbol 2985 MovieClip Frame 21
_root.stopmenubackgroundanimation = 1;
_root.terminate_menu_physics = 1;
fscommand ("allowscale", "true");
fscommand ("showmenu", "true");
Instance of Symbol 2758 MovieClip in Symbol 2989 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.stopmenubackgroundanimation eq 1) {
_visible = false;
} else {
_visible = true;
}
if (movik.changemovie eq 1) {
movik.changemovie = 0;
gotoAndStop(random(18) + 1);
}
}
Instance of Symbol 2726 MovieClip in Symbol 2989 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.pokosi_vklu4eni eq 0) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 2989 MovieClip Frame 37
stop();
Instance of Symbol 2985 MovieClip "menu_core" in Symbol 2989 MovieClip Frame 37
onClipEvent (enterFrame) {
if (_root.gotothelock eq 1) {
_root.gotothelock = 0;
gotoAndStop (20);
} else if (_root.gotothelock eq 2) {
_root.gotothelock = 0;
gotoAndStop (1);
}
cacheAsBitmap = true;
}
Symbol 3017 MovieClip Frame 67
stop();
Instance of Symbol 3017 MovieClip in Symbol 3029 MovieClip Frame 1
onClipEvent (enterFrame) {
cacheAsBitmap = true;
}
Symbol 3031 MovieClip Frame 1
stop();
Symbol 3032 MovieClip Frame 1
Mouse.hide();
startDrag (this, true);
Symbol 3037 Button
on (release) {
gotoAndPlay (62);
stopAllSounds();
}
Symbol 3117 MovieClip Frame 1
setProperty("shesterenka", _rotation , shesterenka._rotation - 1);
Symbol 3117 MovieClip Frame 2
gotoAndPlay (1);
Symbol 3125 MovieClip Frame 114
tellTarget ("_root") {
play();
};
stop();
Symbol 3126 Button
on (release) {
play();
stopAllSounds();
}
Symbol 3152 MovieClip Frame 81
stop();
_root.play();
Symbol 3160 MovieClip Frame 117
_root.play();