Combined Code
movieClip 2 loadingbacks {
}
movieClip 5 finish {
#initclip
Object.registerClass('finish', finish);
#endinitclip
}
// unknown tag 88 length 79
movieClip 9 universalspot {
#initclip
Object.registerClass('universalspot', uspot);
#endinitclip
}
movieClip 11 {
}
movieClip 13 {
}
movieClip 27 back1 {
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 1];
}
}
}
movieClip 29 {
}
movieClip 33 {
}
// unknown tag 88 length 143
movieClip 45 {
}
movieClip 47 {
}
movieClip 48 {
frame 60 {
gotoAndPlay(1);
}
}
// unknown tag 88 length 84
movieClip 71 {
frame 39 {
gotoAndPlay(1);
}
}
movieClip 73 {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 85 preloader {
instance plbut of movieClip 71 {
onClipEvent (press) {
var bl = _root.getBytesLoaded();
var bt = _root.getBytesTotal();
if (bt >= bl) {
_root.gotoAndStop('game');
}
}
}
}
movieClip 87 preloaderact {
#initclip
Object.registerClass('preloaderact', preloader);
#endinitclip
}
frame 1 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
}
movieClip 89 {
}
instance of movieClip 89 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepr ', '_blank');
}
}
button 94 {
on (release) {
getURL('http://www.freeaddictinggames.com', '');
}
}
movieClip 97 {
}
movieClip 106 {
}
movieClip 107 {
frame 54 {
stop();
}
}
movieClip 110 {
}
movieClip 111 {
}
// unknown tag 88 length 138
button 119 {
on (release) {
_root.gotoAndStop('game');
}
}
movieClip 121 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay('loaded');
}
this.loadtext = Math.round(PercentLoaded * 100) + '%';
}
frame 2 {
gotoAndPlay(1);
}
frame 20 {
stop();
}
frame 31 {
_root.play();
}
}
movieClip 1734 __Packages.uspot {
#initclip
if (!_global.uspot) {
var v1 = function () {
super();
};
_global.uspot = v1;
_global.uspot extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._visible = false;
};
v2.onEnterFrame = function () {
if (this.ready == false) {
if (_root.back.hero._y > this._y - 400 && _root.back.hero._y < this._y + 150) {
if (_root.back.hero._x > this._x - 50 && _root.back.hero._x < this._x + 50) {
this.i = 0;
while (this.i < this.earray.length) {
if (this.earray[this.i] > 9) {
if (this.earray[this.i] == 13) {
_root.back.attachMovie('enemywithgun', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 11) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 12) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 14) {
_root.back.attachMovie('rat', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
}
}
}
}
_root.back['enemy' + _root.act.enemies]._x = this._x + 400 + _root.act.enemies * 10;
_root.back['enemy' + _root.act.enemies]._y = this._y;
_root.back['enemy' + _root.act.enemies].number = _root.act.enemies;
this.myenemy = _root.act.enemies;
++_root.act.enemies;
} else {
if (this.earray[this.i] < 5) {
if (this.earray[this.i] == 3) {
_root.back.attachMovie('enemywithgun', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 1) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 2) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (this.earray[this.i] == 4) {
_root.back.attachMovie('rat', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
}
}
}
}
_root.back['enemy' + _root.act.enemies]._x = this._x - 400 - _root.act.enemies * 10;
_root.back['enemy' + _root.act.enemies]._y = this._y;
_root.back['enemy' + _root.act.enemies].number = _root.act.enemies;
this.myenemy = _root.act.enemies;
++_root.act.enemies;
} else {
_root.back.attachMovie('rat', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
if (this.earray[this.i] == 6) {
_root.back['enemy' + _root.act.enemies]._x = this._x;
} else {
if (this.earray[this.i] == 7) {
_root.back['enemy' + _root.act.enemies]._x = this._x + 200;
} else {
if (this.earray[this.i] == 5) {
_root.back['enemy' + _root.act.enemies]._x = this._x - 200;
}
}
}
_root.back['enemy' + _root.act.enemies]._y = this._y;
_root.back['enemy' + _root.act.enemies].number = _root.act.enemies;
_root.back['enemy' + _root.act.enemies].goingout = true;
this.myenemy = _root.act.enemies;
++_root.act.enemies;
}
}
++this.i;
}
this.ready = true;
this._visible = false;
}
}
} else {}
};
v2.ready = false;
v2.myenemy = 0;
v2.earray = [];
v2.i = 0;
ASSetPropFlags(_global.uspot.prototype, null, 1);
}
#endinitclip
}
movieClip 1735 __Packages.preloader {
#initclip
if (!_global.preloader) {
var v1 = function () {
super();
};
_global.preloader = v1;
_global.preloader extends MovieClip;
var v2 = v1.prototype;
ASSetPropFlags(_global.preloader.prototype, null, 1);
}
#endinitclip
}
movieClip 1736 __Packages.finish {
#initclip
if (!_global.finish) {
var v1 = function () {
super();
};
_global.finish = v1;
_global.finish extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._visible = false;
};
v2.onEnterFrame = function () {
if (_root.back.hero._x > this._x - 50 && _root.back.hero._x < this._x + 50) {
if (_root.back.hero._y > this._y - 50 && _root.back.hero._y < this._y + 10) {
this.ready = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].health > 0) {
this.ready = false;
break;
}
++this.i;
}
if (this.ready == true) {
if (_root.act.health == _root.panel.maxhealth) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[0] = 1;
v3.data.rambo[_root.act.level] = 1;
}
_root.act.now = 20;
}
}
}
};
v2.i = 0;
v2.ready = false;
ASSetPropFlags(_global.finish.prototype, null, 1);
}
#endinitclip
}
movieClip 1737 __Packages.panel {
#initclip
if (!_global.panel) {
var v1 = function () {
super();
};
_global.panel = v1;
_global.panel extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v3 = SharedObject.getLocal('killgore');
this.maxhealth = 200 + v3.data.health[_root.act.level] * 25;
};
v2.onEnterFrame = function () {
_root.panel.score.text = _root.act.score;
_root.panel.exitsymbol._visible = true;
if (_root.back.hero.rage > 0) {
_root.panel.ragebar._visible = true;
_root.panel.ragebar._xscale = _root.back.hero.rage;
} else {
_root.panel.ragebar._visible = false;
}
if (_root.back.hero.rage > 80) {
_root.panel.ragebar.gotoAndStop(2);
if (this.ragestatusanim == false) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[11] = 1;
_root.panel.ragestatus.gotoAndPlay(1);
this.ragestatusanim = true;
}
} else {
this.ragestatusanim = false;
_root.panel.ragebar.gotoAndStop(1);
}
this.i = 0;
while (this.i < 20) {
if (_root.back['s' + this.i].ready == false) {
_root.panel.exitsymbol._visible = false;
}
if (_root.back['enemy' + this.i].health > 0) {
_root.panel.exitsymbol._visible = false;
}
++this.i;
}
if (this.bull == true) {
this.i = 0;
while (this.i <= 30) {
if (_root.back.hero.ammo < this.i) {
_root.panel['b' + this.i]._visible = false;
} else {
_root.panel['b' + this.i]._visible = true;
}
++this.i;
}
_root.panel.bulli.text = _root.back.hero.ammo;
this.bull = false;
}
if (this.hit == true) {
_root.panel.ragestatus.gotoAndPlay(1);
if (_root.back.hero.rage < 30) {
_root.panel.blue.gotoAndPlay(1);
} else {
if (_root.back.hero.rage > 60) {
_root.panel.red.gotoAndPlay(1);
} else {
_root.panel.yellow.gotoAndPlay(1);
}
}
this.hit = false;
}
if (this.gethit == true) {
_root.panel.portrait.gotoAndPlay('hit');
_root.back.hero.panelanim = true;
_root.panel.healthbar.gotoAndPlay(1);
if (_root.act.health > 0) {
_root.panel.healthbar._xscale = _root.act.health * 100 / this.maxhealth;
} else {
_root.panel.healthbar._visible = false;
}
this.gethit = false;
}
if (this.animation == false) {
if (_root.act.health > 120) {
_root.panel.portrait.gotoAndPlay('normal');
} else {
if (_root.act.health <= 0) {
_root.panel.portrait.gotoAndPlay('dead');
} else {
_root.panel.portrait.gotoAndPlay('rage');
}
}
this.animation = true;
}
};
v2.gethit = false;
v2.hit = true;
v2.bull = false;
v2.maxhealth = 0;
v2.i = 0;
v2.animation = false;
v2.ragestatusanim = false;
ASSetPropFlags(_global.panel.prototype, null, 1);
}
#endinitclip
}
movieClip 1738 __Packages.deso {
#initclip
if (!_global.deso) {
var v1 = function () {
super();
};
_global.deso = v1;
_global.deso extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.gotoAndStop('full');
this.truehi = this._y;
};
v2.onEnterFrame = function () {
if (this.health > 0) {
if (this.getdown == false) {
if (this.gethit == true) {
if (this.health > 50) {
this.gotoAndPlay('full');
} else {
if (this.health > 0 && this.health <= 50) {
this.gotoAndPlay('mid');
} else {
_root.back.cf['do' + this.number].removeMovieClip();
this._visible = false;
}
}
this.gethit = false;
}
} else {
this.gettingdown();
}
}
};
v2.gettingdown = function () {
this._y = this.truehi + this.hi;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'l') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'l') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
this.checkenemiesd();
if (this.onground == false) {
this.gotoAndStop('fly');
++this.jumptimer;
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('bomb', false);
_root.enemysound.start();
}
this.gotoAndPlay('bang');
this.health = -1;
this.onground = true;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.checkfly();
this.searchground();
this.hi += this.jumptimer - 15;
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.gotoAndPlay('bang');
this.onground = true;
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 120 && _root.back['enemy' + this.i]._y <= this._y + 120) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].boss == false) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
_root.back['enemy' + this.i].health -= 10;
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
if (this.direction == 'r') {
_root.back['enemy' + this.i].direction = 'l';
} else {
_root.back['enemy' + this.i].direction = 'r';
}
this.onground = true;
this.gotoAndPlay('bang');
this.health = -100;
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].boss == false) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
_root.back['enemy' + this.i].health -= 10;
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
if (this.direction == 'r') {
_root.back['enemy' + this.i].direction = 'l';
} else {
_root.back['enemy' + this.i].direction = 'r';
}
this.onground = true;
this.gotoAndPlay('bang');
this.health = -100;
}
}
}
++this.i;
}
};
v2.gethit = false;
v2.getdown = false;
v2.onground = false;
v2.horizontal = false;
v2.canfly = true;
v2.health = 100;
v2.number = 0;
v2.jumptimer = 0;
v2.jumpspeedx = 0;
v2.truehi = 0;
v2.hi = 0;
v2.i = 0;
v2.range = 100;
v2.direction = 'r';
ASSetPropFlags(_global.deso.prototype, null, 1);
}
#endinitclip
}
movieClip 1739 __Packages.bullit {
#initclip
if (!_global.bullit) {
var v1 = function () {
super();
};
_global.bullit = v1;
_global.bullit extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
if (this.right == true) {
this.gotoAndStop('r');
} else {
this.gotoAndStop('l');
}
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.ready == false) {
if (this.right == true) {
this._x += 40;
} else {
this._x -= 40;
}
if (this.enemy1 == true) {
this.checkhero();
} else {
this.checkenemies();
}
}
}
};
v2.checkenemies = function () {
var v3 = 0;
v3 = 0;
while (v3 < 20) {
if (_root.back['enemy' + v3]._x <= 40 + this._x && _root.back['enemy' + v3]._x >= this._x - 40) {
if (_root.back['enemy' + v3]._y <= this._y + 155 && _root.back['enemy' + v3]._y >= this._y) {
if (_root.back['enemy' + v3].rat == false && _root.back['enemy' + v3].health > 0) {
if (_root.back['enemy' + v3].taipe != 5) {
var v4 = SharedObject.getLocal('killgore');
_root.back['enemy' + v3].health -= 5 + v4.data.horns[_root.act.level];
_root.back['enemy' + v3].hit = false;
_root.back['enemy' + v3].gethit = true;
_root.back['enemy' + v3].animation = false;
this.gotoAndPlay('hit');
this.ready = true;
if (this.right == true) {
_root.back['enemy' + v3].direction = 'l';
} else {
_root.back['enemy' + v3].direction = 'r';
}
break;
} else {
var v5 = Math.random();
if (v5 < 0.5) {
var v4 = SharedObject.getLocal('killgore');
_root.back['enemy' + v3].health -= 5 + v4.data.horns[_root.act.level];
_root.back['enemy' + v3].hit = false;
_root.back['enemy' + v3].gethit = true;
_root.back['enemy' + v3].animation = false;
this.gotoAndPlay('hit');
this.ready = true;
if (this.right == true) {
_root.back['enemy' + v3].direction = 'l';
} else {
_root.back['enemy' + v3].direction = 'r';
}
break;
} else {
_root.back['enemy' + v3].block = true;
_root.back['enemy' + v3].hit = false;
_root.back['enemy' + v3].animation = false;
}
}
} else {
if (_root.back['enemy' + v3].boss == true) {
this.gotoAndPlay('block');
this.ready = true;
}
}
}
}
++v3;
}
};
v2.checkhero = function () {
if (_root.back.hero._x <= 40 + this._x && _root.back.hero._x >= this._x - 40) {
if (_root.back.hero.sitting == false) {
if (_root.back.hero._y <= this._y + 155 && _root.back.hero._y >= this._y) {
_root.panel.gethit = true;
if (_root.act.health > 5) {
if (_root.back.hero.block == false && _root.back.hero.rage < 80) {
_root.act.health -= 5;
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
this.gotoAndPlay('hit');
this.ready = true;
} else {
this.gotoAndPlay('block');
this.ready = true;
}
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
}
} else {
if (_root.back.hero._y <= this._y + 85 && _root.back.hero._y >= this._y) {
_root.panel.gethit = true;
if (_root.act.health > 5) {
if (_root.back.hero.block == false && _root.back.hero.rage < 80) {
_root.act.health -= 5;
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
this.gotoAndPlay('hit');
this.ready = true;
} else {
this.gotoAndPlay('block');
this.ready = true;
}
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
}
}
}
};
v2.right = true;
v2.ready = false;
v2.enemy1 = false;
ASSetPropFlags(_global.bullit.prototype, null, 1);
}
#endinitclip
}
movieClip 1740 __Packages.specbullit {
#initclip
if (!_global.specbullit) {
var v1 = function () {
super();
};
_global.specbullit = v1;
_global.specbullit extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this._y > -100) {
if (this.ready == false) {
this._x += this.dx;
this._y += this.dy;
if (this._y < 380 + this.truey * 8) {
if (this.enemy1 == true) {
this.checkhero();
} else {
this.checkenemies();
}
} else {
this._rotation = 0;
if (_root.truck._y > this._y) {
this.swapDepths(301);
}
this.gotoAndPlay('miss');
this.swapDepths(20);
this.ready = true;
}
}
} else {
this.removeMovieClip();
}
}
};
v2.checkenemies = function () {
if (this.truey == _root.act.heliy) {
if (this.hitTest(_root.heli.deathzone)) {
this.gotoAndPlay('hit');
this.swapDepths(201);
_root.act.enemyhealth -= 5;
this.ready = true;
} else {
if (this.hitTest(_root.heli.blockzone)) {
this.gotoAndPlay('block');
this.swapDepths(201);
this.ready = true;
}
}
}
};
v2.checkhero = function () {
if (this.truey == _root.act.truey) {
if (this.hitTest(_root.truck.deathzone)) {
this.gotoAndPlay('hit');
this.swapDepths(101);
_root.act.health -= 5;
this.ready = true;
}
}
};
v2.ready = false;
v2.enemy1 = false;
v2.dx = 0;
v2.dy = 0;
v2.truey = 0;
ASSetPropFlags(_global.specbullit.prototype, null, 1);
}
#endinitclip
}
movieClip 1741 __Packages.enemypanel {
#initclip
if (!_global.enemypanel) {
var v1 = function () {
super();
};
_global.enemypanel = v1;
_global.enemypanel extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._y = 80;
};
v2.onEnterFrame = function () {
++this.timer;
if (this.timer > 100) {
if (this._y < 79) {
this._y += 10;
}
} else {
if (this._y > 1) {
this._y -= 10;
}
}
if (_root.back['enemy' + this.enemyid].health > 0) {
_root.enemypanel.healthbar._visible = true;
_root.enemypanel.healthbar._xscale = _root.back['enemy' + this.enemyid].health * 100 / _root.back['enemy' + this.enemyid].maxhealth;
} else {
_root.enemypanel.healthbar._visible = false;
this.timer = 200;
}
if (_root.back['enemy' + this.enemyid].taipe == 1) {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = true;
} else {
if (_root.back['enemy' + this.enemyid].taipe == 2) {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = true;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = false;
} else {
if (_root.back['enemy' + this.enemyid].taipe == 3) {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = true;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = false;
} else {
if (_root.back['enemy' + this.enemyid].taipe == 4) {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = true;
_root.enemypanel.enemy._visible = false;
} else {
if (_root.back['enemy' + this.enemyid].taipe == 5) {
_root.enemypanel.butcher._visible = true;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = false;
} else {
if (_root.back['enemy' + this.enemyid].taipe == 6) {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = true;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = false;
} else {
_root.enemypanel.butcher._visible = false;
_root.enemypanel.knife._visible = false;
_root.enemypanel.gun._visible = false;
_root.enemypanel.ratking._visible = false;
_root.enemypanel.rat._visible = false;
_root.enemypanel.enemy._visible = false;
}
}
}
}
}
}
};
v2.timer = 0;
v2.enemyid = 0;
v2.position = 0;
ASSetPropFlags(_global.enemypanel.prototype, null, 1);
}
#endinitclip
}
movieClip 1742 __Packages.panels {
#initclip
if (!_global.panels) {
var v1 = function () {
super();
};
_global.panels = v1;
_global.panels extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v3 = SharedObject.getLocal('killgore');
this.maxhealth = 200 + v3.data.health[_root.act.level] * 25;
};
v2.onEnterFrame = function () {
_root.panel.wave.text = _root.act.wave;
_root.panel.exitsymbol._visible = true;
if (_root.back.hero.rage > 0) {
_root.panel.ragebar._visible = true;
_root.panel.ragebar._xscale = _root.back.hero.rage;
} else {
_root.panel.ragebar._visible = false;
}
if (_root.back.hero.rage > 80) {
_root.panel.ragebar.gotoAndStop(1);
if (this.ragestatusanim == false) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[11] = 1;
_root.panel.ragestatus.gotoAndPlay(1);
this.ragestatusanim = true;
}
} else {
this.ragestatusanim = false;
_root.panel.ragebar.gotoAndStop(2);
}
this.i = 0;
while (this.i < 20) {
if (_root.back['s' + this.i].ready == false) {
_root.panel.exitsymbol._visible = false;
}
if (_root.back['enemy' + this.i].health > 0) {
_root.panel.exitsymbol._visible = false;
}
++this.i;
}
if (this.bull == true) {
this.i = 0;
while (this.i <= 30) {
if (_root.back.hero.ammo < this.i) {
_root.panel['b' + this.i]._visible = false;
} else {
_root.panel['b' + this.i]._visible = true;
}
++this.i;
}
_root.panel.bulli.text = _root.back.hero.ammo;
this.bull = false;
}
if (this.hit == true) {
_root.panel.ragestatus.gotoAndPlay(1);
if (_root.back.hero.rage < 30) {
_root.panel.blue.gotoAndPlay(1);
} else {
if (_root.back.hero.rage > 60) {
_root.panel.red.gotoAndPlay(1);
} else {
_root.panel.yellow.gotoAndPlay(1);
}
}
this.hit = false;
}
if (this.gethit == true) {
_root.panel.portrait.gotoAndPlay('hit');
_root.back.hero.panelanim = true;
_root.panel.healthbar.gotoAndPlay(1);
if (_root.act.health > 0) {
_root.panel.healthbar._xscale = _root.act.health * 100 / this.maxhealth;
} else {
_root.panel.healthbar._visible = false;
}
this.gethit = false;
}
if (this.animation == false) {
if (_root.act.health > 120) {
_root.panel.portrait.gotoAndPlay('normal');
} else {
if (_root.act.health <= 0) {
_root.panel.portrait.gotoAndPlay('dead');
} else {
_root.panel.portrait.gotoAndPlay('rage');
}
}
this.animation = true;
}
};
v2.gethit = false;
v2.hit = true;
v2.bull = false;
v2.maxhealth = 0;
v2.i = 0;
v2.animation = false;
v2.ragestatusanim = false;
ASSetPropFlags(_global.panels.prototype, null, 1);
}
#endinitclip
}
movieClip 1743 __Packages.redbutton {
#initclip
if (!_global.redbutton) {
var v1 = function () {
super();
};
_global.redbutton = v1;
_global.redbutton extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.back.hero._y > this._y - 50 && _root.back.hero._y < this._y + 50) {
if (_root.back.hero._x > this._x - 50 && _root.back.hero._x < this._x + 50) {
this.pushed = true;
this.gotoAndStop('DOWN');
if (_root.back['do' + (_root.act.destrobj - 1)]._x > 0) {
} else {
_root.back.da.getdown = true;
}
} else {
if (this.pushed == true) {
this.gotoAndPlay('DOWN');
this.pushed = false;
}
}
} else {
if (this.pushed == true) {
this.gotoAndPlay('DOWN');
this.pushed = false;
}
}
};
v2.pushed = false;
ASSetPropFlags(_global.redbutton.prototype, null, 1);
}
#endinitclip
}
movieClip 1744 __Packages.enemywithgun {
#initclip
if (!_global.enemywithgun) {
var v1 = function () {
super();
};
_global.enemywithgun = v1;
_global.enemywithgun extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.truehi = this._y;
this.climbingatstart();
this.truehi = this._y;
this._xscale = 45;
this._yscale = 45;
this.i = 0;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
this._y = this.truehi + this.hi + 20 - this.number * 2;
if (this._y > 2000) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[8] = 1;
this.removeMovieClip();
}
if (this.getdown == false) {
if (this.health > 0) {
if (this.health < 20) {
if (this.scary == false) {
this.scaredmov = false;
this.animation = false;
this.scary = true;
}
}
if (this.grab == false) {
this._y = this.truehi + this.hi + 20 - this.number * 2;
if (this.gethit == false) {
if (this.hit == false) {
if (_root.act.health > -5) {
if (this.scary == false) {
this.sprint = false;
if (this._x > _root.back.hero._x + 800 || this._y > _root.back.hero._y + 200) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800 || this._y < _root.back.hero._y - 200) {
this.sleep();
} else {
if (this._x < _root.back.hero._x + 500 && this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkcscreenr();
if (this.wantgol == false) {
this.shoot();
} else {
this.goleft();
}
}
} else {
if (this._x > _root.back.hero._x - 500 && this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkcscreenl();
if (this.wantgor == false) {
this.shoot();
} else {
this.goright();
}
}
} else {
this.checkscreen();
}
}
}
}
} else {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.running();
}
}
}
} else {
this.sleep();
}
} else {
if (this.realhit == true) {
this.checkenemies();
this.realhit = false;
}
this.animation = false;
}
} else {
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
if (this.gethit == false) {
this.gotoAndStop('hurt' + this.direction);
} else {
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
}
} else {
this._y = this.truehi + this.hi + 20 - this.number * 2;
if (this.gethit == true && this.getdown == false) {
this.jumptimer = 0;
this.onground = false;
this.animation = false;
this.getdown = true;
}
this.gettingdown();
}
} else {
this._y = this.truehi + this.hi + 20 - this.number * 2;
this.gettingdown();
}
} else {
this.goout();
}
}
};
v2.checkscreen = function () {
this.fighting = false;
this.checkcscreenr();
this.checkcscreenl();
if (this.wantgol == true && this._x > _root.back.hero._x) {
this.goleft();
} else {
if (this.wantgor == true && this._x < _root.back.hero._x) {
this.goright();
} else {
this.shoot();
}
}
};
v2.goout = function () {
if (this.fromdoor == true) {
this._y = this.truehi - 75 + this.i * 2.5;
if (this.i < 30) {
if (this.i == 5) {
_root.back['door' + this.doora].gotoAndPlay(1);
} else {
if (this.i == 1) {
_root.back['door' + this.doora].gotoAndStop(2);
}
}
++this.i;
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
} else {
this.goingout = false;
}
}
};
v2.gettingdown = function () {
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
if (this.health > 0 && this.horizontal == true) {
this.checkenemiesd();
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.truehi = this._y;
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this.truehi + 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('landing', false);
_root.enemysound.start();
}
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
if (this.blams > 3) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[2] = 1;
}
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.running = function () {
if (this.scaredmov == true) {
if (this._x < _root.back.hero._x) {
this.direction = 'l';
this.sprint = true;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runawayl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.scaredmov = false;
}
} else {
this.direction = 'r';
this.sprint = true;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('runawayr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.scaredmov = false;
}
}
} else {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
if (this.animation == false) {
this.gotoAndPlay('scared' + this.direction);
this.animation = true;
}
}
};
v2.fight = function () {
this.fighting = true;
var v2 = 1;
this.gotoAndPlay('attack' + this.direction + v2);
this.damage = 10;
this.superhit = false;
this.animation = false;
this.hit = true;
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (_root.back.hero.block == false || _root.back.hero.rage > 80) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 20) {
if (this.number != this.i) {
if (this.direction == 'l') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'l';
this.horizontal = false;
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'r';
this.horizontal = false;
}
}
}
}
}
++this.i;
}
};
v2.shoot = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
if (this.shoottimer > 50) {
this.gotoAndPlay('shoot' + this.direction);
this.launchbullit();
this.animation = false;
this.hit = true;
++this.bnum;
if (this.bnum > 3) {
this.shoottimer = 0;
this.bnum = 0;
}
} else {
++this.shoottimer;
this.sleep();
}
};
v2.launchbullit = function () {
_root.back['bullit' + this.bullits].removeMovieClip();
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('shooting', false);
_root.enemysound.start();
}
if (this.direction == 'r') {
_root.back.attachMovie('bullit', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x + 50;
_root.back['bullit' + this.number + this.bullits].right = true;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
} else {
_root.back.attachMovie('bullit', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x - 50;
_root.back['bullit' + this.number + this.bullits].right = false;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
}
if (this.bullits > 8) {
this.bullits = 0;
} else {
++this.bullits;
}
};
v2.sleep = function () {
this.standing = true;
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.scary = false;
if (this.animation == false) {
this.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.checkgroundl();
if (this.cangol == true) {
this.sleep();
} else {
this.climbingatstart();
this.sleep();
}
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.checkgroundr();
if (this.cangor == true) {
this.sleep();
} else {
this.climbingatstart();
this.sleep();
}
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this.truehi - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 1 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
this.cangol = true;
this.cangor = true;
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, 1 + this.truehi + _root.back._y, true)) {
this.cangol = true;
this.cangor = true;
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcollisionsr = function () {};
v2.checkcollisionsl = function () {};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.checkcscreenr = function () {
if (this._x + _root.back._x > 650) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
};
v2.checkcscreenl = function () {
if (this._x + _root.back._x < 60) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
if (_root.back.hero.rage < 80) {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.bighit = function () {
if (_root.back.hero.rage < 80) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.health = 180;
v2.maxhealth = 180;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 100;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = false;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.bnum = 0;
v2.rat = false;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.standing = false;
v2.realhit = false;
v2.taipe = 3;
v2.blams = 0;
ASSetPropFlags(_global.enemywithgun.prototype, null, 1);
}
#endinitclip
}
movieClip 1745 __Packages.enemy {
#initclip
if (!_global.enemy) {
var v1 = function () {
super();
};
_global.enemy = v1;
_global.enemy extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.truehi = Math.floor(this._y);
this.climbingatstart();
this.truehi = Math.floor(this._y);
this._xscale = 45;
this._yscale = 45;
this.i = 0;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
if (this._y > 2000) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[8] = 1;
this.removeMovieClip();
}
if (this.getdown == false) {
if (this.health > 0) {
if (this.health < 20) {
if (this.scary == false) {
this.scaredmov = false;
this.animation = false;
this.scary = true;
}
}
if (this.grab == false) {
this._y = this.truehi + this.hi;
if (this.gethit == false) {
if (this.hit == false) {
if (_root.act.health > -5) {
if (this.scary == false) {
this.sprint = false;
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x + this.range && this._x >= _root.back.hero._x) {
this.direction = 'l';
this.fight();
} else {
if (this._x > _root.back.hero._x - this.range && this._x < _root.back.hero._x) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
}
}
}
} else {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.running();
}
}
}
} else {
this.sleep();
}
} else {
if (this.realhit == true) {
this.checkenemies();
this.realhit = false;
}
this.animation = false;
}
} else {
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
if (this.gethit == false) {
this.gotoAndStop('hurt' + this.direction);
} else {
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
}
} else {
this._y = this.truehi + this.hi;
if (this.gethit == true && this.getdown == false) {
this.jumptimer = 0;
this.onground = false;
this.animation = false;
this.getdown = true;
}
this.gettingdown();
}
} else {
this._y = this.truehi + this.hi;
this.gettingdown();
}
} else {
this.goout();
}
}
};
v2.checkscreen = function () {
this.fighting = false;
this.checkcscreenr();
this.checkcscreenl();
if (this.wantgol == true && this._x > _root.back.hero._x) {
this.goleft();
} else {
if (this.wantgor == true && this._x < _root.back.hero._x) {
this.goright();
} else {
this.sleep();
}
}
};
v2.goout = function () {
if (this.fromdoor == true) {
this._y = this.truehi - 75 + this.i * 2.5;
if (this.i < 30) {
if (this.i == 5) {
_root.back['door' + this.doora].gotoAndPlay(1);
} else {
if (this.i == 1) {
_root.back['door' + this.doora].gotoAndStop(2);
}
}
++this.i;
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
} else {
this.goingout = false;
}
}
};
v2.gettingdown = function () {
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.health > 0 && this.horizontal == true) {
this.checkenemiesd();
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.truehi = this._y;
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this.truehi + 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('landing', false);
_root.enemysound.start();
}
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
if (this.blams > 3) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[2] = 1;
}
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.running = function () {
if (this.scaredmov == true) {
if (this._x < _root.back.hero._x) {
this.direction = 'l';
this.sprint = true;
this.checkgroundl();
if (this.cangol == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('runawayl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.standing = true;
this.scaredmov = false;
}
} else {
this.direction = 'r';
this.sprint = true;
this.checkgroundr();
if (this.cangor == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('runawayr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.standing = true;
this.scaredmov = false;
}
}
} else {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
if (this.animation == false) {
this.gotoAndPlay('scared' + this.direction);
this.animation = true;
}
}
};
v2.fight = function () {
this.fighting = true;
var v2 = Math.random();
if (v2 < 0.2) {
this.gotoAndPlay('attack' + this.direction + 1);
this.damage = 10;
this.superhit = false;
} else {
this.gotoAndPlay('attack' + this.direction + 2);
this.damage = 7;
this.superhit = false;
}
this.animation = false;
this.hit = true;
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (_root.back.hero.block == false || _root.back.hero.rage > 80) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 20) {
if (this.number != this.i) {
if (this.direction == 'l') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'l';
this.horizontal = false;
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'r';
this.horizontal = false;
}
}
}
}
}
++this.i;
}
};
v2.shoot = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.gotoAndPlay('shoot' + this.direction);
this.launchbullit();
this.hit = true;
};
v2.launchbullit = function () {
_root.back['bullit' + this.bullits].removeMovieClip();
if (this.direction == 'r') {
_root.back.attachMovie('bullit', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x + 50;
_root.back['bullit' + this.number + this.bullits].right = true;
} else {
_root.back.attachMovie('bullit', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x - 50;
_root.back['bullit' + this.number + this.bullits].right = false;
}
if (this.bullits > 8) {
this.bullits = 0;
} else {
++this.bullits;
}
};
v2.sleep = function () {
this.standing = true;
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.scary = false;
if (this.animation == false) {
this.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.checkgroundl();
if (this.cangol == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.checkgroundr();
if (this.cangor == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.checkvertical = function () {
this.climbingatstart();
};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this.truehi - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 1 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
this.cangol = true;
this.cangor = true;
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, 1 + this.truehi + _root.back._y, true)) {
this.cangol = true;
this.cangor = true;
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcscreenr = function () {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
};
v2.checkcscreenl = function () {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
};
v2.checkcollisionsr = function () {};
v2.checkcollisionsl = function () {};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
if (_root.back.hero.rage < 80) {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.bighit = function () {
if (_root.back.hero.rage < 80) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.health = 100;
v2.maxhealth = 100;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 100;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = false;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = false;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.standing = false;
v2.realhit = false;
v2.taipe = 1;
v2.blams = 0;
ASSetPropFlags(_global.enemy.prototype, null, 1);
}
#endinitclip
}
movieClip 1746 __Packages.enemywithknife {
#initclip
if (!_global.enemywithknife) {
var v1 = function () {
super();
};
_global.enemywithknife = v1;
_global.enemywithknife extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.truehi = this._y;
this.climbingatstart();
this.truehi = this._y;
this._xscale = 45;
this._yscale = 45;
this.i = 0;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
this._y = this.truehi + this.hi;
if (this._y > 2000) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[8] = 1;
this.removeMovieClip();
}
if (this.getdown == false) {
if (this.health > 0) {
if (this.health < 20) {
if (this.scary == false) {
this.scaredmov = false;
this.animation = false;
this.scary = true;
}
}
if (this.grab == false) {
this._y = this.truehi + this.hi;
if (this.gethit == false) {
if (this.hit == false) {
if (_root.act.health > -5) {
if (this.scary == false) {
this.sprint = false;
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x + 500 && this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreen();
}
} else {
if (this._x > _root.back.hero._x - 500 && this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
} else {
this.checkscreen();
}
}
}
}
} else {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.running();
}
}
}
} else {
this.sleep();
}
} else {
if (this.realhit == true) {
this.checkenemies();
this.realhit = false;
}
if (this.throwing == true) {
this.launchbullit();
}
this.animation = false;
}
} else {
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
if (this.gethit == false) {
this.gotoAndStop('hurt' + this.direction);
} else {
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
}
} else {
this._y = this.truehi + this.hi;
if (this.gethit == true && this.getdown == false) {
this.jumptimer = 0;
this.onground = false;
this.animation = false;
this.getdown = true;
}
this.gettingdown();
}
} else {
this._y = this.truehi + this.hi;
this.gettingdown();
}
} else {
this.goout();
}
}
};
v2.checkscreen = function () {
this.fighting = false;
this.checkcscreenr();
this.checkcscreenl();
if (this.wantgol == true && this._x > _root.back.hero._x) {
this.goleft();
} else {
if (this.wantgor == true && this._x < _root.back.hero._x) {
this.goright();
} else {
if (this.knife == false) {
this.sleep();
} else {
this.shoot();
}
}
}
};
v2.goout = function () {
if (this.fromdoor == true) {
this._y = this.truehi - 75 + this.i * 2.5;
if (this.i < 30) {
if (this.i == 5) {
_root.back['door' + this.doora].gotoAndPlay(1);
} else {
if (this.i == 1) {
_root.back['door' + this.doora].gotoAndStop(2);
}
}
++this.i;
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
} else {
this.goingout = false;
}
}
};
v2.gettingdown = function () {
this.throwing = false;
this.knife = true;
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
if (this.health > 0 && this.horizontal == true) {
this.checkenemiesd();
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.truehi = this._y;
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this.truehi + 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('landing', false);
_root.enemysound.start();
}
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
if (this.blams > 3) {
var v3 = SharedObject.getLocal('killgore');
v3.data.ach[2] = 1;
}
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.running = function () {
if (this.scaredmov == true) {
if (this._x < _root.back.hero._x) {
this.direction = 'l';
this.sprint = true;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runawayl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.scaredmov = false;
}
} else {
this.direction = 'r';
this.sprint = true;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('runawayr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.scaredmov = false;
}
}
} else {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
if (this.animation == false) {
this.gotoAndPlay('scared' + this.direction);
this.animation = true;
}
}
};
v2.fight = function () {
this.fighting = true;
var v2 = 1;
this.gotoAndPlay('attack' + this.direction + v2);
this.damage = 10;
this.superhit = false;
this.animation = false;
this.hit = true;
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (_root.back.hero.block == false || _root.back.hero.rage > 80) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 20) {
if (this.number != this.i) {
if (this.direction == 'l') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'l';
this.horizontal = false;
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'r';
this.horizontal = false;
}
}
}
}
}
++this.i;
}
};
v2.shoot = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.gotoAndPlay('knifethrow' + this.direction);
this.hit = true;
};
v2.launchbullit = function () {
_root.back['knife' + this.bullits].removeMovieClip();
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('thrownknife', false);
_root.enemysound.start();
}
if (this.direction == 'r') {
_root.back.attachMovie('knife', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x + 50;
_root.back['bullit' + this.number + this.bullits].right = true;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
} else {
_root.back.attachMovie('knife', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x - 50;
_root.back['bullit' + this.number + this.bullits].right = false;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
}
if (this.bullits > 8) {
this.bullits = 0;
} else {
++this.bullits;
}
this.throwing = false;
this.knife = false;
};
v2.sleep = function () {
this.standing = true;
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.scary = false;
if (this.animation == false) {
this.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.checkgroundl();
if (this.cangol == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.standing == true) {
this.animation = false;
this.standing = false;
}
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.checkgroundr();
if (this.cangor == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
this.checkcollisionsl();
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.truehi - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
this.checkcollisionsr();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this.truehi - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 1 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
this.cangol = true;
this.cangor = true;
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, 1 + this.truehi + _root.back._y, true)) {
this.cangol = true;
this.cangor = true;
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcollisionsr = function () {};
v2.checkcollisionsl = function () {};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.checkcscreenr = function () {
if (this.knife == true) {
if (this._x + _root.back._x > 650) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
} else {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true && _root.back['enemy' + this.i].health > 0) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
}
};
v2.checkcscreenl = function () {
if (this.knife == true) {
if (this._x + _root.back._x < 60) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
} else {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
if (_root.back.hero.rage < 80) {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.bighit = function () {
if (_root.back.hero.rage < 80) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.health = 150;
v2.maxhealth = 150;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 100;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = false;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = false;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.standing = false;
v2.realhit = false;
v2.taipe = 2;
v2.blams = 0;
ASSetPropFlags(_global.enemywithknife.prototype, null, 1);
}
#endinitclip
}
movieClip 1747 __Packages.rat {
#initclip
if (!_global.rat) {
var v1 = function () {
super();
};
_global.rat = v1;
_global.rat extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.truehi = this._y;
this.climbingatstart();
this.truehi = this._y;
if (this.goingout == true) {
this.hi = -300;
}
this._xscale = 45;
this._yscale = 45;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
this._y = this.truehi + this.hi + 20 - this.number * 2;
if (this._y > 2000) {
this.removeMovieClip();
}
if (this.getdown == false) {
if (this.health > 0) {
if (this.gethit == false) {
if (this.hit == false) {
this.sprint = false;
if (this._x < _root.back.hero._x + 120 && this._x >= _root.back.hero._x) {
this.direction = 'l';
this.fight();
} else {
if (this._x > _root.back.hero._x - 120 && this._x < _root.back.hero._x) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
}
} else {
this.attacking();
}
} else {
this.getdown = true;
this.gettingdown();
}
} else {
this.gettingdown();
}
} else {
this.gettingdown();
}
} else {
this.goout();
}
}
};
v2.attacking = function () {
if (this.readyx == false) {
if (this.onground == false) {
if (this.direction == 'l') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
if (this.jumptimer < 15) {
this.onground = false;
}
this.checkenemies();
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 10) {
this.hi -= 10 - this.jumptimer;
} else {
this.hi += this.jumptimer - 10;
this.searchground();
}
}
} else {
this.truehi = _root.back.hero.truehi;
if (this.animation == false) {
_root.panel.gethit = true;
if (_root.act.health > 2) {
_root.act.health -= 2;
} else {
if (_root.act.health > 0) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
_root.back.hero.jumptimer = 0;
}
}
this.gotoAndPlay('attack' + this.direction);
this.animation = true;
}
if (this.direction == 'l') {
this._x = _root.back.hero._x + 30;
} else {
this._x = _root.back.hero._x - 30;
}
this._y = _root.back.hero._y - 70;
}
};
v2.checkenemies = function () {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 100 && _root.back.hero._y >= this._y - 10) {
this.readyx = true;
this.animation = false;
this.gotoAndPlay('attack' + this.direction);
this.hi = 0;
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 100 && _root.back.hero._y >= this._y - 10) {
this.readyx = true;
this.animation = false;
this.gotoAndPlay('attack' + this.direction);
this.hi = 0;
}
}
}
};
v2.checkscreen = function () {
this.fighting = false;
if (this._x > _root.back.hero._x) {
this.goleft();
} else {
this.goright();
}
};
v2.goout = function () {
this.searchground();
if (this.onground == true) {
this.goingout = false;
} else {
this.hi += 30;
}
if (this.animation == false) {
this.gotoAndPlay('hitl');
this.animation = true;
}
};
v2.gettingdown = function () {
this.hit = false;
this.block = false;
this.readyx = false;
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hit' + this.direction);
this.animation = true;
}
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.truehi = this._y;
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this.truehi - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.health > 0) {
this.animation = false;
} else {
this.removeMovieClip();
}
this.onground = true;
this.getdown = false;
this.gethit = false;
this.hit = false;
}
};
v2.fight = function () {
this.gotoAndPlay('jump' + this.direction);
this.jumptimer = 0;
this.onground = false;
this.readyx = false;
this.animation = true;
this.hit = true;
};
v2.sleep = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.scary = false;
if (this.animation == false) {
this.gotoAndPlay('go' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.checkgroundl();
if (this.cangol == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.checkgroundr();
if (this.cangor == true) {
this.sleep();
} else {
this.climbingatstart();
}
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangol = false;
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.truehi - this.speed - 1 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + 1 + this.truehi + _root.back._y, true)) {
this.climbingdown();
} else {
this.cangor = false;
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this.truehi - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 1 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
this.cangol = true;
this.cangor = true;
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, 1 + this.truehi + _root.back._y, true)) {
this.cangol = true;
this.cangor = true;
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcscreenr = function () {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
};
v2.checkcscreenl = function () {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.health = 50;
v2.maxhealth = 50;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 30;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = false;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = true;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.taipe = 4;
ASSetPropFlags(_global.rat.prototype, null, 1);
}
#endinitclip
}
movieClip 1748 __Packages.butcher {
#initclip
if (!_global.butcher) {
var v1 = function () {
super();
};
_global.butcher = v1;
_global.butcher extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.climbingatstart();
this.truehi = this._y;
this._xscale = 45;
this._yscale = 45;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
this._y = this.truehi + this.hi;
if (this.health > 0) {
if (this.gethit == false) {
if (this.block == false) {
if (this.hit == false) {
if (_root.act.health > -5) {
if (_root.back.hero._x < 50 && this._x < 180) {
this.sleep();
} else {
if (this.health > 100) {
this.sprint = false;
if (this._x < _root.back.hero._x + 500 && this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreen();
}
} else {
if (this._x > _root.back.hero._x - 500 && this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
} else {
this.checkscreen();
}
}
} else {
this.sprint = true;
if (this._x < _root.back.hero._x + 500 && this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreen();
}
} else {
if (this._x > _root.back.hero._x - 500 && this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
} else {
this.checkscreen();
}
}
}
}
} else {
this.sleep();
}
} else {
if (this.throwing == true) {
this.launchbullit();
}
this.animation = false;
}
} else {
this.gethit = false;
this.hit = false;
if (this.animation == false) {
this.gotoAndPlay('block' + this.direction);
this.animation = true;
}
}
} else {
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
if (this.health > -1000) {
this.gotoAndPlay('death' + this.direction);
if (this._x > _root.back.hero._x) {
_root.back.hero.gotoAndPlay('hailr');
} else {
_root.back.hero.gotoAndPlay('haill');
}
_root.back.hero.hit = true;
this.health = -2000;
}
}
} else {
this.goout();
}
}
};
v2.checkscreen = function () {
this.fighting = false;
if (this.knife == false) {
if (this._x > _root.back.hero._x) {
this.goleft();
} else {
this.goright();
}
if (_root.back.hero.getdown == true) {
this.animation = false;
this.knife = true;
}
} else {
if (_root.back.hero.getdown == false) {
this.shoot();
} else {
this.sleep();
}
}
};
v2.goout = function () {
if (this.fromdoor == true) {
if (this.i < 30) {
if (this.i == 1) {
_root.back['door' + this.doora].gotoAndPlay(2);
}
++this.i;
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
} else {
_root.back['door' + this.doora].gotoAndStop(1);
this.swapDepths(101 + 100 * this.number);
this.goingout = false;
}
}
};
v2.gettingdown = function () {
this.throwing = false;
this.knife = true;
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
this.checkenemiesd();
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.fight = function () {
this.fighting = true;
if (_root.back.hero.jump == false) {
var v3 = Math.random();
if (v3 < 0.3) {
this.gotoAndPlay('attack' + this.direction + 2);
this.damage = 20;
this.superhit = true;
} else {
this.gotoAndPlay('attack' + this.direction + 1);
this.damage = 10;
this.superhit = false;
}
} else {
this.gotoAndPlay('upattack' + this.direction);
this.damage = 20;
this.superhit = true;
}
this.animation = false;
this.hit = true;
this.checkenemies();
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (this.superhit == false) {
if (_root.back.hero.block == false) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
}
}
} else {
if (_root.back.hero.block == true) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
this.block = false;
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
this.superhit = false;
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 20) {
if (this.number != this.i) {
if (this.direction == 'l') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'l';
this.horizontal = false;
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'r';
this.horizontal = false;
}
}
}
}
}
++this.i;
}
};
v2.shoot = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.gotoAndPlay('knifethrow' + this.direction);
if (this.throwing == true) {
this.launchbullit();
}
this.hit = true;
};
v2.launchbullit = function () {
_root.back['knife' + this.bullits].removeMovieClip();
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('thrownknife', false);
_root.enemysound.start();
}
if (this.direction == 'r') {
_root.back.attachMovie('knife', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x + 50;
_root.back['bullit' + this.number + this.bullits].right = true;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
} else {
_root.back.attachMovie('knife', 'bullit' + this.number + this.bullits, 105 + this.number * 100 + this.bullits);
_root.back['bullit' + this.number + this.bullits]._y = this._y - 93;
_root.back['bullit' + this.number + this.bullits]._x = this._x - 50;
_root.back['bullit' + this.number + this.bullits].right = false;
_root.back['bullit' + this.number + this.bullits].enemy1 = true;
}
if (this.bullits > 8) {
this.bullits = 0;
} else {
++this.bullits;
}
this.throwing = false;
this.knife = false;
};
v2.sleep = function () {
if (this.animation == false) {
this.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.gunfeature();
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.gunfeature();
}
};
v2.runright = function () {
this.jumpspeedx = this.speed * 2;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('runr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.gunfeature();
}
};
v2.runleft = function () {
this.jumpspeedx = -this.speed * 2;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.gunfeature();
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
}
};
v2.checkcollisionsr = function () {
var v2 = true;
this.cangor = v2;
};
v2.checkcollisionsl = function () {
var v2 = true;
this.cangol = v2;
};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 2 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y + _root.back._y, true)) {
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcscreenr = function () {
if (this.knife == true) {
if (this._x + _root.back._x > 650) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
} else {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
}
};
v2.checkcscreenl = function () {
if (this.knife == true) {
if (this._x + _root.back._x < 60) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
} else {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.block == false) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
}
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
};
v2.bighit = function () {
_root.back.hero.getdown = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit4', false);
_root.enemysound.start();
}
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
};
v2.health = 250;
v2.maxhealth = 250;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 100;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = true;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = false;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.taipe = 5;
ASSetPropFlags(_global.butcher.prototype, null, 1);
}
#endinitclip
}
movieClip 1749 __Packages.robot {
#initclip
if (!_global.robot) {
var v1 = function () {
super();
};
_global.robot = v1;
_global.robot extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.climbingatstart();
this.truehi = this._y;
this._xscale = 40;
this._yscale = 40;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.goingout == false) {
this._y = this.truehi + this.hi;
if (this.health > 0) {
if (this.gethit == false) {
if (this.hit == false) {
if (_root.back.hero.truehi > -234) {
if (this._x >= _root.back.hero._x - 20) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreen();
}
} else {
if (this._x < _root.back.hero._x) {
this.checkscreen();
}
}
} else {
this.checkscreen();
}
} else {
if (this.throwing == true) {
this.launchbullit();
}
this.animation = false;
}
} else {
this.knife = true;
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt');
this.animation = true;
}
}
} else {
if (this.health > -1000) {
_root.back.hero.gotoAndPlay('hailr');
_root.back.hero.hit = true;
this.gotoAndPlay('explode');
this.health = -2000;
}
}
} else {
this.goout();
}
}
};
v2.checkscreen = function () {
this.fighting = false;
if (this.knife == false) {
if (this._x > _root.back.hero._x) {
this.goleft();
} else {
this.goright();
}
} else {
this.shoot();
}
};
v2.goout = function () {
if (this.fromdoor == true) {
if (this.i < 30) {
if (this.i == 1) {
_root.back['door' + this.doora].gotoAndPlay(2);
}
++this.i;
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
} else {
_root.back['door' + this.doora].gotoAndStop(1);
this.swapDepths(101 + 100 * this.number);
this.goingout = false;
}
}
};
v2.gettingdown = function () {
this.throwing = false;
this.knife = true;
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.fight = function () {
this.fighting = true;
if (_root.back.hero.jump == false) {
var v3 = Math.random();
if (v3 < 0.3) {
this.gotoAndPlay('attack2');
this.damage = 20;
this.superhit = true;
} else {
this.gotoAndPlay('attack1');
this.damage = 10;
this.superhit = false;
}
} else {
this.gotoAndPlay('upattack');
this.damage = 20;
this.superhit = true;
}
this.animation = false;
this.hit = true;
this.checkenemies();
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (this.superhit == false) {
if (_root.back.hero.block == false) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
}
} else {
if (_root.back.hero.block == true) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
this.block = false;
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
this.superhit = false;
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.shoot = function () {
this.gotoAndPlay('laserblast');
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('ping', false);
_root.enemysound.start();
}
this.knife = false;
this.hit = true;
};
v2.launchbullit = function () {
if (_root.back.hero._x < this._x) {
if (_root.back.hero._y > this._y - 110 && _root.back.hero.sitting == false) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
}
this.throwing = false;
this.knife = false;
};
v2.sleep = function () {
if (this.animation == false) {
this.gotoAndPlay('stay');
this.animation = true;
}
};
v2.goright = function () {
if (this._x > 1816) {
this.sleep();
} else {
this.sprint = true;
this.jumpspeedx = this.speed * 2;
if (this.animation == false) {
this.gotoAndPlay('gob');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
}
};
v2.goleft = function () {
this.sprint = false;
this.jumpspeedx = -this.speed;
if (this._x < 680) {
if (_root.back.hero.truehi > -234) {
this.knife = true;
}
this.sleep();
} else {
if (this.animation == false) {
this.gotoAndPlay('gof');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
}
};
v2.runright = function () {
if (this._x > 1816) {
this.sleep();
} else {
this.jumpspeedx = this.speed * 2;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('runr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.gunfeature();
}
}
};
v2.runleft = function () {
this.jumpspeedx = -this.speed * 2;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.gunfeature();
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
}
};
v2.checkcollisionsr = function () {
var v2 = true;
this.cangor = v2;
};
v2.checkcollisionsl = function () {
var v2 = true;
this.cangol = v2;
};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 2 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y + _root.back._y, true)) {
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcscreenr = function () {
if (this.knife == true) {
if (this._x + _root.back._x > 650) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
} else {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
}
};
v2.checkcscreenl = function () {
if (this.knife == true) {
if (this._x + _root.back._x < 60) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
} else {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.block == false) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
}
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
};
v2.bighit = function () {
_root.back.hero.getdown = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit4', false);
_root.enemysound.start();
}
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
};
v2.health = 25;
v2.maxhealth = 25;
v2.animation = false;
v2.direction = 'l';
v2.speed = 3;
v2.hi = 0;
v2.range = 150;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.doora = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = true;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = true;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.taipe = 7;
ASSetPropFlags(_global.robot.prototype, null, 1);
}
#endinitclip
}
movieClip 1750 __Packages.ratking {
#initclip
if (!_global.ratking) {
var v1 = function () {
super();
};
_global.ratking = v1;
_global.ratking extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.climbingatstart();
this.truehi = this._y;
this._xscale = 45;
this._yscale = 45;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
this._y = this.truehi + this.hi;
this.getdown = false;
if (this.health > 0) {
if (_root.back.enemy4.health > 0 || _root.back.enemy5.health > 0 || _root.back.enemy6.health > 0) {
this.gethits = 0;
this.retreating = false;
} else {
this.retreating = true;
}
if (this.gethit == false) {
if (this.block == false) {
if (this.hit == false) {
if (_root.act.health > -5) {
if (this.retreating == false) {
this.range = 100;
this.sprint = false;
if (this._x < _root.back.hero._x + 500 && this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreen();
}
} else {
if (this._x > _root.back.hero._x - 500 && this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkscreen();
}
} else {
this.checkscreen();
}
}
} else {
this.range = 120;
if (this._x >= _root.back.hero._x) {
if (this._x < _root.back.hero._x + this.range) {
this.direction = 'l';
this.fight();
} else {
this.checkscreenretr();
}
} else {
if (this._x < _root.back.hero._x) {
if (this._x > _root.back.hero._x - this.range) {
this.direction = 'r';
this.fight();
} else {
this.checkscreenretr();
}
}
}
}
} else {
this.sleep();
}
} else {
this.animation = false;
}
} else {
++this.gethits;
if (this.gethits > 5) {
this.goingout = true;
this.gethits = 0;
}
this.hit = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
++this.gethits;
if (this.gethits > 5) {
this.goingout = true;
this.gethits = 0;
}
this.hit = false;
this.block = false;
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
}
} else {
if (this.health > -1000) {
this.gotoAndPlay('die' + this.direction);
if (this._x > _root.back.hero._x) {
_root.back.hero.gotoAndPlay('hailr');
} else {
_root.back.hero.gotoAndPlay('haill');
}
_root.back.enemy4.health = 0;
_root.back.enemy5.health = 0;
_root.back.enemy7.health = 0;
_root.back.enemy4.jumptimer = 0;
_root.back.enemy4.gethit = true;
_root.back.enemy4.hit = false;
_root.back.enemy4.animation = false;
_root.back.enemy5.jumptimer = 0;
_root.back.enemy5.gethit = true;
_root.back.enemy5.hit = false;
_root.back.enemy5.animation = false;
_root.back.enemy7.jumptimer = 0;
_root.back.enemy7.gethit = true;
_root.back.enemy7.hit = false;
_root.back.enemy7.animation = false;
_root.back.hero.hit = true;
this.health = -2000;
}
}
}
};
v2.checkscreen = function () {
this.fighting = false;
if (this.knife == false) {
if (this._x > _root.back.hero._x) {
this.goleft();
} else {
this.goright();
}
if (_root.back.hero.getdown == true) {
this.sleep();
}
} else {
if (_root.back.hero.getdown == false) {
this.shoot();
}
}
};
v2.checkscreenretr = function () {
if (this.knife == false) {
if (this._x > _root.back.hero._x) {
this.goleftr();
} else {
this.gorightr();
}
if (_root.back.hero.getdown == true) {
if (this.goingout == true) {
this.goout();
}
}
} else {
if (_root.back.hero.getdown == false) {
this.shoot();
}
}
};
v2.goout = function () {
this.gotoAndPlay('stomp' + this.direction);
_root.back.attachMovie('rat', 'enemy4', 501);
_root.back.attachMovie('rat', 'enemy5', 601);
_root.back.enemy4._y = this._y;
_root.back.enemy4.number = 4;
_root.back.enemy4.goingout = true;
_root.back.enemy4._x = this._x;
_root.back.enemy5._y = this._y;
_root.back.enemy5.number = 5;
_root.back.enemy5.goingout = true;
_root.back.enemy5._x = _root.back.hero._x;
this.knife = true;
this.hit = true;
this.goingout = false;
};
v2.gettingdown = function () {
this.throwing = false;
this.knife = true;
this.hit = false;
this.block = false;
this.gethit = false;
if (this.horizontal == false) {
if (this.direction == 'r') {
this.jumpspeedx = -5;
} else {
this.jumpspeedx = 5;
}
} else {
this.checkenemiesd();
if (this.direction == 'r') {
this.jumpspeedx = -15;
} else {
this.jumpspeedx = 15;
}
}
if (this.jumptimer < 15) {
this.onground = false;
}
if (this.onground == false) {
if (this.animation == false) {
this.canfly = false;
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
} else {
this.horizontal = false;
}
if (this.jumptimer < 15) {
this.hi -= 15 - this.jumptimer;
} else {
this.hi += this.jumptimer - 15;
this.searchground();
}
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this._y, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
this.sprint = false;
this.jumptimer = 0;
this.onground = true;
} else {
if (this.health > 0) {
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
} else {
this.gotoAndStop('dead' + this.direction);
}
this.onground = true;
}
}
};
v2.fight = function () {
this.fighting = true;
if (_root.back.hero.jump == false) {
var v3 = Math.random();
if (v3 < 0.3) {
this.gotoAndPlay('attack' + this.direction + 2);
this.damage = 20;
this.superhit = true;
} else {
this.gotoAndPlay('attack' + this.direction + 1);
this.damage = 10;
this.superhit = false;
}
} else {
this.gotoAndPlay('attack' + this.direction + '2');
this.damage = 20;
this.superhit = true;
}
this.animation = false;
this.hit = true;
this.checkenemies();
};
v2.checkenemies = function () {
if (_root.act.health > this.damage) {
if (this.superhit == false) {
if (_root.back.hero.block == false) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
}
}
}
} else {
if (_root.back.hero.block == true) {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.smallhit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.smallhit();
}
}
}
this.block = false;
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
this.superhit = false;
}
} else {
if (this.direction == 'l') {
if (_root.back.hero._x <= this._x && _root.back.hero._x >= this._x - this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'r';
this.bighit();
}
}
} else {
if (_root.back.hero._x > this._x && _root.back.hero._x <= this._x + this.range) {
if (_root.back.hero._y <= this._y + 40 && _root.back.hero._y >= this._y - 100) {
_root.back.hero.direction = 'l';
this.bighit();
}
}
}
}
};
v2.checkenemiesd = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 20) {
if (this.number != this.i) {
if (this.direction == 'l') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'l';
this.horizontal = false;
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v3 = Math.random();
} else {
var v3 = 1;
}
if (v3 < 0.3) {
_root.back['enemy' + this.i].block = true;
} else {
_root.back['enemy' + this.i].health -= 5;
if (this.horizontal == true) {
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
} else {
_root.back['enemy' + this.i].gethit = true;
}
}
}
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
_root.back['enemy' + this.i].direction = 'r';
this.horizontal = false;
}
}
}
}
}
++this.i;
}
};
v2.shoot = function () {
if (this._x > _root.back.hero._x) {
this.direction = 'l';
} else {
this.direction = 'r';
}
this.gotoAndPlay('throw' + this.direction);
if (this.throwing == true) {
this.launchbullit();
}
this.hit = true;
};
v2.launchbullit = function () {
_root.back.enemy7.removeMovieClip();
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('thrownknife', false);
_root.enemysound.start();
}
_root.back.attachMovie('rat', 'enemy7', 801);
_root.back.enemy7._y = this._y - 80;
_root.back.enemy7.number = 4;
_root.back.enemy7.jumptimer = 0;
_root.back.enemy7.hi = -80;
if (this.direction == 'l') {
_root.back.enemy7._x = this._x - 100;
} else {
_root.back.enemy7._x = this._x + 100;
}
_root.back.enemy7.direction = this.direction;
_root.back.enemy7.gotoAndPlay('jump' + this.direction);
_root.back.enemy7.animation = true;
_root.back.enemy7.hit = true;
this.throwing = false;
this.knife = false;
};
v2.sleep = function () {
if (this.animation == false) {
this.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.goright = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('gor');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.sleep();
}
};
v2.goleft = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('gol');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.sleep();
}
};
v2.gorightr = function () {
this.jumpspeedx = -this.speed;
this.checkgroundl();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('gobr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed;
this._x -= this.speed;
} else {
this.sleep();
}
};
v2.goleftr = function () {
this.jumpspeedx = this.speed;
this.checkgroundr();
if (this.cangor == true) {
if (this.animation == false) {
this.gotoAndPlay('gobl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed;
this._x += this.speed;
} else {
this.sleep();
}
};
v2.runright = function () {
this.jumpspeedx = this.speed * 2;
this.checkgroundr();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runr');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = this.speed * 2;
this._x += this.speed * 2;
} else {
this.gunfeature();
}
};
v2.runleft = function () {
this.jumpspeedx = -this.speed * 2;
this.checkgroundl();
if (this.cangol == true) {
if (this.animation == false) {
this.gotoAndPlay('runl');
this.animation = true;
}
this.stand = 0;
this.jumpspeedx = -this.speed * 2;
this._x -= this.speed * 2;
} else {
this.gunfeature();
}
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsl();
} else {
this.cangol = false;
}
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y - this.speed * 3 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this.speed * 3 + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y - this.speed + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed + this._y + _root.back._y, true)) {
this.climbingdown();
this.checkcollisionsr();
} else {
this.cangor = false;
}
}
}
};
v2.checkcollisionsr = function () {
var v2 = true;
this.cangor = v2;
};
v2.checkcollisionsl = function () {
var v2 = true;
this.cangol = v2;
};
v2.gunfeature = function () {
if (this._x > _root.back.hero._x + 800) {
this.sleep();
} else {
if (this._x < _root.back.hero._x - 800) {
this.sleep();
} else {
this.sleep();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
++this.i;
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 2 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y + _root.back._y, true)) {
break;
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkcscreenr = function () {
if (this.knife == true) {
if (this._x + _root.back._x > 650) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
} else {
if (this._x - this.range > _root.back.hero._x) {
this.wantgol = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x < this._x && _root.back['enemy' + this.i]._x > this._x - this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgol = false;
}
}
++this.i;
}
} else {
this.wantgol = false;
}
}
};
v2.checkcscreenl = function () {
if (this.knife == true) {
if (this._x + _root.back._x < 60) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
} else {
if (this._x + this.range < _root.back.hero._x) {
this.wantgor = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].fighting == true) {
this.wantgor = false;
}
}
++this.i;
}
} else {
this.wantgor = false;
}
}
};
v2.addblood = function () {
_root.panel.gethit = true;
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back.hero._x;
_root.back['blood' + _root.act.bloods]._y = _root.back.hero._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.smallhit = function () {
if (_root.back.hero.rage < 80) {
_root.panel.gethit = true;
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('hit1', false);
_root.enemysound.start();
}
if (_root.act.health > this.damage) {
if (_root.back.hero.getdown == false) {
_root.back.hero.animation = false;
_root.back.hero.gethit = true;
} else {
if (_root.back.hero.onground == false) {
_root.back.hero.animation = false;
if (_root.back.hero.jumptimer > this.damage) {
_root.back.hero.jumptimer -= this.damage;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
_root.act.health -= this.damage;
} else {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health = 0;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.bighit = function () {
if (_root.back.hero.rage < 80) {
_root.back.hero.getdown = true;
_root.back.hero.animation = false;
_root.back.hero.onground = false;
_root.act.health -= 20;
if (_root.back.hero.jump == false) {
_root.back.hero.jumptimer = 0;
} else {
if (_root.back.hero.jumptimer > 5) {
_root.back.hero.jumptimer -= 5;
} else {
_root.back.hero.jumptimer = 0;
}
}
} else {
if (_root.act.soundsfx == true) {
_root.enemysound.attachSound('blocksound', false);
_root.enemysound.start();
}
}
};
v2.health = 150;
v2.maxhealth = 150;
v2.animation = false;
v2.direction = 'l';
v2.speed = 2;
v2.hi = 0;
v2.range = 110;
v2.jumptimer = 100;
v2.power = 0;
v2.gethit = false;
v2.getdown = false;
v2.readyx = false;
v2.truehi = 282;
v2.goingout = false;
v2.fromdoor = false;
v2.number = 1;
v2.aimdoor = 0;
v2.damage = 15;
v2.superhit = false;
v2.ragemultiplier = 1;
v2.knife = true;
v2.throwing = false;
v2.grab = false;
v2.i = 0;
v2.boss = true;
v2.canfly = true;
v2.cangol = true;
v2.cangor = true;
v2.shoottimer = 0;
v2.bullits = 0;
v2.rat = false;
v2.scary = false;
v2.sprint = false;
v2.hit = false;
v2.stand = 0;
v2.scaredmov = false;
v2.jumpspeedx = 0;
v2.onground = false;
v2.block = false;
v2.horizontal = false;
v2.wantgor = false;
v2.wantgol = false;
v2.fighting = false;
v2.gethits = 0;
v2.retreating = false;
v2.taipe = 6;
ASSetPropFlags(_global.ratking.prototype, null, 1);
}
#endinitclip
}
movieClip 1751 __Packages.hero {
#initclip
if (!_global.hero) {
var v1 = function () {
super();
};
_global.hero = v1;
_global.hero extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.panel.bull = true;
if (_root.act.level > 0) {
var v3 = SharedObject.getLocal('killgore');
this.shoes = v3.data.shoes[_root.act.level];
this.horns = v3.data.horns[_root.act.level];
_root.act.health = 200 + v3.data.health[_root.act.level] * 25;
}
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
if (this.rage > 0) {
this.rage -= 0.1;
if (this.rage > 80) {
if (this.glowing == false) {
var v4 = new flash.filters.GlowFilter(16711680, 1, 4, 4, 6, 3, false, false);
this.filters = [v4];
this.glowing = true;
}
} else {
if (this.glowing == true) {
this.filters = [];
this.glowing = false;
}
}
}
this._y = this.truehi + this.hi;
if (_root.act.health > 0) {
if (this.getdown == false) {
if (this.gethit == false) {
if (this.jump == false) {
if (this.grab == false) {
if (this.hit == false) {
if (Key.isDown(_root.act.punchbutton)) {
if (this.block == false) {
if (this.sprint == false) {
this.punches();
} else {
this.gotoAndPlay('runhit' + this.direction);
this.damage = 20;
this.horizontal = true;
this.superhit = true;
this.whifsound = 4;
this.checkenemies();
this.hit = true;
this.animation = false;
this.sprint = false;
this.climbingatstart();
}
} else {
this.checkforgrab();
if (this.grab == false) {
this.punches();
}
this.block = false;
}
} else {
if (Key.isDown(_root.act.shootbutton) && this.ammo == 0 && this.cells > 0) {
this.reloading();
} else {
if (Key.isDown(_root.act.jumpbutton)) {
this.gotoAndPlay('jump' + this.direction);
this.jump = true;
} else {
this.combohit = 1;
if (Key.isDown(_root.act.blockbutton)) {
this.blockach = false;
if (this.block == false) {
this.animation = false;
}
this.block = true;
} else {
if (this.block == true) {
this.animation = false;
}
this.block = false;
}
if (Key.isDown(_root.act.shootbutton) && this.ammo > 0) {
if (this.shoot == false) {
this.animation = false;
}
this.shoot = true;
} else {
if (this.shoot == true) {
this.animation = false;
}
this.shoot = false;
this.shoottimer = -3;
}
if (Key.isDown(39)) {
this.sitting = false;
++this.arrowlholding;
if (this.direction == 'l' || this.stand >= 1 || this.sitting == true) {
this.animation = false;
}
this.stand = 0;
if (this.arrowrholding < 5 && this.arrowrholding > 1) {
this.sprint = true;
this.jumpspeedx = this.speed * 3;
this.animation = false;
this.arrowrholding = 0;
} else {
this.jumpspeedx = this.speed;
this.arrowrholding = 0;
}
this.checkgroundr();
this.direction = 'r';
if (this.sprint == false) {
if (this.block == true) {
this.blockgotothe();
} else {
if (this.shoot == true) {
if (this.shoottimer > 0) {
this.shootgotothe();
} else {
this.upgun();
}
} else {
this.gotothe();
}
}
} else {
this.runtothe();
}
} else {
if (Key.isDown(37)) {
this.sitting = false;
++this.arrowrholding;
if (this.direction == 'r' || this.stand >= 1 || this.sitting == true) {
this.animation = false;
}
this.stand = 0;
if (this.arrowlholding < 5 && this.arrowlholding >= 1) {
this.sprint = true;
this.animation = false;
this.arrowlholding = 0;
this.jumpspeedx = -this.speed * 3;
} else {
this.jumpspeedx = -this.speed;
this.arrowlholding = 0;
}
this.checkgroundl();
this.direction = 'l';
if (this.sprint == false) {
if (this.block == true) {
this.blockgotothe();
} else {
if (this.shoot == true) {
if (this.shoottimer > 0) {
this.shootgotothe();
} else {
this.upgun();
}
} else {
this.gotothe();
}
}
} else {
this.runtothe();
}
} else {
++this.stand;
++this.arrowlholding;
++this.arrowrholding;
if (Key.isDown(40)) {
this.sit();
} else {
if (this.stand == 1 || this.sitting == true) {
this.sprint = false;
this.animation = false;
this.sitting = false;
}
if (this.block == true) {
this.blocking();
} else {
if (this.shoot == true) {
if (this.shoottimer > 0) {
this.shooting();
} else {
this.upgun();
}
} else {
this.standing();
}
}
}
}
}
}
}
}
} else {
this.sitting = false;
if (this.realhit == true) {
this.checkenemies();
this.realhit = false;
}
this.stand = 10;
}
} else {
this.grabbing();
}
} else {
this.jumping();
this.backattacking();
}
} else {
this.gettinghit();
}
} else {
this.gettingdown();
}
} else {
var v3 = SharedObject.getLocal('killgore');
v3.data.flawless[_root.act.level] = 0;
this.gettingdown();
}
}
};
v2.sit = function () {
if (this.shoot == false) {
if (this.sitting == false) {
this.animation = false;
}
this.sitting = true;
this.sprint = false;
this.jumpspeedx = 0;
if (this.animation == false) {
_root.back.hero.gotoAndPlay('sit' + this.direction);
this.animation = true;
}
} else {
if (this.sitting == false) {
this.animation = false;
}
this.sitting = true;
this.sprint = false;
this.jumpspeedx = 0;
if (this.shoottimer < 0) {
this.shoottimer = 4;
}
if (this.animation == false) {
this.gotoAndPlay('sitshoot' + this.direction);
this.animation = true;
}
this.stand = 0;
if (this.shoottimer > 4) {
if (this.ammo == 1) {
this.animation = false;
}
this.launchbullit();
--this.ammo;
this.shoottimer = 0;
} else {
++this.shoottimer;
}
}
};
v2.backattacking = function () {
if (this.backaready == true) {
this.damage = 5;
this.superhit = false;
this.checkflyenemies();
--this.backattack;
this.backaready = false;
}
};
v2.flyhit = function () {
if (Key.isDown(38)) {
this.gotoAndPlay('jupattack' + this.direction);
this.superhit = true;
this.damage = 21 + this.shoes * 2;
this.whifsound = 3;
this.horizontal = false;
this.checkflyenemiestop();
this.hit = true;
} else {
if (Key.isDown(40)) {
this.gotoAndPlay('jdownattack');
this.superhit = true;
this.damage = 35 + this.shoes * 3;
this.horizontal = false;
this.whifsound = 3;
this.checkflyenemiesdown();
this.hit = true;
} else {
if (Key.isDown(39)) {
if (this.direction == 'r') {
this.gotoAndPlay('jforwardattack' + this.direction);
this.jumpspeedx = this.speed * 3;
this.sprint = true;
this.horizontal = true;
this.superhit = false;
this.damage = 20 + this.shoes * 2;
this.whifsound = 3;
this.checkflyenemies();
this.hit = true;
} else {
this.gotoAndPlay('jbackattack' + this.direction);
this.backaready = true;
this.horizontal = false;
this.backattack = 5;
this.superhit = false;
this.damage = 5 + this.shoes;
this.direction = 'r';
this.whifsound = 2;
this.hit = true;
}
} else {
if (Key.isDown(37)) {
if (this.direction == 'l') {
this.gotoAndPlay('jforwardattack' + this.direction);
this.jumpspeedx = this.speed * -3;
this.sprint = true;
this.horizontal = true;
this.superhit = false;
this.damage = 20 + this.shoes * 2;
this.whifsound = 3;
this.checkflyenemies();
this.hit = true;
} else {
this.gotoAndPlay('jbackattack' + this.direction);
this.superhit = false;
this.horizontal = false;
this.damage = 5 + this.shoes;
this.whifsound = 2;
this.backaready = true;
this.backattack = 5;
this.direction = 'l';
this.hit = true;
}
} else {
this.gotoAndPlay('jattack' + this.direction);
if (this.jumpspeedx == 3 * this.speed || this.jumpspeedx == -3 * this.speed) {
this.superhit = true;
this.horizontal = true;
} else {
this.superhit = false;
this.horizontal = false;
}
this.damage = 12 + this.shoes;
this.whifsound = 2;
this.checkflyenemies();
this.hit = true;
}
}
}
}
this.animation = false;
this.hit = true;
};
v2.punches = function () {
if (Key.isDown(38)) {
this.gotoAndPlay('hit' + this.direction + '4');
this.superhit = true;
this.damage = 20 + this.shoes * 2;
this.horizontal = false;
this.whifsound = 4;
} else {
if (Key.isDown(40)) {
this.gotoAndPlay('downattack' + this.direction);
this.superhit = false;
this.damage = 10 + this.shoes;
this.whifsound = 3;
this.checkenemiesd();
} else {
this.gotoAndPlay('hit' + this.direction + this.combohit);
if (this.combohit == 1) {
this.superhit = false;
this.horizontal = false;
this.damage = 5 + this.shoes;
++this.combohit;
this.whifsound = 1;
} else {
if (this.combohit == 2) {
this.superhit = false;
this.horizontal = false;
this.damage = 10 + this.shoes;
++this.combohit;
this.whifsound = 1;
} else {
if (this.combohit == 3) {
this.superhit = true;
this.horizontal = true;
this.damage = 20 + this.shoes * 2;
this.combohit = 1;
this.whifsound = 3;
}
}
}
}
}
this.animation = false;
this.hit = true;
};
v2.upgun = function () {
if (this.shoottimer == -3) {
this.gotoAndPlay('upgun' + this.direction);
}
++this.shoottimer;
};
v2.jumping = function () {
this.stand = 2;
this.sitting = false;
++this.jumptimer;
if (this.hit == false && this.gethit == false) {
if (Key.isDown(_root.act.punchbutton)) {
this.flyhit();
this.hit = true;
}
}
if (this.jumptimer < 16) {
this.hi -= 16 - this.jumptimer;
} else {
this.hi += this.jumptimer - 16;
this.searchground();
}
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
}
};
v2.searchground = function () {
this._y = this.truehi + this.hi;
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + _root.back._y, true)) {
this.i = 0;
while (this.i <= this.jumptimer) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
this.truehi = this._y;
this.hi = 0;
if (this.getdown == false) {
this.animation = false;
if (Key.isDown(39) && _root.back.hero.cangor == true || Key.isDown(37) && _root.back.hero.cangol == true) {
_root.back.hero.gotoAndPlay('go' + _root.back.hero.direction);
} else {
_root.back.hero.gotoAndPlay('stay' + _root.back.hero.direction);
}
this.hit = false;
this.sprint = false;
this.jump = false;
this.stand = 0;
this.jumptimer = 0;
this.onground = true;
} else {
if (_root.act.soundsfx == true) {
_root.herosound.attachSound('landhero', false);
_root.herosound.start();
}
if (this.onground == false) {
this.gotoAndPlay('bounce' + this.direction);
}
this.onground = true;
}
}
};
v2.checkcollisionsr = function () {
var v3 = true;
if (this._x + _root.back._x > 650) {
v3 = false;
}
this.cangor = v3;
};
v2.checkcollisionsl = function () {
var v3 = true;
if (this._x + _root.back._x < 60) {
v3 = false;
}
this.cangol = v3;
};
v2.checkgroundl = function () {
this.cangol = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x - this.speed * 3 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed * 3 + _root.back._x, this._y - this.speed * 4 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed * 3 + _root.back._x, this.speed * 4 + this._y + _root.back._y, true)) {
this.climbingdown();
} else {
this.jumpdown();
}
this.checkcollisionsl();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this._y - this.speed * 2 + _root.back._y, true)) {
this.cangol = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x - this.speed + _root.back._x, this.speed * 2 + this._y + _root.back._y, true)) {
this.climbingdown();
} else {
this.jumpdown();
}
this.checkcollisionsl();
}
}
};
v2.checkgroundr = function () {
this.cangor = true;
if (this.sprint == true) {
if (_root.back.cf.hitTest(this._x + this.speed * 3 + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed * 2 + _root.back._x, this._y - this.speed * 4 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed * 3 + _root.back._x, this.speed * 4 + this._y + _root.back._y, true)) {
this.climbingdown();
} else {
this.jumpdown();
}
this.checkcollisionsr();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this._y - this.speed * 2 + _root.back._y, true)) {
this.cangor = false;
} else {
this.climbing();
}
} else {
if (_root.back.cf.hitTest(this._x + this.speed + _root.back._x, this.speed * 2 + this._y + _root.back._y, true)) {
this.climbingdown();
} else {
this.jumpdown();
}
this.checkcollisionsr();
}
}
};
v2.climbing = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
}
++this.i;
}
};
v2.climbingdown = function () {
this.i = 0;
while (this.i <= this.speed * 2) {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, 1 + this._y + _root.back._y, true)) {
} else {
++this.truehi;
++this._y;
}
++this.i;
}
};
v2.checkfly = function () {
if (_root.back.cf.hitTest(this._x + this.jumpspeedx + _root.back._x, _root.back._y + this.hi + this.truehi, true)) {
this.canfly = false;
this.cangol = false;
this.cangor = false;
} else {
this.canfly = true;
}
};
v2.jumpdown = function () {
this.gotoAndStop('fall' + this.direction);
this.jumptimer = 16;
this.jump = true;
this.wantjump = false;
this.gotoAndStop('fall' + this.direction);
};
v2.checkflyenemiestop = function () {
this.aiming = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].goingout == false) {
if (_root.back['enemy' + this.i]._y >= this._y - 120 && _root.back['enemy' + this.i]._y <= this._y + 60) {
if (_root.back['enemy' + this.i].rat == false) {
if (_root.back['enemy' + this.i].boss == false) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
this.suphit();
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
this.suphit();
}
}
}
}
}
}
++this.i;
}
if (this.aiming == true && _root.act.soundsfx == true) {
_root.herosound.attachSound('whiff' + this.whifsound, false);
_root.herosound.start();
}
};
v2.checkflyenemies = function () {
this.aiming = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].goingout == false) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 150) {
if (_root.back['enemy' + this.i].rat == false) {
if (_root.back['enemy' + this.i].boss == false) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (this.superhit == true) {
this.suphit();
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (this.superhit == true) {
this.suphit();
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
}
}
}
}
}
}
}
++this.i;
}
if (this.aiming == true && _root.act.soundsfx == true) {
_root.herosound.attachSound('whiff' + this.whifsound, false);
_root.herosound.start();
}
};
v2.checkflyenemiesdown = function () {
this.aiming = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].goingout == false) {
if (_root.back['enemy' + this.i]._y >= this._y - 20 && _root.back['enemy' + this.i]._y <= this._y + 120) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].boss == false) {
if (_root.back['enemy' + this.i].rat == false) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
this.suphit();
this.allenemies();
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
this.suphit();
this.allenemies();
}
}
}
} else {
if (_root.back['enemy' + this.i].health > 0) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
}
}
}
}
} else {
if (_root.back['enemy' + this.i].onground == false) {
if (_root.back['enemy' + this.i].jumptimer > 5) {
_root.back['enemy' + this.i].jumptimer -= this.damage;
} else {
_root.back['enemy' + this.i].jumptimer = 0;
}
this.allenemies();
}
}
}
}
++this.i;
}
if (this.aiming == true && _root.act.soundsfx == true) {
_root.herosound.attachSound('whiff' + this.whifsound, false);
_root.herosound.start();
}
};
v2.checkforgrab = function () {
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].goingout == false) {
if (_root.back['enemy' + this.i]._y >= this._y - 100 && _root.back['enemy' + this.i]._y <= this._y + 40) {
if (_root.back['enemy' + this.i].rat == false && _root.back['enemy' + this.i].boss == false) {
if (_root.back['enemy' + this.i].getdown == false) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
_root.back['enemy' + this.i].grab = true;
this.gotoAndPlay('grab' + this.direction);
_root.herosound.attachSound('grabwav', false);
_root.herosound.start();
this.hit = true;
this.animation = false;
this.grabedenemy = this.i;
this.grab = true;
break;
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
_root.back['enemy' + this.i].grab = true;
this.gotoAndPlay('grab' + this.direction);
_root.herosound.attachSound('grabwav', false);
_root.herosound.start();
this.hit = true;
this.animation = false;
this.grabedenemy = this.i;
this.grab = true;
break;
}
}
}
}
}
}
++this.i;
}
};
v2.checkenemies = function () {
this.aiming = true;
_root.panel.hit = true;
this.i = 0;
while (this.i < 20) {
var v3 = 0;
if (this.direction == 'r') {
if (_root.back['do' + this.i]._visible == true) {
if (_root.back['do' + this.i]._y >= this._y - 100 && _root.back['do' + this.i]._y <= this._y + 40) {
if (_root.back['do' + this.i]._x > this._x && _root.back['do' + this.i]._x < this._x + this.range) {
if (this.superhit == false) {
_root.back['do' + this.i].gethit = true;
_root.back['do' + this.i].health -= this.damage;
} else {
_root.back.cf['do' + _root.back['do' + this.i].number].removeMovieClip();
_root.back['do' + this.i].direction = this.direction;
_root.back['do' + this.i].getdown = true;
_root.back['do' + this.i].onground = false;
_root.back['do' + this.i].horizontal = this.horizontal;
}
}
}
}
} else {
if (_root.back['do' + this.i]._visible == true) {
if (_root.back['do' + this.i]._y >= this._y - 100 && _root.back['do' + this.i]._y <= this._y + 40) {
if (_root.back['do' + this.i]._x <= this._x && _root.back['do' + this.i]._x > this._x - this.range) {
if (this.superhit == false) {
_root.back['do' + this.i].gethit = true;
_root.back['do' + this.i].health -= this.damage;
} else {
_root.back.cf['do' + _root.back['do' + this.i].number].removeMovieClip();
_root.back['do' + this.i].direction = this.direction;
_root.back['do' + this.i].getdown = true;
_root.back['do' + this.i].onground = false;
_root.back['do' + this.i].horizontal = this.horizontal;
}
}
}
}
}
if (_root.back['enemy' + this.i]._y >= this._y - 100 && _root.back['enemy' + this.i]._y <= this._y + 40) {
if (_root.back['enemy' + this.i].goingout == false) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].rat == false) {
if (_root.back['enemy' + this.i].gethit == true) {
if (this.superhit == true) {
this.suphit();
++v3;
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
var v4 = Math.random();
this.marksmanach = false;
} else {
var v4 = 1;
}
if (v4 < 0.5) {
_root.back['enemy' + this.i].block = true;
} else {
if (this.superhit == true) {
this.suphit();
++v3;
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
}
}
}
}
} else {
if (_root.back['enemy' + this.i].onground == false) {
if (_root.back['enemy' + this.i].health <= 0) {
++_root.back['enemy' + this.i].blams;
}
if (_root.back['enemy' + this.i].jumptimer > 5) {
_root.back['enemy' + this.i].jumptimer -= this.damage;
} else {
_root.back['enemy' + this.i].jumptimer = 0;
}
this.allenemies();
}
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].rat == false) {
if (_root.back['enemy' + this.i].gethit == true) {
if (this.superhit == true) {
this.suphit();
++v3;
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
}
} else {
if (_root.back['enemy' + this.i].boss == true) {
this.marksmanach = false;
var v4 = Math.random();
} else {
var v4 = 1;
}
if (v4 < 0.5) {
_root.back['enemy' + this.i].block = true;
} else {
if (this.superhit == true) {
this.suphit();
++v3;
} else {
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
}
}
}
}
} else {
if (_root.back['enemy' + this.i].onground == false) {
if (_root.back['enemy' + this.i].health <= 0) {
++_root.back['enemy' + this.i].blams;
}
if (_root.back['enemy' + this.i].jumptimer > 5) {
_root.back['enemy' + this.i].jumptimer -= this.damage;
} else {
_root.back['enemy' + this.i].jumptimer = 0;
}
this.allenemies();
}
}
}
}
}
}
if (v3 > 3) {
var v5 = SharedObject.getLocal('killgore');
v5.data.ach[16] = 1;
}
v3 = 0;
++this.i;
}
if (this.aiming == true && _root.act.soundsfx == true) {
_root.herosound.attachSound('whiff' + this.whifsound, false);
_root.herosound.start();
}
};
v2.allenemies = function () {
if (_root.back['enemy' + this.i].health <= 0 && _root.back['enemy' + this.i].onground == true) {
} else {
_root.panel.hit = true;
_root.back['enemy' + this.i].gethit = true;
_root.back['enemy' + this.i].health -= this.damage;
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
if (this.direction == 'r') {
_root.back['enemy' + this.i].direction = 'l';
} else {
_root.back['enemy' + this.i].direction = 'r';
}
if (_root.back['enemy' + this.i].boss == false) {
this.addblood();
this.addscore();
} else {
if (_root.back['enemy' + this.i].health > 0) {
this.addblood();
this.addscore();
}
}
this.panelcontrol();
}
};
v2.panelcontrol = function () {
_root.enemypanel.timer = 0;
_root.enemypanel.enemyid = this.i;
};
v2.suphit = function () {
if (_root.back['enemy' + this.i].health <= 0 && _root.back['enemy' + this.i].onground == true) {
} else {
_root.panel.hit = true;
if (this.direction == 'r') {
_root.back['enemy' + this.i].direction = 'l';
} else {
_root.back['enemy' + this.i].direction = 'r';
}
if (_root.back['enemy' + this.i].boss == false) {
this.addblood();
this.addscore();
} else {
if (_root.back['enemy' + this.i].health > 0) {
this.addblood();
this.addscore();
}
}
this.panelcontrol();
_root.back['enemy' + this.i].health -= this.damage;
_root.back['enemy' + this.i].horizontal = this.horizontal;
_root.back['enemy' + this.i].gethit = true;
_root.back['enemy' + this.i].jumptimer = 0;
_root.back['enemy' + this.i].onground = false;
_root.back['enemy' + this.i].getdown = true;
_root.back['enemy' + this.i].hit = false;
_root.back['enemy' + this.i].animation = false;
}
};
v2.checkenemiesd = function () {
this.aiming = true;
this.i = 0;
while (this.i < 20) {
if (_root.back['enemy' + this.i].boss == false && _root.back['enemy' + this.i].goingout == false) {
if (_root.back['enemy' + this.i]._y >= this._y - 70 && _root.back['enemy' + this.i]._y <= this._y + 90) {
if (this.direction == 'r') {
if (_root.back['enemy' + this.i]._x > this._x && _root.back['enemy' + this.i]._x < this._x + this.range) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].rat == true) {
_root.back['enemy' + this.i].jumptimer = 0;
}
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
} else {
if (_root.back['enemy' + this.i].onground == false) {
if (_root.back['enemy' + this.i].jumptimer > 5) {
_root.back['enemy' + this.i].jumptimer -= this.damage;
} else {
_root.back['enemy' + this.i].jumptimer = 0;
}
this.allenemies();
}
}
}
} else {
if (_root.back['enemy' + this.i]._x > this._x - this.range && _root.back['enemy' + this.i]._x < this._x) {
if (_root.back['enemy' + this.i].getdown == false) {
if (_root.back['enemy' + this.i].gethit == true) {
} else {
if (_root.back['enemy' + this.i].rat == true) {
_root.back['enemy' + this.i].jumptimer = 0;
}
}
_root.back['enemy' + this.i].gethit = true;
this.allenemies();
break;
} else {
if (_root.back['enemy' + this.i].onground == false) {
if (_root.back['enemy' + this.i].jumptimer > 5) {
_root.back['enemy' + this.i].jumptimer -= this.damage;
} else {
_root.back['enemy' + this.i].jumptimer = 0;
}
this.allenemies();
}
}
}
}
}
}
++this.i;
}
if (this.aiming == true && _root.act.soundsfx == true) {
_root.herosound.attachSound('whiff' + this.whifsound, false);
_root.herosound.start();
}
};
v2.shooting = function () {
this.gotoAndStop('shoot' + this.direction);
_root.back.hero['shootanim' + this.direction].gotoAndStop(this.shoottimer);
if (this.shoottimer > 4) {
this.launchbullit();
--this.ammo;
this.shoottimer = 0;
} else {
++this.shoottimer;
}
this.animation = false;
};
v2.reloading = function () {
this.gotoAndPlay('reload' + this.direction);
this.animation = false;
this.hit = true;
};
v2.blocking = function () {
if (this.animation == false) {
this.gotoAndPlay('blocks' + this.direction);
this.animation = true;
}
};
v2.runtothe = function () {
if (_root.back.hero['cango' + this.direction] == true) {
if (this.animation == false) {
_root.back.hero.gotoAndPlay('sprint' + this.direction);
this.animation = true;
}
this.stand = 0;
if (this.direction == 'r') {
this._x += 3 * this.speed;
this.jumpspeedx = 3 * this.speed;
} else {
this._x -= 3 * this.speed;
this.jumpspeedx = -3 * this.speed;
}
} else {
this.standing();
}
};
v2.blockgotothe = function () {
if (_root.back.hero['cango' + this.direction] == true) {
if (this.animation == false) {
_root.back.hero.gotoAndPlay('block' + this.direction);
this.animation = true;
}
this.stand = 0;
if (this.direction == 'r') {
this._x += this.speed * 0.5;
this.jumpspeedx = this.speed * 0.5;
} else {
this._x -= this.speed * 0.5;
this.jumpspeedx = -this.speed * 0.5;
}
} else {
this.blocking();
}
};
v2.shootgotothe = function () {
if (_root.back.hero['cango' + this.direction] == true) {
if (this.animation == false) {
_root.back.hero.gotoAndPlay('goshoot' + this.direction);
this.animation = true;
}
this.stand = 0;
if (this.direction == 'r') {
this._x += this.speed;
this.jumpspeedx = this.speed;
} else {
this._x -= this.speed;
this.jumpspeedx = -this.speed;
}
_root.back.hero['goingandshooting' + this.direction].shotanim.gotoAndStop(this.shoottimer);
if (this.shoottimer > 4) {
if (this.ammo == 1) {
this.animation = false;
}
this.launchbullit();
--this.ammo;
this.shoottimer = 0;
} else {
++this.shoottimer;
}
} else {
this.shooting();
}
};
v2.launchbullit = function () {
_root.back['bullit' + this.bullits].removeMovieClip();
if (_root.act.soundsfx == true) {
_root.herosound.attachSound('shooting', false);
_root.herosound.start();
}
if (this.direction == 'r') {
_root.back.attachMovie('bullit', 'bullit' + this.bullits, 990 + this.bullits);
_root.back['bullit' + this.bullits]._x = this._x + 50;
_root.back['bullit' + this.bullits].right = true;
} else {
_root.back.attachMovie('bullit', 'bullit' + this.bullits, 990 + this.bullits);
_root.back['bullit' + this.bullits]._x = this._x - 50;
_root.back['bullit' + this.bullits].right = false;
}
if (this.sitting == false) {
_root.back['bullit' + this.bullits]._y = this._y - 103;
} else {
_root.back['bullit' + this.bullits]._y = this._y - 73;
}
if (this.bullits > 8) {
this.bullits = 0;
} else {
++this.bullits;
}
_root.panel.bull = true;
};
v2.gotothe = function () {
if (_root.back.hero['cango' + this.direction] == true) {
if (this.animation == false) {
_root.back.hero.gotoAndPlay('go' + this.direction);
this.animation = true;
}
this.stand = 0;
if (this.direction == 'r') {
this._x += this.speed;
this.jumpspeedx = this.speed;
} else {
this._x -= this.speed;
this.jumpspeedx = -this.speed;
}
} else {
if (this.cangor == false && this.cangol == false) {
this.climbingatstart();
} else {
this.arrowlholding = 0;
this.arrowrholding = 0;
this.standing();
}
}
};
v2.climbingatstart = function () {
this.i = 0;
while (this.i <= 1000) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y + 1 + _root.back._y, true)) {
if (_root.back.cf.hitTest(this._x + _root.back._x, this._y - 1 + _root.back._y, true)) {
--this.truehi;
--this._y;
} else {
this.cangol = true;
this.cangor = true;
break;
}
} else {
++this.truehi;
++this._y;
}
++this.i;
}
this.animation = false;
};
v2.upattack = function () {};
v2.downattack = function () {};
v2.standing = function () {
this.jumpspeedx = 0;
if (this.animation == false) {
_root.back.hero.gotoAndPlay('stay' + this.direction);
this.animation = true;
}
};
v2.gettinghit = function () {
this.sitting = false;
_root.back['enemy' + this.grabedenemy].grab = false;
_root.back['enemy' + this.grabedenemy].gethit = false;
_root.back['enemy' + this.grabedenemy].animation = false;
this.grabedenemy = 100;
this.grab = false;
this.hit = false;
this.block = false;
if (this.jump == true) {
this.jumping();
}
if (this.animation == false) {
this.gotoAndPlay('hurt' + this.direction);
this.animation = true;
}
};
v2.gettingdown = function () {
this.sitting = false;
_root.panel.gethit = true;
_root.back['enemy' + this.grabedenemy].grab = false;
_root.back['enemy' + this.grabedenemy].gethit = false;
_root.back['enemy' + this.grabedenemy].animation = false;
this.grabedenemy = 100;
this.grab = false;
this.hit = false;
this.block = false;
this.gethit = false;
if (this.direction == 'r') {
this.jumpspeedx = -10;
} else {
this.jumpspeedx = 10;
}
this.sprint = true;
if (this.onground == false) {
if (this.animation == false) {
this.gotoAndPlay('knockdown' + this.direction);
this.animation = true;
}
++this.jumptimer;
this.checkfly();
if (this.canfly == true) {
this._x += this.jumpspeedx;
}
if (this.jumptimer < 10) {
this.hi -= 10 - this.jumptimer;
} else {
this.hi += this.jumptimer - 10;
}
this.searchground();
}
};
v2.addscore = function () {
if (_root.back['enemy' + this.i].getdown == false) {
_root.act.score += this.damage;
this.rage += 0.3 * this.damage;
} else {
_root.act.score += _root.back['enemy' + this.i].jumptimer + this.damage;
this.rage += 0.3 * (_root.back['enemy' + this.i].jumptimer + this.damage);
}
if (this.rage > 100) {
this.rage = 100;
}
};
v2.addblood = function () {
this.aiming = false;
if (_root.act.soundsfx == true) {
if (this.whifsound == 2) {
_root.herosound.attachSound('hit1', false);
_root.herosound.start();
} else {
_root.herosound.attachSound('hit' + this.whifsound, false);
_root.herosound.start();
}
}
_root.back['blood' + _root.act.bloods].removeMovieClip();
if (this.superhit == false) {
_root.back.attachMovie('pow_small', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back['enemy' + this.i]._x;
_root.back['blood' + _root.act.bloods]._y = this._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
} else {
_root.back.attachMovie('pow_big', 'blood' + _root.act.bloods, _root.act.bloods + 2000);
_root.back['blood' + _root.act.bloods]._x = _root.back['enemy' + this.i]._x;
_root.back['blood' + _root.act.bloods]._y = this._y - 100;
_root.back['blood' + _root.act.bloods].gotoAndPlay('dir' + this.direction);
if (_root.act.bloods > 8) {
_root.act.bloods = 0;
} else {
++_root.act.bloods;
}
}
};
v2.grabbing = function () {
this.sitting = false;
this.block = false;
_root.back['enemy' + this.grabedenemy].hit = false;
if (_root.back['enemy' + this.grabedenemy].health <= 0) {
this.animation = false;
this.grab = false;
}
if (this.direction == 'r') {
_root.back['enemy' + this.grabedenemy].direction = 'l';
} else {
_root.back['enemy' + this.grabedenemy].direction = 'r';
}
if (this.throwing == true) {
if (this.animation == true) {
_root.back['enemy' + this.grabedenemy].grab = false;
_root.back['enemy' + this.grabedenemy]._rotation = 0;
_root.back['enemy' + this.grabedenemy].health -= 20;
_root.back['enemy' + this.grabedenemy].horizontal = true;
_root.back['enemy' + this.grabedenemy].getdown = true;
_root.back['enemy' + this.grabedenemy].jumptimer = 0;
_root.back['enemy' + this.grabedenemy].onground = false;
_root.back['enemy' + this.grabedenemy].animation = true;
_root.back['enemy' + this.grabedenemy].hi = -100;
_root.back['enemy' + this.grabedenemy].gotoAndPlay('throw' + _root.back['enemy' + this.grabedenemy].direction);
_root.back['enemy' + this.grabedenemy].jumptimer = 10;
this.grab = false;
this.hit = false;
this.animation = false;
this.throwing = false;
this.grab = false;
} else {
_root.back['enemy' + this.grabedenemy]._rotation = _root.back.hero.target._rotation;
_root.back['enemy' + this.grabedenemy]._x = _root.back.hero._x + _root.back.hero.target._x;
_root.back['enemy' + this.grabedenemy]._y = _root.back.hero._y + _root.back.hero.target._y + 50;
}
}
if (this.hit == false) {
if (Key.isDown(_root.act.punchbutton)) {
this.gotoAndPlay('grabattack' + this.direction);
if (_root.back['enemy' + this.grabedenemy].health > 10) {
_root.back['enemy' + this.grabedenemy].health -= 10;
_root.back['enemy' + this.grabedenemy].gethit = true;
_root.back['enemy' + this.grabedenemy].animation = false;
} else {
_root.back['enemy' + this.grabedenemy].health = 0;
_root.back['enemy' + this.grabedenemy].grab = false;
_root.back['enemy' + this.grabedenemy].gethit = true;
_root.back['enemy' + this.grabedenemy].animation = false;
}
if (_root.act.soundsfx == true) {
_root.herosound.attachSound('hit1', false);
_root.herosound.start();
}
this.hit = true;
} else {
if (Key.isDown(_root.act.shootbutton)) {
this.gotoAndPlay('throw' + this.direction);
if (_root.act.soundsfx == true) {
_root.herosound.attachSound('thrownknife', false);
_root.herosound.start();
}
this.throwing = true;
this.animation = false;
this.hit = true;
} else {
this.gotoAndStop('grabbing' + this.direction);
}
}
if (_root.back['enemy' + this.grabedenemy].health <= 0) {
this.grab = false;
}
}
};
v2.health = 200;
v2.getdown = false;
v2.gethit = false;
v2.jump = false;
v2.hit = false;
v2.block = false;
v2.animation = false;
v2.cangor = true;
v2.cangol = true;
v2.canfly = true;
v2.speed = 5;
v2.direction = 'r';
v2.sprint = false;
v2.sprinttimer = 100;
v2.arrowrholding = 0;
v2.arrowlholding = 0;
v2.combohit = 1;
v2.stand = 0;
v2.damage = 0;
v2.superhit = false;
v2.score = 0;
v2.range = 150;
v2.jumptimer = 0;
v2.truehi = 0;
v2.hi = 0;
v2.jumpspeedx = 0;
v2.wantjump = false;
v2.i = 0;
v2.onground = false;
v2.namea = 'n';
v2.bloodtype = 0;
v2.db = 0;
v2.scores = 0;
v2.ammo = 29;
v2.cells = 3;
v2.shoot = false;
v2.shoottimer = 0;
v2.backattack = 0;
v2.backaready = true;
v2.bullits = 0;
v2.horizontal = false;
v2.scoremultiplier = 0;
v2.horns = 0;
v2.shoes = 0;
v2.grab = false;
v2.grabedenemy = 100;
v2.throwing = false;
v2.realhit = false;
v2.sitting = false;
v2.rage = 0;
v2.blockach = true;
v2.marksmanach = true;
v2.whifsound = 0;
v2.aiming = true;
v2.glowing = false;
ASSetPropFlags(_global.hero.prototype, null, 1);
}
#endinitclip
}
movieClip 1752 __Packages.door {
#initclip
if (!_global.door) {
var v1 = function () {
super();
};
_global.door = v1;
_global.door extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.number = _root.act.enemies;
++_root.act.enemies;
};
v2.onEnterFrame = function () {
if (this.doora == false) {
_root.back.attachMovie('door', 'door' + this.number, 20 + this.number);
_root.back['door' + this.number]._x = this._x;
_root.back['door' + this.number]._y = this._y - 73;
_root.back['door' + this.number]._xscale = 35;
_root.back['door' + this.number]._yscale = 35;
this._visible = false;
this.doora = true;
}
if (this.ready == false) {
if (_root.back.hero._x > this._x - 300 && _root.back.hero._x < this._x + 300) {
if (_root.act.level < 6) {
_root.back.attachMovie('enemy', 'enemy' + this.number, 101 + 100 * this.number);
} else {
if (_root.act.level > 10) {
_root.back.attachMovie('enemywithgun', 'enemy' + this.number, 101 + 100 * this.number);
} else {
_root.back.attachMovie('enemywithknife', 'enemy' + this.number, 101 + 100 * this.number);
}
}
_root.back['enemy' + this.number]._x = this._x;
_root.back['enemy' + this.number]._y = this._y;
_root.back['enemy' + this.number].number = this.number;
_root.back['enemy' + this.number].doora = this.number;
_root.back['enemy' + this.number].goingout = true;
_root.back['enemy' + this.number].fromdoor = true;
this.myenemy = this.number;
this.ready = true;
this._visible = false;
}
}
};
v2.ready = false;
v2.myenemy = 0;
v2.number = 1;
v2.doora = false;
ASSetPropFlags(_global.door.prototype, null, 1);
}
#endinitclip
}
movieClip 1753 __Packages.doas {
#initclip
if (!_global.doas) {
var v1 = function () {
super();
};
_global.doas = v1;
_global.doas extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.back.attachMovie('deso', 'do' + _root.act.destrobj, 30 + _root.act.destrobj);
_root.back['do' + _root.act.destrobj]._x = this._x;
_root.back['do' + _root.act.destrobj]._y = this._y;
_root.back['do' + _root.act.destrobj].number = _root.act.destrobj;
_root.back.cf.attachMovie('docf', 'do' + _root.act.destrobj, 10 + _root.act.destrobj);
_root.back.cf['do' + _root.act.destrobj]._x = _root.back.cf._x + this._x;
_root.back.cf['do' + _root.act.destrobj]._y = _root.back.cf._y + this._y;
this.number = _root.act.destrobj;
++_root.act.destrobj;
this.getdown = false;
this._visible = false;
};
v2.onEnterFrame = function () {
if (this.getdown == true) {
_root.back.attachMovie('deso', 'do' + _root.act.destrobj, 30 + _root.act.destrobj);
_root.back['do' + _root.act.destrobj]._x = this._x;
_root.back['do' + _root.act.destrobj]._y = this._y;
_root.back['do' + _root.act.destrobj].number = _root.act.destrobj;
_root.back.cf.attachMovie('docf', 'do' + _root.act.destrobj, 10 + _root.act.destrobj);
_root.back.cf['do' + _root.act.destrobj]._x = _root.back.cf._x + this._x;
_root.back.cf['do' + _root.act.destrobj]._y = _root.back.cf._y + this._y;
this.number = _root.act.destrobj;
++_root.act.destrobj;
this.getdown = false;
}
};
v2.gethit = false;
v2.getdown = false;
v2.onground = false;
v2.horizontal = false;
v2.canfly = true;
v2.health = 100;
v2.number = 0;
v2.jumptimer = 0;
v2.jumpspeedx = 0;
v2.truehi = 0;
v2.hi = 0;
v2.i = 0;
v2.range = 100;
v2.direction = 'r';
ASSetPropFlags(_global.doas.prototype, null, 1);
}
#endinitclip
}
movieClip 1754 __Packages.speciallevel {
#initclip
if (!_global.speciallevel) {
var v1 = function () {
super();
};
_global.speciallevel = v1;
_global.speciallevel extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.shop.removeMovieClip();
_root.startmenu.removeMovieClip();
_root.attachMovie('truck', 'truck', 100);
_root.truck._x = 200;
_root.truck._y = 420;
_root.truck._xscale = 20;
_root.truck._yscale = 20;
_root.attachMovie('helicopteranim', 'heli', 200);
_root.heli._x = 200;
_root.heli._y = 100;
if (_root.musicon == true) {
_root.backMusic.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic1.start(0, 1000);
}
if (_root.soundsfx == true) {
_root.helisound = new Sound();
_root.helisound.attachSound('helisounds', false);
_root.helisound.start(0, 10000);
}
};
v2.onMouseDown = function () {
this.pressing = true;
};
v2.onMouseUp = function () {
this.pressing = false;
this.shoottimer = 3;
};
v2.onEnterFrame = function () {
if (_root.act.pause == false) {
this.enemyAI();
if (this.pressing == true) {
if (this.shoottimer > 5) {
this.launchbullit();
this.shoottimer = 0;
} else {
++this.shoottimer;
}
}
this.angle = Math.atan2(_root._ymouse - _root.truck._y, _root._xmouse - _root.truck._x);
_root.truck.body.shooter._rotation = Math.round(this.angle * 180 / Math.PI);
if (_root.truck.body.shooter._rotation > -110 && _root.truck.body.shooter._rotation <= 0) {
_root.truck.body.shooter._rotation = -110;
}
if (_root.truck.body.shooter._rotation > 0) {
_root.truck.body.shooter._rotation = -170;
}
if (Key.isDown(38)) {
if (_root.truck._y > 380) {
_root.truck._y -= 4;
}
} else {
if (Key.isDown(40)) {
if (_root.truck._y < 460) {
_root.truck._y += 4;
}
}
}
this.truey = Math.round((_root.truck._y - 380) / 8);
if (Key.isDown(39)) {
if (_root.truck._x < 560) {
_root.truck._x += 6;
}
} else {
if (Key.isDown(37)) {
if (_root.truck._x > 100) {
_root.truck._x -= 12;
}
}
}
if (this.bullits > 10) {
this.bullits = 0;
}
if (this.health <= 0) {
_root.act.now = 0;
}
if (this.enemyhealth <= 0) {
if (this.enemyhealth > -1000) {
_root.heli.gotoAndPlay('falling');
_root.helisound.stop();
this.enemyhealth = -2000;
}
}
}
};
v2.enemyAI = function () {
if (this.shooting == true) {
_root.heli._x += 5;
if (_root.heli._x < _root.truck._x - 50) {
this.hangle = Math.atan2(_root.truck._y - _root.heli._y, _root.truck._x - _root.heli._x);
_root.heli.body.shooter._rotation = Math.round(this.hangle * 180 / Math.PI);
}
if (this.eshoottimer > 5) {
if (this.ebullits > 5) {
this.shooting = false;
} else {
++this.ebullits;
}
this.launchhelibullit();
this.eshoottimer = 0;
} else {
++this.eshoottimer;
}
} else {
this.ebullits = 0;
_root.heli.body.shooter._rotation = 50;
if (this.heliy == this.truey) {
if (_root.heli._x > _root.truck._x - 200) {
_root.heli._x -= 5;
} else {
this.shooting = true;
}
} else {
if (_root.heli._y > _root.truck._y - 380) {
_root.heli._y -= 5;
} else {
_root.heli._y += 5;
}
if (_root.heli._x > _root.truck._x - 200) {
_root.heli._x -= 5;
}
}
}
this.heliy = Math.round(_root.heli._y / 8);
};
v2.launchhelibullit = function () {
if (_root.soundsfx == true) {
_root.enemysound.attachSound('shooting', false);
_root.enemysound.start();
}
_root.heli.body.shooter.gotoAndPlay('shoot');
_root.attachMovie('specbullit', 'b' + this.bullits, this.bullits + 1);
_root['b' + this.bullits]._x = _root.heli._x + 40;
_root['b' + this.bullits]._y = _root.heli._y + 10;
_root['b' + this.bullits].dx = Math.cos(_root.heli.body.shooter._rotation * Math.PI / 180) * 40;
_root['b' + this.bullits].dy = Math.sin(_root.heli.body.shooter._rotation * Math.PI / 180) * 40;
_root['b' + this.bullits].truey = this.heliy;
_root['b' + this.bullits].enemy1 = true;
_root['b' + this.bullits]._rotation = _root.heli.body.shooter._rotation;
++this.bullits;
};
v2.launchbullit = function () {
if (_root.soundsfx == true) {
_root.herosound.attachSound('shooting', false);
_root.herosound.start();
}
_root.truck.body.shooter.gotoAndPlay('shoot');
_root.attachMovie('specbullit', 'b' + this.bullits, this.bullits + 1);
_root['b' + this.bullits]._x = _root.truck._x - 40;
_root['b' + this.bullits]._y = _root.truck._y - 10;
_root['b' + this.bullits].dx = Math.cos(_root.truck.body.shooter._rotation * Math.PI / 180) * 40;
_root['b' + this.bullits].dy = Math.sin(_root.truck.body.shooter._rotation * Math.PI / 180) * 40;
_root['b' + this.bullits].truey = this.truey;
_root['b' + this.bullits]._rotation = _root.truck.body.shooter._rotation;
++this.bullits;
};
v2.bullits = 0;
v2.angle = 0;
v2.pause = false;
v2.shoottimer = 0;
v2.pressing = false;
v2.eshoottimer = 0;
v2.truey = 0;
v2.heliy = 0;
v2.shooting = false;
v2.ebullits = 0;
v2.hangle = 0;
v2.health = 100;
v2.enemyhealth = 100;
ASSetPropFlags(_global.speciallevel.prototype, null, 1);
}
#endinitclip
}
movieClip 1755 __Packages.acta {
#initclip
if (!_global.acta) {
var v1 = function () {
super();
};
_global.acta = v1;
_global.acta extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.attachMovie('preloader', 'preloader', 5);
_root.backMusic = new Sound();
_root.backMusic.attachSound('music.wav', false);
_root.backMusic.stop();
_root.backMusic1 = new Sound();
_root.backMusic1.attachSound('music1.wav', false);
_root.backMusic1.stop();
_root.backMusic2 = new Sound();
_root.backMusic2.attachSound('music2.wav', false);
_root.backMusic2.stop();
_root.backMusic3 = new Sound();
_root.backMusic3.attachSound('music3.wav', false);
_root.backMusic3.stop();
this.soundsfx = true;
this.score = 0;
this.money = 0;
_root.soundsfx = true;
_root.musicon = true;
_root.enemysound = new Sound();
_root.herosound = new Sound();
_root.attachMovie('sitelock', 'sitelock', 100000);
if (this.urlString.indexOf('kongregate.com') == -1) {
_root.sitelock._x = 0;
} else {
_root.sitelock._x = 1000;
_root.sitelock.removeMovieClip();
}
};
v2.onEnterFrame = function () {
_root.punchbutton = this.punchbutton;
_root.shootbutton = this.shootbutton;
_root.blockbutton = this.blockbutton;
_root.jumpbutton = this.jumpbutton;
_root.soundsfx = this.soundsfx;
_root.musicon = this.musicon;
Key.addListener(this.keyListener_obj);
this.keyListener_obj.onKeyDown = function () {
if (Key.getAscii() > 64 && Key.getAscii() < 91) {
if (_root.act.setabut == true) {
if (_root.act.punchbutton != Key.getAscii() && _root.act.shootbutton != Key.getAscii() && _root.act.blockbutton != Key.getAscii() && _root.act.jumpbutton != Key.getAscii()) {
_root.act.punchbutton = Key.getAscii();
_root.startmenu.mmm.controls.fa.text = String.fromCharCode(Key.getAscii());
_root.pscreen.controls.fa.text = String.fromCharCode(Key.getAscii());
_root.act.setabut = false;
}
} else {
if (_root.act.setjbut == true) {
if (_root.act.punchbutton != Key.getAscii() && _root.act.shootbutton != Key.getAscii() && _root.act.blockbutton != Key.getAscii() && _root.act.jumpbutton != Key.getAscii()) {
_root.act.jumpbutton = Key.getAscii();
_root.pscreen.controls.fj.text = String.fromCharCode(Key.getAscii());
_root.startmenu.mmm.controls.fj.text = String.fromCharCode(Key.getAscii());
_root.act.setjbut = false;
}
} else {
if (_root.act.setbbut == true) {
if (_root.act.punchbutton != Key.getAscii() && _root.act.shootbutton != Key.getAscii() && _root.act.blockbutton != Key.getAscii() && _root.act.jumpbutton != Key.getAscii()) {
_root.act.blockbutton = Key.getAscii();
_root.pscreen.controls.fb.text = String.fromCharCode(Key.getAscii());
_root.startmenu.mmm.controls.fb.text = String.fromCharCode(Key.getAscii());
_root.act.setbbut = false;
}
} else {
if (_root.act.setsbut == true) {
if (_root.act.punchbutton != Key.getAscii() && _root.act.shootbutton != Key.getAscii() && _root.act.blockbutton != Key.getAscii() && _root.act.jumpbutton != Key.getAscii()) {
_root.act.shootbutton = Key.getAscii();
_root.pscreen.controls.fs.text = String.fromCharCode(Key.getAscii());
_root.startmenu.mmm.controls.fs.text = String.fromCharCode(Key.getAscii());
_root.act.setsbut = false;
}
}
}
}
}
} else {
if (Key.getAscii() > 96 && Key.getAscii() < 123) {
if (_root.act.setabut == true) {
if (_root.act.punchbutton != Key.getAscii() - 32 && _root.act.shootbutton != Key.getAscii() - 32 && _root.act.blockbutton != Key.getAscii() - 32 && _root.act.jumpbutton != Key.getAscii() - 32) {
_root.act.punchbutton = Key.getAscii() - 32;
_root.startmenu.mmm.controls.fa.text = String.fromCharCode(Key.getAscii() - 32);
_root.pscreen.controls.fa.text = String.fromCharCode(Key.getAscii() - 32);
_root.act.setabut = false;
}
} else {
if (_root.act.setjbut == true) {
if (_root.act.punchbutton != Key.getAscii() - 32 && _root.act.shootbutton != Key.getAscii() - 32 && _root.act.blockbutton != Key.getAscii() - 32 && _root.act.jumpbutton != Key.getAscii() - 32) {
_root.act.jumpbutton = Key.getAscii() - 32;
_root.pscreen.controls.fj.text = String.fromCharCode(Key.getAscii() - 32);
_root.startmenu.mmm.controls.fj.text = String.fromCharCode(Key.getAscii() - 32);
_root.act.setjbut = false;
}
} else {
if (_root.act.setbbut == true) {
if (_root.act.punchbutton != Key.getAscii() - 32 && _root.act.shootbutton != Key.getAscii() - 32 && _root.act.blockbutton != Key.getAscii() - 32 && _root.act.jumpbutton != Key.getAscii() - 32) {
_root.act.blockbutton = Key.getAscii() - 32;
_root.pscreen.controls.fb.text = String.fromCharCode(Key.getAscii() - 32);
_root.startmenu.mmm.controls.fb.text = String.fromCharCode(Key.getAscii() - 32);
_root.act.setbbut = false;
}
} else {
if (_root.act.setsbut == true) {
if (_root.act.punchbutton != Key.getAscii() - 32 && _root.act.shootbutton != Key.getAscii() - 32 && _root.act.blockbutton != Key.getAscii() - 32 && _root.act.jumpbutton != Key.getAscii() - 32) {
_root.act.shootbutton = Key.getAscii() - 32;
_root.pscreen.controls.fs.text = String.fromCharCode(Key.getAscii() - 32);
_root.startmenu.mmm.controls.fs.text = String.fromCharCode(Key.getAscii() - 32);
_root.act.setsbut = false;
}
}
}
}
}
}
}
};
_root.startmenu.mmm.vol.text = this.mastervolume;
if (this.musicon == true) {
_root.startmenu.mmm.sound.music.text = 'on';
} else {
_root.startmenu.mmm.sound.music.text = 'off';
}
if (this.soundsfx == true) {
_root.startmenu.mmm.sound.sfx.text = 'on';
} else {
_root.startmenu.mmm.sound.sfx.text = 'off';
}
if (this.now == 0) {
this.pause = false;
_root.gameover.removeMovieClip();
_root.preloader.removeMovieClip();
_root.heli.removeMovieClip();
_root.truck.removeMovieClip();
_root.act.health = 200;
_root.menu.removeMovieClip();
_root.back.removeMovieClip();
_root.pscreen.removeMovieClip();
_root.panel.removeMovieClip();
_root.backback.removeMovieClip();
_root.close.removeMovieClip();
_root.backMusic.stop();
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic.setVolume(this.mastervolume);
if (this.musicon == true) {
_root.backMusic.start(0, 1000);
}
_root.attachMovie('startmenu', 'startmenu', 100);
_root.startmenu.mmm.controls.fa.text = String.fromCharCode(this.punchbutton);
_root.startmenu.mmm.controls.fs.text = String.fromCharCode(this.shootbutton);
_root.startmenu.mmm.controls.fb.text = String.fromCharCode(this.blockbutton);
_root.startmenu.mmm.controls.fj.text = String.fromCharCode(this.jumpbutton);
this.loadingstats();
this.now = 100;
} else {
if (this.now == 10) {
_root.gameover.removeMovieClip();
_root.shop.removeMovieClip();
_root.startmenu.removeMovieClip();
if (_root.act.level == 17) {
_root.gotoAndStop('speciallevel');
} else {
this.initscreen();
}
} else {
if (this.now == 11) {
if (this.pause == false) {
if (this.level == 0) {
this.enemies0();
} else {
if (this.level == 1) {
this.enemies1();
}
}
} else {
if (Key.isDown(13)) {
if (this.musicon == true) {
this.startmusic();
}
_root.pscreen.removeMovieClip();
_root.act.pause = false;
}
}
if (this.wantstartmusic == true && this.musicon == true) {
this.startmusic();
this.wantstartmusic = false;
}
++this.timer;
this.checkpause();
this.screencontrol();
} else {
if (this.now == 20) {
this.savingproc();
} else {
if (this.now == 21) {
this.shopstore();
} else {
if (this.now == 22) {
this.shopping();
} else {
if (this.now == 25) {
this.loadinglevel();
} else {
if (this.now == 100) {
_root.backMusic.setVolume(this.mastervolume);
this.loadingstats();
} else {
if (this.now == 26) {
this.initscreen2();
} else {
if (this.now == 27) {
this.gameover();
}
}
}
}
}
}
}
}
}
}
};
v2.gameover = function () {
if (_root.gameover._x < 1000) {
} else {
_root.enemypanel.removeMovieClip();
_root.back.removeMovieClip();
_root.pscreen.removeMovieClip();
_root.panel.removeMovieClip();
_root.backback.removeMovieClip();
_root.close.removeMovieClip();
_root.attachMovie('gameoverscreen', 'gameover', 1000);
}
if (Key.isDown(13)) {
var v2 = SharedObject.getLocal('killgore');
v2.data.ach[10] = 1;
_root.act.now = 10;
}
};
v2.loadinglevel = function () {
this.pause = true;
this.lbl = _root.back.image.getBytesLoaded();
this.lbt = _root.back.image.getBytesTotal();
_root.loadlevels.bytes.text = this.lbl + '/' + this.lbt;
if (this.lbl >= this.lbt) {
_root.loadlevels.exbut._visible = true;
} else {
_root.loadlevels.exbut._visible = false;
}
_root.back.image.onLoad = function () {
_root.loadlevels.removeMovieClip();
_root.act.now = 26;
};
};
v2.loadingstats = function () {
var v3 = SharedObject.getLocal('killgore');
if (v3.data.score[1] > 0) {
} else {
v3.data.bullits = [100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.score = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.money = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
this.i = 0;
while (this.i < 20) {
_root.startmenu.mmm['bu' + this.i]._visible = false;
++this.i;
}
}
if (v3.data.ach[0] < 100) {
this.i = 0;
while (this.i < 20) {
if (v3.data.ach[this.i] > 0) {
_root.startmenu.mmm.achievements['ac' + this.i].gotoAndStop(2);
} else {
_root.startmenu.mmm.achievements['ac' + this.i].gotoAndStop(1);
}
++this.i;
}
} else {
this.i = 0;
while (this.i < 20) {
_root.startmenu.mmm.achievements['ac' + this.i].gotoAndStop(1);
++this.i;
}
v3.data.ach = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.timer = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.bull = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
v3.data.blocking = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
v3.data.rambo = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
v3.data.flawless = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
}
this.i = 0;
while (this.i < 20) {
if (v3.data.blocking[this.i] > 0) {
_root.startmenu.mmm.achievements.ac13['s' + this.i]._visible = true;
} else {
_root.startmenu.mmm.achievements.ac13['s' + this.i]._visible = false;
}
if (v3.data.timer[this.i] < 1500) {
_root.startmenu.mmm.achievements.ac6['s' + this.i]._visible = true;
} else {
_root.startmenu.mmm.achievements.ac6['s' + this.i]._visible = false;
}
if (v3.data.rambo[this.i] > 0) {
_root.startmenu.mmm.achievements.ac15['s' + this.i]._visible = true;
} else {
_root.startmenu.mmm.achievements.ac15['s' + this.i]._visible = false;
}
if (v3.data.flawless[this.i] > 0) {
_root.startmenu.mmm.achievements.ac14['s' + this.i]._visible = true;
} else {
_root.startmenu.mmm.achievements.ac14['s' + this.i]._visible = false;
}
if (v3.data.rambo[1] == 1 && v3.data.rambo[0] == 1 && v3.data.rambo[2] == 1 && v3.data.rambo[3] == 1 && v3.data.rambo[4] == 1 && v3.data.rambo[6] == 1 && v3.data.rambo[7] == 1 && v3.data.rambo[8] == 1 && v3.data.rambo[9] == 1 && v3.data.rambo[10] == 1 && v3.data.rambo[12] == 1 && v3.data.rambo[13] == 1 && v3.data.rambo[14] == 1 && v3.data.rambo[15] == 1 && v3.data.rambo[16] == 1) {
v3.data.ach[15] = 1;
}
if (v3.data.flawless[1] == 1 && v3.data.flawless[0] == 1 && v3.data.flawless[2] == 1 && v3.data.flawless[3] == 1 && v3.data.flawless[4] == 1 && v3.data.flawless[6] == 1 && v3.data.flawless[7] == 1 && v3.data.flawless[8] == 1 && v3.data.flawless[9] == 1 && v3.data.flawless[10] == 1 && v3.data.flawless[12] == 1 && v3.data.flawless[13] == 1 && v3.data.flawless[14] == 1 && v3.data.flawless[15] == 1 && v3.data.flawless[16] == 1) {
v3.data.ach[14] = 1;
}
if (v3.data.blocking[1] == 1 && v3.data.blocking[0] == 1 && v3.data.blocking[2] == 1 && v3.data.blocking[3] == 1 && v3.data.blocking[4] == 1 && v3.data.blocking[6] == 1 && v3.data.blocking[7] == 1 && v3.data.blocking[8] == 1 && v3.data.blocking[9] == 1 && v3.data.blocking[10] == 1 && v3.data.blocking[12] == 1 && v3.data.blocking[13] == 1 && v3.data.blocking[14] == 1 && v3.data.blocking[15] == 1 && v3.data.blocking[16] == 1) {
v3.data.ach[13] = 1;
}
if (v3.data.timer[1] < 1500 && v3.data.timer[0] < 1500 && v3.data.timer[2] < 1500 && v3.data.timer[3] < 1500 && v3.data.timer[4] < 1500 && v3.data.timer[6] < 1500 && v3.data.timer[7] < 1500 && v3.data.timer[8] < 1500 && v3.data.timer[9] < 1500 && v3.data.timer[10] < 1500 && v3.data.timer[12] < 1500 && v3.data.timer[13] < 1500 && v3.data.timer[14] < 1500 && v3.data.timer[15] < 1500 && v3.data.timer[16] < 1500 && v3.data.score[16] > 0) {
v3.data.ach[6] = 1;
}
_root.startmenu.mmm.achievements.ac0['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac1['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac2['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac3['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac4['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac5['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac9['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac7['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac8['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac10['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac11['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac12['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac16['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac17['s' + this.i]._visible = false;
_root.startmenu.mmm.achievements.ac18['s' + this.i]._visible = false;
if (v3.data.score[this.i] > 0) {
_root.startmenu.mmm['bu' + this.i]._visible = true;
} else {
_root.startmenu.mmm['bu' + this.i]._visible = false;
}
++this.i;
}
};
v2.savingproc = function () {
_root.backback.removeMovieClip();
_root.enemypanel2.removeMovieClip();
_root.enemypanel1.removeMovieClip();
_root.enemypanel3.removeMovieClip();
_root.close.removeMovieClip();
_root.panel.removeMovieClip();
this.savegame();
if (this.level == 4 || this.level == 10) {
++this.level;
}
++this.level;
_root.back.removeMovieClip();
this.now = 21;
};
v2.savegameforshop = function () {
var v2 = SharedObject.getLocal('killgore');
v2.data.score[this.level] = v2.data.score[this.level - 1];
v2.data.money[this.level] = v2.data.money[this.level - 1];
v2.data.bullits[this.level] = v2.data.bullits[this.level - 1];
v2.data.horns[this.level] = v2.data.horns[this.level - 1];
v2.data.shoes[this.level] = v2.data.shoes[this.level - 1];
v2.data.health[this.level] = v2.data.health[this.level - 1];
};
v2.savegame = function () {
var v3 = SharedObject.getLocal('killgore');
var v4 = _root.back.hero.ammo + _root.back.hero.cells * 30;
if (_root.act.level > 0) {
if (this.level == 4 || this.level == 10) {
v3.data.score[_root.act.level + 2] = v3.data.score[_root.act.level] + this.score;
v3.data.money[_root.act.level + 2] = v3.data.money[_root.act.level] + this.score;
v3.data.bullits[_root.act.level + 2] = _root.back.hero.ammo + _root.back.hero.cells * 30;
v3.data.horns[_root.act.level + 2] = v3.data.horns[_root.act.level];
v3.data.shoes[_root.act.level + 2] = v3.data.shoes[_root.act.level];
v3.data.health[_root.act.level + 2] = v3.data.health[_root.act.level];
if (_root.back.hero.ammo + _root.back.hero.cells * 30 == v3.data.bullits[_root.act.level]) {
if (this.level < 7) {
v3.data.ach[3] = 1;
} else {
v3.data.ach[4] = 1;
}
}
if (_root.back.hero.marksmanach == true) {
v3.data.ach[9] = 1;
}
} else {
v3.data.score[_root.act.level + 1] = v3.data.score[_root.act.level] + this.score;
v3.data.money[_root.act.level + 1] = v3.data.money[_root.act.level] + this.score;
v3.data.bullits[_root.act.level + 1] = _root.back.hero.ammo + _root.back.hero.cells * 30;
v3.data.horns[_root.act.level + 1] = v3.data.horns[_root.act.level];
v3.data.shoes[_root.act.level + 1] = v3.data.shoes[_root.act.level];
v3.data.health[_root.act.level + 1] = v3.data.health[_root.act.level];
if (_root.back.hero.ammo + _root.back.hero.cells * 30 == v3.data.bullits[_root.act.level]) {
v3.data.bull[this.level] = 1;
if (this.level == 16) {
v3.data.ach[5] = 1;
}
} else {
v3.data.bull[this.level] = 0;
}
}
if (v3.data.timer[this.level] < this.timer) {
if (v3.data.timer[this.level] < 1) {
v3.data.timer[this.level] = this.timer;
}
}
if (_root.back.hero.blockach == true) {
v3.data.blocking[this.level] = 1;
}
if (v3.data.bull == [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) {
v3.data.ach[7] = 1;
}
if (v3.data.blocking == [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) {
v3.data.ach[13] = 1;
}
if (v3.data.rambo == [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) {
v3.data.ach[15] = 1;
}
if (v3.data.flawless == [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) {
v3.data.ach[14] = 1;
}
} else {
v3.data.bullits = [0, v4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.score = [0, this.score, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.money = [0, this.score, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.horns = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.shoes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
v3.data.health = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
};
v2.shopping = function () {
_root.shop.money.text = this.money;
var v3 = SharedObject.getLocal('killgore');
_root.shop.ammo.text = v3.data.bullits[this.level];
v3.data.money[this.level] = this.money;
this.i = 0;
while (this.i < 5) {
if (v3.data.horns[this.level] > this.i) {
_root.shop['bu' + this.i]._visible = true;
} else {
_root.shop['bu' + this.i]._visible = false;
}
if (v3.data.shoes[this.level] > this.i) {
_root.shop['h' + this.i]._visible = true;
} else {
_root.shop['h' + this.i]._visible = false;
}
if (v3.data.health[this.level] > this.i) {
_root.shop['he' + this.i]._visible = true;
} else {
_root.shop['he' + this.i]._visible = false;
}
++this.i;
}
if (v3.data.horns == 1 && v3.data.shoes == 4 && v3.data.health == 4) {
v3.data.ach[12] = 1;
}
};
v2.shopstore = function () {
var v3 = SharedObject.getLocal('killgore');
this.money = v3.data.money[this.level];
_root.attachMovie('shop', 'shop', 10);
this.now = 22;
};
v2.initscreen = function () {
this.destrobj = 0;
this.enemies = 1;
this.bloods = 0;
this.doors = 0;
this.timer = 0;
if (this.level == 4) {
_root.attachMovie('backback4', 'backback', 1);
} else {
_root.attachMovie('backback1', 'backback', 1);
}
_root.attachMovie('back' + this.level, 'back', 2);
this.lbl = 0;
this.lbt = 10;
_root.back.createEmptyMovieClip('image', 1);
this.initscreen2();
};
v2.initscreen2 = function () {
_root.attachMovie('enemypanel', 'enemypanel', 11);
if (this.level == 4) {
_root.back.attachMovie('boss0', 'enemy2', 200);
_root.back.enemy2._x = 700;
} else {
if (this.level == 10) {
_root.back.attachMovie('boss2', 'enemy2', 200);
_root.back.enemy2._x = 700;
} else {
if (this.level == 16) {
_root.back.attachMovie('boss1', 'enemy2', 200);
_root.back.enemy2._x = 700;
}
}
}
_root.attachMovie('panel', 'panel', 4);
_root.back.attachMovie('hero', 'hero', 1000);
_root.back.hero._x = 50;
_root.back.hero._xscale = 45;
_root.back.hero._yscale = 45;
this.loadgame();
this.startmusic();
this.waves = 0;
this.destrobj = 0;
this.pause = false;
this.now = 11;
};
v2.startmusic = function () {
if (this.musicon == true) {
if (this.level < 4) {
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic.stop();
_root.backMusic.setVolume(this.mastervolume);
_root.backMusic.start(0, 1000);
} else {
if (this.level == 4 || this.level == 10 || this.level == 16) {
_root.backMusic.stop();
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic3.setVolume(this.mastervolume);
_root.backMusic3.start(0, 1000);
} else {
if (this.level < 16 && this.level > 10) {
_root.backMusic.stop();
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic1.setVolume(this.mastervolume);
_root.backMusic1.start(0, 1000);
} else {
_root.backMusic.stop();
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic2.setVolume(this.mastervolume);
_root.backMusic2.start(0, 1000);
}
}
}
}
};
v2.loadgame = function () {
if (this.level > 0) {
var v3 = SharedObject.getLocal('killgore');
_root.back.hero.cells = Math.floor(v3.data.bullits[this.level] / 30);
_root.back.hero.ammo = v3.data.bullits[this.level] - _root.back.hero.cells * 30;
this.money = v3.data.money[this.level];
this.score = 0;
}
};
v2.screencontrol = function () {
var v3 = _root.back.hero._y - 300;
if (_root.back.hero.direction == 'r') {
this.screenposition = _root.back.hero._x - 150;
} else {
this.screenposition = _root.back.hero._x - 400;
}
if (this.screenposition < 0) {
this.screenposition = 0;
}
if (this.screenposition > _root.back.limit._x - 700) {
this.screenposition = _root.back.limit._x - 700;
}
if (v3 < _root.back.limit._y) {
v3 = _root.back.limit._y;
}
if (v3 > 100) {
v3 = 0;
this.now = 27;
}
_root.back._y = v3 * -1;
_root.backback._y = v3 * -0.5;
_root.close._y = v3 * -2;
if (_root.back._x != this.screenposition * -1) {
if (Math.abs(_root.back._x - this.screenposition) > 2) {
_root.back._x += Math.ceil((_root.back._x + this.screenposition) * -0.2);
_root.backback._x += Math.ceil((_root.back._x + this.screenposition) * -0.1);
_root.close._x += Math.ceil((_root.back._x + this.screenposition) * -0.4);
} else {
_root.back._x = this.screenposition * -1;
_root.backback._x = this.screenposition * -0.5;
_root.close._x = this.screenposition * -2;
}
}
};
v2.enemies0 = function () {
if (this.waves == 0) {
}
};
v2.enemies1 = function () {
if (this.waves == 0) {
if (this.wavevar == 0) {
this.checkenemies();
_root.back.attachMovie('enemy0', 'enemy' + this.tempenemy, 50 + this.tempenemy);
_root.back['enemy' + this.tempenemy]._x = 500;
_root.back['enemy' + this.tempenemy].truey = 20;
_root.back['enemy' + this.tempenemy].name = this.tempenemy;
this.wavevar = 1;
} else {
this.wavevar = 0;
this.waves = 1;
}
}
};
v2.checkenemies = function () {
this.tempenemy = 100;
this.i = 20;
while (this.i--) {
if (_root.back['enemy' + this.i].health > 0) {
} else {
this.tempenemy = this.i;
}
this.i >= 0;
}
};
v2.checkpause = function () {
if (Key.isDown(80)) {
if (this.pause == false) {
_root.attachMovie('pscreen', 'pscreen', 300);
var v3 = SharedObject.getLocal('killgore');
_root.pscreen.stats.ammo.text = _root.back.hero.cells * 30 + _root.back.hero.ammo;
this.i = 0;
while (this.i < 5) {
if (v3.data.horns[this.level] > this.i) {
_root.pscreen.stats['b' + this.i]._visible = true;
} else {
_root.pscreen.stats['b' + this.i]._visible = false;
}
if (v3.data.shoes[this.level] > this.i) {
_root.pscreen.stats['s' + this.i]._visible = true;
} else {
_root.pscreen.stats['s' + this.i]._visible = false;
}
if (v3.data.health[this.level] > this.i) {
_root.pscreen.stats['h' + this.i]._visible = true;
} else {
_root.pscreen.stats['h' + this.i]._visible = false;
}
++this.i;
}
_root.pscreen.controls.fa.text = String.fromCharCode(this.punchbutton);
_root.pscreen.controls.fs.text = String.fromCharCode(this.shootbutton);
_root.pscreen.controls.fb.text = String.fromCharCode(this.blockbutton);
_root.pscreen.controls.fj.text = String.fromCharCode(this.jumpbutton);
this.pause = true;
}
}
};
v2.now = 0;
v2.pause = false;
v2.level = 0;
v2.punchbutton = 65;
v2.shootbutton = 68;
v2.blockbutton = 70;
v2.jumpbutton = 83;
v2.dobjects = 0;
v2.wayheight = 134;
v2.health = 200;
v2.maxhealth = 200;
v2.herotype = 0;
v2.sprint = 100;
v2.initchanging = false;
v2.rockettimer = 0;
v2.rockets = 0;
v2.waves = 0;
v2.wavevar = 0;
v2.tempenemy = 0;
v2.i = 0;
v2.score = 0;
v2.money = 0;
v2.damage = 0;
v2.speed = 0;
v2.fireball = false;
v2.superleg = false;
v2.altending = false;
v2.enemies = 1;
v2.destrobj = 0;
v2.screenposition = 0;
v2.screenpositiony = 0;
v2.stuck = false;
v2.screenlimit = -1000;
v2.numberlimit = 30;
v2.bloods = 0;
v2.doors = 0;
v2.lbl = 0;
v2.lbt = 10;
v2.setabut = false;
v2.setjbut = false;
v2.setbbut = false;
v2.setsbut = false;
v2.keyListener_obj = new Object();
v2.timer = 0;
v2.soundsfx = true;
v2.wantstartmusic = false;
v2.musicon = true;
v2.mastervolume = 50;
v2.urlString = _root._url;
ASSetPropFlags(_global.acta.prototype, null, 1);
}
#endinitclip
}
movieClip 1756 __Packages.actsur {
#initclip
if (!_global.actsur) {
var v1 = function () {
super();
};
_global.actsur = v1;
_global.actsur extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.punchbutton = _root.punchbutton;
this.shootbutton = _root.shootbutton;
this.blockbutton = _root.blockbutton;
this.jumpbutton = _root.jumpbutton;
_root.shop.removeMovieClip();
_root.startmenu.removeMovieClip();
_root.attachMovie('backback4', 'backback', 1);
_root.attachMovie('backs', 'back', 2);
_root.attachMovie('panels', 'panel', 4);
_root.back.attachMovie('hero', 'hero', 1000);
_root.back.hero._x = 50;
_root.back.hero._xscale = 45;
_root.back.hero._yscale = 45;
if (_root.musicon == true) {
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic.stop();
_root.backMusic3.start(0, 1000);
}
};
v2.onEnterFrame = function () {
if (this.now == 27) {
_root.gotoAndStop('game');
}
this.screencontrol();
this.checkpause();
if (this.wavestatr == true) {
this.launch();
this.wavestatr = false;
} else {
this.checkenemies();
}
};
v2.launch = function () {
this.enemies = 0;
if (this.wave < 10) {
this.i = 0;
while (this.i < this.wave + 1) {
if (_root.back.hero._x < 920) {
var v3 = Math.random();
if (v3 > 0.7) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (v3 < 0.3) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
_root.back.attachMovie('rat', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
_root.back['enemy' + _root.act.enemies].goingout = true;
}
}
_root.back['enemy' + _root.act.enemies]._x = 1200 + _root.act.enemies * 10;
} else {
var v3 = Math.random();
if (v3 > 0.7) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (v3 < 0.3) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
_root.back.attachMovie('rat', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
_root.back['enemy' + _root.act.enemies].goingout = true;
}
}
_root.back['enemy' + _root.act.enemies]._x = 700 - _root.act.enemies * 30;
}
++_root.act.enemies;
++this.i;
}
} else {
this.i = 9;
while (this.i < this.wave + 1) {
if (_root.back.hero._x < 920) {
var v3 = Math.random();
if (v3 > 0.7) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (v3 < 0.3) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
_root.back.attachMovie('enemywithgun', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
}
}
_root.back['enemy' + _root.act.enemies]._x = 1150 + _root.act.enemies * 30;
} else {
var v3 = Math.random();
if (v3 > 0.7) {
_root.back.attachMovie('enemywithknife', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
if (v3 < 0.3) {
_root.back.attachMovie('enemy', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
} else {
_root.back.attachMovie('enemywithgun', 'enemy' + _root.act.enemies, 101 + 100 * _root.act.enemies);
}
}
_root.back['enemy' + _root.act.enemies]._x = 500 - _root.act.enemies * 10;
}
++_root.act.enemies;
++this.i;
}
}
_root.back['enemy' + _root.act.enemies]._y = 0;
_root.back['enemy' + _root.act.enemies].number = _root.act.enemies;
if (this.wave > 20) {
var v4 = SharedObject.getLocal('killgore');
v4.data.ach[17] = 1;
_root.backback.removeMovieClip();
_root.back.removeMovieClip();
_root.panel.removeMovieClip();
_root.gotoAndStop('game');
}
++this.wave;
this.wavestatr = false;
this.timer = 0;
};
v2.checkenemies = function () {
if (this.timer > 80) {
if (_root.back.enemy0.health > 0 || _root.back.enemy1.health > 0 || _root.back.enemy2.health > 0 || _root.back.enemy3.health > 0 || _root.back.enemy4.health > 0) {
} else {
if (this.wave > 0) {
if (_root.back.enemy0.onground == false || _root.back.enemy1.onground == false || _root.back.enemy2.onground == false || _root.back.enemy3.onground == false || _root.back.enemy4.onground == false) {
} else {
this.wavestatr = true;
}
} else {
this.wavestatr = true;
}
}
} else {
++this.timer;
}
};
v2.checkpause = function () {
if (Key.isDown(80)) {
if (this.pause == false) {
_root.attachMovie('pscreens', 'pscreen', 300);
this.pause = true;
}
}
};
v2.screencontrol = function () {
var v3 = _root.back.hero._y - 300;
if (_root.back.hero.direction == 'r') {
this.screenposition = _root.back.hero._x - 150;
} else {
this.screenposition = _root.back.hero._x - 400;
}
if (this.screenposition < 0) {
this.screenposition = 0;
}
if (this.screenposition > _root.back.limit._x - 700) {
this.screenposition = _root.back.limit._x - 700;
}
if (v3 < _root.back.limit._y) {
v3 = _root.back.limit._y;
}
if (v3 > 260) {
v3 = 0;
this.now = 27;
}
_root.back._y = v3 * -1;
_root.backback._y = v3 * -0.5;
_root.close._y = v3 * -2;
if (_root.back._x != this.screenposition * -1) {
if (Math.abs(_root.back._x - this.screenposition) > 2) {
_root.back._x += Math.ceil((_root.back._x + this.screenposition) * -0.2);
_root.backback._x += Math.ceil((_root.back._x + this.screenposition) * -0.1);
_root.close._x += Math.ceil((_root.back._x + this.screenposition) * -0.4);
} else {
_root.back._x = this.screenposition * -1;
_root.backback._x = this.screenposition * -0.5;
_root.close._x = this.screenposition * -2;
}
}
};
v2.wave = 0;
v2.health = 200;
v2.level = 0;
v2.pause = false;
v2.screenposition = 0;
v2.screenpositiony = 0;
v2.now = 100;
v2.wavestatr = false;
v2.tempenemy = 0;
v2.punchbutton = 65;
v2.shootbutton = 68;
v2.blockbutton = 70;
v2.jumpbutton = 83;
v2.enemies = 0;
v2.i = 0;
v2.timer = 70;
v2.soundsfx = true;
ASSetPropFlags(_global.actsur.prototype, null, 1);
}
#endinitclip
}
movieClip 133 bullit {
#initclip
Object.registerClass('bullit', bullit);
#endinitclip
frame 44 {
this.removeMovieClip();
}
frame 50 {
this.removeMovieClip();
}
}
movieClip 135 portraitback {
frame 10 {
stop();
}
}
movieClip 137 portraitback1 {
frame 10 {
stop();
}
}
movieClip 139 portraitback2 {
frame 10 {
stop();
}
}
movieClip 144 panelbullit {
}
movieClip 149 {
}
movieClip 151 {
frame 10 {
_root.panel.ragestatusanim = false;
}
frame 11 {
stop();
}
}
movieClip 154 {
frame 1 {
stop();
}
}
movieClip 156 healthbar {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 171 {
}
movieClip 175 {
}
movieClip 176 {
}
movieClip 179 portrait {
frame 81 {
_root.panel.animation = false;
}
frame 87 {
_root.panel.animation = false;
}
frame 94 {
_root.panel.animation = false;
}
frame 102 {
_root.panel.animation = false;
}
}
movieClip 181 {
}
movieClip 184 {
}
movieClip 185 panel {
#initclip
Object.registerClass('panel', panel);
#endinitclip
}
movieClip 187 scrlimit {
}
movieClip 193 door {
frame 1 {
stop();
}
}
movieClip 195 docf {
}
movieClip 219 deso {
#initclip
Object.registerClass('deso', deso);
#endinitclip
frame 7 {
gotoAndStop('full');
}
frame 14 {
gotoAndStop('mid');
}
frame 25 {
this._visible = false;
this.removeMovieClip();
}
}
movieClip 231 pow_small {
frame 4 {
this.removeMovieClip();
}
frame 11 {
this.removeMovieClip();
}
}
movieClip 234 {
frame 9 {
this.removeMovieClip();
}
}
movieClip 237 blockspark {
frame 6 {
this.removeMovieClip();
}
}
movieClip 254 pow_big {
frame 9 {
this.removeMovieClip();
}
frame 18 {
this.removeMovieClip();
}
}
movieClip 260 {
}
movieClip 267 {
}
movieClip 273 {
}
movieClip 280 {
}
movieClip 285 {
}
movieClip 292 {
}
movieClip 296 {
}
movieClip 298 {
}
button 300 {
on (press) {
_root.act.now = 10;
}
}
movieClip 310 {
}
movieClip 313 {
}
movieClip 322 {
}
movieClip 323 {
frame 55 {
gotoAndPlay(1);
}
}
movieClip 326 {
}
movieClip 329 {
frame 1 {
stop();
}
}
movieClip 330 shop {
instance of movieClip 273 {
onClipEvent (enterFrame) {
if (_root.act.money < 500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (press) {
var killgore = SharedObject.getLocal('killgore');
if (_root.act.money >= 500 && killgore.data.shoes[_root.act.level] < 4) {
++killgore.data.shoes[_root.act.level];
_root.act.money -= 500;
}
}
onClipEvent (rollOver) {
if (_root.act.money < 500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (rollOut) {
if (_root.act.money < 500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 285 {
onClipEvent (enterFrame) {
if (_root.act.money < 1000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (press) {
var killgore = SharedObject.getLocal('killgore');
if (_root.act.money >= 1000 && killgore.data.health[_root.act.level] < 4) {
++killgore.data.health[_root.act.level];
_root.act.money -= 1000;
}
}
onClipEvent (rollOver) {
if (_root.act.money < 1000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (rollOut) {
if (_root.act.money < 1000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 296 {
onClipEvent (enterFrame) {
if (_root.act.money < 300) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (press) {
if (_root.act.money >= 300) {
var killgore = SharedObject.getLocal('killgore');
killgore.data.bullits[_root.act.level] += 30;
_root.act.money -= 300;
}
}
onClipEvent (rollOver) {
if (_root.act.money < 300) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (rollOut) {
if (_root.act.money < 300) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 313 {
onClipEvent (enterFrame) {
if (_root.act.money < 1500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (press) {
var killgore = SharedObject.getLocal('killgore');
if (_root.act.money >= 1500 && killgore.data.horns[_root.act.level] < 4) {
++killgore.data.horns[_root.act.level];
_root.act.money -= 1500;
}
}
onClipEvent (rollOver) {
if (_root.act.money < 1500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (rollOut) {
if (_root.act.money < 1500) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 326 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
}
instance of movieClip 329 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
}
}
movieClip 336 knife {
#initclip
Object.registerClass('knife', bullit);
#endinitclip
frame 1 {
stop();
}
frame 7 {
this.removeMovieClip();
}
frame 16 {
this.removeMovieClip();
}
frame 17 {
stop();
}
}
movieClip 347 {
}
movieClip 349 {
}
movieClip 351 {
}
movieClip 353 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 362 qualitymod {
frame 1 {
stop();
}
}
movieClip 363 {
instance qualitymod of movieClip 362 qualitymod {
onClipEvent (press) {
if (_root._quality == 'LOW') {
_root._quality = 'MEDIUM';
this.gotoAndStop(2);
} else {
if (_root._quality == 'MEDIUM') {
_root._quality = 'HIGH';
this.gotoAndStop(1);
} else {
if (_root._quality == 'HIGH') {
_root._quality = 'LOW';
this.gotoAndStop(3);
}
}
}
}
onClipEvent (load) {
if (_root._quality == 'LOW') {
this.gotoAndStop(3);
} else {
if (_root._quality == 'MEDIUM') {
this.gotoAndStop(2);
} else {
if (_root._quality == 'HIGH') {
this.gotoAndStop(1);
}
}
}
}
}
}
button 364 {
on (press) {
_root.startmenu.gotoAndPlay('mtol');
}
}
button 365 {
on (press) {
_root.startmenu.gotoAndPlay('ctol');
}
}
button 366 {
on (press) {
_root.startmenu.gotoAndPlay('crtol');
}
}
movieClip 367 {
}
movieClip 370 but {
frame 1 {
stop();
}
}
// unknown tag 88 length 153
movieClip 374 {
}
button 376 {
on (press) {
var killgore = SharedObject.getLocal('killgore');
killgore.data.bullits = [100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.score = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.money = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.horns = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.shoes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.health = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.act.now = 10;
}
}
movieClip 378 {
}
button 380 {
on (press) {
_root.startmenu.gotoAndPlay('crtoc');
}
}
button 381 {
on (press) {
_root.startmenu.gotoAndPlay('ltoc');
}
}
button 382 {
on (press) {
_root.startmenu.gotoAndPlay('mtoc');
}
}
movieClip 384 {
}
button 385 {
on (press) {
_root.startmenu.gotoAndPlay('ctocr');
}
}
button 386 {
on (press) {
_root.startmenu.gotoAndPlay('ltocr');
}
}
button 387 {
on (press) {
_root.startmenu.gotoAndPlay('mtocr');
}
}
movieClip 389 {
}
movieClip 392 {
}
movieClip 393 {
instance of movieClip 392 {
onClipEvent (load) {
this._x = _root.act.mastervolume;
}
onClipEvent (press) {
this.startDrag(true, 0, 0, 100, 0);
_root.act.mastervolume = _x;
}
onClipEvent (mouseUp) {
this.stopDrag();
}
onClipEvent (enterFrame) {
_root.act.mastervolume = _x;
}
}
}
movieClip 396 {
}
movieClip 399 {
}
movieClip 401 {
}
movieClip 403 {
}
button 405 {
on (press) {
_root.gotoAndStop('survival');
}
}
movieClip 407 {
}
button 409 {
on (press) {
_root.startmenu.gotoAndPlay('crtom');
}
}
button 410 {
on (press) {
_root.startmenu.gotoAndPlay('ltom');
}
}
button 411 {
on (press) {
_root.startmenu.gotoAndPlay('ctom');
}
}
movieClip 413 {
}
movieClip 416 {
}
movieClip 421 star {
}
movieClip 423 achbut {
frame 1 {
stop();
}
}
movieClip 445 pridatok {
}
movieClip 446 {
instance ac13 of movieClip 423 achbut {
onClipEvent (rollOver) {
this._parent.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.blocking[i] > 0) {
this._parent.pridatok['l' + i].gotoAndStop(2);
} else {
this._parent.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
onClipEvent (rollOut) {
this._parent.pridatok._visible = false;
}
}
instance ac14 of movieClip 423 achbut {
onClipEvent (rollOver) {
_root.startmenu.mmm.achievements.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.flawless[i] > 0) {
_root.startmenu.mmm.achievements.pridatok['l' + i].gotoAndStop(2);
} else {
_root.startmenu.mmm.achievements.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
}
instance ac15 of movieClip 423 achbut {
onClipEvent (rollOver) {
this._parent.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.rambo[i] > 0) {
this._parent.pridatok['l' + i].gotoAndStop(2);
} else {
this._parent.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
}
instance ac7 of movieClip 423 achbut {
onClipEvent (rollOver) {
this._parent.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.bull[i] > 0) {
this._parent.pridatok['l' + i].gotoAndStop(2);
} else {
this._parent.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
}
instance ac6 of movieClip 423 achbut {
onClipEvent (rollOver) {
this._parent.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.timer[i] > 0 && killgore.data.timer[i] < 10000) {
this._parent.pridatok['l' + i].gotoAndStop(2);
} else {
this._parent.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
}
instance ac17 of movieClip 423 achbut {
onClipEvent (rollOver) {
this._parent.pridatok._visible = true;
var killgore = SharedObject.getLocal('killgore');
var i = 0;
i = 0;
while (i < 16) {
if (killgore.data.bull[i] > 0) {
this._parent.pridatok['l' + i].gotoAndStop(2);
} else {
this._parent.pridatok['l' + i].gotoAndStop(1);
}
++i;
}
}
onClipEvent (rollOut) {
this._parent.pridatok._visible = false;
}
}
instance pridatok of movieClip 445 pridatok {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 447 {
instance of movieClip 357 {
onClipEvent (press) {
this.getURL('http://josephkingworks.blogspot.com/', '_blank');
}
}
instance qualitymod of movieClip 363 {
onClipEvent (press) {
if (_root._quality == 'LOW') {
_root._quality = 'MEDIUM';
this.qualitymod.gotoAndStop(2);
} else {
if (_root._quality == 'MEDIUM') {
_root._quality = 'HIGH';
this.qualitymod.gotoAndStop(1);
} else {
_root._quality = 'LOW';
this.qualitymod.gotoAndStop(3);
}
}
}
}
instance of movieClip 353 {
onClipEvent (press) {
_root.startmenu.gotoAndPlay('mtol');
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setabut = true;
_root.startmenu.mmm.controls.fa.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setsbut = true;
_root.startmenu.mmm.controls.fs.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setjbut = true;
_root.startmenu.mmm.controls.fj.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setbbut = true;
_root.startmenu.mmm.controls.fb.text = 'press button';
}
}
}
instance ac15 of movieClip 370 but {
onClipEvent (press) {
var killgore = SharedObject.getLocal('killgore');
killgore.data.ach = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.timer = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.bull = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
killgore.data.blocking = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
killgore.data.rambo = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
killgore.data.flawless = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0];
}
}
instance of movieClip 389 {
onClipEvent (press) {
var killgore = SharedObject.getLocal('killgore');
killgore.data.bullits = [100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.score = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.money = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.horns = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.shoes = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
killgore.data.health = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.act.now = 0;
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.musicon == true) {
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic.stop();
_root.act.musicon = false;
} else {
_root.act.musicon = true;
_root.backMusic1.stop();
_root.backMusic2.stop();
_root.backMusic3.stop();
_root.backMusic.loadSound('music.mp3', true);
_root.backMusic.start(0, 1000);
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.soundsfx == true) {
_root.act.soundsfx = false;
} else {
_root.act.soundsfx = true;
}
}
}
instance of movieClip 399 {
onClipEvent (press) {
this.getURL('http://www.myspace.com/xseraph7', '_blank');
}
}
instance of movieClip 401 {
onClipEvent (load) {
var killgore = SharedObject.getLocal('killgore');
if (killgore.data.score[1] > 0) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (press) {
var i = 0;
var killgore = SharedObject.getLocal('killgore');
var templ = 0;
i = 0;
while (i < 20) {
if (killgore.data.score[i] > 0) {
templ = i;
}
++i;
}
_root.act.level = templ;
_root.act.now = 10;
}
}
instance bu1 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 1;
_root.act.now = 10;
}
}
instance bu2 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 2;
_root.act.now = 10;
}
}
instance bu4 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 4;
_root.act.now = 10;
}
}
instance bu6 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 6;
_root.act.now = 10;
}
}
instance bu7 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 7;
_root.act.now = 10;
}
}
instance bu8 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 8;
_root.act.now = 10;
}
}
instance bu9 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 9;
_root.act.now = 10;
}
}
instance bu10 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 10;
_root.act.now = 10;
}
}
instance bu12 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 12;
_root.act.now = 10;
}
}
instance bu13 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 13;
_root.act.now = 10;
}
}
instance bu14 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 14;
_root.act.now = 10;
}
}
instance bu15 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 15;
_root.act.now = 10;
}
}
instance bu16 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 16;
_root.act.now = 10;
}
}
instance bu17 of movieClip 416 {
onClipEvent (press) {
_root.gotoAndStop('speciallevel');
}
}
instance bu3 of movieClip 416 {
onClipEvent (press) {
_root.act.level = 3;
_root.act.now = 10;
}
}
instance of movieClip 416 {
onClipEvent (press) {
_root.act.level = 0;
_root.act.now = 10;
}
}
instance of movieClip 329 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
}
instance achievements of movieClip 446 {
onClipEvent (rollOver) {
wantbig = true;
}
onClipEvent (rollOut) {
wantbig = false;
}
onClipEvent (enterFrame) {
if (wantbig == true) {
if (this._xscale < 100) {
this._xscale += 5;
this._yscale += 5;
}
} else {
if (this._xscale > 45) {
this._xscale -= 5;
this._yscale -= 5;
}
}
}
onClipEvent (load) {
var wantbig = false;
this._xscale = 30;
this._yscale = 30;
}
}
instance of movieClip 326 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
}
instance of movieClip 329 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
}
}
movieClip 448 startmenu {
frame 1 {
stop();
}
frame 10 {
stop();
}
frame 20 {
stop();
}
frame 30 {
stop();
}
frame 40 {
stop();
}
frame 50 {
stop();
}
frame 60 {
stop();
}
frame 70 {
stop();
}
frame 80 {
stop();
}
frame 90 {
stop();
}
frame 100 {
stop();
}
frame 110 {
stop();
}
frame 120 {
stop();
}
}
button 450 {
on (press) {
_root.act.pause = false;
_root.pscreen.removeMovieClip();
}
}
button 451 {
on (press) {
_root.act.now = 0;
}
}
movieClip 453 {
}
movieClip 456 {
}
movieClip 457 pscreen {
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setabut = true;
_root.pscreen.controls.fa.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setsbut = true;
_root.pscreen.controls.fs.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setjbut = true;
_root.pscreen.controls.fj.text = 'press button';
}
}
}
instance of movieClip 367 {
onClipEvent (press) {
if (_root.act.setabut == false && _root.act.setbbut == false && _root.act.setsbut == false && _root.act.setjbut == false) {
_root.act.setbbut = true;
_root.pscreen.controls.fb.text = 'press button';
}
}
}
instance of movieClip 326 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
}
}
movieClip 468 {
}
movieClip 469 specbullit {
#initclip
Object.registerClass('specbullit', specbullit);
#endinitclip
frame 1 {
stop();
}
frame 10 {
this.removeMovieClip();
}
frame 16 {
this.removeMovieClip();
}
frame 23 {
this.removeMovieClip();
}
}
movieClip 475 {
}
movieClip 480 {
}
movieClip 483 {
}
movieClip 485 {
}
movieClip 487 {
}
movieClip 490 {
}
movieClip 491 enemypanel {
#initclip
Object.registerClass('enemypanel', enemypanel);
#endinitclip
}
movieClip 493 {
}
movieClip 494 {
}
movieClip 504 {
}
movieClip 518 {
}
movieClip 536 {
frame 24 {
gotoAndPlay(1);
}
}
button 541 {
on (press) {
_root.act.now = 26;
_root.loadlevels.removeMovieClip();
}
}
movieClip 542 loadlevels {
}
movieClip 546 {
}
movieClip 548 {
}
button 549 {
on (press) {
var killgore = SharedObject.getLocal('killgore');
killgore.data.ach[10] = 1;
_root.act.now = 10;
}
}
movieClip 578 gameoverscreen {
instance of movieClip 326 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
}
instance of movieClip 329 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
onClipEvent (rollOver) {
this.gotoAndStop(2);
}
onClipEvent (rollOut) {
this.gotoAndStop(1);
}
}
frame 87 {
stop();
}
}
movieClip 583 panels {
#initclip
Object.registerClass('panels', panels);
#endinitclip
}
button 584 {
on (press) {
_root.backback.removeMovieClip();
_root.helisound.stop();
_root.back.removeMovieClip();
_root.panel.removeMovieClip();
_root.gotoAndStop('game');
}
}
movieClip 585 pscreens {
}
movieClip 590 redbutton {
#initclip
Object.registerClass('redbutton', redbutton);
#endinitclip
frame 7 {
this.gotoAndStop(1);
}
}
movieClip 596 {
}
movieClip 684 {
}
movieClip 721 {
}
movieClip 796 target {
}
movieClip 882 {
}
movieClip 915 {
}
movieClip 938 {
}
movieClip 942 {
}
movieClip 943 {
}
movieClip 983 {
}
movieClip 996 {
}
movieClip 998 {
}
movieClip 1026 hero {
#initclip
Object.registerClass('hero', hero);
#endinitclip
frame 17 {
_root.back.hero.animation = false;
}
frame 41 {
_root.back.hero.animation = false;
}
frame 98 {
animation = false;
}
frame 112 {
hit = false;
}
frame 122 {
realhit = true;
}
frame 124 {
hit = false;
}
frame 128 {
realhit = true;
}
frame 132 {
hit = false;
}
frame 137 {
realhit = true;
}
frame 142 {
hit = false;
}
frame 148 {
realhit = true;
}
frame 153 {
hit = false;
}
frame 174 {
hit = false;
}
frame 189 {
stop();
}
frame 214 {
animation = false;
}
frame 290 {
animation = false;
}
frame 300 {
hit = false;
stop();
}
frame 318 {
hit = false;
}
frame 329 {
animation = true;
}
frame 330 {
grab = false;
hit = false;
}
frame 362 {
stop();
}
frame 379 {
stop();
}
frame 397 {
stop();
}
frame 415 {
stop();
}
frame 429 {
stop();
}
frame 434 {
_root.back.hero.backaready = true;
}
frame 439 {
_root.back.hero.backaready = true;
}
frame 444 {
_root.back.hero.backaready = true;
}
frame 451 {
_root.back.hero.backaready = true;
}
frame 463 {
stop();
}
frame 471 {
gethit = false;
animation = false;
if (jump == true) {
gotoAndStop('fallr');
}
}
frame 483 {
stop();
}
frame 505 {
if (_root.act.health <= 0) {
_root.act.now = 27;
}
}
frame 514 {
animation = false;
gethit = false;
getdown = false;
}
frame 578 {
_root.back.hero.animation = false;
}
frame 602 {
_root.back.hero.animation = false;
}
frame 611 {
_root.back.hero.animation = false;
}
frame 616 {
stop();
}
frame 641 {
animation = false;
}
frame 644 {
realhit = true;
}
frame 646 {
hit = false;
}
frame 650 {
realhit = true;
}
frame 654 {
hit = false;
}
frame 659 {
realhit = true;
}
frame 664 {
hit = false;
}
frame 670 {
realhit = true;
}
frame 675 {
hit = false;
}
frame 709 {
stop();
}
frame 715 {
_root.back.hero.animation = false;
}
frame 723 {
_root.back.hero.animation = false;
}
frame 751 {
_root.back.hero.animation = false;
}
frame 777 {
_root.back.hero.animation = false;
}
frame 795 {
stop();
}
frame 800 {
_root.back.hero.backaready = true;
}
frame 806 {
_root.back.hero.backaready = true;
}
frame 811 {
_root.back.hero.backaready = true;
}
frame 817 {
_root.back.hero.backaready = true;
}
frame 829 {
stop();
}
frame 847 {
stop();
}
frame 864 {
stop();
}
frame 873 {
hit = false;
}
frame 887 {
hit = false;
}
frame 895 {
gethit = false;
animation = false;
if (jump == true) {
gotoAndStop('falll');
}
}
frame 930 {
ammo += 30;
--cells;
_root.panel.bull = true;
animation = false;
hit = false;
}
frame 965 {
ammo += 30;
--cells;
_root.panel.bull = true;
animation = false;
hit = false;
}
frame 975 {
hit = false;
stop();
}
frame 993 {
hit = false;
}
frame 1004 {
animation = true;
}
frame 1005 {
grab = false;
hit = false;
}
frame 1018 {
stop();
}
frame 1040 {
if (_root.act.health <= 0) {
_root.act.now = 27;
}
}
frame 1049 {
animation = false;
gethit = false;
getdown = false;
}
frame 1074 {
animation = false;
}
frame 1089 {
animation = false;
}
frame 1121 {
hit = false;
}
frame 1153 {
hit = false;
}
frame 1159 {
animation = false;
}
frame 1167 {
animation = false;
}
}
movieClip 1031 {
}
movieClip 1032 {
}
movieClip 1034 {
}
movieClip 1038 {
}
movieClip 1040 {
}
movieClip 1042 {
}
movieClip 1044 {
}
movieClip 1046 {
}
movieClip 1049 {
}
movieClip 1052 {
}
movieClip 1060 {
}
movieClip 1062 {
}
movieClip 1064 {
}
movieClip 1069 {
}
movieClip 1071 {
}
movieClip 1072 enemywithgun {
#initclip
Object.registerClass('enemywithgun', enemywithgun);
#endinitclip
frame 20 {
this.animation = false;
}
frame 41 {
this.animation = false;
}
frame 52 {
realhit = true;
}
frame 61 {
hit = false;
}
frame 67 {
hit = false;
}
frame 91 {
gethit = false;
animation = false;
}
frame 105 {
stop();
}
frame 135 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 143 {
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 161 {
scaredmov = true;
animation = false;
}
frame 172 {
animation = false;
}
frame 193 {
this.animation = false;
}
frame 214 {
this.animation = false;
}
frame 226 {
realhit = true;
}
frame 234 {
hit = false;
}
frame 243 {
hit = false;
}
frame 264 {
gethit = false;
animation = false;
}
frame 278 {
stop();
}
frame 308 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 316 {
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 334 {
scaredmov = true;
animation = false;
}
frame 345 {
animation = false;
}
}
movieClip 1079 {
}
movieClip 1081 {
}
movieClip 1083 {
}
movieClip 1085 {
}
movieClip 1086 {
}
movieClip 1089 {
}
movieClip 1092 {
}
movieClip 1100 {
}
movieClip 1102 {
}
movieClip 1104 {
}
movieClip 1107 {
}
movieClip 1108 {
}
movieClip 1109 {
}
movieClip 1110 enemy {
#initclip
Object.registerClass('enemy', enemy);
#endinitclip
frame 20 {
this.animation = false;
}
frame 41 {
animation = false;
}
frame 58 {
realhit = true;
}
frame 63 {
hit = false;
}
frame 72 {
realhit = true;
}
frame 83 {
hit = false;
}
frame 96 {
this.gethit = false;
animation = false;
}
frame 117 {
stop();
}
frame 145 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 154 {
this.bounce = false;
this.ready = true;
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 171 {
scaredmov = true;
animation = false;
}
frame 182 {
animation = false;
}
frame 203 {
this.animation = false;
}
frame 224 {
animation = false;
}
frame 241 {
realhit = true;
}
frame 246 {
hit = false;
}
frame 254 {
realhit = true;
}
frame 266 {
hit = false;
}
frame 279 {
this.gethit = false;
animation = false;
}
frame 295 {
stop();
}
frame 323 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 332 {
this.bounce = false;
this.ready = true;
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 349 {
scaredmov = true;
animation = false;
}
frame 360 {
animation = false;
}
}
movieClip 1114 {
}
movieClip 1119 {
}
movieClip 1120 {
}
movieClip 1122 {
}
movieClip 1124 {
}
movieClip 1126 {
}
movieClip 1129 {
}
movieClip 1131 {
}
movieClip 1138 {
}
movieClip 1140 {
}
movieClip 1142 {
}
movieClip 1146 {
}
movieClip 1149 {
}
movieClip 1150 {
}
movieClip 1152 {
}
movieClip 1153 enemywithknife {
#initclip
Object.registerClass('enemywithknife', enemywithknife);
#endinitclip
frame 20 {
this.animation = false;
}
frame 41 {
this.animation = false;
}
frame 55 {
realhit = true;
}
frame 67 {
hit = false;
}
frame 76 {
realhit = true;
}
frame 88 {
hit = false;
}
frame 102 {
throwing = true;
}
frame 107 {
hit = false;
}
frame 120 {
this.gethit = false;
animation = false;
}
frame 134 {
stop();
}
frame 165 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 173 {
this.bounce = false;
this.ready = true;
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 190 {
scaredmov = true;
animation = false;
}
frame 201 {
animation = false;
}
frame 222 {
this.animation = false;
}
frame 243 {
this.animation = false;
}
frame 257 {
realhit = true;
}
frame 269 {
hit = false;
}
frame 278 {
realhit = true;
}
frame 290 {
hit = false;
}
frame 304 {
throwing = true;
}
frame 309 {
hit = false;
}
frame 322 {
this.gethit = false;
animation = false;
}
frame 336 {
stop();
}
frame 367 {
if (health > 0) {
play();
} else {
this.removeMovieClip();
}
}
frame 375 {
this.bounce = false;
this.ready = true;
this.getdown = false;
this.gethit = false;
this.animation = false;
}
frame 392 {
scaredmov = true;
animation = false;
}
frame 403 {
animation = false;
}
}
movieClip 1166 {
}
movieClip 1188 rat {
#initclip
Object.registerClass('rat', rat);
#endinitclip
frame 18 {
animation = false;
}
frame 23 {
stop();
}
frame 42 {
animation = false;
}
frame 52 {
animation = false;
}
frame 71 {
animation = false;
}
frame 77 {
stop();
}
frame 95 {
animation = false;
}
frame 105 {
animation = false;
}
}
movieClip 1190 {
}
movieClip 1192 {
}
movieClip 1194 {
}
movieClip 1195 {
}
movieClip 1197 {
}
movieClip 1199 {
}
movieClip 1201 {
}
movieClip 1203 {
}
movieClip 1205 {
}
movieClip 1207 {
}
movieClip 1212 {
}
movieClip 1214 {
}
movieClip 1219 {
}
movieClip 1221 {
}
movieClip 1223 {
}
movieClip 1225 {
}
movieClip 1227 {
}
movieClip 1239 {
}
movieClip 1241 {
}
movieClip 1271 {
}
movieClip 1283 {
}
movieClip 1286 {
}
movieClip 1298 {
}
movieClip 1300 {
}
movieClip 1304 {
}
movieClip 1308 {
}
movieClip 1333 {
}
movieClip 1336 boss0 {
#initclip
Object.registerClass('boss0', butcher);
#endinitclip
frame 13 {
goingout = false;
}
frame 38 {
this.animation = false;
}
frame 62 {
this.animation = false;
}
frame 72 {
this.animation = false;
}
frame 93 {
hit = false;
}
frame 109 {
hit = false;
animation = false;
}
frame 139 {
hit = false;
animation = false;
}
frame 159 {
hit = false;
animation = false;
}
frame 169 {
throwing = true;
}
frame 179 {
hit = false;
}
frame 186 {
block = false;
animation = false;
}
frame 208 {
ready = true;
}
frame 219 {
this.animation = false;
this.gethit = false;
}
frame 362 {
stop();
}
frame 386 {
this.animation = false;
}
frame 410 {
this.animation = false;
}
frame 420 {
this.animation = false;
}
frame 441 {
hit = false;
}
frame 456 {
hit = false;
animation = false;
}
frame 487 {
hit = false;
animation = false;
}
frame 507 {
hit = false;
animation = false;
}
frame 517 {
throwing = true;
}
frame 527 {
hit = false;
}
frame 534 {
block = false;
animation = false;
}
frame 556 {
ready = true;
}
frame 563 {
this.animation = false;
this.gethit = false;
}
frame 710 {
stop();
}
}
movieClip 1340 {
}
movieClip 1342 {
}
movieClip 1343 {
}
movieClip 1347 {
}
movieClip 1354 {
}
movieClip 1357 {
}
movieClip 1358 {
}
movieClip 1360 {
}
movieClip 1415 {
}
movieClip 1417 {
}
movieClip 1419 {
}
movieClip 1420 {
}
movieClip 1423 {
}
movieClip 1451 {
}
movieClip 1452 {
}
movieClip 1455 boss1 {
#initclip
Object.registerClass('boss1', robot);
#endinitclip
frame 34 {
this.animation = false;
}
frame 52 {
this.animation = false;
}
frame 69 {
this.animation = false;
}
frame 79 {
hit = false;
}
frame 90 {
hit = false;
}
frame 103 {
hit = false;
}
frame 114 {
throwing = true;
}
frame 171 {
hit = false;
}
frame 186 {
ready = true;
}
frame 197 {
this.animation = false;
this.gethit = false;
}
frame 258 {
stop();
}
}
movieClip 1466 {
}
movieClip 1485 {
}
movieClip 1500 boss2 {
#initclip
Object.registerClass('boss2', ratking);
#endinitclip
frame 14 {
animation = false;
}
frame 28 {
hit = false;
}
frame 47 {
hit = false;
}
frame 52 {
throwing = true;
}
frame 56 {
hit = false;
}
frame 73 {
this.animation = false;
hit = false;
}
frame 78 {
this.animation = false;
block = false;
hit = false;
this.gethit = false;
}
frame 193 {
stop();
}
frame 207 {
animation = false;
}
frame 221 {
hit = false;
}
frame 240 {
hit = false;
}
frame 245 {
throwing = true;
}
frame 249 {
hit = false;
}
frame 266 {
this.animation = false;
hit = false;
}
frame 271 {
this.animation = false;
block = false;
hit = false;
this.gethit = false;
}
frame 386 {
stop();
}
frame 407 {
animation = false;
}
frame 428 {
animation = false;
}
frame 449 {
animation = false;
}
frame 470 {
animation = false;
}
}
movieClip 1502 deathzone {
}
movieClip 1507 {
}
movieClip 1510 {
frame 1 {
stop();
}
frame 11 {
this.gotoAndStop(1);
}
}
movieClip 1511 {
}
movieClip 1513 {
}
movieClip 1514 {
}
movieClip 1515 helicopteranim {
frame 27 {
gotoAndPlay('flying');
}
frame 44 {
_root.truck.removeMovieClip();
_root.b0.removeMovieClip();
_root.b1.removeMovieClip();
_root.b2.removeMovieClip();
_root.b3.removeMovieClip();
_root.b4.removeMovieClip();
_root.b5.removeMovieClip();
_root.b6.removeMovieClip();
_root.b7.removeMovieClip();
_root.b8.removeMovieClip();
_root.b9.removeMovieClip();
_root.b10.removeMovieClip();
_root.b11.removeMovieClip();
if (_root.musicon == true) {
_root.backMusic.stop();
_root.backMusic1.stop();
_root.backMusic3.stop();
_root.backMusic2.loadSound('music2.mp3', true);
_root.backMusic2.start(0, 1000);
}
_root.gotoAndStop('victory');
_root.heli.removeMovieClip();
}
}
movieClip 1517 {
}
movieClip 1521 {
}
movieClip 1528 {
}
movieClip 1550 {
frame 13 {
this.gotoAndStop(1);
}
}
movieClip 1551 {
}
movieClip 1554 {
}
movieClip 1555 {
}
movieClip 1556 truck {
}
movieClip 1559 backback0 {
}
movieClip 1561 close0 {
}
movieClip 1564 backback1 {
}
movieClip 1572 skyanim {
#initclip
Object.registerClass('skyanim', speciallevel);
#endinitclip
}
movieClip 1575 {
}
movieClip 1576 {
}
movieClip 1578 {
}
movieClip 1579 {
}
movieClip 1581 {
}
movieClip 1582 {
}
movieClip 1583 {
}
movieClip 1585 {
}
movieClip 1588 backs {
}
movieClip 1591 backback4 {
}
movieClip 1594 {
}
movieClip 1596 dooras {
#initclip
Object.registerClass('dooras', door);
#endinitclip
}
movieClip 1599 back2 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [12];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 1];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 2];
}
}
}
movieClip 1602 {
}
movieClip 1611 doas {
#initclip
Object.registerClass('doas', doas);
#endinitclip
frame 7 {
gotoAndStop('full');
}
frame 14 {
gotoAndStop('mid');
}
frame 19 {
this._visible = false;
}
}
movieClip 1616 {
}
movieClip 1619 back3 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1, 2];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11];
}
}
instance s3 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [12];
}
}
}
movieClip 1621 {
}
movieClip 1623 back0 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1];
}
}
}
movieClip 1626 {
}
movieClip 1629 back10 {
}
movieClip 1631 {
}
movieClip 1643 {
}
movieClip 1645 back16 {
}
movieClip 1647 {
}
movieClip 1654 back6 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 12];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [2, 12, 11];
}
}
}
movieClip 1656 {
}
movieClip 1659 back4 {
}
movieClip 1661 {
}
movieClip 1664 back7 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [6, 7];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [7];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [12, 11];
}
}
}
movieClip 1666 {
}
movieClip 1671 back8 {
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [12];
}
}
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [5, 6, 7];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [2, 12];
}
}
instance s3 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [5, 6, 7];
}
}
}
movieClip 1673 {
}
movieClip 1678 back9 {
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1];
}
}
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [6, 7];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [12, 11, 13];
}
}
}
movieClip 1680 {
}
movieClip 1682 back12 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 12];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1, 2, 11];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1, 2, 3];
}
}
instance s3 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [3];
}
}
}
movieClip 1684 {
}
movieClip 1689 back13 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 13];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1, 3];
}
}
}
movieClip 1691 {
}
movieClip 1694 back14 {
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 12];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [1, 3];
}
}
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [11, 12, 13];
}
}
}
movieClip 1696 {
}
movieClip 1700 back15 {
instance s2 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [3];
}
}
instance s1 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [13];
}
}
instance s0 of movieClip 9 universalspot {
onClipEvent (load) {
earray = [13];
}
}
}
frame 8 {
gotoAndStop('game');
}
movieClip 1705 acta {
#initclip
Object.registerClass('acta', acta);
#endinitclip
}
frame 9 {
gotoAndStop('game');
}
frame 26 {
_root.gotoAndStop('game');
}
frame 27 {
_root.gotoAndStop('game');
}
frame 28 {
stop();
}
frame 29 {
_root.gotoAndStop('game');
}
frame 30 {
gotoAndStop('game');
}
frame 40 {
stop();
}
frame 41 {
gotoAndStop('speciallevel');
}
frame 42 {
gotoAndStop('speciallevel');
}
movieClip 1727 {
}
movieClip 1729 {
}
movieClip 1730 {
}
instance victory of movieClip 1730 {
onClipEvent (load) {
var killgore = SharedObject.getLocal('killgore');
var tempvar = 50000;
var i = 0;
killgore.data.ach[1] = 1;
i = 0;
while (i < 16) {
tempvar -= killgore.data.timer[i];
tempvar += killgore.data.score[i];
++i;
}
this._parent.victory.score.text = tempvar;
}
}
button 1731 {
on (press) {
_root.gotoAndStop('game');
}
}
instance of movieClip 326 {
onClipEvent (press) {
_root.getURL(' http://www.freeaddictinggames.com/?utm_source=games&utm_medium=killgorepmg ', '_blank');
}
}
frame 55 {
stop();
}
movieClip 1733 actsur {
#initclip
Object.registerClass('actsur', actsur);
#endinitclip
}
frame 56 {
gotoAndStop('survival');
}
frame 57 {
gotoAndStop('survival');
}
frame 58 {
gotoAndStop('survival');
}