Frame 1
function doSomething() {
}
function doSomething3() {
getURL ("http://armorgames.com", _blank);
}
function doSomething2() {
getURL ("http://flashground.net", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Game by Jacob Dzwinel", doSomething);
Functioned2 = new ContextMenuItem("www.FlashGround.net", doSomething2);
Functioned3 = new ContextMenuItem("www.ArmorGames.com", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
_root.menu = MENU;
Instance of Symbol 208 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 222 MovieClip in Frame 1
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 225 MovieClip "spirala" in Frame 3
onClipEvent (load) {
skok = 100;
}
onClipEvent (mouseMove) {
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Instance of Symbol 222 MovieClip in Frame 3
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 222 MovieClip in Frame 180
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 208 MovieClip in Frame 319
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 222 MovieClip in Frame 319
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 208 MovieClip in Frame 494
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;
}
}
Frame 703
AMMO2 = 100;
AMMO3 = 110;
AMMO4 = 150;
AMMO5 = 15;
AMMO6 = 95;
AMMO7 = 45;
AMMO8 = 50;
AMMO9 = 10;
AMMO10 = 55;
AMMO11 = 200;
crosshair2 = 1;
stop();
Instance of Symbol 222 MovieClip in Frame 703
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 208 MovieClip in Frame 703
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;
}
}
Frame 704
stop();
Frame 705
stop();
Frame 706
stop();
Frame 707
stop();
Instance of Symbol 222 MovieClip "crosshair" in Frame 708
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 727
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda2");
}
}
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.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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 821
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 822
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 403 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 (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 172 MovieClip [NextLevel] "EXIT" in Frame 822
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda2");
}
}
Instance of Symbol 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 823
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 824
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 824
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda3");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 442 MovieClip "box" in Frame 824
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 825
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 826
_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 = 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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 826
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda4");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 442 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 827
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 828
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 828
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda5");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 828
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 829
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 830
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 830
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda6");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 830
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 403 MovieClip "guy" in Frame 830
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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 831
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 832
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 832
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda7");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 832
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 833
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 834
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 834
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda8");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 834
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 835
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 836
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 836
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda9");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 836
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 837
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 838
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 838
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda10");
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 838
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 839
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 840
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 840
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda11");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 840
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 841
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 842
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 842
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda12");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 842
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 843
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 844
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 844
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda13");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 844
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 845
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 846
_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 = 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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 846
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda14");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 846
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 847
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 848
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 848
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda15");
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 848
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 849
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 850
_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.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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 850
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda16");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 850
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 851
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 852
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 852
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda17");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 852
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 853
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 854
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 854
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda18");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 854
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 855
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 856
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 856
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda19");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 856
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 (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 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 857
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 858
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 858
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda20");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 858
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 859
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 860
_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;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 860
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda21");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 860
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 _local5 = _root.guy._x - this._x;
var _local6 = _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 * _local5) / _local4), this._y + ((_local3 * _local6) / _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 222 MovieClip "crosshair" in Frame 861
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 862
_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);
stop();
n = "1";
onMouseDown = function () {
_root.kurok = true;
};
onMouseUp = function () {
_root.kurok = false;
};
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;
}
_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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 = (Math.PI * deg) / 180;
return(rad);
};
radToDeg = function (rad) {
deg = (rad * 180) / Math.PI;
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 167 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 166 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 172 MovieClip [NextLevel] "EXIT" in Frame 862
onClipEvent (enterFrame) {
if (_root.guy.point.hitTest(this)) {
_root.gotoAndPlay("runda22");
}
}
Instance of Symbol 165 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 164 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 442 MovieClip "box" in Frame 862
onClipEvent (load) {
this._x = _root.guy._x;
this._y = _root.guy._y;
this._rotation = random(360);
}
Instance of Symbol 163 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) / Math.PI;
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)) and (a_x > (c_x - boundary))) {
if ((a_y < (c_y + boundary)) and (a_y > (c_y - boundary))) {
gotoAndStop ("youLose");
}
}
};
}
}
Instance of Symbol 403 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 208 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 222 MovieClip in Frame 863
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Frame 899
stop();
Instance of Symbol 222 MovieClip in Frame 900
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateafterevent();
}
Instance of Symbol 208 MovieClip in Frame 900
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;
}
}
Frame 973
stop();
Symbol 7 MovieClip Frame 16
stop();
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip Frame 3
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 21 MovieClip Frame 23
Symbol 21 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 22 MovieClip [bullet3] Frame 1
stop();
Symbol 22 MovieClip [bullet3] Frame 2
stop();
Symbol 22 MovieClip [bullet3] Frame 3
stop();
Symbol 22 MovieClip [bullet3] Frame 4
gotoAndStop (3);
Symbol 24 MovieClip Frame 45
stop();
Symbol 26 MovieClip Frame 18
stop();
Symbol 37 MovieClip Frame 10
stop();
Symbol 38 MovieClip Frame 19
stop();
Symbol 39 MovieClip [bullet2] Frame 1
stop();
Symbol 39 MovieClip [bullet2] Frame 2
stop();
Symbol 39 MovieClip [bullet2] Frame 3
stop();
Symbol 39 MovieClip [bullet2] Frame 4
gotoAndStop (3);
Symbol 40 MovieClip Frame 16
stop();
Symbol 57 MovieClip Frame 16
stop();
_parent.removeMovieClip();
Symbol 58 MovieClip [bullet] Frame 1
stop();
Symbol 58 MovieClip [bullet] Frame 2
stop();
Symbol 58 MovieClip [bullet] Frame 3
stop();
Symbol 58 MovieClip [bullet] Frame 4
gotoAndStop (3);
Symbol 58 MovieClip [bullet] Frame 5
stop();
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip [bullet] Frame 5
onClipEvent (load) {
this._rotation = random(360);
}
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip [bullet] Frame 5
onClipEvent (load) {
this._rotation = random(360);
}
Symbol 58 MovieClip [bullet] Frame 6
stop();
Symbol 58 MovieClip [bullet] Frame 7
gotoAndStop (6);
Symbol 62 MovieClip [AK_47] Frame 1
stop();
Symbol 62 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 64 MovieClip [Browning_1921] Frame 1
stop();
Symbol 64 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 91 MovieClip [death1MC] Frame 11
_root.scores = _root.scores + 1;
_root.kills = _root.kills + 1;
_root.money = _root.money + 10;
Symbol 91 MovieClip [death1MC] Frame 29
stop();
Symbol 94 MovieClip [Colt_1917] Frame 1
stop();
Symbol 94 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 97 MovieClip [UZI] Frame 1
stop();
Symbol 97 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 106 MovieClip [HK_28] Frame 1
stop();
Symbol 106 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 108 MovieClip [Beretta] Frame 1
stop();
Symbol 108 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 110 MovieClip [PM] Frame 1
stop();
Symbol 110 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 113 MovieClip [Thompson] Frame 1
stop();
Symbol 113 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 116 MovieClip [RocketLauncher] Frame 1
stop();
Symbol 116 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 119 MovieClip [M_16] Frame 1
stop();
Symbol 119 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 121 MovieClip [SuperShotgun] Frame 1
stop();
Symbol 121 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 122 MovieClip [MP5] Frame 1
stop();
Symbol 122 MovieClip [MP5] Frame 2
stop();
Symbol 122 MovieClip [MP5] Frame 3
stop();
Symbol 122 MovieClip [MP5] Frame 4
stop();
Symbol 122 MovieClip [MP5] Frame 5
stop();
Symbol 122 MovieClip [MP5] Frame 6
stop();
Symbol 122 MovieClip [MP5] Frame 7
stop();
Symbol 122 MovieClip [MP5] Frame 8
stop();
Symbol 122 MovieClip [MP5] Frame 9
stop();
Symbol 122 MovieClip [MP5] Frame 10
stop();
Symbol 122 MovieClip [MP5] Frame 11
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 1
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 2
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 3
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 4
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 5
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 6
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 7
stop();
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 8
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 9
stop();
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 10
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 11
stop();
Symbol 131 MovieClip [Helm_Terror_Drug] Frame 12
stop();
Symbol 160 MovieClip [Browning_1921_gr] Frame 1
stop();
Symbol 160 MovieClip [Browning_1921_gr] Frame 2
stop();
Symbol 162 MovieClip Frame 4
_root.enemykillz = _root.enemykillz + 1;
Instance of Symbol 160 MovieClip [Browning_1921_gr] in Symbol 162 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(5);
_root.AMMO6 = _root.AMMO6 + random(15);
_root.AMMO7 = _root.AMMO7 + random(20);
_root.AMMO8 = _root.AMMO8 + random(4);
_root.AMMO9 = _root.AMMO9 + 1;
_root.AMMO10 = _root.AMMO10 + random(5);
_root.AMMO11 = _root.AMMO11 + random(20);
tellTarget (this) {
gotoAndPlay (2);
};
}
}
Symbol 162 MovieClip Frame 60
stop();
Symbol 163 MovieClip [BadGuy2] Frame 1
stop();
_root.dead2 = 0;
Symbol 163 MovieClip [BadGuy2] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 163 MovieClip [BadGuy2] Frame 8
gotoAndPlay (1);
Symbol 163 MovieClip [BadGuy2] Frame 9
stop();
_root.dead2 = 1;
_root.guyvisible2 = 0;
Symbol 163 MovieClip [BadGuy2] Frame 10
stop();
_root.dead2 = 1;
_root.guyvisible2 = 0;
Symbol 164 MovieClip [BadGuy3] Frame 1
stop();
_root.dead3 = 0;
Symbol 164 MovieClip [BadGuy3] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 164 MovieClip [BadGuy3] Frame 8
gotoAndPlay (1);
Symbol 164 MovieClip [BadGuy3] Frame 9
stop();
_root.dead3 = 1;
_root.guyvisible3 = 0;
Symbol 164 MovieClip [BadGuy3] Frame 10
stop();
_root.dead3 = 1;
_root.guyvisible3 = 0;
Symbol 165 MovieClip [BadGuy4] Frame 1
stop();
_root.dead4 = 0;
Symbol 165 MovieClip [BadGuy4] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 165 MovieClip [BadGuy4] Frame 8
gotoAndPlay (1);
Symbol 165 MovieClip [BadGuy4] Frame 9
stop();
_root.dead4 = 1;
_root.guyvisible4 = 0;
Symbol 165 MovieClip [BadGuy4] Frame 10
stop();
_root.dead4 = 1;
_root.guyvisible4 = 0;
Symbol 166 MovieClip [BadGuy5] Frame 1
stop();
_root.dead5 = 0;
Symbol 166 MovieClip [BadGuy5] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 166 MovieClip [BadGuy5] Frame 8
gotoAndPlay (1);
Symbol 166 MovieClip [BadGuy5] Frame 9
stop();
_root.dead5 = 1;
_root.guyvisible5 = 0;
Symbol 166 MovieClip [BadGuy5] Frame 10
stop();
_root.dead5 = 1;
_root.guyvisible5 = 0;
Symbol 167 MovieClip [BadGuy6] Frame 1
stop();
_root.dead6 = 0;
Symbol 167 MovieClip [BadGuy6] Frame 3
_root.addBullet3(this._x, this._y, this._rotation + 180);
Symbol 167 MovieClip [BadGuy6] Frame 8
gotoAndPlay (1);
Symbol 167 MovieClip [BadGuy6] Frame 9
stop();
_root.dead6 = 1;
_root.guyvisible6 = 0;
Symbol 167 MovieClip [BadGuy6] Frame 10
stop();
_root.dead6 = 1;
_root.guyvisible6 = 0;
Symbol 188 Button
on (release) {
_root.play();
}
Symbol 189 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 189 MovieClip Frame 2
gotoAndPlay (1);
Symbol 221 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
d = 0.8;
a = 3;
c = 28;
s = -1;
r = 0;
p = 0;
enabled = true;
DrawSpiral = function () {
if (enabled) {
var _local2 = r + (((this.i * 2) * 3.141593) / c);
this.lineTo(Math.cos(_local2) * p, Math.sin(_local2) * p);
}
};
this.onEnterFrame = function () {
if (enabled) {
r = r + (0.1 * s);
p = Math.pow(Math.abs(r), a) * d;
if (spiral._width >= 765) {
enabled = false;
}
}
};
startNew = function () {
r = 0;
enabled = true;
this.createEmptyMovieClip("spiral", 1);
spiral._x = (spiral._y = 0);
var _local2 = 0;
while (_local2 < c) {
var _local3 = spiral.createEmptyMovieClip("line" + _local2, _local2);
_local3.i = _local2;
_local3.onEnterFrame = DrawSpiral;
_local3.lineStyle(0, Math.floor(Math.random() * 1118481), random(100));
_local2++;
}
};
startNew();
Symbol 227 Button
on (release) {
getURL ("http://flashground.net", "_blank");
}
Symbol 242 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 249 Button
on (release) {
_root.gotoAndPlay("skip");
}
Symbol 267 Button
on (press) {
_root.gotoAndStop("start");
}
Symbol 271 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("runda16");
}
if (_root.LEVEL == 17) {
_root.gotoAndPlay("runda17");
}
if (_root.LEVEL == 18) {
_root.gotoAndPlay("runda18");
}
if (_root.LEVEL == 19) {
_root.gotoAndPlay("runda19");
}
if (_root.LEVEL == 20) {
_root.gotoAndPlay("runda20");
}
if (_root.LEVEL == 21) {
_root.gotoAndPlay("runda21");
}
}
Symbol 275 Button
on (press) {
_root.gotoAndStop("options");
}
Symbol 279 Button
on (press) {
_root.gotoAndStop("instructions");
}
Symbol 283 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 287 Button
on (press) {
_root.gotoAndStop("credit");
}
Symbol 292 Button
on (release) {
getURL ("http://www.armorgames.com/games/black.html ", "_blank");
}
Symbol 294 MovieClip Frame 12
stop();
Symbol 299 Button
on (press) {
_root.gotoAndStop("menu2");
}
Symbol 303 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 13;
_root.crosshair2 = 0;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
play();
}
Symbol 307 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 10;
_root.crosshair2 = 1;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
play();
}
Symbol 311 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.difficult = 7;
_root.crosshair2 = 1;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
play();
}
Symbol 315 Button
on (press) {
_root.gotoAndPlay("startgame");
_root.crosshair2 = 1;
_root.difficult = 5;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
}
Symbol 321 Button
on (release) {
_quality = "LOW";
}
Symbol 325 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 329 Button
on (release) {
_quality = "HIGH";
}
Symbol 333 Button
on (release) {
_quality = "BEST";
}
Symbol 342 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
stop();
Instance of Symbol 376 MovieClip "door" in Symbol 377 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 379 MovieClip Frame 33
_root.timee = _root.timee + 1;
Symbol 381 MovieClip Frame 16
stop();
Symbol 395 MovieClip Frame 1
stop();
_root.reload = 0;
Symbol 395 MovieClip Frame 2
_root.reload = 1;
Symbol 395 MovieClip Frame 3
_root.reload = 1;
Symbol 395 MovieClip Frame 6
Symbol 395 MovieClip Frame 12
gotoAndStop (1);
_root.reload = 0;
Symbol 401 MovieClip Frame 1
_root.moves = false;
Symbol 402 MovieClip Frame 1
_root.moves2 = false;
Symbol 403 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 (6);
};
}
if (_root.gun == 7) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (7);
};
}
stop();
_root.moves = true;
_root.moves2 = true;
Symbol 403 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 (6);
};
}
if (_root.gun == 7) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (7);
};
}
Symbol 403 MovieClip Frame 6
gotoAndPlay (1);
Symbol 403 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 (6);
};
}
if (_root.gun == 7) {
tellTarget (_root.guy.guy.guy.weapon) {
gotoAndStop (7);
};
}
Symbol 403 MovieClip Frame 18
gotoAndPlay (1);
Symbol 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 405 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 407 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 == 7) {
tellTarget (_root.weapon7) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (7);
};
};
}
if (_root.gun == 8) {
tellTarget (_root.weapon8) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (8);
};
};
}
if (_root.gun == 6) {
tellTarget (_root.weapon6) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (6);
};
};
}
if (_root.gun == 9) {
tellTarget (_root.weapon9) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (9);
};
};
}
if (_root.gun == 10) {
tellTarget (_root.weapon10) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (10);
};
};
}
if (_root.gun == 11) {
tellTarget (_root.weapon11) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (11);
};
};
}
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 407 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 == 7) {
tellTarget (_root.weapon7) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (7);
};
};
}
if (_root.gun == 8) {
tellTarget (_root.weapon8) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (8);
};
};
}
if (_root.gun == 6) {
tellTarget (_root.weapon6) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (6);
};
};
}
if (_root.gun == 9) {
tellTarget (_root.weapon9) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (9);
};
};
}
if (_root.gun == 10) {
tellTarget (_root.weapon10) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (10);
};
};
}
if (_root.gun == 11) {
tellTarget (_root.weapon11) {
gotoAndPlay (2);
tellTarget (_root.guy.guy.weapon) {
gotoAndPlay (11);
};
};
}
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 409 MovieClip Frame 1
_root.shoot1time = 0;
Symbol 409 MovieClip Frame 5
_root.shoot1time = 1;
Symbol 410 MovieClip Frame 1
_root.shoot2time = 0;
Symbol 410 MovieClip Frame 9
_root.shoot2time = 1;
Symbol 411 MovieClip Frame 1
_root.shoot3time = 0;
Symbol 411 MovieClip Frame 6
_root.shoot3time = 1;
Symbol 412 MovieClip Frame 1
_root.shoot4time = 0;
Symbol 412 MovieClip Frame 5
_root.shoot4time = 1;
Symbol 413 MovieClip Frame 1
_root.shoot5time = 0;
Symbol 413 MovieClip Frame 11
_root.shoot5time = 1;
Symbol 414 MovieClip Frame 1
_root.shoot6time = 0;
Symbol 414 MovieClip Frame 16
_root.shoot6time = 1;
Symbol 415 MovieClip Frame 1
_root.shoot7time = 0;
Symbol 415 MovieClip Frame 3
_root.shoot7time = 1;
Symbol 418 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 == 12) {
_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 = 11;
tellTarget (_root.guy.guy.weapon) {
gotoAndStop (1);
};
}
};
}
}
Symbol 420 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 421 MovieClip Frame 1
_root.shoot1time1 = 0;
Symbol 421 MovieClip Frame 15
_root.shoot1time1 = 1;
Symbol 422 MovieClip Frame 1
_root.shoot2time1 = 0;
Symbol 422 MovieClip Frame 18
_root.shoot2time1 = 1;
Symbol 423 MovieClip Frame 1
_root.shoot3time1 = 0;
Symbol 423 MovieClip Frame 16
_root.shoot3time1 = 1;
Symbol 424 MovieClip Frame 1
_root.shoot4time1 = 0;
Symbol 424 MovieClip Frame 9
_root.shoot4time1 = 1;
Symbol 425 MovieClip Frame 1
_root.shoot5time1 = 0;
Symbol 425 MovieClip Frame 18
_root.shoot5time1 = 1;
Symbol 426 MovieClip Frame 1
_root.shoot6time1 = 0;
Symbol 426 MovieClip Frame 22
_root.shoot6time1 = 1;
Symbol 427 MovieClip Frame 1
_root.shoot7time1 = 0;
Symbol 427 MovieClip Frame 6
_root.shoot7time1 = 1;
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
gotoAndStop (1);
Symbol 440 MovieClip Frame 3
gotoAndStop (1);
Symbol 440 MovieClip Frame 4
gotoAndStop (1);
Symbol 440 MovieClip Frame 5
gotoAndStop (1);
Symbol 440 MovieClip Frame 6
gotoAndStop (1);
Symbol 440 MovieClip Frame 7
gotoAndStop (1);
Symbol 440 MovieClip Frame 8
gotoAndStop (1);
Symbol 440 MovieClip Frame 9
gotoAndStop (1);
Symbol 440 MovieClip Frame 10
gotoAndStop (1);
Symbol 440 MovieClip Frame 11
gotoAndStop (1);
Symbol 440 MovieClip Frame 12
gotoAndStop (1);
Symbol 440 MovieClip Frame 13
gotoAndStop (1);
Symbol 442 MovieClip Frame 10
Symbol 442 MovieClip Frame 46
this.removeMovieClip();
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 2
play();
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 2
play();
Symbol 478 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip "door" in Symbol 498 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 499 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 517 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip "door" in Symbol 535 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 536 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 554 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 576 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 589 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 594 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 608 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 626 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 631 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 644 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 649 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 667 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 681 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 698 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 703 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 721 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 735 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 753 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 775 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 793 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 806 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 811 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Instance of Symbol 376 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Instance of Symbol 376 MovieClip in Symbol 824 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy)) {
tellTarget (this) {
nextFrame();
play();
};
}
}
Symbol 825 Button
on (keyPress "<Space>") {
tellTarget (_root.bulletshow) {
gotoAndPlay (2);
};
_root.bullettime = _root.bullettime + 1;
if (_root.bullettime == 2) {
_root.bullettime = 0;
}
}
Symbol 851 Button
on (press) {
_root.gotoAndPlay("startgame");
AMMO2 = 100;
AMMO3 = 110;
AMMO4 = 150;
AMMO5 = 15;
AMMO6 = 95;
AMMO7 = 45;
AMMO8 = 50;
AMMO9 = 10;
AMMO10 = 55;
AMMO11 = 200;
_root.enemykillz = 0;
_root.shoots = 0;
_root.timee = 0;
_root.slowmotiontime = 0;
}
Symbol 855 Button
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 856 Button
on (press) {
_root.gotoAndPlay("menu2");
_root.herolifes = 25;
}
Symbol 868 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("runda16");
}
if (_root.LEVEL == 17) {
_root.gotoAndPlay("runda17");
}
if (_root.LEVEL == 18) {
_root.gotoAndPlay("runda18");
}
if (_root.LEVEL == 19) {
_root.gotoAndPlay("runda19");
}
if (_root.LEVEL == 20) {
_root.gotoAndPlay("runda20");
}
if (_root.LEVEL == 21) {
_root.gotoAndPlay("runda21");
}
}