Frame 1
if (_root._url.indexOf("kongregate.com") == -1) {
mochi.as2.MochiAd.showPreGameAd({id:"3acde6ae685cbe86", res:"800x400", background:197378, color:2514351, outline:4754103, no_bg:true});
}
function UpdateScore() {
_root.my_score = 0;
lvl = 1;
while (lvl <= 32) {
if ((my_so.data["lvl_score" + lvl] != undefined) && (!isNaN(my_so.data["lvl_score" + lvl]))) {
_root.my_score = _root.my_score + my_so.data["lvl_score" + lvl];
}
lvl++;
}
_root.score.text = "Score: " + _root.my_score;
_root.kongregateScores.submit(_root.my_score);
_root.kongregateStats.submit("Levels passed", my_so.data.lastlevel - 1);
}
function UpdateMoney() {
_root.global_money = 0;
lvl = 1;
while (lvl <= 32) {
if ((my_so.data["lvl_money" + lvl] != undefined) && (!isNaN(my_so.data["lvl_money" + lvl]))) {
_root.global_money = _root.global_money + my_so.data["lvl_money" + lvl];
trace((lvl + ": ") + my_so.data["lvl_money" + lvl]);
}
lvl++;
}
trace(my_so.data.mmoney);
trace("----------");
_root.global_money = _root.global_money - my_so.data.mmoney;
_root.money.text = "Your Money: $" + _root.global_money;
}
function clickmenu(obj, item) {
}
_root.score_server = "scores.php";
var my_xml2 = new XML();
System.useCodepage = true;
my_xml2.ignoreWhite = true;
my_xml2.onLoad = function (success) {
if (success) {
if (my_xml2.childNodes[0].attributes.place > 0) {
_root.score.text = ((("Score: " + _root.my_score) + " // ") + my_xml2.childNodes[0].attributes.place) + " place";
} else {
_root.score.text = "Score: " + _root.my_score;
}
} else {
_root.score.text = "Score: " + _root.my_score;
}
};
var my_so = SharedObject.getLocal("plazma_burst20");
if ((undefined == my_so.data.uid) || (isNaN(my_so.data.uid))) {
my_so.data.uid = Math.random() * 1000;
}
if (undefined == my_so.data.myname) {
my_so.data.myname = "Your Name Here";
}
_root.player_name = my_so.data.myname;
if ((undefined == my_so.data.lastlevel) || (isNaN(my_so.data.lastlevel))) {
my_so.data.lastlevel = 1;
}
if ((undefined == my_so.data.money) || (isNaN(my_so.data.money))) {
my_so.data.money = 0;
}
if ((undefined == my_so.data.mmoney) || (isNaN(my_so.data.mmoney))) {
my_so.data.mmoney = 0;
}
if ((undefined == my_so.data.opt_eff) || (isNaN(my_so.data.opt_eff))) {
my_so.data.opt_eff = 1;
}
if ((undefined == my_so.data.opt_bot) || (isNaN(my_so.data.opt_bot))) {
my_so.data.opt_bot = 2;
}
if ((undefined == my_so.data.opt_dis) || (isNaN(my_so.data.opt_dis))) {
my_so.data.opt_dis = 2;
}
if ((undefined == my_so.data.opt_vol) || (isNaN(my_so.data.opt_vol))) {
my_so.data.opt_vol = 3;
}
if ((my_so.data.bg_sou == undefined) || (isNaN(my_so.data.bg_sou))) {
my_so.data.bg_sou = true;
}
_root.opt_eff = my_so.data.opt_eff;
_root.opt_bot = my_so.data.opt_bot;
_root.opt_dis = my_so.data.opt_dis;
_root.opt_vol = my_so.data.opt_vol;
_root.kongregateServices.connect();
if ((my_so.data.lwea == undefined) || (isNaN(my_so.data.lwea))) {
my_so.data.lwea = 1;
}
if ((my_so.data.breaking == undefined) || (isNaN(my_so.data.breaking))) {
my_so.data.breaking = true;
}
if ((my_so.data.blood == undefined) || (isNaN(my_so.data.blood))) {
my_so.data.blood = true;
}
if ((my_so.data.low_q == undefined) || (isNaN(my_so.data.low_q))) {
my_so.data.low_q = false;
}
if ((my_so.data.weapon1 == undefined) || (isNaN(my_so.data.weapon1))) {
my_so.data.weapon1 = 0;
my_so.data.weapon2 = -1;
my_so.data.weapon3 = -1;
my_so.data.weapon4 = -1;
my_so.data.weapon5 = -1;
my_so.data.weapon6 = 0;
my_so.data.weapon7 = -1;
my_so.data.weapon8 = -1;
my_so.data.weapon9 = -1;
}
_root.currentlevel = my_so.data.lastlevel;
_root.global_money = my_so.data.money;
var my_cmi = new ContextMenu();
var my_cm = new ContextMenu();
my_cm.customItems.push(new ContextMenuItem("Game By .:Eric Gurt:.", clickmenu, true));
my_cm.builtInItems.print = false;
my_cm.builtInItems.zoom = false;
my_cm.builtInItems.play = false;
my_cm.builtInItems.loop = false;
my_cm.builtInItems.rewind = false;
my_cm.builtInItems.forward_back = false;
this.menu = my_cm;
var main_music1 = new Sound();
_root.main_music1.onSoundComplete = function () {
_root.main_music1.start(0, 1);
};
function zn(a) {
if (isNaN(a) || (undefined == a)) {
return(0);
}
return(a);
}
function firtim() {
totalseconds = totalseconds + 1;
waitfor = Math.round((totalseconds / _root.getBytesLoaded()) * (_root.getBytesTotal() - _root.getBytesLoaded()));
if (waitfor < 60) {
_root.loa2.htmlText = waitfor + " seconds";
} else if ((waitfor / 60) < 60) {
_root.loa2.htmlText = ((Math.floor(waitfor / 60) + " minutes ") + (waitfor - (Math.floor(waitfor / 60) * 60))) + " seconds";
}
}
_lockroot = true;
_root.frm = 0;
loadfinished = false;
str = _root._url;
_root.stop();
_root.lgg._alpha = 100;
lasts = 0;
times = 0;
someListener = new Object();
Mouse.addListener(someListener);
totalseconds = 0;
fir = setInterval(firtim, 1000);
str = _root._url;
_root.onEnterFrame = function () {
if (_root.frm == 0) {
if (_root._url.indexOf("kongregate.com") == -1) {
_root.lgg.cblnk._visible = false;
}
cur = zn(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
if (cur != lasts) {
times = 10;
} else {
times = times - 1;
}
_root.lg.ss._xscale = cur;
if (times > 0) {
_root.loa.htmlText = ("<font color=\"#FFFFFF\"><B>.:</B></font> " + cur) + " <font color=\"#FFFFFF\"><B>:.</B></font>";
} else if (times > -5) {
_root.loa.htmlText = ("<font color=\"#AAAAAA\"><B>.:</B></font> " + cur) + " <font color=\"#AAAAAA\"><B>:.</B></font>";
} else if (times > -40) {
_root.loa.htmlText = ("<B>.:</B> " + cur) + " <B>:.</B>";
} else {
_root.loa.htmlText = ("<font color=\"#FF0000\"><B>.:</B></font> " + cur) + " <font color=\"#FF0000\"><B>:.</B></font>";
}
lasts = cur;
if (Math.round(_root.getBytesLoaded()) >= Math.round(_root.getBytesTotal())) {
clearInterval(fir);
_root.lgg._alpha = _root.lgg._alpha - 5;
if (_root.lgg._alpha < 0) {
if (_root._url.indexOf("kongregate.com") != -1) {
_root.gotoAndStop(15);
}
}
}
}
};
Frame 2
if (!loadfinished) {
_root.gotoAndStop(15);
}
_root.UpdateMoney();
_root.frm = 1;
_root.money._visible = true;
_root.score._visible = true;
_root.visarea._visible = false;
_root.screenarea._visible = false;
_root.glow._alpha = 0;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
_root.gcur._visible = false;
_root.nick2.text = _root.player_name;
_root.money.text = "Your Money: $" + _root.global_money;
Frame 3
function stpsnds() {
_root.am_base.stop();
_root.am_falkok_base.stop();
_root.am_wind.stop();
_root.am_base = undefined;
_root.am_falkok_base = undefined;
_root.am_wind = undefined;
}
function Dist2D(p1x, p1y, p2x, p2y) {
return(Math.sqrt(Math.pow(p1x - p2x, 2) + Math.pow(p1y - p2y, 2)));
}
function Effect(x, y, typ, pntox, pntoy, fir, count) {
if (pntox == undefined) {
pntox = 0;
}
if (pntoy == undefined) {
pntoy = 0;
}
if (count != undefined) {
tr = count;
} else {
tr = 1;
if (typ == 0) {
tr = 1;
}
if (typ == 1) {
tr = 3;
}
if (typ == 2) {
tr = 10;
}
if (typ == 3) {
tr = 1;
}
if (typ == 4) {
tr = 2;
}
if (typ == 5) {
tr = 3;
}
if (typ == 6) {
tr = 1;
}
if (typ == 7) {
tr = 2;
}
if (typ == 8) {
tr = 1;
}
if (typ == 9) {
tr = 3;
}
if (typ == 10) {
tr = 10;
}
if (typ == 11) {
tr = 2;
}
if ((((typ == 1) || (typ == 2)) || (typ == 9)) || (typ == 10)) {
tr = tr * bloodlevel;
}
}
ti = 0;
while (ti < tr) {
if (typ == 0) {
duplicateMovieClip (_root.game.iskra, "p" + nextef, nextef + 200);
}
if (((typ == 1) || (typ == 2)) || (typ == 8)) {
duplicateMovieClip (_root.game.blood, "p" + nextef, nextef + 200);
}
if (typ == 3) {
duplicateMovieClip (_root.game.gilza, "p" + nextef, nextef + 200);
}
if (typ == 4) {
duplicateMovieClip (_root.game.gilza2, "p" + nextef, nextef + 200);
}
if (typ == 5) {
duplicateMovieClip (_root.game.bloodm, "p" + nextef, nextef + 200);
}
if (typ == 6) {
duplicateMovieClip (_root.game.smoke, "p" + nextef, nextef + 200);
}
if (typ == 7) {
duplicateMovieClip (_root.game.rock, "p" + nextef, nextef + 200);
}
if ((typ == 9) || (typ == 10)) {
duplicateMovieClip (_root.game.bloodf, "p" + nextef, nextef + 200);
}
if (typ == 11) {
duplicateMovieClip (_root.game.bloodmetal, "p" + nextef, nextef + 200);
}
if ((((ti == 0) || (typ == 7)) || (typ == 11)) && (typ != 8)) {
_root.game["p" + nextef].gotoAndPlay(1);
} else {
_root.game["p" + nextef].gotoAndPlay(3 + Math.floor(Math.random() * 5));
}
if (fir == false) {
_root.game["p" + nextef].gotoAndPlay(3 + Math.floor(Math.random() * 5));
}
_root.game["p" + nextef]._x = x;
_root.game["p" + nextef]._y = y;
_root.game["p" + nextef].tox = pntox;
_root.game["p" + nextef].toy = pntoy;
if (((tr != 1) && (tr != 9)) && (typ != 7)) {
_root.game["p" + nextef]._x = (x - 4) + (Math.random() * 8);
_root.game["p" + nextef]._y = (y - 4) + (Math.random() * 8);
}
nextef = nextef + 1;
ti++;
}
if (nextef > maxef) {
nextef = 0;
}
}
function HurtByType(bx, by, chrk, type, btox, btoy) {
if (type == "shot") {
if (chrk == 0) {
_root.Effect(bx, by, 1, btox, btoy);
} else if (chrk == 1) {
_root.Effect(bx, by, 5, btox, btoy);
_root.Effect(bx, by, 11);
} else if (chrk == 2) {
_root.Effect(bx, by, 9, btox, btoy);
}
} else if (type == "shot_head") {
if (chrk == 0) {
_root.Effect(bx, by, 2, btox, btoy);
} else if (chrk == 1) {
_root.Effect(bx, by, 5, btox, btoy);
_root.Effect(bx, by, 5, btox, btoy);
_root.Effect(bx, by, 11);
} else if (chrk == 2) {
_root.Effect(bx, by, 10, btox, btoy);
}
} else if (type == "fall") {
if (chrk == 0) {
_root.Effect(bx, by, 1);
} else if (chrk == 1) {
_root.Effect(bx, by, 5);
} else if (chrk == 2) {
_root.Effect(bx, by, 9);
}
} else if (type == "glass") {
if (chrk == 0) {
_root.Effect(bx, by, 1);
} else if (chrk == 1) {
_root.Effect(bx, by, 11);
} else if (chrk == 2) {
_root.Effect(bx, by, 9);
}
} else if (type == "barrel") {
if (chrk == 0) {
_root.Effect(bx, by, 2);
} else if (chrk == 1) {
_root.Effect(bx, by, 5);
_root.Effect(bx, by, 11);
} else if (chrk == 2) {
_root.Effect(bx, by, 10);
}
} else if (type == "rocket") {
if (chrk == 0) {
_root.Effect(bx, by, 2, btox, btoy);
} else if (chrk == 1) {
_root.Effect(bx, by, 5, btox, btoy);
_root.Effect(bx, by, 11);
} else if (chrk == 2) {
_root.Effect(bx, by, 10, btox, btoy);
}
} else if (type == "flow") {
if (chrk == 0) {
_root.Effect(bx, by, 1, btox, btoy, false, 1);
} else if (chrk == 1) {
_root.Effect(bx, by, 5, btox, btoy, false, 1);
} else if (chrk == 2) {
_root.Effect(bx, by, 9, btox, btoy, false, 1);
}
}
}
function Draw() {
i = 0;
while (i < mcto_tot) {
if (chio[mcto_ch[i]] != 2) {
if ((aio[chP[mcto_ch[i]]] == true) || (aio[chC[mcto_ch[i]]] == true)) {
mcto_mc[i]._xscale = Math.abs(mcto_mc[i]._xscale) * mcto_filp[i];
mcto_mc[i]._x = ax[chP[mcto_ch[i]]];
mcto_mc[i]._y = ay[chP[mcto_ch[i]]];
mcto_mc[i]._rotation = mcto_an[i] - ((Math.atan2(ax[chP[mcto_ch[i]]] - ax[chC[mcto_ch[i]]], ay[chP[mcto_ch[i]]] - ay[chC[mcto_ch[i]]]) / Math.PI) * 180);
if (mcto_isleg[i]) {
cdi = Dist2D(ax[chP[mcto_ch[i]]], ay[chP[mcto_ch[i]]], ax[chC[mcto_ch[i]]], ay[chC[mcto_ch[i]]]);
cdi = (1 - (cdi / 32.79)) * 60;
mcto_mc[i].gotoAndStop(Math.max(1, Math.min(30, Math.round(cdi))));
}
}
}
i++;
}
i = 0;
while (i < emmit_tot) {
if (emmit_time[i] > 0) {
emmit_time[i] = emmit_time[i] - 1;
if (((Math.random() > 0.5) && (_root.opt_eff > 1)) || ((Math.random() > 0.9) && (_root.opt_eff == 1))) {
HurtByType(ax[emmit_a[i]], ay[emmit_a[i]], _root.game["player" + emmit_i[i]].char, "flow", (Math.random() * 12) - 6, (Math.random() * 12) - 6);
}
} else if (i == (emmit_tot - 1)) {
emmit_tot--;
}
i++;
}
i = 0;
while (i < emmit2_tot) {
if (emmit2_time[i] > 0) {
emmit2_time[i] = emmit2_time[i] - 1;
if (_root.game["player" + emmit2_i[i]].hea > 0) {
if (((Math.random() > 0.8) && (_root.opt_eff > 1)) || ((Math.random() > 0.9) && (_root.opt_eff == 1))) {
HurtByType(_root.game["player" + emmit2_i[i]]._x + emmit2_x[i], _root.game["player" + emmit2_i[i]]._y + emmit2_y[i], _root.game["player" + emmit2_i[i]].char, "flow", (Math.random() * 6) - 3, (Math.random() * 6) - 3);
}
}
} else if (i == (emmit2_tot - 1)) {
emmit2_tot--;
}
i++;
}
}
function CreatePoint(x, y, sx, sy, rad, round) {
ax[atotal] = x;
ay[atotal] = y;
atox[atotal] = sx;
atoy[atotal] = sy;
aio[atotal] = true;
if (rad != undefined) {
arad[atotal] = rad;
} else {
arad[atotal] = 0;
}
if (round == undefined) {
around[atotal] = false;
} else {
around[atotal] = true;
}
atotal++;
return(atotal - 1);
}
function Connect(a, a2, type, di, damp) {
chP[chtotal] = a;
chC[chtotal] = a2;
if (di != undefined) {
chdef[chtotal] = di;
} else {
chdef[chtotal] = Dist2D(ax[a], ay[a], ax[a2], ay[a2]);
}
if (damp == undefined) {
chdamp[chtotal] = 1;
} else {
chdamp[chtotal] = damp;
}
chtypa[chtotal] = type;
chio[chtotal] = true;
chtotal++;
return(chtotal - 1);
}
function LinkMcTo(mc, ch, pan, flip, isLeg) {
mcto_mc[mcto_tot] = mc;
mcto_ch[mcto_tot] = ch;
mcto_an[mcto_tot] = pan;
mcto_filp[mcto_tot] = flip;
if (isLeg == true) {
mcto_isleg[mcto_tot] = true;
} else {
mcto_isleg[mcto_tot] = false;
}
mcto_tot++;
}
function Blood(a, time, ni) {
emmit_a[emmit_tot] = a;
emmit_i[emmit_tot] = ni;
emmit_time[emmit_tot] = time;
emmit_tot++;
}
function Blood2(ni, time, nx, ny) {
emmit2_i[emmit2_tot] = ni;
emmit2_time[emmit2_tot] = time;
emmit2_x[emmit2_tot] = nx;
emmit2_y[emmit2_tot] = ny;
emmit2_tot++;
}
function CHK2WEAVIS(i) {
VIS = false;
if ((_root.game["player" + i].w_upg1 == 2) && (_root.game["player" + i].gun._currentframe == 1)) {
VIS = true;
}
if (VIS) {
_root.game["player" + i].gun2.gotoAndStop(_root.game["player" + i].gun._currentframe);
if (_root.game["player" + i].gun2._visible == false) {
_root.game["player" + i].gun2._visible = true;
_root.game["player" + i].gun2._alpha = 0;
} else if (_root.game["player" + i].gun2._alpha == 0) {
_root.game["player" + i].gun2._alpha = 100;
}
_root.game["player" + i].gun2._xscale = WEASCALE;
_root.game["player" + i].gun2._yscale = WEASCALE;
} else {
_root.game["player" + i].gun2.gotoAndStop(1);
_root.game["player" + i].gun2._visible = false;
_root.game["player" + i].gun2._xscale = 0;
_root.game["player" + i].gun2._yscale = 0;
}
}
function Kill(i) {
if (i == 0) {
if (Math.random() > 0.5) {
_root.game["player" + i].sou.gotoAndStop(24);
} else {
_root.game["player" + i].sou.gotoAndStop(25);
}
} else {
_root.game["player" + i].sou.gotoAndStop(10 + Math.round(Math.random() * 2));
}
_root.game["player" + i].deadtime = 0;
_root.game["player" + i].suffer = true;
if (i != 0) {
_root.stat_kills++;
if (_root.game["player" + i].say_die != undefined) {
Hint2(_root.game["player" + i].say_die);
}
}
if (_root.game["player" + i].char == 0) {
size_body = 4;
size_head = 5;
size_arm = 8;
size_subarm = 3;
size_subleg = 4;
}
if (_root.game["player" + i].char == 1) {
size_body = 4;
size_head = 5;
size_arm = 15;
size_subarm = 10;
size_subleg = 5;
}
if (_root.game["player" + i].char == 2) {
size_body = 4;
size_head = 8;
size_arm = 7;
size_subarm = 4;
size_subleg = 6;
}
speedx = _root.game["player" + i].tox;
speedy = _root.game["player" + i].toy;
p_body = CreatePoint(_root.game["player" + i]._x + _root.game["player" + i].body._x, _root.game["player" + i]._y + _root.game["player" + i].body._y, speedx, speedy, size_body);
_root.game["player" + i].dead_body = p_body;
_root.game["player" + i].center = p_body;
p_arm1 = CreatePoint(_root.game["player" + i]._x + _root.game["player" + i].arm1._x, _root.game["player" + i]._y + _root.game["player" + i].arm1._y, speedx, speedy, size_arm);
_root.game["player" + i].dead_arm = p_arm1;
an1 = _root.game["player" + i].legs.upper1._rotation;
an2 = _root.game["player" + i].legs.upper2._rotation;
_root.game["player" + i].legs.gotoAndStop(1);
_root.game["player" + i].legs.leg1._rotation = an1;
_root.game["player" + i].legs.leg2._rotation = an2;
_root.game["player" + i].legs.leg1.gotoAndStop(1);
_root.game["player" + i].legs.leg2.gotoAndStop(1);
if (_root.game["player" + i].hea > -10) {
p_subleg1 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].legs.leg1._x) + _root.game["player" + i].legs._x) - (Math.sin(_root.game["player" + i].legs.leg1._rotation * ang_to_rad) * 35), ((_root.game["player" + i]._y + _root.game["player" + i].legs.leg1._y) + _root.game["player" + i].legs._y) + (Math.cos(_root.game["player" + i].legs.leg1._rotation * ang_to_rad) * (35 - size_subleg)), speedx, speedy, size_subleg);
p_subleg2 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].legs.leg2._x) + _root.game["player" + i].legs._x) - (Math.sin(_root.game["player" + i].legs.leg2._rotation * ang_to_rad) * 35), ((_root.game["player" + i]._y + _root.game["player" + i].legs.leg2._y) + _root.game["player" + i].legs._y) + (Math.cos(_root.game["player" + i].legs.leg2._rotation * ang_to_rad) * (35 - size_subleg)), speedx, speedy, size_subleg);
} else {
p_subleg1 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].legs.leg1._x) + _root.game["player" + i].legs._x) - (Math.sin(_root.game["player" + i].legs.leg1._rotation * ang_to_rad) * 35), ((_root.game["player" + i]._y + _root.game["player" + i].legs.leg1._y) + _root.game["player" + i].legs._y) + (Math.cos(_root.game["player" + i].legs.leg1._rotation * ang_to_rad) * (35 - size_subleg)), speedx, speedy, size_subleg);
p_subleg2 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].legs.leg2._x) + _root.game["player" + i].legs._x) - (Math.sin(_root.game["player" + i].legs.leg2._rotation * ang_to_rad) * 35), ((_root.game["player" + i]._y + _root.game["player" + i].legs.leg2._y) + _root.game["player" + i].legs._y) + (Math.cos(_root.game["player" + i].legs.leg2._rotation * ang_to_rad) * (35 - size_subleg)), speedx, speedy, size_subleg);
}
_root.game["player" + i].a_stand1 = p_subleg1;
_root.game["player" + i].a_stand2 = p_subleg2;
_root.game["player" + i].legs._x = 0;
_root.game["player" + i].legs._y = 0;
p_subarm1 = CreatePoint((_root.game["player" + i]._x + _root.game["player" + i].arm1._x) - (Math.sin(_root.game["player" + i].arm1._rotation * ang_to_rad) * 26), (_root.game["player" + i]._y + _root.game["player" + i].arm1._y) + (Math.cos(_root.game["player" + i].arm1._rotation * ang_to_rad) * 26), speedx, speedy, size_subarm);
p_subarm2 = CreatePoint((_root.game["player" + i]._x + _root.game["player" + i].arm2._x) - (Math.sin(_root.game["player" + i].arm2._rotation * ang_to_rad) * 26), (_root.game["player" + i]._y + _root.game["player" + i].arm2._y) + (Math.cos(_root.game["player" + i].arm2._rotation * ang_to_rad) * 26), speedx, speedy, size_subarm);
body_break = false;
p_head = CreatePoint(_root.game["player" + i]._x + _root.game["player" + i].head._x, _root.game["player" + i]._y + _root.game["player" + i].head._y, speedx, speedy, size_head);
if (my_so.data.breaking) {
if (((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) || (_root.game["player" + i].char == 1)) {
if ((_root.game["player" + i].lastshot == "head") || (_root.game["player" + i].lastshot == "all")) {
if (((((((_root.game["player" + i].char == 0) && (_root.game["player" + i].hea < -50)) && (_root.game["player" + i].opentop)) || (((_root.game["player" + i].char == 0) && (_root.game["player" + i].hea < -100)) && (!_root.game["player" + i].opentop))) || ((_root.game["player" + i].char == 2) && (_root.game["player" + i].hea < -100))) || (((_root.game["player" + i].char == 1) && (_root.game["player" + i].hea < -100)) && (_root.game["player" + i].head._currentframe == 1))) || ((_root.game["player" + i].char == 1) && (_root.game["player" + i].hea < -150))) {
Blood(p_head, 40, i);
_root.game["player" + i].suffer = false;
_root.game["player" + i].head.gotoAndStop(10);
HurtByType((_root.game["player" + i]._x + _root.game["player" + i].tox) + ((_root.game["player" + i].head._x / _root.game["player" + i]._xscale) * 100), (_root.game["player" + i]._y + _root.game["player" + i].toy) + _root.game["player" + i].head._y, _root.game["player" + i].char, "shot_head", ((Math.random() * 8) - 4) + _root.game["player" + i].tox, _root.game["player" + i].toy - (Math.random() * 6));
HurtByType((_root.game["player" + i]._x + _root.game["player" + i].tox) + ((_root.game["player" + i].head._x / _root.game["player" + i]._xscale) * 100), (_root.game["player" + i]._y + _root.game["player" + i].toy) + _root.game["player" + i].head._y, _root.game["player" + i].char, "shot_head", ((Math.random() * 8) - 4) + _root.game["player" + i].tox, _root.game["player" + i].toy - (Math.random() * 6));
}
}
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
if (((_root.game["player" + i].lastshot == "body") || (_root.game["player" + i].lastshot == "arm")) || (_root.game["player" + i].lastshot == "all")) {
if (((_root.game["player" + i].char == 0) && (_root.game["player" + i].hea < -150)) || ((_root.game["player" + i].char == 2) && (_root.game["player" + i].hea < -140))) {
p_body_div1 = CreatePoint((ax[p_arm1] + ax[p_body]) / 2, (ay[p_arm1] + ay[p_body]) / 2, (atox[p_arm1] + atox[p_body]) / 2, (atoy[p_arm1] + atoy[p_body]) / 2, 0);
p_body_div2 = CreatePoint((ax[p_arm1] + ax[p_body]) / 2, (ay[p_arm1] + ay[p_body]) / 2, (atox[p_arm1] + atox[p_body]) / 2, (atoy[p_arm1] + atoy[p_body]) / 2, 0);
HurtByType((ax[p_arm1] + ax[p_body]) / 2, (ay[p_arm1] + ay[p_body]) / 2, _root.game["player" + i].char, "shot_head", ((Math.random() * 8) - 4) + _root.game["player" + i].tox, _root.game["player" + i].toy - (Math.random() * 6));
HurtByType((ax[p_arm1] + ax[p_body]) / 2, (ay[p_arm1] + ay[p_body]) / 2, _root.game["player" + i].char, "shot_head", ((Math.random() * 8) - 4) + _root.game["player" + i].tox, _root.game["player" + i].toy - (Math.random() * 6));
body_break = true;
_root.game["player" + i].suffer = false;
Blood(p_body, 50, i);
Blood(p_arm1, 50, i);
}
}
}
}
}
_root.game["player" + i].a_stand3 = p_head;
if (_root.game["player" + i].hea > -10) {
p_subhead = CreatePoint((_root.game["player" + i]._x + _root.game["player" + i].head._x) + (Math.sin(_root.game["player" + i].head._rotation * ang_to_rad) * 8), (_root.game["player" + i]._y + _root.game["player" + i].head._y) - (Math.cos(_root.game["player" + i].head._rotation * ang_to_rad) * 8), speedx, speedy, size_head);
} else {
p_subhead = CreatePoint((_root.game["player" + i]._x + _root.game["player" + i].head._x) + (Math.sin(_root.game["player" + i].head._rotation * ang_to_rad) * 8), (_root.game["player" + i]._y + _root.game["player" + i].head._y) - (Math.cos(_root.game["player" + i].head._rotation * ang_to_rad) * 8), speedx, speedy, size_head);
}
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
p_gun = CreatePoint(_root.game["player" + i]._x + _root.game["player" + i].gun._x, _root.game["player" + i]._y + _root.game["player" + i].gun._y, speedx * 0.5, speedy * 0.5);
sc = _root.game["player" + i].gun._xscale / 100;
p_subgun = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun._x) - ((Math.sin((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch1._x) * sc)) - ((Math.sin((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch1._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun._y) + ((Math.cos((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch1._x) * sc)) - ((Math.cos((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch1._y) * sc), speedx * 0.5, speedy * 0.5);
p_subgun2 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun._x) - ((Math.sin((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch2._x) * sc)) - ((Math.sin((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch2._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun._y) + ((Math.cos((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch2._x) * sc)) - ((Math.cos((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch2._y) * sc), speedx * 0.5, speedy * 0.5);
p_subgun3 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun._x) - ((Math.sin((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch3._x) * sc)) - ((Math.sin((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch3._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun._y) + ((Math.cos((_root.game["player" + i].gun._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun.anch3._x) * sc)) - ((Math.cos((_root.game["player" + i].gun._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun.anch3._y) * sc), speedx * 0.5, speedy * 0.5);
if ((_root.game["player" + i].gun2._visible == true) && (_root.game["player" + i].char == 0)) {
p2_gun = CreatePoint(_root.game["player" + i]._x + _root.game["player" + i].gun._x, _root.game["player" + i]._y + _root.game["player" + i].gun._y, speedx * 0.5, speedy * 0.5);
p2_subgun = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun2._x) - ((Math.sin((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch1._x) * sc)) - ((Math.sin((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch1._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun2._y) + ((Math.cos((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch1._x) * sc)) - ((Math.cos((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch1._y) * sc), speedx * 0.5, speedy * 0.5);
p2_subgun2 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun2._x) - ((Math.sin((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch2._x) * sc)) - ((Math.sin((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch2._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun2._y) + ((Math.cos((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch2._x) * sc)) - ((Math.cos((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch2._y) * sc), speedx * 0.5, speedy * 0.5);
p2_subgun3 = CreatePoint(((_root.game["player" + i]._x + _root.game["player" + i].gun2._x) - ((Math.sin((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch3._x) * sc)) - ((Math.sin((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch3._y) * sc), ((_root.game["player" + i]._y + _root.game["player" + i].gun2._y) + ((Math.cos((_root.game["player" + i].gun2._rotation - 90) * ang_to_rad) * _root.game["player" + i].gun2.anch3._x) * sc)) - ((Math.cos((_root.game["player" + i].gun2._rotation + 180) * ang_to_rad) * _root.game["player" + i].gun2.anch3._y) * sc), speedx * 0.5, speedy * 0.5);
}
} else {
_root.game["player" + i].gun._visible = false;
}
aof[p_body] = i;
aof[p_arm1] = i;
aof[p_body_div1] = i;
aof[p_body_div2] = i;
aof[p_subleg1] = i;
aof[p_subleg2] = i;
aof[p_subarm1] = i;
aof[p_subarm2] = i;
if (_root.game["player" + i].char == 0) {
aof[p_gun] = -1;
aof[p_subgun] = -1;
}
aof[p_head] = i;
aof[p_subhead] = i;
ch_leg1 = Connect(p_body, p_subleg1, 1, 28, 0.1);
ch_leg2 = Connect(p_body, p_subleg2, 1, 28, 0.1);
if (body_break) {
ch_head = Connect(p_body, p_body_div1, 0);
ch_head3 = Connect(p_arm1, p_body_div2, 0);
Connect(p_body_div2, p_subhead, 0);
Connect(p_body_div1, p_subleg2, 1, 40);
Connect(p_body_div1, p_subleg1, 1, 40);
} else {
Connect(p_body, p_arm1, 0);
ch_head = Connect(p_body, p_head, 0);
Connect(p_arm1, p_subleg2, 1, 45);
Connect(p_arm1, p_subleg1, 1, 45);
Connect(p_body, p_subhead, 1, 35);
}
ch_leg1 = Connect(p_body, p_subleg1, 2, 33);
ch_leg2 = Connect(p_body, p_subleg2, 2, 33);
Connect(p_arm1, p_head, 0);
ch_head2 = Connect(p_head, p_subhead, 0);
_root.game["player" + i].dead_arm = p_arm1;
_root.game["player" + i].gunanchor = p_gun;
_root.game["player" + i].dead_arm2 = p_subarm2;
ch_arm1 = Connect(p_arm1, p_subarm1, 0);
ch_arm2 = Connect(p_arm1, p_subarm2, 0);
Connect(p_subleg2, p_subleg1, 2, 30);
Connect(p_subleg2, p_subleg1, 1, 5);
Connect(p_subarm2, p_subarm1, 1, 5);
side = _root.game["player" + i]._xscale / 100;
if (_root.game["player" + i].lastshot == "arm") {
atox[p_subarm1] = atox[p_subarm1] - (side * 5);
atox[p_subarm2] = atox[p_subarm2] - (side * 5);
atox[p_body] = atox[p_body] - (side * 5);
atox[p_arm1] = atox[p_arm1] + (side * 10);
if (Math.random() > 0.5) {
atox[p_subleg1] = atox[p_subleg1] - (side * 5);
} else {
atox[p_subleg2] = atox[p_subleg2] - (side * 5);
}
}
if (_root.game["player" + i].lastshot == "head") {
atox[p_arm1] = atox[p_arm1] - (side * 20);
atoy[p_arm1] = atoy[p_arm1] - 5;
atox[p_body] = atox[p_body] - (side * 10);
atoy[p_body] = atoy[p_body] - 5;
if (Math.random() > 0.5) {
atox[p_subleg2] = atox[p_subleg2] + (side * 10);
atoy[p_subleg2] = atoy[p_subleg2] - 10;
} else {
atox[p_subleg1] = atox[p_subleg1] + (side * 10);
atoy[p_subleg1] = atoy[p_subleg1] - 10;
}
}
if (_root.game["player" + i].lastshot == "leg") {
if (Math.random() > 0.5) {
atox[p_subleg1] = atox[p_subleg1] - (side * 10);
atoy[p_subleg1] = atoy[p_subleg1] - 10;
} else {
atox[p_subleg2] = atox[p_subleg2] - (side * 10);
atoy[p_subleg2] = atoy[p_subleg2] - 10;
}
if (Math.random() > 0.5) {
atox[p_subleg2] = atox[p_subleg2] + (side * 5);
} else {
atox[p_subleg1] = atox[p_subleg1] + (side * 5);
}
}
if (_root.game["player" + i].lastshot == "body") {
if (Math.random() > 0.5) {
atox[p_body] = atox[p_body] - (side * 10);
atox[p_subarm1] = atox[p_subarm1] + (side * 3);
atox[p_subarm2] = atox[p_subarm2] + (side * 3);
if (Math.random() > 0.5) {
atox[p_subleg1] = atox[p_subleg1] + (side * 3);
atoy[p_subleg1] = atoy[p_subleg1] - 3;
} else {
atox[p_subleg2] = atox[p_subleg2] + (side * 3);
atoy[p_subleg2] = atoy[p_subleg2] - 3;
}
} else {
atox[p_subarm1] = atox[p_subarm1] - (side * 5);
atox[p_subarm2] = atox[p_subarm2] - (side * 5);
atox[p_body] = atox[p_body] + (side * 3);
atox[p_subleg1] = atox[p_subleg1] - (side * 5);
atox[p_subleg2] = atox[p_subleg2] + (side * 5);
}
}
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
ch_gun = Connect(p_gun, p_subgun, 0);
ii = 0;
while (ii < 2) {
Connect(p_subgun, p_subgun2, 0);
Connect(p_subgun, p_subgun3, 0);
Connect(p_subgun2, p_subgun3, 0);
Connect(p_gun, p_subgun2, 0);
Connect(p_gun, p_subgun3, 0);
ii++;
}
if ((_root.game["player" + i].gun2._visible == true) && (_root.game["player" + i].char == 1)) {
ch_gun2 = Connect(p2_gun, p2_subgun, 0);
ii = 0;
while (ii < 2) {
Connect(p2_subgun, p2_subgun2, 0);
Connect(p2_subgun, p2_subgun3, 0);
Connect(p2_subgun2, p2_subgun3, 0);
Connect(p2_gun, p2_subgun2, 0);
Connect(p2_gun, p2_subgun3, 0);
ii++;
}
}
}
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
if ((_root.game["player" + i].gun2._visible == true) && (_root.game["player" + i].char == 1)) {
_root.game["player" + i].whold1 = Connect(p_subarm1, p_gun, 3);
_root.game["player" + i].whold2 = Connect(p_subarm2, p2_gun, 3);
Connect(p_gun, p2_gun, 1, 10);
} else {
_root.game["player" + i].whold1 = Connect(p_subarm1, p_gun, 3);
_root.game["player" + i].whold2 = Connect(p_subarm2, p_gun, 3);
}
}
flip = _root.game["player" + i]._xscale / 100;
if (flip < 0) {
ax[p_body] = ax[p_body] - _root.game["player" + i]._x;
ax[p_body] = ax[p_body] * -1;
ax[p_body] = ax[p_body] + _root.game["player" + i]._x;
ax[p_arm1] = ax[p_arm1] - _root.game["player" + i]._x;
ax[p_arm1] = ax[p_arm1] * -1;
ax[p_arm1] = ax[p_arm1] + _root.game["player" + i]._x;
ax[p_subleg1] = ax[p_subleg1] - _root.game["player" + i]._x;
ax[p_subleg1] = ax[p_subleg1] * -1;
ax[p_subleg1] = ax[p_subleg1] + _root.game["player" + i]._x;
ax[p_subleg2] = ax[p_subleg2] - _root.game["player" + i]._x;
ax[p_subleg2] = ax[p_subleg2] * -1;
ax[p_subleg2] = ax[p_subleg2] + _root.game["player" + i]._x;
ax[p_subarm1] = ax[p_subarm1] - _root.game["player" + i]._x;
ax[p_subarm1] = ax[p_subarm1] * -1;
ax[p_subarm1] = ax[p_subarm1] + _root.game["player" + i]._x;
ax[p_subarm2] = ax[p_subarm2] - _root.game["player" + i]._x;
ax[p_subarm2] = ax[p_subarm2] * -1;
ax[p_subarm2] = ax[p_subarm2] + _root.game["player" + i]._x;
ax[p_head] = ax[p_head] - _root.game["player" + i]._x;
ax[p_head] = ax[p_head] * -1;
ax[p_head] = ax[p_head] + _root.game["player" + i]._x;
ax[p_subhead] = ax[p_subhead] - _root.game["player" + i]._x;
ax[p_subhead] = ax[p_subhead] * -1;
ax[p_subhead] = ax[p_subhead] + _root.game["player" + i]._x;
if (body_break) {
ax[p_body_div1] = ax[p_body_div1] - _root.game["player" + i]._x;
ax[p_body_div1] = ax[p_body_div1] * -1;
ax[p_body_div1] = ax[p_body_div1] + _root.game["player" + i]._x;
ax[p_body_div2] = ax[p_body_div2] - _root.game["player" + i]._x;
ax[p_body_div2] = ax[p_body_div2] * -1;
ax[p_body_div2] = ax[p_body_div2] + _root.game["player" + i]._x;
}
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
ax[p_gun] = ax[p_gun] - _root.game["player" + i]._x;
ax[p_gun] = ax[p_gun] * -1;
ax[p_gun] = ax[p_gun] + _root.game["player" + i]._x;
ax[p_subgun] = ax[p_subgun] - _root.game["player" + i]._x;
ax[p_subgun] = ax[p_subgun] * -1;
ax[p_subgun] = ax[p_subgun] + _root.game["player" + i]._x;
ax[p_subgun2] = ax[p_subgun2] - _root.game["player" + i]._x;
ax[p_subgun2] = ax[p_subgun2] * -1;
ax[p_subgun2] = ax[p_subgun2] + _root.game["player" + i]._x;
ax[p_subgun3] = ax[p_subgun3] - _root.game["player" + i]._x;
ax[p_subgun3] = ax[p_subgun3] * -1;
ax[p_subgun3] = ax[p_subgun3] + _root.game["player" + i]._x;
if ((_root.game["player" + i].gun2._visible == true) && (_root.game["player" + i].char == 1)) {
ax[p2_gun] = ax[p2_gun] - _root.game["player" + i]._x;
ax[p2_gun] = ax[p2_gun] * -1;
ax[p2_gun] = ax[p2_gun] + _root.game["player" + i]._x;
ax[p2_subgun] = ax[p2_subgun] - _root.game["player" + i]._x;
ax[p2_subgun] = ax[p2_subgun] * -1;
ax[p2_subgun] = ax[p2_subgun] + _root.game["player" + i]._x;
ax[p2_subgun2] = ax[p2_subgun2] - _root.game["player" + i]._x;
ax[p2_subgun2] = ax[p2_subgun2] * -1;
ax[p2_subgun2] = ax[p2_subgun2] + _root.game["player" + i]._x;
ax[p2_subgun3] = ax[p2_subgun3] - _root.game["player" + i]._x;
ax[p2_subgun3] = ax[p2_subgun3] * -1;
ax[p2_subgun3] = ax[p2_subgun3] + _root.game["player" + i]._x;
}
}
}
_root.game["player" + i]._x = 0;
_root.game["player" + i]._y = 0;
if (body_break) {
_root.game["player" + i].jet = false;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].legs.toe.bloddy._visible = true;
}
if (_root.game["player" + i].char == 2) {
_root.game["player" + i].legs.toe.bloddy2._visible = true;
}
_root.game["player" + i].body.gotoAndStop(5);
LinkMcTo(_root.game["player" + i].body, ch_head3, 0, flip);
} else {
LinkMcTo(_root.game["player" + i].body, ch_head, 0, flip);
}
if (body_break) {
LinkMcTo(_root.game["player" + i].legs.toe, ch_head, 0, flip);
} else {
LinkMcTo(_root.game["player" + i].legs.toe, ch_head, 0, flip);
}
LinkMcTo(_root.game["player" + i].legs.leg1, ch_leg1, 180, flip, true);
LinkMcTo(_root.game["player" + i].legs.leg2, ch_leg2, 180, flip, true);
LinkMcTo(_root.game["player" + i].arm1, ch_arm1, 180, flip);
LinkMcTo(_root.game["player" + i].arm2, ch_arm2, 180, flip);
LinkMcTo(_root.game["player" + i].head, ch_head2, 0, flip);
if ((_root.game["player" + i].char == 0) || (_root.game["player" + i].char == 2)) {
if (flip > 0) {
LinkMcTo(_root.game["player" + i].gun, ch_gun, -90, flip);
} else {
LinkMcTo(_root.game["player" + i].gun, ch_gun, 90, flip);
}
if ((_root.game["player" + i].gun2._visible == true) && (_root.game["player" + i].char == 1)) {
if (flip > 0) {
LinkMcTo(_root.game["player" + i].gun2, ch_gun2, -90, flip);
} else {
LinkMcTo(_root.game["player" + i].gun2, ch_gun2, 90, flip);
}
}
}
_root.game["player" + i]._xscale = 100;
}
function Fire(px, py, mast, power, spx, spy) {
ok = true;
ip = 0;
while ((ip < pulstot) && (ok)) {
if (_root.game["pl" + ip]._visible == false) {
ok = false;
ini = ip;
}
ip++;
}
if (ok) {
ini = pulstot;
}
duplicateMovieClip (_root.game.plazma, "pl" + ini, -100 + ini);
_root.game["pl" + ini].life = 0;
_root.game["pl" + ini]._x = px + spx;
_root.game["pl" + ini]._y = py + spy;
_root.game["pl" + ini].power = power;
_root.game["pl" + ini].spx = spx;
_root.game["pl" + ini].spy = spy;
_root.game["pl" + ini].master = mast;
_root.game["pl" + ini].gotoAndStop(_root.game["player" + mast].gun._currentframe);
_root.game["pl" + ini]._rotation = (Math.atan2(spy, spx) / Math.PI) * 180;
if (ok) {
pulstot++;
if (pulstot >= pulsmax) {
pulstot = 0;
}
}
}
function HTrace(x1, y1, x2, y2) {
ok = true;
an11 = (-Math.atan2(x1 - x2, y1 - y2)) - (Math.PI/2);
tracex = Math.cos(an11) * 20;
tracey = Math.sin(an11) * 20;
tracx = x1;
tracy = y1;
dst = Math.floor(Dist2D(x1, y1, x2, y2) / 20);
z = 0;
while ((z < dst) && (ok == true)) {
if (_root.game.colmap.hitTest(tracx + _root.game._x, tracy + _root.game._y, true)) {
ok = false;
}
tracx = tracx + tracex;
tracy = tracy + tracey;
z++;
}
return(ok);
}
function finish() {
if ((_root.game.player0.hea > 0) && (_root.loose == 0)) {
i2 = 1;
while (i2 < 10) {
my_so.data["weapon" + i2] = _root.game.player0["w_upg" + i2];
i2++;
}
stpsnds();
_root.auto_buy = true;
_root.gotoAndStop(4);
}
}
function Stuk(hor, ver, a) {
hor = Math.abs(hor) * 0.5;
ver = Math.abs(ver) * 0.5;
if (hor > (ver + 2)) {
_root.game["player" + aof[a]].sou.gotoAndStop(9);
} else {
if (ver > 2) {
if (ver <= 3) {
_root.game["player" + aof[a]].sou.gotoAndStop(7);
}
}
if (ver > 3) {
if (ver <= 4) {
_root.game["player" + aof[a]].sou.gotoAndStop(6);
}
}
if (ver > 4) {
_root.game["player" + aof[a]].sou.gotoAndStop(8);
if (ver > 6) {
Blood(a, 10 + (Math.random() * 30), aof[a]);
}
}
}
}
function Hint(mess) {
hinttim = (mess.length * 2) + 10;
_root.hint.htmlText = "Hint: " + mess;
}
function Hint2(mess) {
hinttim = (mess.length * 2) + 10;
_root.hint.htmlText = mess;
}
function Physics() {
a = 0;
while (a < atotal) {
if (aio[a] == true) {
ax[a] = ax[a] + atox[a];
ay[a] = ay[a] + atoy[a];
if (ay[a] > 1000) {
if (_root.game._currentframe == 11) {
Stuk(atox[a], atoy[a], a);
ay[a] = 1000;
atoy[a] = atoy[a] * -0.5;
atox[a] = atox[a] * 0.9;
} else {
atox[a] = atox[a] * 0.9;
atoy[a] = atoy[a] * 0.9;
if (ay[a] > 1200) {
ay[a] = 1200;
atoy[a] = 0;
}
}
}
di = Dist2D(atox[a], atoy[a], 0, 0);
if (di > collision_tolerance) {
atox[a] = atox[a] / (di * collision_tolerance);
atoy[a] = atoy[a] / (di * collision_tolerance);
}
if (di > 30) {
atox[a] = (atox[a] / di) * 30;
atoy[a] = (atoy[a] / di) * 30;
}
atoy[a] = atoy[a] + gravity;
if (((arad[a] == 0) && (_root.game.colmap.hitTest(ax[a] + _root.game._x, ay[a] + _root.game._y, true))) || ((arad[a] > 0) && (_root.game.colmap.hitTest(ax[a] + _root.game._x, (ay[a] + arad[a]) + _root.game._y, true)))) {
b = 0;
while (b < boxestotal) {
boxx = _root.game.colmap["box" + b];
if (ax[a] > boxx._x) {
if (ax[a] < (boxx._x + boxx._xscale)) {
if ((ay[a] + arad[a]) > boxx._y) {
if ((ay[a] + arad[a]) < (boxx._y + boxx._yscale)) {
minside = Math.min(boxx._xscale, boxx._yscale);
if (boxx._yscale < boxx._xscale) {
ccx = Math.max(boxx._x + (boxx._yscale / 2), Math.min((boxx._x + boxx._xscale) - (boxx._yscale / 2), ax[a] - atox[a]));
ccy = boxx._y + (boxx._yscale / 2);
} else {
ccy = Math.max(boxx._y + (boxx._xscale / 2), Math.min((boxx._y + boxx._yscale) - (boxx._xscale / 2), ay[a] - atoy[a]));
ccx = boxx._x + (boxx._xscale / 2);
}
acx = (ccx - ax[a]) + atox[a];
acy = (ccy - ay[a]) + atoy[a];
if (Math.abs(acx) > Math.abs(acy)) {
atox[a] = atox[a] * 0.5;
if (around[a]) {
atoy[a] = atoy[a] * 0.9;
} else if (atoy[a] > 0) {
atoy[a] = Math.max(atoy[a] - (friction * Math.abs(atox[a])), 0);
} else {
atoy[a] = Math.min(atoy[a] + (friction * Math.abs(atox[a])), 0);
}
Stuk(atoy[a], atox[a], a);
if (acx < 0) {
ax[a] = boxx._x + boxx._xscale;
atox[a] = Math.abs(atox[a]);
} else {
ax[a] = boxx._x;
atox[a] = -Math.abs(atox[a]);
}
} else {
if (around[a]) {
atox[a] = atox[a] * 0.9;
} else if (atox[a] > 0) {
atox[a] = Math.max(atox[a] - (friction * Math.abs(atoy[a])), 0);
} else {
atox[a] = Math.min(atox[a] + (friction * Math.abs(atoy[a])), 0);
}
atoy[a] = atoy[a] * 0.5;
Stuk(atox[a], atoy[a], a);
if (acy < 0) {
ay[a] = (boxx._y - arad[a]) + boxx._yscale;
atoy[a] = Math.abs(atoy[a]);
} else {
ay[a] = boxx._y - arad[a];
atoy[a] = -Math.abs(atoy[a]);
}
}
}
}
}
}
b++;
}
}
}
a++;
}
ch = 0;
while (ch < chtotal) {
if ((chio[ch] == true) || (chio[ch] == false)) {
if ((aio[chP[ch]] == false) && (aio[chC[ch]] == false)) {
chio[ch] = false;
} else {
chio[ch] = true;
}
if ((aio[chP[ch]] == 2) || (aio[chC[ch]] == 2)) {
chio[ch] = 2;
}
if (chio[ch] == true) {
els = false;
if ((((Math.abs(atox[chP[ch]]) + Math.abs(atoy[chP[ch]])) + Math.abs(atox[chC[ch]])) + Math.abs(atoy[chC[ch]])) < 5) {
chtsilp[ch] = chtsilp[ch] + 1;
if (chtsilp[ch] > 8) {
aio[chP[ch]] = false;
aio[chC[ch]] = false;
chio[ch] = false;
}
} else {
els = true;
}
dis = Dist2D(ax[chP[ch]], ay[chP[ch]], ax[chC[ch]], ay[chC[ch]]);
bnc = (0.5 * Math.abs(dis - chdef[ch])) * chdamp[ch];
if (dis < 1) {
dis = 1;
}
if (chtypa[ch] == 3) {
if ((dis > (chdef[ch] + 14)) || (dis < (chdef[ch] - 14))) {
chtypa[ch] = 1;
chdef[ch] = 0;
}
}
if (chtypa[ch] == 4) {
if ((dis > (chdef[ch] + 7)) || (dis < (chdef[ch] - 7))) {
chtypa[ch] = 1;
chdef[ch] = 0;
}
}
if ((dis > chdef[ch]) && ((((chtypa[ch] == 0) || (chtypa[ch] == 3)) || (chtypa[ch] == 4)) || (chtypa[ch] == 2))) {
atox[chC[ch]] = atox[chC[ch]] + (((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc);
atoy[chC[ch]] = atoy[chC[ch]] + (((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc);
atox[chP[ch]] = atox[chP[ch]] - (((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc);
atoy[chP[ch]] = atoy[chP[ch]] - (((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc);
} else if ((dis < chdef[ch]) && ((((chtypa[ch] == 0) || (chtypa[ch] == 3)) || (chtypa[ch] == 4)) || (chtypa[ch] == 1))) {
atox[chC[ch]] = atox[chC[ch]] - (((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc);
atoy[chC[ch]] = atoy[chC[ch]] - (((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc);
atox[chP[ch]] = atox[chP[ch]] + (((ax[chP[ch]] - ax[chC[ch]]) / dis) * bnc);
atoy[chP[ch]] = atoy[chP[ch]] + (((ay[chP[ch]] - ay[chC[ch]]) / dis) * bnc);
} else {
els = false;
}
if ((chdamp[ch] == 1) && (((((chtypa[ch] == 0) || (chtypa[ch] == 3)) || (chtypa[ch] == 4)) || ((dis > chdef[ch]) && (chtypa[ch] == 2))) || ((dis < chdef[ch]) && (chtypa[ch] == 1)))) {
tarx = (ax[chP[ch]] + ax[chC[ch]]) / 2;
tary = (ay[chP[ch]] + ay[chC[ch]]) / 2;
srx = (atox[chC[ch]] + atox[chP[ch]]) / 2;
sry = (atoy[chC[ch]] + atoy[chP[ch]]) / 2;
speedx = (atox[chC[ch]] + (-atox[chP[ch]])) / 2;
speedy = (atoy[chC[ch]] + (-atoy[chP[ch]])) / 2;
atox[chC[ch]] = srx + speedx;
atoy[chC[ch]] = sry + speedy;
atox[chP[ch]] = srx - speedx;
atoy[chP[ch]] = sry - speedy;
ax[chP[ch]] = tarx + (((ax[chP[ch]] - tarx) * chdef[ch]) / dis);
ay[chP[ch]] = tary + (((ay[chP[ch]] - tary) * chdef[ch]) / dis);
ax[chC[ch]] = tarx + (((ax[chC[ch]] - tarx) * chdef[ch]) / dis);
ay[chC[ch]] = tary + (((ay[chC[ch]] - tary) * chdef[ch]) / dis);
}
if (els) {
chtsilp[ch] = 0;
aio[chP[ch]] = true;
aio[chC[ch]] = true;
}
}
} else {
aio[chP[ch]] = 2;
aio[chC[ch]] = 2;
}
ch++;
}
}
var am_base_vol = 0;
var am_base_falkok_vol = 0;
var am_wind_vol = 0;
trace(_root.am_base);
if (_root.am_base == undefined) {
trace("MAKED");
_root.am_base = new Sound(_root.createEmptyMovieClip("m_am_base", -1001));
_root.am_falkok_base = new Sound(_root.createEmptyMovieClip("m_am_falkok_base", -1002));
_root.am_wind = new Sound(_root.createEmptyMovieClip("m_am_wind", -1003));
_root.am_base.attachSound("am_base");
_root.am_falkok_base.attachSound("am_falkok_base");
_root.am_wind.attachSound("am_wind");
}
_root.am_base.start(0, 10000);
_root.am_falkok_base.start(0, 10000);
_root.am_wind.start(0, 10000);
_root.am_base.setVolume(0);
_root.am_falkok_base.setVolume(0);
_root.am_wind.setVolume(0);
_root.money._visible = false;
_root.score._visible = false;
_root.frm = 2;
_root.stop();
_root.loose = 0;
_root.game.gotoAndStop(_root.currentlevel);
if (my_so.data.low_q) {
_root._quality = "LOW";
} else {
_root._quality = "MEDIUM";
}
_root.console._visible = false;
_root.console.exec.onPress = function () {
if (_root.console._visible) {
_root.console._visible = false;
}
};
var ang_to_rad = (Math.PI/180);
_root.stat_kills = 0;
_root.stat_headshots = 0;
_root.stat_shots = 0;
if (my_so.data.lastlevel < _root.currentlevel) {
my_so.data.lastlevel = _root.currentlevel;
}
var gravity = 0.8;
var grenades = 0;
var sitmax = 8;
var ax = new Array();
var ay = new Array();
var atox = new Array();
var atoy = new Array();
var aio = new Array();
var aof = new Array();
var arad = new Array();
var around = new Array();
var screenX = 800;
var screenY = 400;
var playerhmax = 400;
var hscreenX = 400;
var hscreenY = 200;
var activitytim = 0;
var fire = false;
var hinttim = 0;
var gtotal = 0;
var grenadetim = 0;
var chtypa = new Array();
var chP = new Array();
var chC = new Array();
var chdef = new Array();
var chdamp = new Array();
var chio = new Array();
var chtsilp = new Array();
var bounce = 0.5;
var friction = 0.6;
var mcto_ch = new Array();
var mcto_mc = new Array();
var mcto_an = new Array();
var mcto_filp = new Array();
var mcto_isleg = new Array();
var mcto_tot = 0;
var emmit_a = new Array();
var emmit_i = new Array();
var emmit_time = new Array();
var emmit_tot = 0;
var emmit2_i = new Array();
var emmit2_time = new Array();
var emmit2_x = new Array();
var emmit2_y = new Array();
var emmit2_tot = 0;
_root.game.blood._visible = false;
_root.game.bloodm._visible = false;
_root.game.bloodmetal._visible = false;
_root.game.bloodf._visible = false;
_root.game.iskra._visible = false;
_root.game.blood.gotoAndStop(1);
_root.game.bloodf.gotoAndStop(1);
_root.game.bloodm.gotoAndStop(1);
_root.game.bloodmetal.gotoAndStop(1);
_root.game.iskra.gotoAndStop(1);
_root.game.men._visible = false;
_root.game.enemy._visible = false;
_root.game.falkok._visible = false;
_root.game.men.gotoAndStop(1);
_root.game.enemy.gotoAndStop(1);
_root.game.falkok.gotoAndStop(1);
_root.game.men.legs.gotoAndStop(1);
_root.game.enemy.legs.gotoAndStop(1);
_root.game.falkok.legs.gotoAndStop(1);
_root.game.end._visible = false;
_root.game.gilza._visible = false;
_root.game.gilza2._visible = false;
_root.game.gilza.disabled = true;
_root.game.gilza2.disabled = true;
_root.game.smoke._visible = false;
_root.game.sprs.spr._visible = false;
_root.game.rock._visible = false;
var boxestotal = 0;
var barrelstotal = 0;
var heatotal = 0;
var x;
var y;
var i;
var i2;
var i3;
var b;
b = 0;
while (b < 100) {
if (_root.game.colmap["box" + b]) {
boxestotal = boxestotal + 1;
} else {
b = 100;
}
b++;
}
b = 0;
while (b < 100) {
if (_root.game["barrel" + b]) {
barrelstotal = barrelstotal + 1;
} else {
b = 100;
}
b++;
}
b = 0;
while (b < 100) {
if (_root.game["medikit" + b]) {
heatotal = heatotal + 1;
} else {
b = 100;
}
b++;
}
var playerstot = 0;
var monsterstot = 0;
var falkokstot = 0;
i = 0;
while (i < 100) {
if (_root.game["start" + i]) {
playerstot = playerstot + 1;
_root.game["start" + i]._visible = false;
} else {
i = 100;
}
i++;
}
i = 0;
while (i < 100) {
if (_root.game["mon" + i]) {
monsterstot = monsterstot + 1;
_root.game["mon" + i]._visible = false;
} else {
i = 100;
}
i++;
}
i = 0;
while (i < 100) {
if (_root.game["fal" + i]) {
falkokstot = falkokstot + 1;
_root.game["fal" + i]._visible = false;
} else {
i = 100;
}
i++;
}
var nextef = 0;
var maxef = 128;
var bloodlevel = ((2 * _root.opt_eff) / 3);
var sprtot = 0;
var atotal = 0;
var chtotal = 0;
var grenades = 3;
var WEASCALE = _root.game.men.gun._xscale;
i = 0;
while (i < playerstot) {
if ((i == 0) && (monstermode)) {
duplicateMovieClip (_root.game.enemy, "player" + i, i);
} else {
duplicateMovieClip (_root.game.men, "player" + i, i);
}
_root.game["player" + i].myi = i;
_root.game["player" + i].filters = _root.game.men.filters;
_root.game["player" + i]._x = _root.game["start" + i]._x;
_root.game["player" + i]._y = _root.game["start" + i]._y;
_root.game["player" + i].getdown = false;
if (i == 0) {
_root.game["player" + i].getdown = true;
}
_root.game["player" + i].easymove = 1;
_root.game["player" + i].w_upg1 = 0;
_root.game["player" + i].w_upg2 = 0;
_root.game["player" + i].w_upg3 = 0;
_root.game["player" + i].w_upg4 = 0;
_root.game["player" + i].w_upg5 = 0;
_root.game["player" + i].w_upg6 = 0;
_root.game["player" + i].w_upg7 = 0;
_root.game["player" + i].w_upg8 = 0;
_root.game["player" + i].w_upg9 = 0;
_root.game["player" + i].opentop = false;
if (i == 0) {
_root.game["player" + i].hea = playerhmax;
} else {
_root.game["player" + i].hea = 100;
}
_root.game["player" + i].lhea = _root.game["player" + i].hea;
_root.game["player" + i].pain = 0;
_root.game["player" + i].painspeed = 0;
if (i != 0) {
_root.game["player" + i].gun.gotoAndStop(1);
} else {
if (my_so.data["weapon" + my_so.data.lwea] != -1) {
_root.game["player" + i].gun.gotoAndStop(my_so.data.lwea);
} else {
_root.game["player" + i].gun.gotoAndStop(6);
}
CHK2WEAVIS(i);
}
_root.game["player" + i].lastshot = "body";
_root.game["player" + i].sit = 0;
_root.game["player" + i].tox = 0;
_root.game["player" + i].toy = 0;
_root.game["player" + i].dead = false;
_root.game["player" + i].active = false;
_root.game["player" + i].gotoAndPlay(2);
_root.game["player" + i]._visible = false;
if (i == 0) {
_root.game["player" + i].legtype = 4;
} else {
_root.game["player" + i].legtype = 1;
}
if (i == 0) {
_root.game["player" + i].command = 0;
} else {
_root.game["player" + i].command = 1;
}
_root.game["player" + i].char = 0;
_root.game["player" + i].head.gotoAndStop(_root.game["player" + i].command + 1);
_root.game["player" + i].body.gotoAndStop(_root.game["player" + i].command + 1);
_root.game["player" + i].arm1.gotoAndStop(_root.game["player" + i].command + 1);
_root.game["player" + i].arm2.gotoAndStop(_root.game["player" + i].command + 1);
_root.game["player" + i].hunt = -1;
if ((i == 0) && (monstermode)) {
_root.game["player" + i].command = 2;
_root.game["player" + i].char = 1;
_root.game["player" + i].gotoAndPlay(2);
_root.game["player" + i].head.gotoAndStop(1);
_root.game["player" + i].body.gotoAndStop(1);
_root.game["player" + i].arm1.gotoAndStop(1);
_root.game["player" + i].arm2.gotoAndStop(1);
_root.game["player" + i].gun.gotoAndStop(10);
}
_root.game["player" + i].gun2.gotoAndStop(1);
_root.game["player" + i].gun2._visible = false;
if (i == 0) {
i2 = 1;
while (i2 < 10) {
_root.game["player" + i]["w_upg" + i2] = my_so.data["weapon" + i2];
i2++;
}
if (_root.game["player" + i].w_upg8 > 2) {
_root.game["player" + i].body.gotoAndStop(6);
_root.game["player" + i].arm1.gotoAndStop(7);
_root.game["player" + i].arm2.gotoAndStop(7);
_root.game["player" + i].legtype = 7;
}
if (_root.game["player" + i].w_upg7 == -1) {
_root.game["player" + i].opentop = true;
_root.game["player" + i].head.gotoAndStop(11);
}
if (_root.game["player" + i].w_upg7 == 1) {
_root.game["player" + i].head.gotoAndStop(12);
}
_root.game["player" + i].hea = 150 + (100 * _root.game["player" + i].w_upg8);
playerhmax = 150 + (100 * _root.game["player" + i].w_upg8);
CHK2WEAVIS(i);
}
_root.game["start" + i].unloadMovie();
i++;
}
i = playerstot;
while (i < (playerstot + monsterstot)) {
duplicateMovieClip (_root.game.enemy, "player" + i, i);
_root.game["player" + i].filters = _root.game.men.filters;
_root.game["player" + i]._x = _root.game["mon" + (i - playerstot)]._x;
_root.game["player" + i]._y = _root.game["mon" + (i - playerstot)]._y;
_root.game["player" + i].hea = 300;
_root.game["player" + i].lhea = _root.game["player" + i].hea;
_root.game["player" + i].pain = 0;
_root.game["player" + i].painspeed = 0;
_root.game["player" + i].easymove = 0.7;
_root.game["player" + i].lastshot = "body";
_root.game["player" + i].expir = 1;
_root.game["player" + i].sit = 0;
_root.game["player" + i].tox = 0;
_root.game["player" + i].toy = 0;
_root.game["player" + i].dead = false;
_root.game["player" + i].active = false;
_root.game["player" + i].gotoAndPlay(2);
_root.game["player" + i].gun.gotoAndStop(10);
_root.game["player" + i]._visible = false;
_root.game["player" + i].opentop = false;
_root.game["player" + i].command = 2;
_root.game["player" + i].char = 1;
_root.game["player" + i].legtype = 2;
_root.game["player" + i].head.gotoAndStop(1);
_root.game["player" + i].body.gotoAndStop(1);
_root.game["player" + i].arm1.gotoAndStop(1);
_root.game["player" + i].arm2.gotoAndStop(1);
_root.game["player" + i].hunt = -1;
_root.game["start" + i].unloadMovie();
i++;
}
playerstot = playerstot + monsterstot;
i = playerstot;
while (i < (playerstot + falkokstot)) {
duplicateMovieClip (_root.game.falkok, "player" + i, i);
_root.game["player" + i].filters = _root.game.men.filters;
_root.game["player" + i]._x = _root.game["fal" + (i - playerstot)]._x;
_root.game["player" + i]._y = _root.game["fal" + (i - playerstot)]._y;
_root.game["player" + i].hea = 250;
_root.game["player" + i].lhea = _root.game["player" + i].hea;
_root.game["player" + i].pain = 0;
_root.game["player" + i].painspeed = 0;
_root.game["player" + i].easymove = 0.85;
_root.game["player" + i].lastshot = "body";
_root.game["player" + i].expir = 1;
_root.game["player" + i].sit = 0;
_root.game["player" + i].tox = 0;
_root.game["player" + i].toy = 0;
_root.game["player" + i].dead = false;
_root.game["player" + i].active = false;
_root.game["player" + i].gotoAndPlay(2);
_root.game["player" + i].gun.gotoAndStop(2);
_root.game["player" + i].w_upg2 = 2;
_root.game["player" + i]._visible = false;
_root.game["player" + i].opentop = false;
_root.game["player" + i].command = 3;
_root.game["player" + i].char = 2;
_root.game["player" + i].legtype = 6;
_root.game["player" + i].head.gotoAndStop(1);
_root.game["player" + i].body.gotoAndStop(1);
_root.game["player" + i].arm1.gotoAndStop(1);
_root.game["player" + i].arm2.gotoAndStop(1);
_root.game["player" + i].hunt = -1;
_root.game["start" + i].unloadMovie();
i++;
}
playerstot = playerstot + falkokstot;
_root.game.plazma._visible = false;
pulstot = 0;
pulsmax = 32;
_root.glow._visible = false;
_root.glow._alpha = 0;
_root.game._x = ((-_root.game.player0.body._x) - _root.game.player0._x) + hscreenX;
_root.game._y = ((-_root.game.player0.body._y) - _root.game.player0._y) + hscreenY;
pspeed = 6;
function SHOT() {
if (this_player.gun.whea._currentframe == 1) {
this_player.gun.whea.gotoAndPlay(2);
if (this_player.gun2._visible == true) {
this_player.gun2.whea.gotoAndPlay(2);
}
this_player.gotoAndPlay("fire");
if (i == 0) {
if (this_player.gun._currentframe != 6) {
_root.stat_shots++;
}
}
if (this_player.gun._currentframe == 1) {
puli = 1;
ef = 3;
noise = 7;
}
if (this_player.gun._currentframe == 2) {
puli = 1;
ef = 3;
if (this_player.w_upg2 == 0) {
noise = 5;
}
if (this_player.w_upg2 == 1) {
noise = 1;
}
if (this_player.w_upg2 == 2) {
noise = 2;
}
}
if (this_player.gun._currentframe == 3) {
puli = 2;
ef = 4;
noise = 20;
if (this_player.w_upg3 == 1) {
noise = 12;
}
if (this_player.w_upg3 == 2) {
noise = 12;
puli = 3;
}
}
if ((this_player.gun._currentframe == 5) || (this_player.gun._currentframe == 12)) {
puli = 4;
ef = 3;
noise = 10;
if (this_player.gun._currentframe == 12) {
puli = 1;
}
}
if (this_player.gun._currentframe == 7) {
puli = 0;
ef = -1;
noise = 0;
}
if (this_player.gun._currentframe == 6) {
puli = 0;
ef = -1;
noise = 0;
i2 = 0;
while (i2 < playerstot) {
that_player2 = _root.game["player" + i2];
if (i != i2) {
if (that_player2.hea > 0) {
if ((((this_player.command == that_player2.command) && (that_player2.command != 0)) && (that_player2.command != 3)) || (this_player.command != that_player2.command)) {
if (this_player.gun.hitTest(that_player2)) {
if (that_player2.hea < 50) {
that_player2.hea = 0;
} else {
that_player2.hea = that_player2.hea - 50;
}
that_player2.lastshot = "none";
if (that_player2.hea > 0) {
that_player2.gotoAndPlay("hurt");
that_player2.hunt = i;
that_player2.tnoise = that_player2.tnoise + 20;
}
}
}
}
}
i2++;
}
}
if (this_player.gun._currentframe == 9) {
puli = 1;
ef = 3;
noise = 1;
}
if (this_player.gun._currentframe == 10) {
puli = 2;
ef = 6;
noise = 20;
}
if (this_player.gun._currentframe == 11) {
puli = 1;
ef = 3;
noise = 20;
}
if ((this_player.gun._currentframe == 4) || (this_player.gun._currentframe == 13)) {
puli = 0;
ef = -1;
noise = 30;
rn = Math.random();
duplicateMovieClip (_root.game.rocket, "gr" + gtotal, 400 + gtotal);
_root.game["gr" + gtotal]._x = this_player._x + ((this_player.gun._x * this_player._xscale) / 100);
_root.game["gr" + gtotal]._y = this_player._y + this_player.gun._y;
_root.game["gr" + gtotal].tox = Math.cos(an1) * 10;
_root.game["gr" + gtotal].toy = Math.sin(an1) * 10;
_root.game["gr" + gtotal].tox2 = 0;
_root.game["gr" + gtotal].toy2 = 0;
_root.game["gr" + gtotal].master = i;
gtotal = gtotal + 1;
}
this_player.tnoise = this_player.tnoise + noise;
if (ef != -1) {
Effect(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, ef);
}
px = this_player._x + ((this_player.gun._x * this_player._xscale) / 100);
py = this_player._y + this_player.gun._y;
p = 0;
while (p < puli) {
sm = 0;
power = 0;
if (this_player.gun._currentframe == 1) {
sm = -0.02 + (Math.random() * 0.04);
if (this_player.w_upg1 == 0) {
power = 0.3;
} else if (this_player.w_upg1 == 1) {
power = 0.8;
} else {
power = 0.8;
}
}
if (this_player.gun._currentframe == 2) {
sm = -0.05 + (Math.random() * 0.1);
power = 0.5;
if (this_player.w_upg2 == 2) {
power = 0.9;
}
}
if (this_player.gun._currentframe == 3) {
sm = -0.05 + (Math.random() * 0.1);
power = 1.5;
}
if ((this_player.gun._currentframe == 5) || (this_player.gun._currentframe == 12)) {
sm = -0.04 + (Math.random() * 0.08);
power = 1;
if (this_player.w_upg5 == 1) {
power = 1.5;
}
if (this_player.w_upg5 == 2) {
power = 2;
}
}
if (this_player.gun._currentframe == 9) {
sm = -0.05 + (Math.random() * 0.1);
power = 1.3;
}
if (this_player.gun._currentframe == 10) {
sm = -0.015 + (Math.random() * 0.03);
power = 0.7;
}
if (this_player.gun._currentframe == 11) {
sm = -0.015 + (Math.random() * 0.03);
power = 1;
}
if (this_player.dead) {
spx = ((Math.cos(((this_player.gun._rotation / 180) * Math.PI) + sm) * 10) * this_player.gun._xscale) / 50;
spy = (-Math.sin(((this_player.gun._rotation / 180) * Math.PI) + sm)) * 10;
} else {
spx = Math.cos(an1 + sm) * 10;
spy = Math.sin(an1 + sm) * 10;
}
if (this_player.gun._currentframe == 3) {
if (p == 0) {
Fire(px + Math.sin(an1), py + Math.cos(an1), i, power, spx, spy);
} else {
Fire(px - Math.sin(an1), py - Math.cos(an1), i, power, spx, spy);
}
} else {
Fire(px, py, i, power, spx, spy);
}
p++;
}
if (this_player.dead) {
atox[chP[this_player.whold1]] = atox[chP[this_player.whold1]] - (spx * power);
atoy[chP[this_player.whold1]] = atoy[chP[this_player.whold1]] - (spy * power);
atox[chC[this_player.whold1]] = atox[chC[this_player.whold1]] - ((10 - (Math.random() * 20)) * power);
atoy[chC[this_player.whold1]] = atoy[chC[this_player.whold1]] - ((10 - (Math.random() * 20)) * power);
}
}
}
function Plazma() {
pl = 0;
while (pl < pulsmax) {
if (_root.game["pl" + pl]._visible == true) {
pula = _root.game["pl" + pl];
pula._x = pula._x + (pula.spx * pspeed);
pula._y = pula._y + (pula.spy * pspeed);
pula.life++;
if (pula.life > 20) {
pula._visible = false;
}
i2 = 0;
while (i2 < playerstot) {
that_player2 = _root.game["player" + i2];
if (((((that_player2.dead && (pula._x < (that_player2.body._x + 400))) && (pula._x > (that_player2.body._x - 400))) && (pula._y < (that_player2.body._y + 400))) && (pula._y > (that_player2.body._y - 400))) || (((((!that_player2.dead) && (pula._x < (that_player2._x + 200))) && (pula._x > (that_player2._x - 200))) && (pula._y < (that_player2._y + 100))) && (pula._y > (that_player2._y - 300)))) {
if (((that_player2.hea <= 0) || (((_root.game["player" + pula.master].command == that_player2.command) && (that_player2.command != 0)) && (that_player2.command != 3))) || (_root.game["player" + pula.master].command != that_player2.command)) {
if (pula.master != i2) {
step = pspeed - 1;
while (step >= 0) {
if (that_player2.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
if (pula.power >= 0.2) {
type = 1;
if ((that_player2.hea <= 0) && that_player2.dead) {
tt = 0;
a = 0;
while (a < atotal) {
if ((aio[a] == true) || (aio[a] == false)) {
if (Dist2D(ax[a], ay[a], pula._x, pula._y) < 60) {
tt++;
}
}
a++;
}
a = 0;
while (a < atotal) {
if ((aio[a] == true) || (aio[a] == false)) {
if (Dist2D(ax[a], ay[a], pula._x, pula._y) < 60) {
atox[a] = atox[a] + ((pula.spx * pula.power) / tt);
atoy[a] = atoy[a] + ((pula.spy * pula.power) / tt);
aio[a] = true;
if (Dist2D(ax[a], ay[a], pula._x, pula._y) < 15) {
Blood(a, 30, aof[a]);
}
}
}
a++;
}
}
player_damage = 1;
if (i2 == 0) {
if (my_so.data.opt_bot == 2) {
player_damage = 0.5;
}
if (my_so.data.opt_bot == 1) {
player_damage = 0.25;
}
if ((my_so.data.opt_bot == 1) || (my_so.data.opt_bot == 2)) {
if (_root.game._currentframe < 5) {
if (that_player2.hea < 50) {
player_damage = player_damage * 0.5;
}
} else if (_root.game._currentframe < 7) {
if (that_player2.hea < 25) {
player_damage = player_damage * 0.5;
}
}
}
}
if (that_player2.head.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
that_player2.lastshot = "head";
if (that_player2.opentop) {
that_player2.hea = that_player2.hea - ((200 * pula.power) * player_damage);
} else if (i == 0) {
if (that_player2.w_upg7 == 0) {
that_player2.hea = that_player2.hea - ((70 * pula.power) * player_damage);
} else if (that_player2.w_upg7 == 1) {
that_player2.hea = that_player2.hea - ((40 * pula.power) * player_damage);
} else {
that_player2.hea = that_player2.hea - ((70 * pula.power) * player_damage);
}
} else {
that_player2.hea = that_player2.hea - ((110 * pula.power) * player_damage);
}
type = 2;
if (pula.master == 0) {
if (that_player2.lhea > 0) {
if (that_player2.hea <= 0) {
Hint2("Headshot!");
_root.stat_headshots = _root.stat_headshots + 1;
}
}
}
} else if (that_player2.body.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
that_player2.hea = that_player2.hea - ((30 * pula.power) * player_damage);
that_player2.lastshot = "body";
} else if (that_player2.arm1.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true) || that_player2.arm2.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
that_player2.hea = that_player2.hea - ((35 * pula.power) * player_damage);
that_player2.lastshot = "arm";
} else if (that_player2.legs.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
if ((that_player2.char == 2) && (that_player2.legtype != 9)) {
that_player2.hea = that_player2.hea - ((50 * pula.power) * player_damage);
} else {
that_player2.hea = that_player2.hea - ((40 * pula.power) * player_damage);
}
that_player2.lastshot = "leg";
} else if (that_player2.gun.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true) || that_player2.gun2.hitTest((pula._x - (pula.spx * step)) + _root.game._x, (pula._y - (pula.spy * step)) + _root.game._y, true)) {
type = 0;
}
if (i != 0) {
that_player2.tnoise = that_player2.tnoise + (10 * pula.power);
} else {
that_player2.tnoise = that_player2.tnoise + (0.5 * pula.power);
}
if (type != 0) {
if (that_player2.lastshot == "head") {
_root.HurtByType(pula._x - (pula.spx * step), pula._y - (pula.spy * step), that_player2.char, "shot_head", ((pula.spx * pula.power) * 3) * that_player2.easymove, ((pula.spy * pula.power) * 3) * that_player2.easymove);
} else {
_root.HurtByType(pula._x - (pula.spx * step), pula._y - (pula.spy * step), that_player2.char, "shot", ((pula.spx * pula.power) * 3) * that_player2.easymove, ((pula.spy * pula.power) * 3) * that_player2.easymove);
}
if ((that_player2.w_upg8 > 2) || (that_player2.legtype == 9)) {
type = 3;
}
if (type == 3) {
_root.Effect(pula._x - (pula.spx * step), pula._y - (pula.spy * step), 11);
} else {
Blood2(i2, 30, (pula._x - (pula.spx * step)) - that_player2._x, (pula._y - (pula.spy * step)) - that_player2._y);
}
} else {
_root.Effect(pula._x - (pula.spx * step), pula._y - (pula.spy * step), 11);
Effect(pula._x - (pula.spx * step), pula._y - (pula.spy * step), type, (pula.spx * pula.power) * 3, (pula.spy * pula.power) * 3);
}
if (that_player2.hea > 0) {
if (type != 0) {
that_player2.gotoAndPlay("hurt");
}
if ((that_player2.command != 3) || (_root.game["player" + pula.master].command != 3)) {
that_player2.hunt = pula.master;
}
that_player2.active = true;
} else if (!that_player2.dead) {
pula._x = pula._x - (pula.spx * step);
pula._y = pula._y - (pula.spy * step);
}
if ((that_player2.command == 1) || (_root.game["player" + pula.master].command == 1)) {
if (that_player2.hea > 0) {
i3 = 0;
while (i3 < playerstot) {
if ((i2 != i3) && (i3 != pula.master)) {
if (that_player2.command == _root.game["player" + i3].command) {
if (_root.game["player" + i3].hea > 0) {
if (_root.game["player" + i3].active == true) {
if (Math.abs(that_player2._x - _root.game["player" + i3]._x) < hscreenX) {
if (Math.abs(that_player2._y - _root.game["player" + i3]._y) < hscreenY) {
_root.game["player" + i3].hunt = pula.master;
}
}
}
}
}
}
i3++;
}
}
}
if (that_player2.hea > 0) {
that_player2.tox = that_player2.tox + (((pula.spx * 0.3) * pula.power) * that_player2.easymove);
that_player2.toy = that_player2.toy + (((pula.spy * 0.3) * pula.power) * that_player2.easymove);
}
} else {
pula._visible = false;
}
if ((that_player2.hea > 0) || that_player2.dead) {
pula.power = pula.power - (0.5 / that_player2.easymove);
if (pula.power < 0.2) {
pula._visible = false;
}
}
}
step--;
}
}
}
}
i2++;
}
x1 = pula._x;
y1 = pula._y;
x2 = pula._x - (pula.spx * pspeed);
y2 = pula._y - (pula.spy * pspeed);
b = 0;
while (b < boxestotal) {
if (_root.game.colmap["box" + b].hitTest(pula)) {
boxx = _root.game.colmap["box" + b];
rx = undefined;
ry = undefined;
sides = 0;
while (sides < 4) {
if (sides == 0) {
x3 = boxx._x;
y3 = boxx._y;
x4 = boxx._x + boxx._xscale;
y4 = boxx._y;
} else if (sides == 1) {
x3 = boxx._x + boxx._xscale;
y3 = boxx._y;
x4 = boxx._x + boxx._xscale;
y4 = boxx._y + boxx._yscale;
} else if (sides == 2) {
x3 = boxx._x;
y3 = boxx._y;
x4 = boxx._x;
y4 = boxx._y + boxx._yscale;
} else if (sides == 3) {
x3 = boxx._x;
y3 = boxx._y + boxx._yscale;
x4 = boxx._x + boxx._xscale;
y4 = boxx._y + boxx._yscale;
}
v = (((x2 - x1) * (y3 - y1)) + ((y2 - y1) * (x1 - x3))) / (((y2 - y1) * (x4 - x3)) - ((x2 - x1) * (y4 - y3)));
retux = x3 + ((x4 - x3) * v);
retuy = y3 + ((y4 - y3) * v);
if ((Math.min(pula._x, pula._x - ((pula.spx * pspeed) * 2)) - 1) <= retux) {
if ((Math.max(pula._x, pula._x - ((pula.spx * pspeed) * 2)) + 1) >= retux) {
if ((Math.min(pula._y, pula._y - ((pula.spy * pspeed) * 2)) - 1) <= retuy) {
if ((Math.max(pula._y, pula._y - ((pula.spy * pspeed) * 2)) + 2) >= retuy) {
if ((boxx._x - 1) <= retux) {
if (((boxx._x + 1) + boxx._xscale) >= retux) {
if ((boxx._y - 1) <= retuy) {
if (((boxx._y + 1) + boxx._yscale) >= retuy) {
if ((undefined == rx) || (Dist2D(rx, ry, pula._x - ((pula.spx * pspeed) * 3), pula._y - ((pula.spx * pspeed) * 3)) < Dist2D(retux, retuy, pula._x - ((pula.spx * pspeed) * 3), pula._y - ((pula.spx * pspeed) * 3)))) {
rx = retux;
ry = retuy;
}
}
}
}
}
}
}
}
}
sides++;
}
if (rx != undefined) {
Effect(rx, ry, 0);
Sprite(rx, ry, 0);
pula._visible = false;
}
}
b++;
}
if (pula._y > 1000) {
if (_root.game._currentframe == 11) {
Effect(pula._x, pula._y, 0);
}
pula._visible = false;
}
b = 0;
while (b < barrelstotal) {
if (_root.game["barrel" + b]._currentframe < 4) {
if (_root.game["barrel" + b].hitTest(pula)) {
_root.Effect(pula._x, pula._y, 11);
hur = Math.floor(pula.power * 2);
if (hur < 0) {
hur = 0;
}
if ((_root.game["barrel" + b]._currentframe + hur) > 3) {
_root.game["barrel" + b].gotoAndPlay(4);
} else {
_root.game["barrel" + b].gotoAndStop(_root.game["barrel" + b]._currentframe + hur);
}
pula.power = pula.power - 0.5;
if (pula.power < 0.2) {
pula._visible = false;
}
}
}
b++;
}
}
pl++;
}
}
gunpaused = true;
cbk = true;
var myListener2 = new Object();
myListener2.onKillFocus = function () {
trace("OUTTTT");
_root.gunpaused = false;
};
Stage.addListener(myListener2);
_root.onEnterFrame = function () {
if (_root.frm == 2) {
if ((Key.isDown(80) || (Key.isDown(32) && (!gunpaused))) || (Key.isDown(13) && (!gunpaused))) {
if (cbk) {
if (_root.gunpaused) {
gunpaused = false;
Mouse.show();
} else {
gunpaused = true;
_root.glow._visible = false;
_root.glow._alpha = 0;
Mouse.hide();
}
cbk = false;
}
} else {
cbk = true;
}
if (!gunpaused) {
_root.glow._visible = true;
if (_root.glow._alpha < 50) {
_root.glow._alpha = _root.glow._alpha + 1;
}
}
if (_root.gunpaused) {
if (grenadetim > 0) {
grenadetim--;
}
xmo = _xmouse;
ymo = _ymouse;
if (xmo < 0) {
xmo = 0;
}
if (ymo < 0) {
ymo = 0;
}
if (xmo > (hscreenX * 2)) {
xmo = hscreenX * 2;
}
if (ymo > (hscreenY * 2)) {
ymo = hscreenY * 2;
}
_root.game._x = Math.round(((((((-_root.game.player0.body._x) + hscreenX) - xmo) - _root.game.player0._x) + hscreenX) + (_root.game._x * 10)) / 11);
_root.game._y = Math.round(((((((-_root.game.player0.body._y) + hscreenY) - ymo) - _root.game.player0._y) + hscreenY) + (_root.game._y * 10)) / 11);
if ((_root.game._y - (hscreenY * 2)) < -1000) {
_root.game._y = (hscreenY * 2) - 1000;
}
hinttim = hinttim - 1;
if (hinttim < 0) {
_root.hint.text = "";
hinttim = 100;
}
activitytim = activitytim - 1;
if (activitytim < -1) {
activitytim = 10 + ((3 - _root.opt_bot) * 10);
}
Plazma();
_root.playerhealth.text = Math.max(Math.ceil((_root.game.player0.hea / playerhmax) * 100), 0);
_root.playergr.text = grenades;
if (_root.game.player0.hea > 0) {
if (_root.game.player0.hitTest(_root.game.end)) {
finish();
}
if (_root.game.player0.hea < playerhmax) {
b = 0;
while (b < heatotal) {
if (_root.game["medikit" + b]._currentframe == 1) {
if (_root.game.player0.hitTest(_root.game["medikit" + b])) {
_root.game["medikit" + b].gotoAndPlay(2);
_root.game.player0.hea = Math.min(playerhmax, _root.game.player0.hea + (playerhmax / 4));
}
}
b++;
}
}
}
if ((_root.game.player0.hea <= 0) || (_root.loose != 0)) {
_root.glow._visible = true;
_root.glow._alpha = _root.glow._alpha + 1;
if (_root.glow._alpha > 100) {
_root.glow._visible = false;
_root.whydead = "Your Warrior Has been killed!";
if (_root.loose == 1) {
_root.whydead = "Your Friend Has been killed!";
}
stpsnds();
_root.gotoAndStop(5);
}
}
i = 0;
while (i < playerstot) {
this_player = _root.game["player" + i];
if (this_player.hea > 0) {
if (this_player.active == true) {
an = this_player.body._rotation * ang_to_rad;
an2 = Math.atan2(this_player.body.headbone._y, this_player.body.headbone._x) - (Math.PI/2);
dis = Dist2D(this_player.body.headbone._x, this_player.body.headbone._y, 0, 0);
plx = Math.sin(an + an2) * dis;
ply = Math.cos(an + an2) * dis;
this_player.head._x = this_player.body._x - plx;
this_player.head._y = this_player.body._y + ply;
an = this_player.body._rotation * ang_to_rad;
an2 = Math.atan2(this_player.body.armbone._y, this_player.body.armbone._x) - (Math.PI/2);
dis = Dist2D(this_player.body.armbone._x, this_player.body.armbone._y, 0, 0);
plx = Math.sin(an + an2) * dis;
ply = Math.cos(an + an2) * dis;
this_player.arm1._x = this_player.body._x - plx;
this_player.arm1._y = this_player.body._y + ply;
this_player.arm2._x = (this_player.body._x - plx) + 2;
this_player.arm2._y = this_player.body._y + ply;
an = this_player.arm2._rotation * ang_to_rad;
an2 = Math.atan2(this_player.arm2.wea._y, this_player.arm2.wea._x) - (Math.PI/2);
i2 = 0;
while (i2 < playerstot) {
if (i != i2) {
that_player2 = _root.game["player" + i2];
if (that_player2.hea <= 0) {
mc = that_player2.center;
if (this_player.hitTest(ax[mc] + _root.game._x, ay[mc] + _root.game._y, true)) {
dis = Dist2D(0, 0, atox[mc], atoy[mc]);
if (dis > 5) {
cx = (this_player.tox + atox[mc]) / 2;
cy = (this_player.toy + atoy[mc]) / 2;
dis = Dist2D(this_player.tox, this_player.toy, atox[mc], atoy[mc]);
if (dis > 25) {
this_player.hea = this_player.hea - (dis * 2);
if (this_player.hea > 0) {
this_player.gotoAndPlay("Hurt");
}
}
this_player.tox = cx;
this_player.toy = cy;
atox[mc] = cx;
atoy[mc] = cy;
}
}
}
}
i2++;
}
}
}
if (this_player.active == false) {
if (this_player.hitTest(_root.visarea)) {
this_player.active = true;
} else if (this_player.hunt == -1) {
this_player.active = false;
this_player._visible = false;
}
} else {
if (!this_player._visible) {
this_player._visible = true;
}
if (this_player.hunt != -1) {
if (this_player.say_vis == undefined) {
if ((this_player.char == 0) && (Math.random() > 0.5)) {
this_player.sou.gotoAndStop(14);
} else {
this_player.sou.gotoAndStop(13);
}
if (this_player.myi == -1) {
rn = Math.floor(Math.random() * 3);
if (rn == 0) {
this_player.sou.gotoAndStop(30);
} else if (rn == 1) {
this_player.sou.gotoAndStop(31);
} else {
this_player.sou.gotoAndStop(32);
}
}
this_player.say_vis = false;
}
}
}
if (this_player.hea > 0) {
if (this_player.active == true) {
if (this_player.ranytim == undefined) {
this_player.ranytim = 0;
} else {
this_player.ranytim = this_player.ranytim + (Math.random() * 0.5);
}
if (this_player.rany50 == undefined) {
this_player.rany50 = Math.random() * 50;
} else {
this_player.rany50 = 25 + (Math.sin(this_player.ranytim) * 25);
}
i2 = 0;
while (i2 < playerstot) {
that_player2 = _root.game["player" + i2];
if (that_player2.active == true) {
if (that_player2.hea > 0) {
if (i != i2) {
if ((this_player.command != 0) || (that_player2.command != 0)) {
if (this_player._y > (that_player2._y - 100)) {
if (this_player._y < (that_player2._y + 100)) {
if (this_player._x > (that_player2._x - 40)) {
if (this_player._x < (that_player2._x + 40)) {
cx = (this_player._x + that_player2._x) / 2;
if (this_player._x > that_player2._x) {
this_player._x = cx + 20;
that_player2._x = cx - 20;
} else {
this_player._x = cx - 20;
that_player2._x = cx + 20;
}
}
}
}
}
}
}
}
}
i2++;
}
tarx = this_player._x + (this_player._xscale * 3);
tary = this_player._y + (Math.sin(this_player.ranytim * 0.3) * 75);
this_player._x = this_player._x + this_player.tox;
this_player._y = this_player._y + this_player.toy;
this_player.toy = this_player.toy + gravity;
if (this_player._y > 1000) {
this_player.lastshot = "body";
this_player.hea = 0;
this_player.getdown = true;
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 20), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 20), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 20), this_player.char, "fall");
if (this_player.toy > 10) {
this_player.toy = 10;
}
}
if (i != 0) {
if (this_player.hunt != -1) {
tarx = _root.game["player" + this_player.hunt]._x;
tary = (_root.game["player" + this_player.hunt]._y - 10) - this_player.rany50;
di = Math.abs(tarx - this_player._x);
if (this_player.expir == 1) {
if ((Math.random() > 0.4) || (di < 200)) {
tary = _root.game["player" + this_player.hunt]._y - 70;
} else {
tary = (_root.game["player" + this_player.hunt]._y - 10) - (Math.random() * 50);
}
}
di = Dist2D(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary);
pspx = (_root.game["player" + this_player.hunt].tox * (di / pspeed)) * 0.3;
pspy = (_root.game["player" + this_player.hunt].toy * (di / pspeed)) * 0.3;
tarx = tarx + pspx;
tary = tary + pspy;
if (!HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary)) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx - pspx, tary - pspy)) {
tarx = tarx - pspx;
tary = tary - pspy;
} else if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx - pspx, (tary - pspy) + 50)) {
tarx = tarx - pspx;
tary = tary - pspy;
tary = tary + 50;
} else if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx - pspx, (tary - pspy) - 50)) {
tarx = tarx - pspx;
tary = tary - pspy;
tary = tary - 50;
}
}
b = 0;
while (b < barrelstotal) {
if (_root.game["barrel" + b]._currentframe < 4) {
if (Dist2D(_root.game["player" + this_player.hunt]._x, _root.game["player" + this_player.hunt]._y - 40, _root.game["barrel" + b]._x, _root.game["barrel" + b]._y) < 100) {
if (Dist2D(this_player._x, this_player._y - 40, _root.game["barrel" + b]._x, _root.game["barrel" + b]._y) > 150) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, _root.game["barrel" + b]._x, _root.game["barrel" + b]._y)) {
tarx = _root.game["barrel" + b]._x;
tary = _root.game["barrel" + b]._y;
}
}
}
}
b++;
}
if (_root.game["player" + this_player.hunt].hea <= 0) {
if (Math.random() > 0.97) {
this_player.hunt = -1;
} else {
tarx = _root.game["player" + this_player.hunt].body._x;
tary = _root.game["player" + this_player.hunt].body._y;
}
}
} else if ((Math.random() > 0.95) || (this_player.expir == 1)) {
ran = 0;
while (ran < playerstot) {
if (this_player.hunt == -1) {
if (_root.game["player" + ran].command != this_player.command) {
if (_root.game["player" + ran].hea > 0) {
if (ran != i) {
if (_root.game["player" + ran].active == true) {
if ((Math.abs(_root.game["player" + ran]._x - this_player._x) < hscreenX) && (Math.abs(_root.game["player" + ran]._y - this_player._y) < hscreenY)) {
this_player.hunt = ran;
} else if (HTrace(this_player._x, this_player._y + this_player.head._y, _root.game["player" + ran]._x, _root.game["player" + ran]._y)) {
this_player.hunt = ran;
}
}
}
}
}
}
ran++;
}
}
} else {
tarx = _xmouse - _root.game._x;
tary = _ymouse - _root.game._y;
}
stand = false;
hup = false;
cantlift = false;
b = 0;
while (b < (boxestotal + barrelstotal)) {
if ((b < boxestotal) || (((b >= boxestotal) && (_root.game["barrel" + (b - boxestotal)]._currentframe < 4)) && (_root.game["barrel" + (b - boxestotal)].cols))) {
if (b < boxestotal) {
boxx = _root.game.colmap["box" + b];
} else {
boxx = _root.game["barrel" + (b - boxestotal)];
}
if (b < boxestotal) {
minx = boxx._x - 10;
maxx = (boxx._x + boxx._xscale) + 10;
miny = boxx._y + (this_player.sit * sitmax);
maxy = (boxx._y + boxx._yscale) + 82;
} else {
minx = boxx._x - 20;
maxx = boxx._x + 20;
miny = (boxx._y - 20) + (this_player.sit * sitmax);
maxy = (boxx._y + 20) + 82;
}
if ((((this_player._x > minx) && (this_player._x < maxx)) && (this_player._y > (miny - 10))) && (this_player._y < (maxy - 82))) {
hup = true;
}
if (this_player.sit != 0) {
if ((((this_player._x > minx) && (this_player._x < maxx)) && (this_player._y > (maxy - 5))) && (this_player._y < (maxy + 5))) {
cantlift = true;
}
}
if ((((this_player._x > minx) && (this_player._x < maxx)) && (this_player._y > miny)) && (this_player._y < maxy)) {
if (b < boxestotal) {
acx = (((boxx._x + (boxx._xscale / 2)) - (this_player._x - this_player.tox)) / (boxx._xscale + 20)) * 100;
acy = (((boxx._y + ((boxx._yscale + 82) / 2)) - (this_player._y - this_player.toy)) / (boxx._yscale + 82)) * 100;
} else {
acx = ((((minx + maxx) / 2) - (this_player._x - this_player.tox)) / 40) * 100;
acy = ((((miny + maxy) / 2) - (this_player._y - this_player.toy)) / 61) * 100;
}
if (this_player._y < (miny + 30)) {
acx = 1;
acy = 2;
}
if (Math.abs(acx) > Math.abs(acy)) {
this_player.lastshot = "all";
if (Math.abs(this_player.tox) > 16) {
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
if (i != 0) {
this_player.hea = this_player.hea - Math.abs((this_player.tox * this_player.tox) * 0.22);
} else {
this_player.hea = this_player.hea - ((Math.abs(this_player.tox) / 100) * playerhmax);
}
this_player.gotoAndPlay("hurt");
}
if (this_player.hea > 0) {
if (Math.abs(this_player.tox) < 6) {
this_player.tox = 0;
} else {
this_player.toy = this_player.toy * 0.5;
this_player.tox = this_player.tox * 0.5;
}
if (acx < 0) {
this_player._x = maxx + 1;
this_player.tox = Math.abs(this_player.tox) + 0.1;
} else {
this_player._x = minx - 1;
this_player.tox = (-Math.abs(this_player.tox)) - 0.1;
}
}
} else {
if (acy < 0) {
this_player.lastshot = "all";
} else {
this_player.lastshot = "body";
}
if (Math.abs(this_player.toy) > 15) {
this_player.falltim = 10;
}
if (Math.abs(this_player.toy) > 23) {
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
_root.HurtByType((this_player._x - 20) + (Math.random() * 40), this_player._y - (Math.random() * 80), this_player.char, "fall");
if (i != 0) {
this_player.hea = this_player.hea - Math.abs((this_player.toy * this_player.toy) * 0.19);
} else {
this_player.hea = this_player.hea - ((Math.abs(this_player.toy) / 100) * playerhmax);
}
this_player.gotoAndPlay("hurt");
this_player.lastshot = "body";
}
if (this_player.hea > 0) {
this_player.tox = this_player.tox * 0.5;
if (acy < 0) {
this_player.toy = this_player.toy * -0.5;
cantlift = true;
this_player._y = maxy + 2;
} else {
this_player.toy = 0;
stand = true;
this_player._y = miny;
}
}
}
}
}
b++;
}
walkok = false;
if (activitytim < 0) {
this_player.botaction = -1;
if ((i != 0) && (this_player.hunt != -1)) {
if (Dist2D(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary) < 600) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary)) {
this_player.botaction = 0;
}
}
}
}
if (activitytim < 0) {
if ((i != 0) && (this_player.hunt != -1)) {
if (this_player.botaction != 0) {
if (HTrace((200 + this_player._x) + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary)) {
this_player.botaction = 1;
}
}
if (this_player.botaction != 0) {
if (HTrace((-200 + this_player._x) + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary)) {
this_player.botaction = 2;
}
}
if (this_player.char != 2) {
if (this_player.botaction == -1) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), (this_player._y + this_player.gun._y) - 60, tarx, tary)) {
this_player.botaction = 3;
}
}
} else if (this_player.botaction == -1) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), (this_player._y + this_player.gun._y) - 150, tarx, tary)) {
this_player.botaction = 3;
}
}
if (this_player.botaction != 0) {
if (HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), (60 + this_player._y) + this_player.gun._y, tarx, tary)) {
this_player.botaction = 4;
}
}
pl = 0;
while (pl < pulsmax) {
if (_root.game["pl" + pl]._visible == true) {
pula = _root.game["pl" + pl];
if ((_root.game["player" + pula.master].command != this_player.command) || (this_player.hunt == pula.master)) {
if (pula._x > ((this_player._x - 20) - Math.abs((pula.spx * pspeed) * 20))) {
if (pula._x < ((this_player._x + 20) + Math.abs((pula.spx * pspeed) * 20))) {
if (pula._y > ((this_player._y - 90) - Math.abs((pula.spy * pspeed) * 20))) {
if (pula._y < ((this_player._y + 90) + Math.abs((pula.spy * pspeed) * 20))) {
x1 = pula._x;
y1 = pula._y;
x2 = pula._x + pula.spx;
y2 = pula._y + pula.spy;
if (Math.abs(pula.spx) > Math.abs(pula.spy)) {
x3 = this_player._x;
y3 = this_player._y;
x4 = this_player._x;
y4 = this_player._y - 83;
v = (((x2 - x1) * (y3 - y1)) + ((y2 - y1) * (x1 - x3))) / (((y2 - y1) * (x4 - x3)) - ((x2 - x1) * (y4 - y3)));
retux = x3 + ((x4 - x3) * v);
retuy = y3 + ((y4 - y3) * v);
if (((retux >= x3) || (retux >= x4)) && ((retux <= x3) || (retux <= x4))) {
if (((retuy >= y3) || (retuy >= y4)) && ((retuy <= y3) || (retuy <= y4))) {
if (retuy < ((y3 + y4) / 2)) {
this_player.botaction = 4;
} else {
this_player.botaction = 3;
}
}
}
} else {
x3 = this_player._x - 30;
y3 = this_player._y - 40;
x4 = this_player._x + 30;
y4 = this_player._y - 40;
v = (((x2 - x1) * (y3 - y1)) + ((y2 - y1) * (x1 - x3))) / (((y2 - y1) * (x4 - x3)) - ((x2 - x1) * (y4 - y3)));
retux = x3 + ((x4 - x3) * v);
retuy = y3 + ((y4 - y3) * v);
if (((retux >= x3) || (retux >= x4)) && ((retux <= x3) || (retux <= x4))) {
if (((retuy >= y3) || (retuy >= y4)) && ((retuy <= y3) || (retuy <= y4))) {
if (retux < ((x3 + x4) / 2)) {
this_player.botaction = 1;
} else {
this_player.botaction = 2;
}
}
}
}
}
}
}
}
}
}
pl++;
}
if ((this_player.botaction == 0) || (this_player.botaction == -1)) {
if (((Math.random() > 0.8) && (my_so.data.opt_bot == 2)) || ((Math.random() > 0.5) && (my_so.data.opt_bot == 3))) {
this_player.botaction = 1 + Math.floor(Math.random() * 4);
}
}
if ((this_player.botaction == 1) || (this_player.botaction == 2)) {
if (HTrace((this_player._x + ((this_player.gun._x * this_player._xscale) / 100)) + ((1.5 - this_player.botaction) * 200), this_player._y + this_player.gun._y, (this_player._x + ((this_player.gun._x * this_player._xscale) / 100)) + ((1.5 - this_player.botaction) * 200), (this_player._y + this_player.gun._y) + 400)) {
this_player.botaction = 4;
}
}
}
}
if (stand) {
gotone = true;
if (i == 0) {
i2 = 0;
while (i2 < playerstot) {
that_player2 = _root.game["player" + i2];
if (that_player2.dead) {
if (that_player2.gun._visible == true) {
if (this_player.hitTest(that_player2.gun)) {
if (_root.game.player0["w_upg" + that_player2.gun._currentframe] < that_player2["w_upg" + that_player2.gun._currentframe]) {
_root.gun_pickup.gotoAndStop(that_player2.gun._currentframe + 1);
_root.game.player0["w_upg" + that_player2.gun._currentframe] = that_player2["w_upg" + that_player2.gun._currentframe];
that_player2.gun._visible = false;
that_player2.gun2._visible = false;
if (that_player2.gun._currentframe <= 6) {
if (_root.game.player0.gun._currentframe < that_player2.gun._currentframe) {
_root.game.player0.gun.gotoAndStop(that_player2.gun._currentframe);
}
if (_root.game.player0.gun._currentframe == that_player2.gun._currentframe) {
_root.game.player0.gun.gotoAndStop(7);
_root.game.player0.gun.gotoAndStop(that_player2.gun._currentframe);
}
}
}
}
}
}
if (Key.isDown(69)) {
if (gotone && (i != i2)) {
if (that_player2.dead) {
if ((aio[that_player2.dead_arm] == true) || (aio[that_player2.dead_arm] == false)) {
cx = this_player._x + ((this_player._xscale / 100) * this_player.gun._x);
cy = this_player._y + this_player.gun._y;
dis1 = Dist2D(ax[that_player2.a_stand1], ay[that_player2.a_stand1], cx, cy);
dis2 = Dist2D(ax[that_player2.dead_arm2], ay[that_player2.dead_arm2], cx, cy);
if ((dis1 < 100) || (dis2 < 100)) {
that_player2.deadtime = 0;
gotone = false;
point = that_player2.a_stand1;
point2 = that_player2.dead_arm2;
cx = this_player._x + ((this_player._xscale / 100) * this_player.gun._x);
cy = this_player._y + this_player.gun._y;
if (((dis2 < 100) && (dis1 >= 100)) || (((dis2 < 100) && (dis1 < 100)) && (dis2 < dis1))) {
atox[point2] = atox[point2] - ((ax[point2] - cx) * 0.2);
atoy[point2] = atoy[point2] - ((ay[point2] - cy) * 0.2);
this_player.tox = this_player.tox + ((ax[point2] - cx) * 0.05);
this_player.toy = this_player.toy + ((ay[point2] - cy) * 0.05);
aio[point2] = true;
} else if (dis1 < 100) {
atox[point] = atox[point] - ((ax[point] - cx) * 0.3);
atoy[point] = atoy[point] - ((ay[point] - cy) * 0.3);
this_player.tox = this_player.tox + ((ax[point] - cx) * 0.05);
this_player.toy = this_player.toy + ((ay[point] - cy) * 0.05);
aio[point] = true;
}
}
}
}
}
}
i2++;
}
}
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || (this_player.botaction == 2)) {
this_player.tox = this_player.tox - (5 / (this_player.sit + 1));
if ((this_player.legs._currentframe <= 60) && ((this_player.legs._currentframe < 30) || (this_player.legs._currentframe > 50))) {
this_player.legs.gotoAndPlay("walk");
}
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || (this_player.botaction == 1)) {
this_player.tox = this_player.tox + (5 / (this_player.sit + 1));
if ((this_player.legs._currentframe <= 60) && ((this_player.legs._currentframe < 30) || (this_player.legs._currentframe > 50))) {
this_player.legs.gotoAndPlay("walk");
}
}
if ((((Key.isDown(32) || (Key.isDown(87))) || (Key.isDown(38))) && (i == 0)) || ((i != 0) && (this_player.botaction == 3))) {
this_player.toy = this_player.toy - (5 + (gravity * 4));
}
}
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (this_player.botaction == 2))) {
if (this_player.tox > -4) {
this_player.tox = this_player.tox - 0.1;
}
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (this_player.botaction == 1))) {
if (this_player.tox < 4) {
this_player.tox = this_player.tox + 0.1;
}
}
if ((i != 0) && (this_player.char == 2)) {
if (this_player.botaction == 3) {
if (this_player.jet != true) {
this_player.body.jet.gotoAndPlay("jet_on");
}
this_player.jet = true;
} else if (this_player._y < (tary - 150)) {
if (this_player.jet != false) {
this_player.body.jet.gotoAndPlay("jet_off");
}
this_player.jet = false;
}
}
}
if ((this_player.botaction == 4) || ((((this_player.botaction == -1) || (this_player.botaction == 0)) && (this_player.hea < 80)) && (this_player.hea > 30))) {
walkok = true;
}
if ((i != 0) && (this_player.char == 2)) {
if (this_player.jet) {
this_player.toy = this_player.toy * 0.9;
this_player.tox = this_player.tox * 0.9;
this_player.toy = this_player.toy - (gravity * 1.4);
}
}
if (i != 0) {
this_player.mtarx = tarx;
this_player.mtary = tary;
if (this_player.ltarx == undefined) {
this_player.ltarx = tarx;
this_player.ltary = tary;
}
if (my_so.data.opt_bot == 1) {
tarx = ((this_player.ltarx * 10) + tarx) / 11;
tary = ((this_player.ltary * 10) + tary) / 11;
} else if (my_so.data.opt_bot == 2) {
tarx = ((this_player.ltarx * 4) + tarx) / 5;
tary = ((this_player.ltary * 4) + tary) / 5;
} else {
tarx = ((this_player.ltarx * 4) + tarx) / 5;
tary = ((this_player.ltary * 4) + tary) / 5;
}
this_player.ltarx = tarx;
this_player.ltary = tary;
}
if (((((Key.isDown(13) || (Key.isDown(71))) || (Key.isDown(45))) || (Key.isDown(96))) || (Key.isDown(81))) && (i == 0)) {
if (grenadetim <= 0) {
if (grenades > 0) {
if ((this_player._currentframe < 21) || (this_player._currentframe > 25)) {
grenadetim = 20;
grenades = grenades - 1;
this_player.gotoAndPlay("fire");
rn = Math.random();
duplicateMovieClip (_root.game.grenad, "gr" + gtotal, 400 + gtotal);
an = Math.atan2(tarx - this_player._x, tary - this_player._y);
_root.game["gr" + gtotal]._x = this_player._x + ((this_player.gun._x * this_player._xscale) / 100);
_root.game["gr" + gtotal]._y = this_player._y + this_player.gun._y;
_root.game["gr" + gtotal].tox = (Math.sin(an) * 15) + this_player.tox;
_root.game["gr" + gtotal].toy = (Math.cos(an) * 15) + this_player.toy;
gtotal = gtotal + 1;
}
}
}
}
if (this_player.falltim > 0) {
this_player.falltim = this_player.falltim - 1;
}
tosit = 0;
if ((((((Key.isDown(16) || (Key.isDown(83))) || (Key.isDown(40))) && (i == 0)) || (this_player.falltim > 0)) || (walkok && (i != 0))) || (!hup)) {
tosit = 1;
} else {
tosit = -1;
}
if (cantlift) {
tosit = 1;
}
if (this_player.pain > 30) {
tosit = 1;
}
this_player.sit = this_player.sit + tosit;
if (this_player.sit > 2) {
this_player.sit = 2;
}
if (this_player.sit < 0) {
this_player.sit = 0;
}
if ((this_player.sit == 1) && (tosit == 1)) {
this_player.legs.gotoAndPlay("sitdown");
}
if ((this_player.sit == 1) && (tosit == -1)) {
this_player.legs.gotoAndPlay("situp");
}
an1 = (-Math.atan2((this_player._x + ((this_player.gun._x * this_player._xscale) / 100)) - tarx, (this_player._y + this_player.gun._y) - tary)) - (Math.PI/2);
if (Dist2D(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary) < 80) {
an1 = (-Math.atan2((this_player._x + ((this_player.arm1._x * this_player._xscale) / 100)) - tarx, (this_player._y + this_player.arm1._y) - tary)) - (Math.PI/2);
}
an1 = an1 + ((((Math.random() * this_player.tnoise) * 2) - this_player.tnoise) * 0.01);
an = (an1 / Math.PI) * 180;
TEMP = an1;
if (this_player._x < tarx) {
this_player._xscale = 100;
} else {
this_player._xscale = -100;
an = (-an) + 180;
}
if (i == 0) {
_root.playergun.gotoAndStop(this_player.gun._currentframe);
}
this_player.gun._rotation = an;
if (this_player.gun2._visible == true) {
an1B = (-Math.atan2((this_player._x + ((this_player.gun2._x * this_player._xscale) / 100)) - tarx, (this_player._y + this_player.gun2._y) - tary)) - (Math.PI/2);
if (Dist2D(this_player._x + ((this_player.gun2._x * this_player._xscale) / 100), this_player._y + this_player.gun2._y, tarx, tary) < 80) {
an1B = (-Math.atan2((this_player._x + ((this_player.arm2._x * this_player._xscale) / 100)) - tarx, (this_player._y + this_player.arm2._y) - tary)) - (Math.PI/2);
}
an1B = an1B + ((((Math.random() * this_player.tnoise) * 2) - this_player.tnoise) * 0.01);
anB = (an1B / Math.PI) * 180;
if (this_player._x < tarx) {
this_player._xscale = 100;
} else {
this_player._xscale = -100;
anB = (-anB) + 180;
}
this_player.gun2._rotation = anB;
}
if (this_player._xscale > 0) {
an3 = (an / 2) - 90;
} else {
an3 = (an / 2) + 90;
}
if ((this_player.tnoise > 0.1) || (this_player.tnoise < -0.1)) {
this_player.tnoise = this_player.tnoise * 0.9;
} else {
this_player.tnoise = 0;
}
if (this_player._xscale > 0) {
if ((an3 < -135) && (an3 >= -180)) {
an3 = -135;
}
if ((an3 > -45) || (an3 < -180)) {
an3 = -45;
}
} else {
if ((an3 > 315) || (an3 < 180)) {
an3 = 315;
}
if (an3 < 225) {
an3 = 225;
}
}
if (this_player.painmode == 0) {
this_player.arm1._rotation = (an3 + 21) - (this_player.pain * 0.8);
this_player.arm2._rotation = ((an3 + 21) + 2) + (this_player.pain * 0.3);
this_player.head._rotation = (an3 + 90) + this_player.pain;
this_player.gun1._rotation = this_player.gun1._rotation - (this_player.pain * 0.8);
if (this_player.gun2._visible == true) {
this_player.gun2._rotation = this_player.gun2._rotation + (this_player.pain * 0.3);
}
} else {
this_player.arm1._rotation = (an3 + 21) + (this_player.pain * 0.8);
this_player.arm2._rotation = ((an3 + 21) + 2) + (this_player.pain * 0.5);
this_player.head._rotation = (an3 + 90) - this_player.pain;
this_player.gun1._rotation = this_player.gun1._rotation + (this_player.pain * 0.8);
if (this_player.gun2._visible == true) {
this_player.gun2._rotation = this_player.gun2._rotation + (this_player.pain * 0.5);
}
}
an = this_player.arm1._rotation * ang_to_rad;
an2 = Math.atan2(this_player.arm1.wea._y, this_player.arm1.wea._x) - (Math.PI/2);
dis = Dist2D(this_player.arm1.wea._x, this_player.arm1.wea._y, 0, 0);
plx = Math.sin(an + an2) * dis;
ply = Math.cos(an + an2) * dis;
this_player.gun._x = this_player.arm1._x - plx;
this_player.gun._y = this_player.arm1._y + ply;
if (this_player.gun2._visible == true) {
an = this_player.arm2._rotation * ang_to_rad;
an2 = Math.atan2(this_player.arm2.wea._y, this_player.arm2.wea._x) - (Math.PI/2);
dis = Dist2D(this_player.arm2.wea._x, this_player.arm2.wea._y, 0, 0);
plx = Math.sin(an + an2) * dis;
ply = Math.cos(an + an2) * dis;
this_player.gun2._x = (this_player.arm2._x - plx) + 2;
this_player.gun2._y = (this_player.arm2._y + ply) - 1;
}
if (activitytim < 0) {
this_player.lastvis = HTrace(this_player._x + ((this_player.gun._x * this_player._xscale) / 100), this_player._y + this_player.gun._y, tarx, tary);
}
if (this_player.lhunt != this_player.hunt) {
this_player.lhunt = this_player.hunt;
this_player.active_time = 0;
} else {
this_player.active_time++;
}
if ((fire && (i == 0)) || (((i != 0) && (this_player.hunt != -1)) && (Dist2D(this_player.mtarx, this_player.mtary, tarx, tary) < 300))) {
if ((i == 0) || (((((i != 0) && (this_player.active_time > 1)) && ((Math.random() > 0.95) || ((Math.random() > 0.7) && (this_player.expir == 1)))) && (this_player.lastvis)) && ((Math.abs(tarx - this_player._x) < screenX) || ((this_player.expir == 1) && (Math.abs(tarx - this_player._x) < screenX))))) {
if ((this_player._currentframe < 21) || (this_player._currentframe > 25)) {
SHOT();
}
}
}
}
}
if (this_player.hea <= 0) {
if (this_player.dead == false) {
this_player.dead = true;
Kill(i);
} else {
if (this_player.jet) {
atox[this_player.dead_arm] = atox[this_player.dead_arm] - ((ax[this_player.dead_body] - ax[this_player.dead_arm]) * 0.3);
atoy[this_player.dead_arm] = atoy[this_player.dead_arm] - ((ay[this_player.dead_body] - ay[this_player.dead_arm]) * 0.3);
aio[this_player.dead_arm] = true;
this_player.hea = this_player.hea - 1;
if (this_player.hea < -500) {
this_player.jet = false;
this_player.body.jet.gotoAndPlay("jet_off");
}
}
if ((_root.opt_dis < 3) && (i != 0)) {
this_player.deadtime = this_player.deadtime + 1;
if (((this_player.deadtime > 200) && (_root.opt_dis == 2)) || ((this_player.deadtime > 70) && (_root.opt_dis == 1))) {
if (this_player._alpha > 0) {
this_player._alpha = this_player._alpha - 10;
} else {
this_player._visible = false;
this_player.active = false;
aio[this_player.dead_body] = 2;
this_player.unloadMovie();
}
}
}
}
}
if (this_player.active == true) {
if (this_player.hea > 0) {
this_player.pain = this_player.pain + (this_player.lhea - this_player.hea);
if (this_player.lhea != this_player.hea) {
this_player.painspeed = 0;
} else {
this_player.pain = this_player.pain - this_player.painspeed;
this_player.painspeed = this_player.painspeed + 5;
if (this_player.painspeed > 15) {
this_player.painspeed = 15;
}
}
if (this_player.pain > 45) {
this_player.pain = 45;
}
if (this_player.pain < 0) {
this_player.pain = 0;
this_player.painmode = Math.round(Math.random());
}
this_player.legs.upper1.gotoAndStop(this_player.legtype);
this_player.legs.upper2.gotoAndStop(this_player.legtype);
this_player.legs.lower1.gotoAndStop(this_player.legtype);
this_player.legs.lower2.gotoAndStop(this_player.legtype);
this_player.legs.middle1.gotoAndStop(this_player.legtype);
this_player.legs.middle2.gotoAndStop(this_player.legtype);
this_player.legs.toe.gotoAndStop(this_player.legtype);
} else {
this_player.legs.leg1.upper.gotoAndStop(this_player.legtype);
this_player.legs.leg2.upper.gotoAndStop(this_player.legtype);
this_player.legs.leg1.lower.gotoAndStop(this_player.legtype);
this_player.legs.leg2.lower.gotoAndStop(this_player.legtype);
this_player.legs.leg1.middle.gotoAndStop(this_player.legtype);
this_player.legs.leg2.middle.gotoAndStop(this_player.legtype);
this_player.legs.toe.gotoAndStop(this_player.legtype);
}
}
this_player.lhea = this_player.hea;
i++;
}
e = 0;
while (e < maxef) {
if (_root.game["p" + e]) {
if (_root.game["p" + e].kill == true) {
_root.game["p" + e].removeMovieClip();
}
}
e++;
}
Draw();
Physics();
if (_root.game.player0.hea != lhea) {
if ((lhea > 0) && (_root.game.player0.hea <= 0)) {
ang = (Math.random() * Math.PI) * 2;
_root.game._x = _root.game._x + (Math.sin(ang) * 200);
_root.game._y = _root.game._y + (Math.cos(ang) * 200);
if ((_root.game._y - (hscreenY * 2)) < -1000) {
_root.game._y = (hscreenY * 2) - 1000;
}
_root.Hint("<font color=\"#FFFF00\">Press SPACE for quick restart</font>");
}
}
if (_root.game.player0.hea <= 0) {
if (Key.isDown(32)) {
if (_root.game.player0.hea != undefined) {
stpsnds();
_root.gotoAndStop(5);
_root.gotoAndStop(3);
}
}
}
lhea = _root.game.player0.hea;
mdl = _root.game.player0.gun._currentframe;
cur = -1;
k = 0;
while (k < 6) {
if (_root["w" + k] == mdl) {
cur = k;
}
k++;
}
if ((cur >= 0) && (cur < 6)) {
if (((((Key.isDown(49) || (Key.isDown(50))) || (Key.isDown(51))) || (Key.isDown(52))) || (Key.isDown(53))) || (Key.isDown(54))) {
if (Key.getCode() >= 49) {
if (Key.getCode() <= 54) {
GN = -1;
k = 0;
while (k < 6) {
if (Key.getCode() == (49 + k)) {
GN = _root["w" + k];
}
k++;
}
if (_root.game.player0["w_upg" + GN] != -1) {
_root.game.player0.gun.gotoAndStop(GN);
my_so.data.lwea = GN;
}
CHK2WEAVIS(0);
}
}
}
}
if (Key.getCode() == 192) {
_root.console._visible = true;
_root.console.cons.text = "";
_root.console.cons.onSetFocus();
}
if (Key.getCode() == 13) {
_root.console.exec.onPress();
}
if (Key.getCode() == 27) {
_root.console._visible = false;
}
_root.gcur._x = _xmouse;
_root.gcur._y = _ymouse;
if (_root.game.player0.hea > 0) {
_root.gcur._xscale = Math.min(100 + (_root.game.player0.tnoise * 10), 300);
} else {
_root.gcur._xscale = 100;
}
_root.gcur._yscale = _root.gcur._xscale;
_root.gcur._alpha = 50 - (_root.game.player0.tnoise * 10);
if (_root.gcur._alpha < 10) {
_root.gcur._alpha = 10;
}
if (_root.gcur._alpha > 30) {
_root.gcur._alpha = 50;
}
_root.gcur.gotoAndStop(_root.game.player0.gun._currentframe);
if (_root.game.player0.hea > 0) {
if (my_so.data.bg_sou) {
if (_root.game.level_design.hitTest(_root.game.player0._x + _root.game._x, (_root.game.player0._y + _root.game._y) - 50, true)) {
if (_root.am_base_vol < 50) {
_root.am_base_vol = _root.am_base_vol + 2;
if (_root.game._currentframe < 11) {
am_base.setVolume(_root.am_base_vol);
am_falkok_base.setVolume(0);
} else {
am_base.setVolume(0);
am_falkok_base.setVolume(_root.am_base_vol);
}
}
if (_root.am_wind_vol > 0) {
_root.am_wind_vol = _root.am_wind_vol - 2;
am_wind.setVolume(_root.am_wind_vol);
}
} else {
if (_root.am_wind_vol < 50) {
_root.am_wind_vol = _root.am_wind_vol + 2;
am_wind.setVolume(_root.am_wind_vol);
}
if (_root.am_base_vol > 0) {
_root.am_base_vol = _root.am_base_vol - 2;
am_base.setVolume(_root.am_base_vol);
}
}
}
}
}
}
};
Mouse.hide();
_root.gcur.gotoAndStop(1);
_root.gcur._visible = true;
Mouse.removeListener(someListener);
someListener = new Object();
Mouse.addListener(someListener);
someListener.onMouseDown = function () {
fire = true;
};
someListener.onMouseUp = function () {
fire = false;
};
_root.w0 = 6;
_root.w1 = 1;
_root.w2 = 2;
_root.w3 = 3;
_root.w4 = 4;
_root.w5 = 5;
someListener.onMouseWheel = function (delta, scrollTarget) {
if (_root.game.player0.hea > 0) {
mdl = _root.game.player0.gun._currentframe;
cur = -1;
k = 0;
while (k < 6) {
if (_root["w" + k] == mdl) {
cur = k;
}
k++;
}
if ((cur >= 0) && (cur < 6)) {
cur = cur + (delta / Math.abs(delta));
while (((((_root.game.player0["w_upg" + cur] == -1) || (_root.game.player0["w_upg" + cur] == undefined)) || (isNaN(_root.game.player0["w_upg" + cur]))) || (cur < 0)) || (cur >= 6)) {
cur = cur + (delta / Math.abs(delta));
if (cur >= 6) {
cur = 0;
}
if (cur < 0) {
cur = 5;
}
}
_root.game.player0.gun.gotoAndStop(_root["w" + cur]);
my_so.data.lwea = _root["w" + cur];
CHK2WEAVIS(0);
}
}
};
Frame 4
if (_root.frm == 2) {
_root.money._visible = true;
_root.score._visible = true;
_root.stat_money = (_root.stat_kills * 7) + (_root.stat_headshots * 3);
my_so.data.nht = ((((((("KILLS: " + _root.stat_kills) + "\nHEADSHOTS: ") + _root.stat_headshots) + "\nSHOTS: ") + _root.stat_shots) + "\n<font color=\"#FFFFFF\">MONEY FOR COMPLETION THIS LEVEL: +$") + _root.stat_money) + "</font>";
if (_root.stat_shots < 1) {
_root.stat_shots = 1;
}
my_so.data["lvl_score" + my_so.data.lastlevel] = Math.round(((_root.stat_kills + _root.stat_headshots) * 100) * my_so.data.opt_bot);
if (my_so.data["lvl_money" + my_so.data.lastlevel] == undefined) {
my_so.data["lvl_money" + my_so.data.lastlevel] = _root.stat_money;
} else if (my_so.data["lvl_money" + my_so.data.lastlevel] < _root.stat_money) {
my_so.data["lvl_money" + my_so.data.lastlevel] = _root.stat_money;
}
_root.UpdateMoney();
_root.UpdateScore();
}
_root.frm = 3;
_root.resu.htmlText = my_so.data.nht;
_root.onEnterFrame = function () {
};
Mouse.show();
_root.gcur._visible = false;
if (_root.auto_buy == true) {
_root.auto_buy = false;
_root.fromshop = 4;
_root.gotoAndStop(9);
}
Frame 5
_root.frm = 4;
_root.money._visible = true;
_root.score._visible = true;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
_root.gcur._visible = false;
_root.UpdateScore();
_root.UpdateMoney();
_root.errortext.text = _root.whydead;
Frame 6
_root.frm = 5;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
_root.gcur._visible = false;
Frame 7
function CHN(num) {
to = Math.round((((_xmouse - 388) / 397) * 2) + 1);
if (num == 1) {
_root.opt_eff = to;
_root.param1.gotoAndStop(_root.opt_eff);
}
if (num == 2) {
_root.opt_bot = to;
_root.param2.gotoAndStop(_root.opt_bot);
}
if (num == 3) {
_root.opt_dis = to;
_root.param3.gotoAndStop(_root.opt_dis);
}
if (num == 4) {
_root.opt_vol = to;
_root.param4.gotoAndStop(_root.opt_vol);
}
my_so.data.opt_eff = _root.opt_eff;
my_so.data.opt_bot = _root.opt_bot;
my_so.data.opt_dis = _root.opt_dis;
my_so.data.opt_vol = _root.opt_vol;
}
_root.frm = 6;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
_root.param1.gotoAndStop(_root.opt_eff);
_root.param2.gotoAndStop(_root.opt_bot);
_root.param3.gotoAndStop(_root.opt_dis);
_root.param1.onPress = function () {
CHN(1);
};
_root.param2.onPress = function () {
CHN(2);
};
_root.param3.onPress = function () {
CHN(3);
};
_root.param4.onPress = function () {
CHN(4);
};
if (my_so.data.breaking) {
_root.chk1.gotoAndStop(1);
} else {
_root.chk1.gotoAndStop(2);
}
if (my_so.data.blood) {
_root.chk2.gotoAndStop(1);
} else {
_root.chk2.gotoAndStop(2);
}
if (my_so.data.bg_sou) {
_root.chk3.gotoAndStop(1);
} else {
_root.chk3.gotoAndStop(2);
}
if (my_so.data.low_q) {
_root.chk4.gotoAndStop(1);
} else {
_root.chk4.gotoAndStop(2);
}
_root.chk1.onPress = function () {
if (my_so.data.breaking) {
my_so.data.breaking = false;
} else {
my_so.data.breaking = true;
}
if (my_so.data.breaking) {
_root.chk1.gotoAndStop(1);
} else {
_root.chk1.gotoAndStop(2);
}
};
_root.chk2.onPress = function () {
if (my_so.data.blood) {
my_so.data.blood = false;
} else {
my_so.data.blood = true;
}
if (my_so.data.blood) {
_root.chk2.gotoAndStop(1);
} else {
_root.chk2.gotoAndStop(2);
}
};
_root.chk3.onPress = function () {
if (my_so.data.bg_sou) {
my_so.data.bg_sou = false;
} else {
my_so.data.bg_sou = true;
}
if (my_so.data.bg_sou) {
_root.chk3.gotoAndStop(1);
} else {
_root.chk3.gotoAndStop(2);
}
};
_root.chk4.onPress = function () {
if (my_so.data.low_q) {
my_so.data.low_q = false;
} else {
my_so.data.low_q = true;
}
if (my_so.data.low_q) {
_root.chk4.gotoAndStop(1);
} else {
_root.chk4.gotoAndStop(2);
}
};
_root.onEnterFrame = function () {
};
Frame 8
_root.frm = 7;
_root.money._visible = true;
_root.score._visible = true;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
i = 1;
while (i < 18) {
_root["lv" + i].numm.text = i;
_root["lv" + i].gotoAndStop(1);
if (i > my_so.data.lastlevel) {
_root["lv" + i]._alpha = 50;
} else {
_root["lv" + i].onPress = function () {
};
}
i++;
}
fire = false;
_root.onEnterFrame = function () {
i = 1;
while (i < 18) {
if (i <= my_so.data.lastlevel) {
if (_root["lv" + i].hitTest(_xmouse, _ymouse, false)) {
if (fire) {
_root["lv" + i].gotoAndStop(3);
} else {
_root["lv" + i].gotoAndStop(2);
}
} else {
_root["lv" + i].gotoAndStop(1);
}
}
i++;
}
};
someListener.onMouseDown = function () {
fire = true;
};
someListener.onMouseUp = function () {
fire = false;
i = 1;
while (i <= my_so.data.lastlevel) {
if (_root["lv" + i].hitTest(_xmouse, _ymouse, false)) {
_root.currentlevel = i;
_root.gotoAndStop(12);
}
i++;
}
};
Frame 9
function RebuildMenu(firstrb) {
i = 0;
while (i < 8) {
if (firstrb) {
if (i != 0) {
duplicateMovieClip (_root.lizt.item0, "item" + i, i);
}
}
_root.lizt["item" + i].onPress = function () {
};
_root.lizt["item" + i]._y = _root.lizt.item0._y + (22 * i);
_root.lizt["item" + i].gotoAndStop(1);
_root.lizt["item" + i].l.text = labl[i];
_root.lizt["item" + i].r.text = "";
if ((i > 5) && (my_so.data["weapon" + (i + 1)] < 1)) {
_root.lizt["item" + i].o.text = "Important";
} else {
_root.lizt["item" + i].o.text = "";
}
if (my_so.data["weapon" + (i + 1)] == -1) {
_root.lizt["item" + i].l.text = _root.lizt["item" + i].l.text + " (none)";
_root.lizt["item" + i].r.text = ("Buy ($" + buy[i]) + ")";
} else {
_root.lizt["item" + i].l.text = _root.lizt["item" + i].l.text + ((((" (" + (my_so.data["weapon" + (i + 1)] + 1)) + "/") + (mxlevel[i] + 1)) + " level)");
if (my_so.data["weapon" + (i + 1)] < mxlevel[i]) {
_root.lizt["item" + i].r.text = ((("Update to " + (my_so.data["weapon" + (i + 1)] + 2)) + " level ($") + level[i]) + ")";
}
}
COST = 0;
if (my_so.data["weapon" + (i + 1)] == -1) {
COST = buy[i];
} else if (my_so.data["weapon" + (i + 1)] < mxlevel[i]) {
COST = level[i];
}
_root.lizt["item" + i]._alpha = 50;
if (COST != 0) {
if ((_root.global_money - COST) >= 0) {
_root.lizt["item" + i]._alpha = 100;
}
}
i++;
}
_root.money.text = "Your Money: $" + _root.global_money;
}
_root.frm = 8;
_root.money._visible = true;
_root.score._visible = true;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
var labl = new Array("Pistol", "Rifle", "Shot-gun", "Rocket Launcher", "Plasma Cannon", "Electroshock", "Helmet", "Armor");
var buy = new Array(30, 70, 120, 220, 200, 10, 20, 20);
var level = new Array(30, 65, 70, 0, 100, 10, 40, 40);
var mxlevel = new Array(2, 2, 2, 0, 2, 0, 1, 4);
RebuildMenu(true);
fire = false;
_root.onEnterFrame = function () {
i = 0;
while (i < 8) {
if (_root.lizt["item" + i].hitTest(_xmouse, _ymouse, false)) {
if (fire) {
_root.lizt["item" + i].gotoAndStop(3);
} else {
_root.lizt["item" + i].gotoAndStop(2);
}
} else {
_root.lizt["item" + i].gotoAndStop(1);
}
i++;
}
};
someListener.onMouseDown = function () {
fire = true;
};
someListener.onMouseUp = function () {
fire = false;
i = 0;
while (i < 8) {
if (_root.lizt["item" + i].hitTest(_xmouse, _ymouse, false)) {
COST = 0;
if (my_so.data["weapon" + (i + 1)] == -1) {
COST = buy[i];
} else if (my_so.data["weapon" + (i + 1)] < mxlevel[i]) {
COST = level[i];
}
if (COST != 0) {
if ((_root.global_money - COST) >= 0) {
my_so.data.mmoney = my_so.data.mmoney + COST;
_root.UpdateMoney();
my_so.data["weapon" + (i + 1)] = my_so.data["weapon" + (i + 1)] + 1;
RebuildMenu(false);
}
}
}
i++;
}
};
Frame 10
_root.frm = 9;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
_root.main_music1.stop();
_root.main_music2.stop();
_root.main_music3.stop();
_root.main_music4.stop();
_root.main_music_credits.start(0, 1);
_root.onEnterFrame = function () {
if (_root.frm == 9) {
_root.mv.scrllr._y = _root.mv.scrllr._y - 1.3;
if (_root.mv.scrllr._y < -820) {
_root.main_music_credits.stop();
_root.main_music_credits.start((_root.main_music_credits.duration / 1000) - 1, 1);
_root.gotoAndStop(2);
}
}
};
Frame 11
_root.frm = 10;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
var main_music_credits = new Sound();
_root.main_music1.attachSound("track1");
_root.main_music2.attachSound("track2");
_root.main_music3.attachSound("track3");
_root.main_music4.attachSound("track4");
_root.main_music_credits.attachSound("credit_loop");
_root.main_music_credits.onSoundComplete = function () {
if (_root.my_so.data.music == 2) {
_root.main_music3.start(0, 1);
}
};
_root.visarea._visible = false;
_root.screenarea._visible = false;
_root.glow._alpha = 0;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
_root.UpdateMoney();
_root.UpdateScore();
_root.nick.text = _root.player_name;
Frame 12
_root.frm = 11;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
_root.visarea._visible = false;
_root.screenarea._visible = false;
_root.glow._alpha = 0;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
Frame 13
_root.frm = 12;
_root.money._visible = false;
_root.score._visible = false;
_root.stop();
Mouse.show();
_root.gcur._visible = false;
_root.visarea._visible = false;
_root.screenarea._visible = false;
_root.glow._alpha = 0;
_root.stop();
_root.onEnterFrame = function () {
};
Mouse.show();
var scoresCallback = function (result) {
if (!result.success) {
gotoAndStop (2);
} else {
var _local2 = 0;
while ((_local2 < result.list.length) && (_local2 < 12)) {
var _local4 = _local2 + 1;
if (_local2 != 0) {
duplicateMovieClip (_root.lizt2.item0, "item" + _local2, _local2);
}
_root.lizt2["item" + _local2]._y = 17 + (_local2 * 16);
_root.lizt2["item" + _local2].l.text = result.list[_local2].username;
_root.lizt2["item" + _local2].r.text = result.list[_local2].score;
if (_local2 == 11) {
_root.lizt2["item" + _local2].l.text = "...";
_root.lizt2["item" + _local2].r.text = "";
}
_local2++;
}
}
};
_root.kongregateScores.requestList(scoresCallback, this);
Frame 14
_root.frm = 13;
_root.videos.gotoAndStop(_root.currentlevel);
someListener.onMouseDown = function () {
if (_root.frm == 13) {
if (_root.currentlevel == 17) {
gotoAndStop (10);
} else {
gotoAndStop (3);
}
}
};
Frame 15
_root.frm = 14;
_root.onEnterFrame = function () {
};
loadfinished = true;
someListener.onMouseUp = function () {
if (_root.frm == 14) {
_root.gotoAndStop(11);
}
};
Symbol 10 Button
on (release) {
getURL ("http://www.coolbuddy.com/?cid=166", "_blank");
}
Symbol 15 MovieClip Frame 1
if (_root.showperc == true) {
this.txtt.htmlText = _root.loa.htmlText;
}
Symbol 16 MovieClip Frame 100
_root.showperc = true;
this.gotoAndPlay(60);
Symbol 978 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("3.0 as2");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 31 MovieClip Frame 5
this.stop();
Symbol 35 MovieClip Frame 5
this.stop();
Symbol 38 MovieClip Frame 20
this.stop();
Symbol 41 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 43 Button
on (release) {
_root.gotoAndStop(6);
}
Symbol 45 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 47 Button
on (release) {
_root.fromshop = 2;
_root.gotoAndStop(9);
}
Symbol 49 Button
on (release) {
_root.gotoAndStop(10);
}
Symbol 52 Button
on (release) {
_root.gotoAndStop(13);
}
Symbol 54 Button
on (release) {
getURL ("http://www.coolbuddy.com/?cid=166", "_blank");
}
Symbol 73 MovieClip Frame 1
_root.musics._alpha = 50;
_root.musics.onRollOver = function () {
_root.musics._alpha = 100;
};
_root.musics.onRollOut = function () {
_root.musics._alpha = 50;
};
_root.musics.useHandCursor = true;
_root.musics.onRelease = function () {
if (_root.musics._currentframe == 2) {
_root.musics.gotoAndStop(3);
} else {
_root.musics.gotoAndStop(2);
}
};
if (_root.my_so.data.music == 3) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
Symbol 73 MovieClip Frame 2
_root.my_so.data.music = 2;
_root.main_music1.stop();
_root.main_music1.start(0, 1);
Symbol 73 MovieClip Frame 3
_root.my_so.data.music = 3;
_root.main_music1.stop();
Symbol 80 MovieClip Frame 1
this.stop();
this._visible = false;
Symbol 84 MovieClip Frame 1
this.gotoAndStop(_root.currentlevel);
Symbol 88 MovieClip Frame 1
this._visible = false;
Symbol 99 MovieClip Frame 1
this.gotoAndStop(Math.floor(Math.random() * 9) + 1);
Symbol 150 MovieClip Frame 1
this.bloddy._visible = false;
this.bloddy2._visible = false;
Symbol 153 MovieClip Frame 2
if (this._parent.hea > 0) {
if (this._parent.sit == 2) {
this.gotoAndPlay("sitidle");
}
}
Symbol 153 MovieClip Frame 10
if (this._parent.hea > 0) {
this.gotoAndPlay("idle");
}
Symbol 153 MovieClip Frame 15
if (this._parent.hea > 0) {
this.gotoAndPlay("sitidle");
}
Symbol 153 MovieClip Frame 29
if (this._parent.hea > 0) {
if (this._parent.sit == 2) {
this.gotoAndPlay("sitidle");
} else {
this.gotoAndPlay("situp");
}
}
Symbol 153 MovieClip Frame 49
if (this._parent.hea > 0) {
this.gotoAndPlay("sitidle");
}
Symbol 153 MovieClip Frame 54
if (this._parent.hea > 0) {
this.gotoAndPlay("idle");
}
Symbol 153 MovieClip Frame 60
if (this._parent.hea > 0) {
if (this._parent.sit == 2) {
this.gotoAndPlay("sitwalk");
}
}
Symbol 153 MovieClip Frame 76
if (this._parent.hea > 0) {
this.gotoAndPlay("idle");
}
Symbol 162 MovieClip Frame 1
this.stop();
Symbol 173 MovieClip Frame 1
this.stop();
Symbol 173 MovieClip Frame 16
this.gotoAndStop(1);
Symbol 173 MovieClip Frame 30
this.gotoAndStop(1);
Symbol 185 MovieClip Frame 1
this.stop();
Symbol 196 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 1) {
this.upg1._visible = true;
} else {
this.upg1._visible = false;
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 2) {
this.upg2._visible = true;
} else {
this.upg2._visible = false;
}
Symbol 196 MovieClip Frame 6
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 2) {
this.gotoAndStop(1);
}
Symbol 196 MovieClip Frame 19
this.gotoAndStop(1);
Symbol 198 MovieClip Frame 1
this._visible = false;
Symbol 206 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 1) {
this.upg1._visible = true;
} else {
this.upg1._visible = false;
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 2) {
this.upg2._visible = true;
} else {
this.upg2._visible = false;
}
Symbol 206 MovieClip Frame 4
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 1) {
this.upg1._visible = true;
} else {
this.upg1._visible = false;
}
if (this._parent._parent["w_upg" + this._parent._currentframe] >= 2) {
this.upg2._visible = true;
} else {
this.upg2._visible = false;
}
Symbol 219 MovieClip Frame 16
gotoAndStop (1);
Symbol 226 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 226 MovieClip Frame 45
gotoAndStop (1);
Symbol 232 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 232 MovieClip Frame 40
gotoAndStop (1);
Symbol 239 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 239 MovieClip Frame 7
gotoAndStop (1);
Symbol 243 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 243 MovieClip Frame 5
gotoAndStop (1);
Symbol 246 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 246 MovieClip Frame 32
gotoAndStop (1);
Symbol 247 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 247 MovieClip Frame 10
gotoAndStop (1);
Symbol 250 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 250 MovieClip Frame 4
gotoAndStop (1);
Symbol 254 MovieClip Frame 1
if (this._currentframe == 1) {
this.stop();
}
Symbol 254 MovieClip Frame 25
gotoAndStop (1);
Symbol 255 MovieClip Frame 1
this.stop();
Symbol 283 MovieClip Frame 1
stop();
this.visible = false;
Symbol 283 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 4
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 6
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 10
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 11
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 12
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 13
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 14
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 20
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 21
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 22
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 23
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 24
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 25
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 30
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 31
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 32
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 35
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 36
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 37
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 38
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 39
this.gotoAndStop(1);
Symbol 283 MovieClip Frame 40
this.gotoAndStop(1);
Symbol 284 MovieClip Frame 20
gotoAndPlay (2);
Symbol 284 MovieClip Frame 21
this.head.emotion.gotoAndPlay("fire");
Symbol 284 MovieClip Frame 23
gotoAndPlay (2);
Symbol 284 MovieClip Frame 26
if (this.hea > 0) {
this.head.emotion.gotoAndPlay("hurt");
if (this.myi == 0) {
this.sou.gotoAndStop(Math.round((Math.random() * 3) + 20));
} else if (this.myi == -1) {
this.sou.gotoAndStop(Math.round((Math.random() * 3) + 35));
} else {
this.sou.gotoAndStop(Math.round((Math.random() * 3) + 2));
}
}
Symbol 284 MovieClip Frame 32
gotoAndPlay (2);
Symbol 284 MovieClip Frame 48
gotoAndPlay (2);
Symbol 297 MovieClip Frame 1
this.kill = false;
del = (Math.random() * 0.9) - 0.25;
this.tox = this.tox * del;
this.toy = this.toy * del;
this.tox = this.tox + ((Math.random() * 6) - 3);
this.toy = this.toy + ((Math.random() * 6) - 4);
if (Math.random() > 0.9) {
this.tox = this.tox + ((Math.random() * 16) - 6);
this.toy = this.toy + ((Math.random() * 12) - 10);
}
this._xscale = 100 + (Math.random() * 50);
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
this.rspeed = (Math.random() * 30) - 15;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if ((!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this._rotation = this._rotation + this.rspeed;
this.toy = this.toy + _root.gravity;
}
}
};
if (!_root.my_so.data.blood) {
this._visible = false;
}
Symbol 297 MovieClip Frame 50
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 308 MovieClip Frame 1
Symbol 308 MovieClip Frame 2
C_L = _root.game.colmap.hitTest((this._x - 20) + _root.game._x, this._y + _root.game._y, true);
C_R = _root.game.colmap.hitTest((this._x + 20) + _root.game._x, this._y + _root.game._y, true);
C_T = _root.game.colmap.hitTest(this._x + _root.game._x, (this._y - 20) + _root.game._y, true);
C_B = _root.game.colmap.hitTest(this._x + _root.game._x, (this._y + 20) + _root.game._y, true);
if (((C_L || (C_R)) || (C_B)) || (C_T)) {
P_X = 0;
P_Y = 0;
if (C_L != C_R) {
P_Y = 0;
if (C_L) {
P_X = 1;
} else {
P_X = -1;
}
} else {
P_X = 0;
if (C_B) {
P_Y = -1;
} else {
P_Y = 1;
}
}
k = 0;
while (k < ((_root.opt_eff * 0.5) + 1)) {
_root.Effect(this._x, this._y, 7, (5 - (Math.random() * 10)) + (P_X * 5), (5 - (Math.random() * 10)) + (P_Y * 5));
k++;
}
} else {
_root.Effect(this._x, this._y, 7);
}
Symbol 308 MovieClip Frame 11
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 313 MovieClip Frame 1
this.kill = false;
this.tox = (Math.random() * 6) - 3;
this.toy = ((-Math.random()) * 2) - 2;
this.rspeed = (Math.random() * 30) - 15;
this.gotoAndStop(1);
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (this.disabled != true) {
if (((this._currentframe == 1) && (!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true))) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this.toy = this.toy + _root.gravity;
} else {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this.toy = this.toy + _root.gravity;
if (this._currentframe == 1) {
this.gotoAndPlay(3);
this._x = this._x - this.tox;
this._y = this._y - this.toy;
this.toy = (-this.toy) * 0.5;
}
}
this._rotation = this._rotation + this.rspeed;
}
}
};
Symbol 313 MovieClip Frame 3
this.rspeed = this.rspeed + ((Math.random() * 90) - 45);
Symbol 313 MovieClip Frame 21
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 315 MovieClip Frame 1
this.kill = false;
this.tox = (Math.random() * 6) - 3;
this.toy = ((-Math.random()) * 2) - 2;
this.rspeed = (Math.random() * 30) - 15;
this.gotoAndStop(1);
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (this.disabled != true) {
if (((this._currentframe == 1) && (!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true))) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this.toy = this.toy + 0.5;
} else {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this.toy = this.toy + 0.5;
if (this._currentframe == 1) {
this._x = this._x - this.tox;
this._y = this._y - this.toy;
this.gotoAndPlay(3);
this.toy = (-this.toy) * 0.25;
}
}
this._rotation = this._rotation + this.rspeed;
}
}
};
Symbol 315 MovieClip Frame 3
this.rspeed = this.rspeed + ((Math.random() * 60) - 30);
Symbol 315 MovieClip Frame 21
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 338 MovieClip Frame 1
this._rotation = Math.random() * 360;
Symbol 338 MovieClip Frame 9
this.stop();
Symbol 340 MovieClip Frame 1
if ((this + "") != "_level0.game.grenad") {
this.masterpoint = _root.CreatePoint(this._x, this._y, this.tox, this.toy, 0, true);
around[this.masterpoint] = true;
this.onEnterFrame = function () {
if (_root.gunpaused) {
this._x = _root.ax[this.masterpoint];
this._y = _root.ay[this.masterpoint];
this._rotation = this._x;
}
};
} else {
this._visible = false;
this.stop();
}
Symbol 340 MovieClip Frame 15
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
if (_root.game["player" + i].hunt != -1) {
if (i != 0) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 300) {
_root.game["player" + i].active = true;
if (_root.game["player" + i]._x > this._x) {
_root.game["player" + i].botaction = 1;
} else {
_root.game["player" + i].botaction = 2;
}
}
}
}
}
i++;
}
Symbol 340 MovieClip Frame 30
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
if (i != 0) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 300) {
_root.game["player" + i].active = true;
if (_root.game["player" + i]._x > this._x) {
_root.game["player" + i].botaction = 1;
} else {
_root.game["player" + i].botaction = 2;
}
}
}
}
i++;
}
Symbol 340 MovieClip Frame 43
a = 0;
while (a < _root.atotal) {
if (this.masterpoint != a) {
if ((_root.aio[a] == true) || (_root.aio[a] == false)) {
dis = _root.Dist2D(this._x, this._y, _root.ax[a], _root.ay[a]);
if (dis < 200) {
_root.aio[a] = true;
_root.atox[a] = _root.atox[a] - ((((this._x - _root.ax[a]) / dis) * (200 - dis)) * 0.5);
_root.atoy[a] = _root.atoy[a] - ((((this._y - _root.ay[a]) / dis) * (200 - dis)) * 0.5);
}
}
}
a++;
}
_root.aio[this.masterpoint] = 2;
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
if ((_root.game["player" + i].command != 0) || (i == 0)) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 200) {
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "barrel");
_root.game["player" + i].hea = _root.game["player" + i].hea - 260;
_root.game["player" + i].lastshot = "all";
_root.game["player" + i].lastshot = "body";
if (_root.game["player" + i].hea > 0) {
_root.game["player" + i].gotoAndPlay("hurt");
}
_root.game["player" + i].tox = _root.game["player" + i].tox - (((((this._x - _root.game["player" + i]._x) / dis) * (250 - dis)) * 0.2) * _root.game["player" + i].easymove);
_root.game["player" + i].toy = _root.game["player" + i].toy - (((((this._y - (_root.game["player" + i]._y - 60)) / dis) * (250 - dis)) * 0.2) * _root.game["player" + i].easymove);
_root.game["player" + i].hunt = 0;
}
if (dis < 400) {
_root.game["player" + i].active = true;
}
}
}
i++;
}
b = 0;
while (b < _root.barrelstotal) {
if (_root.game["barrel" + b]._currentframe < 4) {
if (_root.Dist2D(this._x, this._y, _root.game["barrel" + b]._x, _root.game["barrel" + b]._y) < 200) {
_root.game["barrel" + b].gotoAndPlay(4);
}
}
b++;
}
Symbol 340 MovieClip Frame 53
this.stop();
this.onEnterFrame = 0;
Symbol 347 MovieClip Frame 1
this.kill = false;
del = (Math.random() * 0.8) - 0.3;
this.tox = this.tox * del;
this.toy = this.toy * del;
this.tox = this.tox + ((Math.random() * 6) - 3);
this.toy = this.toy + ((Math.random() * 6) - 4);
if (Math.random() > 0.9) {
this.tox = this.tox + ((Math.random() * 16) - 6);
this.toy = this.toy + ((Math.random() * 12) - 10);
}
this._xscale = 100 + (Math.random() * 50);
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
this.rspeed = (Math.random() * 30) - 15;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if ((!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this._rotation = this._rotation + this.rspeed;
this.toy = this.toy + _root.gravity;
}
}
};
if (!_root.my_so.data.blood) {
this._visible = false;
}
Symbol 347 MovieClip Frame 30
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 352 MovieClip Frame 1
this.gotoAndStop(_root.currentlevel);
Symbol 357 MovieClip Frame 1
if ((this + "") != "_level0.game.rocket") {
this.masterpoint = _root.CreatePoint(this._x + this.tox, this._y + this.toy, this.tox + this.tox2, this.toy + this.toy2);
this.masterpoint2 = _root.CreatePoint(this._x - this.tox, this._y - this.toy, this.tox + this.tox2, this.toy + this.toy2);
_root.Connect(this.masterpoint, this.masterpoint2, 0, 20);
this.lasdis = _root.Dist2D(_root.atoy[this.masterpoint] + _root.atoy[this.masterpoint2], _root.atox[this.masterpoint] + _root.atox[this.masterpoint2], 0, 0);
powe = 0;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (this._currentframe < 102) {
this.dis = _root.Dist2D(_root.atoy[this.masterpoint] + _root.atoy[this.masterpoint2], _root.atox[this.masterpoint] + _root.atox[this.masterpoint2], 0, 0);
if (Math.abs(this.dis - this.lasdis) > 15) {
this.gotoAndPlay(102);
}
this.lasdis = this.dis;
this._x = _root.ax[this.masterpoint];
this._y = _root.ay[this.masterpoint];
this._rotation = 90 + ((Math.atan2(_root.ay[this.masterpoint] - _root.ay[this.masterpoint2], _root.ax[this.masterpoint] - _root.ax[this.masterpoint2]) / Math.PI) * 180);
if (this._currentframe < 40) {
_root.atox[this.masterpoint2] = _root.atox[this.masterpoint2] + ((_root.ax[this.masterpoint] - _root.ax[this.masterpoint2]) * 0.2);
_root.atoy[this.masterpoint2] = _root.atoy[this.masterpoint2] + ((_root.ay[this.masterpoint] - _root.ay[this.masterpoint2]) * 0.2);
_root.atox[this.masterpoint] = _root.atox[this.masterpoint] + ((_root.ax[this.masterpoint] - _root.ax[this.masterpoint2]) * 0.2);
_root.atoy[this.masterpoint] = _root.atoy[this.masterpoint] + ((_root.ay[this.masterpoint] - _root.ay[this.masterpoint2]) * 0.2);
}
b = 0;
while (b < _root.barrelstotal) {
if (_root.game["barrel" + b]._currentframe < 4) {
if (_root.game["barrel" + b].hitTest(_root.ax[this.masterpoint] + _root.game._x, _root.ay[this.masterpoint] + _root.game._y, true)) {
_root.atox[this.masterpoint] = 0;
_root.atoy[this.masterpoint] = 0;
}
}
b++;
}
i = 0;
while (i < _root.playerstot) {
if (i != this.master) {
if ((((_root.game["player" + this.master].command == _root.game["player" + i].command) && (_root.game["player" + i].command != 0)) && (_root.game["player" + i].command != 3)) || (_root.game["player" + this.master].command != _root.game["player" + i].command)) {
if ((_root.game["player" + i].hitTest(_root.ax[this.masterpoint] + _root.game._x, _root.ay[this.masterpoint] + _root.game._y, true) || (_root.game["player" + i].hitTest(_root.ax[this.masterpoint2] + _root.game._x, _root.ay[this.masterpoint2] + _root.game._y, true))) || (_root.game["player" + i].hitTest(((_root.ax[this.masterpoint2] + _root.ax[this.masterpoint]) / 2) + _root.game._x, ((_root.ay[this.masterpoint2] + _root.ay[this.masterpoint]) / 2) + _root.game._y, true))) {
_root.atox[this.masterpoint] = 0;
_root.atoy[this.masterpoint] = 0;
}
}
}
i++;
}
}
}
};
} else {
this._visible = false;
this.stop();
}
Symbol 357 MovieClip Frame 101
this.gotoAndStop(110);
Symbol 357 MovieClip Frame 102
a = 0;
while (a < _root.atotal) {
if ((_root.aio[a] == true) || (_root.aio[a] == false)) {
dis = _root.Dist2D(this._x, this._y, _root.ax[a], _root.ay[a]);
if (dis < 100) {
_root.aio[a] = true;
_root.atox[a] = _root.atox[a] - ((((this._x - _root.ax[a]) / dis) * (100 - dis)) * 0.5);
_root.atoy[a] = _root.atoy[a] - ((((this._y - _root.ay[a]) / dis) * (100 - dis)) * 0.5);
}
}
a++;
}
_root.aio[this.masterpoint] = 2;
_root.aio[this.masterpoint2] = 2;
C_L = _root.game.colmap.hitTest((_root.ax[this.masterpoint] - 20) + _root.game._x, _root.ay[this.masterpoint] + _root.game._y, true);
C_R = _root.game.colmap.hitTest((_root.ax[this.masterpoint] + 20) + _root.game._x, _root.ay[this.masterpoint] + _root.game._y, true);
C_T = _root.game.colmap.hitTest(_root.ax[this.masterpoint] + _root.game._x, (_root.ay[this.masterpoint] - 20) + _root.game._y, true);
C_B = _root.game.colmap.hitTest(_root.ax[this.masterpoint] + _root.game._x, (_root.ay[this.masterpoint] + 20) + _root.game._y, true);
if (((C_L || (C_R)) || (C_B)) || (C_T)) {
P_X = 0;
P_Y = 0;
if (C_L != C_R) {
P_Y = 0;
if (C_L) {
P_X = 1;
} else {
P_X = -1;
}
} else {
P_X = 0;
if (C_B) {
P_Y = -1;
} else {
P_Y = 1;
}
}
k = 0;
while (k < 5) {
_root.Effect(this._x, this._y, 7, (10 - (Math.random() * 20)) + (P_X * 10), (10 - (Math.random() * 20)) + (P_Y * 10));
k++;
}
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
if (((i == this.master) || (((_root.game["player" + this.master].command == _root.game["player" + i].command) && (_root.game["player" + i].command != 0)) && (_root.game["player" + i].command != 3))) || (_root.game["player" + this.master].command != _root.game["player" + i].command)) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 100) {
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "rocket", 15 - (Math.random() * 30), 15 - (Math.random() * 30));
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "rocket", 15 - (Math.random() * 30), 15 - (Math.random() * 30));
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "rocket", 15 - (Math.random() * 30), 15 - (Math.random() * 30));
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "rocket", 15 - (Math.random() * 30), 15 - (Math.random() * 30));
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "rocket", 15 - (Math.random() * 30), 15 - (Math.random() * 30));
pwr = _root.Dist2D(_root.atox[this.masterpoint2], _root.atoy[this.masterpoint2], 0, 0);
if (i == 0) {
if (_root.my_so.data.opt_bot == 1) {
_root.game["player" + i].hea = _root.game["player" + i].hea - (50 + ((pwr / 37) * 100));
}
if (_root.my_so.data.opt_bot == 2) {
_root.game["player" + i].hea = _root.game["player" + i].hea - (100 + ((pwr / 37) * 100));
}
if (_root.my_so.data.opt_bot == 3) {
_root.game["player" + i].hea = _root.game["player" + i].hea - (150 + ((pwr / 37) * 100));
}
} else {
_root.game["player" + i].hea = _root.game["player" + i].hea - (200 + ((pwr / 37) * 100));
}
_root.game["player" + i].lastshot = "all";
if (_root.game["player" + i].hea > 0) {
_root.game["player" + i].gotoAndPlay("hurt");
}
_root.game["player" + i].tox = _root.game["player" + i].tox + ((_root.atox[this.masterpoint2] * 0.5) * _root.game["player" + i].easymove);
_root.game["player" + i].toy = _root.game["player" + i].toy + ((_root.atoy[this.masterpoint2] * 0.5) * _root.game["player" + i].easymove);
_root.game["player" + i].hunt = this.master;
}
if (dis < 300) {
_root.game["player" + i].active = true;
}
}
}
i++;
}
b = 0;
while (b < _root.barrelstotal) {
if (_root.game["barrel" + b]._currentframe < 4) {
if (_root.Dist2D(this._x, this._y, _root.game["barrel" + b]._x, _root.game["barrel" + b]._y) < 100) {
_root.game["barrel" + b].gotoAndPlay(4);
}
}
b++;
}
Symbol 357 MovieClip Frame 110
this.stop();
this.onEnterFrame = 0;
Symbol 360 MovieClip Frame 1
Symbol 360 MovieClip Frame 21
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 365 MovieClip Frame 1
if ((this + "") != "_level0.game.rock") {
this.kill = false;
if (this.tox == undefined) {
this.tox = (Math.random() * 10) - 5;
this.toy = (Math.random() * 10) - 5;
}
this.rspeed = (Math.random() * 30) - 15;
this.out = false;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (this.disabled != true) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this.toy = this.toy + _root.gravity;
if (this.out) {
if (_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) {
this._y = this._y - this.toy;
this.toy = this.toy * -0.3;
this.tox = this.tox * 0.5;
}
} else if (!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) {
this.out = true;
}
this._rotation = this._rotation + this.rspeed;
}
}
};
}
Symbol 365 MovieClip Frame 16
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
Symbol 404 MovieClip Frame 1
stop();
this.visible = false;
Symbol 404 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 4
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 6
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 10
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 11
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 12
this.gotoAndStop(1);
Symbol 404 MovieClip Frame 13
this.gotoAndStop(1);
Symbol 406 MovieClip Frame 20
gotoAndPlay (2);
Symbol 406 MovieClip Frame 23
gotoAndPlay (2);
Symbol 406 MovieClip Frame 26
if (this.hea > 0) {
this.sou.gotoAndStop(Math.round((Math.random() * 3) + 2));
}
Symbol 406 MovieClip Frame 32
gotoAndPlay (2);
Symbol 406 MovieClip Frame 48
gotoAndPlay (2);
Symbol 413 MovieClip Frame 1
this.stop();
Symbol 419 MovieClip Frame 1
this.stop();
Symbol 419 MovieClip Frame 15
this.gotoAndPlay("jet_idle");
Symbol 423 MovieClip Frame 1
this.stop();
Symbol 427 MovieClip Frame 1
this.stop();
Symbol 443 MovieClip Frame 1
stop();
this.visible = false;
Symbol 443 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 4
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 6
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 8
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 10
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 11
this.gotoAndStop(1);
Symbol 443 MovieClip Frame 12
this.gotoAndStop(1);
Symbol 444 MovieClip Frame 20
gotoAndPlay (2);
Symbol 444 MovieClip Frame 23
gotoAndPlay (2);
Symbol 444 MovieClip Frame 26
if (this.hea > 0) {
this.sou.gotoAndStop(Math.round((Math.random() * 3) + 2));
}
Symbol 444 MovieClip Frame 32
gotoAndPlay (2);
Symbol 444 MovieClip Frame 48
gotoAndPlay (2);
Symbol 455 MovieClip Frame 1
this.kill = false;
del = (Math.random() * 1.8) - 0.5;
this.tox = this.tox * del;
this.toy = this.toy * del;
this.tox = this.tox + ((Math.random() * 6) - 3);
this.toy = this.toy + ((Math.random() * 6) - 4);
if (Math.random() > 0.9) {
this.tox = this.tox + ((Math.random() * 16) - 6);
this.toy = this.toy + ((Math.random() * 12) - 10);
}
this._xscale = 100 + (Math.random() * 50);
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
this.rspeed = (Math.random() * 30) - 15;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if ((!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this._rotation = this._rotation + this.rspeed;
this.toy = this.toy + _root.gravity;
}
}
};
if (!_root.my_so.data.blood) {
this._visible = false;
}
Symbol 455 MovieClip Frame 50
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 460 MovieClip Frame 1
this.kill = false;
del = (Math.random() * 0.8) - 0.3;
this.tox = this.tox * del;
this.toy = this.toy * del;
this.tox = this.tox + ((Math.random() * 6) - 3);
this.toy = this.toy + ((Math.random() * 6) - 4);
this._xscale = 100 + (Math.random() * 50);
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if ((!_root.game.colmap.hitTest(this._x + _root.game._x, this._y + _root.game._y, true)) && (this._y < 1000)) {
this._x = this._x + this.tox;
this._y = this._y + this.toy;
this._rotation = ((-Math.atan2(this.tox, this.toy)) / Math.PI) * 180;
this.toy = this.toy + _root.gravity;
} else {
this.gotoAndStop(10);
}
}
};
Symbol 460 MovieClip Frame 10
this.stop();
this.kill = true;
this._x = 0;
this._y = 0;
this.onEnterFrame = 0;
Symbol 463 MovieClip Frame 1
if ((this + "") != "_level0.game.rate") {
this.stop();
this._visible = false;
}
this._alpha = 0;
Symbol 463 MovieClip Frame 2
this.inr.htmlText = this.cnt;
this.sp = true;
this.stop();
this.onEnterFrame = function () {
this._y = this._y - 1;
if (this.sp) {
if (this._alpha < 100) {
this._alpha = this._alpha + 30;
} else {
this._alpha = 100;
}
this.sp = false;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 30;
} else {
this.onEnterFrame = 0;
this._visible = false;
}
};
Symbol 476 MovieClip Frame 1
this.stop();
Symbol 476 MovieClip Frame 5
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
Symbol 476 MovieClip Frame 6
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
Symbol 476 MovieClip Frame 7
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
this._rotation = Math.random() * 360;
Symbol 476 MovieClip Frame 8
this._rotation = Math.random() * 360;
Symbol 476 MovieClip Frame 9
this._rotation = Math.random() * 360;
Symbol 515 MovieClip Frame 1
this.stop();
this.cols = true;
Symbol 515 MovieClip Frame 4
function rer() {
return((Math.random() * 6) - 3);
}
globspeedx = -2 + (Math.random() * 4);
globspeedy = -5 + (Math.random() * 4);
this.point3 = _root.CreatePoint(this._x - 10, this._y + 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point4 = _root.CreatePoint(this._x + 10, this._y + 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point5 = _root.CreatePoint(this._x - 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
this.point6 = _root.CreatePoint(this._x + 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
ii = 0;
while (ii < 2) {
_root.Connect(this.point3, this.point4, 0);
_root.Connect(this.point5, this.point6, 0);
_root.Connect(this.point3, this.point6, 0);
_root.Connect(this.point4, this.point5, 0);
_root.Connect(this.point3, this.point5, 0);
_root.Connect(this.point4, this.point6, 0);
ii++;
}
this.point3b = _root.CreatePoint(this._x - 10, this._y - 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point4b = _root.CreatePoint(this._x + 10, this._y - 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point5b = _root.CreatePoint(this._x - 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
this.point6b = _root.CreatePoint(this._x + 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
ii = 0;
while (ii < 2) {
_root.Connect(this.point3b, this.point4b, 0);
_root.Connect(this.point5b, this.point6b, 0);
_root.Connect(this.point3b, this.point6b, 0);
_root.Connect(this.point4b, this.point5b, 0);
_root.Connect(this.point3b, this.point5b, 0);
_root.Connect(this.point4b, this.point6b, 0);
ii++;
}
_root.Connect(this.point3, this.point3b, 1);
_root.Connect(this.point4, this.point4b, 1);
gl = new Array();
i = 1;
while (i <= 6) {
gl[i] = _root.CreatePoint(this._x + this["glass" + i]._x, this._y + this["glass" + i]._y, this.rer() * 4, this.rer() * 2);
i++;
}
this.onEnterFrame = function () {
spok = true;
if ((((_root.aio[this.point3] == 1) || (_root.aio[this.point4] == 1)) || (_root.aio[this.point5] == 1)) || (_root.aio[this.point6] == 1)) {
spok = false;
cx = (_root.ax[this.point5] + _root.ax[this.point6]) / 2;
cy = (_root.ay[this.point5] + _root.ay[this.point6]) / 2;
this.b1._x = cx - this._x;
this.b1._y = cy - this._y;
this.b1._rotation = (((-Math.atan2(_root.ax[this.point3] - _root.ax[this.point4], _root.ay[this.point3] - _root.ay[this.point4])) / Math.PI) * 180) - 90;
}
if ((((_root.aio[this.point3b] == 1) || (_root.aio[this.point4b] == 1)) || (_root.aio[this.point5b] == 1)) || (_root.aio[this.point6b] == 1)) {
spok = false;
cx = (_root.ax[this.point5b] + _root.ax[this.point6b]) / 2;
cy = (_root.ay[this.point5b] + _root.ay[this.point6b]) / 2;
this.b2._x = cx - this._x;
this.b2._y = cy - this._y;
this.b2._rotation = (((-Math.atan2(_root.ax[this.point3b] - _root.ax[this.point4b], _root.ay[this.point3b] - _root.ay[this.point4b])) / Math.PI) * 180) + 90;
}
i = 1;
while (i <= 6) {
if (_root.aio[gl[i]] == 1) {
spok = false;
this["glass" + i]._x = _root.ax[gl[i]] - this._x;
this["glass" + i]._y = _root.ay[gl[i]] - this._y;
this["glass" + i]._rotation = this["glass" + i]._x * 3;
if (Math.abs(_root.atox[gl[i]]) < 0.9) {
if (Math.abs(_root.atoy[gl[i]]) < 0.9) {
_root.aio[gl[i]] = 0;
}
}
} else if (this["glass" + i]._alpha > 0) {
this["glass" + i]._alpha = this["glass" + i]._alpha - 5;
spok = false;
} else {
this["glass" + i]._visible = false;
}
i++;
}
if (spok) {
if (!this.cacheAsBitmap) {
this.cacheAsBitmap = true;
}
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
this._visible = false;
this.onEnterFrame = 1;
}
}
};
a = 0;
while (a < _root.atotal) {
if ((_root.aio[a] == true) || (_root.aio[a] == false)) {
dis = _root.Dist2D(this._x, this._y, _root.ax[a], _root.ay[a]);
if (dis < 200) {
_root.aio[a] = true;
this.p = 0.3;
if ((((((((a == this.point3) || (a == this.point4)) || (a == this.point5)) || (a == this.point6)) || (a == this.point3b)) || (a == this.point4b)) || (a == this.point5b)) || (a == this.point6b)) {
this.p = 0.05 + (Math.random() * 0.05);
}
_root.atox[a] = _root.atox[a] - ((((this._x - _root.ax[a]) / dis) * (200 - dis)) * this.p);
_root.atoy[a] = _root.atoy[a] - ((((this._y - _root.ay[a]) / dis) * (200 - dis)) * this.p);
}
}
a++;
}
b22 = 0;
while (b22 < _root.barrelstotal) {
if (_root.game["barrel" + b22]._currentframe < 4) {
if (_root.Dist2D(_root.game["barrel" + b22]._x, _root.game["barrel" + b22]._y, this._x, this._y) < 150) {
_root.game["barrel" + b22].gotoAndPlay(4);
}
}
b22++;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 200) {
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "barrel");
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "barrel");
_root.game["player" + i].hea = _root.game["player" + i].hea - 200;
if (_root.game["player" + i].hea > 0) {
_root.game["player" + i].gotoAndPlay("hurt");
}
_root.game["player" + i].lastshot = "all";
_root.game["player" + i].tox = _root.game["player" + i].tox - (((((this._x - _root.game["player" + i]._x) / dis) * (300 - dis)) * 0.15) * _root.game["player" + i].easymove);
_root.game["player" + i].toy = _root.game["player" + i].toy - (((((this._y - (_root.game["player" + i]._y - 60)) / dis) * (300 - dis)) * 0.15) * _root.game["player" + i].easymove);
}
}
i++;
}
Symbol 515 MovieClip Frame 15
this.stop();
Symbol 539 MovieClip Frame 1
this.stop();
this.cols = true;
Symbol 539 MovieClip Frame 4
function rer() {
return((Math.random() * 6) - 3);
}
globspeedx = -2 + (Math.random() * 4);
globspeedy = -5 + (Math.random() * 4);
this.point3 = _root.CreatePoint(this._x - 10, this._y + 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point4 = _root.CreatePoint(this._x + 10, this._y + 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point5 = _root.CreatePoint(this._x - 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
this.point6 = _root.CreatePoint(this._x + 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
ii = 0;
while (ii < 2) {
_root.Connect(this.point3, this.point4, 0);
_root.Connect(this.point5, this.point6, 0);
_root.Connect(this.point3, this.point6, 0);
_root.Connect(this.point4, this.point5, 0);
_root.Connect(this.point3, this.point5, 0);
_root.Connect(this.point4, this.point6, 0);
ii++;
}
this.point3b = _root.CreatePoint(this._x - 10, this._y - 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point4b = _root.CreatePoint(this._x + 10, this._y - 18, globspeedx + this.rer(), globspeedy + this.rer());
this.point5b = _root.CreatePoint(this._x - 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
this.point6b = _root.CreatePoint(this._x + 10, this._y, globspeedx + this.rer(), globspeedy + this.rer());
ii = 0;
while (ii < 2) {
_root.Connect(this.point3b, this.point4b, 0);
_root.Connect(this.point5b, this.point6b, 0);
_root.Connect(this.point3b, this.point6b, 0);
_root.Connect(this.point4b, this.point5b, 0);
_root.Connect(this.point3b, this.point5b, 0);
_root.Connect(this.point4b, this.point6b, 0);
ii++;
}
_root.Connect(this.point5, this.point5b, 4);
_root.Connect(this.point6, this.point6b, 4);
_root.Connect(this.point3, this.point3b, 1);
_root.Connect(this.point4, this.point4b, 1);
gl = new Array();
i = 1;
while (i <= 6) {
gl[i] = _root.CreatePoint(this._x + this["glass" + i]._x, this._y + this["glass" + i]._y, this.rer() * 4, this.rer() * 2);
i++;
}
this.onEnterFrame = function () {
spok = true;
if ((((_root.aio[this.point3] == 1) || (_root.aio[this.point4] == 1)) || (_root.aio[this.point5] == 1)) || (_root.aio[this.point6] == 1)) {
spok = false;
cx = (_root.ax[this.point5] + _root.ax[this.point6]) / 2;
cy = (_root.ay[this.point5] + _root.ay[this.point6]) / 2;
this.b1._x = cx - this._x;
this.b1._y = cy - this._y;
this.b1._rotation = (((-Math.atan2(_root.ax[this.point3] - _root.ax[this.point4], _root.ay[this.point3] - _root.ay[this.point4])) / Math.PI) * 180) - 90;
}
if ((((_root.aio[this.point3b] == 1) || (_root.aio[this.point4b] == 1)) || (_root.aio[this.point5b] == 1)) || (_root.aio[this.point6b] == 1)) {
spok = false;
cx = (_root.ax[this.point5b] + _root.ax[this.point6b]) / 2;
cy = (_root.ay[this.point5b] + _root.ay[this.point6b]) / 2;
this.b2._x = cx - this._x;
this.b2._y = cy - this._y;
this.b2._rotation = (((-Math.atan2(_root.ax[this.point3b] - _root.ax[this.point4b], _root.ay[this.point3b] - _root.ay[this.point4b])) / Math.PI) * 180) + 90;
}
i = 1;
while (i <= 6) {
if (_root.aio[gl[i]] == 1) {
spok = false;
this["glass" + i]._x = _root.ax[gl[i]] - this._x;
this["glass" + i]._y = _root.ay[gl[i]] - this._y;
this["glass" + i]._rotation = this["glass" + i]._x * 3;
if (_root.aio[gl[i]] != 2) {
i3 = 1;
while (i3 < _root.playerstot) {
if (_root.game["player" + i3].hea > 0) {
if (_root.game["player" + i3].hitTest(_root.ax[gl[i]] + _root.game._x, _root.ay[gl[i]] + _root.game._y, true)) {
_root.HurtByType(_root.ax[gl[i]], _root.ay[gl[i]], _root.game["player" + i3].char, "glass");
_root.game["player" + i3].hea = _root.game["player" + i3].hea - 10;
if (_root.game["player" + i3].hea > 0) {
_root.game["player" + i3].gotoAndPlay("hurt");
}
_root.game["player" + i3].lastshot = "all";
_root.aio[gl[i]] = 2;
}
}
i3++;
}
}
if (Math.abs(_root.atox[gl[i]]) < 0.9) {
if (Math.abs(_root.atoy[gl[i]]) < 0.9) {
_root.aio[gl[i]] = 2;
}
}
} else if (this["glass" + i]._alpha > 0) {
this["glass" + i]._alpha = this["glass" + i]._alpha - 5;
spok = false;
} else {
this["glass" + i]._visible = false;
}
i++;
}
if (spok) {
if (!this.cacheAsBitmap) {
this.cacheAsBitmap = true;
}
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
this._visible = false;
this.onEnterFrame = 1;
}
}
};
a = 0;
while (a < _root.atotal) {
if ((_root.aio[a] == true) || (_root.aio[a] == false)) {
dis = _root.Dist2D(this._x, this._y, _root.ax[a], _root.ay[a]);
if (dis < 150) {
_root.aio[a] = true;
this.p = 0.3;
if ((((((((a == this.point3) || (a == this.point4)) || (a == this.point5)) || (a == this.point6)) || (a == this.point3b)) || (a == this.point4b)) || (a == this.point5b)) || (a == this.point6b)) {
this.p = 0.05 + (Math.random() * 0.05);
}
_root.atox[a] = _root.atox[a] - ((((this._x - _root.ax[a]) / dis) * (150 - dis)) * this.p);
_root.atoy[a] = _root.atoy[a] - ((((this._y - _root.ay[a]) / dis) * (150 - dis)) * this.p);
}
}
a++;
}
b22 = 0;
while (b22 < _root.barrelstotal) {
if (_root.game["barrel" + b22]._currentframe < 4) {
if (_root.Dist2D(_root.game["barrel" + b22]._x, _root.game["barrel" + b22]._y, this._x, this._y) < 150) {
_root.game["barrel" + b22].gotoAndPlay(4);
}
}
b22++;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
dis = _root.Dist2D(this._x, this._y, _root.game["player" + i]._x, _root.game["player" + i]._y - 60);
if (dis < 100) {
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), (_root.game["player" + i]._y - 80) + (Math.random() * 80), _root.game["player" + i].char, "barrel");
_root.game["player" + i].hea = _root.game["player" + i].hea - 150;
if (_root.game["player" + i].hea > 0) {
_root.game["player" + i].gotoAndPlay("hurt");
}
_root.game["player" + i].lastshot = "all";
_root.game["player" + i].tox = _root.game["player" + i].tox - (((((this._x - _root.game["player" + i]._x) / dis) * (200 - dis)) * 0.15) * _root.game["player" + i].easymove);
_root.game["player" + i].toy = _root.game["player" + i].toy - (((((this._y - (_root.game["player" + i]._y - 60)) / dis) * (200 - dis)) * 0.15) * _root.game["player" + i].easymove);
}
}
i++;
}
Symbol 539 MovieClip Frame 15
this.stop();
Symbol 553 MovieClip Frame 1
this.stop();
Symbol 553 MovieClip Frame 11
this.stop();
Symbol 560 MovieClip Frame 1
this.stop();
Symbol 560 MovieClip Frame 2
this.gotoAndPlay(4);
Symbol 560 MovieClip Frame 3
this.gotoAndPlay(4);
Symbol 560 MovieClip Frame 4
k = 0;
while (k < 10) {
_root.Effect(this._x, this._y, 7, (Math.random() * 20) - 10, Math.random() * 10);
k++;
}
gl = new Array();
i = 1;
while (i <= 6) {
gl[i] = _root.CreatePoint(this._x + this["glass" + i]._x, this._y + this["glass" + i]._y, (Math.random() * 20) - 10, Math.random() * 10);
i++;
}
this.onEnterFrame = function () {
spok = true;
i = 1;
while (i <= 6) {
if (_root.aio[gl[i]] == 1) {
spok = false;
this["glass" + i]._x = _root.ax[gl[i]] - this._x;
this["glass" + i]._y = _root.ay[gl[i]] - this._y;
this["glass" + i]._rotation = this["glass" + i]._x * 3;
if (_root.aio[gl[i]] != 2) {
i3 = 1;
while (i3 < _root.playerstot) {
if (_root.game["player" + i3].hea > 0) {
if (_root.game["player" + i3].hitTest(_root.ax[gl[i]] + _root.game._x, _root.ay[gl[i]] + _root.game._y, true)) {
_root.HurtByType(_root.ax[gl[i]], _root.ay[gl[i]], _root.game["player" + i3].char, "glass");
_root.game["player" + i3].hea = _root.game["player" + i3].hea - 10;
if (_root.game["player" + i3].hea > 0) {
_root.game["player" + i3].gotoAndPlay("hurt");
}
_root.game["player" + i3].lastshot = "all";
_root.aio[gl[i]] = 2;
}
}
i3++;
}
}
if (Math.abs(_root.atox[gl[i]]) < 0.4) {
if (Math.abs(_root.atoy[gl[i]]) < 0.4) {
_root.aio[gl[i]] = 2;
}
}
} else if (this["glass" + i]._alpha > 0) {
this["glass" + i]._alpha = this["glass" + i]._alpha - 5;
spok = false;
} else {
this["glass" + i]._visible = false;
}
i++;
}
if (spok) {
this.onEnterFrame = 1;
}
};
Symbol 560 MovieClip Frame 7
this.stop();
Symbol 564 MovieClip Frame 1
if ((_root._currentframe != 3) || (_root.game._currentframe != 1)) {
this.stop();
}
Symbol 564 MovieClip Frame 2
_root.game.player0._alpha = 0;
this.onEnterFrame = function () {
_root.game.player0._x = this._x;
_root.game.player0._y = this._y;
};
Symbol 564 MovieClip Frame 11
this.onEnterFrame = function () {
if (_root.game.player0._alpha < 100) {
_root.game.player0._alpha = _root.game.player0._alpha + 10;
} else {
_root.game.player0._alpha = 100;
}
};
Symbol 564 MovieClip Frame 22
this.stop();
_root.game.player0._alpha = 100;
this.onEnterFrame = 0;
this.unload();
Symbol 566 MovieClip Frame 1
this._visible = false;
Symbol 571 MovieClip Frame 1
this.stop();
Symbol 571 MovieClip Frame 30
this.stop();
Symbol 571 MovieClip Frame 60
this.stop();
Symbol 571 MovieClip Frame 95
this.stop();
Symbol 590 MovieClip Frame 1
this.stop();
this.onEnterFrame = function () {
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].hea > 0) {
if (_root.game["player" + i].hitTest(this)) {
if (_root.game["player" + i]._x > (this._x - 30)) {
if (_root.game["player" + i]._x < (this._x + 30)) {
if (_root.game["player" + i]._x > this._x) {
_root.game["player" + i]._x = this._x + 30;
} else {
_root.game["player" + i]._x = this._x - 30;
}
if (Math.abs(_root.game["player" + i].tox) > 8) {
if (this._currentframe < 3) {
this.gotoAndStop(this._currentframe + 1);
} else if (this._currentframe == 3) {
this.gotoAndPlay(4);
}
}
_root.game["player" + i].tox = (-_root.game["player" + i].tox) * 0.5;
}
}
}
}
i++;
}
};
Symbol 590 MovieClip Frame 4
this._xscale = 100;
this._yscale = 100;
gl = new Array();
i = 1;
while (i <= 14) {
gl[i] = _root.CreatePoint(this._x + this["glass" + i]._x, this._y + this["glass" + i]._y, (Math.random() * 20) - 10, Math.random() * 10);
this["glass" + i].ori = this["glass" + i]._rotation;
i++;
}
this.onEnterFrame = function () {
spok = true;
i = 1;
while (i <= 14) {
if (_root.aio[gl[i]] == 1) {
spok = false;
this["glass" + i]._x = _root.ax[gl[i]] - this._x;
this["glass" + i]._y = _root.ay[gl[i]] - this._y;
this["glass" + i]._rotation = (this["glass" + i]._x * 3) + this["glass" + i].ori;
if (_root.aio[gl[i]] != 2) {
i3 = 1;
while (i3 < _root.playerstot) {
if (_root.game["player" + i3].hea > 0) {
if (_root.game["player" + i3].hitTest(_root.ax[gl[i]] + _root.game._x, _root.ay[gl[i]] + _root.game._y, true)) {
_root.HurtByType(_root.ax[gl[i]], _root.ay[gl[i]], _root.game["player" + i3].char, "glass");
_root.game["player" + i3].hea = _root.game["player" + i3].hea - 20;
if (_root.game["player" + i3].hea > 0) {
_root.game["player" + i3].gotoAndPlay("hurt");
}
_root.game["player" + i3].lastshot = "all";
_root.aio[gl[i]] = 2;
}
}
i3++;
}
}
if (Math.abs(_root.atox[gl[i]]) < 0.4) {
if (Math.abs(_root.atoy[gl[i]]) < 0.4) {
_root.aio[gl[i]] = 2;
}
}
} else if (this["glass" + i]._alpha > 0) {
this["glass" + i]._alpha = this["glass" + i]._alpha - 5;
spok = false;
} else {
this["glass" + i]._visible = false;
}
i++;
}
if (spok) {
this.onEnterFrame = 1;
}
};
Symbol 590 MovieClip Frame 7
this.stop();
Symbol 611 MovieClip Frame 1
this.stop();
Symbol 661 MovieClip Frame 4
if ((_root.fire && (_root.game.player0._alpha < 10)) && (_root.game.player0.hea > 0)) {
if (_root.fire) {
an1 = (_root.game.jeep.rl._rotation / 180) * Math.PI;
spx = ((Math.cos(an1) * 10) / 100) * _root.game.player0._xscale;
spy = ((Math.sin(an1) * 10) / 100) * _root.game.player0._xscale;
_root.Fire(_root.game.jeep._x + _root.game.jeep.rl._x, _root.game.jeep._y + _root.game.jeep.rl._y, 0, 4, spx, spy);
}
this.gotoAndPlay(5);
} else {
this.gotoAndPlay(3);
}
Symbol 661 MovieClip Frame 8
this.gotoAndPlay(1);
Symbol 683 MovieClip Frame 1
this.stop();
Symbol 683 MovieClip Frame 3
this.gotoAndStop(1);
Symbol 683 MovieClip Frame 4
this.play();
k = 0;
while (k < 10) {
_root.Effect(this._x, this._y, 7, 20 - (Math.random() * 40), 20 - (Math.random() * 40));
k++;
}
Symbol 683 MovieClip Frame 13
this.stop();
Symbol 689 MovieClip Frame 1
this.stop();
Symbol 689 MovieClip Frame 2
_root.Hint2("Radio: Technics has detected. Scanning...");
Symbol 689 MovieClip Frame 3
_root.Hint2("Radio: Alert. Enemy technics detected. Destroy this...");
Symbol 689 MovieClip Frame 4
_root.Hint2("Radio: Activate full power!..");
Symbol 689 MovieClip Frame 5
_root.Hint2("Radio: Warning! Tactical retreat!..");
Symbol 741 MovieClip Frame 1
this.stop();
Symbol 762 MovieClip Frame 19
if (this.dead == false) {
if (this.run == false) {
this.gotoAndPlay("idle");
}
} else {
this.gotoAndPlay("die");
}
Symbol 762 MovieClip Frame 49
if (this.dead == false) {
if ((Math.abs(this._x - _root.game.player0._x) > 400) && ((Math.abs(this._x - _root.game.player1._x) > 400) || (_root.game.player1.hea <= 0))) {
if (this.run) {
this.gotoAndPlay("run_loop");
} else {
this.gotoAndPlay("idle");
}
}
} else {
this.gotoAndPlay("die");
}
Symbol 762 MovieClip Frame 76
if (this.dead == false) {
if ((Math.abs(this._x - _root.game.player0._x) > 400) && ((Math.abs(this._x - _root.game.player1._x) > 400) || (_root.game.player1.hea <= 0))) {
this.gotoAndPlay("run_loop");
} else {
this.gotoAndPlay("fire");
}
} else {
this.gotoAndPlay("die");
}
Symbol 762 MovieClip Frame 77
Symbol 762 MovieClip Frame 86
_root.Effect(this._x + this.leg_lower2._x, this._y + this.leg_lower2._y, 11);
_root.Effect(this._x + this.leg_lower2._x, this._y + this.leg_lower2._y, 11);
_root.Effect(this._x + this.leg_lower2._x, this._y + this.leg_lower2._y, 11);
Symbol 762 MovieClip Frame 110
this.stop();
Symbol 763 MovieClip Frame 1
this.stop();
if (this._currentframe == 1) {
this.colmap._visible = false;
hinttot = 4;
hintok = new Array();
hmessag = new Array();
hmessag[0] = "Try to shun enemy's shots with jumping and crouch.";
hmessag[1] = "You can throw grenades with the ''G'', ''ENTER'', or 'Q' button.";
hmessag[2] = "This is a medikit. Pick it up to restore 25 Hit Points.";
hmessag[3] = "Do not forget to go to the weapon store.";
i = 0;
while (i < hinttot) {
this["h" + i]._visible = false;
hintok[i] = true;
i++;
}
i = 1;
while (i < _root.playerstot) {
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].expir = 0;
_root.game["player" + i].hea = 10;
_root.game["player" + i].opentop = true;
r = Math.floor(Math.random() * 2.999);
if (r == 0) {
_root.game["player" + i].head.gotoAndStop(6);
}
if (r == 1) {
_root.game["player" + i].head.gotoAndStop(7);
}
if (r == 2) {
_root.game["player" + i].head.gotoAndStop(8);
}
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
i = 0;
while (i < hinttot) {
if (hintok[i]) {
if (this["h" + i].hitTest(_root.game.player0)) {
if (i != 3) {
hintok[i] = false;
}
_root.Hint(hmessag[i]);
}
}
i++;
}
if (_root.game.player0.hitTest(this.but0) && (_root.game.player0.hea > 0)) {
opendor = true;
} else {
opendor = false;
}
if (opendor) {
if (this.colmap.box33._yscale > 0) {
if ((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) {
this.colmap.box33._yscale = 0;
this.door1.gotoAndPlay(2);
}
}
} else if (this.colmap.box33._yscale == 0) {
if (this.door1._currentframe == 30) {
this.colmap.box33._yscale = 130;
this.door1.gotoAndPlay(31);
}
}
}
};
}
Symbol 763 MovieClip Frame 2
if (this._currentframe == 2) {
_root.game.speedup._visible = false;
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].gun.gotoAndStop(2);
_root.game["player" + i].opentop = true;
r = Math.floor(Math.random() * 2.999);
if (r == 0) {
_root.game["player" + i].head.gotoAndStop(6);
}
if (r == 1) {
_root.game["player" + i].head.gotoAndStop(7);
}
if (r == 2) {
_root.game["player" + i].head.gotoAndStop(8);
}
_root.game["player" + i].hea = 70;
}
if (i == 5) {
_root.game["player" + i].expir = 0;
}
i++;
}
hinttot = 4;
hintok = new Array();
hmessag = new Array();
hmessag[0] = "You can swap Your weapon with numbers and mouse wheel.";
hmessag[1] = "This thing will hoist You.";
hmessag[2] = "Shoot in the head is the fastest way to kill.";
hmessag[3] = "You can go crouch with ''S'', ''Shift'', or ''Down'' button.";
i = 0;
while (i < hinttot) {
this["h" + i]._visible = false;
hintok[i] = true;
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
i = 0;
while (i < hinttot) {
if (hintok[i]) {
if (this["h" + i].hitTest(_root.game.player0)) {
if (i != 3) {
hintok[i] = false;
}
_root.Hint(hmessag[i]);
}
}
i++;
}
i = 0;
if (_root.game["player" + i].hitTest(_root.game.speedup)) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
}
};
}
Symbol 763 MovieClip Frame 3
if (this._currentframe == 3) {
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].expir = 1;
if (((i == 2) || (i == 4)) || (i == 10)) {
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
} else {
_root.game["player" + i].gun.gotoAndStop(2);
_root.game["player" + i].head.gotoAndStop(3);
}
_root.game["player" + i].hea = 200;
}
i++;
}
_root.game.speedup._visible = false;
_root.game.speedup2._visible = false;
liftmoving = false;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (_root.game.player0.hitTest(this.colmap.box10)) {
liftmoving = true;
}
if (liftmoving) {
if (!this.colmap.box11.hitTest(this.colmap.box10)) {
this.colmap.box10._y = this.colmap.box10._y + 2;
this.colmap.box30._y = this.colmap.box30._y + 2;
this.lift._y = this.colmap.box10._y;
if (_root.game.player0.hea > 0) {
if (_root.game.player0.hitTest(this.colmap.box10)) {
_root.game.player0._y = _root.game.player0._y + 2;
_root.game.player0.toy = (_root.game.player0.toy + 2) / 2;
}
}
}
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hitTest(this.colmap.box12)) {
_root.game["player" + i].hea = 0;
}
if (i == 0) {
if (_root.game["player" + i].hitTest(_root.game.speedup) || (_root.game["player" + i].hitTest(_root.game.speedup2))) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
if (_root.game["player" + i].hitTest(_root.game.speedup2)) {
_root.game["player" + i].toy = Math.min(_root.game["player" + i].toy, 1);
}
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
}
}
i++;
}
if (_root.game.player0.hitTest(this.but0) && (_root.game.player0.hea > 0)) {
opendor = true;
} else {
opendor = false;
}
if (opendor) {
if (this.colmap.box31._yscale > 0) {
if ((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) {
this.colmap.box31._yscale = 0;
this.door1.gotoAndPlay(2);
}
}
} else if (this.colmap.box31._yscale == 0) {
if (this.door1._currentframe == 30) {
this.colmap.box31._yscale = 130;
this.door1.gotoAndPlay(31);
}
}
}
};
}
Symbol 763 MovieClip Frame 4
if (this._currentframe == 4) {
this.colmap._visible = false;
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].char == 0) {
if (i != 0) {
_root.game["player" + i].head.gotoAndStop(4);
}
}
i++;
}
i = 1;
while (i < _root.playerstot) {
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].expir = 1;
if ((((i == 1) || (i == 4)) || (i == 6)) || (i == 12)) {
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
} else {
_root.game["player" + i].gun.gotoAndStop(2);
_root.game["player" + i].head.gotoAndStop(3);
}
if (i >= 15) {
_root.game["player" + i].command = 0;
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].body.gotoAndStop(1);
_root.game["player" + i].leg1.gotoAndStop(1);
_root.game["player" + i].leg2.gotoAndStop(1);
_root.game["player" + i].arm1.gotoAndStop(1);
_root.game["player" + i].arm2.gotoAndStop(1);
_root.game["player" + i].hunt = 0;
} else {
_root.game["player" + i].hea = 200;
}
}
i++;
}
opendor = false;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (Key.isDown(69)) {
if (_root.game.player0.hitTest(this.but0)) {
if (_root.game.player0.hea > 0) {
this.but0.gotoAndStop(2);
opendor = true;
}
}
}
if (opendor) {
if (this.colmap.box7._yscale > 0) {
if ((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) {
this.colmap.box7._yscale = 0;
this.door1.gotoAndPlay(2);
}
}
} else if (this.colmap.box7._yscale == 0) {
if (this.door1._currentframe == 30) {
this.colmap.box7._yscale = 130;
this.door1.gotoAndPlay(31);
}
}
}
};
}
Symbol 763 MovieClip Frame 5
if (this._currentframe == 5) {
this.but0._visible = false;
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].hea = 100;
_root.game["player" + i].gun.gotoAndStop(1);
_root.game["player" + i].w_upg1 = 1;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 400;
_root.game["player" + i].head.gotoAndStop(2);
_root.game["player" + i].body.gotoAndStop(2);
_root.game["player" + i].arm1.gotoAndStop(2);
_root.game["player" + i].arm2.gotoAndStop(2);
_root.game["player" + i].gun.gotoAndStop(11);
_root.game["player" + i].legtype = 3;
}
i++;
}
opendor = false;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (_root.game.player0.hitTest(this.but0) && (_root.game.player0.hea > 0)) {
opendor = true;
} else {
opendor = false;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if (_root.game["player" + i].hitTest(this.kill_reg0)) {
_root.game["player" + i].hea = -200;
_root.game["player" + i].lastshot = "body";
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), this.kill_reg0._y, _root.game["player" + i].char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
}
}
}
i++;
}
if (opendor) {
if (this.colmap.box13._yscale > 0) {
if ((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) {
this.colmap.box13._yscale = 0;
this.door1.gotoAndPlay(2);
}
}
} else if (this.colmap.box13._yscale == 0) {
if (this.door1._currentframe == 30) {
this.colmap.box13._yscale = 130;
this.door1.gotoAndPlay(31);
}
}
}
};
}
Symbol 763 MovieClip Frame 6
if (this._currentframe == 6) {
this.colmap._visible = false;
this.h1._visible = false;
this.h2._visible = false;
this.h3._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].expir = 1;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 400;
_root.game["player" + i].head.gotoAndStop(2);
_root.game["player" + i].body.gotoAndStop(2);
_root.game["player" + i].arm1.gotoAndStop(2);
_root.game["player" + i].arm2.gotoAndStop(2);
_root.game["player" + i].gun.gotoAndStop(11);
_root.game["player" + i].legtype = 3;
}
i++;
}
opendor = false;
this.onEnterFrame = function () {
if (_root.gunpaused) {
}
};
}
Symbol 763 MovieClip Frame 7
if (this._currentframe == 7) {
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].expir = 1;
_root.game["player" + i].gun.gotoAndStop(4);
_root.game["player" + i].head.gotoAndStop(4);
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 400;
_root.game["player" + i].head.gotoAndStop(2);
_root.game["player" + i].body.gotoAndStop(2);
_root.game["player" + i].arm1.gotoAndStop(3);
_root.game["player" + i].arm2.gotoAndStop(3);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 3;
}
i++;
}
}
Symbol 763 MovieClip Frame 8
if (this._currentframe == 8) {
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(5);
_root.game["player" + i].head.gotoAndStop(4);
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(13);
_root.game["player" + i].legtype = 5;
}
i++;
}
this.onEnterFrame = function () {
};
}
Symbol 763 MovieClip Frame 9
if (this._currentframe == 9) {
_root.game.speedup1._visible = false;
_root.game.speedup2._visible = false;
this.colmap._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 1;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(13);
_root.game["player" + i].legtype = 5;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if (_root.game["player" + i].hitTest(this.kill_reg0._x + _root.game._x, this.kill_reg0._y + _root.game._y, true) || (_root.game["player" + i].hitTest(this.kill_reg1._x + _root.game._x, this.kill_reg1._y + _root.game._y, true))) {
if ((!_root.game["player" + i].gun.hitTest(this.kill_reg0._x + _root.game._x, this.kill_reg0._y + _root.game._y, true)) && (!_root.game["player" + i].gun.hitTest(this.kill_reg1._x + _root.game._x, this.kill_reg1._y + _root.game._y, true))) {
_root.game["player" + i].hea = -200;
_root.game["player" + i].lastshot = "body";
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), this.kill_reg0._y, _root.game["player" + i].char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
}
}
if (_root.game["player" + i].hitTest(this.kill_reg2)) {
_root.game["player" + i].hea = -200;
_root.game["player" + i].lastshot = "body";
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), this.kill_reg2._y, _root.game["player" + i].char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
}
}
}
i++;
}
i = 0;
if (_root.game["player" + i].hitTest(_root.game.speedup1) || (_root.game["player" + i].hitTest(_root.game.speedup2))) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
}
};
}
Symbol 763 MovieClip Frame 10
if (this._currentframe == 10) {
this.colmap._visible = false;
_root.game.player3.myi = -1;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].w_upg3 = 2;
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 1;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 5;
}
if (i == 3) {
_root.game["player" + i].command = 0;
_root.game["player" + i].hea = 500;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.game["player" + i].w_upg3 = 1;
}
i++;
}
}
Symbol 763 MovieClip Frame 11
function ActivateDrone() {
i = this.curdrone;
this.drones = 38;
trace(">>> " + i);
if (this.curdrone < this.drones) {
_root.game["dr" + i].p0 = _root.CreatePoint(_root.game["dr" + i]._x, _root.game["dr" + i]._y, 0, 0);
_root.game["dr" + i].p1 = _root.CreatePoint(_root.game["dr" + i]._x, _root.game["dr" + i]._y - 19, 0, 0);
_root.game["dr" + i].p2 = _root.CreatePoint(_root.game["dr" + i]._x, _root.game["dr" + i]._y + 19, 0, 0);
_root.game["dr" + i].p3 = _root.CreatePoint(_root.game["dr" + i]._x - 23, _root.game["dr" + i]._y, 0, 0);
_root.game["dr" + i].p4 = _root.CreatePoint(_root.game["dr" + i]._x + 23, _root.game["dr" + i]._y, 0, 0);
ch = _root.Connect(_root.game["dr" + i].p0, _root.game["dr" + i].p1, 0);
_root.Connect(_root.game["dr" + i].p0, _root.game["dr" + i].p2, 0);
_root.Connect(_root.game["dr" + i].p0, _root.game["dr" + i].p3, 0);
_root.Connect(_root.game["dr" + i].p0, _root.game["dr" + i].p4, 0);
_root.Connect(_root.game["dr" + i].p1, _root.game["dr" + i].p2, 0);
_root.Connect(_root.game["dr" + i].p3, _root.game["dr" + i].p4, 0);
_root.Connect(_root.game["dr" + i].p1, _root.game["dr" + i].p2, 0);
_root.Connect(_root.game["dr" + i].p2, _root.game["dr" + i].p3, 0);
_root.Connect(_root.game["dr" + i].p3, _root.game["dr" + i].p4, 0);
_root.Connect(_root.game["dr" + i].p4, _root.game["dr" + i].p1, 0);
_root.aof[_root.game["dr" + i].p0] = 2;
_root.aof[_root.game["dr" + i].p1] = 2;
_root.aof[_root.game["dr" + i].p2] = 2;
_root.aof[_root.game["dr" + i].p3] = 2;
_root.aof[_root.game["dr" + i].p4] = 2;
_root.game["dr" + i].turnon = true;
_root.game["dr" + i].hea = 100;
_root.game["dr" + i]._visible = true;
_root.LinkMcTo(_root.game["dr" + i], ch, 0, 1);
}
this.curdrone++;
}
if (this._currentframe == 11) {
this.curdrone = 0;
i = 0;
while (i < this.drones) {
_root.game["dr" + i]._visible = false;
i++;
}
_root.grenades = 0;
this.colmap._visible = false;
_root.game.player0.gun.gotoAndStop(2);
_root.game.player0.w_upg2 = 2;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].w_upg3 = 1;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 1600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 5;
}
i++;
}
bgstartx = _root.game.backgroundd._x;
jeepsepeed = 0;
way = 0;
_root.game.player0._alpha = 0;
_root.game.player0.hea = 1000;
_root.playerhmax = 1000;
swich3 = true;
swich2 = true;
swich1 = true;
swich0 = true;
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (this._currentframe == 11) {
if (swich2) {
if (way > 300) {
swich2 = false;
this.wavplayer.gotoAndStop(2);
}
}
if (swich0) {
if (way > 1000) {
swich0 = false;
this.ActivateDrone();
this.ActivateDrone();
this.wavplayer.gotoAndStop(3);
}
}
if (swich1) {
if (way > 15000) {
swich1 = false;
this.ActivateDrone();
this.ActivateDrone();
this.wavplayer.gotoAndStop(4);
}
}
if (swich3) {
if (way > 21000) {
this.wavplayer.gotoAndStop(5);
}
}
if (way < 22000) {
if (jeepsepeed < 10) {
jeepsepeed = jeepsepeed + 0.1;
} else {
jeepsepeed = 10;
}
} else if (jeepsepeed > 0) {
jeepsepeed = jeepsepeed - 0.2;
} else {
jeepsepeed = 0;
this.end._x = _root.game.player0._x;
this.end._y = _root.game.player0._y;
}
way = way + jeepsepeed;
if (_root.game.player0.gun._currentframe != 7) {
_root.game.player0.gun.gotoAndStop(7);
}
_root.game.backgroundd._x = _root.game.backgroundd._x - Math.round(jeepsepeed);
if (_root.game.backgroundd._x < (bgstartx - 509)) {
_root.game.backgroundd._x = _root.game.backgroundd._x + 509;
}
if (_root.game.player0.hea > 0) {
_root.game.player0._x = _root.game.jeep._x - 6;
_root.game.player0._y = _root.game.jeep._y + 50;
_root.game.player0.tox = jeepsepeed;
_root.game.player0.toy = 0;
_root.game.jeep.rl._rotation = (_root.game.player0.gun._rotation / 100) * _root.game.player0._xscale;
_root.game.jeep.rl._xscale = _root.game.player0._xscale;
} else {
_root.game.player0._alpha = 100;
}
_root.game.jeep.w1._rotation = _root.game.jeep.w1._rotation + (jeepsepeed * 1.6);
_root.game.jeep.w2._rotation = _root.game.jeep.w2._rotation + (jeepsepeed * 1.6);
_root.game.jeep.w1._y = 18.1 + Math.random();
_root.game.jeep.w2._y = 18.1 + Math.random();
_root.game.jeep.carbody._y = -34.3 - Math.random();
i = 0;
while (i < this.drones) {
if (_root.game["dr" + i].turnon) {
if (_root.game["dr" + i].hea > 0) {
_root.atoy[_root.game["dr" + i].p0] = _root.atoy[_root.game["dr" + i].p0] * 0.9;
_root.atox[_root.game["dr" + i].p0] = _root.atox[_root.game["dr" + i].p0] * 0.9;
if (_root.ay[_root.game["dr" + i].p0] > 550) {
_root.atoy[_root.game["dr" + i].p0] = _root.atoy[_root.game["dr" + i].p0] - (_root.gravity * 6);
}
if (_root.ay[_root.game["dr" + i].p0] > 650) {
_root.atoy[_root.game["dr" + i].p0] = _root.atoy[_root.game["dr" + i].p0] - (_root.gravity * 6);
}
if (_root.ax[_root.game["dr" + i].p0] < 0) {
_root.atox[_root.game["dr" + i].p0] = _root.atox[_root.game["dr" + i].p0] + 3;
}
if (_root.ax[_root.game["dr" + i].p0] > 800) {
_root.atox[_root.game["dr" + i].p0] = _root.atox[_root.game["dr" + i].p0] - 3;
}
an = Math.atan2(_root.game["dr" + i]._x - _root.game.player0._x, _root.game["dr" + i]._y - _root.game.player0._y);
_root.atox[_root.game["dr" + i].p2] = _root.atox[_root.game["dr" + i].p2] - (Math.sin(an) * 5);
_root.atoy[_root.game["dr" + i].p2] = _root.atoy[_root.game["dr" + i].p2] - (Math.cos(an) * 5);
_root.atox[_root.game["dr" + i].p1] = _root.atox[_root.game["dr" + i].p1] + (Math.sin(an) * 5);
_root.atoy[_root.game["dr" + i].p1] = _root.atoy[_root.game["dr" + i].p1] + (Math.cos(an) * 5);
if (_root.ax[_root.game["dr" + i].p0] > 0) {
if (_root.ax[_root.game["dr" + i].p0] < 800) {
an1 = ((-_root.game["dr" + i]._rotation) / 180) * Math.PI;
spx = Math.sin(an1) * 10;
spy = Math.cos(an1) * 10;
if (Math.random() > 0.9) {
_root.game["dr" + i].gotoAndPlay(2);
_root.Fire(_root.game["dr" + i]._x + spy, _root.game["dr" + i]._y + spx, 2, 1, spx, spy);
_root.Fire(_root.game["dr" + i]._x - spy, _root.game["dr" + i]._y - spx, 2, 1, spx, spy);
}
}
}
}
}
i++;
}
pl = 0;
while (pl < _root.pulsmax) {
if (_root.game["pl" + pl]._visible == true) {
pula = _root.game["pl" + pl];
pula._x = pula._x - jeepsepeed;
if (_root.game.jeep.hitTest(pula._x + _root.game._x, pula._y + _root.game._y, true)) {
if (pula.master != 0) {
_root.Effect(pula._x, pula._y, 0);
_root.Effect(pula._x, pula._y, 11);
_root.game["pl" + pl]._visible = false;
_root.game.player0.hea = _root.game.player0.hea - (10 * pula.power);
}
}
i = 0;
while (i < this.drones) {
if (_root.game["dr" + i].turnon) {
if (_root.game["dr" + i].hea > 0) {
if (pula.master == 0) {
if (_root.game["dr" + i].hitTest(pula)) {
_root.game["dr" + i].hea = _root.game["dr" + i].hea - (20 * pula.power);
_root.Effect(pula._x, pula._y, 11);
_root.Effect(pula._x, pula._y, 0);
_root.game["pl" + pl]._visible = false;
a = Math.round(Math.random() * 4);
_root.atox[_root.game["dr" + i]["p" + a]] = _root.atox[_root.game["dr" + i]["p" + a]] + (pula.spx * pula.power);
_root.atoy[_root.game["dr" + i]["p" + a]] = _root.atoy[_root.game["dr" + i]["p" + a]] + (pula.spy * pula.power);
if (_root.game["dr" + i].hea <= 0) {
_root.stat_kills++;
_root.game["dr" + i].gotoAndPlay(4);
this.ActivateDrone();
}
}
}
}
}
i++;
}
}
pl++;
}
i = 1;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
_root.game["player" + i]._x = _root.game["player" + i]._x - jeepsepeed;
if (_root.game["player" + i].body.hitTest(_root.game.jeep.carbody)) {
_root.game["player" + i].tox = jeepsepeed;
_root.game["player" + i].toy = -1;
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), _root.game["player" + i]._y - (Math.random() * 80), _root.game["player" + i].char, "fall");
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), _root.game["player" + i]._y - (Math.random() * 80), _root.game["player" + i].char, "fall");
_root.game["player" + i].lastshot = "body";
if (_root.game["player" + i].hea <= 100) {
_root.game["player" + i].hea = -100;
} else {
_root.game["player" + i].hea = _root.game["player" + i].hea - 100;
_root.game["player" + i].gotoAndPlay("hurt");
}
}
}
}
i++;
}
e = 0;
while (e < _root.maxef) {
_root.game["p" + e]._x = _root.game["p" + e]._x - jeepsepeed;
e++;
}
a = 0;
while (a < _root.atotal) {
if ((_root.aio[a] == true) || (_root.aio[a] == false)) {
_root.ax[a] = _root.ax[a] - jeepsepeed;
}
a++;
}
ch = 0;
while (ch < _root.chtotal) {
if (_root.ax[_root.chP[ch]] > -900) {
_root.chio[ch] = true;
_root.chtsilp[ch] = 0;
}
ch++;
}
}
}
};
}
Symbol 763 MovieClip Frame 12
if (this._currentframe == 12) {
GO = true;
laseron = true;
this.colmap._visible = false;
_root.game.player1.myi = -1;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 2;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 1600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 5;
}
if (i == 1) {
_root.game["player" + i].command = 0;
_root.game["player" + i].hea = 500;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.game["player" + i].w_upg3 = 1;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (_root.game.player1.hea <= 0) {
_root.loose = 1;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if (laseron) {
if ((_root.game["player" + i].hitTest(this.kill_reg0) || (_root.game["player" + i].hitTest(this.kill_reg1))) || (_root.game["player" + i].hitTest(this.kill_reg2))) {
_root.game["player" + i].hea = -100;
_root.game["player" + i].lastshot = "body";
_root.HurtByType((_root.game["player" + i]._x - 20) + (Math.random() * 40), _root.game["player" + i]._y, _root.game["player" + i].char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
}
}
}
}
i++;
}
i = 0;
if (_root.game["player" + i].hitTest(_root.game.speedup1) || (_root.game["player" + i].hitTest(_root.game.speedup2))) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 2.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
}
i = 1;
if (GO) {
if ((_root.game["player" + i].hunt == -1) || (_root.game["player" + i].botaction == 0)) {
if ((_root.game.player0._y > 100) && (_root.game["player" + i]._y < 100)) {
_root.game["player" + i].botaction = 1;
} else {
if (_root.game["player" + i]._x < (_root.game.player0._x - 100)) {
_root.game["player" + i].botaction = 1;
}
if (_root.game["player" + i]._x > (_root.game.player0._x + 100)) {
_root.game["player" + i].botaction = 2;
}
}
if ((_root.game["player" + i].botaction == 1) || (_root.game["player" + i].botaction == 2)) {
if (_root.game.colmap.hitTest(_root.game._x + _root.game["player" + i]._x, (_root.game._y + _root.game["player" + i]._y) + 20, true)) {
if (_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 15), (_root.game._y + _root.game["player" + i]._y) - 20, true) || (!_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 5), (_root.game._y + _root.game["player" + i]._y) + 100, true))) {
_root.game["player" + i].botaction = 3;
}
}
if (Math.abs(_root.game["player" + i].tox) < 3) {
if (Math.random() > 0.7) {
_root.game["player" + i].botaction = 3;
}
}
}
}
}
if (GO) {
if (_root.game.player0.hitTest(_root.game.but0)) {
GO = false;
}
} else if (_root.game.player0.hitTest(_root.game.but1)) {
GO = true;
_root.game.but1.gotoAndStop(2);
laseron = false;
this.kill_reg0._visible = false;
this.kill_reg1._visible = false;
this.kill_reg2._visible = false;
_root.game.player1.hea = 5000;
}
}
};
}
Symbol 763 MovieClip Frame 13
if (this._currentframe == 13) {
_root.game.player1.myi = -1;
this.colmap._visible = false;
GO = true;
_root.game.speedup._visible = false;
_root.game.speedup2._visible = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 2;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 1600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 5;
}
if (i == 1) {
_root.game["player" + i].command = 0;
_root.game["player" + i].hea = 500;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.game["player" + i].w_upg3 = 1;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
if (_root.game.player1.hea <= 0) {
_root.loose = 1;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if ((_root.game["player" + i].hitTest(this.kill_reg0) || (_root.game["player" + i].hitTest(this.kill_reg1))) || (_root.game["player" + i].hitTest(this.kill_reg2))) {
_root.game["player" + i].hea = -100;
_root.game["player" + i].lastshot = "body";
}
}
}
i++;
}
i = 0;
while (i < 2) {
if (_root.game["player" + i].hitTest(_root.game.speedup2)) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
if (_root.game["player" + i].hitTest(_root.game.speedup2)) {
_root.game["player" + i].toy = Math.min(_root.game["player" + i].toy, 1);
}
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
if (_root.game["player" + i].hitTest(_root.game.speedup)) {
_root.game["player" + i].toy = 0;
_root.game["player" + i].tox = 0;
if (Key.isDown(38) || (Key.isDown(87))) {
_root.game["player" + i].toy = -4;
}
if (Key.isDown(40) || (Key.isDown(83))) {
_root.game["player" + i].toy = 4;
}
if ((Key.isDown(39) || (Key.isDown(32))) || (Key.isDown(68))) {
_root.game["player" + i].tox = 6;
} else {
_root.game["player" + i]._x = _root.game.speedup._x + 30;
}
}
i++;
}
i = 1;
if (GO) {
if ((_root.game["player" + i].hunt == -1) || (_root.game["player" + i].botaction == 0)) {
if (_root.game["player" + i]._x < (_root.game.player0._x - 100)) {
_root.game["player" + i].botaction = 1;
}
if (_root.game["player" + i]._x > (_root.game.player0._x + 100)) {
_root.game["player" + i].botaction = 2;
}
if ((_root.game["player" + i].botaction == 1) || (_root.game["player" + i].botaction == 2)) {
if (_root.game.colmap.hitTest(_root.game._x + _root.game["player" + i]._x, (_root.game._y + _root.game["player" + i]._y) + 20, true)) {
if (_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 15), (_root.game._y + _root.game["player" + i]._y) - 20, true) || (!_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 5), (_root.game._y + _root.game["player" + i]._y) + 100, true))) {
_root.game["player" + i].botaction = 3;
}
}
}
}
}
if (GO) {
if (_root.game.player0.hitTest(_root.game.but0)) {
GO = false;
}
} else {
if (_root.game["player" + i]._x < -100) {
_root.game["player" + i].botaction = 1;
}
if (_root.game["player" + i]._x > 100) {
_root.game["player" + i].botaction = 2;
}
}
if ((_root.game["player" + i].botaction == 1) || (_root.game["player" + i].botaction == 2)) {
if (_root.game.colmap.hitTest(_root.game._x + _root.game["player" + i]._x, (_root.game._y + _root.game["player" + i]._y) + 20, true)) {
if (_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 15), (_root.game._y + _root.game["player" + i]._y) - 20, true) || (!_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 5), (_root.game._y + _root.game["player" + i]._y) + 100, true))) {
_root.game["player" + i].botaction = 3;
}
}
if (Math.abs(_root.game["player" + i].tox) < 3) {
if (Math.random() > 0.7) {
_root.game["player" + i].botaction = 3;
}
}
}
}
};
}
Symbol 763 MovieClip Frame 14
if (this._currentframe == 14) {
this.colmap._visible = false;
_root.game.player0.myi = -1;
_root.game.speedup._visible = false;
_root.game.speedup2._visible = false;
i = 0;
while (i < _root.playerstot) {
if (i != 0) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 2;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 1600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].gun.gotoAndStop(12);
_root.game["player" + i].legtype = 5;
}
}
if (i == 0) {
_root.game["player" + i].command = 0;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.playerhmax = 200;
_root.game["player" + i].hea = 200;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if ((_root.game["player" + i].hitTest(this.kill_reg0) || (_root.game["player" + i].hitTest(this.kill_reg1))) || (_root.game["player" + i].hitTest(this.kill_reg2))) {
_root.game["player" + i].hea = -100;
_root.game["player" + i].lastshot = "body";
}
}
}
i++;
}
i = 0;
_root.game["player" + i].gun.gotoAndStop(9);
if (_root.game["player" + i].hitTest(_root.game.speedup2)) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 1.5;
_root.game["player" + i].tox = Math.max(_root.game["player" + i].tox, 1);
}
if (_root.game["player" + i].hitTest(_root.game.speedup1)) {
_root.game["player" + i].tox = -70;
_root.game["player" + i].toy = 0;
}
}
};
}
Symbol 763 MovieClip Frame 15
if (this._currentframe == 15) {
this.colmap._visible = false;
_root.game.player0.myi = -1;
_root.game.speedup._visible = false;
_root.game.speedup2._visible = false;
i = 0;
while (i < _root.playerstot) {
if (i != 0) {
_root.game["player" + i].expir = 1;
_root.game["player" + i].command = 1;
if (_root.game["player" + i].char == 0) {
_root.game["player" + i].hea = 200;
_root.game["player" + i].gun.gotoAndStop(3);
_root.game["player" + i].head.gotoAndStop(4);
_root.game["player" + i].w_upg3 = 2;
}
if (_root.game["player" + i].char == 1) {
_root.game["player" + i].hea = 1600;
_root.game["player" + i].head.gotoAndStop(3);
_root.game["player" + i].body.gotoAndStop(3);
_root.game["player" + i].arm1.gotoAndStop(4);
_root.game["player" + i].arm2.gotoAndStop(4);
_root.game["player" + i].legtype = 5;
}
if (_root.game["player" + i].char == 2) {
_root.game["player" + i].gun.gotoAndStop(4);
}
}
if (i == 0) {
_root.game["player" + i].command = 0;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.playerhmax = 600;
_root.game["player" + i].hea = 600;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if (_root.game["player" + i].hitTest(_root.game.speedup1)) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = Math.max(-10, Math.min(_root.game["player" + i].toy, 10));
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
}
}
i++;
}
i = 0;
_root.game["player" + i].gun.gotoAndStop(9);
if (_root.game["player" + i].hitTest(_root.game.speedup2)) {
_root.game["player" + i].toy = _root.game["player" + i].toy - 1.5;
_root.game["player" + i].toy = _root.game["player" + i].toy * 0.99;
if (!stand) {
if (((Key.isDown(65) || (Key.isDown(37))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 2))) {
_root.game["player" + i].tox = _root.game["player" + i].tox - 0.2;
}
if (((Key.isDown(68) || (Key.isDown(39))) && (i == 0)) || ((i != 0) && (_root.game["player" + i].botaction == 1))) {
_root.game["player" + i].tox = _root.game["player" + i].tox + 0.2;
}
}
}
if (Key.isDown(69)) {
if (_root.game.player0.hitTest(this.but0)) {
if (_root.game.player0.hea > 0) {
this.but0.gotoAndStop(2);
this.speedup1._y = 85;
}
}
}
}
};
}
Symbol 763 MovieClip Frame 16
if (this._currentframe == 16) {
this.fmustdie = false;
this.bot.run = false;
this.bot.dead = false;
this.colmap._visible = false;
_root.game.player1.myi = -1;
GO = false;
opendor = false;
i = 1;
while (i < _root.playerstot) {
_root.game["player" + i].expir = 1;
if (_root.game["player" + i].char == 2) {
if (((i == 5) || (i == 6)) || (i == 7)) {
_root.game["player" + i].head.gotoAndStop(2);
_root.game["player" + i].body.gotoAndStop(2);
_root.game["player" + i].arm1.gotoAndStop(2);
_root.game["player" + i].arm2.gotoAndStop(2);
_root.game["player" + i].legtype = 9;
_root.game["player" + i].hea = _root.game["player" + i].hea * 3;
_root.game["player" + i].gun.gotoAndStop(5);
_root.game["player" + i].w_upg5 = 2;
}
}
if (i == 1) {
_root.game["player" + i].command = 0;
_root.game["player" + i].hea = 500;
_root.game["player" + i].gun.gotoAndStop(9);
_root.game["player" + i].head.gotoAndStop(13);
_root.game["player" + i].body.gotoAndStop(8);
_root.game["player" + i].arm1.gotoAndStop(8);
_root.game["player" + i].arm2.gotoAndStop(8);
_root.game["player" + i].legtype = 8;
_root.game["player" + i].w_upg3 = 1;
}
i++;
}
this.onEnterFrame = function () {
if (_root.gunpaused) {
if ((_root.game.player1.hea <= 0) && (!this.fmustdie)) {
_root.loose = 1;
}
if ((_root.game.player1.hea <= 0) && (this.fmustdie)) {
_root.game.player1.deadtime = 0;
}
i = 0;
while (i < _root.playerstot) {
if (_root.game["player" + i].active == true) {
if (_root.game["player" + i].hea > 0) {
if ((_root.game["player" + i].hitTest(this.kill_reg0) || (_root.game["player" + i].hitTest(this.kill_reg1))) || (_root.game["player" + i].hitTest(this.kill_reg2))) {
_root.game["player" + i].hea = -100;
_root.game["player" + i].lastshot = "body";
}
}
}
i++;
}
i = 0;
if (_root.game["player" + i].hitTest(_root.game.speedup)) {
_root.game["player" + i].toy = 0;
_root.game["player" + i].tox = 0;
if (Key.isDown(38) || (Key.isDown(87))) {
_root.game["player" + i].toy = -4;
}
if (Key.isDown(40) || (Key.isDown(83))) {
_root.game["player" + i].toy = 4;
}
if (Key.isDown(39) || (Key.isDown(32))) {
_root.game["player" + i].tox = 6;
} else {
_root.game["player" + i]._x = _root.game.speedup._x + 30;
}
}
i = 1;
if (GO) {
if ((_root.game["player" + i].hunt == -1) || (_root.game["player" + i].botaction == 0)) {
if (this.bot.run) {
_root.game["player" + i].botaction = 2;
} else {
if (_root.game["player" + i]._x < (_root.game.player0._x - 100)) {
_root.game["player" + i].botaction = 1;
}
if (_root.game["player" + i]._x > (_root.game.player0._x + 100)) {
_root.game["player" + i].botaction = 2;
}
if ((_root.game["player" + i].botaction == 1) || (_root.game["player" + i].botaction == 2)) {
if (_root.game.colmap.hitTest(_root.game._x + _root.game["player" + i]._x, (_root.game._y + _root.game["player" + i]._y) + 20, true)) {
if (_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 15), (_root.game._y + _root.game["player" + i]._y) - 20, true) || (!_root.game.colmap.hitTest((_root.game._x + _root.game["player" + i]._x) + (((_root.game["player" + i].botaction - 1.5) * _root.game["player" + i].tox) * 5), (_root.game._y + _root.game["player" + i]._y) + 100, true))) {
_root.game["player" + i].botaction = 3;
}
}
}
}
}
}
if (!GO) {
if (_root.game.player0.hitTest(_root.game.but0)) {
GO = true;
}
}
if (_root.game.player0.hitTest(_root.game.but1)) {
_root.game.but1.gotoAndStop(2);
}
if (this.fmustdie) {
if (_root.game.player1.hea > -100) {
if (_root.game.player1.hitTest(_root.game.but4)) {
if (_root.game.player0.hitTest(_root.game.but4)) {
_root.game.end._x = _root.game.player0._x;
_root.game.end._y = _root.game.player0._y;
}
}
if (Math.random() > 0.95) {
_root.aio[_root.game.player1.dead_arm] = 1;
_root.atoy[_root.game.player1.dead_arm] = _root.atoy[_root.game.player1.dead_arm] - 6;
_root.aio[_root.game.player1.dead_body] = 1;
_root.atoy[_root.game.player1.dead_body] = _root.atoy[_root.game.player1.dead_body] + 6;
_root.ay[_root.game.player1.dead_body] = _root.ay[_root.game.player1.dead_body] + 2;
}
if (Math.random() > 0.5) {
_root.aio[_root.game.player1.a_stand3] = 1;
_root.atoy[_root.game.player1.a_stand3] = _root.atoy[_root.game.player1.a_stand3] - (Math.random() * 2);
}
} else {
this.fmustdie = false;
_root.game.player1.sou.gotoAndStop(35);
}
_root.Hint("Take an ally to ship with you");
}
if (!this.bot.run) {
if (_root.game.player0.hea > 0) {
if (_root.game.player0.hitTest(_root.game.but3)) {
this.bot.run = true;
_root.game.player1.sou.gotoAndStop(40);
}
}
} else {
if (_root.game.player0.hea > 0) {
if ((this.bot._x + 300) > _root.game.player0) {
_root.game.player0 = this.bot._x + 300;
}
}
if (_root.game.player1.hea > 0) {
if ((this.bot._x + 300) > _root.game.player1) {
_root.game.player1 = this.bot._x + 300;
}
}
if ((this.bot._currentframe >= 20) && (this.bot._currentframe < 50)) {
this.bot._x = this.bot._x + 3;
if (!opendor) {
if (((this.bot._x + 300) > -150) && ((this.bot._x + 300) < -100)) {
this.bot._x = this.bot._x - 3;
}
}
if ((this.bot._x + 300) > 598) {
this.bot._x = this.bot._x - 3;
}
}
if ((this.bot._currentframe >= 55) && (this.bot._currentframe < 70)) {
trace(11);
if (_root.game.player0.hea > 0) {
if (this.bot.arm1.hitTest(_root.game.player0)) {
trace(22);
_root.game.player0.tox = _root.game.player0.tox + 10;
_root.game.player0.toy = _root.game.player0.toy - 15;
_root.game.player0.hea = -200;
this.bot.run = false;
_root.game.player0.lastshot = "body";
_root.HurtByType((_root.game.player0._x - 20) + (Math.random() * 40), (_root.game.player0._y - 20) + (Math.random() * 40), _root.game.player0.char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
}
}
if (_root.game.player1.hea > 0) {
if (this.bot.arm1.hitTest(_root.game.player1)) {
_root.game.player1.tox = _root.game.player1.tox + 30;
_root.game.player1.toy = _root.game.player1.toy - 15;
_root.game.player1.hea = 0;
_root.game.player1.lastshot = "none";
_root.HurtByType((_root.game.player1._x - 20) + (Math.random() * 40), (_root.game.player1._y - 20) + (Math.random() * 40), _root.game.player1.char, "shot_head", -4 + (Math.random() * 8), -4 + (Math.random() * 8));
this.fmustdie = true;
}
}
}
pl = 0;
while (pl < _root.pulsmax) {
if (_root.game["pl" + pl]._visible == true) {
pula = _root.game["pl" + pl];
if (this.bot.hitTest(pula._x + _root.game._x, pula._y + _root.game._y, true)) {
_root.Effect(pula._x, pula._y, 0);
_root.Effect(pula._x, pula._y, 11);
_root.game["pl" + pl]._visible = false;
}
}
pl++;
}
}
if (Key.isDown(69)) {
if (_root.game.player0.hitTest(this.but2) && (_root.game.player0.hea > 0)) {
if (this.door1._currentframe == 30) {
opendor = false;
this.but2.gotoAndStop(1);
}
if (((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) || (this.door1._currentframe == 95)) {
opendor = true;
this.but2.gotoAndStop(2);
}
trace(this.door1._currentframe);
trace(opendor);
}
}
if (opendor) {
if (this.colmap.box32._yscale > 0) {
if (((this.door1._currentframe == 1) || (this.door1._currentframe == 60)) || (this.door1._currentframe == 95)) {
this.colmap.box32._yscale = 0;
this.door1.gotoAndPlay(2);
}
}
} else if (this.colmap.box32._yscale == 0) {
if (this.door1._currentframe == 30) {
this.colmap.box32._yscale = 301;
this.door1.gotoAndPlay(31);
if (((this.bot._x + 300) >= -100) && ((this.bot._x + 300) < 0)) {
if (!this.bot.dead) {
this.bot.gotoAndPlay("die");
}
this.bot.dead = true;
this.door1.gotoAndPlay(65);
} else {
this.door1.gotoAndPlay(31);
}
}
}
}
};
}
Symbol 763 MovieClip Frame 17
if (this._currentframe == 15) {
_root.gotoAndStop(13);
}
Symbol 768 Button
on (release) {
if (Key.isDown(17)) {
if (my_so.data.low_q) {
my_so.data.low_q = false;
_root._quality = "MEDIUM";
} else {
my_so.data.low_q = true;
_root._quality = "LOW";
}
} else {
_root.Hint("<font color=\"#FFFF00\">Hold CTRL when You press this button</font>");
}
}
Symbol 778 Button
on (release) {
if (Key.isDown(17) || (_root.game.player0.hea <= 0)) {
_root.stpsnds();
_root.gotoAndStop(5);
_root.gotoAndStop(3);
} else {
_root.Hint("<font color=\"#FFFF00\">Hold CTRL when You press this button</font>");
}
}
Symbol 780 Button
on (release) {
if (Key.isDown(17) || (_root.game.player0.hea <= 0)) {
_root.stpsnds();
_root.gotoAndStop(2);
} else {
_root.Hint("<font color=\"#FFFF00\">Hold CTRL when You press this button</font>");
}
}
Symbol 793 MovieClip Frame 1
this.gotoAndStop(1);
Symbol 793 MovieClip Frame 2
_root.Hint("You picked a pistol");
this.gotoAndStop(1);
Symbol 793 MovieClip Frame 3
_root.Hint("You picked a rifle");
this.gotoAndStop(1);
Symbol 793 MovieClip Frame 4
_root.Hint("You picked a shot-gun");
this.gotoAndStop(1);
Symbol 793 MovieClip Frame 5
_root.Hint("You picked a rocket launcher");
this.gotoAndStop(1);
Symbol 793 MovieClip Frame 6
_root.Hint("You picked a plasma cannon");
this.gotoAndStop(1);
Symbol 805 Button
on (release) {
if (Key.isDown(17)) {
if (my_so.data.low_q) {
my_so.data.low_q = false;
_root._quality = "MEDIUM";
} else {
my_so.data.low_q = true;
_root._quality = "LOW";
}
} else {
_root.Hint("<font color=\"#FFFF00\">Hold CTRL when You press this button</font>");
}
}
Symbol 811 Button
on (release) {
if (Key.isDown(17) || (_root.game.player0.hea <= 0)) {
getURL ("http://www.coolbuddy.com/?cid=166", "_blank");
} else {
_root.Hint("<font color=\"#FFFF00\">Hold CTRL when You press this button</font>");
}
}
Symbol 814 Button
on (release) {
_root.currentlevel = _root.currentlevel + 1;
if (my_so.data.lastlevel < _root.currentlevel) {
my_so.data.lastlevel = _root.currentlevel;
}
_root.gotoAndStop(14);
}
Symbol 817 Button
on (release) {
_root.fromshop = 4;
_root.gotoAndStop(9);
}
Symbol 819 Button
on (release) {
_root.currentlevel = _root.currentlevel + 1;
if (my_so.data.lastlevel < _root.currentlevel) {
my_so.data.lastlevel = _root.currentlevel;
}
_root.gotoAndStop(2);
}
Symbol 821 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 823 Button
on (release) {
_root.fromshop = 5;
_root.gotoAndStop(9);
}
Symbol 825 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 827 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 856 Button
on (release) {
my_so.clear();
_root.gotoAndStop(1);
}
Symbol 858 Button
on (release) {
_root.gotoAndStop(_root.fromshop);
}
Symbol 876 MovieClip Frame 40
this.gotoAndPlay(20);
Symbol 879 Button
on (release) {
_root.main_music_credits.stop();
_root.main_music_credits.start((_root.main_music_credits.duration / 1000) - 1, 1);
_root.gotoAndStop(2);
}
Symbol 881 Button
on (release) {
if ((((_root.nick.text != "Your Name Here") && (_root.nick.text != "Your Name Here!")) && (_root.nick.text != "Your Name Here!!")) && (_root.nick.text != "Your Name Here!!!")) {
_root.player_name = _root.nick.text;
my_so.data.myname = _root.player_name;
_root.gotoAndStop(2);
} else if (_root.nick.text == "Your Name Here") {
_root.nick.text = "Your Name Here!";
} else if (_root.nick.text == "Your Name Here!") {
_root.nick.text = "Your Name Here!!";
} else if (_root.nick.text == "Your Name Here!!") {
_root.nick.text = "Your Name Here!!!";
} else if (_root.nick.text == "Your Name Here!!!") {
rn = Math.floor(Math.random() * 7.999);
if (rn == 0) {
_root.nick.text = "I forgot...";
}
if (rn == 1) {
_root.nick.text = "I do not remember";
}
if (rn == 2) {
_root.nick.text = "unknown";
}
if (rn == 3) {
_root.nick.text = "Anonymous";
}
if (rn == 4) {
_root.nick.text = "Mr. Cyborg";
}
if (rn == 5) {
_root.nick.text = "victim";
}
if (rn == 6) {
_root.nick.text = "assassin";
}
if (rn == 7) {
_root.nick.text = "The chosen one";
}
}
}
Symbol 885 Button
on (release) {
my_so.data.opt_bot = 1;
_root.gotoAndStop(14);
}
Symbol 887 Button
on (release) {
my_so.data.opt_bot = 2;
_root.gotoAndStop(14);
}
Symbol 889 Button
on (release) {
my_so.data.opt_bot = 3;
_root.gotoAndStop(14);
}
Symbol 890 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 919 MovieClip Frame 140
this.stop();
Symbol 924 MovieClip Frame 21
this.stop();
Symbol 928 MovieClip Frame 21
this.stop();
Symbol 932 MovieClip Frame 21
this.stop();
Symbol 936 MovieClip Frame 21
this.stop();
Symbol 940 MovieClip Frame 21
this.stop();
Symbol 951 MovieClip Frame 380
this.stop();
Symbol 964 MovieClip Frame 231
this.stop();
Symbol 965 MovieClip Frame 1
this.stop();
Symbol 965 MovieClip Frame 2
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 3
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 4
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 5
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 6
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 7
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 8
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 9
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 10
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 15
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 18
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 19
_root.gotoAndStop(3);
Symbol 965 MovieClip Frame 20
_root.gotoAndStop(3);
Symbol 967 Button
on (press) {
getURL ("http://www.coolbuddy.com/?cid=166", "_blank");
}
Symbol 977 MovieClip Frame 463
_root.gotoAndStop(11);