Frame 1
stop();
Frame 2
stop();
Instance of Symbol 142 MovieClip [ball] in Frame 2
onClipEvent (load) {
function t3d(f1, f2) {
f2 = f2 + f1._rotation;
f2 = f2 + 45;
while (f2 > 360) {
f2 = f2 - 360;
}
while (f2 < 0) {
f2 = f2 + 360;
}
f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1);
}
stop();
stop();
t3d(d.g.t1, _rotation);
t3d(d.g.t2, _rotation);
t3d(d.g.t3, _rotation);
t3d(d.t0, _rotation);
t3d(d.t1, _rotation);
t3d(d.t2, _rotation);
t3d(d.t3, _rotation);
t3d(d.t4, _rotation);
d.s._rotation = -_rotation;
}
Instance of Symbol 142 MovieClip [ball] in Frame 5
onClipEvent (enterFrame) {
function t3d(f1, f2) {
f2 = f2 + f1._rotation;
f2 = f2 + 45;
while (f2 > 360) {
f2 = f2 - 360;
}
while (f2 < 0) {
f2 = f2 + 360;
}
f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1);
}
gotoAndStop (1);
stop();
t3d(d.g.t1, _rotation);
t3d(d.g.t2, _rotation);
t3d(d.g.t3, _rotation);
t3d(d.t0, _rotation);
t3d(d.t1, _rotation);
t3d(d.t2, _rotation);
t3d(d.t3, _rotation);
t3d(d.t4, _rotation);
d.s._rotation = -_rotation;
}
Symbol 9 MovieClip [p1] Frame 1
_rotation = random(360);
Symbol 9 MovieClip [p1] Frame 6
done = true;
Symbol 12 MovieClip [p0] Frame 1
_rotation = random(360);
Symbol 12 MovieClip [p0] Frame 5
done = true;
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 20
ready = true;
Symbol 133 MovieClip Frame 1
f2 = -_rotation;
f2 = f2 - 45;
while (f2 > 360) {
f2 = f2 - 360;
}
while (f2 < 0) {
f2 = f2 + 360;
}
gotoAndStop(Math.round((f2 / 360) * 72) + 1);
Symbol 140 MovieClip Frame 1
stop();
Symbol 153 MovieClip [music] Frame 1
music = new Sound(this);
this.createEmptyMovieClip("loop1", 1);
loop1 = new Sound(loop1);
loop1.attachSound("rlb-loop1.wav");
this.createEmptyMovieClip("loop2", 2);
loop2 = new Sound(loop2);
loop2.attachSound("rlb-loop2.wav");
this.createEmptyMovieClip("loop3", 3);
loop3 = new Sound(loop3);
loop3.attachSound("rlb-loop3.wav");
this.createEmptyMovieClip("loop4", 4);
loop4 = new Sound(loop4);
loop4.attachSound("rlb-loop4.wav");
this.createEmptyMovieClip("loop5", 5);
loop5 = new Sound(loop5);
loop5.attachSound("rlb-loop5.wav");
gotoAndPlay (3);
Instance of Symbol 147 MovieClip in Symbol 153 MovieClip [music] Frame 1
onClipEvent (load) {
unloadMovie (this);
}
Symbol 153 MovieClip [music] Frame 2
loop1.stop();
loop2.stop();
loop3.stop();
loop4.stop();
loop5.stop();
loop1.onSoundComplete = function () {
};
loop2.onSoundComplete = function () {
};
loop3.onSoundComplete = function () {
};
loop4.onSoundComplete = function () {
};
loop5.onSoundComplete = function () {
};
stop();
Symbol 153 MovieClip [music] Frame 3
loop1.start(0, 4);
loop1.onSoundComplete = function () {
loop2.start(0, 4);
};
loop2.onSoundComplete = function () {
loop4.start(0, 4);
};
loop4.onSoundComplete = function () {
loop5.start(0, 4);
};
loop5.onSoundComplete = function () {
loop3.start(0, 4);
};
loop3.onSoundComplete = function () {
loop1.start(0, 4);
};
stop();
Symbol 159 MovieClip Frame 120
_root.nextFrame();
Symbol 162 Button
on (release) {
getURL ("http://www.komix-games.com/", "_blank");
}
Symbol 168 MovieClip Frame 14
stop();
Symbol 169 Button
on (release) {
nextFrame();
}
Symbol 173 Button
on (release) {
getURL ("http://www.gamebalance.com/", "_blank");
}
Symbol 174 Button
on (release) {
getURL ("http://www.theswain.com/", "_blank");
}
Symbol 177 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 188 MovieClip Frame 2
v1 = 400;
xenf = _root.a.ball[0]._x - _x;
if (Math.abs(xenf) < v1) {
yenf = _root.a.ball[0]._y - _y;
if (Math.abs(yenf) < v1) {
enf = (xenf * xenf) + (yenf * yenf);
if (enf < (v1 * v1)) {
_root.a.create(_x, _y, 0, 0, 0, 0, 3);
stop();
}
}
}
Symbol 192 MovieClip Frame 25
if (Math.random() < 0.5) {
gotoAndPlay (10);
}
Symbol 193 MovieClip Frame 1
if (hit == undefined) {
if (_root.gotz == undefined) {
_root.gotz = 3;
} else {
_root.gotz++;
}
gotz = _root.gotz;
hit = 10;
}
v1 = 60;
hit--;
xenf = _root.a.ball[0]._x - _x;
if (Math.abs(xenf) < v1) {
yenf = _root.a.ball[0]._y - _y;
if (Math.abs(yenf) < v1) {
enf = (xenf * xenf) + (yenf * yenf);
if (enf < (v1 * v1)) {
_alpha = 40;
if (hit < 0) {
_root.pinfo = gotz;
_root.a.unpause = false;
_root.p.gotoAndStop(gotz);
}
hit = 10000;
}
}
}
Symbol 194 MovieClip Frame 2
v1 = 400;
xenf = _root.a.ball[0]._x - _x;
if (Math.abs(xenf) < v1) {
yenf = _root.a.ball[0]._y - _y;
if (Math.abs(yenf) < v1) {
enf = (xenf * xenf) + (yenf * yenf);
if (enf < (v1 * v1)) {
_root.a.create(_x, _y, 0, 0, 0, 0, 9);
stop();
}
}
}
Symbol 195 MovieClip Frame 1
function create(f1, f2, f3, f4, f5, f6, f7) {
ballz++;
namer = "b" + ballz;
f0 = ball.length;
ball[f0] = attachMovie("ball", namer, ballz + 10000);
ball[f0].xp = f1;
ball[f0].yp = f2;
ball[f0].rp = f3;
ball[f0].xbew = f4;
ball[f0].ybew = f5;
ball[f0].rbew = f6;
ball[f0].s = f7;
ball[f0].gotoAndStop(f7);
}
function parc(f1, f2, f3) {
parz++;
namer = "p" + parz;
f0 = par.length;
par[f0] = attachMovie(f1, namer, parz + 100000);
par[f0]._x = f2;
par[f0]._y = f3;
par[f0].stop();
}
function rotc(f0) {
if (Math.abs(f0) > 200) {
return(f0 * 0.1);
}
return(f0 * 0.5);
}
function t3d(f1, f2) {
f2 = f2 + f1._rotation;
f2 = f2 + 45;
while (f2 > 360) {
f2 = f2 - 360;
}
while (f2 < 0) {
f2 = f2 + 360;
}
f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1);
}
function soundy(f20) {
if (soundz[f20] == undefined) {
soundz[f20] = 1;
} else {
soundz[f20]++;
}
if ((soundz[f20] < 3) or (Math.random() < (1 / soundz[f20]))) {
sou.sou = new Sound(this);
sou.sou.attachSound(f20);
sou.sou.start(0, 1);
sou.sou.setVolume(200);
}
}
function mhit(f1, f2) {
return(m.hitTest(f1 + _x, f2 + _y, true));
}
function onEnterFrame() {
if (!Key.isDown(32)) {
unspace = true;
}
if (!unpause) {
if (Key.isDown(32) && (unspace)) {
unpause = true;
unspace = false;
}
} else {
_root.p.gotoAndStop(1);
if (Key.isDown(32) && (unspace)) {
_root.p.gotoAndStop(_root.pinfo);
unpause = false;
unspace = false;
}
if (ball[grenade].d.ready) {
_root.g.gotoAndStop(68);
}
if (ball[grenade].d.done) {
_root.g.gotoAndStop(1);
}
topz(1);
if (_root.g._currentframe < 66) {
_root.g.nextFrame();
}
if (md) {
md = false;
if ((_root.g._currentframe > 60) && (_root.g._currentframe < 67)) {
f1 = ball[0].xp;
f2 = ball[0].yp;
f4 = (ball[0].rp * Math.PI) / 180;
f3 = Math.sin(f4);
f4 = -Math.cos(f4);
create(f1 + (f3 * 33), f2 + (f4 * 33), ball[0].rp, (f3 * 17) + ball[0].xbew, (f4 * 17) + ball[0].ybew, (Math.random() + 0.5) * 10, 2);
ball[0].xbew = ball[0].xbew - (f3 * 6);
ball[0].ybew = ball[0].ybew - (f4 * 6);
ball[0].d.g.ybew = ball[0].d.g.ybew + 20;
_root.g.gotoAndStop(67);
} else if (grenade > 0) {
trg = ball[grenade];
if (trg.d.ready) {
trg.d.p = "p1";
trg.d.exp = 10;
trg.d.rad = 500;
trg.d.done = true;
_root.g.gotoAndStop(1);
soundy("exp");
}
}
}
for (e in par) {
trg = par[e];
if (trg.done) {
removeMovieClip(par[e]);
par.splice(e, 1);
} else {
trg.nextFrame();
}
}
xenf = 0;
if (Key.isDown(39)) {
xenf++;
}
if (Key.isDown(37)) {
xenf--;
}
ball[0].d.g._y = ball[0].d.g._y + ball[0].d.g.ybew;
ball[0].d.g.ybew = ball[0].d.g.ybew + 0.8;
ball[0].d.g.ybew = ball[0].d.g.ybew - ((ball[0].d.g._y * 0.2) + ball[0].d.g.ybew);
ball[0].rbew = ball[0].rbew + (xenf * 2);
xenf = _xmouse - ball[0].xp;
yenf = _ymouse - ball[0].yp;
v1 = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf > 0) {
v1 = v1 + 180;
}
v1 = v1 - (ball[0].rp + (ball[0].rbew * 3));
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
if (v1 > 25) {
v1 = 25;
}
if (v1 < -25) {
v1 = -25;
}
ball[0].rb = ball[0].rb + (v1 * 0.2);
ball[0].rb = ball[0].rb * 0.6;
ball[0].rbew = ball[0].rbew + ball[0].rb;
for (e in ball) {
trg = ball[e];
trg.d.nextFrame();
}
for (e in ball) {
trg = ball[e];
if (trg.d.exp > 0) {
parc(trg.d.p, trg.xp, trg.yp);
siz = trg.d.rad;
for (a in ball) {
if ((e != a) && (ball[a].s != 8)) {
trg2 = ball[a];
xenf = trg2.xp - trg.xp;
if (Math.abs(xenf) < siz) {
yenf = trg2.yp - trg.yp;
if (Math.abs(xenf) < siz) {
enf = (xenf * xenf) + (yenf * yenf);
if ((enf > 0) && (enf < (siz * siz))) {
enf = Math.sqrt(enf);
v1 = Math.sqrt(enf) / 2;
v2 = xenf;
v3 = yenf;
v4 = trg.xp;
v5 = trg.yp;
v6 = true;
i = 0;
while (i < 1) {
if (mhit(v4 + (v2 * i), v5 + (v3 * i))) {
i = 20;
v6 = false;
}
i = i + (v1 / enf);
}
if (v6) {
if (((trg2.s == 3) && (trg.d.p == "p1")) && (enf < (siz / 4))) {
trg2.d.exp = 5;
trg2.d.rad = 250;
trg2.d.done = true;
trg2.d.p = "p0";
soundy("exp2");
} else if (((trg2.s == 1) && (trg.d.p == "p0")) && (enf < ((siz / 4) * 3))) {
_root.h.nextFrame();
if (enf < (siz / 2)) {
_root.h.nextFrame();
if (enf < (siz / 3)) {
_root.h.nextFrame();
if (enf < (siz / 4)) {
_root.h.nextFrame();
if (enf < (siz / 5)) {
_root.h.nextFrame();
}
}
}
}
if (_root.h._currentframe == 100) {
_root.nextFrame();
}
} else {
v1 = siz - enf;
enf = (((v1 * trg.d.exp) / enf) / enf) * 0.5;
xenf = xenf * enf;
yenf = yenf * enf;
trg2.xbew = trg2.xbew + xenf;
trg2.ybew = trg2.ybew + yenf;
}
}
}
}
}
}
}
trg.d.exp = (trg.d.rad = 0);
}
}
for (e in ball) {
trg = ball[e];
if (trg.d.done) {
removeMovieClip(ball[e]);
ball.splice(e, 1);
}
}
e = 0;
while (e < ball.length) {
trg = ball[e];
enf = (trg.xbew * trg.xbew) + (trg.ybew * trg.ybew);
f1 = 17;
if (enf > (f1 * f1)) {
enf = f1 / Math.sqrt(enf);
trg.xbew = trg.xbew * enf;
trg.ybew = trg.ybew * enf;
}
e++;
}
for (e in ball) {
trg = ball[e];
if (trg.s == 3) {
trg2 = ball[0];
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
enf = (xenf * xenf) + (yenf * yenf);
trg.act = true;
enf = Math.sqrt(enf);
v1 = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf > 0) {
v1 = v1 + 180;
}
if (trg.rev) {
v1 = v1 + 180;
if (enf > 225) {
trg.rev = false;
}
}
v1 = v1 - (trg.rp + trg.rbew);
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
v2 = 1.5;
if (v1 > v2) {
v1 = v2;
}
if (v1 < (-v2)) {
v1 = -v2;
}
v3 = ((trg.rp * Math.PI) / 180) + 0.5;
v4 = -Math.sin(v3);
v5 = Math.cos(v3);
v8 = 0;
while ((!mhit(trg.xp + (v4 * v8), trg.yp + (v5 * v8))) && (v8 < 100)) {
v8 = v8 + 10;
}
v3 = ((trg.rp * Math.PI) / 180) - 0.5;
v4 = -Math.sin(v3);
v5 = Math.cos(v3);
v9 = 0;
while ((!mhit(trg.xp + (v4 * v8), trg.yp + (v5 * v8))) && (v9 < 100)) {
v9 = v9 + 10;
}
if (v8 > v9) {
trg.rbew = trg.rbew + 3;
} else if (v9 > v8) {
trg.rbew = trg.rbew - 3;
}
trg.rbew = trg.rbew + v1;
if (((Math.abs(v1) < 1) && (!trg.rev)) && (enf < 225)) {
trg.rev = true;
f1 = ball[e].xp;
f2 = ball[e].yp;
f4 = ((ball[e].rp * Math.PI) / 180) + Math.PI;
f3 = Math.sin(f4);
f4 = -Math.cos(f4);
create(f1 + (f3 * 10), f2 + (f4 * 10), ball[0].rp, (f3 * 17) + ball[e].xbew, (f4 * 17) + ball[e].ybew, (Math.random() + 0.5) * 10, 8);
}
v1 = (trg.rp * Math.PI) / 180;
v2 = 6;
v4 = -Math.sin(v1);
v5 = Math.cos(v1);
v8 = (trg.xbew * trg.xbew) + (trg.ybew * trg.ybew);
if (v8 > 0) {
v8 = Math.sqrt(v8);
v6 = trg.xbew / v8;
v7 = trg.ybew / v8;
v8 = (v6 * v4) - (v7 * v5);
v8 = Math.abs(v8);
v3 = 1 - (v8 * 0.2);
trg.xbew = trg.xbew * v3;
trg.ybew = trg.ybew * v3;
trg.rbew = trg.rbew * 0.9;
v2 = v2 * (1 - v3);
}
trg.xbew = trg.xbew + (v4 * v2);
trg.ybew = trg.ybew + (v5 * v2);
} else if (trg.s == 9) {
_root.endisnear = true;
if (trg.gun == undefined) {
trg.gun = [1, 0, 0];
trg.act = 0;
trg.lon = 0;
gu = ["d1", "d2", "d3"];
trg.alive = 3;
}
for (a in trg.gun) {
if (trg.gun[a] < 0) {
trg.d[gu[a]].nextFrame();
}
}
if (trg.alive > 0) {
trg2 = ball[0];
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
enf = (xenf * xenf) + (yenf * yenf);
enf = Math.sqrt(enf);
enf = (200 - enf) / enf;
trg.xbew = trg.xbew * 0.9;
trg.ybew = trg.ybew * 0.9;
trg.rbew = trg.rbew * 0.8;
trg.xbew = trg.xbew + ((xenf * enf) * 0.01);
trg.ybew = trg.ybew + ((yenf * enf) * 0.01);
v1 = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf > 0) {
v1 = v1 + 180;
}
v1 = v1 + (trg.act * 120);
v1 = v1 - (trg.rp + trg.rbew);
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
v1 = v1 * 0.5;
v2 = 1.5;
if (v1 > v2) {
v1 = v2;
}
if (v1 < (-v2)) {
v1 = -v2;
}
trg.rbew = trg.rbew + v1;
if (((Math.abs(v1) < (v2 / 2)) && (!trg.rev)) && (enf < 225)) {
trg.lon++;
}
if (trg.lon > 9) {
trg.lon++;
} else if (trg.lon > 0) {
if ((trg.lon / 3) == Math.round(trg.lon / 3)) {
f1 = ball[e].xp;
f2 = ball[e].yp;
f4 = (((((-trg.act) * 120) + ball[e].rp) * Math.PI) / 180) + Math.PI;
f3 = Math.sin(f4);
f4 = -Math.cos(f4);
create(f1 + (f3 * 75), f2 + (f4 * 75), ball[0].rp, (f3 * 17) + ball[e].xbew, (f4 * 17) + ball[e].ybew, (Math.random() + 0.5) * 10, 8);
}
}
if ((trg.lon > 50) or (trg.gun[trg.act] < 0)) {
if (trg.gun[trg.act] < 0) {
v5 = (v3 = Math.max(Math.max(trg.gun[0], trg.gun[1]), trg.gun[2]) + 1);
} else {
v5 = (v3 = trg.gun[trg.act]);
}
v4 = trg.act;
for (a in trg.gun) {
if (((trg.gun[a] < v3) && (trg.gun[a] >= 0)) && (v4 != a)) {
v3 = trg.gun[a];
v4 = a;
}
}
trg.gun[v4] = v5 + 1;
if (trg.act == v4) {
trg.lon = -40;
} else {
trg.lon = -10;
}
trg.act = v4;
}
} else {
if (endy == undefined) {
endy = 0;
}
endy++;
if (endy > 30) {
_root.gotoAndStop(5);
}
}
} else if (trg.s == 8) {
if (trg.gh) {
trg.d.exp = 5;
trg.d.rad = 250;
trg.d.done = true;
trg.d.p = "p0";
soundy("exp2");
}
}
}
for (e in ball) {
trg = ball[e];
trg.rbew = trg.rbew * 0.99;
trg.xbew = trg.xbew * 0.99;
trg.ybew = trg.ybew * 0.99;
if ((trg.s != 3) && ((trg.s != 9) or (trg.alive <= 0))) {
trg.ybew = trg.ybew + 0.5;
}
trg.rp = trg.rp + trg.rbew;
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
trg.gh = false;
}
topz(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
a = e + 1;
while (a < ball.length) {
trg2 = ball[a];
xenf = trg2.xp - trg.xp;
siz = sizes[trg.s] + sizes[trg2.s];
if (Math.abs(xenf) < siz) {
yenf = trg2.yp - trg.yp;
if (Math.abs(xenf) < siz) {
enf = (xenf * xenf) + (yenf * yenf);
if ((enf > 0) && (enf < (siz * siz))) {
trg.gh = true;
trg2.gh = true;
v = masses[trg.s] / (masses[trg.s] + masses[trg2.s]);
vv = 1 - v;
enf = Math.sqrt(enf);
f1 = (siz - enf) / enf;
trg.xp = trg.xp - ((xenf * vv) * f1);
trg.yp = trg.yp - ((yenf * vv) * f1);
trg2.xp = trg2.xp + ((xenf * v) * f1);
trg2.yp = trg2.yp + ((yenf * v) * f1);
xbewenf = (trg2.xbew * vv) - (trg.xbew * v);
ybewenf = (trg2.ybew * vv) - (trg.ybew * v);
bewenf = (xbewenf * xbewenf) + (ybewenf * ybewenf);
if (bewenf > 0) {
bewenf = Math.sqrt(bewenf);
}
enf = bewenf / enf;
if (bewenf > 2.5) {
soundy("bh");
}
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew - (xenf * vv);
trg.ybew = trg.ybew - (yenf * vv);
trg2.xbew = trg2.xbew + (xenf * v);
trg2.ybew = trg2.ybew + (yenf * v);
xbewenf1 = (trg2.xbew * vv) + (trg.xbew * v);
ybewenf1 = (trg2.ybew * vv) + (trg.ybew * v);
trg.xbew = trg.xbew * 0.9;
trg.ybew = trg.ybew * 0.9;
trg2.xbew = trg2.xbew * 0.9;
trg2.ybew = trg2.ybew * 0.9;
trg.xbew = trg.xbew + (xbewenf1 * 0.1);
trg.ybew = trg.ybew + (ybewenf1 * 0.1);
trg2.xbew = trg2.xbew + (xbewenf1 * 0.1);
trg2.ybew = trg2.ybew + (ybewenf1 * 0.1);
enf = (xenf * xenf) + (yenf * yenf);
enf = Math.sqrt(enf);
xenf = xenf / enf;
yenf = yenf / enf;
roty = ((sizes[trg2.s] + sizes[trg.s]) * Math.PI) / 180;
f8 = (yenf * xbewenf) - (xenf * ybewenf);
f9 = (((-trg2.rbew) - trg.rbew) * roty) - f8;
f10 = (((-trg2.rbew) - trg.rbew) * roty) - (f8 * 2);
f9 = rotc(f9);
f10 = rotc(f10);
trg2.rbew = trg2.rbew + ((f10 / roty) * v);
trg2.xbew = trg2.xbew + ((yenf * f9) * v);
trg2.ybew = trg2.ybew - ((xenf * f9) * v);
trg.rbew = trg.rbew + ((f10 / roty) * vv);
trg.xbew = trg.xbew - ((yenf * f9) * vv);
trg.ybew = trg.ybew + ((xenf * f9) * vv);
if ((trg.s == 9) && (trg2.s == 2)) {
xenf = trg.xp - trg2.xp;
yenf = trg.yp - trg2.yp;
v1 = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf > 0) {
v1 = v1 + 180;
}
v1 = v1 + (trg.act * 120);
v1 = v1 - trg.rp;
while (v1 > 180) {
v1 = v1 - 360;
}
while (v1 < -180) {
v1 = v1 + 360;
}
_root.tex = v1;
if ((trg.gun[trg.act] > 0) && (Math.abs(v1) < 10)) {
trg.gun[trg.act] = -1;
trg.alive--;
trg2.d.done = true;
soundy("exp");
}
}
}
}
}
a++;
}
f1 = trg.xp;
f2 = trg.yp;
f5 = (f6 = 0);
siz = sizes[trg.s] + 2;
v1 = hard[trg.s];
a = 0;
while (a < (Math.PI*2)) {
f3 = Math.sin(a) * siz;
f4 = Math.cos(a) * siz;
if (mhit(f1 + f3, f2 + f4)) {
f5 = f5 + f3;
f6 = f6 + f4;
}
a = a + v1;
}
if ((Math.abs(f5) > 0) && (Math.abs(f6) > 0)) {
roty = (sizes[trg.s] * Math.PI) / 180;
f7 = Math.sqrt((f5 * f5) + (f6 * f6));
f5 = f5 / f7;
f6 = f6 / f7;
f8 = ((-f5) * trg.xbew) - (f6 * trg.ybew);
if (f8 < 0.5) {
trg.gh = true;
f9 = f8 * 1.8;
if (f9 < -10) {
soundy("mh");
}
trg.xbew = trg.xbew + (f5 * f9);
trg.ybew = trg.ybew + (f6 * f9);
siz = Math.sqrt((trg.xbew * trg.xbew) + (trg.ybew * trg.ybew));
if ((siz > 0) && (f8 < 0)) {
f1 = trg.xp;
f2 = trg.yp;
v2 = sizes[trg.s] - 10;
while ((!mhit(f1 + (f5 * v2), f2 + (f6 * v2))) && (v2 < (sizes[trg.s] + 10))) {
v2 = v2 + 2;
}
v2 = v2 - 2;
while ((!mhit(f1 + (f5 * v2), f2 + (f6 * v2))) && (v2 < (sizes[trg.s] + 10))) {
v2 = v2 + 0.5;
}
v2 = v2 - sizes[trg.s];
v2 = v2 * 0.6;
if (v2 > 0) {
v2 = v2 * 0.2;
}
trg.xp = trg.xp + (f5 * v2);
trg.yp = trg.yp + (f6 * v2);
f8 = (-f8) / siz;
f8 = 0.9 - (f8 * 0.5);
trg.xbew = trg.xbew * f8;
trg.ybew = trg.ybew * f8;
f8 = ((-f6) * trg.xbew) + (f5 * trg.ybew);
f9 = trg.rbew * roty;
if (trg.s == 3) {
f9 * -1;
}
f9 = f9 + f8;
f9 = rotc(f9 * 4) / 4;
if (trg.s == 3) {
trg.rbew = trg.rbew + ((f9 / roty) * 0.2);
} else {
trg.rbew = trg.rbew - (f9 / roty);
}
trg.xbew = trg.xbew + (f6 * f9);
trg.ybew = trg.ybew - (f5 * f9);
}
}
}
e++;
}
tip(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
trg._x = Math.round(trg.xp * 10) / 10;
trg._y = Math.round(trg.yp * 10) / 10;
trg.d._rotation = Math.round(trg.rp * 10) / 10;
e++;
}
_x = (_x * 0.9);
_y = (_y * 0.9);
_x = (_x + ((275 - ball[0]._x) / 10));
_y = (_y + ((200 - ball[0]._y) / 10));
v = 0.7;
bg._x = (450 * Math.round((((-_x) * (1 - v)) / 450) - 1)) - (_x * v);
bg._y = (450 * Math.round((((-_y) * (1 - v)) / 450) - 0.5)) - (_y * v);
t3d(ball[0].d.g.t1, ball[0].rp);
t3d(ball[0].d.g.t2, ball[0].rp);
t3d(ball[0].d.g.t3, ball[0].rp);
t3d(ball[0].d.t0, ball[0].rp);
t3d(ball[0].d.t1, ball[0].rp);
t3d(ball[0].d.t2, ball[0].rp);
t3d(ball[0].d.t3, ball[0].rp);
t3d(ball[0].d.t4, ball[0].rp);
ball[0].d.s._rotation = -ball[0].rp;
grenade = -1;
for (e in ball) {
trg = ball[e];
if (trg.s == 2) {
grenade = e;
t3d(trg.d.t0, trg.rp);
t3d(trg.d.t1, trg.rp);
t3d(trg.d.t2, trg.rp);
} else if (trg.s == 3) {
trg.d.r1._rotation = -trg.rp;
trg.d.r2._rotation = -trg.rp;
trg.d.r3._rotation = -trg.rp;
t3d(trg.d.t0, trg.rp);
} else if (trg.s == 6) {
t3d(trg.d.t0, trg.rp);
t3d(trg.d.t1, trg.rp);
t3d(trg.d.t2, trg.rp);
t3d(trg.d.t3, trg.rp);
t3d(trg.d.t4, trg.rp);
t3d(trg.d.t5, trg.rp);
t3d(trg.d.t6, trg.rp);
t3d(trg.d.t7, trg.rp);
t3d(trg.d.t8, trg.rp);
t3d(trg.d.t9, trg.rp);
trg.d.s._rotation = -trg.rp;
} else if (trg.s == 7) {
trg.rp = (trg.rbew = 0);
t3d(trg.t0, trg.rp);
t3d(trg.t1, trg.rp);
t3d(trg.t2, trg.rp);
} else if (trg.s == 9) {
trg.d.r0._rotation = -trg.rp;
trg.d.r1._rotation = -trg.rp;
trg.d.r2._rotation = -trg.rp;
trg.d.r3._rotation = -trg.rp;
trg.d.r4._rotation = -trg.rp;
trg.d.r5._rotation = -trg.rp;
trg.d.r6._rotation = -trg.rp;
trg.d.r7._rotation = -trg.rp;
trg.d.r8._rotation = -trg.rp;
trg.d.r9._rotation = -trg.rp;
trg.d.r10._rotation = -trg.rp;
t3d(trg.d.t0, trg.rp);
t3d(trg.d.t1, trg.rp);
t3d(trg.d.t2, trg.rp);
}
}
for (e in soundz) {
soundz[e] = soundz[e] * 0.8;
}
tip(1);
}
}
_root.g.gotoAndPlay(60);
timer = [];
alltimer = [0, 0, 0, 0, 0, 0, 0, 0, 0];
topz = function (cap) {
timer[cap] = getTimer();
};
tip = function (cap) {
alltimer[cap] = alltimer[cap] + ((getTimer() - timer[cap]) / 50);
};
bg.cacheAsBitmap = true;
m.cacheAsBitmap = true;
ballz = 0;
ball = [];
sizes = [0, 40, 12.5, 12.5, 30, 30, 30, 15, 5, 75];
masses = [0, 10, 4, 4, 10, 10, 5, 5, 4, 20];
hard = [0.01, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.25];
parz = 0;
par = [];
soundz = [];
this.createEmptyMovieClip("sou", 85);
playerx = -1500;
playery = 0;
if (_root.endisnear) {
playerx = 2000;
playery = -400;
playerx = -750;
playery = -700;
}
create(playerx, playery, 0, 0, 0, 0, 1);
ch = 0;
Mouse.removeListener();
mouseListener = new Object();
mouseListener.onMouseDown = function () {
md = true;
};
mouseListener.onMouseUp = function () {
md = false;
};
Mouse.addListener(mouseListener);
ball[0].d.g.ybew = (ball[0].rb = 0);
unpause = true;
_root.pinfo = 2;
Symbol 209 MovieClip Frame 32
if (Math.random() > 0.5) {
gotoAndPlay (25);
} else {
gotoAndPlay (1);
}
Symbol 211 MovieClip Frame 66
stop();
Symbol 216 MovieClip Frame 1
stop();
Symbol 219 Button
on (release) {
getURL ("http://www.komix-games.com/", "_blank");
}
Symbol 223 Button
on (release) {
_root.a.unpause = true;
}
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 6
_root.h.gotoAndStop(1);
Symbol 233 MovieClip Frame 9
_root.h.gotoAndStop(1);
Symbol 233 MovieClip Frame 10
_root.h.gotoAndStop(1);
Symbol 235 Button
on (release) {
prevFrame();
}
Symbol 241 Button
on (release) {
getURL ("http://www.komix-games.com/", "_blank");
}