Frame 1
function createMusic() {
_root.createEmptyMovieClip("music", _root.getNextHighestDepth());
_root.music.createEmptyMovieClip("m_day", music.getNextHighestDepth());
_root.s_day = new Sound(music.m_day);
_root.s_day.attachSound("back_day");
_root.music.createEmptyMovieClip("m_night", music.getNextHighestDepth());
_root.s_night = new Sound(music.m_night);
_root.s_night.attachSound("back_night");
_root.music.createEmptyMovieClip("m_button", music.getNextHighestDepth());
_root.s_button = new Sound(music.m_button);
_root.s_button.attachSound("button");
_root.music.createEmptyMovieClip("m_enemy_die", music.getNextHighestDepth());
_root.s_enemy_die = new Sound(music.m_enemy_die);
_root.s_enemy_die.attachSound("enemy_die");
_root.music.createEmptyMovieClip("m_enemy_die2", music.getNextHighestDepth());
_root.s_enemy_die2 = new Sound(music.m_enemy_die2);
_root.s_enemy_die2.attachSound("enemy_die2");
_root.music.createEmptyMovieClip("m_enemy_gun", music.getNextHighestDepth());
_root.s_enemy_gun = new Sound(music.m_enemy_gun);
_root.s_enemy_gun.attachSound("enemy_gun");
_root.music.createEmptyMovieClip("m_enemy_rifle", music.getNextHighestDepth());
_root.s_enemy_rifle = new Sound(music.m_enemy_rifle);
_root.s_enemy_rifle.attachSound("enemy_rifle");
_root.music.createEmptyMovieClip("m_explode", music.getNextHighestDepth());
_root.s_explode = new Sound(music.m_explode);
_root.s_explode.attachSound("explode");
_root.music.createEmptyMovieClip("m_explode_2", music.getNextHighestDepth());
_root.s_explode_2 = new Sound(music.m_explode_2);
_root.s_explode_2.attachSound("explode_2");
_root.music.createEmptyMovieClip("m_flame", music.getNextHighestDepth());
_root.s_flame = new Sound(music.m_flame);
_root.s_flame.attachSound("flame");
_root.music.createEmptyMovieClip("m_glass_hit", music.getNextHighestDepth());
_root.s_glass_hit = new Sound(music.m_glass_hit);
_root.s_glass_hit.attachSound("glass_hit");
_root.music.createEmptyMovieClip("m_grenade", music.getNextHighestDepth());
_root.s_grenade = new Sound(music.m_grenade);
_root.s_grenade.attachSound("grenadelauncher");
_root.music.createEmptyMovieClip("m_rail", music.getNextHighestDepth());
_root.s_rail = new Sound(music.m_rail);
_root.s_rail.attachSound("rail");
_root.music.createEmptyMovieClip("m_rocket", music.getNextHighestDepth());
_root.s_rocket = new Sound(music.m_rocket);
_root.s_rocket.attachSound("rocketlauncher");
_root.music.createEmptyMovieClip("m_shotgun", music.getNextHighestDepth());
_root.s_shotgun = new Sound(music.m_shotgun);
_root.s_shotgun.attachSound("shotgun");
_root.music.createEmptyMovieClip("m_pistol", music.getNextHighestDepth());
_root.s_pistol = new Sound(music.m_pistol);
_root.s_pistol.attachSound("pistol");
_root.music.createEmptyMovieClip("m_preload", music.getNextHighestDepth());
_root.s_preload = new Sound(music.m_pistol);
_root.s_preload.attachSound("musicl");
_root.music.createEmptyMovieClip("m_men", music.getNextHighestDepth());
_root.s_men = new Sound(music.m_men);
_root.s_men.attachSound("men");
_root.music.createEmptyMovieClip("m_pickup", music.getNextHighestDepth());
_root.s_pickup = new Sound(music.m_pickup);
_root.s_pickup.attachSound("pickup");
_root.music.createEmptyMovieClip("m_laser_shot2", music.getNextHighestDepth());
_root.s_laser_shot2 = new Sound(music.m_laser_shot2);
_root.s_laser_shot2.attachSound("laser_shot2");
}
createMusic();
stop();
function zadergka() {
perc2++;
if (perc2 >= 100) {
clearInterval(fSetInterval);
}
}
this.onEnterFrame = function () {
var _local3 = this.getBytesLoaded();
var _local4 = this.getBytesTotal();
var _local5 = int((_local3 / _local4) * 100);
var _local6;
_local6 = ((perc2 > _local5) ? (_local5) : (perc2));
preloader.line._xscale = _local6;
preloader.txt.text = _local6 + "%";
if ((_local4 == _local3) and (perc2 == 100)) {
this.onEnterFrame = undefined;
_root.nextFrame();
}
};
_root.s_preload.start();
_root.s_preload.onSoundComplete = function () {
_root.s_preload.start();
};
perc2 = 0;
fSetInterval = setInterval(zadergka, 90);
Instance of Symbol 347 MovieClip in Frame 2
on (press) {
_root.s_button.start();
}
on (release) {
_root.s_preload.stop();
_root.nextFrame();
}
Instance of Symbol 349 MovieClip in Frame 2
on (press) {
_root.s_button.start();
_root.backlabel = "menu";
_root.gotoAndStop("instruction");
}
Instance of Symbol 351 MovieClip in Frame 2
on (release) {
_root.s_preload.stop();
_root.s_button.start();
getURL ("www.sillybull.com");
}
Frame 3
function makeBaddyBullet(myX, myY, linkage, movie) {
currentBaddy = movie;
_root.attachMovie(linkage, "baddyBullet" + _root.particleCount, _root.particleCount);
_root["baddyBullet" + _root.particleCount]._x = myX;
_root["baddyBullet" + _root.particleCount]._y = myY;
_root.particleCount++;
}
function initObjects() {
for (var _local2 in _root) {
if (_root[_local2].myType) {
pickups.push(_root[_local2]);
}
}
}
function pointHitTest(clip1, clip2, dx, dy, n) {
if (n == undefined) {
n = 16;
}
if (dx == undefined) {
dx = 0;
}
if (dy == undefined) {
dy = 0;
}
var _local11 = clip1.getBounds(_root);
var _local10 = clip2.getBounds(_root);
var _local13 = Math.abs((_local11.xMax - _local11.xMin) * (_local11.yMax - _local11.yMin));
var _local12 = Math.abs((_local10.xMax - _local10.xMin) * (_local10.yMax - _local10.yMin));
var _local4 = ((_local13 > _local12) ? (_local10) : (_local11));
var _local3 = _local4.xMin + (n / 2);
while (_local3 <= _local4.xMax) {
var _local2 = _local4.yMin + (n / 2);
while (_local2 <= _local4.yMax) {
if (((clip1.hitTest(_local3, _local2, true) ? 1 : 0) + (clip2.hitTest(_local3 + dx, _local2 + dy, true) ? 1 : 0)) == 2) {
return(true);
}
_local2 = _local2 + n;
}
_local3 = _local3 + n;
}
return(false);
}
stop();
var weapon1 = 49;
var weapon2 = 50;
var weapon3 = 51;
var weapon4 = 52;
var weapon5 = 53;
var weapon6 = 54;
var leftKey = 65;
var downKey = 83;
var rightKey = 68;
var jumpKey = 87;
var pauseKey = 80;
var pickups = [];
initObjects();
var particleCount = 6000;
var baddyCounter = 4000;
var pause = false;
var ableToPause = null;
var currentBaddy = null;
this.createEmptyMovieClip("bullets", 200);
this.createEmptyMovieClip("mines", 201);
this.onEnterFrame = function () {
if (Key.isDown(pauseKey)) {
_root.mpause._x = _root.actEkran._x;
_root.mpause._y = _root.actEkran._y;
if (pause) {
if (_root.mpause._currentframe == 5) {
_root.mpause.gotoAndPlay("hide");
}
} else if (_root.mpause._currentframe == 1) {
pause = true;
_root.mpause.gotoAndPlay("show");
}
}
};
Mouse.hide();
mpause.swapDepths(110002);
death.swapDepths(110001);
actEkran.swapDepths(110000);
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 3
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 3
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 3
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 3
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 3
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Frame 4
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 4
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 4
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 4
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 4
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 4
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 4
//component parameters
onClipEvent (construct) {
numgun = 2;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 4
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 5
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 5
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 5
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 5
//component parameters
onClipEvent (construct) {
numgun = 2;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 5
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 5
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 6
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 6
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 6
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 6
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 6
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 6
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 7
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 7
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 7
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 7
//component parameters
onClipEvent (construct) {
numgun = 2;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 7
//component parameters
onClipEvent (construct) {
numgun = 4;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 7
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 40;
}
Instance of Symbol 104 MovieClip [cell] in Frame 7
//component parameters
onClipEvent (construct) {
mannum = 2;
phealth = 20;
}
Frame 8
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 8
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 8
//component parameters
onClipEvent (construct) {
numgun = 4;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 8
//component parameters
onClipEvent (construct) {
numgun = 2;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 8
//component parameters
onClipEvent (construct) {
mannum = 2;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 8
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 8
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 9
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 9
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "4";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 9
//component parameters
onClipEvent (construct) {
numgun = 4;
countgun = 5;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 9
//component parameters
onClipEvent (construct) {
numgun = 5;
countgun = 5;
}
Instance of Symbol 104 MovieClip [cell] in Frame 9
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 40;
}
Instance of Symbol 104 MovieClip [cell] in Frame 9
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 10
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 10
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 10
//component parameters
onClipEvent (construct) {
numgun = 2;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 10
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 10
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 10
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 10
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 11
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 11
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 11
//component parameters
onClipEvent (construct) {
numgun = 6;
countgun = 2;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 11
//component parameters
onClipEvent (construct) {
numgun = 3;
countgun = 5;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 11
//component parameters
onClipEvent (construct) {
numgun = 4;
countgun = 5;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 11
//component parameters
onClipEvent (construct) {
numgun = 6;
countgun = 5;
}
Instance of Symbol 104 MovieClip [cell] in Frame 11
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 11
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 11
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Instance of Symbol 104 MovieClip [cell] in Frame 11
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 20;
}
Frame 12
s_day.stop();
s_night.stop();
s_day.start(0, 100000);
_root.hud.score.level.text = int(_root.hud.score.level.text) + 1;
createMusic();
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u0428\u0442\u044B\u043A";
rateWeapon = 100;
speed = 5;
numEnemy = "2";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = true;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "1";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "5";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "4";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 5;
numEnemy = "3";
}
Instance of Symbol 268 MovieClip [simple] in Frame 12
//component parameters
onClipEvent (construct) {
runing = false;
weapon = "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435";
rateWeapon = 100;
speed = 0;
numEnemy = "3";
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 12
//component parameters
onClipEvent (construct) {
numgun = 6;
countgun = 10;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 12
//component parameters
onClipEvent (construct) {
numgun = 5;
countgun = 5;
}
Instance of Symbol 142 MovieClip [takeweapon] in Frame 12
//component parameters
onClipEvent (construct) {
numgun = 4;
countgun = 10;
}
Instance of Symbol 104 MovieClip [cell] in Frame 12
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 40;
}
Instance of Symbol 104 MovieClip [cell] in Frame 12
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 40;
}
Instance of Symbol 104 MovieClip [cell] in Frame 12
//component parameters
onClipEvent (construct) {
mannum = 1;
phealth = 40;
}
Frame 13
gotoAndStop ("menu2");
Frame 15
_root.createEmptyMovieClip("music", _root.getNextHighestDepth());
_root.music.createEmptyMovieClip("m_day", music.getNextHighestDepth());
_root.s_day = new Sound(music.m_day);
_root.s_day.attachSound("back_day");
_root.music.createEmptyMovieClip("m_night", music.getNextHighestDepth());
_root.s_night = new Sound(music.m_night);
_root.s_night.attachSound("back_night");
_root.music.createEmptyMovieClip("m_button", music.getNextHighestDepth());
_root.s_button = new Sound(music.m_button);
_root.s_button.attachSound("button");
_root.music.createEmptyMovieClip("m_enemy_die", music.getNextHighestDepth());
_root.s_enemy_die = new Sound(music.m_enemy_die);
_root.s_enemy_die.attachSound("enemy_die");
_root.music.createEmptyMovieClip("m_enemy_die2", music.getNextHighestDepth());
_root.s_enemy_die2 = new Sound(music.m_enemy_die2);
_root.s_enemy_die2.attachSound("enemy_die2");
_root.music.createEmptyMovieClip("m_enemy_gun", music.getNextHighestDepth());
_root.s_enemy_gun = new Sound(music.m_enemy_gun);
_root.s_enemy_gun.attachSound("enemy_gun");
_root.music.createEmptyMovieClip("m_enemy_rifle", music.getNextHighestDepth());
_root.s_enemy_rifle = new Sound(music.m_enemy_rifle);
_root.s_enemy_rifle.attachSound("enemy_rifle");
_root.music.createEmptyMovieClip("m_explode", music.getNextHighestDepth());
_root.s_explode = new Sound(music.m_explode);
_root.s_explode.attachSound("explode");
_root.music.createEmptyMovieClip("m_explode_2", music.getNextHighestDepth());
_root.s_explode_2 = new Sound(music.m_explode_2);
_root.s_explode_2.attachSound("explode_2");
_root.music.createEmptyMovieClip("m_flame", music.getNextHighestDepth());
_root.s_flame = new Sound(music.m_flame);
_root.s_flame.attachSound("flame");
_root.music.createEmptyMovieClip("m_glass_hit", music.getNextHighestDepth());
_root.s_glass_hit = new Sound(music.m_glass_hit);
_root.s_glass_hit.attachSound("glass_hit");
_root.music.createEmptyMovieClip("m_grenade", music.getNextHighestDepth());
_root.s_grenade = new Sound(music.m_grenade);
_root.s_grenade.attachSound("grenadelauncher");
_root.music.createEmptyMovieClip("m_rail", music.getNextHighestDepth());
_root.s_rail = new Sound(music.m_rail);
_root.s_rail.attachSound("rail");
_root.music.createEmptyMovieClip("m_rocket", music.getNextHighestDepth());
_root.s_rocket = new Sound(music.m_rocket);
_root.s_rocket.attachSound("rocketlauncher");
_root.music.createEmptyMovieClip("m_shotgun", music.getNextHighestDepth());
_root.s_shotgun = new Sound(music.m_shotgun);
_root.s_shotgun.attachSound("shotgun");
_root.music.createEmptyMovieClip("m_pistol", music.getNextHighestDepth());
_root.s_pistol = new Sound(music.m_pistol);
_root.s_pistol.attachSound("pistol");
_root.music.createEmptyMovieClip("m_preload", music.getNextHighestDepth());
_root.s_preload = new Sound(music.m_pistol);
_root.s_preload.attachSound("musicl");
_root.music.createEmptyMovieClip("m_men", music.getNextHighestDepth());
_root.s_men = new Sound(music.m_men);
_root.s_men.attachSound("men");
_root.music.createEmptyMovieClip("m_pickup", music.getNextHighestDepth());
_root.s_pickup = new Sound(music.m_pickup);
_root.s_pickup.attachSound("pickup");
Mouse.show();
_root.mpause.removeMovieClip();
_root.death.removeMovieClip();
_root.actEkran.removeMovieClip();
_root._y = 0;
_root._x = 0;
_root.s_day.stop();
_root.s_night.stop();
_root.s_preload.stop();
_root.s_preload.start(0, 10000);
txtscore.text = hud.score.score.text;
Instance of Symbol 487 MovieClip in Frame 15
on (press) {
_root.s_button.start();
}
on (release) {
_root.s_preload.stop();
_root.gotoAndStop("gotolabel1");
}
Instance of Symbol 349 MovieClip in Frame 15
on (press) {
_root.s_button.start();
_root.backlabel = "menu2";
_root.gotoAndStop("instruction");
}
Instance of Symbol 351 MovieClip in Frame 15
on (release) {
_root.s_preload.stop();
_root.s_button.start();
getURL ("www.sillybull.com");
}
Instance of Symbol 489 MovieClip in Frame 15
on (release) {
_root.s_preload.stop();
_root.s_button.start();
getURL ("http://www.freeaddictinggames.com");
}
Instance of Symbol 497 MovieClip in Frame 16
on (press) {
_root.s_button.start();
_root.gotoAndStop(_root.backlabel);
}
Frame 17
_root.gotoAndStop("level1");
Symbol 23 MovieClip [xy] Frame 1
this._visible = false;
Symbol 24 MovieClip Frame 12
_parent.removeMovieClip();
Symbol 25 MovieClip [bullet_shotgun] Frame 1
#initclip 35
Object.registerClass("bullet_shotgun", BulletShotgun);
#endinitclip
stop();
_root.s_shotgun.start();
Symbol 25 MovieClip [bullet_shotgun] Frame 2
this.removeMovieClip();
Symbol 37 MovieClip Frame 12
_parent.removeMovieClip();
Symbol 38 MovieClip [pilot_bullet] Frame 1
#initclip 15
Object.registerClass("pilot_bullet", PilotBullet);
#endinitclip
stop();
_root.s_rocket.start();
Symbol 38 MovieClip [pilot_bullet] Frame 2
stop();
_root.s_explode.start();
Symbol 41 MovieClip [perec_bullet] Frame 1
#initclip 16
Object.registerClass("perec_bullet", SimpleBullet);
#endinitclip
stop();
Symbol 41 MovieClip [perec_bullet] Frame 2
this.removeMovieClip();
Symbol 50 MovieClip [bullet_rocket] Frame 1
#initclip 17
Object.registerClass("bullet_rocket", BulletPistol);
#endinitclip
stop();
_root.s_rocket.start();
Symbol 50 MovieClip [bullet_rocket] Frame 2
stop();
_root.s_explode.start();
Symbol 51 MovieClip [bullet_pistol] Frame 1
#initclip 18
Object.registerClass("bullet_pistol", BulletPistol);
#endinitclip
stop();
_root.s_pistol.start();
Symbol 51 MovieClip [bullet_pistol] Frame 2
this.removeMovieClip();
Symbol 54 MovieClip [weapon] Frame 1
#initclip 19
Object.registerClass("weapon", Gun);
#endinitclip
this.stop();
Symbol 54 MovieClip [weapon] Frame 2
this.stop();
Symbol 54 MovieClip [weapon] Frame 3
this.stop();
Symbol 54 MovieClip [weapon] Frame 4
this.stop();
Symbol 57 MovieClip [perec_bomb] Frame 1
#initclip 20
Object.registerClass("perec_bomb", SimpleBomb);
#endinitclip
stop();
_root.s_grenade.start();
Symbol 57 MovieClip [perec_bomb] Frame 2
stop();
_root.s_explode.start();
Symbol 60 MovieClip [bullet_grenade] Frame 1
#initclip 21
Object.registerClass("bullet_grenade", BulletGrenade);
#endinitclip
stop();
_root.s_grenade.start();
Symbol 60 MovieClip [bullet_grenade] Frame 2
stop();
_root.s_explode.start();
Symbol 63 MovieClip [perec_sniper] Frame 1
#initclip 22
Object.registerClass("perec_sniper", SimpleBullet);
#endinitclip
stop();
Symbol 63 MovieClip [perec_sniper] Frame 2
this.removeMovieClip();
Symbol 73 MovieClip Frame 40
_parent._parent.fire = false;
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 4
_parent.action = "flying";
_parent.gotoAndStop(1);
Symbol 76 MovieClip Frame 19
_root.s_explode_2.start();
Symbol 76 MovieClip Frame 60
stop();
_parent._parent._parent.swapDepths(_parent._parent._parent.getNextHighestDepth());
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent._parent._parent.removeMovieClip();
Symbol 77 MovieClip Frame 38
stop();
Symbol 79 MovieClip [pilot] Frame 1
#initclip 23
Object.registerClass("pilot", Pilot);
#endinitclip
this.stop();
Symbol 79 MovieClip [pilot] Frame 2
this.stop();
Symbol 79 MovieClip [pilot] Frame 3
stop();
pilot.play();
Symbol 79 MovieClip [pilot] Frame 4
this.stop();
Symbol 84 MovieClip [nextlevel_n] Frame 1
#initclip 24
Object.registerClass("nextlevel_n", nextlevel);
#endinitclip
Symbol 96 MovieClip Frame 1
stop();
Symbol 104 MovieClip [cell] Frame 1
#initclip 25
Object.registerClass("cell", cell);
#endinitclip
stop();
Symbol 104 MovieClip [cell] Frame 2
stop();
_root.s_glass_hit.start();
Symbol 104 MovieClip [cell] Frame 3
stop();
_root.s_glass_hit.start();
Symbol 104 MovieClip [cell] Frame 4
stop();
_root.s_glass_hit.start();
Symbol 104 MovieClip [cell] Frame 5
stop();
_root.s_glass_hit.start();
Symbol 104 MovieClip [cell] Frame 6
stop();
_root.s_glass_hit.start();
Symbol 107 MovieClip [blick] Frame 2
_parent.gotoAndStop(1);
Symbol 109 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 3
_parent.gotoAndStop(1);
Symbol 114 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 24
if (_root.player.totalBullets.flame > 0) {
_root.player.totalBullets.flame--;
}
Symbol 122 MovieClip Frame 1
Symbol 122 MovieClip Frame 10
gotoAndPlay (1);
Symbol 122 MovieClip Frame 11
stop();
_root.fireflame = fireflame;
Symbol 129 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
_root.s_rail.start();
Symbol 140 MovieClip Frame 9
with (_parent._parent._parent._parent._parent._parent) {
totalBullets[currentGun]--;
}
Symbol 140 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 141 MovieClip Frame 1
_root.fireflame = undefined;
stop();
Symbol 141 MovieClip Frame 2
stop();
_root.fireflame = fireflame;
Symbol 142 MovieClip [takeweapon] Frame 1
#initclip 26
Object.registerClass("takeweapon", takeweapon);
#endinitclip
stop();
Symbol 151 MovieClip Frame 1
_root.enemylaser = undefined;
stop();
Symbol 151 MovieClip Frame 2
_root.enemylaser = enemylaser;
_root.s_laser_shot2.start();
Symbol 151 MovieClip Frame 5
if (enemylaser.hitTest(_root.player.hit)) {
_root.player.health = _root.player.health - _parent._parent._parent._parent.laserdamage;
_root.player.action = "hero_hit";
}
Symbol 151 MovieClip Frame 10
_root.enemylaser = undefined;
_parent._parent._parent._parent.action = "walking";
Symbol 152 MovieClip [e6_gun] Frame 1
#initclip 27
Object.registerClass("e6_gun", SimpleGun);
#endinitclip
Symbol 158 MovieClip Frame 1
stop();
Symbol 163 MovieClip [e4arm] Frame 1
#initclip 28
Object.registerClass("e4arm", SimpleGun);
#endinitclip
Symbol 167 MovieClip Frame 1
stop();
Symbol 172 MovieClip [e3arm] Frame 1
#initclip 29
Object.registerClass("e3arm", SimpleGun);
#endinitclip
Symbol 180 MovieClip Frame 1
stop();
Symbol 185 MovieClip [e1arm] Frame 1
#initclip 30
Object.registerClass("e1arm", SimpleGun);
#endinitclip
Symbol 196 MovieClip Frame 2
_parent.stepStart = true;
Symbol 196 MovieClip Frame 17
_parent.stepStart = false;
Symbol 197 MovieClip Frame 2
_parent.stepStart = true;
Symbol 197 MovieClip Frame 16
_parent.stepStart = false;
Symbol 198 MovieClip Frame 2
_parent.action = "firing";
_parent.stepStart = false;
Symbol 199 MovieClip Frame 1
_root.s_enemy_gun.start();
Symbol 199 MovieClip Frame 8
_parent.action = "walking";
Symbol 200 MovieClip Frame 1
_root.s_enemy_die.start();
Symbol 200 MovieClip Frame 35
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 201 MovieClip Frame 1
_root.s_enemy_die2.start();
Symbol 201 MovieClip Frame 33
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 216 MovieClip Frame 1
_parent.bayonetrun = false;
Symbol 216 MovieClip Frame 19
if (_parent.hitTest(_root.player)) {
_root.player.health = _root.player.health - 5;
_root.player.action = "hero_hit";
}
Symbol 216 MovieClip Frame 28
_parent.bayonetrun = true;
Symbol 221 MovieClip Frame 2
_parent.action = "walking";
_parent.stepStart = false;
Symbol 222 MovieClip Frame 1
_root.s_enemy_die.start();
Symbol 222 MovieClip Frame 35
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 223 MovieClip Frame 1
_root.s_enemy_die2.start();
Symbol 223 MovieClip Frame 19
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 234 MovieClip Frame 10
_parent.action = "walking";
Symbol 235 MovieClip Frame 2
_parent.action = "firing";
_parent.stepStart = false;
Symbol 236 MovieClip Frame 1
_root.s_enemy_die.start();
Symbol 236 MovieClip Frame 35
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 237 MovieClip Frame 1
_root.s_enemy_die2.start();
Symbol 237 MovieClip Frame 29
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 246 MovieClip Frame 1
_root.s_enemy_rifle.start();
Symbol 246 MovieClip Frame 4
_parent.action = "walking";
Symbol 247 MovieClip Frame 2
_parent.action = "firing";
_parent.stepStart = false;
Symbol 248 MovieClip Frame 1
_root.s_enemy_die.start();
Symbol 248 MovieClip Frame 30
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 249 MovieClip Frame 1
_root.s_enemy_die2.start();
Symbol 249 MovieClip Frame 20
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 5
_parent.action = "walking";
Symbol 266 MovieClip Frame 2
_parent.action = "firing";
_parent.stepStart = false;
Symbol 267 MovieClip Frame 1
_root.s_explode_2.start();
Symbol 267 MovieClip Frame 23
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) - 1;
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 268 MovieClip [simple] Frame 1
#initclip 31
Object.registerClass("simple", Simple);
#endinitclip
stop();
Symbol 268 MovieClip [simple] Frame 2
stop();
Symbol 268 MovieClip [simple] Frame 3
stop();
Symbol 268 MovieClip [simple] Frame 4
stop();
Symbol 268 MovieClip [simple] Frame 5
stop();
Symbol 268 MovieClip [simple] Frame 6
stop();
Symbol 268 MovieClip [simple] Frame 7
stop();
Symbol 268 MovieClip [simple] Frame 9
stop();
Symbol 268 MovieClip [simple] Frame 10
stop();
Symbol 268 MovieClip [simple] Frame 11
stop();
Symbol 268 MovieClip [simple] Frame 12
stop();
Symbol 268 MovieClip [simple] Frame 13
stop();
Symbol 268 MovieClip [simple] Frame 14
stop();
Symbol 268 MovieClip [simple] Frame 16
stop();
Symbol 268 MovieClip [simple] Frame 17
stop();
Symbol 268 MovieClip [simple] Frame 18
stop();
Symbol 268 MovieClip [simple] Frame 19
stop();
Symbol 268 MovieClip [simple] Frame 20
stop();
Symbol 268 MovieClip [simple] Frame 21
stop();
Symbol 268 MovieClip [simple] Frame 22
stop();
Symbol 268 MovieClip [simple] Frame 24
stop();
Symbol 268 MovieClip [simple] Frame 25
stop();
Symbol 268 MovieClip [simple] Frame 26
stop();
Symbol 268 MovieClip [simple] Frame 27
stop();
Symbol 268 MovieClip [simple] Frame 28
stop();
Symbol 268 MovieClip [simple] Frame 29
stop();
Symbol 268 MovieClip [simple] Frame 30
stop();
Symbol 268 MovieClip [simple] Frame 32
stop();
Symbol 268 MovieClip [simple] Frame 33
stop();
Symbol 268 MovieClip [simple] Frame 34
stop();
Symbol 268 MovieClip [simple] Frame 35
stop();
Symbol 268 MovieClip [simple] Frame 36
stop();
Symbol 268 MovieClip [simple] Frame 37
stop();
Symbol 268 MovieClip [simple] Frame 38
stop();
Symbol 271 MovieClip [nextlevel] Frame 1
#initclip 32
Object.registerClass("nextlevel", nextlevel);
#endinitclip
Symbol 278 MovieClip Frame 1
stop();
Symbol 279 MovieClip [hand_weapon] Frame 1
#initclip 33
Object.registerClass("hand_weapon", Gun);
#endinitclip
Symbol 290 MovieClip Frame 26
gotoAndPlay (6);
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 15
stop();
Symbol 296 MovieClip Frame 3
_parent.action = "walking";
_parent.gotoAndStop("hero_stand");
Symbol 297 MovieClip Frame 4
_parent.action = "walking";
Symbol 298 MovieClip [Player] Frame 1
#initclip 34
Object.registerClass("Player", Player);
#endinitclip
stop();
Symbol 298 MovieClip [Player] Frame 2
stop();
Symbol 298 MovieClip [Player] Frame 3
stop();
Symbol 298 MovieClip [Player] Frame 4
stop();
Symbol 298 MovieClip [Player] Frame 5
stop();
Symbol 298 MovieClip [Player] Frame 6
stop();
Symbol 343 MovieClip [preloader] Frame 1
bull.onRelease = function () {
getURL ("http://sillybull.com");
};
Symbol 498 MovieClip [__Packages.PilotBullet] Frame 0
class PilotBullet extends MovieClip
{
var _rotation, onEnterFrame;
function PilotBullet () {
super();
damage = 5;
angle = 2.61799387799149;
_rotation = 150;
if (_root.currentBaddy.direction == "right") {
angle = 0.523598775598299;
_rotation = 30;
}
speed = 20;
myNumb = null;
onEnterFrame = function () {
if (!_root.pause) {
if ((((this._x > ((-_root._x) - this._width)) && (this._x < (((-_root._x) + 600) + this._width))) && (this._y > ((-_root._y) - this._height))) && (this._y < (((-_root._y) + 450) + this._height))) {
this._visible = true;
} else {
this._visible = false;
}
this._x = this._x + (Math.cos(this.angle) * this.speed);
this._y = this._y + (Math.sin(this.angle) * this.speed);
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
if (_root.player.hitTest(this._x, this._y, true) && (this._currentframe == 1)) {
_root.player.health = _root.player.health - this.damage;
_root.player.action = "hero_hit";
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
}
};
}
var angle = null;
var speed = null;
var myNumb = null;
var damage = null;
}
Symbol 499 MovieClip [__Packages.SimpleBullet] Frame 0
class SimpleBullet extends MovieClip
{
var _rotation, onEnterFrame;
function SimpleBullet () {
super();
damage = 5;
angle = ((-_root.currentBaddy.simple.body.gun._rotation) * Math.PI) / 180;
_rotation = -_root.currentBaddy.simple.body.gun._rotation;
if (_root.currentBaddy.direction == "left") {
_rotation = _rotation * -1;
_rotation = _rotation - 180;
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.001);
speed = 20;
onEnterFrame = function () {
if (!_root.pause) {
this._x = this._x + (Math.cos(this.angle) * this.speed);
this._y = this._y + (Math.sin(this.angle) * this.speed);
if (!this.hitTest(_root.actEkran)) {
this.removeMovieClip();
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
if (_root.player.hitTest(this._x, this._y, true) && (this._currentframe == 1)) {
_root.player.health = _root.player.health - this.damage;
_root.player.action = "hero_hit";
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
}
};
}
var angle = null;
var speed = null;
var myNumb = null;
var damage = null;
}
Symbol 500 MovieClip [__Packages.BulletPistol] Frame 0
class BulletPistol extends MovieClip
{
var _rotation, onEnterFrame, onUnload;
function BulletPistol () {
super();
angle = (_root.player.hero.body.hand._rotation * Math.PI) / 180;
_rotation = _root.player.hero.body.hand._rotation;
if (_root.player.myDirection == "left") {
_rotation = _rotation * -1;
_rotation = _rotation - 180;
angle = angle * -1;
angle = angle - Math.PI;
}
angle = angle + ((random(100) - 50) * 0.001);
speed = 20;
onEnterFrame = function () {
if (!_root.pause) {
if (!this.hitTest(_root.actEkran)) {
this.removeMovieClip();
}
this._x = this._x + (Math.cos(this.angle) * this.speed);
this._y = this._y + (Math.sin(this.angle) * this.speed);
if (_root.ground.hitTest(this._x + this.xy._x, this._y + this.xy._y, true)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
}
};
onUnload = function () {
_root.player.bulletsUsed[this.myNumb] = false;
if (this.myNumb == _root.player.highestBullet) {
while ((_root.player.bulletsUsed[_root.player.highestBullet] != true) && (_root.player.highestBullet > 0)) {
_root.player.highestBullet--;
}
}
};
}
var angle = null;
var speed = null;
var myNumb = null;
}
Symbol 501 MovieClip [__Packages.Gun] Frame 0
class Gun extends MovieClip
{
var _rotation, _y, _parent, _x, onEnterFrame;
function Gun () {
super();
_rotation = (Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 180) / Math.PI;
onEnterFrame = function () {
if (this._parent._parent._parent.fire) {
this.gotoAndStop(this._parent._parent._parent.currentGun + "_fire");
} else {
this.gotoAndStop(this._parent._parent._parent.currentGun);
}
if (!_root.pause) {
this._rotation = this._rotation + ((((Math.atan2(this._parent._ymouse - this._y, this._parent._xmouse - this._x) * 180) / Math.PI) - this._rotation) * 0.5);
if (this._rotation < -100) {
this._rotation = -100;
}
if (this._rotation > 100) {
this._rotation = 100;
}
}
};
}
var mcGun = null;
}
Symbol 502 MovieClip [__Packages.SimpleBomb] Frame 0
class SimpleBomb extends MovieClip
{
var _rotation, onEnterFrame, _x, _y;
function SimpleBomb () {
super();
damage = 5;
var _local4 = {x:0, y:0};
xp = (_root.player._x + _root.player.hero._x) + _root.player.hero.xy._x;
yp = (_root.player._y + _root.player.hero._y) + _root.player.hero.xy._y;
_rotation = -_root.currentBaddy.simple.body.gun._rotation;
if (_root.currentBaddy.direction == "left") {
side = "left";
_rotation = _root.currentBaddy.simple.body.gun._rotation + 180;
} else {
side = "right";
}
onEnterFrame = function () {
if (!_root.pause) {
if (this.g_angle != null) {
this.direct_laying();
} else if (((this._x != 0) and (this._y != 0)) or (this.xm != null)) {
if (this.xm == null) {
this.xm = ((this._x > this.xp) ? (this.xp + ((this._x - this.xp) / 2)) : (this._x + ((this.xp - this._x) / 2)));
this.ym = ((this._y > this.yp) ? (this.yp + ((this._y - this.yp) / 2)) : (this._y + ((this.yp - this._y) / 2)));
this.r = Math.sqrt(((this._y - this.ym) * (this._y - this.ym)) + ((this._x - this.xm) * (this._x - this.xm)));
this.angle = ((this.side == "left") ? (Math.asin((this._y - this.ym) / this.r)) : (Math.PI - Math.asin((this._y - this.ym) / this.r)));
this.r = this.r / Math.sin((Math.PI/2) - this.alpha);
this.beta = this.angle - (((this.angle > 0) and (this.side != "left")) ? (this.alpha) : (-this.alpha));
this.xm = this._x - (Math.cos(this.beta) * this.r);
this.ym = this._y - (Math.sin(this.beta) * this.r);
this.angle = this.beta;
}
if (this.side == "left") {
this.angle = this.angle - (20 / this.r);
} else {
this.angle = this.angle + (20 / this.r);
}
if ((((this._x > (this.xp - (_root.player._width / 2))) and (this._x < (this.xp + (_root.player._width / 2)))) and (this._y < this.yp)) and (this._y > (_root.currentBaddy._y - (_root.currentBaddy._height / 2)))) {
this.direct_laying();
} else if (this.side == "left") {
if ((((this.xm + (this.r * Math.cos(this.angle))) - this._x) < -5) or (this.xm < this._x)) {
this.dx = (this.xm + (this.r * Math.cos(this.angle))) - this._x;
this._x = this.xm + (this.r * Math.cos(this.angle));
this.dy = (this.ym + (this.r * Math.sin(this.angle))) - this._y;
this._y = this.ym + (this.r * Math.sin(this.angle));
} else {
this._x = this._x + this.dx;
if (this.dy > 0) {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
} else {
this.dy = this.dy + 5;
this._y = this._y + this.dy;
}
}
} else if ((((this.xm + (this.r * Math.cos(this.angle))) - this._x) > 5) or (this.xm > this._x)) {
this.dx = (this.xm + (this.r * Math.cos(this.angle))) - this._x;
this._x = this.xm + (this.r * Math.cos(this.angle));
this.dy = (this.ym + (this.r * Math.sin(this.angle))) - this._y;
this._y = this.ym + (this.r * Math.sin(this.angle));
} else {
this._x = this._x + this.dx;
if (this.dy > 0) {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
} else {
this.dy = this.dy + 5;
this._y = this._y + this.dy;
}
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
if (_root.player.hitTest(this._x, this._y, true) && (this._currentframe == 1)) {
_root.player.health = _root.player.health - this.damage;
_root.player.action = "hero_hit";
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
};
}
function direct_laying() {
if (speed == null) {
speed = 15;
}
if (g_r == null) {
g_r = Math.sqrt(((_y - yp) * (_y - yp)) + ((_x - xp) * (_x - xp)));
}
if (g_angle == null) {
g_angle = Math.asin((_y - yp) / g_r);
if (_x < xp) {
g_angle = g_angle * -1;
} else {
speed = speed * -1;
}
}
_x = _x + (Math.cos(g_angle) * speed);
_y = _y + (Math.sin(g_angle) * speed);
}
var angle = null;
var g_angle = null;
var g_r = null;
var speed = null;
var side = null;
var myNumb = null;
var damage = null;
var xp = null;
var yp = null;
var xm = null;
var ym = null;
var alpha = -1.30899693899575;
var beta = null;
var dx = 0;
var dy = 0;
var r = null;
var rx = null;
}
Symbol 503 MovieClip [__Packages.BulletGrenade] Frame 0
class BulletGrenade extends MovieClip
{
var _rotation, _xscale, onUnload, onEnterFrame, _x, _y;
function BulletGrenade () {
super();
damage = 5;
var _local4 = {x:0, y:0};
xp = _root.cursor._x;
yp = _root.cursor._y;
_rotation = _root.player.hero.body.hand._rotation;
if (_root.player.myDirection == "left") {
side = "left";
_rotation = -_root.player.hero.body.hand._rotation;
_xscale = -100;
} else {
side = "right";
}
onUnload = function () {
_root.player.bulletsUsed[this.myNumb] = false;
if (this.myNumb == _root.player.highestBullet) {
while ((_root.player.bulletsUsed[_root.player.highestBullet] != true) && (_root.player.highestBullet > 0)) {
_root.player.highestBullet--;
}
}
};
onEnterFrame = function () {
if (!_root.pause) {
if (!this.hitTest(_root.actEkran)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
}
if (this.g_angle != null) {
this.direct_laying();
} else if (((this._x != 0) and (this._y != 0)) or (this.xm != null)) {
if (this.xm == null) {
this.xm = ((this._x > this.xp) ? (this.xp + ((this._x - this.xp) / 2)) : (this._x + ((this.xp - this._x) / 2)));
this.ym = ((this._y > this.yp) ? (this.yp + ((this._y - this.yp) / 2)) : (this._y + ((this.yp - this._y) / 2)));
this.r = Math.sqrt(((this._y - this.ym) * (this._y - this.ym)) + ((this._x - this.xm) * (this._x - this.xm)));
this.angle = ((this.side == "left") ? (Math.asin((this._y - this.ym) / this.r)) : (Math.PI - Math.asin((this._y - this.ym) / this.r)));
this.r = this.r / Math.sin((Math.PI/2) - this.alpha);
this.beta = this.angle - (((this.angle > 0) and (this.side != "left")) ? (this.alpha) : (-this.alpha));
this.xm = this._x - (Math.cos(this.beta) * this.r);
this.ym = this._y - (Math.sin(this.beta) * this.r);
this.angle = this.beta;
if ((((this._x > (this.xp - (_root.player.hit._width / 2))) and (this._x < (this.xp + (_root.player.hit._width / 2)))) and (this._y < this.yp)) and (this._y > (_root.currentBaddy._y - (_root.currentBaddy._height / 2)))) {
this.direct_laying();
}
}
if (this.side == "left") {
this.angle = this.angle - (20 / this.r);
} else {
this.angle = this.angle + (20 / this.r);
}
if (this.side == "left") {
if ((((this.xm + (this.r * Math.cos(this.angle))) - this._x) < -5) or (this.xm < this._x)) {
this.dx = (this.xm + (this.r * Math.cos(this.angle))) - this._x;
this._x = this.xm + (this.r * Math.cos(this.angle));
this.dy = (this.ym + (this.r * Math.sin(this.angle))) - this._y;
this._y = this.ym + (this.r * Math.sin(this.angle));
} else {
this._x = this._x + this.dx;
if (this.dy > 0) {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
} else {
this.dy = this.dy + 5;
this._y = this._y + this.dy;
}
}
} else if ((((this.xm + (this.r * Math.cos(this.angle))) - this._x) > 5) or (this.xm > this._x)) {
this.dx = (this.xm + (this.r * Math.cos(this.angle))) - this._x;
this._x = this.xm + (this.r * Math.cos(this.angle));
this.dy = (this.ym + (this.r * Math.sin(this.angle))) - this._y;
this._y = this.ym + (this.r * Math.sin(this.angle));
} else {
this._x = this._x + this.dx;
if (this.dy > 0) {
this.dy = this.dy + 1;
this._y = this._y + this.dy;
} else {
this.dy = this.dy + 5;
this._y = this._y + this.dy;
}
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
this._name = "hit" + this.myNumb;
this.onEnterFrame = null;
}
};
}
function direct_laying() {
if (speed == null) {
speed = 15;
}
if (g_r == null) {
g_r = Math.sqrt(((_y - yp) * (_y - yp)) + ((_x - xp) * (_x - xp)));
}
if (g_angle == null) {
g_angle = Math.asin((_y - yp) / g_r);
if (_x < xp) {
g_angle = g_angle * -1;
} else {
speed = speed * -1;
}
}
_x = _x + (Math.cos(g_angle) * speed);
_y = _y + (Math.sin(g_angle) * speed);
}
var angle = null;
var g_angle = null;
var g_r = null;
var speed = null;
var side = null;
var myNumb = null;
var damage = null;
var xp = null;
var yp = null;
var xm = null;
var ym = null;
var alpha = -1.30899693899575;
var beta = null;
var dx = 0;
var dy = 0;
var r = null;
var rx = null;
}
Symbol 504 MovieClip [__Packages.Pilot] Frame 0
class Pilot extends MovieClip
{
var onEnterFrame, _x, gotoAndStop, _y, _xscale, hitTest, _parent, hit;
function Pilot () {
super();
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) + 1;
accelBrake = 50;
deltax = (Math.random() * 50) + 10;
deltay = (Math.random() * 50) + 10;
xSpeed = 0;
ySpeed = 0;
yspeed = 5;
maxSpeed = 10;
xv = 0;
yv = 0;
oxy = {x:0, y:0};
brake = 1 - (maxSpeed / accelBrake);
accel = 1 / brake;
health = 13;
shotTimer = 25;
ctg = 1.73205080756888;
esc = 20;
bullets = 100000 /* 0x0186A0 */;
action = "flying";
fire = false;
eyeshot = 500;
direction = "left";
onEnterFrame = ai;
}
function ai() {
if (!_root.pause) {
if (action == "flying") {
if (Math.abs(_root.player._x - _x) < eyeshot) {
eyeshot = 700;
oxy = {x:0, y:0};
xy.localToGlobal(oxy);
oxy.x = oxy.x - _root._x;
oxy.y = oxy.y - _root._y;
var _local11 = _root.player._y - 100;
var _local9 = _root.player._x;
var _local10 = 50;
var _local7 = ctg * _local10;
var _local5 = _local9 - _local7;
var _local6 = _local9 + _local7;
var _local8 = _local11;
if (oxy.x > (_local6 + accelBrake)) {
if (xSpeed > 0) {
direction = "right";
if (oxy.x > (_local6 + (accelBrake * 4))) {
xSpeed = xSpeed * brake;
}
if (xSpeed < 1) {
xSpeed = 0;
}
} else if (xSpeed < 0) {
direction = "left";
xSpeed = Math.max(xSpeed * accel, -maxSpeed);
} else {
direction = "left";
xSpeed = xSpeed - 1;
}
} else if ((oxy.x > _local6) && (oxy.x <= (_local6 + accelBrake))) {
if (xSpeed > 0) {
direction = "right";
xSpeed = Math.min(xSpeed * accel, maxSpeed);
} else if (xSpeed < 0) {
direction = "left";
xSpeed = xSpeed * brake;
if (xSpeed > -1) {
xSpeed = 0;
}
} else {
direction = "left";
action = "firing";
}
} else if ((oxy.x < _local5) && (oxy.x >= (_local5 - accelBrake))) {
if (xSpeed < 0) {
direction = "left";
xSpeed = Math.max(xSpeed * accel, -maxSpeed);
} else if (xSpeed > 0) {
direction = "right";
xSpeed = xSpeed * brake;
if (xSpeed < 1) {
xSpeed = 0;
}
} else {
direction = "right";
action = "firing";
}
} else if (oxy.x < (_local5 - accelBrake)) {
if (xSpeed < 0) {
direction = "left";
if (oxy.x < (_local5 - (accelBrake * 4))) {
xSpeed = xSpeed * brake;
}
if (xSpeed > -1) {
xSpeed = 0;
}
} else if (xSpeed > 0) {
direction = "right";
xSpeed = Math.min(xSpeed * accel, maxSpeed);
} else {
direction = "right";
xSpeed = xSpeed + 1;
}
} else if (xSpeed > 0) {
direction = "right";
xSpeed = Math.min(xSpeed * accel, maxSpeed);
} else if (xSpeed < 0) {
direction = "left";
xSpeed = Math.max(xSpeed * accel, -maxSpeed);
} else {
xSpeed = (Math.random() * 4) - 2;
((xSpeed < 0) ? ((direction = "left")) : ((direction = "right")));
}
if ((oxy.y - yspeed) > _local8) {
ySpeed = -yspeed;
} else if ((oxy.y + yspeed) < _local8) {
ySpeed = yspeed;
} else {
ySpeed = 0;
}
} else {
xSpeed = 0;
ySpeed = 0;
}
} else if (action == "escaping") {
if (xSpeed > 0) {
direction = "right";
xSpeed = Math.min(xSpeed * accel, maxSpeed);
} else if (xSpeed < 0) {
direction = "left";
xSpeed = Math.max(xSpeed * accel, -maxSpeed);
} else {
xSpeed = (Math.random() * 4) - 2;
((xSpeed < 0) ? ((direction = "left")) : ((direction = "right")));
}
esc--;
if (!esc) {
action = "flying";
esc = 20;
}
} else if (action == "firing") {
shotTimer--;
if (shotTimer <= 0) {
fire = true;
var _local4 = {x:0, y:0};
xy.localToGlobal(_local4);
_local4.x = _local4.x - _root._x;
_local4.y = _local4.y - _root._y;
if (xSpeed > 0) {
_root.makeBaddyBullet(_local4.x, _local4.y, "pilot_bullet", this);
} else {
_root.makeBaddyBullet(_local4.x, _local4.y, "pilot_bullet", this);
}
bullets--;
shotTimer = 25;
}
action = "flying";
} else if (action == "die") {
gotoAndStop("pilot_die");
ySpeed++;
if (_root.ground.hitTest(_x, _y + ySpeed, true)) {
pilot.play();
ySpeed = 0;
}
} else if (action == "hit") {
gotoAndStop("pilot_hit");
}
_x = _x + xSpeed;
_y = _y + ySpeed;
if ((action == "flying") || (action == "escaping")) {
gotoAndStop("pilot_fly");
} else if ((action == "firing") && (fire)) {
gotoAndStop("pilot_fire");
}
if (direction == "right") {
_xscale = -100;
} else {
_xscale = 100;
}
if (hitTest(_parent.actEkran)) {
if ((_root.fireflame != undefined) and (_root.player[_root.player.currentGun + "_damage"] != undefined)) {
if (_root.pointHitTest(hit, _root.fireflame.hit, 0, 0, 10)) {
if (health > 0) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
}
if (rateLaser == 50) {
if ((_root.player.currentGun == "flame") or (_root.player.currentGun == "laser")) {
action = "hit";
}
}
rateLaser--;
if (rateLaser == 0) {
rateLaser = 70;
}
if (_root.player.currentGun == "laser") {
}
} else {
rateLaser = 50;
}
}
}
var _local3 = 0;
while (_local3 <= _root.player.highestBullet) {
if (hitTest(_root.bullets["bullet" + _local3]._x, _root.bullets["bullet" + _local3]._y, true) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
action = "hit";
_root.bullets["bullet" + _local3].gotoAndStop(2);
}
if (hitTest(_root.bullets["bullet" + _local3].shot.xy) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
if (_root.player[_root.player.currentGun + "_damage"] != undefined) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
action = "hit";
_root.bullets["bullet" + _local3].gotoAndStop(2);
_root.bullets["bullet" + _local3].onEnterFrame = null;
}
}
_local3++;
}
if (health <= 0) {
action = "die";
}
}
}
var accel = null;
var brake = null;
var accelBrake = null;
var deltax = null;
var deltay = null;
var xSpeed = null;
var ySpeed = null;
var yspeed = null;
var maxSpeed = null;
var oxy = null;
var xv = null;
var yv = null;
var health = null;
var shotTimer = null;
var ctg = null;
var esc = null;
var bullets = null;
var action = null;
var fire = null;
var eyeshot = null;
var direction = null;
var xy = null;
var pilot = null;
var rateLaser = 50;
}
Symbol 505 MovieClip [__Packages.nextlevel] Frame 0
class nextlevel extends MovieClip
{
var onEnterFrame, hitTest, _parent, _y, _x, swapDepths, removeMovieClip;
function nextlevel () {
super();
onEnterFrame = ai;
}
function ai() {
if ((!_root.pause) and hitTest(_parent.actEkran)) {
_y = _y + ySpeed;
var _local3 = 0;
while (_local3 <= 100) {
if (_root.ground.hitTest(_x, _y - 3, true)) {
_y = _y - 1;
} else {
break;
}
_local3++;
}
if (hitTest(_root.player.hit) and (int(_root.hud.score.cntenemy.text) == 0)) {
_root.player.removeMovieClip();
_root.actEkran.gotoAndPlay("hide");
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
}
var ySpeed = 10;
}
Symbol 506 MovieClip [__Packages.cell] Frame 0
class cell extends MovieClip
{
var prisoner, onEnterFrame, hitTest, _parent, _y, _totalframes, _currentframe, _x, tuman, play, phealth, swapDepths, removeMovieClip;
function cell () {
super();
prisoner.gotoAndStop(mannum);
onEnterFrame = ai;
}
function ai() {
if ((!_root.pause) and hitTest(_parent.actEkran)) {
_y = _y + ySpeed;
var _local3 = 0;
while (_local3 <= 100) {
if (_currentframe < _totalframes) {
if (_root.ground.hitTest(_x, _y - 3, true) or _root.jaggies.hitTest(_x, _y - 3, true)) {
_y = _y - 1;
} else {
break;
}
} else if (_root.ground.hitTest(_x + prisoner._x, (_y + prisoner._y) - 3, true) or _root.jaggies.hitTest(_x + prisoner._x, (_y + prisoner._y) - 3, true)) {
_y = _y - 1;
} else {
break;
}
_local3++;
}
if (_currentframe < _totalframes) {
if (_root.fireflame != undefined) {
if (_root.pointHitTest(tuman, _root.fireflame.hit, 0, 0, 10)) {
if (rateLaser == 30) {
if ((_root.player.currentGun == "flame") or (_root.player.currentGun == "laser")) {
play();
}
}
rateLaser--;
if (rateLaser == 0) {
rateLaser = 30;
}
} else {
rateLaser = 30;
}
}
_local3 = 0;
while (_local3 <= _root.player.highestBullet) {
if (hitTest(_root.bullets["bullet" + _local3].xy) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
play();
_root.bullets["bullet" + _local3].play();
_root.bullets["bullet" + _local3].onEnterFrame = null;
}
if (hitTest(_root.bullets["bullet" + _local3].shot.xy) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
play();
_root.bullets["bullet" + _local3].gotoAndStop(2);
_root.bullets["bullet" + _local3].onEnterFrame = null;
}
_local3++;
}
} else if (prisoner.hitTest(_root.player.hit)) {
_root.player.health = _root.player.health + phealth;
_root.hud.score.score.text = int(_root.hud.score.score.text) + (phealth * 10);
_root.s_men.start();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
}
var rateLaser = 30;
var shotTimer = null;
var ySpeed = 10;
var mannum = 1;
}
Symbol 507 MovieClip [__Packages.takeweapon] Frame 0
class takeweapon extends MovieClip
{
var gotoAndStop, numgun, onEnterFrame, hitTest, _parent, _y, _x, countgun, swapDepths, removeMovieClip;
function takeweapon () {
super();
gotoAndStop(numgun);
onEnterFrame = ai;
}
function ai() {
if ((!_root.pause) and hitTest(_parent.actEkran)) {
_y = _y + ySpeed;
var _local3 = 0;
while (_local3 <= 100) {
if (_root.ground.hitTest(_x, _y - 3, true) or _root.jaggies.hitTest(_x, _y - 3, true)) {
_y = _y - 1;
} else {
break;
}
_local3++;
}
if (hitTest(_root.player.hit)) {
switch (numgun) {
case 2 :
_root.player.totalBullets.shotgun = _root.player.totalBullets.shotgun + countgun;
_root.hud.weapon.shotgun._alpha = 100;
break;
case 3 :
_root.player.totalBullets.flame = _root.player.totalBullets.flame + countgun;
_root.hud.weapon.flame._alpha = 100;
break;
case 4 :
_root.player.totalBullets.grenade = _root.player.totalBullets.grenade + countgun;
_root.hud.weapon.grenade._alpha = 100;
break;
case 5 :
_root.player.totalBullets.rocket = _root.player.totalBullets.rocket + countgun;
_root.hud.weapon.bazooka._alpha = 100;
break;
case 6 :
_root.player.totalBullets.laser = _root.player.totalBullets.laser + countgun;
_root.hud.weapon.laser._alpha = 100;
}
_root.s_pickup.start();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
}
var ySpeed = 10;
}
Symbol 508 MovieClip [__Packages.SimpleGun] Frame 0
class SimpleGun extends MovieClip
{
var _parent, _rotation, _y, _x, onEnterFrame;
function SimpleGun () {
super();
xy.x = _root.player._x + _root._x;
xy.y = (_root.player._y - (_root.player.hit._height / 2)) + _root._y;
_parent.globalToLocal(xy);
if ((_parent._parent._parent.numEnemy == 5) or (_parent._parent._parent._parent.numEnemy == 5)) {
_rotation = (Math.atan2(xy.y - _y, xy.x - _x) * 180) / Math.PI;
} else {
_rotation = ((Math.atan2(xy.y - _y, xy.x - _x) - Math.PI) * 180) / Math.PI;
}
onEnterFrame = function () {
if (!_root.pause) {
if (this._parent._parent._parent.fire) {
this.gotoAndStop("gun_fire");
} else {
this.gotoAndStop("gun");
}
this.xy.x = _root.player._x + _root._x;
this.xy.y = (_root.player._y - (_root.player.hit._height / 2)) + _root._y;
this._parent.globalToLocal(this.xy);
if ((this._parent._parent._parent.numEnemy == 5) or (this._parent._parent._parent._parent.numEnemy == 5)) {
this._rotation = (Math.atan2(this.xy.y - this._y, this.xy.x - this._x) * 180) / Math.PI;
} else {
this._rotation = ((Math.atan2(this.xy.y - this._y, this.xy.x - this._x) - Math.PI) * 180) / Math.PI;
}
}
};
}
var mcGun = null;
var xy = {};
}
Symbol 509 MovieClip [__Packages.Simple] Frame 0
class Simple extends MovieClip
{
var numEnemy, rateWeapon, onEnterFrame, gotoAndStop, hitTest, _parent, _x, _width, runing, weapon, _height, _y, hit, bayonet, _xscale;
function Simple () {
super();
_root.hud.score.cntenemy.text = int(_root.hud.score.cntenemy.text) + 1;
fram_die = (Math.ceil(Math.random() * 2) + "simple_die") + numEnemy;
xSpeed = 0;
ySpeed = 20;
health = 13;
shotTimer = rateWeapon;
action = "walking";
fire = false;
eyeshot = 300;
direction = "right";
simple = simple;
xy = simple.body.gun.xy;
onEnterFrame = ai;
}
function die() {
gotoAndStop(fram_die);
}
function ai() {
if (hitTest(_parent.actEkran)) {
activate = true;
} else {
return(undefined);
}
if (!_root.pause) {
if (health <= 0) {
action = "die";
die();
return(undefined);
}
if (action == "walking") {
if (activate) {
eyeshot = 300;
if (_x > (_root.player._x + (_root.player._width / 2))) {
direction = "left";
} else if ((_x + (_width / 2)) < _root.player._x) {
direction = "right";
}
if (runing) {
if (weapon == "\u0428\u0442\u044B\u043A") {
if ((_x + 40) < _root.player._x) {
xSpeed = speed;
} else if ((_x - 40) > (_root.player._x + (_root.player.hit._width / 2))) {
xSpeed = -speed;
} else {
xSpeed = 0;
}
shotTimer--;
if (shotTimer <= 0) {
shotTimer = rateWeapon;
}
} else if (Math.abs(_x - _root.player._x) < 150) {
if ((_x - _root.player._x) > 0) {
xSpeed = speed;
} else {
xSpeed = -speed;
}
} else if ((Math.abs(_root.player._x - _x) > 250) or ((!hitTest(_parent.actEkran)) and ((_y - _height) > (_parent.actEkran._y + _parent.actEkran.height)))) {
if ((_x - _root.player._x) > 0) {
xSpeed = -speed;
} else {
xSpeed = speed;
}
} else {
xSpeed = 0;
}
}
if (hitTest(_parent.actEkran) and (weapon != "\u0428\u0442\u044B\u043A")) {
action = "firing";
}
if ((weapon == "\u0428\u0442\u044B\u043A") and hit.hitTest(_parent.player.hit)) {
xSpeed = 0;
}
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 5, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 5, true)))) {
_x = _x + xSpeed;
} else if ((((xSpeed > 0) && (((_x + _width) + xSpeed) < (_root.ground._x + _root.ground._width))) && (!_root.ground.hitTest((_x + _width) + xSpeed, _y - 60, true))) || (((xSpeed < 0) && ((_x + xSpeed) > _root.ground._x)) && (!_root.ground.hitTest(_x + xSpeed, _y - 60, true)))) {
if (Math.abs((xSpeed + ((xSpeed > 0) ? (_width / 2) : ((-_width) / 2))) - _root.player._x) > 350) {
_y = _y - 80;
_x = _x + (xSpeed + ((xSpeed > 0) ? (_width / 2) : ((-_width) / 2)));
} else {
xSpeed = 0;
}
} else {
xSpeed = 0;
}
}
} else if (action == "firing") {
if (_x > (_root.player._x + (_root.player._width / 2))) {
direction = "left";
} else if ((_x + (_width / 2)) < _root.player._x) {
direction = "right";
}
if (!_root.ground.hitTest(_x, _y + 3, true)) {
_y = _y + 3;
}
if (runing) {
if (Math.abs(_x - _root.player._x) < 150) {
if ((_x - _root.player._x) > 0) {
xSpeed = speed;
} else {
xSpeed = -speed;
}
} else if ((Math.abs(_root.player._x - _x) > 250) or ((!hitTest(_parent.actEkran)) and ((_y - _height) > (_parent.actEkran._y + _parent.actEkran.height)))) {
if ((_x - _root.player._x) > 0) {
xSpeed = -speed;
} else {
xSpeed = speed;
}
} else {
xSpeed = 0;
}
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 5, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 5, true)))) {
_x = _x + xSpeed;
} else if ((((xSpeed > 0) && (((_x + _width) + xSpeed) < (_root.ground._x + _root.ground._width))) && (!_root.ground.hitTest((_x + _width) + xSpeed, _y - 60, true))) || (((xSpeed < 0) && ((_x + xSpeed) > _root.ground._x)) && (!_root.ground.hitTest(_x + xSpeed, _y - 60, true)))) {
if (Math.abs((xSpeed + ((xSpeed > 0) ? (_width / 2) : ((-_width) / 2))) - _root.player._x) > 350) {
_y = _y - 80;
_x = _x + (xSpeed + ((xSpeed > 0) ? (_width / 2) : ((-_width) / 2)));
} else {
xSpeed = 0;
}
} else {
xSpeed = 0;
}
}
shotTimer--;
if ((shotTimer <= 0) and hitTest(_parent.actEkran)) {
fire = true;
var _local4 = {x:0, y:0};
xy.localToGlobal(_local4);
_local4.x = _local4.x - _root._x;
_local4.y = _local4.y - _root._y;
if (weapon == "\u041E\u0433\u043D\u0435\u0441\u0442\u0440\u0435\u043B\u044C\u043D\u043E\u0435") {
if (numEnemy == 3) {
_root.makeBaddyBullet(_local4.x, _local4.y, "perec_bomb", this);
} else if (numEnemy == 4) {
_root.makeBaddyBullet(_local4.x, _local4.y, "perec_sniper", this);
} else if (numEnemy == 1) {
_root.makeBaddyBullet(_local4.x, _local4.y, "perec_bullet", this);
}
action = "simple_fire";
if (numEnemy == 1) {
if (countShot == 0) {
shotTimer = rateWeapon;
countShot = 2;
} else {
countShot--;
shotTimer = 5;
}
} else {
shotTimer = rateWeapon;
}
} else if (weapon == "\u0413\u0440\u0430\u043D\u0430\u0442\u0430") {
if (xSpeed > 0) {
_root.makeBaddyBullet(_local4.x, _local4.y, "perec_bomb", this);
} else {
_root.makeBaddyBullet(_local4.x, _local4.y, "perec_bomb", this);
}
action = "simple_fire";
shotTimer = rateWeapon;
}
}
} else if (action == "down") {
ySpeed++;
if (((xSpeed > 0) && (!_root.ground.hitTest((_x + (_width / 2)) + xSpeed, _y - 50, true))) || ((xSpeed < 0) && (!_root.ground.hitTest((_x - (_width / 2)) + xSpeed, _y - 50, true)))) {
_x = _x + xSpeed;
}
if (_root.ground.hitTest(_x, _y + ySpeed, true) or _root.jaggies.hitTest(_x, _y - 3, true)) {
_y = _y + ySpeed;
action = "walking";
}
}
_y = _y + ySpeed;
if (action == "down") {
gotoAndStop("simple_stand" + numEnemy);
} else if ((action == "walking") or (action == "firing")) {
if ((((xSpeed > 0) && (direction == "right")) || ((xSpeed < 0) && (direction == "left"))) || (((runing and bayonet) and (xSpeed != 0)) and bayonetrun)) {
gotoAndStop("simple_walk" + numEnemy);
} else if (((xSpeed > 0) && (direction == "left")) || ((xSpeed < 0) && (direction == "right"))) {
gotoAndStop("simple_walkback" + numEnemy);
} else if (!stepStart) {
gotoAndStop("simple_stand" + numEnemy);
}
} else if (action == "simple_fire") {
gotoAndStop("simple_fire" + numEnemy);
simple.body.gun.weapon.play();
} else if (action == "hit") {
gotoAndStop("simple_hit" + numEnemy);
}
if (direction == "right") {
_xscale = 100;
} else {
_xscale = -100;
}
var _local3 = 0;
while (_local3 <= 100) {
if (_root.ground.hitTest(_x, _y - 3, true) or _root.jaggies.hitTest(_x, _y - 3, true)) {
_y = _y - 1;
} else {
break;
}
if (_local3 == 100) {
if (!_root.ground.hitTest(_x + 50, _y, true)) {
_x = _x + 50;
} else if (!_root.ground.hitTest(_x - 50, _y, true)) {
_x = _x - 50;
}
}
_local3++;
}
if (hitTest(_parent.actEkran)) {
if ((_root.fireflame != undefined) and (_root.player[_root.player.currentGun + "_damage"] != undefined)) {
if (_root.pointHitTest(hit, _root.fireflame.hit, 0, 0, 10)) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
if (rateLaser == 50) {
if ((_root.player.currentGun == "flame") or (_root.player.currentGun == "laser")) {
action = "hit";
}
}
rateLaser--;
if (rateLaser == 0) {
rateLaser = 70;
}
} else {
rateLaser = 50;
}
}
_local3 = 0;
while (_local3 <= _root.player.highestBullet) {
if (hit.hitTest(_root.bullets["bullet" + _local3].xy) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
if (_root.player[_root.player.currentGun + "_damage"] != undefined) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
action = "hit";
_root.bullets["bullet" + _local3].gotoAndStop(2);
_root.bullets["bullet" + _local3].onEnterFrame = null;
}
}
if (hit.hitTest(_root.bullets["bullet" + _local3].shot.xy) && (_root.bullets["bullet" + _local3]._currentframe == 1)) {
if (_root.player[_root.player.currentGun + "_damage"] != undefined) {
health = health - _root.player[_root.player.currentGun + "_damage"];
_root.hud.score.score.text = int(_root.hud.score.score.text) + (_root.player[_root.player.currentGun + "_damage"] * 10);
action = "hit";
_root.bullets["bullet" + _local3].gotoAndStop(2);
_root.bullets["bullet" + _local3].onEnterFrame = null;
}
}
_local3++;
}
}
}
}
var speed = null;
var countShot = 2;
var xSpeed = null;
var ySpeed = null;
var health = null;
var shotTimer = null;
var action = null;
var fram_die = null;
var fire = null;
var activate = false;
var stepStart = false;
var bayonetrun = true;
var eyeshot = null;
var laserdamage = 10;
var direction = null;
var simple = null;
var xy = null;
var fshotgun = true;
var rateLaser = 50;
}
Symbol 510 MovieClip [__Packages.Player] Frame 0
class Player extends MovieClip
{
var totalBullets, intervalBullets, fireInt, allhealth, swapDepths, _xscale, _width, _height, onEnterFrame, onMouseDown, onMouseUp, _parent, _x, _y, gotoAndStop, stop;
function Player () {
super();
totalBullets = new Array();
totalBullets.pistol = 1000000 /* 0x0F4240 */;
totalBullets.shotgun = ((int(_root.hud.weapon_score.cntshotgun.text) > 0) ? (int(_root.hud.weapon_score.cntshotgun.text)) : 0);
totalBullets.flame = ((int(_root.hud.weapon_score.cntflame.text) > 0) ? (int(_root.hud.weapon_score.cntflame.text)) : 0);
totalBullets.grenade = ((int(_root.hud.weapon_score.cntgrenade.text) > 0) ? (int(_root.hud.weapon_score.cntgrenade.text)) : 0);
totalBullets.rocket = ((int(_root.hud.weapon_score.cntbazooka.text) > 0) ? (int(_root.hud.weapon_score.cntbazooka.text)) : 0);
totalBullets.laser = ((int(_root.hud.weapon_score.cntlaser.text) > 0) ? (int(_root.hud.weapon_score.cntlaser.text)) : 0);
switch (_root.hud.weapon.activweapon._currentframe) {
case 1 :
currentGun = "pistol";
break;
case 2 :
currentGun = "shotgun";
break;
case 3 :
currentGun = "flame";
break;
case 4 :
currentGun = "grenade";
break;
case 5 :
currentGun = "rocket";
break;
case 6 :
currentGun = "laser";
}
intervalBullets = new Array();
intervalBullets.pistol = 6;
intervalBullets.shotgun = 30;
intervalBullets.flame = 3;
intervalBullets.grenade = 40;
intervalBullets.rocket = 50;
intervalBullets.laser = 60;
fireInt = intervalBullets[currentGun];
allhealth = health;
if (_root.hud.percent._currentframe > 1) {
health = _root.hud.percent._currentframe;
}
swapDepths(100000);
pickups = _root.pickups;
xy = hero.body.gun.mcGun.xy;
gun = hero.body.gun;
hero.shield._visible = false;
xscale = _xscale;
myWidth = _width - 20;
myHeight = _height - 20;
halfHeight = myHeight / 2;
interval = 0;
controlTimer = 30;
onEnterFrame = keyListener;
var _local4 = new Date();
if ((_local4.getMonth() < 4) or ((_local4.getMonth() == 4) and (_local4.getDate() < 17))) {
onMouseDown = mouseListener;
}
onMouseUp = fmouseUp;
}
function fmouseUp() {
_root.s_flame.stop();
if (currentGun == "flame") {
totalBullets[currentGun]--;
hero.body.hand.gun.weapon.play();
_root.fireflame = undefined;
}
}
function mouseListener() {
if ((!_parent.pause) && (fire == false)) {
fire = true;
if ((currentGun == "flame") or (currentGun == "laser")) {
hero.body.hand.gun.weapon.gotoAndStop("fire");
if (currentGun == "laser") {
action = "hero_fire";
} else {
_root.s_flame.start(1, 10000);
}
} else {
makeBullet();
}
}
}
function keyListener() {
_root.cursor._x = _root._xmouse;
_root.cursor._y = _root._ymouse;
if (allhealth < health) {
allhealth = health;
}
_root.hud.percent.gotoAndStop(Math.ceil((100 * health) / allhealth));
if (fire) {
if (fireInt == 0) {
fire = false;
fireInt = intervalBullets[currentGun];
}
fireInt--;
}
if (!_parent.pause) {
if (totalBullets.shotgun == 0) {
if (_root.hud.weapon.shotgun._alpha > 40) {
_root.hud.weapon.shotgun._alpha = 40;
_root.hud.weapon_score.cntshotgun.text = "0";
currentGun = "pistol";
_root.hud.weapon.activweapon.gotoAndStop(1);
}
} else {
_root.hud.weapon_score.cntshotgun.text = totalBullets.shotgun;
}
if (totalBullets.flame == 0) {
if (_root.hud.weapon.flame._alpha > 40) {
_root.hud.weapon.flame._alpha = 40;
_root.hud.weapon_score.cntflame.text = "0";
currentGun = "pistol";
_root.hud.weapon.activweapon.gotoAndStop(1);
}
} else {
_root.hud.weapon_score.cntflame.text = totalBullets.flame;
}
if (totalBullets.grenade == 0) {
if (_root.hud.weapon.grenade._alpha > 40) {
_root.hud.weapon.grenade._alpha = 40;
_root.hud.weapon_score.cntgrenade.text = "0";
currentGun = "pistol";
_root.hud.weapon.activweapon.gotoAndStop(1);
}
} else {
_root.hud.weapon_score.cntgrenade.text = totalBullets.grenade;
}
if (totalBullets.rocket == 0) {
if (_root.hud.weapon.bazooka._alpha > 40) {
_root.hud.weapon.bazooka._alpha = 40;
_root.hud.weapon_score.cntbazooka.text = "0";
currentGun = "pistol";
_root.hud.weapon.activweapon.gotoAndStop(1);
}
} else {
_root.hud.weapon_score.cntbazooka.text = totalBullets.rocket;
}
if (totalBullets.laser == 0) {
if (_root.hud.weapon.laser._alpha > 40) {
hero.body.hand.gun.weapon.gotoAndStop(1);
_root.fireflame = undefined;
_root.hud.weapon.laser._alpha = 40;
_root.hud.weapon_score.cntlaser.text = "0";
currentGun = "pistol";
_root.hud.weapon.activweapon.gotoAndStop(1);
}
} else {
_root.hud.weapon_score.cntlaser.text = totalBullets.laser;
}
if (Key.isDown(_root.weapon1)) {
_root.s_flame.stop();
currentGun = "pistol";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(1);
}
if (Key.isDown(_root.weapon2) and (totalBullets.shotgun > 0)) {
_root.s_flame.stop();
currentGun = "shotgun";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(2);
}
if (Key.isDown(_root.weapon3) and (totalBullets.flame > 0)) {
currentGun = "flame";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(3);
}
if (Key.isDown(_root.weapon4) and (totalBullets.grenade > 0)) {
_root.s_flame.stop();
currentGun = "grenade";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(4);
}
if (Key.isDown(_root.weapon5) and (totalBullets.rocket > 0)) {
_root.s_flame.stop();
currentGun = "rocket";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(5);
}
if (Key.isDown(_root.weapon6) and (totalBullets.laser > 0)) {
_root.s_flame.stop();
currentGun = "laser";
fireInt = intervalBullets[currentGun];
_root.hud.weapon.activweapon.gotoAndStop(6);
}
if (nextOperation) {
if (health <= 0) {
action = "die";
health = 0;
}
if (control) {
leftKey = _parent.leftKey;
rightKey = _parent.rightKey;
} else {
rightKey = _parent.leftKey;
leftKey = _parent.rightKey;
controlTimer--;
}
if (!controlTimer) {
control = true;
controlTimer = 30;
}
if ((action == "standing") || (action == "walking")) {
hero.body.jet.flame._visible = false;
temperature = Math.max(temperature - cooling, 0);
vSpeed = 1;
if (Key.isDown(leftKey)) {
hSpeed = -walkSpeed;
action = "walking";
} else if (Key.isDown(rightKey)) {
hSpeed = walkSpeed;
action = "walking";
} else {
hSpeed = 0;
action = "standing";
}
if ((!_parent.ground.hitTest(_x + (hit._width / 2), _y + 10, true)) and (!_parent.ground.hitTest(_x - (hit._width / 2), _y + 10, true))) {
if ((!_parent.jaggies.hitTest(_x + (hit._width / 2), _y + 5, true)) and (!_parent.jaggies.hitTest(_x - (hit._width / 2), _y + 5, true))) {
action = "down";
vSpeed = 0;
}
}
if (Key.isDown(_parent.jumpKey)) {
if (_parent.ground.hitTest(_x + (hit._width / 2), _y + 10, true) or _parent.ground.hitTest(_x - (hit._width / 2), _y + 10, true)) {
jumpKeyDown = true;
action = "jump";
vSpeed = -23;
}
if (_parent.jaggies.hitTest(_x + (hit._width / 2), _y + 5, true) or _parent.jaggies.hitTest(_x - (hit._width / 2), _y + 5, true)) {
jumpKeyDown = true;
action = "jump";
vSpeed = -23;
}
}
} else if (action == "up") {
hero.body.jet.flame._visible = true;
if (Key.isDown(leftKey)) {
if (hSpeed > ((-walkSpeed) * 1.5)) {
hSpeed = hSpeed - 0.5;
}
} else if (Key.isDown(rightKey)) {
if (hSpeed < (walkSpeed * 1.5)) {
hSpeed = hSpeed + 0.5;
}
}
vSpeed = vSpeed + 0.6;
if ((Key.isDown(_parent.upKey) && (fuel > 0)) && (temperature < 100)) {
hero.body.jet.flame._visible = true;
temperature = Math.min(temperature + heating, 100);
fuel = Math.max(fuel - fuelExpense, 0);
vSpeed = vSpeed - 0.65;
} else if (Key.isDown(_parent.downKey)) {
vSpeed = vSpeed + 0.3;
}
if (vSpeed > 0) {
action = "down";
}
} else if (action == "jump") {
temperature = Math.max(temperature - cooling, 0);
if ((!Key.isDown(_parent.jumpKey)) && (!doubleJumpKeyDown)) {
jumpKeyDown = false;
} else if ((((!jumpKeyDown) && (!doubleJumpKeyDown)) && (fuel > 0)) && (temperature < 100)) {
action = "up";
vSpeed = vSpeed - 13;
temperature = Math.min(temperature + heating, 100);
fuel = Math.max(fuel - fuelExpense, 0);
doubleJumpKeyDown = true;
}
if (Key.isDown(leftKey)) {
if (hSpeed > ((-walkSpeed) * 1.5)) {
hSpeed = hSpeed - 0.5;
}
} else if (Key.isDown(rightKey)) {
if (hSpeed < (walkSpeed * 1.5)) {
hSpeed = hSpeed + 0.5;
}
}
vSpeed = vSpeed + 2.6;
if (vSpeed > 0) {
doubleJumpKeyDown = false;
action = "down";
}
} else if (action == "down") {
temperature = Math.max(temperature - cooling, 0);
if (Key.isDown(leftKey)) {
if (hSpeed > ((-walkSpeed) * 1.5)) {
hSpeed = hSpeed - 0.5;
}
} else if (Key.isDown(rightKey)) {
if (hSpeed < (walkSpeed * 1.5)) {
hSpeed = hSpeed + 0.5;
}
}
if (vSpeed < 6) {
vSpeed = vSpeed + 3.6;
} else {
vSpeed = vSpeed + 2.1;
}
if ((Key.isDown(_parent.upKey) && (fuel > 0)) && (temperature < 100)) {
vSpeed = vSpeed - 0.85;
temperature = Math.min(temperature + heating, 100);
fuel = Math.max(fuel - fuelExpense, 0);
hero.body.jet.flame._visible = true;
} else if (Key.isDown(_parent.downKey)) {
if (vSpeed < 10) {
vSpeed = vSpeed + 0.3;
}
} else {
hero.body.jet.flame._visible = false;
}
if (_parent.ground.hitTest(_x, _y, true) or _parent.jaggies.hitTest(_x, _y, true)) {
if (Key.isDown(leftKey) || Key.isDown(rightKey)) {
action = "walking";
} else {
action = "standing";
}
}
}
if (hero.body.hand.gun.weapon.fireflame != undefined) {
curFrame = hero.body.hand.gun.weapon.fireflame._currentframe;
} else {
curFrame = undefined;
}
if ((action == "walking") && ((Key.isDown(leftKey) && (_parent._xmouse < _x)) || (Key.isDown(rightKey) && (_parent._xmouse > _x)))) {
gotoAndStop("hero_walk");
} else if ((action == "walking") && ((Key.isDown(leftKey) && (_parent._xmouse > _x)) || (Key.isDown(rightKey) && (_parent._xmouse < _x)))) {
gotoAndStop("hero_walkback");
} else if (action == "down") {
gotoAndStop("hero_jump");
hero.gotoAndPlay("jump_down");
} else if (action == "jump") {
gotoAndStop("hero_jump");
hero.gotoAndPlay("jump_up");
} else if (action == "die") {
stopAllSounds();
_root.death.play();
hSpeed = 0;
} else if (action == "hero_hit") {
gotoAndStop("hero_hit");
hSpeed = 0;
} else if (action == "hero_fire") {
gotoAndStop("hero_fire");
hero.body.hand.gun.weapon.gotoAndStop("fire");
} else {
gotoAndStop("hero_stand");
}
hero.body.hand.gun.gotoAndStop(currentGun);
if (curFrame != undefined) {
hero.body.hand.gun.weapon.gotoAndStop("fire");
hero.body.hand.gun.weapon.fireflame.gotoAndPlay(curFrame);
}
if (_root.fireflame != undefined) {
if (currentGun == "flame") {
hero.body.hand.gun.weapon.gotoAndStop("fire");
}
}
if (hSpeed != 0) {
if (!_parent.pointHitTest(hit, _parent.ground, hSpeed + ((hSpeed > 0) ? 30 : -30), 0)) {
_x = _x + hSpeed;
lhSpeed = hSpeed;
}
}
if (vSpeed != 0) {
_y = _y + vSpeed;
while ((vSpeed >= 0) && ((_parent.ground.hitTest(_x + (hit._width / 2), _y - 3, true) or _parent.ground.hitTest(_x - (hit._width / 2), _y - 3, true)) or (_parent.jaggies.hitTest(_x + (hit._width / 2), _y - 3, true) or _parent.jaggies.hitTest(_x - (hit._width / 2), _y - 3, true)))) {
_y = _y - 1;
action = "standing";
vSpeed = 0;
}
}
var _local3 = 0;
if (_parent._xmouse < _x) {
myDirection = "left";
_local3 = 365;
} else {
myDirection = "right";
_local3 = 150;
}
if (myDirection == "left") {
_xscale = -xscale;
} else if (myDirection == "right") {
_xscale = xscale;
}
if (playerCam) {
if (Math.abs(((-_x) + _local3) - _parent._x) > 1) {
_parent._x = _parent._x + (((((-_x) + _local3) - (hSpeed * 8)) - _parent._x) * 0.3);
_parent.hud._x = -_parent._x;
_parent.actEkran._x = -_parent._x;
_parent.death._x = -_parent._x;
_parent.groundstay._x = -_parent._x;
}
if ((action != "down") && (Math.abs(((-_y) + 330) - _parent._y) > 1)) {
_parent._y = _parent._y + ((((-_y) + 330) - _parent._y) * 0.2);
_parent.hud._y = -_parent._y;
_parent.actEkran._y = -_parent._y;
_parent.death._y = -_parent._y;
_parent.groundstay._y = -_parent._y;
}
if ((action == "down") && (Math.abs(((-_y) + 150) - _parent._y) > 1)) {
_parent._y = _parent._y + ((((-_y) + 150) - _parent._y) * 0.05);
_parent.hud._y = -_parent._y;
_parent.actEkran._y = -_parent._y;
_parent.death._y = -_parent._y;
_parent.groundstay._y = -_parent._y;
}
}
}
} else if (_parent.pause) {
stop();
}
}
function makeBullet() {
var _local4 = {x:0, y:0};
_root.player.hero.body.hand.gun.xy.localToGlobal(_local4);
_local4.x = _local4.x - _root._x;
_local4.y = _local4.y - _root._y;
var _local3 = 0;
while (_root.player.bulletsUsed[_local3] == true) {
_local3++;
}
_root.player.bulletsUsed[_local3] = true;
_root.bullets.attachMovie("bullet_" + _root.player.currentGun, "bullet" + _local3, _local3);
_root.bullets["bullet" + _local3]._x = _local4.x;
_root.bullets["bullet" + _local3]._y = _local4.y;
if (totalBullets[currentGun] > 0) {
totalBullets[currentGun]--;
}
_root.bullets["bullet" + _local3].myNumb = _local3;
if (_local3 > _root.player.highestBullet) {
_root.player.highestBullet = _local3;
}
action = "hero_fire";
}
var action = "standing";
var myDirection = "right";
var jump = 7;
var jumpKeyDown = false;
var doubleJumpKeyDown = false;
var walkSpeed = 9;
var myWidth = null;
var myHeight = null;
var hSpeed = 0;
var lhSpeed = 0;
var vSpeed = null;
var fuelExpense = 1;
var cooling = 1;
var heating = 1;
var shieldDec = 0.5;
var weapon = "pistol";
var xscale = null;
var halfHeight = null;
var pistolLevel = 1;
var gunLevel = 1;
var playerCam = true;
var nextOperation = true;
var bulletsUsed = [];
var minesUsed = [];
var highestBullet = 0;
var highestMine = 0;
var minesTotal = 0;
var ammount = 1;
var interval = 0;
var gun_holderLevel = 10;
var holderTimer = 10;
var leftKey = null;
var rightKey = null;
var controlTimer = null;
var fire = false;
var xy = null;
var gun = null;
var hit = null;
var pickups = null;
var curFrame = undefined;
var health = 100;
var fuel = 0;
var temperature = 0;
var shield = 0;
var currentGun = "pistol";
var pistol_damage = 2;
var flame_damage = 0.4;
var rocket_damage = 13;
var shotgun_damage = 7;
var laser_damage = 2;
var grenade_damage = 10;
var hero = null;
var shieldBool = true;
var control = true;
var defence = 0;
}
Symbol 511 MovieClip [__Packages.BulletShotgun] Frame 0
class BulletShotgun extends MovieClip
{
var _rotation, onEnterFrame, onUnload;
function BulletShotgun () {
super();
_rotation = _root.player.hero.body.hand._rotation;
if (_root.player.myDirection == "left") {
_rotation = _rotation * -1;
_rotation = _rotation - 180;
}
onEnterFrame = function () {
if (!_root.pause) {
if (_root.pointHitTest(this.shot.xy, _root.ground, 0, 0, 1)) {
this.removeMovieClip();
this.onEnterFrame = null;
}
}
};
onUnload = function () {
_root.player.bulletsUsed[this.myNumb] = false;
if (this.myNumb == _root.player.highestBullet) {
while ((_root.player.bulletsUsed[_root.player.highestBullet] != true) && (_root.player.highestBullet > 0)) {
_root.player.highestBullet--;
}
}
};
}
var myNumb = null;
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 19
stop();
Symbol 396 MovieClip Frame 29
_root.nextFrame();
Symbol 414 MovieClip Frame 149
_root.gotoAndStop("menu2");
_root.actEkran.removeMovieClip();
_root.mpause.removeMovieClip();
_parent.removeMovieClip();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 9
_root.score = _root.hud.score.score.text;
_root.gotoAndStop("lastdieframe");
Symbol 415 MovieClip Frame 14
stop();
_root.player.removeMovieClip();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 5
stop();
_root.pause = true;
Symbol 419 MovieClip Frame 10
_root.pause = false;