Frame 1
ifFrameLoaded (4) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 4
if (loaded2 eq 1) {
gotoAndPlay (5);
} else {
gotoAndPlay (3);
}
Frame 6
gotoAndPlay ("INTROS");
Frame 7
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 991 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.implosion_available eq 1) {
gotoAndStop (8);
} else {
gotoAndStop (9);
}
}
Instance of Symbol 994 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.shockwave_available eq 1) {
gotoAndStop (8);
} else {
gotoAndStop (9);
}
}
Instance of Symbol 998 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.implosion_available eq 1) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
Instance of Symbol 999 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.shockwave_available eq 1) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
Instance of Symbol 1119 MovieClip in Frame 7
onClipEvent (load) {
polsun.volumeset = 50;
}
onClipEvent (enterFrame) {
_root.implosion_power = polsun.volumeset;
polsun.vkl = _root.implosion_available;
}
Instance of Symbol 1119 MovieClip in Frame 7
onClipEvent (load) {
polsun.volumeset = 50;
}
onClipEvent (enterFrame) {
_root.shockwave_power = polsun.volumeset;
polsun.vkl = _root.shockwave_available;
}
Instance of Symbol 1165 MovieClip in Frame 7
onClipEvent (enterFrame) {
cacheAsBitmap = true;
}
Instance of Symbol 1482 MovieClip "ingame_menu" in Frame 7
onClipEvent (enterFrame) {
if (_root.levelupmenu_opened eq 1) {
gotoAndPlay (7);
}
}
Instance of Symbol 1579 MovieClip in Frame 7
onClipEvent (enterFrame) {
if ((_root.kursor eq 6) or (_root.kursor eq 7)) {
_visible = true;
} else {
_visible = false;
}
}
Frame 8
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 9
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 _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;
}
};
Mouse.show();
Frame 10
if (viewhighscores eq 1) {
nextFrame();
viewhighscores = 0;
} else {
gotoAndStop ("start");
stopAllSounds();
}
Frame 11
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 _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;
}
};
Frame 12
startDrag ("_root.kursor", true);
Mouse.hide();
Frame 13
stop();
Frame 14
stop();
Frame 15
stop();
Frame 16
gotoAndStop (9);
Symbol 6 MovieClip Frame 2
loading = _root.getBytesLoaded() / 200000;
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 2158 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Instance of Symbol 52 MovieClip in Symbol 57 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty("krutilka", _rotation , krutilka._rotation - (16 * _root.procentipreloadera));
}
Symbol 57 MovieClip Frame 2
_root.procentipreloadera = _root.getBytesLoaded() / _root.getBytesTotal();
migala.show_.procenti = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndPlay (1);
Symbol 66 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 77 MovieClip Frame 7
stop();
Symbol 83 Button
on (release) {
_root.loaded2 = 1;
}
Symbol 84 MovieClip Frame 2
if (_root.loaded_ eq 1) {
play();
} else {
gotoAndPlay (1);
}
Symbol 84 MovieClip Frame 22
stop();
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(random(11) + 1);
}
Symbol 126 MovieClip Frame 13
stop();
Symbol 128 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 147 Button
on (release) {
nextFrame();
}
Symbol 157 Button
on (release) {
prevFrame();
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
PercentLoaded = _root.getBytesLoaded() / _root.getBytesTotal();
if (longcatisloooo000ng != "wryyyyyyyy") {
longcatisloooo000ng = "wryyyyyyyy";
dlinna = bar._width;
}
if (PercentLoaded >= 1) {
_root.loaded_ = 1;
}
_root.bytesloaded.zagrujeno = _root.getBytesLoaded();
_root.bytesloaded.total = _root.getBytesTotal();
setProperty("bar", _width , dlinna * PercentLoaded);
gotoAndPlay (1);
Symbol 206 MovieClip Frame 15
stop();
Symbol 234 MovieClip Frame 20
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 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 295 MovieClip Frame 101
stop();
Symbol 341 MovieClip Frame 21
stop();
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_animation_off eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 27
ball_ready = 1;
Symbol 365 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
if (_root.limit_unstable_zone != 1) {
unstablezone._visible = true;
} else {
unstablezone._visible = false;
}
Symbol 380 MovieClip Frame 32
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
if (agggggrrh != "yiff") {
agggggrrh = "yiff";
barwidthmax = bar._width;
}
Symbol 416 MovieClip Frame 2
bar._width = barwidthmax * (hp / max);
Symbol 484 MovieClip Frame 1
stop();
Instance of Symbol 403 MovieClip "num1" in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 419 MovieClip "num2" in Symbol 484 MovieClip Frame 2
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (4);
} else {
gotoAndStop(1 + random(3));
}
}
Instance of Symbol 441 MovieClip in Symbol 484 MovieClip Frame 4
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 447 MovieClip in Symbol 484 MovieClip Frame 5
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 452 MovieClip in Symbol 484 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(1 + random(3));
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 6
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 461 MovieClip in Symbol 484 MovieClip Frame 7
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 464 MovieClip in Symbol 484 MovieClip Frame 8
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 468 MovieClip in Symbol 484 MovieClip Frame 9
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 9
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 471 MovieClip in Symbol 484 MovieClip Frame 10
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 474 MovieClip in Symbol 484 MovieClip Frame 11
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 477 MovieClip in Symbol 484 MovieClip Frame 12
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (4);
} else {
gotoAndStop(1 + random(3));
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 12
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 483 MovieClip "boss" in Symbol 484 MovieClip Frame 14
onClipEvent (load) {
if (_root.extreme_mode_activated eq 1) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 416 MovieClip "health_bar" in Symbol 484 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
}
Symbol 486 Button
on (press) {
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 487 MovieClip Frame 1
if (_name eq "enemy") {
gotoAndStop (3);
}
if (_name != "enemy") {
if ((allset != 1) and (gooo eq 1)) {
allset = 1;
being_thrown = 0;
being_thrown_timer = 0;
the_core.health_bar._visible = false;
speed_k = 0.94;
if (unit_chosen eq 0) {
if (_root.extreme_mode_activated eq 1) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
the_core.gotoAndStop(2);
mass = 45;
size = "small";
power = 1;
hp = _root.small_tank_hp;
xspeed_nominal = -1;
} else {
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;
xspeed_nominal = -1;
}
} else if (unit_chosen eq 1) {
if (_root.extreme_mode_activated eq 1) {
exp_points = 2;
var score = 100;
speed_k = 0.96;
the_core.gotoAndStop(1);
mass = 60;
size = "medium";
power = 2;
hp = _root.lazer_tank_hp;
xspeed_nominal = -1;
} else {
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;
xspeed_nominal = -1;
}
} else if (unit_chosen eq 2) {
exp_points = 1;
var score = 50;
speed_k = 0.96;
xspeed_nominal = -1;
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) {
if (_root.extreme_mode_activated eq 1) {
exp_points = 6;
var score = 700;
speed_k = 0.89;
_root.trace_mammoth = _name;
xspeed_nominal = -1;
the_core.gotoAndStop(14);
mass = 950;
size = "hueg";
power = 5;
hp = _root.mammoth_tank2_hp;
} else {
exp_points = 6;
var score = 700;
speed_k = 0.89;
_root.trace_mammoth = _name;
xspeed_nominal = -1;
the_core.gotoAndStop(14);
mass = 750;
size = "hueg";
power = 5;
hp = _root.mammoth_tank2_hp;
}
} else if (_root.extreme_mode_activated eq 1) {
exp_points = 5;
var score = 500;
speed_k = 0.89;
_root.trace_mammoth = _name;
xspeed_nominal = -1;
the_core.gotoAndStop(4);
mass = 750;
size = "hueg";
power = 5;
hp = _root.mammoth_tank_hp;
} else {
exp_points = 5;
var score = 500;
speed_k = 0.89;
_root.trace_mammoth = _name;
xspeed_nominal = -1;
the_core.gotoAndStop(4);
mass = 550;
size = "hueg";
power = 5;
hp = _root.mammoth_tank_hp;
}
} else if (unit_chosen eq 4) {
if (_root.extreme_mode_activated eq 1) {
exp_points = 3;
var score = 100;
_root.heavy_tank_count++;
xspeed_nominal = -1;
the_core.gotoAndStop(5);
mass = 350;
size = "big";
power = 3;
hp = _root.heavy_tank_hp;
} else {
exp_points = 3;
var score = 100;
_root.heavy_tank_count++;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
the_core.gotoAndStop(6);
mass = 20;
size = "small";
power = 1;
hp = _root.railgrav_tank_hp;
} else if (unit_chosen eq 6) {
if (_root.extreme_mode_activated eq 1) {
exp_points = 4;
var score = 200;
xspeed_nominal = -1;
the_core.gotoAndStop(7);
mass = 300;
size = "big";
power = 3;
hp = _root.nuketruck_hp;
} else {
exp_points = 3;
var score = 200;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
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;
xspeed_nominal = -1;
} 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;
xspeed_nominal = -1;
}
}
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;
exist = 1;
}
}
if (Math.abs(throw_yspeed) > 0.1) {
yspeed = throw_yspeed;
throw_yspeed = throw_yspeed * speed_k;
} else {
if (Math.abs(yspeed) >= 10) {
yd = 0.5;
} else if ((Math.abs(yspeed) >= 5) and (Math.abs(yspeed) < 10)) {
yd = 0.25;
} else if ((Math.abs(yspeed) >= 3) and (Math.abs(yspeed) < 5)) {
yd = 0.115;
} else if ((Math.abs(yspeed) >= 1) and (Math.abs(yspeed) < 3)) {
yd = 0.05;
} else if ((Math.abs(yspeed) < 1) and (Math.abs(yspeed) > 0)) {
yd = 0.01;
} else {
yd = 0;
}
if (yspeed > 0) {
yspeed = yspeed - yd;
} else if (yspeed < 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 (_name != "enemy") {
if (_x < -450) {
if (unit_chosen eq 4) {
_root.heavy_tank_count--;
}
_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 > 100) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
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.max_enemies) {
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);
}
Symbol 487 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();
if (bossmode eq 1) {
the_core.boss.gotoAndStop(2);
}
}
xpos = _x;
ypos = _y;
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;
}
tempx = xpos + xspeed;
tempy = ypos + yspeed;
xpos = tempx;
ypos = tempy;
_x = xpos;
_y = ypos;
if ((_x > 600) or (removethisnow 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;
this._x = _root.game._xmouse;
this._y = _root.game._ymouse;
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 > 3) {
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;
Symbol 501 MovieClip Frame 17
stop();
Symbol 506 MovieClip Frame 20
remove = 1;
Symbol 511 MovieClip Frame 20
remove = 1;
Symbol 532 MovieClip Frame 20
stop();
Symbol 537 MovieClip Frame 20
remove = 1;
Symbol 538 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 17
stop();
Symbol 556 MovieClip Frame 18
remove = 1;
Symbol 557 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 22
remove = 1;
Symbol 587 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 29
remove = 1;
Symbol 607 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 30
stop();
Symbol 651 MovieClip Frame 80
remove = 1;
Symbol 652 MovieClip Frame 1
stop();
Symbol 656 MovieClip Frame 26
stop();
Symbol 664 MovieClip Frame 1
if (this._name eq "gravity_shockwave") {
stop();
}
Symbol 664 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 664 MovieClip Frame 39
removeMovieClip(this);
Symbol 664 MovieClip Frame 40
stop();
Symbol 678 MovieClip Frame 1
if (_name eq "projectile_explode") {
gotoAndStop (55);
}
Symbol 678 MovieClip Frame 38
removeMovieClip(this);
Symbol 723 MovieClip Frame 1
if (_name eq "teh_nuke") {
gotoAndStop (70);
}
Symbol 723 MovieClip Frame 2
_root.gravity_nuke_in_action = 1;
Symbol 723 MovieClip Frame 42
_root.gravity_nuke_in_action = 0;
Symbol 723 MovieClip Frame 48
removeMovieClip(this);
Symbol 723 MovieClip Frame 50
stop();
Symbol 723 MovieClip Frame 70
stop();
Symbol 727 MovieClip Frame 1
stop();
Symbol 727 MovieClip Frame 20
gotoAndPlay (2);
Symbol 748 Button
on (press) {
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.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) {
_root.current_energy_cost = 0;
if (_root.game.ball_targeting != 1) {
_root.kursor = 1;
}
}
on (rollOver, dragOver) {
_root.kursor = 3;
_root.current_energy_cost = _root["ball_type_energycost_" + type_];
}
Symbol 749 MovieClip Frame 1
if (v667 != "yiff") {
v667 = "yiff";
mass = 90;
udar = 0;
udar2 = 0;
udar_count = 0;
radius = ball_core._width / 2;
hits = 0;
}
if (go != 1) {
radius = ball_core._width / 2;
}
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;
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;
_x = (_x + xspeed);
_y = (_y + yspeed);
removeMovieClip(energy_aura);
}
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)) or (hits >= hits_max)) or (projectile_unstable eq 1)) {
if (_root.explosions_count > 100) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
duplicateMovieClip ("_root.game.projectile_explode", "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);
var i = 0;
while (i < _root.max_enemies) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, explosion_power);
}
i++;
}
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 = 5;
} else if (type_ eq 2) {
damage = 200 + random(600);
mass = 80;
explosion_power = 7;
hits_max = 8;
} else if (type_ eq 3) {
damage = random(800);
mass = 70;
explosion_power = 7;
hits_max = 30;
} else if (type_ eq 4) {
damage = 4000;
mass = 90;
explosion_power = 7;
hits_max = 10;
} else if ((type_ eq 5) or (type_ eq 6)) {
damage = random(700);
mass = 90;
explosion_power = 7;
hits_max = 500;
} 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 = 500000 /* 0x07A120 */;
} else if (type_ eq 9) {
damage = random(5000);
mass = 5000;
explosion_power = 7;
hits_max = 50;
} else if (type_ eq 10) {
damage = random(5);
mass = 1;
explosion_power = 7;
hits_max = 50000;
}
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 728 MovieClip "strelka_shell" in Symbol 749 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 749 MovieClip Frame 2
if ((_x < -500) or (_x > 500)) {
removeMovieClip(this);
}
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)) and (desu9 != 1337)) {
desu9 = 1337;
randomizer = 1;
randomizer_count = 0;
}
if (randomizer eq 1) {
randomizer_count++;
if (randomizer_count > 5) {
type_ = random(9) + 1;
hits = 0;
randomizer_count = 0;
}
}
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 749 MovieClip Frame 3
stop();
Symbol 752 MovieClip Frame 9
removeMovieClip(this);
Symbol 752 MovieClip Frame 10
gotoAndPlay (2);
Symbol 761 MovieClip Frame 9
stop();
Symbol 769 MovieClip Frame 8
stop();
Symbol 773 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 782 MovieClip Frame 5
stop();
Symbol 786 MovieClip Frame 4
stop();
Symbol 787 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 796 MovieClip Frame 9
stop();
Symbol 797 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 806 MovieClip Frame 9
stop();
Symbol 807 MovieClip Frame 12
stop();
remove = 1;
stop();
Symbol 811 Button
on (release) {
play();
}
Symbol 887 MovieClip Frame 1
_root.implosion_go = 0;
Symbol 887 MovieClip Frame 31
_root.implosion_go = 1;
_root.shakescreen = 30;
Symbol 887 MovieClip Frame 46
_root.implosion_go = 0;
Symbol 887 MovieClip Frame 74
removeMovieClip(this);
Symbol 896 Button
on (release) {
_root.energy = _root.energy_max;
cleared = 1;
clearing.play();
}
Symbol 901 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 17
stop();
remove = 1;
Symbol 905 Button
on (release) {
_root.structure = _root.structure_max;
cleared = 1;
clearing.play();
}
Symbol 910 Button
on (release) {
_root.antimatter_timeout = 0;
_root.shockwave_timeout = 0;
_root.manipulator_timeout = 0;
_root.implosion_timeout = 0;
_root.tier2projectiles_timeout = 0;
cleared = 1;
clearing.play();
}
Symbol 914 Button
on (release) {
_root.ball_type = 10;
_root.antimatter_chargin.play();
cleared = 1;
clearing.play();
}
Symbol 915 Button
on (release) {
if (_root.explosions_count > 100) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
power = 4;
duplicateMovieClip ("_root.game.explosions_nuke", "explosion" + _root.explosions_count, _root.explosions_count + 10500);
_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.max_enemies) {
if (_root.game["enemy" + i]) {
_root.game.Explosion(["enemy" + i], _x, _y, power);
}
i++;
}
_root.game.ExplosionSound(power);
removeMovieClip(this);
btn._visible = false;
}
Symbol 916 MovieClip Frame 1
if (_name != "powerup_source") {
gotoAndStop(random(5) + 2);
}
Symbol 930 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) {
upperwalldistance = Math.abs(_root.game.upper_wall._y - _root.game[ball]._y) - (_root.game.ball_radius * 0.5);
bottomwalldistance = Math.abs(_root.game.bottom_wall._y - _root.game[ball]._y) - (_root.game.ball_radius * 0.5);
framesleft1 = Math.abs(upperwalldistance / _root.game[ball].yspeed);
framesleft2 = Math.abs(bottomwalldistance / _root.game[ball].yspeed);
if ((framesleft1 <= 1) or (framesleft2 <= 1)) {
_root.game[ball].udar++;
_root.game[ball].hits++;
_root.game[ball].yspeed = _root.game[ball].yspeed * -1;
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]) {
upperwalldistance = Math.abs(_root.game.upper_wall._y - _root.game[enemy]._y) - (_root.game[enemy].radius * 0.5);
bottomwalldistance = Math.abs(_root.game.bottom_wall._y - _root.game[enemy]._y) - (_root.game[enemy].radius * 0.5);
framesleft1 = Math.abs(upperwalldistance / _root.game[enemy].yspeed);
framesleft2 = Math.abs(bottomwalldistance / _root.game[enemy].yspeed);
if ((framesleft1 <= 1) or (framesleft2 <= 1)) {
wallImpactSound();
if (Math.abs(_root.game[enemy].yspeed) > 5) {
_root.game[enemy].yspeed = _root.game[enemy].yspeed * -0.5;
_root.game[enemy].throw_yspeed = _root.game[enemy].throw_yspeed * -1;
} else {
_root.game[enemy].throw_yspeed = _root.game[enemy].throw_yspeed * -1;
_root.game[enemy].yspeed = _root.game[enemy].yspeed * -0.8;
}
_root.game[enemy].damage = _root.game[enemy].damage + Math.abs(_root.game[enemy].yspeed * _root.game[enemy].mass);
_root.game[enemy].ydar = _root.game[enemy].ydar + 1;
if (framesleft1 <= 1) {
collisionEffect(_root.game[enemy]._x, _root.game.upper_wall._y + 4, "upper");
} else {
collisionEffect(_root.game[enemy]._x, _root.game.bottom_wall._y - 4, "bottom");
}
}
}
}
function StolknovenieVragaIsharika(ball, enemy, x1, x2, y1, y2, time) {
var _local6 = _root.game[ball].mass;
var _local7 = _root.game[enemy].mass;
var _local16 = _root.game[ball].xspeed;
var _local15 = _root.game[enemy].xspeed;
var _local19 = _root.game[ball].yspeed;
var _local17 = _root.game[enemy].yspeed;
var _local20 = x1 - x2;
var _local22 = y1 - y2;
if (_root.game[ball].type_ eq 7) {
var _local11 = random(360);
} else {
var _local11 = Math.atan2(_local22, _local20);
}
var _local5 = Math.cos(_local11);
var _local4 = Math.sin(_local11);
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;
_root.game[ball].hits++;
_root.game[ball].udar2++;
_root.game[enemy].the_core.ballhitanim.play();
_root.game[ball].ball_animation.vspishka.play();
if (random(2) eq 1) {
_root.balltoenemy_impact2.start();
} else {
_root.balltoenemy_impact1.start();
}
var _local12 = (_local16 * _local5) + (_local19 * _local4);
var _local9 = (_local15 * _local5) + (_local17 * _local4);
var _local10 = (_local19 * _local5) - (_local16 * _local4);
var _local8 = (_local17 * _local5) - (_local15 * _local4);
var _local18 = (_local6 * _local12) + (_local7 * _local9);
var _local21 = _local12 - _local9;
var _local13 = (_local18 + (_local6 * _local21)) / (_local6 + _local7);
if (((_root.game[ball].type_ eq 1) or (_root.game[ball].type_ eq 8)) or (_root.game[ball].type_ eq 3)) {
var _local14 = (_local13 - _local12) + _local9;
} else {
var _local14 = (-_local12) + _local9;
}
_local12 = _local14;
_local9 = _local13;
_local16 = (_local12 * _local5) - (_local10 * _local4);
_local15 = (_local9 * _local5) - (_local8 * _local4);
_local19 = (_local10 * _local5) + (_local12 * _local4);
_local17 = (_local8 * _local5) + (_local9 * _local4);
if (_root.game[ball].type_ eq 10) {
removeMovieClip(_root.game[ball]);
if (_root.explosions_count > 100) {
_root.explosions_count = 0;
} else {
_root.explosions_count++;
}
duplicateMovieClip ("_root.game.teh_nuke", "zomg_nuke", _root.explosions_count + 10500);
_root.game.zomg_nuke._x = _root.game[enemy]._x;
_root.game.zomg_nuke._y = _root.game[enemy]._y;
}
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]._x = _root.game[enemy]._x;
_root.game[ball]._y = _root.game[enemy]._y;
_root.game[ball].xspeed = 5;
_root.game[ball].yspeed = random(5);
} else {
_root.game[ball].xspeed = _local16;
_root.game[ball].yspeed = _local19;
}
_root.game[enemy].xspeed = _local15;
_root.game[enemy].yspeed = _local17;
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 _local6 = _root.game[enemy_1].mass;
var _local7 = _root.game[enemy_2].mass;
var _local20 = _root.game[enemy_1].xspeed;
var _local19 = _root.game[enemy_2].xspeed;
var _local23 = _root.game[enemy_1].yspeed;
var _local21 = _root.game[enemy_2].yspeed;
var _local24 = x1 - x2;
var _local28 = y1 - y2;
var _local12 = Math.atan2(_local28, _local24);
var _local5 = Math.cos(_local12);
var _local4 = Math.sin(_local12);
var _local13 = (_local20 * _local5) + (_local23 * _local4);
var _local10 = (_local19 * _local5) + (_local21 * _local4);
var _local11 = (_local23 * _local5) - (_local20 * _local4);
var _local9 = (_local21 * _local5) - (_local19 * _local4);
_root.game[enemy_1].damage = _root.game[enemy_1].damage + ((Math.abs(_local13) + Math.abs(_local10)) * _local7);
_root.game[enemy_2].damage = _root.game[enemy_2].damage + ((Math.abs(_local13) + Math.abs(_local10)) * _local6);
enemy2enemyImpactSound();
var _local26 = x1 - x2;
var _local25 = y1 - y2;
R2 = _root.game[enemy_2].radius;
var _local14 = ((-Math.atan2(_local26, _local25)) / (Math.PI/180)) + 180;
collision_y3 = y2 - (R2 * Math.sin(_local14 * (Math.PI/180)));
collision_x3 = x2 - (R2 * Math.cos(_local14 * (Math.PI/180)));
collisionEffect(collision_x3, collision_y3);
var _local22 = (_local6 * _local13) + (_local7 * _local10);
var _local27 = _local13 - _local10;
var _local15 = (_local22 + (_local6 * _local27)) / (_local6 + _local7);
var _local18 = (_local15 - _local13) + _local10;
_local13 = _local18;
_local10 = _local15;
_local20 = (_local13 * _local5) - (_local11 * _local4);
_local19 = (_local10 * _local5) - (_local9 * _local4);
_local23 = (_local11 * _local5) + (_local13 * _local4);
_local21 = (_local9 * _local5) + (_local10 * _local4);
_root.game[enemy_1].tempx = _root.game[enemy_1].xpos + (_root.game[enemy_1].xspeed * time);
_root.game[enemy_1].tempy = _root.game[enemy_1].ypos + (_root.game[enemy_1].yspeed * time);
_root.game[enemy_2].tempx = _root.game[enemy_2].xpos + (_root.game[enemy_2].xspeed * time);
_root.game[enemy_2].tempy = _root.game[enemy_2].ypos + (_root.game[enemy_2].yspeed * time);
_root.game[enemy_1].xspeed = _local20;
_root.game[enemy_2].xspeed = _local19;
_root.game[enemy_1].yspeed = _local23;
_root.game[enemy_2].yspeed = _local21;
}
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 = 10 + (40 * (_root.implosion_power / 100));
implosion_suckingpower = ((-((10 * (_root.implosion_power / 100)) + 5)) * _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 = 2500 + random(2500);
} else if (power eq 6) {
explosion_radius = 70;
_root.shakescreen = 15;
explosion_mass = 100 * (_root.shockwave_power / 100);
explosion_power = 50 * (_root.shockwave_power / 100);
explosion_dmg = 1;
} else if (power eq 7) {
explosion_radius = 70;
_root.shakescreen = 15;
explosion_mass = 50;
explosion_power = 10;
explosion_dmg = 500 + random(1000);
}
x1 = _root.game[enemy]._x;
y1 = _root.game[enemy]._y;
x2 = explosion_x;
y2 = explosion_y;
var _local6 = x1 - x2;
var _local7 = y1 - y2;
var _local20 = Math.sqrt((_local6 * _local6) + (_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 < explosion_radius) {
if (explosion_dmg > 5000) {
damage_po_baze = 1000 + random(1000);
} else if ((explosion_dmg > 3000) and (explosion_dmg < 5000)) {
damage_po_baze = 750 + random(750);
} else if ((explosion_dmg > 1000) and (explosion_dmg < 3000)) {
damage_po_baze = 100 + random(250);
} else if ((explosion_dmg > 700) and (explosion_dmg < 1000)) {
damage_po_baze = 100 + random(150);
} else if ((explosion_dmg > 500) and (explosion_dmg < 700)) {
damage_po_baze = 100 + random(50);
} else if ((explosion_dmg > 100) and (explosion_dmg < 500)) {
damage_po_baze = 50 + random(50);
} else if (explosion_dmg < 100) {
damage_po_baze = explosion_dmg / 5;
}
damage_po_baze = damage_po_baze / 10;
_root.structure = _root.structure - damage_po_baze;
}
if ((_local20 < explosion_radius) and ((Math.abs(_local6) + Math.abs(_local7)) > 0.0001)) {
_root.game[enemy].damage = _root.game[enemy].damage + explosion_dmg;
var _local8 = _root.game[enemy].mass;
var _local9 = explosion_mass;
var _local17 = _root.game[enemy].xspeed;
var _local19 = _root.game[enemy].yspeed;
var _local13 = Math.atan2(_local7, _local6);
var _local3 = Math.cos(_local13);
var _local2 = Math.sin(_local13);
var _local14 = (_local17 * _local3) + (_local19 * _local2);
var _local11 = explosion_power;
var _local12 = (_local19 * _local3) - (_local17 * _local2);
var _local10 = 0.0001;
var _local18 = (_local8 * _local14) + (_local9 * _local11);
var _local21 = _local14 - _local11;
var _local15 = (_local18 + (_local8 * _local21)) / (_local8 + _local9);
var _local16 = (_local15 - _local14) + _local11;
_local14 = _local16;
_local11 = _local15;
_local17 = (_local14 * _local3) - (_local12 * _local2);
var _local22 = (_local11 * _local3) - (_local10 * _local2);
_local19 = (_local12 * _local3) + (_local14 * _local2);
var _local23 = (_local10 * _local3) + (_local11 * _local2);
_root.game[enemy].xspeed = _local17;
_root.game[enemy].yspeed = _local19;
}
}
function ZashitaOtRespaNaOdnomMeste(enemy_1, enemy_2) {
if ((_root.game[enemy_1]._x > 410) or (_root.game[enemy_2]._x > 410)) {
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) {
if ((_root.game[enemy_1]._x < 430) and (_root.game[enemy_2]._x < 430)) {
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 (((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 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 / 20);
} 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 / 20);
} 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 / 20);
_root.game[enemy_2].damage = _root.game[enemy_2].damage + (_root.game[enemy_2].hp / 20);
}
}
}
}
function shleifOtSharika(ball) {
if (_root.shleifcount > 100) {
_root.shleifcount = 0;
} else {
_root.shleifcount++;
}
duplicateMovieClip (_root.game.shleif, "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 _local3 = 0;
while (_local3 < _root.max_enemies) {
if (_root.game["enemy" + _local3]) {
} else {
the_chosen_Y = 0;
var _local4 = 0;
while (_local4 < _root.shirina_potoka_mobov) {
if (_root.metod_sortirovki_unitov eq 1) {
if (vverh_vniz eq 1) {
polojenie_y = 0 + _local4;
} else {
polojenie_y = -_local4;
}
} else if (_root.metod_sortirovki_unitov eq 2) {
polojenie_y = (2 * random(_root.shirina_potoka_mobov)) - _root.shirina_potoka_mobov;
}
polojenie_x = 500;
finding_location_failed = 0;
var _local2 = 0;
while (_local2 < _root.max_enemies) {
if (_root.game["enemy" + _local2]) {
distancepox = _root.game["enemy" + _local2]._x - polojenie_x;
distancepoy = _root.game["enemy" + _local2]._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" + _local2].radius;
if ((distancecheck < (radius_summa_desu + _root.rasstoyanie_mejdu_unitami)) and (fail_des1u != 1)) {
finding_location_failed = 1;
break;
}
_local2++;
}
if (vverh_vniz != 1) {
vverh_vniz = 1;
} else {
vverh_vniz = 0;
}
if (finding_location_failed != 1) {
if (polojenie_y eq 0) {
polojenie_y = 0.1;
}
the_chosen_Y = polojenie_y;
_local4 = 0;
break;
}
_local4++;
}
if (_root.enemies_onthefield eq 0) {
the_chosen_Y = 0.1;
}
if (the_chosen_Y != 0) {
duplicateMovieClip (_root.game.enemy, "enemy" + _local3, _local3 + 20);
_root.game["enemy" + _local3]._x = 500;
_root.game["enemy" + _local3]._y = the_chosen_Y;
_root.game["enemy" + _local3].gooo = 1;
_root.game["enemy" + _local3].unit_chosen = unit_id;
_root.game["enemy" + _local3].radius = _root["enemy_diameter_" + unit_id] / 2;
if (unit_id eq 13) {
if (_root.wave eq 6) {
_root.game["enemy" + _local3].bossmode = 1;
}
_root.game["enemy" + _local3].unit_chosen = 3;
_root.game["enemy" + _local3].second_modification = 1;
}
}
break;
}
_local3++;
}
}
Crafted_By = "Project Gravity Launcher (c) DimonZerg aka DZ / 2007 / dimonzerg.narod.ru";
if (_root.ball_type eq 1) {
pokazatel_stabilnosty = 5;
minimalnaya_stabilnost = 70;
maximalnaya_stabilnost = 95;
maxspeed = 15;
} else if (_root.ball_type eq 2) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 80;
maximalnaya_stabilnost = 100;
maxspeed = 20;
} else if (_root.ball_type eq 3) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 50;
maximalnaya_stabilnost = 80;
maxspeed = 30;
} else if (_root.ball_type eq 4) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 15;
maximalnaya_stabilnost = 35;
maxspeed = 25;
} else if (_root.ball_type eq 5) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 15;
maximalnaya_stabilnost = 50;
maxspeed = 10;
} else if (_root.ball_type eq 7) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 40;
maximalnaya_stabilnost = 70;
maxspeed = 23;
} else if (_root.ball_type eq 8) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 1;
maximalnaya_stabilnost = 40;
maxspeed = 10;
} else if (_root.ball_type eq 9) {
pokazatel_stabilnosty = 2.5;
minimalnaya_stabilnost = 1;
maximalnaya_stabilnost = 50;
maxspeed = 30;
} else if (_root.ball_type eq 10) {
pokazatel_stabilnosty = 0.1;
minimalnaya_stabilnost = 100;
maximalnaya_stabilnost = 100;
maxspeed = 25;
}
_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;
} else {
_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;
}
if (_root.game_modo eq 1) {
_root.initial_lives = 40;
_root.structure_max = 1000;
_root.implosion_loading_time = 35;
_root.shockwave_loading_time = 30;
_root.manipulator_loading_time = 20;
_root.antimatter_loading_time = 35;
_root.tier2projectiles_loading_time = 15;
_root.structure_regen = 0.05;
} else if ((_root.game_modo eq 2) or (_root.game_modo eq 3)) {
if (_root.game_modo eq 2) {
_root.initial_lives = 5;
} else {
_root.initial_lives = 3;
}
_root.structure_max = 650;
_root.implosion_loading_time = 25;
_root.shockwave_loading_time = 25;
_root.manipulator_loading_time = 20;
_root.antimatter_loading_time = 25;
_root.tier2projectiles_loading_time = 5;
_root.structure_regen = 0.1;
} else if (_root.game_modo eq 4) {
_root.initial_lives = 1;
_root.structure_max = 1000;
_root.implosion_loading_time = 20;
_root.shockwave_loading_time = 20;
_root.manipulator_loading_time = 20;
_root.antimatter_loading_time = 20;
_root.tier2projectiles_loading_time = 1;
_root.structure_regen = 0.1;
} else {
_root.initial_lives = 10;
_root.structure_regen = 0.1;
}
if (resetvariables != "yiff") {
resetvariables = "yiff";
_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 = 300;
_root.ball_type_energycost_3 = 550;
_root.ball_type_energycost_4 = 800;
_root.ball_type_energycost_5 = 500;
_root.ball_type_energycost_7 = 500;
_root.ball_type_energycost_8 = 800;
_root.ball_type_energycost_9 = 500;
_root.ball_type_energycost_10 = 400;
_root.implosion_energycost_max = 700;
_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.antimatter_loading_time = 35;
_root.tier2projectiles_loading_time = 15;
_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.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.antimatter_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.wave_timer_rough = 0;
_root.extreme_mode_activated = 0;
_root.game_on_hold = 1;
_root.base_dead = 0;
_root.score = 0;
_root.misses = 0;
_root.showwhichballinfo = 0;
_root.lvl = 1;
_root.survival_trigger_1 = 0;
_root.survival_timer_1 = 0;
_root.survival_timer_2 = 0;
_root.stoptime = 20;
_root.wave = 1;
_root.skill_points = 0;
_root.kills_count = 0;
_root.kills_exp_count = 0;
_root.kills_max = 0;
_root.victory = 0;
_root.gravity_nuke_in_action = 0;
_root.limit_unstable_zone = 0;
_root.current_energy_cost = 1;
_root.stability_rating = 100;
_root.speed = 0;
_root.heavy_tank_count = 0;
_root.shakescreen = 0;
_root.trace_mammoth = 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;
_root.antimatter_timeout = 0;
_root.shockwave_timeout = 0;
_root.manipulator_timeout = 0;
_root.implosion_timeout = 0;
_root.tier2projectiles_timeout = 0;
_root.manipulator_available = 0;
_root.shockwave_available = 0;
_root.implosion_available = 0;
_root.antimatter_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;
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;
if (_root.game_modo eq 4) {
_root.lvl = 10;
_root.skill_points = 45;
}
}
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");
}
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.base_dead eq 1) {
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 0;
hover_tank_rr = 0;
heavy_tank_rr = 0;
railgrav_tank_rr = 0;
kindabike_rr = 0;
kindabike2_rr = 0;
nuketruck_rr = 0;
mech1_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 0;
}
if (_root.stop_all_respawns != 0) {
_root.stop_all_respawns = 0;
mammoth_tank_rr = 0;
mammoth_tank2_rr = 0;
kindabike_rr = 0;
kindabike2_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;
mech1_rr = 0;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_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);
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.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.antimatter_timeout = 0;
_root.shockwave_timeout = 0;
_root.manipulator_timeout = 0;
_root.implosion_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.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);
_root.kursor = 1;
}
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;
}
MammonthTankTrace();
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 (["ball" + i]) {
if (_root.game["ball" + i].go eq 1) {
WallCollision(["ball" + i]);
shleifOtSharika(["ball" + i]);
}
}
i++;
}
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (["enemy" + i]) {
Enemy2WallCollision("enemy" + i);
if (ball1) {
ballToEnemyCollisionDetectionAndReaction("ball1", "enemy" + i);
}
if (ball2) {
ballToEnemyCollisionDetectionAndReaction("ball2", "enemy" + i);
}
if (ball3) {
ballToEnemyCollisionDetectionAndReaction("ball3", "enemy" + i);
}
if (ball4) {
ballToEnemyCollisionDetectionAndReaction("ball4", "enemy" + i);
}
if (ball5) {
ballToEnemyCollisionDetectionAndReaction("ball5", "enemy" + i);
}
}
i++;
}
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]) {
EnemyToEnemyCollisionDetectionAndReaction("enemy" + i, "enemy" + j);
ZashitaOtRespaNaOdnomMeste("enemy" + i, "enemy" + j);
}
}
j++;
}
}
i++;
}
if (_root.implosion_go eq 1) {
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (["enemy" + i]) {
Implosion("enemy" + i);
}
i++;
}
}
zashita_ot_skleivaniya_count++;
if (zashita_ot_skleivaniya_count >= 10) {
zashita_ot_skleivaniya_count = 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]) {
ZashitaOtSkleivaniya("enemy" + i, "enemy" + j);
}
}
j++;
}
}
i++;
}
}
if (_root.gravity_nuke_in_action eq 1) {
gravity_nuke_epicenter = _root.game.zomg_nuke.inner_size._width / 2;
gravity_nuke_radius = _root.game.zomg_nuke.outer_size._width / 2;
var i = 0;
while (i < _root.dla_skolkih_unitov_funkcii) {
if (["enemy" + i]) {
GravityNuke("enemy" + i, _root.game.zomg_nuke._x, _root.game.zomg_nuke._y, gravity_nuke_epicenter, gravity_nuke_radius);
}
i++;
}
}
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 = 30;
} 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 = 60;
} 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 = 60;
} else if (_root.wave eq 19) {
_root.wave_length = 60;
} else if (_root.wave eq 20) {
_root.wave_length = 150;
} else if (_root.wave eq 21) {
_root.wave_length = 60;
} else if (_root.wave eq 22) {
_root.wave_length = 200;
} else if (_root.wave eq 23) {
_root.wave_length = 100;
}
} else if (_root.game_modo != 1) {
_root.wave_length = 10000000 /* 0x989680 */;
}
if (_root.game_on_hold != 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 23) {
_root.victory = 1;
} else {
_root.game_on_hold = 1;
_root.wave_timer_rough = 0;
_root.showwhichballinfo = 0;
}
}
if (_root.game_modo eq 2) {
_root.powerup_respawn_rate = 6;
} else if (_root.game_modo eq 3) {
_root.powerup_respawn_rate = 7;
_root.extreme_mode_activated = 1;
}
if (_root.game_modo eq 4) {
_root.powerup_respawn_rate = 10;
}
Instance of Symbol 295 MovieClip "base_death" in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 538 MovieClip "explosions_small" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 557 MovieClip "explosions_medium" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 587 MovieClip "explosions_big" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 607 MovieClip "explosions_hueg" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 652 MovieClip "explosions_nuke" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (explosion.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 808 MovieClip "udar" in Symbol 930 MovieClip Frame 1
onClipEvent (enterFrame) {
if (anim.remove eq 1) {
removeMovieClip(this);
}
}
Instance of Symbol 916 MovieClip "powerup_source" in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
ttime = 0;
}
onClipEvent (enterFrame) {
if (_name != "powerup_source") {
ttime = ttime + 0.032258064516129;
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 924 MovieClip "upper_wall" in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 926 MovieClip "bottom_wall" in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Instance of Symbol 929 MovieClip in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(90000);
this.swapDepths(_root.game.wall1);
removeMovieClip(this);
}
Instance of Symbol 929 MovieClip in Symbol 930 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(90001);
this.swapDepths(_root.game.wall2);
removeMovieClip(this);
}
Symbol 930 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;
}
} 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;
}
} 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;
}
}
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 (_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.implosion_power) / 100;
_root.shockwave_energycost = (_root.shockwave_energycost_max * _root.shockwave_power) / 100;
_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;
} 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 = 40;
} else if (_root.lvl eq 6) {
_root.kills_max = 80;
} else if (_root.lvl eq 7) {
_root.kills_max = 100;
} 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 = 150;
} else if (_root.lvl eq 11) {
_root.kills_max = 150;
} else if (_root.lvl eq 12) {
_root.kills_max = 150;
} else if (_root.lvl eq 13) {
_root.kills_max = 150;
} 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 = 200;
} else if (_root.lvl eq 20) {
_root.kills_max = 200;
}
} else if (_root.game_modo eq 4) {
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 = 40;
} else if (_root.lvl eq 6) {
_root.kills_max = 80;
} else if (_root.lvl eq 7) {
_root.kills_max = 100;
} 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 = 150;
} else if (_root.lvl eq 11) {
_root.kills_max = 150;
} else if (_root.lvl eq 12) {
_root.kills_max = 150;
} else if (_root.lvl eq 13) {
_root.kills_max = 150;
} else if (_root.lvl eq 14) {
_root.kills_max = 250;
} else if (_root.lvl eq 15) {
_root.kills_max = 350;
} else if (_root.lvl eq 16) {
_root.kills_max = 500;
} else if (_root.lvl eq 17) {
_root.kills_max = 800;
} else if (_root.lvl eq 18) {
_root.kills_max = 800;
} else if (_root.lvl eq 19) {
_root.kills_max = 800;
} else if (_root.lvl eq 20) {
_root.kills_max = 800;
}
} 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 = 30;
} else if (_root.lvl eq 9) {
_root.kills_max = 40;
} else if (_root.lvl eq 10) {
_root.kills_max = 70;
} else if (_root.lvl eq 11) {
_root.kills_max = 85;
} else if (_root.lvl eq 12) {
_root.kills_max = 90;
} else if (_root.lvl eq 13) {
_root.kills_max = 100;
} else if (_root.lvl eq 14) {
_root.kills_max = 150;
} else if (_root.lvl eq 15) {
_root.kills_max = 150;
} else if (_root.lvl eq 16) {
_root.kills_max = 150;
} else if (_root.lvl eq 17) {
_root.kills_max = 150;
} else if (_root.lvl eq 18) {
_root.kills_max = 200;
} else if (_root.lvl eq 19) {
_root.kills_max = 200;
} else if (_root.lvl eq 20) {
_root.kills_max = 200;
}
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) {
_root.base_dead = 1;
}
gotoAndPlay (1);
MammonthTankTrace();
if (_root.wave_timer_rough > _root.wave_length) {
_root.stop_all_respawns = 1;
} else if (_root.game_on_hold != 1) {
if (_root.wave eq 1) {
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 5;
_root.max_enemies = 2;
_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 = 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 = 5;
}
} else if (_root.wave eq 2) {
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 5;
_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) {
if (_root.wave_timer_rough < 1) {
ord_tank_rr = 5;
_root.max_enemies = 5;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 60;
} else if ((_root.wave_timer_rough > 1) and (_root.wave_timer_rough < 3)) {
ord_tank_rr = 5;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 10;
_root.shirina_potoka_mobov = 120;
} else if ((_root.wave_timer_rough > 3) and (_root.wave_timer_rough < 10)) {
_root.stop_all_respawns = 1;
} else if ((_root.wave_timer_rough > 10) and (_root.wave_timer_rough < 20)) {
ord_tank_rr = 5;
_root.max_enemies = 5;
_root.rasstoyanie_mejdu_unitami = 20;
_root.shirina_potoka_mobov = 170;
} else if (_root.wave_timer_rough > 20) {
ord_tank_rr = 5;
_root.max_enemies = 7;
_root.rasstoyanie_mejdu_unitami = 3;
_root.shirina_potoka_mobov = 10;
}
} else if (_root.wave eq 4) {
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) {
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) {
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) {
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) {
if (_root.wave_timer_rough < 5) {
lazer_tank_rr = 0;
black_tank_rr = 5;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 4;
_root.shirina_potoka_mobov = 70;
} else if (_root.wave_timer_rough > 5) {
lazer_tank_rr = 20;
black_tank_rr = 35;
_root.max_enemies = 6;
_root.rasstoyanie_mejdu_unitami = 7;
_root.shirina_potoka_mobov = 170;
}
} else if (_root.wave eq 9) {
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) {
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) {
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) {
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) {
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) {
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 = 10;
_root.max_enemies = 9;
}
} else if (_root.wave eq 15) {
if (_root.wave_timer_rough < 900) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
if (_root.enemies_onthefield eq 0) {
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 < 30) {
mech1_rr = 10;
ord_tank_rr = 10;
kindabike_rr = 10;
kindabike2_rr = 10;
hover_tank_rr = 10;
railgrav_tank_rr = 10;
} else if ((_root.wave_timer_rough > 30) and (_root.wave_timer_rough < 70)) {
mech1_rr = 0;
ord_tank_rr = 0;
kindabike_rr = 0;
kindabike2_rr = 0;
hover_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 0;
black_tank_rr = 10;
mech2_rr = 10;
sciencevessel_rr = 10;
} else if (_root.wave_timer_rough > 70) {
mech1_rr = 0;
ord_tank_rr = 0;
kindabike_rr = 0;
kindabike2_rr = 0;
hover_tank_rr = 0;
railgrav_tank_rr = 0;
nuketruck_rr = 15;
black_tank_rr = 0;
mech2_rr = 0;
sciencevessel_rr = 10;
}
}
if (_root.enemies_onthefield eq _root.max_enemies) {
scenario_trigger_1 = 0;
}
}
} else if (_root.wave eq 16) {
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) {
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)) {
mech1_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;
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) {
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) {
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;
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) {
if (_root.wave_timer_rough < 900) {
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
if (_root.enemies_onthefield < (_root.max_enemies / 2)) {
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)) {
mammoth_tank_rr = 90;
mammoth_tank2_rr = 90;
kindabike_rr = 0;
ord_tank_rr = 0;
lazer_tank_rr = 60;
hover_tank_rr = 0;
heavy_tank_rr = 60;
railgrav_tank_rr = 0;
nuketruck_rr = 80;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 0;
kindabike2_rr = 0;
sciencevessel_rr = 60;
}
if (_root.enemies_onthefield eq _root.max_enemies) {
scenario_trigger_1 = 0;
}
}
} else if (_root.wave eq 21) {
_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;
mammoth_tank_rr = 40;
mammoth_tank2_rr = 40;
kindabike_rr = 50;
ord_tank_rr = 0;
lazer_tank_rr = 90;
hover_tank_rr = 0;
heavy_tank_rr = 30;
railgrav_tank_rr = 0;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 0;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
} else if (_root.wave eq 22) {
_root.powerup_respawn_rate = 10;
if (_root.wave_timer_rough < 900) {
_root.extreme_mode_activated = 1;
_root.metod_sortirovki_unitov = 2;
_root.max_enemies = 10;
_root.rasstoyanie_mejdu_unitami = 8;
_root.shirina_potoka_mobov = 170;
mammoth_tank_rr = 40;
mammoth_tank2_rr = 40;
kindabike_rr = 50;
ord_tank_rr = 50;
lazer_tank_rr = 90;
hover_tank_rr = 0;
heavy_tank_rr = 30;
railgrav_tank_rr = 0;
nuketruck_rr = 60;
black_tank_rr = 60;
mech2_rr = 60;
mech1_rr = 70;
kindabike2_rr = 60;
sciencevessel_rr = 60;
}
}
}
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 = 10;
_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) {
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;
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 = 10;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
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;
} 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_on_hold != 1) {
if (_root.game_modo eq 4) {
_root.dla_skolkih_unitov_funkcii = 15;
_root.max_enemies = 15;
if (_root.wave_timer_rough > 200) {
_root.extreme_mode_activated = 1;
}
if (_root.survival_trigger_1 != 1) {
_root.metod_sortirovki_unitov = 2;
_root.rasstoyanie_mejdu_unitami = 6;
_root.shirina_potoka_mobov = 170;
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;
} 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 + 45;
}
}
}
}
Symbol 960 MovieClip Frame 2
stop();
Symbol 962 MovieClip Frame 2
stop();
Symbol 962 MovieClip Frame 10
gotoAndPlay (3);
Symbol 964 MovieClip Frame 1
count = 0;
Symbol 964 MovieClip Frame 2
if ((_root.shakescreen eq 0) or (_root.block_screen_shake eq 1)) {
gotoAndPlay (1);
}
Symbol 964 MovieClip Frame 3
def_x = _root.game._x;
def_y = _root.game._y;
if (_root.shakescreen != 0) {
magnitude = _root.shakescreen;
}
_root.shakescreen = 0;
Symbol 964 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 964 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 964 MovieClip Frame 6
if (count < 12) {
gotoAndPlay (4);
}
Symbol 975 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 980 MovieClip Frame 1
source_width = poloska.bar._width;
Symbol 980 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 980 MovieClip Frame 3
gotoAndPlay (2);
Symbol 988 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 990 MovieClip Frame 2
aaa = _root.implosion_power + "%";
Symbol 993 MovieClip Frame 2
aaa = _root.shockwave_power + "%";
Symbol 997 MovieClip Frame 2
gotoAndPlay (1);
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 (current_value <= 50) {
GGG = 80 + (155 * (current_value / 50));
RRR = 255 * (current_value / 50);
} else if (current_value > 50) {
RRR = 255;
GGG = 255 - ((300 * (current_value - 50)) / 50);
if (GGG < 0) {
GGG = 0;
}
}
Instance of Symbol 997 MovieClip in Symbol 998 MovieClip Frame 1
onClipEvent (enterFrame) {
current_value = _root.implosion_power;
}
Instance of Symbol 997 MovieClip in Symbol 999 MovieClip Frame 1
onClipEvent (enterFrame) {
current_value = _root.shockwave_power;
}
Symbol 1002 MovieClip Frame 1
source_width = bar._width;
Symbol 1002 MovieClip Frame 2
otnoshenie = _root.kills_exp_count / _root.kills_max;
bar._width = source_width * otnoshenie;
Symbol 1002 MovieClip Frame 3
gotoAndPlay (2);
Instance of Symbol 1007 MovieClip in Symbol 1008 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1009 MovieClip Frame 11
stop();
Symbol 1019 Button
on (release) {
_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 1023 Button
on (release) {
_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 1028 Button
on (release) {
_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 1034 Button
on (release) {
_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 1040 Button
on (release) {
_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 1046 Button
on (release) {
_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 1052 Button
on (release) {
_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 1058 Button
on (release) {
_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;
}
Symbol 1062 Button
on (release) {
_root.limit_unstable_zone = 1;
}
Symbol 1063 Button
on (release) {
_root.limit_unstable_zone = 0;
}
Instance of Symbol 1024 MovieClip in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_2 + 1);
}
}
Instance of Symbol 1029 MovieClip in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_3 + 1);
}
}
Instance of Symbol 1035 MovieClip in Symbol 1065 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 1041 MovieClip in Symbol 1065 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 1047 MovieClip in Symbol 1065 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 1053 MovieClip in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.base_dead eq 1) {
gotoAndStop (1);
} else {
gotoAndStop(_root.ball_type_available_7 + 1);
}
}
Instance of Symbol 1059 MovieClip in Symbol 1065 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);
}
}
Instance of Symbol 1064 MovieClip in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.limit_unstable_zone + 1);
}
Symbol 1071 Button
on (release) {
_root.kursor = 6;
}
Symbol 1077 Button
on (release) {
_root.ball_type = 10;
_root.antimatter_chargin.play();
}
on (rollOver, dragOver) {
_root.current_energy_cost = _root.antimatter_energycost;
}
on (rollOut, dragOut) {
_root.current_energy_cost = 1;
}
Symbol 1085 Button
on (release) {
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 1091 Button
on (release) {
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;
}
Instance of Symbol 1072 MovieClip in Symbol 1093 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 1078 MovieClip in Symbol 1093 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.antimatter_available eq 1) {
if ((_root.antimatter_timeout != 0) or (_root.base_dead eq 1)) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 1086 MovieClip in Symbol 1093 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 1092 MovieClip in Symbol 1093 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 1098 MovieClip in Symbol 1100 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1101 MovieClip Frame 4
procentzagruzki = Math.floor((100 * (maximum_value - current_value)) / maximum_value);
diagrama.gotoAndStop(procentzagruzki);
Symbol 1102 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;
antimatter_loader.maximum_value = _root.antimatter_loading_time;
Symbol 1102 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.antimatter_timeout != 0) {
antimatter_loader._visible = true;
if (_root.antimatter_timeout > 0) {
_root.antimatter_timeout = _root.antimatter_timeout - 0.032258064516129;
} else {
_root.antimatter_timeout = 0;
}
antimatter_loader.current_value = _root.antimatter_timeout;
} else {
antimatter_loader.diagrama.gotoAndStop(1);
antimatter_loader._visible = false;
}
Symbol 1105 MovieClip Frame 4
procentzagruzki = Math.floor((100 * (maximum_value - current_value)) / maximum_value);
diagrama.gotoAndStop(procentzagruzki);
Symbol 1106 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 1106 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;
}
Instance of Symbol 1111 MovieClip in Symbol 1112 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1117 Button
on (press) {
_parent.dx = _xmouse;
_parent.onMouseMove = function () {
tmp_x = this._xmouse - this.dx;
tmp_x = ((tmp_x >= 0) ? (((tmp_x <= this.x_lim) ? (tmp_x) : (this.x_lim))) : 0);
this.polsun._x = tmp_x;
volumeset = Math.round((tmp_x / this.x_lim) * 100);
updateAfterEvent();
};
}
on (release, releaseOutside) {
delete _parent.onMouseMove;
}
Symbol 1118 MovieClip Frame 1
onEnterFrame = function () {
if (vkl eq 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 1118 MovieClip Frame 2
onEnterFrame = function () {
if (vkl eq 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 1119 MovieClip Frame 1
x_lim = polosa._width - polsun._width;
Instance of Symbol 1126 MovieClip in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1132 MovieClip Frame 2
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Instance of Symbol 1131 MovieClip in Symbol 1132 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 1132 MovieClip Frame 4
if (play_ eq 1) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 1134 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 1136 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 1137 MovieClip Frame 1
stop();
Symbol 1137 MovieClip Frame 2
_root.show_quality.play_ = 1;
Symbol 1137 MovieClip Frame 35
_root.show_quality.play_ = 0;
Symbol 1148 MovieClip Frame 9
stop();
Instance of Symbol 1155 MovieClip in Symbol 1156 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 1163 MovieClip Frame 1
if (yiff != 1) {
var score = 0;
var yiff = 1;
var aaa = 0;
}
Symbol 1163 MovieClip Frame 3
dif = _root.score - score;
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;
}
if (score < _root.score) {
score = score + aaa;
}
Symbol 1165 MovieClip Frame 5
lvl_show = _root.lvl_show;
kills_show = _root.kills_show;
lives_show = _root.lives_show;
time_show = _root.time_show;
wave_show = "Wave: " + _root.wave;
Symbol 1174 MovieClip Frame 1
stop();
Symbol 1184 Button
on (release) {
play();
_root.gotomenu = 1;
}
Symbol 1190 Button
on (release) {
play();
}
Symbol 1200 MovieClip Frame 20
stop();
removeMovieClip(this);
Symbol 1236 Button
on (release) {
if (_root.skill_points > 0) {
_root.skill_points--;
_root.energy_points++;
}
}
Symbol 1239 Button
on (release) {
if (_root.skill_points > 0) {
_root.skill_points--;
_root.stability_points++;
}
}
Symbol 1246 Button
on (release) {
if ((_root.skill_points > 0) and (_root.projectile_points < 7)) {
_root.skill_points--;
_root.projectile_points++;
}
}
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 2
stop();
Symbol 1252 Button
on (release) {
if ((_root.skill_points > 0) and (_root.antimatter_points < _root.antimatter_points_max)) {
_root.skill_points--;
_root.antimatter_points++;
}
}
Symbol 1257 Button
on (release) {
if ((_root.skill_points > 0) and (_root.implosion_points < _root.implosion_points_max)) {
_root.skill_points--;
_root.implosion_points++;
}
}
Symbol 1261 Button
on (release) {
if ((_root.skill_points > 0) and (_root.shockwave_points < _root.shockwave_points_max)) {
_root.skill_points--;
_root.shockwave_points++;
}
}
Symbol 1266 Button
on (release) {
if ((_root.skill_points > 0) and (_root.manipulator_points < _root.manipulator_points_max)) {
_root.skill_points--;
_root.manipulator_points++;
}
}
Symbol 1289 Button
on (release) {
gotoAndStop (3);
}
Symbol 1290 Button
on (release) {
gotoAndStop (4);
}
Symbol 1291 Button
on (release) {
gotoAndStop (5);
}
Symbol 1292 Button
on (release) {
gotoAndStop (6);
}
Symbol 1299 Button
on (release) {
nextFrame();
}
Symbol 1313 Button
on (release) {
prevFrame();
}
Symbol 1333 MovieClip Frame 2
stop();
Symbol 1337 Button
on (release) {
gotoAndStop (1);
}
Symbol 1343 Button
on (release) {
gotoAndStop (1);
}
Symbol 1344 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 1344 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 1344 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 = "Maximum Level Reached";
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.implosion_points >= _root.implosion_points_max) {
implosion_button_module.gotoAndStop(2);
implosion_show = "(Already Obtained)";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
implosion_tf.setTextFormat(_local2);
} else {
implosion_button_module.gotoAndStop(1);
implosion_show = (("Skillpoints: " + _root.implosion_points) + "/") + _root.implosion_points_max;
}
if (_root.antimatter_points >= _root.antimatter_points_max) {
antimatter_button_module.gotoAndStop(2);
antimatter_show = "(Already Obtained)";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
antimatter_tf.setTextFormat(_local2);
} else {
antimatter_button_module.gotoAndStop(1);
antimatter_show = (("Skillpoints: " + _root.antimatter_points) + "/") + _root.antimatter_points_max;
}
if (_root.shockwave_points >= _root.shockwave_points_max) {
shockwave_button_module.gotoAndStop(2);
shockwave_show = "(Already Obtained)";
var _local2 = new TextFormat();
_local2.color = 65280;
_local2.size = 10;
shockwave_tf.setTextFormat(_local2);
} else {
shockwave_button_module.gotoAndStop(1);
shockwave_show = (("Skillpoints: " + _root.shockwave_points) + "/") + _root.shockwave_points_max;
}
if (_root.manipulator_points >= _root.manipulator_points_max) {
manipulator_button_module.gotoAndStop(2);
manipulator_show = "";
manipulator_lvl_show = "(Already Obtained / Maximum Lvl)";
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 = (("Skillpoints: " + _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 = (("Skillpoints: " + _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 = (("Skillpoints: " + _root.manipulator_points) + "/") + _root.manipulator_points_max;
manipulator_lvl_show = "Level: 2/3";
}
};
Instance of Symbol 1333 MovieClip in Symbol 1344 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.game_on_hold eq 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 1365 Button
on (release) {
menushka.gotoAndStop(18);
}
Symbol 1367 Button
on (release) {
play();
kuda = "main menu";
}
Symbol 1369 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;
}
}
Symbol 1371 Button
on (release) {
play();
kuda = 2;
}
Symbol 1373 Button
on (release) {
menushka.gotoAndStop(17);
}
Symbol 1375 Button
on (release) {
_root.ingame_menu.menushka.gotoAndStop(16);
}
Symbol 1392 MovieClip Frame 2
varrrr = _root.misses;
Symbol 1394 MovieClip Frame 2
varrrr = _root.initial_lives - _root.misses;
Symbol 1405 MovieClip Frame 11
stop();
Symbol 1407 Button
on (release) {
play();
}
Symbol 1415 MovieClip Frame 1
stop();
Symbol 1415 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;
Symbol 1415 MovieClip Frame 18
stop();
Symbol 1418 Button
on (release) {
play();
}
Symbol 1419 MovieClip Frame 1
stop();
Symbol 1419 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;
Symbol 1419 MovieClip Frame 18
stop();
Symbol 1425 Button
on (release) {
gotoAndStop (15);
}
Symbol 1458 MovieClip Frame 1
stop();
Symbol 1467 Button
on (release) {
play();
}
Symbol 1474 MovieClip Frame 1
stop();
a = 0;
Symbol 1474 MovieClip Frame 2
stop();
a = 1;
Symbol 1481 MovieClip Frame 15
stop();
initial_lives = _root.initial_lives;
Instance of Symbol 1474 MovieClip in Symbol 1481 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 1474 MovieClip in Symbol 1481 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 1474 MovieClip in Symbol 1481 MovieClip Frame 18
onClipEvent (enterFrame) {
if ((_root.music_off != 1) and (_root.music_off != 0)) {
_root.music_off = 0;
}
if (yiffffffff != "fhtagn") {
yiffffffff = "fhtagn";
gotoAndStop(_root.music_off + 1);
} else {
_root.music_off = a;
}
}
Instance of Symbol 1474 MovieClip in Symbol 1481 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 1482 MovieClip Frame 2
if ((_root.game_on_hold eq 1) and (_root.levelupmenu_opened != 1)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 1482 MovieClip Frame 3
kuda = 0;
Symbol 1482 MovieClip Frame 28
stop();
Instance of Symbol 1376 MovieClip in Symbol 1482 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.game_modo eq 1) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 1482 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 1494 Button
on (release) {
_root.play();
_root.gotomenu = 1;
}
Symbol 1498 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 1501 Button
on (release) {
gotowhere = _root.game_modo;
}
Symbol 1502 MovieClip Frame 1
gotowhere = 1;
Symbol 1512 MovieClip Frame 24
stop();
Symbol 1520 MovieClip Frame 2
score = _root.score;
Symbol 1525 MovieClip Frame 1
nametext.text = "Player " + random(99999);
_root.teh_name = nametext.text;
Symbol 1525 MovieClip Frame 4
_root.teh_name = nametext.text;
gotoAndPlay (2);
Symbol 1528 MovieClip Frame 1
teh_name = _root.teh_name;
Symbol 1529 MovieClip Frame 1
stop();
Symbol 1533 Button
on (release) {
play();
}
Symbol 1538 MovieClip Frame 1
_root.done_submitting = 0;
stop();
Symbol 1538 MovieClip Frame 2
_root.done_submitting = 1;
if (_root.game_modo eq 2) {
ab20_09 = new LoadVars();
ab20_09.z = _root.teh_name;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 1180;
ab20_09.v = "OZMCIT";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
} else if (_root.game_modo eq 3) {
ab20_09 = new LoadVars();
ab20_09.z = _root.teh_name;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 1181;
ab20_09.v = "BORMHY";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
} else if (_root.game_modo eq 4) {
ab20_09 = new LoadVars();
ab20_09.z = _root.teh_name;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 1182;
ab20_09.v = "SRAIGX";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
}
Symbol 1538 MovieClip Frame 19
stop();
Symbol 1542 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(submitbutton.gotowhere);
};
Instance of Symbol 1502 MovieClip "submitbutton" in Symbol 1542 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.game_modo eq 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1529 MovieClip in Symbol 1542 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.done_submitting eq 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 1543 MovieClip Frame 1
stop();
Instance of Symbol 1562 MovieClip in Symbol 1563 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.showwhichballinfo + 1);
}
Symbol 1567 MovieClip Frame 7
qb_stat = SharedObject.getLocal("qb_stat");
qb_stat.data.victory = 1;
Symbol 1567 MovieClip Frame 20
stop();
Symbol 1572 MovieClip Frame 4
stop();
Symbol 1575 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 1576 MovieClip Frame 1
stop();
Symbol 1578 Button
on (release) {
_root.kursor = 1;
}
Symbol 1611 MovieClip Frame 2
if (random(10) eq 3) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 1614 Button
on (release) {
if (_root._ymouse < 420) {
_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 1626 Button
on (release) {
if (_root._ymouse < 420) {
_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 1640 MovieClip Frame 1
Mouse.hide();
startDrag (this, true);
Instance of Symbol 1639 MovieClip in Symbol 1640 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);
}
}
Symbol 1645 MovieClip Frame 3
if ((_root.game_on_hold eq 1) or (_root.music_off eq 1)) {
gotoAndPlay (2);
}
Symbol 1645 MovieClip Frame 12
if ((_root.game_on_hold != 1) and (music_off != 1)) {
gotoAndPlay (11);
}
Symbol 1651 Button
on (release) {
gotoAndStop (3);
}
Symbol 1655 Button
on (release) {
gotoAndStop (2);
}
Symbol 1659 Button
on (release) {
getURL ("http://dimonzerg.narod.ru/", "_blank");
}
Symbol 1663 Button
on (release) {
getURL ("http://www.armorgames.com/download/mmm.zip", "_blank");
}
Symbol 1667 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 1671 Button
on (release) {
_root.play();
_root.viewhighscores = 1;
}
Symbol 1682 Button
on (release) {
_root.play();
_root.load_slot = "slot1";
_root.game_modo = 1;
}
Symbol 1686 Button
on (release) {
_root.play();
_root.load_slot = "slot2";
_root.game_modo = 1;
}
Symbol 1690 Button
on (release) {
_root.play();
_root.load_slot = "slot3";
_root.game_modo = 1;
}
Symbol 1694 Button
on (release) {
gotoAndStop (1);
}
Symbol 1701 Button
on (release) {
nextFrame();
}
Symbol 1705 Button
on (release) {
gotoAndStop (5);
}
Symbol 1709 Button
on (release) {
gotoAndStop (6);
}
Symbol 1713 Button
on (release) {
gotoAndStop (7);
}
Symbol 1719 Button
on (release) {
gotoAndStop (3);
}
Symbol 1723 Button
on (release) {
_root.play();
_root.game_modo = 1;
}
Symbol 1728 Button
on (release) {
_root.play();
_root.game_modo = 2;
}
Symbol 1732 Button
on (release) {
_root.play();
_root.game_modo = 3;
}
Symbol 1736 Button
on (release) {
_root.play();
_root.game_modo = 4;
}
Symbol 1741 Button
on (release) {
SDGSDDF = 1;
}
Symbol 1744 Button
on (release) {
SDGSDDDF = 1;
}
Symbol 1747 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1750 Button
on (release) {
SDGSDDF = 1567;
}
Symbol 1753 Button
on (release) {
SDGSDDF = 234231 /* 0x0392F7 */;
}
Symbol 1756 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1759 Button
on (release) {
SDGSDDF = 1345345 /* 0x148741 */;
}
Symbol 1762 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1765 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1766 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1769 Button
on (release) {
SDG353425SDDF = 1;
}
Symbol 1770 Button
on (release) {
SDG353425SDDF = 1;
}
Symbol 1771 Button
on (release) {
SDGSDDF = 1567;
}
Symbol 1772 Button
on (release) {
nextFrame();
}
Symbol 1773 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1774 Button
on (release) {
SDGSDDF = 234231 /* 0x0392F7 */;
}
Symbol 1775 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1776 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1777 Button
on (release) {
SDGSDDF = 1345345 /* 0x148741 */;
}
Symbol 1778 Button
on (release) {
SDGSDDF = 234231 /* 0x0392F7 */;
}
Symbol 1779 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1780 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1781 Button
on (release) {
nextFrame();
}
Symbol 1782 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1783 Button
on (release) {
nextFrame();
}
Symbol 1784 Button
on (release) {
SDG353425SDDF = 1;
}
Symbol 1785 Button
on (release) {
SDGSDDF = 234231 /* 0x0392F7 */;
}
Symbol 1786 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1787 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1788 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1789 Button
on (release) {
SDGSDDF = 3453451 /* 0x34B20B */;
}
Symbol 1790 Button
on (release) {
nextFrame();
}
Symbol 1791 Button
on (release) {
SDGSDDF = 1567;
}
Symbol 1792 Button
on (release) {
SDGSDDF = 1567;
}
Symbol 1793 Button
on (release) {
nextFrame();
}
Symbol 1794 Button
on (release) {
SDGSDDF = 1;
}
Symbol 1795 Button
on (release) {
SDGSDDF = 14;
}
Symbol 1796 Button
on (release) {
SDGSDDDF = 1;
}
Symbol 1797 Button
on (release) {
nextFrame();
}
Symbol 1798 Button
on (release) {
SDGSDDF = 234231 /* 0x0392F7 */;
}
Symbol 1799 Button
on (release) {
SDGSDDDF = 1;
}
Symbol 1800 Button
on (release) {
SDGSDDDF = 1;
}
Symbol 1805 Button
on (release) {
_root.mainmenushka.gotoAndStop(11);
}
Symbol 1806 MovieClip Frame 7
stop();
Symbol 1820 Button
on (release) {
nextFrame();
}
Symbol 1821 Button
on (release) {
prevFrame();
}
Symbol 1825 Button
on (release) {
_root.mainmenushka.gotoAndStop(1);
}
Symbol 1838 MovieClip Frame 1
stop();
Symbol 1839 MovieClip Frame 1
stop();
Instance of Symbol 1806 MovieClip in Symbol 1839 MovieClip Frame 10
onClipEvent (enterFrame) {
if (((SDGSDDF != 0) or (SDG353425SDDF != 0)) or (SDGSDDDF != 0)) {
SDGSDDF = 0;
SDG353425SDDF = 0;
SDGSDDDF = 0;
gotoAndStop (1);
}
}
Symbol 1882 MovieClip Frame 34
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 69
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 104
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 140
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 174
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 209
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 239
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 274
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 309
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 344
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 379
gotoAndPlay(["pic" + (random(12) + 1)]);
Symbol 1882 MovieClip Frame 414
gotoAndPlay(["pic" + (random(12) + 1)]);
Instance of Symbol 112 MovieClip in Symbol 1888 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(random(11) + 1);
}
Symbol 1890 MovieClip Frame 8
stop();
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 1
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 2
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 3
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 4
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 5
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 6
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Symbol 1899 MovieClip Frame 7
stop();
Instance of Symbol 112 MovieClip in Symbol 1899 MovieClip Frame 7
onClipEvent (enterFrame) {
if (a != 1) {
gotoAndStop(random(11) + 1);
}
if (random(20) eq 1) {
a = 1;
}
}
Instance of Symbol 1893 MovieClip in Symbol 1909 MovieClip Frame 1
onClipEvent (enterFrame) {
test = testzone.hitTest(_root._xmouse, _root._ymouse, true);
onMouseDown = function () {
if (test eq "true") {
_root.secretocountero++;
}
};
if (_root.secretocountero eq 15) {
_root.secretocountero = 0;
_root.mainmenushka.gotoAndStop(10);
}
}
Symbol 1909 MovieClip Frame 65
_root.secretocountero = 0;
gotoAndPlay(["video" + (random(13) + 1)]);
Symbol 1909 MovieClip Frame 117
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 355
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 410
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 514
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 603
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 735
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 827
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 927
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 1066
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 1253
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 1379
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 1619
gotoAndPlay (1);
Symbol 1909 MovieClip Frame 1834
gotoAndPlay (1);
Symbol 1932 Button
on (release) {
stopAllSounds();
}
Symbol 1935 MovieClip Frame 10
stop();
Symbol 1972 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1180", "_blank");
}
Symbol 1976 Button
on (release) {
gotoAndStop (2);
}
Symbol 1980 Button
on (release) {
gotoAndStop (3);
}
Symbol 1992 MovieClip Frame 1
stop();
Symbol 1992 MovieClip Frame 2
stop();
Symbol 2013 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1181", "_blank");
}
Symbol 2016 Button
on (release) {
gotoAndStop (1);
}
Symbol 2037 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=1182", "_blank");
}
Symbol 2038 MovieClip Frame 1
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1180;
__top10_send__.kid = "OZMCIT";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.highscores[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root.highscores[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.highscores.__err__.gotoAndStop(2);
}
};
Symbol 2038 MovieClip Frame 2
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1181;
__top10_send__.kid = "BORMHY";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.highscores[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root.highscores[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.highscores.__err__.gotoAndStop(2);
}
};
Symbol 2038 MovieClip Frame 3
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1182;
__top10_send__.kid = "SRAIGX";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.highscores[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root.highscores[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.highscores.__err__.gotoAndStop(2);
}
};
Symbol 2042 Button
on (release) {
gotoAndStop ("1");
}
Symbol 2112 MovieClip Frame 1
setProperty("shesterenka", _rotation , shesterenka._rotation - 1);
Symbol 2112 MovieClip Frame 2
gotoAndPlay (1);
Symbol 2120 MovieClip Frame 134
tellTarget ("_root") {
play();
};
stop();
Symbol 2124 Button
on (release) {
play();
stopAllSounds();
}
Symbol 2150 MovieClip Frame 105
stop();
_root.play();
Symbol 2157 MovieClip Frame 105
stop();
_root.play();