Frame 1
stop();
Instance of Symbol 132 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
proc = Math.ceil((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
lb._xscale = proc;
bt = (String(_root.getBytesLoaded()) + " \u0438\u0437 ") + String(_root.getBytesTotal());
if (lb._xscale >= 99) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (load) {
lb._xscale = 0;
}
Frame 2
function restart_bit() {
ocurr = 0;
ob = 0;
os = 0;
timer = 0;
}
function restart() {
omin = 1;
omax = 4;
ocurr = omin;
oalive = 0;
ob = 0;
os = 0;
timer = 0;
killed = 0;
playa.health = 100;
my_sound.setVolume(100);
gameSit = "notboss";
removeMovieClip(_root.boss);
z = 0;
while (z < 31) {
removeMovieClip(_root["opp" + z]);
z++;
}
}
function genshit(obj, mod) {
_root.createEmptyMovieClip("sh" + os, _root.getNextHighestDepth());
_root["sh" + os]._x = _root[obj]._x;
_root["sh" + os]._y = _root[obj]._y - _root[obj].model.changey;
_root["sh" + os]._yscale = 30;
_root["sh" + os]._xscale = _root["sh" + os]._yscale;
var _local5 = playa._x - _root[obj]._x;
var _local4 = playa._y - (_root[obj]._y - _root[obj].model.changey);
var _local6 = Math.atan2(_local4, _local5);
_root["sh" + os]._rotation = (_local6 * 180) / Math.PI;
_root["sh" + os].attachMovie(mod, "live", this.getNextHighestDepth());
os = os + 1;
if (os > 30) {
os = 0;
}
}
omin = 2;
omax = 3;
ocurr = omin;
oalive = 0;
ob = 0;
os = 0;
slomo = 1;
timer = 0;
maxtimer = 800;
gamelevel = 0;
gameSit = "notboss";
opp_arr_0 = new Array("emo1", "ermak");
boss_arr = new Array("fomin");
bonus_arr = new Array("bonus_shotgun", "bonus_killemall", "bonus_slomo", "bonus_powerup", "bonus_heal");
var my_sound = new Sound(mus);
my_sound.attachSound("mus1");
my_sound.start();
my_sound.setVolume(0);
my_sound.onSoundComplete = function () {
my_sound.attachSound("mus1");
my_sound.start();
};
this.onEnterFrame = function () {
if (timer == Math.abs(maxtimer * 0.6)) {
removeMovieClip(_root.bonus);
_root.attachMovie(bonus_arr[random(bonus_arr.length)], "bonus", this.getNextHighestDepth());
bonus._x = Math.floor(Math.random() * 501) + 100;
bonus._y = Math.floor(Math.random() * 281) + 100;
}
if (paused == "1") {
my_sound.setVolume(0);
}
if (soundoff == "1") {
my_sound.setVolume(0);
}
if ((timer > maxtimer) && (ocurr < omax)) {
ocurr = ocurr + 1;
timer = 0;
} else if (_root.pause != "1") {
timer = timer + 1;
}
if (ocurr >= omax) {
gameSit = "boss";
}
if (gameSit == "boss") {
timer = 0;
ocurr = 0;
if (setBoss != 1) {
my_sound.stop();
my_sound.attachSound("mus2");
my_sound.start();
_root.createEmptyMovieClip("boss", _root.getNextHighestDepth());
boss.attachMovie(boss_arr[gamelevel], "model", this.getNextHighestDepth());
ob = ob + 1;
oalive = 0;
if (ob > 30) {
ob = 0;
}
setBoss = 1;
}
if ((boss.model.health <= 0) && (boss.model.health != undefined)) {
ocurr = omin;
oalive = 0;
gameSit = "notboss";
}
setAll = 0;
}
if (gameSit == "notboss") {
if (setAll != 1) {
my_sound.stop();
my_sound.attachSound("mus1");
my_sound.start();
setAll = 1;
}
setBoss = 0;
if ((oalive < ocurr) && (ocurr <= omax)) {
_root.createEmptyMovieClip("opp" + ob, _root.getNextHighestDepth());
_root["opp" + ob].attachMovie(this["opp_arr_" + gamelevel][random(this["opp_arr_" + String(gamelevel)].length)], "model", this.getNextHighestDepth());
ob = ob + 1;
oalive = oalive + 1;
if (ob > 30) {
ob = 0;
}
}
}
};
stop();
Instance of Symbol 146 MovieClip "shadow" in Frame 2
onClipEvent (enterFrame) {
this._x = _root.playa._x;
this._xscale = (_root.playa._y * 100) / 450;
this._yscale = this._xscale;
this._alpha = this._xscale;
}
Instance of Symbol 157 MovieClip "playa" in Frame 2
onClipEvent (enterFrame) {
_root.hea = health;
if (_root.pause != "1") {
if ((bonustime > 0) && (health > 0)) {
bonustime = bonustime - 1;
} else {
bonustype = "none";
}
}
if (bonustype == "slomo") {
_root.slomo = 10;
} else {
_root.slomo = 1;
}
if ((health > 0) && (_root.pause != "1")) {
var dx = (_root._xmouse - this._x);
var dy = (_root._ymouse - this._y);
var angle = Math.atan2(dy, dx);
this._rotation = (angle * 180) / Math.PI;
}
if (health > 0) {
if (_root._xmouse > this._x) {
this._yscale = 100;
} else {
this._yscale = -100;
}
}
if ((_root.pause != "1") && (health > 0)) {
this._x = this._x + ax;
this._y = this._y - ay;
if ((!Key.isDown(87)) && (!Key.isDown(83))) {
if (ay < 0) {
ay = ay + a;
}
if (ay > 0) {
ay = ay - a;
}
}
if (Key.isDown(87) && (ay < aymax)) {
ay = ay + a;
}
if (Key.isDown(83) && (ay > (-aymax))) {
ay = ay - a;
}
if ((!Key.isDown(68)) && (!Key.isDown(65))) {
if (ax < 0) {
ax = ax + a;
}
if (ax > 0) {
ax = ax - a;
}
}
if (Key.isDown(68) && (ax < axmax)) {
ax = ax + a;
}
if (Key.isDown(65) && (ax > (-axmax))) {
ax = ax - a;
}
if (this._x < 15) {
ax = 0;
this._x = 15;
}
if (this._x > 635) {
ax = 0;
this._x = 635;
}
if (this._y > 430) {
ay = 0;
this._y = 430;
}
if (this._y < 15) {
ay = 0;
this._y = 15;
}
}
}
onClipEvent (load) {
axmax = 8;
bonustype = "none";
maxbonustime = 1;
bonustime = 0;
health = 100;
aymax = 8;
ax = 0;
ay = 0;
a = 1;
b = 1;
}
onClipEvent (mouseDown) {
if (((health > 0) && (allowShoot != 0)) && (_root.pause != "1")) {
if (bonustype == "shotgun") {
z = -20;
while (z <= 20) {
_root.createEmptyMovieClip("luch" + b, _root.getNextHighestDepth());
_root["luch" + b]._x = this._x;
_root["luch" + b]._y = this._y;
_root["luch" + b]._rotation = this._rotation + z;
_root["luch" + b]._yscale = 40;
_root["luch" + b]._xscale = _root["luch" + b]._yscale;
_root["luch" + b].attachMovie("luch1", "luch_live", this.getNextHighestDepth());
b = b + 1;
if (b > 20) {
b = 1;
}
z = z + 20;
}
} else if (bonustype == "pu") {
_root.createEmptyMovieClip("luch" + b, _root.getNextHighestDepth());
_root["luch" + b]._x = this._x;
_root["luch" + b]._y = this._y;
_root["luch" + b]._rotation = this._rotation;
_root["luch" + b]._yscale = 40;
_root["luch" + b]._xscale = _root["luch" + b]._yscale;
_root["luch" + b].attachMovie("luch2", "luch_live", this.getNextHighestDepth());
b = b + 1;
if (b > 20) {
b = 1;
}
} else {
_root.createEmptyMovieClip("luch" + b, _root.getNextHighestDepth());
_root["luch" + b]._x = this._x;
_root["luch" + b]._y = this._y;
_root["luch" + b]._rotation = this._rotation;
_root["luch" + b]._yscale = 40;
_root["luch" + b]._xscale = _root["luch" + b]._yscale;
_root["luch" + b].attachMovie("luch1", "luch_live", this.getNextHighestDepth());
b = b + 1;
if (b > 20) {
b = 1;
}
}
}
}
Instance of Symbol 179 MovieClip in Frame 2
onClipEvent (load) {
this.swapDepths(_root.getNextHighestDepth);
stop();
}
onClipEvent (enterFrame) {
if (_currentframe != 4) {
_root.pause = 1;
}
if (_currentframe == 1) {
loader = Math.ceil((_root.getBytesLoaded * 100) / _root.getBytesTotal);
if (loader >= 99) {
gotoAndStop (2);
}
}
if (_root.playa.health <= 0) {
gotoAndStop (3);
}
}
onClipEvent (mouseDown) {
this.swapDepths(_root.getNextHighestDepth);
}
Symbol 11 MovieClip Frame 11
removeMovieClip(_parent);
Symbol 12 MovieClip [luch2] Frame 1
function kill() {
gotoAndStop (2);
speed = 0;
_name = "luch_dead";
}
speed = 40;
damage = 5;
this.onEnterFrame = function () {
if ((((_parent._x > 635) or (_parent._x < 15)) or (_parent._y > 440)) or (_parent._y < 15)) {
kill();
}
if (_root.pause != "1") {
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(_parent._rotation) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(_parent._rotation) * Number(3.14)) / Number(180))));
}
};
stop();
Symbol 14 MovieClip [luch1] Frame 1
function kill() {
gotoAndStop (2);
speed = 0;
_name = "luch_dead";
}
speed = 40;
damage = 1;
this.onEnterFrame = function () {
if ((((_parent._x > 635) or (_parent._x < 15)) or (_parent._y > 440)) or (_parent._y < 15)) {
kill();
}
if (_root.pause != "1") {
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(_parent._rotation) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(_parent._rotation) * Number(3.14)) / Number(180))));
}
};
stop();
Symbol 28 MovieClip Frame 11
_root.genshit(_parent.namer, "shit1");
Symbol 28 MovieClip Frame 20
_parent.attack = 0;
Symbol 47 MovieClip Frame 23
removeMovieClip(_root[_parent.namer]);
Symbol 48 MovieClip [emo1] Frame 1
if (setted != "1") {
health = 2;
namer = _parent._name;
speed = 4;
attackspeed = 20;
attack = 0;
changey = _parent._height;
_parent._alpha = 200;
posx = Math.floor(Math.random() * 581) + 40;
setted = "1";
xs = new Array(-20, 660);
_parent._x = xs[random(xs.length)];
_parent._y = 450;
}
this.onEnterFrame = function () {
rasst = Math.abs(_parent._x - posx);
if (health <= 0) {
gotoAndStop (4);
if (dead != 1) {
_root.killed = Number(_root.killed) + 1;
_root.oalive = _root.oalive - 1;
dead = 1;
}
}
if (_root.pause == 1) {
model.stop();
paused = 1;
} else if (paused == 1) {
model.play();
paused = 0;
}
if ((health > 0) && (_root.pause != 1)) {
if (this.hitTest(_root.playa)) {
if (hitted != 1) {
_root.playa.health = _root.playa.health - 1;
_root.back.play();
_root.playa.ay = 15;
hitted = 1;
}
} else {
hitted = 0;
}
i = 0;
while (i <= 20) {
if (_parent.hitTest(_root["luch" + i].luch_live)) {
health = health - _root["luch" + i].luch_live.damage;
_root["luch" + i].luch_live.kill();
}
i++;
}
if (attack == 0) {
posx = Math.floor(Math.random() * 581) + 40;
}
if (rasst < 15.2) {
if ((attack < attackspeed) or (_root.playa.health <= 0)) {
attack = attack + 1;
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
if (rasst > 15.2) {
gotoAndStop (2);
if (posx > _parent._x) {
_parent._x = _parent._x + speed;
}
if (posx < _parent._x) {
_parent._x = _parent._x - speed;
}
}
}
};
Symbol 51 MovieClip [luch_dead] Frame 11
removeMovieClip(_parent);
Symbol 63 MovieClip [kall_dead] Frame 11
removeMovieClip(_root[_parent.namer]);
Symbol 64 MovieClip [shit1] Frame 1
function kill() {
gotoAndPlay (11);
speed = 0;
_parent._rotation = 0;
_name = "kall_dead";
}
maxspeed = 40;
namer = _parent._name;
this.onEnterFrame = function () {
speed = maxspeed / _root.slomo;
if (_root.playa.hitTest(_parent._x, _parent._y, true) && (_currentframe == 1)) {
_root.playa.health = _root.playa.health - 1;
_root.back.play();
kill();
}
if ((((_parent._x > 635) or (_parent._x < 15)) or (_parent._y > 440)) or (_parent._y < 15)) {
kill();
}
if (_root.pause != "1") {
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(_parent._rotation) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(_parent._rotation) * Number(3.14)) / Number(180))));
}
};
stop();
Symbol 64 MovieClip [shit1] Frame 10
gotoAndStop (1);
Symbol 76 MovieClip Frame 5
_root.genshit(_parent.namer, "erluch");
Symbol 76 MovieClip Frame 10
_parent.attack = 0;
Symbol 80 MovieClip Frame 9
stop();
Symbol 82 MovieClip Frame 10
removeMovieClip(_root[_parent.namer]);
Symbol 83 MovieClip [ermak] Frame 1
if (setted != "1") {
health = 4;
namer = _parent._name;
speed = 5;
attackspeed = 30;
attack = 0;
changey = 0;
_parent._alpha = 200;
posx = Math.floor(Math.random() * 521) + 80;
posy = Math.floor(Math.random() * 271) + 80;
xs = new Array(-40, 680);
_parent._x = xs[random(xs.length)];
_parent._y = random(200);
setted = "1";
}
this.onEnterFrame = function () {
if (health <= 0) {
gotoAndStop (3);
if (dead != 1) {
_root.killed = Number(_root.killed) + 1;
_root.oalive = _root.oalive - 1;
dead = 1;
}
}
if (health > 0) {
i = 0;
while (i <= 20) {
if (_parent.hitTest(_root["luch" + i].luch_live)) {
health = health - _root["luch" + i].luch_live.damage;
_root["luch" + i].luch_live.kill();
}
i++;
}
var _local4 = posx - _parent._x;
var _local3 = posy - _parent._y;
var _local5 = Math.atan2(_local3, _local4);
r = (_local5 * 180) / Math.PI;
rasst = Math.sqrt(Math.pow(_parent._x - posx, 2) + Math.pow(_parent._y - posy, 2));
if (attack == 0) {
posx = Math.floor(Math.random() * 581) + 40;
posy = Math.floor(Math.random() * 311) + 40;
}
if (_root.pause == 1) {
model.stop();
paused = 1;
} else if (paused == 1) {
model.play();
paused = 0;
}
if ((_root.playa.health > 0) && (_root.pause != 1)) {
if (rasst >= 100) {
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(r) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(r) * Number(3.14)) / Number(180))));
gotoAndStop (1);
} else if (attack < attackspeed) {
attack = attack + 1;
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (1);
}
}
};
Symbol 87 MovieClip [erluch] Frame 1
function kill() {
play();
speed = 0;
_parent._rotation = 0;
_name = "erluchl_dead";
}
maxspeed = 25;
namer = _parent._name;
this.onEnterFrame = function () {
speed = maxspeed / _root.slomo;
if (_root.playa.hitTest(_parent._x, _parent._y, true) && (_currentframe == 1)) {
_root.playa.health = _root.playa.health - 3;
_root.back.play();
kill();
}
if ((((_parent._x > 635) or (_parent._x < 15)) or (_parent._y > 440)) or (_parent._y < 15)) {
kill();
}
if (_root.pause != "1") {
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(_parent._rotation) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(_parent._rotation) * Number(3.14)) / Number(180))));
}
};
stop();
Symbol 87 MovieClip [erluch] Frame 9
removeMovieClip(_parent);
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip [fomin] Frame 1
_parent._x = xs[random(xs.length)];
_parent._y = random(200);
posx = Math.floor(Math.random() * 521) + 80;
posy = Math.floor(Math.random() * 271) + 80;
situation = "appear";
speed = 30;
rspeed = 5;
_parent._yscale = 100;
_parent._xscale = _parent._yscale;
health = 150;
dam = 5;
timer = 0;
maxtimer = Math.floor(Math.random() * 51) + 50;
var dx = (posx - _parent._x);
var dy = (posy - _parent._y);
var angle = Math.atan2(dy, dx);
tr = (angle * 180) / Math.PI;
eng._rotation = eng._rotation + ((tr - eng._rotation) / rspeed);
this.onEnterFrame = function () {
if ((health <= 0) && (_root.pause != 1)) {
tr = 90;
exp.play();
eng._rotation = eng._rotation + ((tr - eng._rotation) / rspeed);
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(tr) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(tr) * Number(3.14)) / Number(180))));
if (speed < 40) {
speed = speed + 1;
}
if (_parent._y > 550) {
removeMovieClip(_root[_parent._name]);
}
if (dead != 1) {
_root.killed = Number(_root.killed) + 100;
_root.oalive = _root.oalive - 1;
_root.playa.health = _root.playa.health + 30;
dead = 1;
}
}
if (health > 0) {
gotoAndStop (1);
i = 0;
while (i <= 20) {
if (_parent.hitTest(_root["luch" + i].luch_live)) {
health = health - _root["luch" + i].luch_live.damage;
_root["luch" + i].luch_live.kill();
}
i++;
}
if ((speed > 0) && (_root.pause != 1)) {
speed = speed - 1;
}
if (speed <= 0) {
speed = 0;
situation = "await";
}
if ((situation == "appear") && (_root.pause != 1)) {
eng._rotation = eng._rotation + ((tr - eng._rotation) / rspeed);
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(tr) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(tr) * Number(3.14)) / Number(180))));
}
if ((situation == "attack") && (_root.pause != 1)) {
head.gotoAndStop(2);
if ((damaged != 1) && (_parent.hitTest(_root.playa))) {
_root.playa.health = _root.playa.health - dam;
_root.back.play();
damaged = 1;
}
eng._rotation = eng._rotation + ((tr - eng._rotation) / rspeed);
_parent._x = Number(_parent._x) + (Number(speed) * Number(Math.cos((Number(tr) * Number(3.14)) / Number(180))));
_parent._y = Number(_parent._y) + (Number(speed) * Number(Math.sin((Number(tr) * Number(3.14)) / Number(180))));
timer = 0;
}
if ((situation == "await") && (_root.pause != 1)) {
head.gotoAndStop(1);
speed = 0;
tr = -90;
eng._rotation = eng._rotation + ((tr - eng._rotation) / rspeed);
if (timer < maxtimer) {
timer = timer + 1;
} else {
var _local4 = _root.playa._x - _parent._x;
var _local3 = _root.playa._y - _parent._y;
var _local5 = Math.atan2(_local3, _local4);
tr = (_local5 * 180) / Math.PI;
eng._rotation = eng._rotation + (((tr - eng._rotation) + 180) / rspeed);
speed = Math.floor(Math.random() * 11) + 35;
damaged = 0;
situation = "attack";
}
}
}
};
Instance of Symbol 105 MovieClip "exp" in Symbol 106 MovieClip [fomin] Frame 1
onClipEvent (load) {
stop();
}
Symbol 108 MovieClip [bonus_killemall] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.playa)) {
_root.killed = _root.killed + 15;
b = 0;
while (b <= 30) {
_root["opp" + String(b)].model.health = 0;
b++;
}
removeMovieClip(this);
}
};
Symbol 110 MovieClip [bonus_slomo] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.playa)) {
_root.playa.bonustype = "slomo";
_root.playa.maxbonustime = 500;
_root.playa.bonustime = 500;
removeMovieClip(this);
}
};
Symbol 112 MovieClip [bonus_heal] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.playa)) {
_root.playa.health = _root.playa.health + 20;
removeMovieClip(this);
}
};
Symbol 114 MovieClip [bonus_powerup] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.playa)) {
_root.playa.bonustype = "pu";
_root.playa.maxbonustime = 500;
_root.playa.bonustime = 500;
removeMovieClip(this);
}
};
Symbol 116 MovieClip [bonus_shotgun] Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.playa)) {
_root.playa.bonustype = "shotgun";
_root.playa.maxbonustime = 500;
_root.playa.bonustime = 500;
removeMovieClip(this);
}
};
Symbol 131 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 144 Button
on (keyPress "<Space>") {
if (soundoff != "1") {
soundoff = "1";
} else {
soundoff = "0";
my_sound.setVolume(100);
}
}
Symbol 149 Button
on (keyPress "p") {
if (pause != "1") {
pause = "1";
} else {
pause = "0";
}
}
on (keyPress "7") {
if (pause != "1") {
pause = "1";
} else {
pause = "0";
}
}
Instance of Symbol 156 MovieClip "nimb" in Symbol 157 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = (_parent.bonustime * 100) / _parent.maxbonustime;
}
Symbol 173 Button
on (release) {
_root.playa.allowShoot = 1;
_root.playa._x = 320;
_root.playa._y = 240;
_root.pause = 0;
_root.restart();
gotoAndStop (4);
}
Symbol 176 Button
on (release) {
_root.restart();
_root.pause = 0;
gotoAndStop (4);
}
Symbol 179 MovieClip Frame 2
_root.my_sound.setVolume(0);
_root.playa.allowShoot = 0;
Symbol 179 MovieClip Frame 3
this.onEnterFrame = function () {
pep = _root.killed;
hard = _root.ocurr;
};