Frame 1
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "Balls_01";
_level0.swHighScoreObject.gameTitle = "Balls Ahoy!";
_level0.swHighScoreObject.screenWidth = 550;
_level0.swHighScoreObject.screenHeight = 400;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 123456789 /* 0x75BCD15 */;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
function doSomething() {
}
function doSomething3() {
getURL ("http://google.com", _blank);
}
function doSomething2() {
getURL ("http://emperius.com", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Emperius Designs", doSomething);
Functioned2 = new ContextMenuItem("SPONSOR GOES HERE", doSomething2);
Functioned3 = new ContextMenuItem("OPTION", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
_root.menu = MENU;
Instance of Symbol 134 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.line._x = random(750);
i = 0;
while (i <= 2) {
_root.circle.duplicateMovieClip("circle" + i, i + 1);
i++;
}
if ((i = 2)) {
i = 0;
}
}
Instance of Symbol 138 MovieClip in Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 5
gotoAndStop (699);
Frame 699
local_data = SharedObject.getLocal("local_data");
if (local_data.data.myname == undefined) {
_root.gotoAndStop(700);
} else {
gamedie = local_data.data.gamedie;
akill = local_data.data.akill;
bkill = local_data.data.bkill;
legendary = local_data.data.legendary;
timebeat = local_data.data.timebeat;
arbiter = local_data.data.arbiter;
totalkills = local_data.data.totalkills;
myname = local_data.data.myname;
_root.gotoAndStop(703);
}
Frame 703
AMMO2 = 100;
AMMO3 = 110;
AMMO4 = 150;
AMMO5 = 30;
AMMO6 = 8;
AMMO7 = 45;
AMMO8 = 50;
AMMO9 = 8;
AMMO10 = 55;
AMMO11 = 200;
crosshair2 = 1;
_root.enemykillz = 0;
if (_root.totalkills >= 100) {
_root.akill = 2;
}
if (_root.totalkills >= 300) {
_root.akill = 2;
_root.bkill = 2;
}
_root.isdead = _root.isdead + 1;
local_data.data.gamedie = gamedie;
local_data.data.akill = akill;
local_data.data.bkill = bkill;
local_data.data.legendary = legendary;
local_data.data.timebeat = timebeat;
local_data.data.arbiter = arbiter;
local_data.data.totalkills = totalkills;
local_data.flush();
stop();
Frame 704
stop();
Frame 705
stop();
Frame 706
stop();
Frame 707
stop();
Frame 708
stop();
Instance of Symbol 296 MovieClip in Frame 708
onClipEvent (enterFrame) {
if (_root.gamedie == 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 301 MovieClip in Frame 708
onClipEvent (enterFrame) {
if (_root.akill >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 305 MovieClip in Frame 708
onClipEvent (enterFrame) {
if (_root.bkill >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 311 MovieClip in Frame 708
onClipEvent (enterFrame) {
if (_root.timebeat == 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 319 MovieClip in Frame 708
onClipEvent (enterFrame) {
if (_root.legendary == 2) {
this.gotoAndStop(2);
}
}
Frame 748
stop();
Frame 749
stop();
Frame 754
gotoAndPlay (821);
Frame 821
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.isdead = 0;
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Frame 822
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.herolifes = 25;
_root.bullettime = 0;
_root.gun = 1;
_root.silences = 710;
_root.LEVEL = 1;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 388 MovieClip "guy" in Frame 822
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 822
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda2");
}
}
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 822
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 822
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 822
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Frame 823
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 823
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 824
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 2;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 824
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 824
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 824
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda3");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 824
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 824
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 825
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 825
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 826
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.bullettime = 0;
_root.silences = 710;
_root.LEVEL = 3;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 826
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 826
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 826
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda4");
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 826
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda4");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 826
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 826
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Instance of Symbol 433 MovieClip "box" in Frame 826
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Frame 827
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 827
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda5");
}
}
Instance of Symbol 138 MovieClip "crosshair" in Frame 827
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 828
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 4;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 828
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 828
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 828
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda5");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 828
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 828
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 388 MovieClip "guy" in Frame 828
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 829
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 388 MovieClip "guy" in Frame 829
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Instance of Symbol 138 MovieClip "crosshair" in Frame 829
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 830
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 5;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 830
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 830
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 830
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda6");
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 830
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda6");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 830
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 830
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 830
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Frame 831
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 831
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 832
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 6;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 832
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 832
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 832
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda7");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 832
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 832
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 832
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 388 MovieClip "guy" in Frame 832
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 833
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 833
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 834
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 7;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 834
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 834
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 834
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda8");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 834
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 834
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 834
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 388 MovieClip "guy" in Frame 834
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 835
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 835
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 836
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 8;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 836
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 836
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 836
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda9");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 836
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 836
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 836
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 836
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 837
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 837
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 838
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 9;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 838
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 838
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 838
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda10");
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 838
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 838
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 838
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 839
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 839
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 840
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 10;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 840
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 840
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 840
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda11");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 840
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 840
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 840
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 840
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 840
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 841
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 841
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 842
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 11;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 842
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 842
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 842
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda12");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 842
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 842
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 842
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 842
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 842
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 843
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 843
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 844
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 12;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 844
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 844
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 844
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda13");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 844
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 844
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 844
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 844
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 844
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 845
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 845
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 846
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 10;
_root.badlife5 = _root.difficult + 10;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 13;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 846
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 846
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 846
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda14");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 846
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 846
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 846
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 846
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 846
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 847
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 847
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 848
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 14;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 848
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 848
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 848
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda15");
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 848
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 848
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 848
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 848
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 849
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 849
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 850
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 15;
_root.timer1 = 120;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 850
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 850
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 850
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda16");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 850
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 850
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 850
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 850
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 850
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 851
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 851
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 852
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 16;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 852
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 852
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 852
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda17");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 852
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 852
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 852
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 852
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 852
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (7);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (8);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 8) & (_root.AMMO8 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO8 = _root.AMMO8 - 1;
tellTarget (_root.sounds) {
gotoAndStop (9);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 9) & (_root.AMMO9 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO9 = _root.AMMO9 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (11);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (12);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 853
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 853
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 854
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 17;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 854
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 854
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 854
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda18");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 854
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 854
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 854
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 854
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 854
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (7);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (8);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 8) & (_root.AMMO8 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO8 = _root.AMMO8 - 1;
tellTarget (_root.sounds) {
gotoAndStop (9);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 9) & (_root.AMMO9 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO9 = _root.AMMO9 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (11);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (12);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 855
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 855
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 856
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 18;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 856
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 856
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 856
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda22");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 856
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 856
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 856
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 856
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 856
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 857
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 857
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 858
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 19;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 858
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 858
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 858
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda20");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 858
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 858
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 858
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 858
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 858
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (7);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (8);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 8) & (_root.AMMO8 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO8 = _root.AMMO8 - 1;
tellTarget (_root.sounds) {
gotoAndStop (9);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 9) & (_root.AMMO9 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO9 = _root.AMMO9 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (11);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (12);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 859
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Instance of Symbol 138 MovieClip "crosshair" in Frame 859
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 860
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 20;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.mshield.nextFrame();
_root.mrecharge.gotoAndPlay(1);
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 860
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 860
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 860
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda21");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 860
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 860
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 860
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 860
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 860
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (7);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (8);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 8) & (_root.AMMO8 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO8 = _root.AMMO8 - 1;
tellTarget (_root.sounds) {
gotoAndStop (9);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 9) & (_root.AMMO9 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO9 = _root.AMMO9 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (11);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (12);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Frame 861
function BadGuy() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy2() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy3() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy4() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy5() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
function BadGuy6() {
this.goX = this._x;
this.goY = this._y;
this.seenPlayerX = null;
this.seenPlayerYX = null;
this.NUMBER = Number(this._name.substring(7));
this.I_saw_player = false;
}
_root.reload = 0;
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy.prototype = new MovieClip();
BadGuy.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead1 == 0) {
_root.guyvisible = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible = 0;
}
}
};
Object.registerClass("BadGuy", BadGuy);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy2.prototype = new MovieClip();
BadGuy2.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy2.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy2.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead2 == 0) {
_root.guyvisible2 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible2 = 0;
}
}
};
Object.registerClass("BadGuy2", BadGuy2);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy3.prototype = new MovieClip();
BadGuy3.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy3.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy3.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead3 == 0) {
_root.guyvisible3 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible3 = 0;
}
}
};
Object.registerClass("BadGuy3", BadGuy3);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy4.prototype = new MovieClip();
BadGuy4.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy4.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy4.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead4 == 0) {
_root.guyvisible4 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible4 = 0;
}
}
};
Object.registerClass("BadGuy4", BadGuy4);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy5.prototype = new MovieClip();
BadGuy5.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy5.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy5.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead5 == 0) {
_root.guyvisible5 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible5 = 0;
}
}
};
Object.registerClass("BadGuy5", BadGuy5);
theDistance = function (obj1, obj2) {
return(Math.sqrt(((obj1._x - obj2._x) * (obj1._x - obj2._x)) + ((obj1._y - obj2._y) * (obj1._y - obj2._y))));
};
BadGuy6.prototype = new MovieClip();
BadGuy6.prototype.onEnterFrame = function () {
this.lookForPlayer();
};
BadGuy6.prototype.I_see_player = function () {
var _local6 = _root.guy._x - this._x;
var _local5 = _root.guy._y - this._y;
var _local4 = Math.floor(theDistance(this, _root.guy) / 5);
var _local3 = 0;
while (_local3 < _local4) {
if (_root.walls.hitTest(this._x + ((_local3 * _local6) / _local4), this._y + ((_local3 * _local5) / _local4), true)) {
return(false);
}
_local3++;
}
return(true);
};
BadGuy6.prototype.lookForPlayer = function () {
if ((_root.theDistance(_root.guy, this) <= 700) && (this.I_see_player())) {
this.I_saw_player = true;
this.seenPlayerX = _root.guy._x;
this.seenPlayerY = _root.guy._y;
if (_root.dead6 == 0) {
_root.guyvisible6 = 1;
} else if (this.I_saw_player) {
this._x = this.seenPlayerX._x;
this._y = this.seenPlayerY._y;
_root.guyvisible6 = 0;
}
}
};
Object.registerClass("BadGuy6", BadGuy6);
Frame 862
function Bullet() {
if (_root.bullettime == 0) {
this.speed = 18;
} else if (_root.bullettime == 1) {
this.speed = 6;
}
}
function Bullet3() {
if (_root.bullettime == 0) {
this.speed = 15;
} else if (_root.bullettime == 1) {
this.speed = 5;
}
}
function Bullet2() {
this.speed = 6;
}
_root.badlife = _root.difficult;
_root.badlife2 = _root.difficult;
_root.badlife3 = _root.difficult;
_root.badlife4 = _root.difficult + 2;
_root.badlife5 = _root.difficult + 2;
_root.badlife6 = _root.difficult;
_root.bullettime = 0;
_root.LEVEL = 21;
_root.silence._width = _root.silences;
bad6hat = random(5);
bad5hat = random(5);
bad4hat = random(5);
bad3hat = random(5);
bad2hat = random(5);
bad1hat = random(5);
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
_global.bullet_depth = 100000 /* 0x0186A0 */;
addBullet = function (x, y, rot) {
_root.attachMovie("bullet", "bullet_" + _global.bullet_depth, _global.bullet_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet_depth++;
bn = "box" + n;
duplicateMovieClip ("box", bn, n);
n = Number(n) + 1;
_root.shoots = _root.shoots + 1;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet.prototype = new MovieClip();
Bullet.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this.po)) {
_root.badlife = _root.badlife - 1;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
if (_root.dead1 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad2.hit.hitTest(this.po)) {
_root.badlife2 = _root.badlife2 - 1;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
if (_root.dead2 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad3.hit.hitTest(this.po)) {
_root.badlife3 = _root.badlife3 - 1;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
if (_root.dead3 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad4.hit.hitTest(this.po)) {
_root.badlife4 = _root.badlife4 - 1;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
if (_root.dead4 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad5.hit.hitTest(this.po)) {
_root.badlife5 = _root.badlife5 - 1;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
if (_root.dead5 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
if (_root.bad6.hit.hitTest(this.po)) {
_root.badlife6 = _root.badlife6 - 1;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
if (_root.dead6 == 0) {
tellTarget (this) {
gotoAndPlay (6);
this.speed = 0;
};
}
}
};
Object.registerClass("bullet", Bullet);
_global.bullet3_depth = 1000;
addBullet3 = function (x, y, rot) {
_root.attachMovie("bullet3", "bullet3_" + _global.bullet3_depth, _global.bullet3_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet3_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet3.prototype = new MovieClip();
Bullet3.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.guy.point2.hitTest(this.pu)) {
this.removeMovieClip();
_root.herolifes = _root.herolifes - 1;
tellTarget (_root.healthbar) {
gotoAndPlay (2);
};
}
};
Object.registerClass("bullet3", Bullet3);
_global.bullet2_depth = 100;
addBullet2 = function (x, y, rot) {
_root.attachMovie("bullet2", "bullet2_" + _global.bullet2_depth, _global.bullet2_depth, {_x:x, _y:y, _rotation:rot});
_global.bullet2_depth++;
};
degToRad = function (deg) {
rad = (3.141593 * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / 3.141593;
return(deg);
};
Bullet2.prototype = new MovieClip();
Bullet2.prototype.onEnterFrame = function () {
var _local3 = degToRad(this._rotation);
this._x = this._x + (this.speed * Math.cos(_local3));
this._y = this._y + (this.speed * Math.sin(_local3));
if (_root.walls.hitTest(this._x, this._y, true)) {
tellTarget (this) {
gotoAndPlay (2);
this.speed = 0;
};
}
if (_root.bad.hit.hitTest(this)) {
_root.badlife = _root.badlife - 10;
if (_root.badlife < 1) {
tellTarget (_root.bad) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad2.hit.hitTest(this)) {
_root.badlife2 = _root.badlife2 - 10;
if (_root.badlife2 < 1) {
tellTarget (_root.bad2) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad3.hit.hitTest(this)) {
_root.badlife3 = _root.badlife3 - 10;
if (_root.badlife3 < 1) {
tellTarget (_root.bad3) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad4.hit.hitTest(this)) {
_root.badlife4 = _root.badlife4 - 10;
if (_root.badlife4 < 1) {
tellTarget (_root.bad4) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad5.hit.hitTest(this)) {
_root.badlife5 = _root.badlife5 - 10;
if (_root.badlife5 < 1) {
tellTarget (_root.bad5) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
if (_root.bad6.hit.hitTest(this)) {
_root.badlife6 = _root.badlife6 - 10;
if (_root.badlife6 < 1) {
tellTarget (_root.bad6) {
gotoAndStop (9);
};
}
tellTarget (this) {
gotoAndStop (2);
};
this.speed = 0;
}
};
Object.registerClass("bullet2", Bullet2);
Instance of Symbol 429 MovieClip [BadGuy6] "bad6" in Frame 862
onClipEvent (enterFrame) {
if (_root.guyvisible6 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 431 MovieClip [BadGuy5] "bad5" in Frame 862
onClipEvent (enterFrame) {
if (_root.guyvisible5 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 400 MovieClip [NextLevel] "EXIT" in Frame 862
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda22");
}
}
Instance of Symbol 537 MovieClip [BadGuy4] "bad4" in Frame 862
onClipEvent (enterFrame) {
if (_root.guyvisible4 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 551 MovieClip [BadGuy3] "bad3" in Frame 862
onClipEvent (enterFrame) {
if (_root.guyvisible3 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 433 MovieClip "box" in Frame 862
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 559 MovieClip [BadGuy2] "bad2" in Frame 862
onClipEvent (enterFrame) {
if (_root.guyvisible2 == 1) {
tellTarget (this) {
gotoAndPlay (2);
x_diff = this._x - _root.guy._x;
y_diff = this._y - _root.guy._y;
radian = Math.atan2(y_diff, x_diff);
degree = (radian * 180) / 3.141593;
degree = Math.round(degree);
setProperty(this, _rotation , degree);
a_x = Math.round(_root.guy._x);
a_y = Math.round(_root.guy._y);
c_x = Math.round(_root.collision_clip._x);
c_y = Math.round(_root.collision_clip._y);
if ((a_x < (c_x + boundary)) && (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) && (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 388 MovieClip "guy" in Frame 862
onClipEvent (mouseDown) {
if ((_root.gun == 1) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
tellTarget (_root.sounds) {
gotoAndStop (2);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
tellTarget (_root.sounds) {
gotoAndStop (3);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 2) & (_root.AMMO2 > 0)) & (_root.kurok == true)) & (_root.shoot1time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO2 = _root.AMMO2 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (4);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 3) & (_root.AMMO3 > 0)) & (_root.kurok == true)) & (_root.shoot2time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(10) + 355)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO3 = _root.AMMO3 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (5);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 4) & (_root.AMMO4 > 0)) & (_root.kurok == true)) & (_root.shoot3time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO4 = _root.AMMO4 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 5) & (_root.AMMO5 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
_root.addBullet(this._x, this._y, (this._rotation = this._rotation - 5));
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + 10));
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO5 = _root.AMMO5 - 1;
tellTarget (_root.sounds) {
gotoAndStop (6);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (7);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 6) & (_root.AMMO6 > 0)) & (_root.kurok == true)) & (_root.shoot4time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO6 = _root.AMMO6 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (8);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 7) & (_root.AMMO7 > 0)) & (_root.kurok == true)) & (_root.shoot5time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(30) + 345)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO7 = _root.AMMO7 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 8) & (_root.AMMO8 > 0)) & (_root.reload == 0)) {
_root.addBullet(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO8 = _root.AMMO8 - 1;
tellTarget (_root.sounds) {
gotoAndStop (9);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (mouseDown) {
if (((_root.gun == 9) & (_root.AMMO9 > 0)) & (_root.reload == 0)) {
_root.addBullet2(this._x, this._y, this._rotation);
tellTarget (this.guy) {
gotoAndPlay (2);
_root.AMMO9 = _root.AMMO9 - 1;
tellTarget (_root.sounds) {
gotoAndStop (10);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (11);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 10) & (_root.AMMO10 > 0)) & (_root.kurok == true)) & (_root.shoot6time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(6) + 357)));
tellTarget (this.guy) {
gotoAndPlay (4);
_root.AMMO10 = _root.AMMO10 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time == 1)) & (_root.bullettime == 0)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (12);
tellTarget (_root.crosshair.cross) {
nextFrame();
};
};
};
}
}
onClipEvent (enterFrame) {
if (((((_root.gun == 11) & (_root.AMMO11 > 0)) & (_root.kurok == true)) & (_root.shoot7time1 == 1)) & (_root.bullettime == 1)) {
_root.addBullet(this._x, this._y, (this._rotation = this._rotation + (random(20) + 350)));
tellTarget (this.guy) {
gotoAndPlay (6);
_root.AMMO11 = _root.AMMO11 - 1;
tellTarget (_root.sounds) {
gotoAndStop (13);
};
};
}
}
onClipEvent (enterFrame) {
this._rotation = _root.radToDeg(Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x));
}
onClipEvent (enterFrame) {
if (_root.bullettime == 0) {
moveSpeed = 2;
} else if (_root.bullettime == 1) {
moveSpeed = 1;
_root.silence._width = _root.silence._width - 1;
_root.silences = _root.silences - 1;
_root.slowmotiontime = _root.slowmotiontime + 1;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this._x = this._x + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x - 3;
}
} else if (Key.isDown(65)) {
this._x = this._x - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._x = this._x + 3;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
this._y = this._y + moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y - 3;
}
} else if (Key.isDown(87)) {
this._y = this._y - moveSpeed;
if (_root.bullettime == 1) {
tellTarget (this) {
gotoAndPlay (15);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
} else if (_root.bullettime == 0) {
tellTarget (this) {
gotoAndPlay (2);
tellTarget (_root.cursor) {
gotoAndPlay (2);
};
};
}
if (_root.walls.hitTest(this._x, this._y, true)) {
this._y = this._y + 3;
}
}
}
onClipEvent (enterFrame) {
if ((_root.reload == 0) & (_root.ammo1 < 7)) {
if (Key.isDown(82)) {
tellTarget (this) {
gotoAndPlay (27);
};
}
}
}
Instance of Symbol 134 MovieClip in Frame 863
onClipEvent (enterFrame) {
_root.line._x = random(750);
i = 0;
while (i <= 2) {
_root.circle.duplicateMovieClip("circle" + i, i + 1);
i++;
}
if ((i = 2)) {
i = 0;
}
}
Instance of Symbol 138 MovieClip in Frame 863
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 876
stop();
Frame 877
if (_root.difficult == 14) {
gotoAndStop (879);
}
Frame 878
stop();
if (_root.totalkills >= 100) {
_root.akill = 2;
}
if (_root.totalkills >= 300) {
_root.akill = 2;
_root.bkill = 2;
}
if (_root.difficult == 14) {
_root.legendary = 2;
}
if (_root.timee <= 540) {
_root.timebeat = 2;
}
if (_root.isdead == 0) {
_root.gamedie = 2;
}
_root.totalkills = _root.totalkills + _root.enemykillz;
local_data.data.gamedie = gamedie;
local_data.data.akill = akill;
local_data.data.bkill = bkill;
local_data.data.legendary = legendary;
local_data.data.timebeat = timebeat;
local_data.data.arbiter = arbiter;
local_data.data.totalkills = totalkills;
local_data.flush();
Frame 879
stop();
if (_root.totalkills >= 100) {
_root.akill = 2;
}
if (_root.totalkills >= 300) {
_root.akill = 2;
_root.bkill = 2;
}
if (_root.difficult == 14) {
_root.legendary = 2;
}
if (_root.timee <= 540) {
_root.timebeat = 2;
}
local_data.data.gamedie = gamedie;
local_data.data.akill = akill;
local_data.data.bkill = bkill;
local_data.data.legendary = legendary;
local_data.data.timebeat = timebeat;
local_data.data.arbiter = arbiter;
local_data.flush();
Frame 880
stop();
Frame 881
stop();
Frame 882
stop();
Frame 883
stop();
Frame 884
stop();
Frame 885
stop();
Instance of Symbol 138 MovieClip in Frame 900
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 973
stop();
if (_root.totalkills >= 100) {
_root.akill = 2;
}
if (_root.totalkills >= 300) {
_root.akill = 2;
_root.bkill = 2;
}
_root.isdead = _root.isdead + 1;
local_data.data.gamedie = gamedie;
local_data.data.akill = akill;
local_data.data.bkill = bkill;
local_data.data.legendary = legendary;
local_data.data.timebeat = timebeat;
local_data.data.arbiter = arbiter;
local_data.data.totalkills = totalkills;
local_data.flush();
Symbol 8 MovieClip [Colt_1917] Frame 1
stop();
Symbol 8 MovieClip [Colt_1917] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 12 MovieClip [Browning_1921] Frame 1
stop();
Symbol 12 MovieClip [Browning_1921] Frame 2
this._parent._parent.play();
var i = (-_global.OPTIONS.shotgun);
while (i <= _global.OPTIONS.shotgun) {
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation + (i * _global.OPTIONS.drob), this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
i++;
}
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 14 MovieClip [AK_47] Frame 1
stop();
Symbol 14 MovieClip [AK_47] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 18 MovieClip Frame 16
stop();
Instance of Symbol 31 MovieClip in Symbol 32 MovieClip Frame 3
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 32 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 49 MovieClip Frame 16
stop();
_parent.removeMovieClip();
Symbol 50 MovieClip [bullet] Frame 1
stop();
Symbol 50 MovieClip [bullet] Frame 2
stop();
Symbol 50 MovieClip [bullet] Frame 3
stop();
Symbol 50 MovieClip [bullet] Frame 4
gotoAndStop (3);
Symbol 50 MovieClip [bullet] Frame 5
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip [bullet] Frame 5
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip [bullet] Frame 5
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 50 MovieClip [bullet] Frame 6
stop();
Symbol 50 MovieClip [bullet] Frame 7
gotoAndStop (6);
Symbol 52 MovieClip Frame 45
stop();
Symbol 54 MovieClip Frame 18
stop();
Symbol 65 MovieClip Frame 10
stop();
Symbol 66 MovieClip Frame 19
stop();
Symbol 67 MovieClip [bullet2] Frame 1
stop();
Symbol 67 MovieClip [bullet2] Frame 2
stop();
Symbol 67 MovieClip [bullet2] Frame 3
stop();
Symbol 67 MovieClip [bullet2] Frame 4
gotoAndStop (3);
Symbol 69 MovieClip Frame 16
stop();
Instance of Symbol 31 MovieClip in Symbol 70 MovieClip Frame 3
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 70 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 71 MovieClip [bullet3] Frame 1
stop();
Symbol 71 MovieClip [bullet3] Frame 2
stop();
Symbol 71 MovieClip [bullet3] Frame 3
stop();
Symbol 71 MovieClip [bullet3] Frame 4
gotoAndStop (3);
Symbol 81 MovieClip [Browning_1921_gr] Frame 1
stop();
Symbol 81 MovieClip [Browning_1921_gr] Frame 2
stop();
Symbol 89 MovieClip [SuperShotgun] Frame 1
stop();
Symbol 89 MovieClip [SuperShotgun] Frame 2
this._parent._parent.play();
var i = ((-_global.OPTIONS.shotgun) * 3);
while (i <= (_global.OPTIONS.shotgun * 3)) {
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation + ((i * _global.OPTIONS.drob) / 2), this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
i++;
}
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 91 MovieClip [M_16] Frame 1
stop();
Symbol 91 MovieClip [M_16] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 93 MovieClip [RocketLauncher] Frame 1
stop();
Symbol 93 MovieClip [RocketLauncher] Frame 2
this._parent._parent.play();
_root.addRocket(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.kick);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 95 MovieClip [Thompson] Frame 1
stop();
Symbol 95 MovieClip [Thompson] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 97 MovieClip [PM] Frame 1
stop();
Symbol 97 MovieClip [PM] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 99 MovieClip [Beretta] Frame 1
stop();
Symbol 99 MovieClip [Beretta] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 101 MovieClip [HK_28] Frame 1
stop();
Symbol 101 MovieClip [HK_28] Frame 2
this._parent._parent.play();
var i = ((-_global.OPTIONS.shotgun) * 2);
while (i <= (_global.OPTIONS.shotgun * 2)) {
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation + (i * _global.OPTIONS.drob), this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
i++;
}
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 103 MovieClip [UZI] Frame 1
stop();
Symbol 103 MovieClip [UZI] Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 119 Button
on (release) {
_root.play();
}
Symbol 122 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 122 MovieClip Frame 2
gotoAndPlay (1);
Symbol 137 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 734 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 735 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 736 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 737 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 738 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 158 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
this.unloadMovie();
_root.play();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 180 Button
on (press) {
getURL ("http://www.emperius.com/", "_blank");
}
Symbol 182 Button
on (release) {
_root.gotoAndPlay(195);
}
Symbol 183 MovieClip Frame 1
_root.stop();
_root.stop();
Symbol 183 MovieClip Frame 115
_root.stop();
Symbol 183 MovieClip Frame 125
_root.play();
Symbol 189 Button
on (release) {
local_data.clear();
local_data.clear();
local_data.data.myname = myname;
local_data.flush();
_root.totalkills = 0;
_root.akill = 0;
_root.bkill = 0;
_root.timebeat = 0;
_root.legendary = 0;
_root.gotoAndStop(703);
}
Symbol 198 Button
on (press) {
_root.gotoAndStop("start");
}
Symbol 202 Button
on (press) {
_root.gotoAndStop("instructions");
}
Symbol 204 Button
on (press) {
_root.gotoAndStop("options");
}
Symbol 206 Button
on (press) {
_root.gotoAndStop("credit");
}
Symbol 214 Button
on (release) {
getURL ("http://www.armorgames.com/games/black.html ", "_blank");
}
Symbol 216 MovieClip Frame 25
stop();
Symbol 224 Button
on (press) {
getURL ("http://www.emperius.com", blank);
}
Symbol 228 Button
on (release) {
gotoAndStop (708);
}
Symbol 237 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 243 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.crosshair2 = 1;
_root.difficult = 5;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
_root.enemykillz = 0;
}
Symbol 252 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 7;
_root.crosshair2 = 1;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
_root.enemykillz = 0;
play();
}
Symbol 260 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 10;
_root.crosshair2 = 1;
_root.shoots = 0;
_root.timee = 0;
_root.enemykillz = 0;
_root.slowmotiontime = 0;
play();
}
Symbol 269 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 14;
_root.crosshair2 = 0;
_root.shoots = 0;
_root.timee = 0;
_root.enemykillz = 0;
_root.slowmotiontime = 0;
play();
}
Symbol 271 Button
on (press) {
_root.gotoAndStop("menu2");
}
Symbol 273 Button
on (release) {
_quality = "LOW";
}
Symbol 275 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 277 Button
on (release) {
_quality = "HIGH";
}
Symbol 296 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 318 Button
on (press) {
_root.AMMO2 = 999;
_root.AMMO3 = 999;
_root.AMMO4 = 999;
_root.AMMO5 = 999;
_root.AMMO6 = 999;
_root.AMMO7 = 999;
_root.AMMO8 = 999;
_root.AMMO9 = 999;
_root.AMMO10 = 999;
_root.AMMO11 = 999;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
_root.difficult = 10;
_root.crosshair2 = 1;
_root.gotoAndPlay("startgame");
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 333 Button
on (release) {
nextFrame();
}
Symbol 353 MovieClip Frame 16
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 372 MovieClip [MP5] Frame 1
stop();
Symbol 372 MovieClip [MP5] Frame 2
stop();
Symbol 372 MovieClip [MP5] Frame 3
stop();
Symbol 372 MovieClip [MP5] Frame 4
stop();
Symbol 372 MovieClip [MP5] Frame 5
stop();
Symbol 372 MovieClip [MP5] Frame 6
stop();
Symbol 372 MovieClip [MP5] Frame 7
stop();
Symbol 372 MovieClip [MP5] Frame 8
stop();
Symbol 372 MovieClip [MP5] Frame 9
stop();
Symbol 372 MovieClip [MP5] Frame 10
stop();
Symbol 372 MovieClip [MP5] Frame 11
stop();
Symbol 380 MovieClip Frame 1
stop();
_root.reload = 0;
Symbol 380 MovieClip Frame 2
_root.reload = 1;
Symbol 380 MovieClip Frame 3
_root.reload = 1;
Symbol 380 MovieClip Frame 12
gotoAndStop (1);
_root.reload = 0;
Symbol 386 MovieClip Frame 1
_root.moves = false;
Symbol 387 MovieClip Frame 1
_root.moves2 = false;
Symbol 388 MovieClip Frame 1
if (_root.gun == 1) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (1);
};
}
if (_root.gun == 2) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (2);
};
}
if (_root.gun == 3) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (3);
};
}
if (_root.gun == 4) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (4);
};
}
if (_root.gun == 5) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (5);
};
}
if (_root.gun == 6) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (9);
};
}
stop();
_root.moves = true;
_root.moves2 = true;
Symbol 388 MovieClip Frame 2
if (_root.gun == 1) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (1);
};
}
if (_root.gun == 2) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (2);
};
}
if (_root.gun == 3) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (3);
};
}
if (_root.gun == 4) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (4);
};
}
if (_root.gun == 5) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (5);
};
}
if (_root.gun == 6) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (9);
};
}
Symbol 388 MovieClip Frame 6
gotoAndPlay (1);
Symbol 388 MovieClip Frame 15
if (_root.gun == 1) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (1);
};
}
if (_root.gun == 2) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (2);
};
}
if (_root.gun == 3) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (3);
};
}
if (_root.gun == 4) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (4);
};
}
if (_root.gun == 5) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (5);
};
}
if (_root.gun == 6) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (9);
};
}
Symbol 388 MovieClip Frame 18
gotoAndPlay (1);
Symbol 394 MovieClip Frame 1
stop();
Instance of Symbol 394 MovieClip "door" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip "door2" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 1
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 2
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 3
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 4
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 5
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 6
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 7
stop();
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 8
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 9
stop();
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 10
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 11
stop();
Symbol 407 MovieClip [Helm_Terror_Drug] Frame 12
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
this._parent._parent.play();
_root.addBullet(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation, this._parent._parent._parent.weapon.damage, this._parent._parent._parent.kick);
_root.addShell(this._parent._parent._parent._x, this._parent._parent._parent._y, this._parent._parent._parent._rotation);
if (this._parent._parent._parent.kick < this._parent._parent._parent.weapon.max_kick) {
this._parent._parent._parent.kick = this._parent._parent._parent.kick + this._parent._parent._parent.weapon.kickback;
} else {
this._parent._parent._parent.kick = this._parent._parent._parent.weapon.max_kick;
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 3
stop();
Symbol 412 MovieClip Frame 4
stop();
Symbol 412 MovieClip Frame 5
stop();
Symbol 412 MovieClip Frame 6
stop();
Symbol 412 MovieClip Frame 7
stop();
Symbol 412 MovieClip Frame 8
stop();
Symbol 412 MovieClip Frame 9
stop();
Symbol 412 MovieClip Frame 10
stop();
Symbol 412 MovieClip Frame 11
stop();
Symbol 428 MovieClip Frame 4
_root.enemykillz = _root.enemykillz + 1;
Instance of Symbol 81 MovieClip [Browning_1921_gr] in Symbol 428 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.point)) {
_root.AMMO2 = _root.AMMO2 + random(10);
_root.AMMO3 = _root.AMMO3 + random(10);
_root.AMMO4 = _root.AMMO4 + random(5);
_root.AMMO5 = _root.AMMO5 + random(10);
_root.AMMO6 = _root.AMMO6 + random(1);
_root.AMMO7 = _root.AMMO7 + random(20);
_root.AMMO8 = _root.AMMO8 + random(4);
_root.AMMO9 = _root.AMMO9 + random(1);
_root.AMMO10 = _root.AMMO10 + random(5);
_root.AMMO11 = _root.AMMO11 + random(20);
tellTarget (this) {
gotoAndPlay (2);
};
}
}
Symbol 428 MovieClip Frame 60
stop();
Symbol 429 MovieClip [BadGuy6] Frame 1
stop();
_root.dead6 = 0;
Symbol 429 MovieClip [BadGuy6] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 429 MovieClip [BadGuy6] Frame 8
gotoAndPlay (1);
Symbol 429 MovieClip [BadGuy6] Frame 9
stop();
_root.dead6 = 1;
_root.guyvisible6 = 0;
Symbol 429 MovieClip [BadGuy6] Frame 10
stop();
_root.dead6 = 1;
_root.guyvisible6 = 0;
Symbol 431 MovieClip [BadGuy5] Frame 1
stop();
_root.dead5 = 0;
Symbol 431 MovieClip [BadGuy5] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 431 MovieClip [BadGuy5] Frame 8
gotoAndPlay (1);
Symbol 431 MovieClip [BadGuy5] Frame 9
stop();
_root.dead5 = 1;
_root.guyvisible5 = 0;
Symbol 431 MovieClip [BadGuy5] Frame 10
stop();
_root.dead5 = 1;
_root.guyvisible5 = 0;
Symbol 433 MovieClip Frame 46
this.removeMovieClip();
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 2
play();
Symbol 450 MovieClip Frame 1
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 2
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 3
tellTarget (_root.crosshair.cross) {
prevFrame();
};
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 4
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 5
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 6
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 7
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 8
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 9
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 10
tellTarget (_root.crosshair.cross) {
prevFrame();
};
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 11
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 12
_root.guyvisible = 0;
_root.guyvisible2 = 0;
_root.guyvisible3 = 0;
_root.guyvisible4 = 0;
_root.guyvisible5 = 0;
_root.guyvisible6 = 0;
if (_root.herolifes < 1) {
_root.gotoAndPlay("dead");
}
Symbol 450 MovieClip Frame 13
if ((_root.bullettime == 0) & (_root.silence._width < 705)) {
_root.silence._width = _root.silence._width + 5;
_root.silences = _root.silences + 5;
}
if (_root.silence._width < 1) {
_root.bullettime = 0;
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
}
Symbol 452 MovieClip Frame 1
if (_root.bullettime == 1) {
tellTarget (_root.bulletshow2) {
gotoAndStop (2);
};
}
if (_root.bullettime == 0) {
tellTarget (_root.bulletshow2) {
gotoAndStop (1);
};
}
if (_root.crosshair2 == 0) {
_root.crosshair._alpha = 0;
}
if (_root.gun == 1) {
tellTarget (_root.weapon1) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (1);
};
};
}
if (_root.gun == 2) {
tellTarget (_root.weapon2) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (2);
};
};
}
if (_root.gun == 3) {
tellTarget (_root.weapon3) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (3);
};
};
}
if (_root.gun == 4) {
tellTarget (_root.weapon4) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (4);
};
};
}
if (_root.gun == 5) {
tellTarget (_root.weapon5) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (5);
};
};
}
if (_root.gun == 6) {
tellTarget (_root.weapon6) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (9);
};
};
}
if (_root.bad6hat == 0) {
tellTarget (_root.bad6.hat) {
gotoAndStop (1);
};
}
if (_root.bad6hat == 1) {
tellTarget (_root.bad6.hat) {
gotoAndStop (3);
};
}
if (_root.bad6hat == 2) {
tellTarget (_root.bad6.hat) {
gotoAndStop (5);
};
}
if (_root.bad6hat == 3) {
tellTarget (_root.bad6.hat) {
gotoAndStop (7);
};
}
if (_root.bad6hat == 4) {
tellTarget (_root.bad6.hat) {
gotoAndStop (9);
};
}
if (_root.bad6hat == 5) {
tellTarget (_root.bad6.hat) {
gotoAndStop (11);
};
}
if (_root.bad5hat == 0) {
tellTarget (_root.bad5.hat) {
gotoAndStop (1);
};
}
if (_root.bad5hat == 1) {
tellTarget (_root.bad5.hat) {
gotoAndStop (3);
};
}
if (_root.bad5hat == 2) {
tellTarget (_root.bad5.hat) {
gotoAndStop (5);
};
}
if (_root.bad5hat == 3) {
tellTarget (_root.bad5.hat) {
gotoAndStop (7);
};
}
if (_root.bad5hat == 4) {
tellTarget (_root.bad5.hat) {
gotoAndStop (9);
};
}
if (_root.bad5hat == 5) {
tellTarget (_root.bad5.hat) {
gotoAndStop (11);
};
}
if (_root.bad4hat == 0) {
tellTarget (_root.bad4.hat) {
gotoAndStop (1);
};
}
if (_root.bad4hat == 1) {
tellTarget (_root.bad4.hat) {
gotoAndStop (3);
};
}
if (_root.bad4hat == 2) {
tellTarget (_root.bad4.hat) {
gotoAndStop (5);
};
}
if (_root.bad4hat == 3) {
tellTarget (_root.bad4.hat) {
gotoAndStop (7);
};
}
if (_root.bad4hat == 4) {
tellTarget (_root.bad4.hat) {
gotoAndStop (9);
};
}
if (_root.bad4hat == 5) {
tellTarget (_root.bad4.hat) {
gotoAndStop (11);
};
}
if (_root.bad3hat == 0) {
tellTarget (_root.bad3.hat) {
gotoAndStop (1);
};
}
if (_root.bad3hat == 1) {
tellTarget (_root.bad3.hat) {
gotoAndStop (3);
};
}
if (_root.bad3hat == 2) {
tellTarget (_root.bad3.hat) {
gotoAndStop (5);
};
}
if (_root.bad3hat == 3) {
tellTarget (_root.bad3.hat) {
gotoAndStop (7);
};
}
if (_root.bad3hat == 4) {
tellTarget (_root.bad3.hat) {
gotoAndStop (9);
};
}
if (_root.bad3hat == 5) {
tellTarget (_root.bad3.hat) {
gotoAndStop (11);
};
}
if (_root.bad2hat == 0) {
tellTarget (_root.bad2.hat) {
gotoAndStop (1);
};
}
if (_root.bad2hat == 1) {
tellTarget (_root.bad2.hat) {
gotoAndStop (3);
};
}
if (_root.bad2hat == 2) {
tellTarget (_root.bad2.hat) {
gotoAndStop (5);
};
}
if (_root.bad2hat == 3) {
tellTarget (_root.bad2.hat) {
gotoAndStop (7);
};
}
if (_root.bad2hat == 4) {
tellTarget (_root.bad2.hat) {
gotoAndStop (9);
};
}
if (_root.bad2hat == 5) {
tellTarget (_root.bad2.hat) {
gotoAndStop (11);
};
}
Symbol 452 MovieClip Frame 2
if (_root.bullettime == 1) {
tellTarget (_root.bulletshow2) {
gotoAndStop (2);
};
}
if (_root.bullettime == 0) {
tellTarget (_root.bulletshow2) {
gotoAndStop (1);
};
}
if (_root.crosshair2 == 0) {
_root.crosshair._alpha = 0;
}
if (_root.gun == 1) {
tellTarget (_root.weapon1) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (1);
};
};
}
if (_root.gun == 2) {
tellTarget (_root.weapon2) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (2);
};
};
}
if (_root.gun == 3) {
tellTarget (_root.weapon3) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (3);
};
};
}
if (_root.gun == 4) {
tellTarget (_root.weapon4) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (4);
};
};
}
if (_root.gun == 5) {
tellTarget (_root.weapon5) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (5);
};
};
}
if (_root.gun == 6) {
tellTarget (_root.weapon6) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (9);
};
};
}
if (_root.bad6hat == 0) {
tellTarget (_root.bad6.hat) {
gotoAndStop (1);
};
}
if (_root.bad6hat == 1) {
tellTarget (_root.bad6.hat) {
gotoAndStop (3);
};
}
if (_root.bad6hat == 2) {
tellTarget (_root.bad6.hat) {
gotoAndStop (5);
};
}
if (_root.bad6hat == 3) {
tellTarget (_root.bad6.hat) {
gotoAndStop (7);
};
}
if (_root.bad6hat == 4) {
tellTarget (_root.bad6.hat) {
gotoAndStop (9);
};
}
if (_root.bad6hat == 5) {
tellTarget (_root.bad6.hat) {
gotoAndStop (11);
};
}
if (_root.bad5hat == 0) {
tellTarget (_root.bad5.hat) {
gotoAndStop (1);
};
}
if (_root.bad5hat == 1) {
tellTarget (_root.bad5.hat) {
gotoAndStop (3);
};
}
if (_root.bad5hat == 2) {
tellTarget (_root.bad5.hat) {
gotoAndStop (5);
};
}
if (_root.bad5hat == 3) {
tellTarget (_root.bad5.hat) {
gotoAndStop (7);
};
}
if (_root.bad5hat == 4) {
tellTarget (_root.bad5.hat) {
gotoAndStop (9);
};
}
if (_root.bad5hat == 5) {
tellTarget (_root.bad5.hat) {
gotoAndStop (11);
};
}
if (_root.bad4hat == 0) {
tellTarget (_root.bad4.hat) {
gotoAndStop (1);
};
}
if (_root.bad4hat == 1) {
tellTarget (_root.bad4.hat) {
gotoAndStop (3);
};
}
if (_root.bad4hat == 2) {
tellTarget (_root.bad4.hat) {
gotoAndStop (5);
};
}
if (_root.bad4hat == 3) {
tellTarget (_root.bad4.hat) {
gotoAndStop (7);
};
}
if (_root.bad4hat == 4) {
tellTarget (_root.bad4.hat) {
gotoAndStop (9);
};
}
if (_root.bad4hat == 5) {
tellTarget (_root.bad4.hat) {
gotoAndStop (11);
};
}
if (_root.bad3hat == 0) {
tellTarget (_root.bad3.hat) {
gotoAndStop (1);
};
}
if (_root.bad3hat == 1) {
tellTarget (_root.bad3.hat) {
gotoAndStop (3);
};
}
if (_root.bad3hat == 2) {
tellTarget (_root.bad3.hat) {
gotoAndStop (5);
};
}
if (_root.bad3hat == 3) {
tellTarget (_root.bad3.hat) {
gotoAndStop (7);
};
}
if (_root.bad3hat == 4) {
tellTarget (_root.bad3.hat) {
gotoAndStop (9);
};
}
if (_root.bad3hat == 5) {
tellTarget (_root.bad3.hat) {
gotoAndStop (11);
};
}
if (_root.bad2hat == 0) {
tellTarget (_root.bad2.hat) {
gotoAndStop (1);
};
}
if (_root.bad2hat == 1) {
tellTarget (_root.bad2.hat) {
gotoAndStop (3);
};
}
if (_root.bad2hat == 2) {
tellTarget (_root.bad2.hat) {
gotoAndStop (5);
};
}
if (_root.bad2hat == 3) {
tellTarget (_root.bad2.hat) {
gotoAndStop (7);
};
}
if (_root.bad2hat == 4) {
tellTarget (_root.bad2.hat) {
gotoAndStop (9);
};
}
if (_root.bad2hat == 5) {
tellTarget (_root.bad2.hat) {
gotoAndStop (11);
};
}
Symbol 454 MovieClip Frame 1
_root.shoot1time = 0;
Symbol 454 MovieClip Frame 5
_root.shoot1time = 1;
Symbol 455 MovieClip Frame 1
_root.shoot2time = 0;
Symbol 455 MovieClip Frame 9
_root.shoot2time = 1;
Symbol 456 MovieClip Frame 1
_root.shoot3time = 0;
Symbol 456 MovieClip Frame 6
_root.shoot3time = 1;
Symbol 457 MovieClip Frame 1
_root.shoot4time = 0;
Symbol 457 MovieClip Frame 5
_root.shoot4time = 1;
Symbol 458 MovieClip Frame 1
_root.shoot5time = 0;
Symbol 458 MovieClip Frame 11
_root.shoot5time = 1;
Symbol 459 MovieClip Frame 1
_root.shoot6time = 0;
Symbol 459 MovieClip Frame 16
_root.shoot6time = 1;
Symbol 460 MovieClip Frame 1
_root.shoot7time = 0;
Symbol 460 MovieClip Frame 3
_root.shoot7time = 1;
Symbol 463 MovieClip Frame 1
if ((_root.reload == 0) & (_root.kurok == false)) {
if (Key.isDown(69)) {
tellTarget (_root.guy.guy.weapon) {
nextFrame();
_root.gun = _root.gun + 1;
if (_root.gun == 7) {
_root.gun = 1;
tellTarget (_root.guy.guy.weapon) {
gotoAndStop (1);
};
}
};
}
}
if ((_root.reload == 0) & (_root.kurok == false)) {
if (Key.isDown(81)) {
tellTarget (_root.guy.guy.weapon) {
prevFrame();
_root.gun = _root.gun - 1;
if (_root.gun == 0) {
_root.gun = 6;
tellTarget (_root.guy.guy.weapon) {
gotoAndStop (1);
};
}
};
}
}
Symbol 466 MovieClip Frame 1
_root.shoot1time1 = 0;
Symbol 466 MovieClip Frame 15
_root.shoot1time1 = 1;
Symbol 467 MovieClip Frame 1
_root.shoot2time1 = 0;
Symbol 467 MovieClip Frame 18
_root.shoot2time1 = 1;
Symbol 468 MovieClip Frame 1
_root.shoot3time1 = 0;
Symbol 468 MovieClip Frame 16
_root.shoot3time1 = 1;
Symbol 469 MovieClip Frame 1
_root.shoot4time1 = 0;
Symbol 469 MovieClip Frame 9
_root.shoot4time1 = 1;
Symbol 470 MovieClip Frame 1
_root.shoot5time1 = 0;
Symbol 470 MovieClip Frame 18
_root.shoot5time1 = 1;
Symbol 471 MovieClip Frame 1
_root.shoot6time1 = 0;
Symbol 471 MovieClip Frame 22
_root.shoot6time1 = 1;
Symbol 472 MovieClip Frame 1
_root.shoot7time1 = 0;
Symbol 472 MovieClip Frame 6
_root.shoot7time1 = 1;
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
gotoAndStop (1);
Symbol 484 MovieClip Frame 3
gotoAndStop (1);
Symbol 484 MovieClip Frame 4
gotoAndStop (1);
Symbol 484 MovieClip Frame 5
gotoAndStop (1);
Symbol 484 MovieClip Frame 6
gotoAndStop (1);
Symbol 484 MovieClip Frame 7
gotoAndStop (1);
Symbol 484 MovieClip Frame 8
gotoAndStop (1);
Symbol 484 MovieClip Frame 9
gotoAndStop (1);
Symbol 484 MovieClip Frame 10
gotoAndStop (1);
Symbol 484 MovieClip Frame 11
gotoAndStop (1);
Symbol 484 MovieClip Frame 12
gotoAndStop (1);
Symbol 484 MovieClip Frame 13
gotoAndStop (1);
Symbol 486 MovieClip Frame 33
_root.timee = _root.timee + 1;
Symbol 494 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 500 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 3
stop();
Symbol 518 MovieClip Frame 4
stop();
Symbol 518 MovieClip Frame 5
stop();
Symbol 518 MovieClip Frame 6
stop();
Symbol 518 MovieClip Frame 7
stop();
Symbol 518 MovieClip Frame 8
Symbol 518 MovieClip Frame 9
_root.herolifes = _root.herolifes - 1;
gotoAndStop (8);
Symbol 520 MovieClip Frame 130
_root.mshield.gotoAndStop(1);
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
play();
Symbol 537 MovieClip [BadGuy4] Frame 1
stop();
_root.dead4 = 0;
Symbol 537 MovieClip [BadGuy4] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 537 MovieClip [BadGuy4] Frame 8
gotoAndPlay (1);
Symbol 537 MovieClip [BadGuy4] Frame 9
stop();
_root.dead4 = 1;
_root.guyvisible4 = 0;
Symbol 537 MovieClip [BadGuy4] Frame 10
stop();
_root.dead4 = 1;
_root.guyvisible4 = 0;
Instance of Symbol 394 MovieClip "door" in Symbol 540 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 2
play();
Instance of Symbol 394 MovieClip "door" in Symbol 550 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 551 MovieClip [BadGuy3] Frame 1
stop();
_root.dead3 = 0;
Symbol 551 MovieClip [BadGuy3] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 551 MovieClip [BadGuy3] Frame 8
gotoAndPlay (1);
Symbol 551 MovieClip [BadGuy3] Frame 9
stop();
_root.dead3 = 1;
_root.guyvisible3 = 0;
Symbol 551 MovieClip [BadGuy3] Frame 10
stop();
_root.dead3 = 1;
_root.guyvisible3 = 0;
Symbol 559 MovieClip [BadGuy2] Frame 1
stop();
_root.dead2 = 0;
Symbol 559 MovieClip [BadGuy2] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 559 MovieClip [BadGuy2] Frame 8
gotoAndPlay (1);
Symbol 559 MovieClip [BadGuy2] Frame 9
stop();
_root.dead2 = 1;
_root.guyvisible2 = 0;
Symbol 559 MovieClip [BadGuy2] Frame 10
stop();
_root.dead2 = 1;
_root.guyvisible2 = 0;
Instance of Symbol 394 MovieClip in Symbol 565 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 567 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 581 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 581 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 581 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 581 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 590 MovieClip Frame 1
_root.stop();
Symbol 590 MovieClip Frame 35
stop();
Symbol 590 MovieClip Frame 38
_root.play();
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 596 MovieClip Frame 1
if (_root.timer1 <= 0) {
_root.gotoAndPlay(900);
}
Symbol 596 MovieClip Frame 35
_root.timer1 = _root.timer1 - 1;
if (_root.timer1 <= 0) {
_root.gotoAndPlay(900);
}
Instance of Symbol 394 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 604 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 609 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 618 MovieClip Frame 1
stop();
Symbol 620 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
stop();
Symbol 629 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 394 MovieClip in Symbol 643 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 648 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 394 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 394 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 662 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 693 Button
on (press) {
_root.play();
}
Symbol 695 Button
on (press) {
_root.AMMO2 = 999;
_root.AMMO3 = 999;
_root.AMMO4 = 999;
_root.AMMO5 = 999;
_root.AMMO6 = 999;
_root.AMMO7 = 999;
_root.AMMO8 = 999;
_root.AMMO9 = 999;
_root.AMMO10 = 999;
_root.AMMO11 = 999;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
_root.gotoAndPlay("startgame");
}
Symbol 696 MovieClip Frame 250
_root.play();
Symbol 696 MovieClip Frame 251
stop();
Symbol 730 Button
on (release) {
_root.herolifes = 25;
if (_root.LEVEL == 1) {
_root.gotoAndPlay("runda1");
}
if (_root.LEVEL == 2) {
_root.gotoAndPlay("runda2");
}
if (_root.LEVEL == 3) {
_root.gotoAndPlay("runda3");
}
if (_root.LEVEL == 4) {
_root.gotoAndPlay("runda4");
}
if (_root.LEVEL == 5) {
_root.gotoAndPlay("runda5");
}
if (_root.LEVEL == 6) {
_root.gotoAndPlay("runda6");
}
if (_root.LEVEL == 7) {
_root.gotoAndPlay("runda7");
}
if (_root.LEVEL == 8) {
_root.gotoAndPlay("runda8");
}
if (_root.LEVEL == 9) {
_root.gotoAndPlay("runda9");
}
if (_root.LEVEL == 10) {
_root.gotoAndPlay("runda10");
}
if (_root.LEVEL == 11) {
_root.gotoAndPlay("runda11");
}
if (_root.LEVEL == 12) {
_root.gotoAndPlay("runda12");
}
if (_root.LEVEL == 13) {
_root.gotoAndPlay("runda13");
}
if (_root.LEVEL == 14) {
_root.gotoAndPlay("runda14");
}
if (_root.LEVEL == 15) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 16) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 17) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 18) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 19) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 20) {
_root.gotoAndPlay("runda15");
}
if (_root.LEVEL == 21) {
_root.gotoAndPlay("runda15");
}
}
Symbol 731 Button
on (press) {
_root.gotoAndPlay("startgame");
AMMO2 = 100;
AMMO3 = 110;
AMMO4 = 150;
AMMO5 = 30;
AMMO6 = 8;
AMMO7 = 45;
AMMO8 = 50;
AMMO9 = 8;
AMMO10 = 55;
AMMO11 = 200;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
}