Combined Code
movieClip 8 {
}
movieClip 10 {
}
movieClip 11 {
instance of movieClip 10 {
onClipEvent (load) {
_root.f_InsertObject(_parent, _root.a_Ladders);
}
onClipEvent (unload) {
_root.f_RemoveObject(_parent, _root.a_Ladders);
}
}
}
movieClip 12 l7 {
frame 1 {
_root.f_AddLadder(this);
gotoAndStop(2);
}
}
movieClip 14 {
instance of movieClip 10 {
onClipEvent (load) {
_root.f_InsertObject(_parent, _root.a_Platforms);
}
onClipEvent (unload) {
_root.f_RemoveObject(_parent, _root.a_Platforms);
}
}
}
movieClip 15 l4 {
frame 1 {
_root.f_AddPlatform(this, z_platform);
z_platform.diagonal = true;
z_platform.incline = true;
_root.f_GetSlope(z_platform);
if (z_platform.y_mod == undefined) {
z_platform.y_mod = 100;
}
gotoAndStop(2);
}
}
movieClip 17 l5 {
frame 1 {
_root.f_AddPlatform(this, z_platform);
z_platform.diagonal = true;
z_platform.incline = false;
_root.f_GetSlope(z_platform);
if (z_platform.y_mod == undefined) {
z_platform.y_mod = 100;
}
}
frame 2 {
stop();
}
}
movieClip 20 {
}
movieClip 21 shadow {
frame 1 {
active = true;
stop();
}
instance body of movieClip 20 {
onClipEvent (load) {
_root.f_Shadow(_parent);
}
onClipEvent (enterFrame) {
_root.f_Shadow(_parent);
}
}
frame 2 {
active = false;
}
}
movieClip 23 {
instance of movieClip 10 {
onClipEvent (load) {
_root.f_InsertObject(_parent, _root.a_Walls);
_parent._parent.w = _parent._width;
_parent._parent.h = _parent._height;
}
onClipEvent (unload) {
_root.f_RemoveObject(_parent, _root.a_Walls);
}
}
}
movieClip 24 l3 {
frame 1 {
_root.f_AddWall(this, z_wall);
_root.f_AddPlatform(this, z_platform);
w2 = z_wall._width / 2;
gotoAndStop(2);
}
}
movieClip 25 l8 {
frame 1 {
_root.f_AddWall(this, z_wall);
gotoAndStop(2);
}
}
movieClip 27 l1 {
frame 1 {
_root.f_AddPlatform(this, z_platform);
z_platform.slope = 0;
z_platform.dropthru = true;
if (z_platform.y_mod == undefined) {
z_platform.y_mod = 100;
}
gotoAndStop(2);
}
}
movieClip 28 l2 {
frame 1 {
if (!z_platform.removed) {
_root.f_AddPlatform(this, z_platform);
z_platform.slope = 0;
}
gotoAndStop(2);
}
}
movieClip 29 empty {
}
movieClip 38 {
frame 1 {
play();
}
frame 10 {
_parent.gotoAndStop('blank');
}
}
movieClip 44 {
frame 1 {
play();
}
frame 7 {
_parent.gotoAndStop('blank');
}
}
movieClip 58 {
frame 24 {
stop();
}
}
movieClip 73 {
frame 25 {
stop();
}
}
movieClip 90 {
frame 27 {
stop();
}
}
movieClip 91 {
frame 1 {
var u_size = 70 + random(30);
_xscale = u_size;
_yscale = u_size;
gotoAndStop(random(3) + 1);
}
frame 2 {
_rotation = random(360);
}
frame 3 {
_rotation = random(360);
}
}
movieClip 104 {
}
movieClip 106 {
}
movieClip 108 {
}
movieClip 110 {
frame 11 {
_parent.gotoAndStop('flameball_die');
}
instance of movieClip 108 {
onClipEvent (enterFrame) {
_root.f_ClownFireball(_parent);
}
}
frame 21 {
_parent.gotoAndStop('flameball_die');
}
}
movieClip 118 {
frame 1 {
stop();
}
}
movieClip 119 {
instance line of movieClip 118 {
onClipEvent (load) {
speed_x = _parent._parent._parent.speed_x;
speed_y = _parent._parent._parent.speed_y;
}
onClipEvent (enterFrame) {
if (_parent._parent.active) {
_width = _width + Math.sqrt(speed_x * speed_x + speed_y * speed_y);
_x = -_width;
}
}
}
}
movieClip 120 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 31 {
stop();
}
}
movieClip 122 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 133 {
}
movieClip 134 {
frame 1 {
stop();
}
}
movieClip 135 {
frame 8 {
stop();
}
}
movieClip 136 {
instance of movieClip 10 {
onClipEvent (load) {
_root.f_InsertObject(_parent._parent, _root.a_Enemies);
_parent._parent.w = _parent._width / 2;
_parent._parent.h = _parent._height;
}
onClipEvent (unload) {
_root.f_RemoveObject(_parent._parent, _root.a_Enemies);
}
}
}
movieClip 137 {
frame 6 {
_parent.gotoAndStop('remove');
}
}
movieClip 140 {
}
movieClip 141 {
}
movieClip 142 {
frame 16 {
gotoAndPlay(1);
}
}
movieClip 143 {
frame 1 {
stop();
}
frame 8 {
gotoAndPlay(1);
}
}
movieClip 146 {
}
movieClip 149 {
}
movieClip 157 {
}
movieClip 160 {
}
movieClip 161 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 169 {
}
movieClip 174 {
}
movieClip 175 {
}
movieClip 180 {
}
movieClip 181 {
}
movieClip 182 {
frame 1 {
blood._alpha = _root.chainsawblood;
}
}
movieClip 183 {
frame 1 {
body.body.gotoAndStop(1);
body.blood.gotoAndStop(1);
}
}
movieClip 186 {
}
movieClip 188 {
}
movieClip 190 {
}
movieClip 192 {
frame 1 {
_root.f_SetGunHand(this);
}
}
movieClip 194 {
frame 1 {
if (_parent._parent._parent._parent._parent._parent.pipe) {
gotoAndStop('blank');
} else {
_root.f_SetGunHand(this);
}
}
}
movieClip 195 {
}
movieClip 196 {
frame 7 {
_parent.gotoAndStop('idle');
}
}
movieClip 197 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_root.gunshooting = false;
}
}
movieClip 198 {
frame 1 {
stop();
}
frame 102 {
_root.f_SetGun(this);
}
}
movieClip 200 {
}
movieClip 201 {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 205 {
}
movieClip 213 {
frame 8 {
stop();
}
}
movieClip 214 {
frame 14 {
stop();
}
}
movieClip 231 {
frame 14 {
stop();
}
}
movieClip 234 {
}
movieClip 285 {
frame 26 {
stop();
}
}
movieClip 286 {
frame 15 {
stop();
}
}
movieClip 310 {
frame 24 {
stop();
}
}
movieClip 328 {
frame 28 {
stop();
}
}
movieClip 343 {
frame 20 {
stop();
}
}
movieClip 356 {
frame 13 {
stop();
}
}
movieClip 357 {
}
movieClip 358 {
}
movieClip 370 {
frame 24 {
_parent.gotoAndStop('blank');
}
}
movieClip 373 {
}
movieClip 374 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 375 {
frame 40 {
gotoAndPlay(1);
}
}
movieClip 376 {
frame 1 {
body.gotoAndPlay(random(38) + 1);
}
frame 21 {
_parent.gotoAndStop('blank');
}
}
movieClip 377 {
frame 10 {
stop();
}
}
movieClip 388 {
frame 16 {
stop();
}
}
movieClip 391 {
}
movieClip 392 {
frame 16 {
stop();
}
}
movieClip 394 {
}
movieClip 395 {
frame 16 {
stop();
}
}
movieClip 407 {
}
movieClip 417 {
}
movieClip 418 {
}
movieClip 419 {
}
movieClip 420 {
frame 21 {
stop();
}
}
movieClip 424 {
frame 4 {
stop();
}
}
movieClip 429 {
frame 1 {
play();
}
frame 6 {
_parent.gotoAndStop('remove');
}
}
movieClip 432 {
}
movieClip 433 {
frame 8 {
stop();
}
}
movieClip 459 {
frame 36 {
stop();
}
}
movieClip 470 {
frame 16 {
stop();
}
}
movieClip 475 {
frame 1 {
gotoAndStop(random(4) + 1);
}
}
movieClip 476 {
frame 32 {
_parent.gotoAndStop('blank');
}
}
movieClip 477 fx {
frame 1 {
stop();
}
frame 4 {
if (victim.face_type == 5) {
gotoAndStop('blood_y');
}
}
frame 5 {
noturn = true;
u_size = 80 + random(20);
body._xscale = u_size;
body._yscale = u_size;
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Bullet(_parent);
}
}
frame 6 {
noturn = true;
line.active = true;
line.gotoAndStop(1);
line.line.line.gotoAndStop(gun_type);
}
frame 7 {
noturn = true;
line.active = true;
line.gotoAndStop(1);
line.line.line.gotoAndStop(gun_type);
}
frame 8 {
noturn = true;
line.active = true;
line.gotoAndStop(1);
line.line.line.gotoAndStop(gun_type);
}
frame 9 {
noturn = true;
line.active = true;
line.gotoAndStop(1);
line.line.line.gotoAndStop(gun_type);
}
frame 10 {
scale = random(60) + 90;
body._xscale = scale;
body._yscale = scale;
body._rotation = random(360);
if (line.active) {
line.active = false;
line.gotoAndPlay(2);
} else {
line.gotoAndStop('blank');
}
if (!owner.goodguy) {
body.body.gotoAndStop(2);
}
}
frame 11 {
if (line.active) {
line.active = false;
line.gotoAndPlay(2);
} else {
line.gotoAndStop('blank');
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Bullet(_parent);
}
}
frame 13 {
noturn = false;
}
instance of movieClip 108 {
onClipEvent (load) {
_parent.speed_y -= 10;
}
onClipEvent (enterFrame) {
_parent.speed_y += 2;
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Shrapnel(_parent);
}
}
frame 20 {
body._xscale = u_size;
body._yscale = u_size;
}
frame 21 {
_root.s_explosion2.start(0, 0);
}
frame 22 {
if (victim.face_type == 5) {
gotoAndStop('chainsawblood_y');
} else {
body._rotation = random(360);
}
}
frame 23 {
var u_scale = 70 + random(30);
body._rotation = random(50) - 25;
body._xscale = u_scale;
body._yscale = u_scale;
}
frame 24 {
if (!owner.goodguy) {
body.body.gotoAndStop(2);
}
}
frame 25 {
if (!owner.goodguy) {
body.body.gotoAndStop(2);
}
}
frame 31 {
body._rotation = random(360);
}
frame 34 {
var u_scale = 70 + random(30);
body._xscale = u_scale;
body._yscale = u_scale;
}
instance body of movieClip 420 {
onClipEvent (enterFrame) {
_parent._x += _parent.force_x;
_parent._y += _parent.force_y;
}
}
instance of movieClip 108 {
onClipEvent (enterFrame) {
_root.f_BloodShrapnel(_parent);
}
}
}
button 483 {
on (release) {
com.newgrounds.API.loadNewgrounds();
}
}
movieClip 489 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (865 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -67 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 374;
-= 28;
var eval( != 287) = true;
-= 514;
+= 348;
+= 608;
-= 521;
-= 268;
-= 160;
-= 678;
+= 737;
+= 747;
-= 291;
+= 270;
+= 302;
-= 204;
-= 753;
+= 398;
-= 819;
-= 748;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
!'';
eval(true);
}
}
movieClip 490 {
frame 11 {
gotoAndPlay(1);
}
}
movieClip 491 Flash Ad (NewgroundsAPI) {
#initclip
Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd);
#endinitclip
}
movieClip 519 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2892 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -160 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 121;
+= 93;
+= 246;
-= 382;
-= 147;
+= 208;
+= 89;
-= 786;
+= 713;
+= 421;
+= 632;
+= 170;
-= 505;
-= 131;
+= 308;
var = 1;
-= 763;
-= 219;
-= 263;
+= 510;
+= 775;
-= 327;
+= 46;
-= 421;
+= 250;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 177;
true;
'';
eval(!true);
true;
}
}
movieClip 521 {
frame 10 {
stop();
}
}
movieClip 523 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 525 {
}
movieClip 527 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 534 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (737 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 9 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 132;
-= 891;
var eval( != 235) = true;
+= 345;
+= 166;
// An attempt to read a value from empty stack
+= 77;
+= 206;
-= 422;
-= 355;
-= 135;
-= 235;
-= 105;
-= 669;
+= 29;
-= 171;
-= 128;
+= 953;
-= 490;
+= 556;
-= 54;
-= 408;
+= 401;
+= 185;
+= 252;
+= 541;
+= 568;
-= 293;
-= 318;
-= 688;
-= 425;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!undefined;
true;
true;
'';
true;
'';
eval(1);
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2142 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 78 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 609;
+= 436;
+= 231;
+= 5;
+= 93;
+= 176;
+= 286;
-= 784;
+= 356;
+= 909;
-= 455;
+= 716;
-= 447;
+= 515;
+= 342;
+= 890;
-= 600;
-= 210;
var eval(1) = true;
-= 347;
-= 25;
-= 224;
-= 252;
-= 791;
-= 170;
-= 121;
-= 150;
-= 549;
-= 124;
-= 859;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 176;
true;
!true;
true;
'';
;
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 540 NewgroundsAPIAsset_Login_Warning {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2309 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 253 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 105;
+= 855;
+= 520;
+= 184;
-= 889;
-= 443;
var eval(true) = '';
-= 669;
-= 472;
+= 117;
+= 423;
+= 503;
-= 308;
+= 574;
-= 739;
+= 231;
-= 419;
+= 63;
-= 24;
+= 346;
-= 46;
+= 151;
+= 275;
-= 2;
-= 338;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval( != 518);
'';
!1;
true;
true;
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 543 NewgroundsAPIAsset_Connection_Error {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1793 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 705 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 568;
+= 3;
-= 156;
+= 917;
-= 334;
+= 421;
-= 509;
+= 266;
+= 482;
+= 39;
+= 216;
-= 595;
var = eval(!1);
-= 616;
-= 339;
+= 62;
-= 73;
-= 724;
+= 346;
-= 468;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 965;
true;
true;
'';
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 545 {
}
movieClip 547 {
}
movieClip 549 {
}
movieClip 551 {
}
movieClip 553 {
}
movieClip 555 {
}
movieClip 557 {
}
movieClip 559 {
}
movieClip 561 {
}
movieClip 563 {
}
movieClip 564 NewgroundsAPIAsset_big_popup_background {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (827 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 669 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 86;
+= 812;
+= 156;
-= 229;
-= 400;
-= 450;
+= 77;
-= 377;
+= 565;
-= 221;
-= 116;
-= 534;
+= 234;
-= 553;
+= 145;
-= 96;
+= 96;
+= 666;
+= 162;
+= 199;
+= 165;
-= 47;
-= 105;
+= 166;
var = 1;
-= 111;
-= 30;
+= 364;
-= 18;
-= 779;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 985;
!true;
true;
true;
true;
;
}
}
button 568 {
on (release) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2726 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 118 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 703;
-= 63;
+= 37;
-= 852;
-= 553;
-= 15;
+= 840;
+= 107;
-= 319;
-= 280;
-= 74;
+= 115;
+= 315;
+= 448;
+= 215;
-= 481;
-= 40;
-= 136;
+= 357;
+= 53;
-= 355;
var eval(true) = true;
-= 221;
-= 732;
+= 183;
-= 21;
-= 243;
+= 530;
+= 682;
-= 833;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 289;
eval(!true);
true;
'';
'';
1;
}
}
button 574 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 576 NewgroundsAsset_New_Version_Available {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (980 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -291 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 237;
+= 80;
-= 86;
-= 744;
-= 541;
+= 96;
+= 723;
-= 947;
var eval( != 178) = eval(!true);
+= 553;
+= 317;
+= 419;
+= 713;
+= 16;
-= 541;
+= 471;
-= 807;
+= 75;
-= 332;
-= 116;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
true;
'';
}
}
button 577 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 581 NewgroundsAsset_Illegal_Host {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2307 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -142 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 383;
+= 45;
+= 276;
-= 104;
var eval( != 121) = !true;
+= 305;
+= 176;
+= 243;
+= 6;
-= 560;
+= 388;
+= 359;
+= 409;
-= 527;
+= 561;
-= 903;
-= 615;
-= 315;
+= 89;
-= 203;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
eval(true);
'';
1;
}
}
movieClip 582 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
stop();
}
button 592 {
on (release) {
com.newgrounds.API.loadCustomLink('Madness2010');
}
}
movieClip 593 {
}
movieClip 595 {
}
movieClip 599 {
}
button 602 {
on (release) {
_root.gotoAndStop('title');
}
}
movieClip 603 {
frame 1 {
stop();
}
instance of movieClip 599 {
onClipEvent (load) {
_parent.bar._xscale = 1;
if (_root.getBytesLoaded() / _root.getBytesTotal() == 1) {
_parent.gotoAndStop('loaded');
}
}
onClipEvent (enterFrame) {
var loaded = _root.getBytesLoaded() / _root.getBytesTotal();
_parent.bar._xscale = 100 * loaded;
if (loaded == 1) {
_parent.gotoAndStop('loaded');
}
}
}
frame 2 {
stop();
}
}
instance of movieClip 582 API Connector (NewgroundsAPI) {
onClipEvent (construct) {
api_id = '13929:7Kmqkiv8';
encryption_key = 'GdOkOWQBFhsNSWvoejDPme0Y4OHc1dEG';
version = '';
fake_session = false;
debug = false;
error_screens = true;
medal_popups = true;
}
}
instance of movieClip 491 Flash Ad (NewgroundsAPI) {
onClipEvent (construct) {
show_background = false;
}
}
movieClip 493 __Packages.com.newgrounds.API {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1221 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -124 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 2;
+= 873;
-= 166;
-= 198;
-= 23;
-= 2;
+= 506;
-= 165;
-= 39;
-= 518;
-= 616;
+= 404;
+= 30;
-= 168;
-= 233;
+= 6;
-= 571;
-= 371;
-= 24;
+= 400;
-= 310;
var eval(!eval(true)) = true;
+= 137;
-= 108;
-= 171;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 75;
true;
'';
'';
1;
#endinitclip
}
movieClip 494 __Packages.com.newgrounds.Bridge {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1997 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -85 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 70;
+= 224;
-= 487;
+= 618;
-= 490;
var = 1;
-= 518;
-= 35;
-= 154;
+= 366;
+= 383;
+= 300;
-= 287;
-= 102;
+= 627;
+= 192;
+= 35;
-= 220;
-= 100;
-= 78;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 379;
true;
true;
!;
#endinitclip
}
movieClip 495 __Packages.com.newgrounds.SaveFile {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1727 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -55 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 289;
+= 502;
+= 446;
-= 253;
-= 546;
-= 85;
+= 39;
+= 170;
+= 307;
+= 725;
-= 268;
-= 476;
+= 392;
-= 457;
+= 99;
+= 384;
+= 491;
+= 155;
-= 669;
-= 191;
-= 135;
-= 188;
-= 550;
+= 561;
+= 83;
+= 781;
-= 44;
var eval(true) = true;
+= 453;
-= 581;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 139;
true;
!eval(true);
'';
'';
1;
#endinitclip
}
movieClip 496 __Packages.com.newgrounds.SaveGroup {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1082 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 408;
-= 333;
+= 281;
-= 224;
+= 36;
+= 148;
-= 150;
+= 281;
+= 299;
-= 293;
-= 282;
-= 262;
+= 690;
+= 266;
+= 205;
-= 883;
+= 5;
+= 192;
-= 741;
-= 301;
+= 473;
-= 823;
var = true;
-= 327;
+= 240;
+= 492;
-= 250;
+= 878;
-= 18;
-= 125;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 33;
true;
true;
true;
'';
eval(!1);
#endinitclip
}
movieClip 499 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1695 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 421 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 204;
-= 34;
-= 762;
+= 171;
-= 90;
-= 70;
-= 309;
+= 788;
+= 231;
+= 121;
+= 346;
-= 252;
-= 512;
+= 490;
+= 17;
-= 345;
var eval(eval(true)) = '';
-= 552;
+= 53;
-= 370;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 583;
true;
'';
!1;
#endinitclip
}
movieClip 501 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2740 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 685 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 455;
+= 296;
-= 41;
-= 568;
-= 61;
+= 883;
var eval( != 870) = true;
+= 688;
// An attempt to read a value from empty stack
-= 151;
-= 114;
+= 143;
-= 732;
+= 82;
-= 50;
-= 647;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!eval(undefined);
'';
'';
1;
#endinitclip
}
movieClip 500 __Packages.com.newgrounds.encoders.BaseN {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (263 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 299 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 403;
+= 52;
+= 325;
+= 833;
+= 527;
+= 269;
var = eval(1);
-= 765;
+= 470;
+= 332;
+= 41;
+= 149;
-= 537;
-= 676;
+= 577;
+= 112;
-= 273;
-= 581;
-= 634;
-= 497;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 562;
!true;
'';
true;
#endinitclip
}
movieClip 510 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (595 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 240 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 240;
+= 101;
+= 17;
+= 436;
+= 433;
+= 89;
-= 505;
-= 62;
-= 158;
-= 288;
-= 530;
-= 515;
-= 668;
+= 630;
var = eval(1);
+= 168;
+= 125;
+= 295;
+= 7;
-= 31;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 324;
true;
!'';
true;
#endinitclip
}
movieClip 498 __Packages.com.newgrounds.APIEvent {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1375 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 491 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 510;
+= 788;
+= 790;
-= 302;
-= 28;
+= 369;
+= 599;
-= 112;
-= 824;
-= 155;
-= 596;
+= 34;
-= 185;
-= 49;
+= 313;
-= 105;
-= 658;
-= 134;
-= 99;
+= 280;
var eval(eval(!true)) = true;
-= 230;
+= 43;
-= 625;
-= 688;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 844;
true;
'';
'';
1;
#endinitclip
}
movieClip 492 __Packages.com.newgrounds.APIError {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (678 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 334 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 48;
+= 492;
-= 713;
-= 296;
+= 614;
-= 866;
+= 525;
+= 405;
-= 100;
-= 521;
-= 607;
+= 329;
+= 556;
-= 109;
+= 562;
-= 716;
+= 939;
+= 443;
+= 98;
-= 182;
-= 136;
+= 153;
var eval(eval(true)) = '';
-= 654;
-= 976;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 501;
!true;
'';
1;
true;
#endinitclip
}
movieClip 1453 __Packages.ScreenOverlay {
#initclip
if (!_global.ScreenOverlay) {
var v1 = function (parent) {
if (parent == null) {
parent = _root;
}
this._scale = 1;
this._scaleMatrix = new flash.geom.Matrix(this._scale, 0, 0, this._scale, 0, 0);
this._inverseScaleMatrix = new flash.geom.Matrix(1 / this._scale, 0, 0, 1 / this._scale, 0, 0);
this._overlayContainerMatrix = new flash.geom.Matrix();
this._overlayClips = [];
this._overlayParent = parent;
this.createBitmaps(parent);
this._overlayMatrix = new flash.geom.Matrix();
this._overlayColorTransform = new flash.geom.ColorTransform();
this._overlayBlendMode = 'normal';
this._overlayFilter = null;
this._onTop = true;
this._accumulate = true;
this._iterations = 1;
this._overlayFunction = null;
this._overlayDepth = ScreenOverlay._curOverlayDepth;
++ScreenOverlay._curOverlayDepth;
this._drawMatrix = new flash.geom.Matrix();
this._drawColorTransform = new flash.geom.ColorTransform();
ScreenOverlay._screenOverlays.push(this);
};
_global.ScreenOverlay = v1;
var v2 = v1.prototype;
v2.start = function () {
this._started = true;
this._overlayDisplay.fillRect(this._overlayDisplay.rectangle, 0);
};
v2.stop = function () {
this._started = false;
this._overlayContainer._visible = false;
};
v2.setClipsVisible = function (b) {
var v2 = 0;
while (v2 < this._overlayClips.length) {
this._overlayClips[v2]._visible = b;
++v2;
}
};
v2.__get__started = function () {
return this._started;
};
v2.__get__overlayClips = function () {
return this._overlayClips;
};
v2.__set__overlayClips = function (a) {
if (!a) {
a = [];
}
this._overlayClips = a;
return this.__get__overlayClips();
};
v2.__get__overlayMatrix = function () {
return this._overlayMatrix;
};
v2.__set__overlayMatrix = function (m) {
this._overlayMatrix = m;
return this.__get__overlayMatrix();
};
v2.__get__overlayColorTransform = function () {
return this._overlayColorTransform;
};
v2.__set__overlayColorTransform = function (c) {
this._overlayColorTransform = c;
return this.__get__overlayColorTransform();
};
v2.__get__overlayBlendMode = function () {
return this._overlayBlendMode;
};
v2.__set__overlayBlendMode = function (b) {
this._overlayBlendMode = b;
return this.__get__overlayBlendMode();
};
v2.__get__overlayFilter = function () {
return this._overlayFilter;
};
v2.__set__overlayFilter = function (f) {
this._overlayFilter = f;
return this.__get__overlayFilter();
};
v2.__get__overlayFunction = function () {
return this._overlayFunction;
};
v2.__set__overlayFunction = function (f) {
this._overlayFunction = f;
return this.__get__overlayFunction();
};
v2.__get__overlayParent = function () {
return this._overlayParent;
};
v2.__set__overlayParent = function (m) {
this._overlayParent = m;
this.createBitmaps(this._overlayParent);
return this.__get__overlayParent();
};
v2.__get__accumulate = function () {
return this._accumulate;
};
v2.__set__accumulate = function (b) {
this._accumulate = b;
return this.__get__accumulate();
};
v2.__get__iterations = function () {
return this._iterations;
};
v2.__set__iterations = function (n) {
this._iterations = Math.floor(n);
if (this._iterations < 1) {
this._iterations = 1;
}
return this.__get__iterations();
};
v2.__get__scale = function () {
return this._scale;
};
v2.__set__scale = function (n) {
this._scale = n;
if (this._scale < 0.1) {
this._scale = 0.1;
}
if (this._scale > 1) {
this._scale = 1;
}
this._scaleMatrix = new flash.geom.Matrix(this._scale, 0, 0, this._scale, 0, 0);
this._inverseScaleMatrix = new flash.geom.Matrix(1 / this._scale, 0, 0, 1 / this._scale, 0, 0);
this.createBitmaps(this._overlayParent);
return this.__get__scale();
};
v2.resetParameters = function () {
this._overlayColorTransform = new flash.geom.ColorTransform();
this._overlayMatrix = new flash.geom.Matrix();
this._overlayFilter = null;
this._overlayBlendMode = 'normal';
this._overlayFunction = null;
this._iterations = 1;
this._accumulate = true;
};
v2.createBitmaps = function (parent) {
if (this._overlayDisplay) {
this._overlayDisplay.dispose();
}
if (this._overlayBuffer) {
this._overlayBuffer.dispose();
}
if (this._overlayContainer) {
this._overlayContainer.removeMovieClip();
}
this._overlayDisplay = new flash.display.BitmapData(Math.ceil(Stage.width * this._scale), Math.ceil(Stage.height * this._scale), true, 0);
this._overlayBuffer = new flash.display.BitmapData(Math.ceil(Stage.width * this._scale), Math.ceil(Stage.height * this._scale), true, 0);
this._overlayContainer = parent.createEmptyMovieClip('overlay', this._overlayDepth);
this._overlayContainer.attachBitmap(this._overlayDisplay, 0, 'auto', true);
};
v1.tick = function () {
var v1 = 0;
while (v1 < ScreenOverlay._screenOverlays.length) {
ScreenOverlay._screenOverlays[v1].render();
++v1;
}
};
v2.drawClip = function (clip, buffer) {
var v2 = clip.transform.concatenatedMatrix;
v2.concat(this._scaleMatrix);
buffer.draw(clip, v2);
};
v2.render = function () {
if (!this._started) {
return undefined;
}
this._overlayContainer._visible = false;
this._overlayContainerMatrix.identity();
this._overlayContainerMatrix.concat(this._inverseScaleMatrix);
var v3 = this._overlayParent.transform.concatenatedMatrix;
v3.invert();
this._overlayContainerMatrix.concat(v3);
this._overlayContainer.transform.matrix = this._overlayContainerMatrix;
this._overlayDisplay.fillRect(this._overlayDisplay.rectangle, 0);
if (!this._accumulate) {
this._overlayBuffer.fillRect(this._overlayBuffer.rectangle, 0);
var v2 = 0;
while (v2 < this._overlayClips.length) {
this.drawClip(this._overlayClips[v2], this._overlayBuffer);
++v2;
}
}
this._drawMatrix.a = 1;
this._drawMatrix.b = 0;
this._drawMatrix.c = 0;
this._drawMatrix.d = 1;
this._drawMatrix.tx = 0;
this._drawMatrix.ty = 0;
this._drawColorTransform.alphaMultiplier = 1;
this._drawColorTransform.redMultiplier = 1;
this._drawColorTransform.greenMultiplier = 1;
this._drawColorTransform.blueMultiplier = 1;
this._drawColorTransform.alphaOffset = 0;
this._drawColorTransform.redOffset = 0;
this._drawColorTransform.greenOffset = 0;
this._drawColorTransform.blueOffset = 0;
if (this._overlayFunction) {
this._overlayFunction(this._overlayBuffer);
}
v2 = 0;
while (v2 < this._iterations) {
this._drawMatrix.translate(-Stage.width / 2, -Stage.height / 2);
this._drawMatrix.concat(this._overlayMatrix);
this._drawMatrix.translate(Stage.width / 2, Stage.height / 2);
this._drawColorTransform.concat(this._overlayColorTransform);
if (this._overlayFilter) {
this._overlayBuffer.applyFilter(this._overlayBuffer, this._overlayBuffer.rectangle, ScreenOverlay.ORIGIN, this._overlayFilter);
}
this._overlayDisplay.draw(this._overlayBuffer, this._drawMatrix, this._drawColorTransform, this._overlayBlendMode, this._overlayDisplay.rectangle, true);
++v2;
}
if (this._accumulate) {
this._overlayBuffer.fillRect(this._overlayBuffer.rectangle, 0);
v2 = 0;
while (v2 < this._overlayClips.length) {
this.drawClip(this._overlayClips[v2], this._overlayBuffer);
++v2;
}
this._overlayBuffer.copyPixels(this._overlayDisplay, this._overlayDisplay.rectangle, ScreenOverlay.ORIGIN, null, null, true);
}
this._overlayContainer._visible = true;
};
v2.dispose = function () {
stop();
var v2 = 0;
while (v2 < ScreenOverlay._screenOverlays.length) {
if (ScreenOverlay._screenOverlays[v2] == this) {
ScreenOverlay._screenOverlays.splice(v2, 1);
break;
}
++v2;
}
if (this._overlayDisplay) {
this._overlayDisplay.dispose();
}
if (this._overlayBuffer) {
this._overlayBuffer.dispose();
}
if (this._overlayContainer) {
this._overlayContainer.removeMovieClip();
}
this._overlayClips = [];
this._overlayDisplay = null;
this._overlayBuffer = null;
this._overlayContainer = null;
this._overlayMatrix = null;
this._drawMatrix = null;
this._overlayParent = null;
this._overlayColorTransform = null;
this._overlayFilter = null;
this._overlayFunction = null;
this._scaleMatrix = null;
this._inverseScaleMatrix = null;
this._overlayContainerMatrix = null;
};
v1._screenOverlays = [];
v2._overlayDepth = 9999990;
v1._curOverlayDepth = 999990;
v1.ORIGIN = new flash.geom.Point();
v2.addProperty('accumulate', v2.__get__accumulate, v2.__set__accumulate);
v2.addProperty('iterations', v2.__get__iterations, v2.__set__iterations);
v2.addProperty('overlayBlendMode', v2.__get__overlayBlendMode, v2.__set__overlayBlendMode);
v2.addProperty('overlayClips', v2.__get__overlayClips, v2.__set__overlayClips);
v2.addProperty('overlayColorTransform', v2.__get__overlayColorTransform, v2.__set__overlayColorTransform);
v2.addProperty('overlayFilter', v2.__get__overlayFilter, v2.__set__overlayFilter);
v2.addProperty('overlayFunction', v2.__get__overlayFunction, v2.__set__overlayFunction);
v2.addProperty('overlayMatrix', v2.__get__overlayMatrix, v2.__set__overlayMatrix);
v2.addProperty('overlayParent', v2.__get__overlayParent, v2.__set__overlayParent);
v2.addProperty('scale', v2.__get__scale, v2.__set__scale);
v2.addProperty('started', v2.__get__started, function () {});
ASSetPropFlags(_global.ScreenOverlay.prototype, null, 1);
}
#endinitclip
}
movieClip 478 __Packages.com.newgrounds.components.FlashAd {
#initclip
label -12920:
Unknown action: 0xfc
function () {
= (2350 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -239 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 67) {
+= 206;
true;
}
if ( == 957) {
-= 70;
for (;;) {
if ( != 822) break;
-= 332;
goto 1233;
break;
if ( == 224) {
+= 663;
}
if ( == 713) {
-= 489;
goto -12920;
}
if ( == 968) {
-= 675;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 529;
}
if ( == 475) {
+= 342;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( == 293) {
+= 529;
}
if ( == 273) {
+= 440;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
-= 489;
}
if ( == 887) {
+= 66;
'';
1;
}
if ( == 817) {
+= 151;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 490) break;
-= 490;
if ( == 7) {
+= 468;
'';
}
if ( == 953) {
-= 946;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
label 1233:
#endinitclip
}
movieClip 497 __Packages.com.newgrounds.ValidationTools {
#initclip
label -26616:
label -18260:
Unknown action: 0xfc
function () {
= (872 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 209 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 570) {
+= 407;
true;
}
if ( == 588) {
+= 333;
break;
for (;;) {
break;
if ( != 945) break;
-= 518;
if ( == 643) {
+= 302;
}
if ( == 977) {
+= 2;
if (!true) {
goto 395;
}
-= 336;
label 395:
}
if ( != 490) break;
+= 455;
if ( == 413) {
+= 175;
}
if ( == 979) {
-= 336;
goto -26616;
}
if ( != 509) break;
+= 420;
if ( == 921) {
-= 921;
}
if ( == 951) {
-= 22;
}
if ( != 929) goto 976;
-= 800;
label 976:
if ( == 427) {
+= 326;
for (;;) {
}
}
if ( == 115) {
+= 298;
}
if ( != 477) break;
-= 362;
if ( != 753) break;
-= 244;
goto -18260;
if ( != 129) goto 1299;
+= 221;
var = !1;
label 1299:
-= 220;
if ('') goto 1406;
+= 347;
}
true;
eval( != 350);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1406:
Unknown action: 0xfc
#endinitclip
}
movieClip 502 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
label -24576:
label -8740:
label -7850:
Unknown action: 0xfc
function () {
= (2879 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -58 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 266) {
+= 423;
true;
}
if ( == 650) {
-= 578;
for (;;) {
if ( == 694) {
-= 583;
// An attempt to read a value from empty stack
if (!undefined) {
goto 285;
}
+= 400;
label 285:
}
if ( == 511) {
+= 259;
}
if ( == 370) {
+= 10;
// An attempt to read a value from empty stack
eval(undefined);
}
if ( != 111) break;
+= 400;
break;
if ( == 72) {
+= 729;
'';
1;
}
if ( == 531) {
-= 272;
true;
}
if ( == 250) {
+= 664;
continue;
} else {
if ( == 684) {
-= 434;
}
if ( == 380) {
+= 39;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 678) goto 1094;
-= 390;
goto -8740;
label 1094:
if ( == 799) {
for (;;) {
-= 88;
}
}
if ( != 187) goto 1242;
-= 115;
label 1242:
if ( == 259) {
+= 419;
for (;;) {
}
}
if ( != 307) break;
+= 145;
if ( != 801) goto 1442;
-= 169;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
label 1442:
-= 61;
goto -7850;
if ( == 711) {
+= 265;
for (;;) {
}
}
-= 20;
goto -24576;
-= 54;
+= 85;
for (;;) {
+= 29;
if (!true) {
-= 229;
}
}
+= 164;
+= 242;
+= 91;
-= 262;
-= 914;
!= 460;
!= 288;
true;
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 503 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
label -12747:
label -9404:
label -4687:
Unknown action: 0xfc
function () {
= (1433 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -183 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 228) {
+= 628;
true;
}
if ( == 546) {
-= 425;
for (;;) {
if ( == 301) {
-= 203;
}
if ( == 209) {
-= 88;
}
if ( == 856) {
-= 233;
// An attempt to read a value from empty stack
if (!undefined) {
goto 404;
}
-= 322;
label 404:
}
if ( == 581) {
+= 297;
// An attempt to read a value from empty stack
if (!undefined) {
break;
}
+= 11;
}
if ( == 623) {
-= 322;
goto -12747;
}
if ( != 878) break;
+= 11;
goto -9404;
if ( == 640) {
-= 542;
}
if ( == 953) {
-= 744;
goto -4687;
}
if ( != 351) break;
-= 108;
if ( == 98) {
+= 412;
true;
}
if ( == 889) {
-= 786;
}
if ( != 510) break;
+= 443;
goto 1443;
label 1443:
if ( == 857) {
-= 491;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 121) break;
+= 460;
if ( != 492) goto 1633;
-= 389;
label 1633:
+= 581;
if (1) goto 1745;
-= 448;
var eval( != 103) = '';
label 1745:
+= 298;
while (!eval( != 559)) {
-= 15;
}
if ( != 236) goto 1935;
+= 323;
label 1935:
+= 481;
continue;
goto 2046;
-= 724;
}
true;
'';
!= 243;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
#endinitclip
}
movieClip 504 __Packages.com.newgrounds.encoders.LZW {
#initclip
label -28718:
label -18054:
Unknown action: 0xfc
function () {
= (423 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 264 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 687) {
-= 521;
true;
}
if ( == 755) {
-= 183;
for (;;) {
if ( == 166) {
-= 96;
// An attempt to read a value from empty stack
if (!undefined) {
goto 498;
}
+= 343;
label 498:
}
if ( == 154) {
-= 30;
// An attempt to read a value from empty stack
if (undefined) break;
goto 581;
+= 21;
label 581:
}
if ( == 28) {
+= 239;
true;
}
if ( == 291) {
-= 52;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
-= 183;
}
if ( == 56) {
+= 165;
continue;
break;
}
} else {}
-= 601;
if ( == 823) {
-= 666;
}
if ( == 239) {
+= 343;
if ( == 70) {
}
if ( != 962) break;
-= 139;
// An attempt to read a value from empty stack
var eval(undefined) = true;
if ( == 776) {
-= 589;
}
if ( == 187) {
+= 775;
'';
1;
}
if ( != 124) break;
+= 21;
goto -18054;
if ( == 732) {
+= 23;
}
if ( != 413) break;
-= 385;
if ( != 554) goto 1345;
+= 201;
label 1345:
+= 712;
if (eval( != 157)) goto 1481;
-= 832;
label 1481:
for (;;) {
if ( == 267) {
+= 2;
}
}
if ( == 145) {
+= 42;
}
if ( != 869) goto 1665;
-= 578;
// An attempt to read a value from empty stack
label 1665:
-= 221;
+= 463;
goto -28718;
}
!undefined;
!= 221;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 505 __Packages.com.newgrounds.Medal {
#initclip
label -28148:
label -22556:
label -8216:
Unknown action: 0xfc
function () {
= (1006 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 522) {
+= 73;
true;
}
if ( == 157) {
+= 134;
for (;;) {
if ( == 438) {
-= 431;
// An attempt to read a value from empty stack
if (!undefined) {
goto 298;
}
+= 261;
label 298:
}
if ( == 595) {
-= 475;
// An attempt to read a value from empty stack
if (undefined) break;
continue;
+= 495;
}
if ( == 290) {
-= 141;
true;
}
if ( == 603) {
-= 165;
true;
}
if ( != 152) break;
+= 159;
if ( == 149) {
+= 145;
if (!'') {
goto 630;
}
+= 686;
label 630:
}
if ( != 615) break;
-= 325;
if ( == 443) {
-= 291;
// An attempt to read a value from empty stack
var eval(undefined) = '';
}
if ( == 311) {
+= 488;
}
if ( != 291) break;
+= 152;
if ( == 7) {
+= 261;
goto -8216;
}
if ( == 691) {
-= 379;
continue;
break;
}
if ( != 799) break;
-= 775;
if ( == 24) {
+= 952;
if (1) {
} else {
-= 285;
}
}
if ( == 268) {
+= 23;
}
if ( == 976) {
-= 285;
}
if ( == 898) {
-= 295;
}
if ( == 980) {
-= 377;
}
if ( == 312) {
-= 312;
}
if ( == 294) {
+= 686;
goto -22556;
}
+= 237;
+= 495;
goto -28148;
}
'' ::: ;
'';
!1;
!= 53;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 506 __Packages.com.newgrounds.ScoreBoard {
#initclip
label -18524:
label -3364:
label -2396:
Unknown action: 0xfc
function () {
= (1967 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -285 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 149) {
-= 13;
true;
}
if ( == 389) {
-= 92;
for (;;) {
if ( == 470) {
-= 190;
}
if ( != 868) break;
-= 291;
if ( != 871) break;
-= 482;
if ( == 202) {
+= 73;
goto -2396;
}
if ( != 707) break;
-= 318;
if ( == 97) {
+= 610;
break;
}
if ( != 280) goto 663;
+= 45;
label 663:
if ( == 325) {
-= 228;
for (;;) {
}
}
if ( == 140) {
-= 133;
}
if ( != 749) goto 1215;
-= 487;
label 1215:
-= 318;
-= 80;
-= 134;
if ( == 262) {
+= 367;
}
if ( == 67) {
+= 135;
goto 1542;
label 1542:
}
if ( != 297) goto 1598;
+= 554;
var eval(true) = == 895;
label 1598:
if ( == 275) {
+= 474;
}
if ( != 851) goto 1704;
+= 137;
label 1704:
-= 75;
goto -18524;
-= 538;
-= 510;
for (;;) {
-= 26;
}
if ( == 136) {
+= 834;
}
if ( != 629) goto 2085;
+= 189;
goto -3364;
label 2085:
-= 688;
+= 615;
continue;
for (;;) {
}
-= 622;
}
'';
1;
true;
'';
!= 970;
true;
eval( != 988);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 507 __Packages.com.newgrounds.Score {
#initclip
label -4136:
Unknown action: 0xfc
function () {
= (145 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 543 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 688) {
-= 276;
true;
}
if ( == 236) {
-= 668;
for (;;) {
if ( == 704) {
+= 197;
// An attempt to read a value from empty stack
!undefined;
}
} else {}
+= 63;
if ( == 421) {
+= 104;
if ( == 846) {
}
if ( == 412) {
+= 303;
// An attempt to read a value from empty stack
if (!undefined) {
} else {
+= 9;
}
}
if ( == 567) {
+= 278;
continue;
break;
}
} else {}
+= 425;
// An attempt to read a value from empty stack
if (!undefined) {
} else {
+= 104;
}
if ( == 967) {
-= 569;
if ( == 805) {
}
if ( != 241) break;
+= 564;
// An attempt to read a value from empty stack
if (!undefined) {
} else {
-= 569;
}
if ( == 724) {
-= 231;
}
if ( == 230) {
+= 337;
}
if ( == 950) {
-= 664;
}
if ( != 876) break;
-= 590;
if ( == 901) {
-= 671;
// An attempt to read a value from empty stack
if (undefined) goto 1353;
goto 1376;
label 1353:
+= 337;
label 1376:
}
if ( == 687) {
-= 570;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
}
if ( == 493) {
-= 72;
true;
}
if ( == 299) {
+= 388;
'';
1;
}
if ( == 286) {
-= 45;
true;
}
if ( != 117) goto 1659;
+= 196;
label 1659:
if ( == 869) {
-= 376;
}
if ( != 313) goto 1786;
+= 391;
label 1786:
-= 845;
+= 9;
goto -4136;
}
;
!= 845;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 508 __Packages.com.newgrounds.encoders.RC4 {
#initclip
label -11626:
label -6204:
Unknown action: 0xfc
function () {
= (38 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 295 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 333) {
+= 438;
true;
}
if ( == 783) {
-= 417;
// An attempt to read a value from empty stack
if ( == 563) {
for (;;) {
goto 235;
+= 254;
label 235:
if ( == 61) {
+= 722;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 144) {
+= 847;
}
if ( == 47) {
+= 97;
goto -6204;
}
} else {}
+= 39;
if (!undefined) {
+= 22;
if ( == 566) {
}
if ( == 135) {
+= 428;
// An attempt to read a value from empty stack
var eval(undefined) = '';
}
if ( == 263) {
+= 303;
if (!'') {
break;
}
+= 22;
}
if ( == 184) {
+= 807;
}
if ( == 588) {
-= 62;
}
if ( != 991) break;
-= 542;
if ( == 449) {
-= 291;
if (true) goto 879;
continue;
label 879:
+= 282;
}
if ( == 853) {
-= 806;
if (!true) {
} else {
+= 97;
}
}
if ( == 602) {
-= 541;
}
if ( == 366) {
+= 254;
}
if ( == 978) {
-= 361;
break;
}
if ( == 930) {
-= 404;
}
if ( == 158) {
+= 282;
goto -11626;
}
+= 327;
if (true) goto 1650;
-= 28;
label 1650:
+= 441;
+= 764;
for (;;) {
if ( == 440) {
+= 207;
}
}
-= 746;
-= 478;
continue;
goto 2145;
-= 142;
-= 351;
-= 326;
}
'';
true ::: eval(true);
!= 526;
true;
!= 881;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
#endinitclip
}
movieClip 509 __Packages.com.newgrounds.encoders.JSON {
#initclip
label -24047:
label -20489:
label -6491:
Unknown action: 0xfc
function () {
= (1418 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 14 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 410) {
-= 391;
true;
}
if ( == 448) {
+= 143;
for (;;) {
if ( == 539) {
-= 505;
}
if ( == 315) {
+= 112;
// An attempt to read a value from empty stack
!undefined;
}
if ( == 19) {
+= 627;
// An attempt to read a value from empty stack
if (!undefined) {
continue;
}
-= 198;
}
if ( != 82) break;
+= 233;
// An attempt to read a value from empty stack
if ( == 646) {
-= 198;
goto -24047;
}
if ( == 653) {
-= 587;
}
if ( == 803) {
-= 212;
}
if ( != 832) break;
-= 179;
if ( == 591) {
-= 195;
}
if ( == 843) {
-= 765;
goto -6491;
}
-= 340;
-= 40;
var eval( != 422) = '';
for (;;) {
if (!eval(undefined)) {
+= 447;
}
}
-= 157;
-= 25;
goto -20489;
+= 575;
+= 272;
if ( == 427) {
+= 112;
}
while ( == 66) {
+= 138;
}
if ( != 179) goto 2989;
+= 11;
label 2989:
+= 400;
continue;
goto 3100;
-= 434;
}
!= 347;
'';
1;
!= 34;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Unknown action: 0xfc
#endinitclip
}
movieClip 511 __Packages.com.newgrounds.encoders.MD5 {
#initclip
label -11414:
label -3695:
Unknown action: 0xfc
function () {
= (2764 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 750 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 959) {
-= 281;
true;
}
if ( == 419) {
-= 77;
// An attempt to read a value from empty stack
for (;;) {
if ( == 816) {
-= 462;
goto -3695;
}
if ( == 678) {
-= 340;
if (eval(undefined)) break;
break;
-= 261;
}
if ( != 338) break;
-= 261;
goto -11414;
if ( == 185) {
+= 234;
}
if ( == 191) {
+= 177;
}
if ( == 658) {
+= 132;
}
if ( == 823) {
-= 632;
if (!eval(undefined)) {
break;
}
+= 177;
}
if ( == 928) {
-= 918;
}
if ( != 864) break;
-= 48;
if (!eval(undefined)) {
} else {
-= 462;
}
if ( == 588) {
+= 340;
}
if ( == 354) {
+= 574;
}
if ( == 790) {
+= 74;
true;
}
if ( != 10) break;
+= 175;
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
var eval(undefined) = undefined;
if ( == 77) {
+= 713;
}
if ( == 342) {
+= 481;
// An attempt to read a value from empty stack
!undefined;
}
if ( != 368) goto 1432;
+= 341;
break;
break;
label 1432:
if ( != 709) goto 1483;
-= 709;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
label 1483:
Unknown action: 0xfc
#endinitclip
}
movieClip 512 __Packages.com.newgrounds.components.APIConnector {
#initclip
label -3076:
Unknown action: 0xfc
function () {
= (2421 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -320 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 57) {
+= 233;
true;
}
if ( == 605) {
-= 3;
// An attempt to read a value from empty stack
for (;;) {
if ( == 269) {
+= 360;
}
if ( != 290) break;
-= 110;
if (!eval(undefined)) {
continue;
}
+= 810;
if ( != 731) break;
-= 470;
// An attempt to read a value from empty stack
if (!undefined) {
goto 419;
}
+= 69;
label 419:
if ( == 411) {
+= 197;
'';
}
if ( == 259) {
+= 218;
goto -3076;
}
if ( == 440) {
+= 141;
true;
}
} else {}
-= 340;
// An attempt to read a value from empty stack
if ( == 229) {
+= 810;
if ( == 180) {
}
if ( == 425) {
-= 14;
// An attempt to read a value from empty stack
var eval(undefined) = !undefined;
}
} else {}
+= 40;
if ( == 608) {
if ( == 990) {
-= 374;
}
if ( != 876) break;
-= 617;
goto 930;
label 930:
if ( == 581) {
-= 352;
// An attempt to read a value from empty stack
if (undefined) goto 990;
goto 1013;
label 990:
+= 40;
label 1013:
}
if ( == 665) {
-= 158;
continue;
} else {
if ( == 629) {
+= 247;
true;
}
if ( != 477) break;
-= 2;
if ( == 265) {
-= 68;
goto 1256;
label 1256:
}
if ( == 197) {
+= 468;
}
if ( != 151) break;
+= 478;
if ( != 733) goto 2457;
-= 117;
label 2457:
+= 115;
+= 317;
+= 110;
+= 69;
break;
+= 291;
-= 50;
-= 507;
!= 616;
true;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!undefined;
#endinitclip
}
movieClip 685 {
frame 1 {
stop();
}
}
movieClip 689 {
}
movieClip 690 {
}
movieClip 698 {
frame 1 {
body.gotoAndStop(_parent.gun_type);
}
frame 165 {
body._visible = false;
}
frame 166 {
body._visible = true;
}
frame 169 {
body._visible = false;
}
frame 170 {
body._visible = true;
}
frame 173 {
body._visible = false;
}
frame 174 {
body._visible = true;
}
frame 176 {
body._visible = false;
}
frame 177 {
body._visible = true;
}
frame 179 {
body._visible = false;
}
frame 180 {
body._visible = true;
}
frame 182 {
body._visible = false;
}
frame 183 {
body._visible = true;
}
frame 185 {
body._visible = false;
}
frame 186 {
body._visible = true;
}
frame 187 {
body._visible = false;
}
frame 188 {
body._visible = true;
}
frame 189 {
body._visible = false;
}
frame 190 {
body._visible = true;
}
frame 191 {
body._visible = false;
}
frame 192 {
body._visible = true;
}
frame 193 {
body._visible = false;
}
frame 194 {
body._visible = true;
}
frame 195 {
body._visible = false;
}
frame 196 {
body._visible = true;
}
frame 197 {
body._visible = false;
}
frame 198 {
body._visible = true;
}
frame 199 {
_parent.active = false;
_root.f_ObjectPop(_parent, _root.a_Items);
_parent.gotoAndStop('blank');
}
}
movieClip 701 {
}
movieClip 703 item {
frame 1 {
_root.f_AddNeutral(this);
x = _x;
y = _y;
nojumpanim = true;
launch = -12;
isitem = true;
}
frame 2 {
gotoAndStop('blank');
}
frame 3 {
fp_Pickup = _root.f_PickupCrack;
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_PickupItem(_parent);
}
}
frame 4 {
fp_Pickup = _root.f_PickupDefense;
}
frame 5 {
fp_Pickup = _root.f_PickupAttack;
}
frame 6 {
fp_Pickup = _root.f_PickupHealthMaxUp;
}
frame 7 {
fp_Pickup = _root.f_GetGun1;
weapon = true;
}
frame 8 {
fp_Pickup = _root.f_GetGun2;
weapon = true;
}
frame 9 {
fp_Pickup = _root.f_GetGun3;
weapon = true;
}
frame 10 {
fp_Pickup = _root.f_GetGun4;
weapon = true;
}
frame 11 {
fp_Pickup = _root.f_GetGun5;
weapon = true;
}
frame 12 {
fp_Pickup = _root.f_GetGun6;
weapon = true;
}
frame 13 {
fp_Pickup = _root.f_GetGun30;
weapon = true;
}
frame 14 {
fp_Pickup = _root.f_EatHotdog;
}
frame 15 {
fp_Pickup = _root.f_GetGun101;
}
}
frame 4 {
function f_SurvivalInit(zone) {
rotation_current = 0;
rotation_timer = 0;
rotation_speed_default = 0.25;
rotation_speed = rotation_speed_default;
spawn_timer_default = 60;
spawn_timer = 0;
a_WaveText = new Array(0);
a_WaveText[1] = 'Practice';
a_WaveText[5] = 'Hydraulics';
a_WaveText[11] = 'Got Ammo?';
a_WaveText[21] = 'Moar Zombies';
a_WaveText[31] = 'Attack up?';
a_WaveText[45] = 'Around We Go!';
a_WaveText[50] = 'The End?';
}
function f_SurvivalAction(zone) {
var v3 = false;
if (rotation_max != 0) {
if (rotation_lock) {
if (rotation_current < rotation_max) {
rotation_current += rotation_speed;
rotation_current = f_Max(rotation_current, rotation_max);
v3 = true;
} else {
if (rotation_current > rotation_max) {
rotation_current -= rotation_speed;
rotation_current = f_Min(rotation_current, rotation_max);
}
}
} else {
if (rotation_loop) {
v3 = true;
++rotation_timer;
if (rotation_timer > 1) {
if (rotation_current < rotation_max) {
rotation_current += rotation_speed;
if (rotation_current >= rotation_max) {
rotation_current = rotation_max;
rotation_timer = 0;
rotation_max *= -1;
}
} else {
if (rotation_current > rotation_max) {
rotation_current -= rotation_speed;
if (rotation_current <= rotation_max) {
rotation_current = rotation_max;
rotation_timer = 0;
rotation_max *= -1;
}
}
}
} else {
if (rotation_current > 0) {
rotation_current -= rotation_speed;
rotation_current = f_Min(rotation_current, 0);
} else {
if (rotation_current < 0) {
rotation_current += rotation_speed;
rotation_current = f_Max(rotation_current, 0);
}
}
}
} else {
if (rotation_current > 0) {
rotation_current -= rotation_speed_default;
rotation_current = f_Min(rotation_current, 0);
v3 = true;
} else {
if (rotation_current < 0) {
rotation_current += rotation_speed_default;
rotation_current = f_Max(rotation_current, 0);
v3 = true;
}
}
}
}
game.game._rotation = rotation_current;
game.game.bg0._rotation = -rotation_current;
game.game.bg0.bg0.piston1._rotation = rotation_current;
game.game.bg0.bg0.piston2._rotation = rotation_current;
game.game.bg1._rotation = -rotation_current;
if (rotation_current != 0) {
f_MoveH(p1, rotation_current);
for (var v2 in a_Enemies) {
var v1 = a_Enemies[v2];
if (v1.invincible_timer <= 0) {
f_MoveH(v1, rotation_current);
if (v1.y > abs_bottom._y + 400) {
v1.health = 0;
v1.alive = false;
v1.fp_HitGround(v1);
}
}
}
for (v2 in a_Items) {
v1 = a_Items[v2];
f_MoveH(v1, rotation_current);
}
}
for (v2 in a_Items) {
v1 = a_Items[v2];
if (!v1.platform) {
if (!f_PY(v1, v1.speed_y)) {
f_MoveV(v1, v1.speed_y);
v1.speed_y += 1;
} else {
v1.speed_y = 0;
}
}
}
}
if (v3) {
game.game.bg0.bg0.machine.gotoAndStop('on');
} else {
game.game.bg0.bg0.machine.gotoAndStop('off');
}
if (menutime) {
return undefined;
}
if (a_Enemies.length == 1 and kills == kills_goal - 1 and a_Enemies[0].invincible_timer <= 0 and wave % 5 != 0) {
camera.prey = game.game.chase_cam;
v1 = a_Enemies[0];
f_ScaleFollow(p1, v1, survival_scale, survival_min);
f_CameraFollow(p1, v1, game.game.chase_cam);
} else {
camera.prey = p1;
target_scale = survival_scale;
}
if (wait_timer > 0) {
--wait_timer;
if (wait_timer <= 0) {
nextwave = false;
kills_goal += wave;
wavebg.gotoAndPlay('off');
wavetext = '';
if (wave % 5 == 0) {
rotation_max = f_Max(wave, 30);
rotation_loop = true;
} else {
rotation_max = 0;
}
}
if (wait_timer == 30) {
v2 = 1;
while (v2 <= turret_total) {
v1 = game.game['t' + v2];
if (v1.level > 0) {
v1.active = true;
v1.gotoAndStop('on');
v1.body.gotoAndStop(v1.level);
v1.body.body.gotoAndPlay('on');
} else {
v1.gotoAndStop('blank');
}
++v2;
}
}
}
}
function f_SurvivalSpawn(zone) {
--spawn_timer;
if (spawn_timer <= 0) {
if (kills + a_Enemies.length < kills_goal) {
if (a_Enemies.length < 8) {
var v1 = game.game['door' + (random(4) + 1)];
v1.spawns = 1;
v1.gotoAndPlay('open');
spawn_timer = spawn_timer_default;
}
} else {
if (kills >= kills_goal and !nextwave) {
nextwave = true;
rotation_lock = false;
rotation_loop = false;
spin_cycle = false;
if (wave > 0) {
f_MenuTime();
} else {
f_MenuDone();
}
}
}
}
}
function f_SurvivalEnemy(zone) {
if (makeclown and kills > kills_goal - 10) {
makeclown = false;
var v1 = 6;
} else {
if (wave != 1 and wave % 10 == 1) {
var v1 = 3;
} else {
if (wave <= 5) {
var v1 = random(2) + 1;
} else {
var v1 = random(3) + 1;
if (v1 == 3) {
v1 = 5;
}
}
}
}
if (zone._x < p1.x) {
var v2 = f_NewEnemy(zone._x - 50, zone._y, v1);
if (v2._xscale < 0) {
v2._xscale *= -1;
}
} else {
var v2 = f_NewEnemy(zone._x + 50, zone._y, v1);
if (v2._xscale > 0) {
v2._xscale *= -1;
}
}
v2.autowalk_timer = 20;
v2.invincible_timer = 10;
}
function f_MenuTime() {
f_GunText();
camera.prey = game.game.centerpoint;
target_scale = survival_min;
game.game.bg1.gotoAndPlay('green');
menutime = true;
f_FadeSong(song3.song);
f_BackupStats();
f_Save();
if (wave == 40 and !win) {
win = true;
wavebutton.gotoAndStop('win');
} else {
wavebutton.gotoAndStop('on');
}
}
function f_MenuDone() {
target_scale = survival_scale;
game.game.bg1.gotoAndPlay('red');
menutime = false;
wavebutton.gotoAndStop('off');
f_SetGuns();
++wave;
if (a_WaveText[wave]) {
wavetext = 'Wave ' + wave + ': ' + a_WaveText[wave];
} else {
wavetext = 'Wave ' + wave;
}
wavebg.gotoAndPlay('on');
wait_timer = 120;
spawn_timer_default -= 2;
spawn_timer_default = f_Min(spawn_timer_default, 20);
if (wave != 1 and wave % 10 == 1) {
makeclown = true;
f_ChangeSong(song5.song);
} else {
if (wave % 5 == 0) {
f_ChangeSong(song6.song);
} else {
if (wave % 3 == 0) {
f_ChangeSong(song4.song);
} else {
if (wave % 2 == 0) {
f_ChangeSong(song1.song);
} else {
f_ChangeSong(song2.song);
}
}
}
}
}
function f_Turret(zone) {
--zone.timer;
if (zone.timer <= 0) {
zone.shoot = false;
for (var v3 in a_Enemies) {
var v2 = a_Enemies[v3];
if (Math.abs(v2.y - zone._y) < 40) {
if (v2.invincible_timer <= 0) {
if (zone._xscale > 0) {
if (v2.x > zone._x + 60) {
zone.body.body.gotoAndPlay('shoot');
zone.timer = zone.timer_default;
return undefined;
}
} else {
if (v2.x < zone._x - 60) {
zone.body.body.gotoAndPlay('shoot');
zone.timer = zone.timer_default;
return undefined;
}
}
}
}
}
}
}
function f_TurretInit(zone) {
zone.bullet_name = 'bullet2';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 30;
zone.force_mod = 1;
zone.force_x = 1;
zone.cost = 100;
if (zone._name == 't1' or zone._name == 't4' or zone._name == 't5') {
zone._xscale *= -1;
}
zone.ammo_pow = 1;
zone.timer_default = 60;
zone.timer = zone.timer_default;
var v2 = 2;
while (v2 <= zone.level) {
zone.ammo_pow += 0.2;
zone.timer_default -= 5;
zone.timer_default = f_Min(zone.timer_default, 30);
++v2;
}
zone.gotoAndStop('blank');
}
function f_HasTurret() {
var v1 = 1;
while (v1 <= turret_total) {
if (game.game['t' + v1].level > 0) {
return true;
}
++v1;
}
return false;
}
function f_GunText() {
var v2 = 1;
while (v2 <= turret_total) {
var v3 = game.game['t' + v2];
if (v3.level == 0) {
_root['text_t' + v2] = 'BUY #' + v2 + ' $' + v3.cost;
} else {
if (v3.level < 5) {
_root['text_t' + v2] = 'LV' + (v3.level + 1) + ' #' + v2 + ' $' + f_UpgradePrice(v3);
} else {
_root['text_t' + v2] = 'MAXED OUT';
}
}
++v2;
}
text_healthup = 'HEA UP $' + f_HealthCost();
if (p1.speed_x_max < 50) {
text_speedup = 'SPD UP $' + f_SpeedCost();
} else {
text_speedup = 'MAX SPEED';
}
if (p1.attack < 20) {
text_attackup = 'ATK UP $' + f_AttackCost();
} else {
text_attackup = 'MAX ATTACK';
}
if (doublejump == 1) {
text_jumpup = '3RD JUMP $' + f_JumpCost();
} else {
if (doublejump < 8) {
text_jumpup = doublejump + 2 + 'TH JUMP $' + f_JumpCost();
} else {
text_jumpup = 'MAX JUMP';
}
}
}
function f_UpgradeGun(num) {
zone = game.game['t' + num];
if (zone.level == 0) {
if (money >= zone.cost) {
money -= zone.cost;
zone.level = 1;
zone.gotoAndStop('upgrade');
f_Buy();
} else {
f_NoBuy();
}
} else {
if (zone.level < 5) {
if (money >= f_UpgradePrice(zone)) {
money -= f_UpgradePrice(zone);
++zone.level;
zone.ammo_pow += 0.2;
zone.timer_default -= 5;
zone.timer_default = f_Min(zone.timer_default, 30);
f_Buy();
} else {
f_NoBuy();
}
}
}
f_GunText();
}
function f_RollOverGun(num) {
u_temp = game.game['t' + num];
if (u_temp.level > 0) {
u_temp.gotoAndStop('upgrade');
} else {
u_temp.gotoAndStop('buy');
}
}
function f_SetGuns() {
var v1 = 1;
while (v1 <= turret_total) {
u_temp = game.game['t' + v1];
if (u_temp.level > 0) {
u_temp.gotoAndStop('off');
u_temp.body.gotoAndStop(u_temp.level);
if (u_temp.active) {
u_temp.active = false;
u_temp.body.body.gotoAndPlay('off');
} else {
u_temp.body.body.gotoAndStop(1);
}
} else {
u_temp.gotoAndStop('blank');
}
++v1;
}
}
function f_UpgradePrice(zone) {
return int(zone.cost * 0.75 * zone.level);
}
function f_GeneralBullet(zone, bp) {
u_point.x = 0;
u_point.y = 0;
bp.localToGlobal(u_point);
game.game.globalToLocal(u_point);
var v4 = u_point.x;
var v3 = u_point.y;
var v1 = f_FX(v4, v3, zone.y - 1, zone.bullet_name, 100, 100);
v1.x = v1._x;
v1.y = v1._y;
v1.h = v1._height;
v1.w = 10;
v1.w2 = 2;
v1.damage_val = zone.ammo_pow;
v1.owner = p1;
v1.gun_type = zone.gun_type;
v1.speed_y = 0;
v1.speed_x = 0;
v1.bullet = true;
v1.explosion_type = zone.explosion_type;
v1.explosion2_type = zone.explosion2_type;
v1.force_mod = zone.force_mod;
v1.speed_x = zone.bullet_speed;
v1.speed_y = 0;
if (zone._xscale < 0) {
v1._xscale *= -1;
v1.speed_x *= -1;
v1.force_x *= -1;
}
v1.force_x = v1.force_x;
v1.force_y = v1.speed_y;
if (v1.force_y < 3 and v1.force_y > -12 and v1.force_mod > 1) {
v1.force_y = -12;
}
if (general_bullet_sound <= 0) {
general_bullet_sound = 2;
}
}
function f_HealthCost() {
return p1.health_max * 5;
}
function f_UpgradeHealth() {
u_temp = f_HealthCost();
if (money >= u_temp) {
money -= u_temp;
++p1.health_max;
f_Buy();
} else {
f_NoBuy();
}
f_GunText();
}
function f_SpeedCost() {
return p1.speed_x_max * 5;
}
function f_UpgradeSpeed() {
if (p1.speed_x_max < 50) {
u_temp = f_SpeedCost();
if (money >= u_temp) {
money -= u_temp;
++p1.speed_x_max;
f_Buy();
} else {
f_NoBuy();
}
} else {
f_NoBuy();
}
f_GunText();
}
function f_AttackCost() {
return p1.attack * 100;
}
function f_UpgradeAttack() {
if (p1.attack < 20) {
u_temp = f_AttackCost();
if (money >= u_temp) {
money -= u_temp;
++p1.attack;
p1.damage_val = p1.attack;
f_Buy();
} else {
f_NoBuy();
}
} else {
f_NoBuy();
}
f_GunText();
}
function f_JumpCost() {
return f_Max(200 + doublejump * 100, 999);
}
function f_UpgradeJump() {
if (doublejump < 8) {
u_temp = f_JumpCost();
if (money >= u_temp) {
money -= u_temp;
++doublejump;
f_Buy();
} else {
f_NoBuy();
}
} else {
f_NoBuy();
}
f_GunText();
}
function f_FirstAid(percent) {
if (p1.health < p1.health_max) {
if (percent == 0.25) {
var v1 = 20;
} else {
if (percent == 0.5) {
var v1 = 35;
} else {
if (percent == 1) {
var v1 = 50;
}
}
}
if (v1 and money >= v1) {
money -= v1;
p1.health += int(p1.health_max * percent);
p1.health = f_Max(p1.health, p1.health_max);
health.gotoAndPlay(2);
f_Buy();
} else {
f_NoBuy();
}
} else {
f_NoBuy();
}
}
function f_GetMoney() {
money += wave + 5;
}
function f_Max(val, max_val) {
if (val > max_val) {
return max_val;
} else {
return val;
}
}
function f_Min(val, min_val) {
if (val < min_val) {
return min_val;
} else {
return val;
}
}
function f_ExplosionTime(zone, range_x, range_y) {
zone.hit_damage_val = 1;
zone.force_y = -(20 + random(10));
zone.force_x = random(10) - 5;
for (n in a_Enemies) {
var v1 = a_Enemies[n];
if (v1.humanoid and v1 != zone.victim) {
if (Math.abs(v1.x - zone._x) < range_x) {
if (Math.abs(v1.y - zone.y) < range_y) {
v1.hitby = zone;
v1.fp_Hit1(v1);
}
}
}
}
}
function f_NewEnemy(x, y, enemy_type) {
var v3 = 1;
while (game.game['e' + v3]) {
var v1 = game.game['e' + v3];
if (!v1.active) {
v1.x = x;
v1._x = x;
v1.y = y;
v1._y = y;
v1.shot_timer = undefined;
v1.shot_total_default = undefined;
v1.goframe = undefined;
if (enemy_type == 5) {
v1.face_type = 5;
v1.head_type = 1;
v1.body_type = 5;
} else {
if (enemy_type == 3) {
v1.face_type = 3;
v1.head_type = 3;
v1.body_type = 3;
} else {
if (enemy_type == 2) {
v1.face_type = 2;
v1.head_type = 1;
v1.body_type = 2;
} else {
if (enemy_type == 1) {
v1.face_type = 1;
v1.head_type = 1;
v1.body_type = 1;
} else {
if (enemy_type == 6) {
v1.face_type = 6;
v1.head_type = 6;
v1.body_type = 3;
}
}
}
}
}
if (currentlevel == 'level1_27') {
v1.gun_type = undefined;
v1.phase = 1;
} else {
if (enemy_type != 3) {
v1.gun_type = f_RandomGun();
v1.phase = 3;
} else {
v1.hasgun = false;
v1.gun_type = 100;
v1.phase = 3;
}
}
v1.gotoAndStop('activate');
return v1;
}
++v3;
}
}
function f_KillEnemies() {
for (var v2 in a_Enemies) {
var v1 = a_Enemies[v2];
if (v1.humanoid) {
v1.health = 0;
v1.alive = false;
f_TossInit(v1, 0, -10);
}
}
}
function f_PunchSound() {
this['s_punch' + (random(2) + 1)].start(0, 0);
}
function f_MakeZombies() {
for (n in a_EnemiesLog) {
var v1 = a_EnemiesLog[n];
v1.body.gotoAndPlay('zombie');
}
}
function f_ShakeY(value) {
if (shake_y < value) {
shake_y = value;
}
}
function f_ShakeX(value) {
if (shake_x < value) {
shake_x = value;
}
}
function f_DamagePlayer(value) {
p1.health -= value;
if (p1.health <= 0) {
p1.alive = false;
p1.health = 0;
}
health.gotoAndPlay(2);
}
function f_Quality(zone) {
if (Key.isDown(81)) {
if (!zone.active) {
zone.active = true;
zone.timer = 90;
if (zone.i == 1) {
_quality = 'low';
zone.i = 2;
zone.gotoAndStop('l');
} else {
if (zone.i == 2) {
_quality = 'high';
zone.i = 3;
zone.gotoAndStop('h');
} else {
zone.i = 1;
_quality = 'medium';
zone.gotoAndStop('m');
}
}
}
} else {
zone.active = false;
}
}
function f_SetForceX(zone, force_x) {
if (zone._xscale > 0) {
zone.force_x = force_x;
} else {
zone.force_x = -force_x;
}
}
function f_HealthBeam(zone) {
if (Math.abs(zone._x - p1.x) < 100) {
if (p1.y < zone._y) {
if (p1.y >= zone._y - 300) {
f_Health(p1, 1);
var v2 = 60 + random(40);
var v3 = f_FX(zone._x - 70 + random(140), zone._y - 20, zone._y - 5, 'pixel_health', v2, v2);
v3.speed_y = -(4 + random(14));
}
}
}
}
function f_GetPlayerClip(zone) {
if (zone._parent._parent.container) {
return zone._parent;
} else {
if (zone._parent._parent._parent.container) {
return zone._parent._parent;
} else {
if (zone._parent._parent._parent._parent.container) {
return zone._parent._parent._parent;
} else {
if (zone._parent._parent._parent._parent._parent.container) {
return zone._parent._parent._parent._parent;
} else {
if (zone._parent._parent._parent._parent._parent._parent.container) {
return zone._parent._parent._parent._parent._parent;
} else {
if (zone._parent._parent._parent._parent._parent._parent._parent.container) {
return zone._parent._parent._parent._parent._parent._parent;
} else {
if (zone._parent._parent._parent._parent._parent._parent._parent._parent.container) {
return zone._parent._parent._parent._parent._parent._parent._parent;
}
}
}
}
}
}
}
}
function f_SetGun(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.gun_type);
}
function f_SetFace(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.face_type);
}
function f_SetBody(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.body_type);
}
function f_SetHand(zone) {
var v1 = f_GetPlayerClip(zone);
if (v1.hasgun) {
zone.gotoAndStop(100);
} else {
zone.gotoAndStop(v1.body_type);
}
}
function f_SetGunHand(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.body_type);
}
function f_SetHead(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.head_type);
}
function f_Gun(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.gun_type);
}
function f_Thruster(zone) {
var v1 = f_GetPlayerClip(zone);
zone.gotoAndStop(v1.thruster_type);
}
function f_EatHotdog(zone, u_temp) {
s_eat.start(0, 0);
f_DamagePlayer(-3);
f_FX(u_temp.x, u_temp.y, zone.y + 10, 'plusone', 100, 100);
}
function f_RandomGun() {
return random(6) + 1;
}
function f_GetGun1(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 1;
zone.gun_timer = 3;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'bullet1';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 35;
zone.ammo_pow = 1;
zone.force_mod = 1;
zone.shot_total_default = 3;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 80;
} else {
zone.ammo = 50;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun2(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 2;
zone.gun_timer = 30;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'bullet3';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 35;
zone.ammo_pow = 3;
zone.force_mod = 2;
zone.shot_total_default = 2;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 16;
} else {
zone.ammo = 8;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun3(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 3;
zone.gun_timer = 2;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'bullet2';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 30;
zone.ammo_pow = 1;
zone.force_mod = 1;
zone.shot_total_default = 3;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 100;
} else {
zone.ammo = 60;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun4(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 4;
zone.gun_timer = 2;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'flameball';
zone.explosion_type = 'flameball_die';
zone.explosion2_type = 'flameball_die';
zone.bullet_speed = 16;
zone.ammo_pow = 1;
zone.force_mod = 1;
zone.shot_total_default = 5;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 150;
} else {
zone.ammo = 100;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun5(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 5;
zone.gun_timer = 99999;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'grenade';
zone.explosion_type = 'explosion_grenade';
zone.explosion2_type = 'explosion_grenade';
zone.bullet_speed = 20;
zone.ammo_pow = 6;
zone.force_mod = 4;
zone.shot_total_default = 1;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 20;
} else {
zone.ammo = 12;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun6(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 6;
zone.gun_timer = 20;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'bullet2';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 40;
zone.ammo_pow = 2;
zone.force_mod = 3;
zone.shot_total_default = 1;
if (!gun) {
if (gamemode == 2) {
zone.ammo = 30;
} else {
zone.ammo = 20;
}
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun30(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 30;
zone.gun_timer = 2;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'chainshot';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'chainblood';
zone.bullet_speed = 20;
zone.ammo_pow = 1;
zone.force_mod = 1;
s_chainsaw.s_chainsaw3.start(0, 9999);
if (!gun) {
zone.ammo = 700;
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun31(zone, gun) {
f_PlayerDropGun(zone);
zone.gun_type = 31;
zone.gun_timer = 2;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = 'bullet1';
zone.explosion_type = 'explosion_small';
zone.explosion2_type = 'explosion2_small';
zone.bullet_speed = 35;
zone.ammo_pow = 1;
zone.force_mod = 1;
if (!gun) {
zone.ammo = 100;
} else {
zone.ammo = gun.ammo;
}
}
function f_GetGun101(zone, gun) {
zone.gun_type = 101;
zone.gun_timer = 2;
zone.gun.gun.gun.gotoAndStop(zone.gun_type);
zone.bullet_name = '';
zone.explosion_type = '';
zone.explosion2_type = '';
zone.bullet_speed = 20;
zone.ammo_pow = 1;
zone.force_mod = 1;
}
function f_InRange(zone, x_range, y_range) {
if (Math.abs(zone.x - zone.prey.x) <= x_range) {
if (Math.abs(zone.y - zone.prey.y) <= y_range) {
return true;
}
}
return false;
}
function f_EnemiesWait() {
for (n in a_Enemies) {
var v1 = a_Enemies[n];
v1.wait = true;
}
}
function f_EnemiesWaitEnd() {
for (n in a_Enemies) {
var v1 = a_Enemies[n];
v1.wait = false;
}
}
function f_DiagonalSpringboard(zone) {
var v3 = false;
for (n in a_Enemies) {
var v2 = a_Enemies[n];
if (v2.platform) {
if (Math.abs(v2.x - zone._x) < zone._width / 2) {
if (v2.y <= zone._y) {
if (v2.y >= zone._y - zone._height) {
if (zone._xscale > 0) {
v3 = true;
if (v2._xscale < 0) {
v2._xscale *= -1;
}
f_ForceJump(v2, 20, -38);
} else {
if (v2._xscale > 0) {
v2._xscale *= -1;
}
f_ForceJump(v2, -20, -38);
}
}
}
}
}
}
for (n in a_Players) {
v2 = a_Players[n];
if (v2.platform) {
if (Math.abs(v2.x - zone._x) < zone._width / 2) {
if (v2.y <= zone._y) {
if (v2.y >= zone._y - zone._height) {
if (zone._xscale > 0) {
v3 = true;
if (v2._xscale < 0) {
v2._xscale *= -1;
}
f_ForceJump(v2, 20, -38);
} else {
if (v2._xscale > 0) {
v2._xscale *= -1;
}
f_ForceJump(v2, -20, -38);
}
}
}
}
}
}
if (v3) {
s_spring.start(0, 0);
zone.bumper.gotoAndPlay(2);
}
}
function f_BulletImpactSound(zone) {
if (zone.texture == 100) {
return undefined;
}
++current_hit;
if (current_hit > 3) {
current_hit = 1;
}
if (!zone.texture) {
zone.texture = level_texture;
}
if (zone.texture == 1) {
_root['s_hit_dirt' + current_hit].start(0, 0);
} else {
if (zone.texture == 2) {
_root['s_hit_metal' + current_hit].start(0, 0);
} else {
if (zone.texture == 3) {
_root['s_hit_default' + current_hit].start(0, 0);
} else {
if (zone.texture == 4) {
_root['s_bullethitbody' + (random(2) + 1)].start(0, 0);
}
}
}
}
}
function f_Bullet(zone) {
if (zone.speed_x != 0) {
var v3 = f_W(zone, zone.speed_x);
if (v3 != zone.speed_x) {
zone.y += zone.speed_y;
zone._y = zone.y;
zone.x += zone.speed_x;
zone._x = zone.x;
f_BulletImpactSound(zone.wall_pt);
zone.gotoAndStop(zone.explosion_type);
return undefined;
} else {
for (n in a_Slopes) {
var v4 = a_Slopes[n];
var v2 = v4.w;
var v7 = v4.h;
var v6 = v4.x;
var v5 = v4.y;
if (zone.x + zone._width / 2 >= v6 - v2 and zone.x - zone._width / 2 <= v6 + v2) {
if (zone.y <= v5 and zone.y >= v5 - v7) {
if (v4.incline) {
var v11 = 1 - (zone.y - v5) / v7;
var v12 = v6 + v2 * v11;
v11 = (zone.x - (v6 - v2)) / v2 * 2;
var v9 = v5 - v7 * v11;
} else {
var v11 = 1 - Math.abs(zone.y - v5) / v7;
var v12 = v6 - v2 + v2 * 2 * v11;
v11 = 1 - (zone.x - (v6 - v2)) / v2 * 2;
var v9 = v5 - v7 * v11;
}
if (zone.y > v9) {
if (zone.y < v9 + Math.abs(zone.speed_x) * 3) {
if (v4.incline and zone._xscale > 0 or !v4.incline and zone._xscale < 0) {
f_BulletImpactSound(v4);
zone.gotoAndStop(zone.explosion_type);
return undefined;
}
}
}
}
}
}
zone.x += zone.speed_x;
zone._x = zone.x;
}
}
if (zone.speed_y < 0) {
if (f_BulletWallAbove(zone, zone.speed_y)) {
zone.y += zone.speed_y;
zone._y = zone.y;
f_BulletImpactSound(zone.wall_pt);
zone.gotoAndStop(zone.explosion_type);
return undefined;
} else {
zone.y += zone.speed_y;
zone._y = zone.y;
}
} else {
if (zone.speed_y > 0) {
if (f_PY(zone, zone.speed_y, false)) {
f_BulletImpactSound(zone.platform);
zone.gotoAndStop(zone.explosion_type);
return undefined;
} else {
zone.y += zone.speed_y;
zone._y = zone.y;
}
}
}
if (zone.owner.goodguy or zone.hitall) {
for (n in a_Enemies) {
v3 = a_Enemies[n];
if (f_ImpactCheck(zone, v3, zone.x, zone.y, zone.w, zone.h)) {
if (zone.x < v3.x) {
var v10 = v3.x - random(v3.zone._width / 2);
} else {
var v10 = v3.x + random(v3.zone._width / 2);
}
var v8 = f_FX(v10, zone.y, v3.y + 5, zone.explosion2_type, 100, 100);
v8.owner = zone;
v8.victim = v3;
zone.gotoAndStop('remove');
f_BulletImpactSound(v3);
return undefined;
}
}
}
if (!zone.owner.goodguy) {
for (n in a_Players) {
v3 = a_Players[n];
if (f_ImpactCheck(zone, v3, zone.x, zone.y, zone.w, zone.h)) {
zone.gotoAndStop('remove');
if (zone.x < v3.x) {
v10 = v3.x - random(v3.zone._width / 2);
} else {
v10 = v3.x + random(v3.zone._width / 2);
}
v8 = f_FX(v10, zone.y, v3.y + 5, zone.explosion2_type, 100, 100);
v8.owner = zone;
v8.victim = v3;
f_BulletImpactSound(v3);
return undefined;
}
}
}
if (zone.x + game_x + zone.w * 2 < -200) {
if (zone.speed_x < 0) {
zone.gotoAndStop('remove');
}
} else {
if (zone.x + game_x - zone.w * 2 > screenWidth + 200) {
if (zone.speed_x > 0) {
zone.gotoAndStop('remove');
}
} else {
if (zone.y + game_y < 0) {
if (zone.speed_y < 0) {
zone.gotoAndStop('remove');
}
} else {
if (zone.y + game_y - zone.h > screenHeight) {
if (zone.speed_y > 0) {
zone.gotoAndStop('remove');
}
}
}
}
}
}
function f_BulletWallAbove(zone, u_speed) {
var v4 = false;
for (n in a_Walls) {
var v2 = a_Walls[n];
pw = v2.w;
ph = v2.h;
px = v2.x;
py = v2.y;
if (zone.y - zone.h + u_speed <= py) {
if (zone.y + u_speed >= py - ph or zone.y - zone.h > py) {
if (zone.x - zone.w < px + pw) {
if (zone.x + zone.w > px - pw) {
zone.wall_pt = v2;
return true;
}
}
}
}
}
return false;
}
function f_ParryBullet(zone) {
zone.owner = p1;
zone.hitall = false;
zone.success = false;
zone.speed_x *= -1;
zone.speed_y *= -1;
zone._xscale *= -1;
zone.damage_val *= 1.5;
}
function f_BodyFallSound() {
_root['s_bodyfall' + (random(5) + 1)].start(0, 0);
}
function f_Shoot(zone) {
u_point.x = 0;
u_point.y = 0;
zone.bullet_pt.localToGlobal(u_point);
game.game.globalToLocal(u_point);
var v4 = u_point.x;
var v3 = u_point.y;
var v1 = f_FX(v4, v3, v3, zone._parent.bullet_type, 100, 100);
v1.fp_Parry = f_ParryBullet;
v1.x = v1._x;
v1.y = v1._y;
v1.h = v1._height;
v1.y += v1.h / 2;
v1._y = v1.y;
v1.damage_val = zone._parent.damage_val;
v1.w = 10;
v1.w2 = 2;
v1.owner = zone._parent;
if (zone._parent.force_y != 0) {
v1.speed_x = zone._parent.force_x;
v1.speed_y = zone._parent.force_y;
} else {
v1.speed_x = zone._parent.force_x * Math.cos(PI * zone._parent._parent._rotation);
v1.speed_y = zone._parent.force_x * Math.sin(PI * zone._parent._parent._rotation);
}
if (v1.speed_x < 0) {
v1._xscale *= -1;
}
}
function f_EnemyShootSound() {}
function f_GunSound(gun_type) {
switch (gun_type) {
case 1:
_root['s_enemy_shoot' + (random(4) + 1)].start(0, 0);
break;
case 2:
s_berreta.start(0, 0);
break;
case 3:
_root['s_enemy_shoot' + (random(4) + 1)].start(0, 0);
break;
case 4:
s_flamethrower1.start(0, 0);
break;
case 5:
s_thwomp.start(0, 0);
break;
case 6:
s_shotgun.start(0, 0);
case 31:
_root['s_shot' + current_shot].start(0, 0);
}
}
function f_EnemyBulletPreset(zone, x, y, speed_x, speed_y, damage_val) {
var v1 = f_FX(x, y, y + 1, zone.bullet_name, 100, 100);
v1.x = x;
v1.y = y;
v1.h = v1._height;
v1.w = 10;
v1.w2 = 2;
if (damage_val) {
v1.damage_val = damage_val;
} else {
v1.damage_val = 1;
}
v1.hitall = true;
v1.owner = zone;
v1.speed_x = speed_x;
v1.speed_y = speed_y;
v1.force_x = speed_x / 2;
v1.force_y = speed_y;
v1.bullet = true;
if (speed_x < 0) {
v1._xscale *= -1;
}
return v1;
}
function f_EnemyBullet(zone, mod) {
u_point.x = 0;
u_point.y = 0;
if (zone.gun.gun.gun.bullet_pt) {
zone.gun.gun.gun.bullet_pt.localToGlobal(u_point);
} else {
zone.gun.gun.localToGlobal(u_point);
}
game.game.globalToLocal(u_point);
var v4 = u_point.x;
var v3 = u_point.y;
var v1 = f_FX(v4, v3, zone.y - 1, zone.bullet_name, 100, 100);
v1.x = v1._x;
v1.y = v1._y;
v1.h = v1._height;
v1.w = 10;
v1.w2 = 2;
v1.damage_val = zone.ammo_pow;
v1.gun_type = zone.gun_type;
v1.owner = zone;
v1.speed_y = 0;
v1.speed_x = 0;
v1.bullet = true;
v1.explosion_type = zone.explosion_type;
v1.explosion2_type = zone.explosion2_type;
v1.force_mod = zone.force_mod;
v1.speed_x = zone.bullet_speed * Math.cos(PI * zone.gun.gun._rotation);
v1.speed_y = zone.bullet_speed * Math.sin(PI * zone.gun.gun._rotation);
v1.speed_x += (random(6) - 3) * 0.2;
v1.speed_y += (random(6) - 3) * 0.2;
if (mod) {
if (Math.abs(v1.speed_x) > Math.abs(v1.speed_y)) {
v1.speed_y += mod;
} else {
v1.speed_x += mod;
}
} else {
if (zone.gun_type == 4) {
v1.speed_x += random(6) - 3;
v1.speed_y += random(6) - 3;
v1.speed_x += Math.abs(zone.speed_x);
}
}
v1.body._rotation = Math.atan2(v1.speed_y, v1.speed_x) * 180 / Math.PI;
v1.line._rotation = Math.atan2(v1.speed_y, v1.speed_x) * 180 / Math.PI;
if (zone._xscale < 0) {
v1._xscale *= -1;
v1.speed_x *= -1;
}
v1.force_x = v1.speed_x / 2;
v1.force_y = v1.speed_y;
if (v1.force_y > -10) {
v1.force_y = -10;
}
v1.speed_x *= 3;
v1.speed_y *= 3;
v1.x -= v1.speed_x;
v1.y -= v1.speed_y;
v1._x = v1.x;
v1._y = v1.y;
f_Bullet(v1);
v1.speed_x /= 3;
v1.speed_y /= 3;
}
function f_TestBullet(zone, mod) {
u_point.x = 0;
u_point.y = 0;
if (zone.gun.gun.gun.bullet_pt) {
zone.gun.gun.gun.bullet_pt.localToGlobal(u_point);
} else {
zone.gun.gun.localToGlobal(u_point);
}
game.game.globalToLocal(u_point);
var v6 = u_point.x;
var v5 = u_point.y;
var v1 = f_FX(v6, v5, zone.y - 1, zone.bullet_name, 100, 100);
v1.x = v1._x;
v1.y = v1._y;
v1.h = v1._height;
v1.w = 10;
v1.w2 = 2;
v1.damage_val = zone.ammo_pow;
v1.owner = zone;
v1.gun_type = zone.gun_type;
v1.speed_y = 0;
v1.speed_x = 0;
v1.bullet = true;
v1.explosion_type = zone.explosion_type;
v1.explosion2_type = zone.explosion2_type;
v1.force_mod = zone.force_mod;
v1.speed_x = zone.bullet_speed * Math.cos(PI * zone.gun.gun._rotation);
v1.speed_y = zone.bullet_speed * Math.sin(PI * zone.gun.gun._rotation);
if (mod) {
if (Math.abs(v1.speed_x) > Math.abs(v1.speed_y)) {
v1.speed_y += mod;
} else {
v1.speed_x += mod;
}
} else {
if (zone.gun_type == 4) {
v1.speed_x += random(6) - 3;
v1.speed_y += random(6) - 3;
v1.speed_x += Math.abs(zone.speed_x);
} else {
v1.speed_x += (random(6) - 3) * 0.2;
v1.speed_y += (random(6) - 3) * 0.2;
}
}
v1.body._rotation = Math.atan2(v1.speed_y, v1.speed_x) * 180 / Math.PI;
v1.line._rotation = Math.atan2(v1.speed_y, v1.speed_x) * 180 / Math.PI;
if (zone._xscale < 0) {
v1._xscale *= -1;
v1.speed_x *= -1;
}
v1.force_x = (v1.speed_x / 2) * v1.force_mod;
v1.force_y = v1.speed_y;
if (v1.force_y < 3 and v1.force_y > -12 and v1.force_mod > 1) {
v1.force_y = -12;
}
var v4 = v1.speed_x;
var v3 = v1.speed_y;
v1.speed_x = v1.x - zone.x;
v1.speed_y = v1.y - (zone.y - 50);
v1.x -= v1.speed_x;
v1.y -= v1.speed_y;
v1._x = v1.x;
v1._y = v1.y;
f_Bullet(v1);
v1.speed_x = v4;
v1.speed_y = v3;
}
function f_Flash() {
game.game.flash._x = p1.x;
game.game.flash._y = p1.y;
game.game.flash.gotoAndPlay(2);
}
function f_PlayerPickup() {
if (Key.isDown(p1.b_pickup)) {
if (!p1.pickedup) {
p1.pickup = true;
}
} else {
p1.picked_up = false;
p1.pickup = false;
}
}
function f_PickupItem(zone) {
for (n in a_Players) {
var v2 = a_Players[n];
if (Math.abs(zone.x - v2.x) < 60) {
if (Math.abs(zone.y - v2.y) < 50) {
var v3 = false;
if (!zone.weapon) {
v3 = true;
} else {
if (v2.gun_type == 101) {
v3 = true;
} else {
if (v2.gun_type == zone.gun_type) {
s_cursor33.start(0, 0);
f_FX(zone.x, zone.y, v2.y + 5, 'ammo', 100, 100);
v2.ammo += zone.ammo;
zone.active = false;
f_ObjectPop(zone, a_Items);
zone.gotoAndStop('blank');
return undefined;
} else {
if (v2.pickup) {
v2.picked_up = true;
v2.pickup = false;
v3 = true;
} else {
swap.gotoAndPlay(2);
}
}
}
}
if (v3) {
zone.fp_Pickup(v2, zone);
zone.active = false;
f_ObjectPop(zone, a_Items);
zone.gotoAndStop('blank');
return undefined;
}
}
}
}
if (gamemode == 2 or gamemode == 3 and kills > 50) {
for (n in a_Enemies) {
v2 = a_Enemies[n];
if (v2.humanoid and v2.health > 0 and v2.alive) {
if (!v2.tossed and !v2.onground and v2.gun_type >= 100) {
if (Math.abs(zone.x - v2.x) < 50) {
if (Math.abs(zone.y - v2.y) < 40) {
zone.fp_Pickup(v2, zone);
v2.hasgun = true;
v2.phase = 3;
v2.shot_total = v2.shot_total_default;
v2.gun.gun._rotation = 0;
v2.gun.gotoAndStop(15);
v2.gotoAndStop('stand');
zone.active = false;
f_ObjectPop(zone, a_Items);
zone.gotoAndStop('blank');
return undefined;
}
}
}
}
}
}
}
function f_OffScreen(zone) {
if (zone.x + game_x + zone.w * 2 < 0) {
return true;
} else {
if (zone.x + game_x - zone.w * 2 > screenWidth) {
return true;
} else {
if (zone.y + game_y < 0) {
return true;
} else {
if (zone.y + game_y - zone.h > screenHeight) {
return true;
} else {
return false;
}
}
}
}
}
function f_ColorSwap(zone, u_color) {
CharacterColor = new Color(zone);
CharacterColor.setTransform(u_color);
}
function f_NewColor(u_color) {
u_color.ra = 100;
u_color.ga = 100;
u_color.ba = 100;
u_color.aa = 100;
u_color.rb = 0;
u_color.gb = 0;
u_color.bb = 0;
u_color.ab = 0;
}
function f_FlipChar(u_flipchar) {
u_flipchar._xscale *= -1;
}
function f_PushChar(zone, new_push_speed, u_p) {
var v4 = 0;
if (!u_p.inrecursion) {
if (zone.y - zone.h + 1 <= u_p.y) {
if (zone.y - 1 >= u_p.y - u_p.h) {
if (zone.x + zone.w <= u_p.x) {
if (zone.x + zone.w + new_push_speed > u_p.x - u_p.w) {
new_push_speed = int(f_MoveH(u_p, new_push_speed) + v4);
f_UpdateWall(u_p, u_p.z_wall);
f_MovePlatformH(u_p, new_push_speed);
}
return new_push_speed;
}
if (zone.x - zone.w >= u_p.x) {
if (zone.x - zone.w + new_push_speed < u_p.x + u_p.w) {
new_push_speed = int(f_MoveH(u_p, new_push_speed) - v4);
f_UpdateWall(u_p, u_p.z_wall);
f_MovePlatformH(u_p, new_push_speed);
}
}
}
}
}
return new_push_speed;
}
function f_CheckPush(zone, push_speed) {
var v1 = push_speed;
for (n in a_Players) {
var v2 = a_Players[n];
v1 = f_PushChar(zone, v1, v2);
}
for (n in a_Enemies) {
v2 = a_Enemies[n];
if (v2 != zone) {
v1 = f_PushChar(zone, v1, v2);
}
}
return v1;
}
function f_CheckEnemiesPush(zone, speed) {
if (zone.pushesenemies) {
if (!zone.dashing) {
if (!zone.tossed) {
for (n in a_EnemiesPush) {
var v1 = a_EnemiesPush[n];
if (v1.platform or !zone.platform) {
if (!v1.onground and v1.alive) {
if (zone.y - zone.h < v1.y) {
if (zone.y > v1.y - v1.h / 2) {
if (!v1.platform or zone.punching) {
var v5 = v1.x;
var v4 = v1.x;
} else {
var v5 = v1.x - v1.w;
var v4 = v1.x + v1.w;
}
if (zone.x < v5 and zone.x + speed > v1.x - v1.w) {
if (v1.platform or zone.punching) {
f_MoveH(v1, speed);
}
} else {
if (zone.x > v4 and zone.x + speed < v1.x + v1.w) {
if (v1.platform or zone.punching) {
f_MoveH(v1, speed);
}
}
}
}
}
}
}
}
}
}
}
}
function f_MoveH(zone, speed) {
zone.hitwall = false;
if (!zone.autowalk_timer) {
speed = f_W(zone, speed);
}
f_CheckEnemiesPush(zone, speed);
zone.x += speed;
zone._x = zone.x;
if (zone.z_wall) {
f_UpdateWall(zone, zone.z_wall);
}
f_PH(zone, speed);
return speed;
}
function f_MoveV(zone, speed) {
zone.y += speed;
zone._y = zone.y;
if (!zone.platform and zone.prevplatformy) {
f_Depth(zone, zone.prevplatformy);
} else {
f_Depth(zone, zone.y);
}
if (zone.z_platform) {
f_MovePlatformV(zone, speed);
}
if (zone.z_wall) {
f_UpdateWall(zone, zone.z_wall);
}
}
function f_MakeGunPickup(zone) {
if (zone.ammo > 0) {
var v1 = f_Item(zone._x, zone._y, zone._y + 1, 'gun' + zone.gun_type, 100, 100);
v1.w2 = 10;
v1.body_type = 100;
v1.ammo = zone.ammo;
v1.gun_type = zone.gun_type;
v1.body.ammo.text = v1.ammo;
v1.platform = zone.platform;
v1.speed_y = 0;
zone.gotoAndStop('blank');
} else {
zone.gotoAndStop('jumpdust2');
}
}
function f_PlayerDropGun(zone) {
if (zone.gun_type < 100) {
if (zone.gun_type == 30) {
s_chainsaw.s_chainsaw1.stop();
s_chainsaw.s_chainsaw3.stop();
zone.chainsawing = false;
}
if (zone._xscale > 0) {
var v5 = -(3 + random(6));
} else {
var v5 = 3 + random(6);
}
var v4 = -(8 + random(10));
var v3 = _root.f_ShrapnelGeneral(zone.x, zone.y - 70, zone.y + 1, v5, v4, 'gun1');
v3.bounce_limit = 2;
v3.gun_type = zone.gun_type;
v3.body_type = 100;
v3.ammo = zone.ammo;
v3._xscale = zone._xscale;
v3.owner = zone;
v3.body.gotoAndStop(v3.gun_type);
v3.fp_ShrapnelEnd = _root.f_MakeGunPickup;
zone.ammo = 0;
f_GetGun101(zone);
}
}
function f_DropGun(zone) {
if (zone.hasgun) {
zone.hasgun = false;
zone.prey = p1;
if (zone._xscale > 0) {
var v5 = -(3 + random(6));
} else {
var v5 = 3 + random(6);
}
var v4 = -(8 + random(10));
var v3 = _root.f_ShrapnelGeneral(zone.x, zone.y - 70, zone.y + 1, v5, v4, 'gun1');
v3.bounce_limit = 2;
v3.gun_type = zone.gun_type;
v3.body_type = 100;
v3.ammo = zone.ammo;
v3._xscale = zone._xscale;
v3.owner = zone;
v3.body.gotoAndStop(v3.gun_type);
v3.fp_ShrapnelEnd = _root.f_MakeGunPickup;
if (gamemode != 3) {
zone.phase = 1;
}
zone.gun.gun.gun.gotoAndStop('blank');
zone.gun_type = 100;
}
}
function f_ImpactCheck(zone, u_temp, x, y, w, h) {
if (u_temp.alive and u_temp.active) {
if (!u_temp.nohit and !u_temp.onground and u_temp.invincible_timer <= 0 and u_temp != zone.owner) {
var v6 = u_temp._x + u_temp.zone._x;
var v5 = u_temp._y + u_temp.zone._y;
var v7 = u_temp.zone._width / 2;
var v12 = u_temp.zone._height;
if (y + h >= v5 - v12) {
if (y - h <= v5) {
if (x + w >= v6 - v7) {
if (x - w <= v6 + v7) {
if (zone._parent.fx_pt) {
u_point.x = 0;
u_point.y = 0;
zone._parent.fx_pt.localToGlobal(u_point);
game.game.globalToLocal(u_point);
var v4 = u_point.x;
var v14 = u_point.y;
if (zone.y > u_temp.y) {
var v8 = zone.y + 5;
} else {
var v8 = u_temp.y + 5;
}
var v9 = 80 + random(20);
if (u_temp.x > zone.owner.x) {
v9 *= -1;
}
f_FX(v4, v14, v8, 'impact2', v9, v9);
} else {
var v4 = x - 10 + random(20);
var v14 = y - h / 2 - 5 + random(10);
if (!zone.bullet) {
if (u_temp != p1) {
f_FX(v4, v14, storedv8, 'impact1', storedv9, storedv9);
}
}
}
if (zone.y > u_temp.y) {
var v8 = zone.y + 5;
} else {
var v8 = u_temp.y + 5;
}
if (zone.bullet and zone.gun_type == 4) {
f_FX(v4, u_temp.y, v8, 'burnoff', 100, 100);
} else {
if (u_temp.bloodtype > 0) {
var v9 = random(30) + 70;
var v3 = f_FX(v4, u_temp.y, v8, 'blood', v9, v9);
v3.victim = u_temp;
}
}
v3.body._y = -60;
v3.speed_x = 4 + random(6);
if (u_temp._xscale < 0) {
v3.speed_x *= -1;
}
v3.speed_y = -(1 + random(10));
v3.gravity = 0.5;
if (zone.owner == p1) {
if (zone.owner.platform == undefined) {
if (zone.ladder == undefined) {
if (zone.speed_y > 0) {
if (zone.owner.speed_y > 1) {
zone.owner.speed_y = 1;
}
}
}
}
if (zone.bullet) {
if (zone.gun_type == 30) {
chainsawblood += 2;
if (chainsawblood > 100) {
chainsawblood = 100;
}
if (u_temp.humanoid) {
f_MoveH(u_temp, zone.x - u_temp.x);
f_MoveV(u_temp, zone.y + 40 - u_temp.y);
u_temp.hitby.force_y = -5;
u_temp.platform = undefined;
}
}
}
} else {
if (u_temp == p1) {
if (zone.owner.recover) {
if (zone.owner.recover > p1.invincible_timer) {
p1.invincible_timer = zone.owner.recover;
}
}
}
if (!zone.bullet) {
zone.owner.wait_timer = 30;
}
}
shake_x = 3;
shake_y = 3;
u_temp.impact_x = x;
u_temp.impact_y = y;
u_temp.hitby = zone;
u_temp.hit_damage_val = zone.damage_val;
u_temp.force_x = u_temp.hitby.force_x;
u_temp.force_y = u_temp.hitby.force_y;
zone.success = true;
u_temp.prev_hit_timer = 2;
u_temp.fp_Hit1(u_temp);
return zone.success;
}
}
}
}
}
}
return false;
}
function f_ImpactPoint(zone) {
u_point.x = 0;
u_point.y = 0;
zone.localToGlobal(u_point);
game.game.globalToLocal(u_point);
var v3 = u_point.x;
var v2 = u_point.y;
var v5 = (zone._width / 2) * Math.abs(zone._parent._xscale / 100);
var v4 = (zone._height / 2) * (zone._parent._yscale / 100);
zone.owner = zone._parent._parent;
zone.owner.u_hit = false;
zone.force_x = zone.owner.force_x;
zone.force_y = zone.owner.force_y;
zone.noturn = zone.owner.noturn;
zone.damage_val = zone.owner.damage_val;
zone.x = zone.owner.x;
zone.y = zone.owner.y;
if (zone.owner._xscale > 0) {
if (zone._xscale < 0) {
zone._xscale *= -1;
}
} else {
if (zone._xscale > 0) {
zone._xscale *= -1;
}
}
if (zone._parent._parent == p1) {
if (rockbreaker > 0) {
if (zone._parent.fx_pt) {
u_point.x = 0;
u_point.y = 0;
zone._parent.fx_pt.localToGlobal(u_point);
game.game.globalToLocal(u_point);
var v9 = u_point.x - 10 + random(20);
var v8 = u_point.y - 5 + random(10);
} else {
var v9 = v3 - 10 + random(20);
var v8 = v2 - 5 + random(10);
}
var v7 = random(30) + 80;
f_FX(v9, v8, zone.y - 1, 'pixelhit', v7, v7);
}
}
if (zone.owner.goodguy) {
for (n in a_Enemies) {
var v6 = a_Enemies[n];
u_hit = f_ImpactCheck(zone, v6, v3, v2, v5, v4);
if (u_hit) {
zone.owner.u_hit = true;
}
}
} else {
if (zone.owner.hitall) {
for (n in a_Enemies) {
var v6 = a_Enemies[n];
if (v6 != zone._parent._parent and v6 != game.game.clownhead) {
u_hit = f_ImpactCheck(zone, v6, v3, v2, v5, v4);
if (u_hit) {
zone.owner.u_hit = true;
}
}
}
}
}
if (!zone._parent._parent.goodguy) {
for (n in a_Players) {
v6 = a_Players[n];
u_hit = f_ImpactCheck(zone, v6, v3, v2, v5, v4);
if (u_hit) {
zone.owner.u_hit = true;
}
}
}
if (zone.owner.u_hit and zone.owner == p1) {
f_PunchSound();
if (Math.abs(zone.owner.force_x) > Math.abs(zone.owner.force_y)) {
shake_x = Math.abs(zone.owner.force_x) * 0.5;
shake_y = Math.abs(zone.owner.force_x) * 0.5;
} else {
shake_x = Math.abs(zone.owner.force_y) * 0.5;
shake_y = Math.abs(zone.owner.force_y) * 0.5;
}
f_Slowdown(17, 2);
}
}
function f_Punch(zone) {
if (!zone.midpunch) {
if (controlmode == 1 and Key.isDown(zone.b_punch1) or controlmode == 2 and clicked) {
if (zone.gun_type == 101) {
if (!zone.punched1) {
zone.punched1 = true;
if (zone.pipe) {
zone.punching = true;
zone.midpunch = true;
zone.gotoAndStop('pipe_punch');
} else {
if (!zone.platform) {
zone.punching = true;
if (zone.kicks < 5) {
zone.gotoAndStop('jumpkick');
}
} else {
if (!zone.punch1) {
zone.punch1 = true;
zone.gotoAndStop('punch1');
} else {
zone.punch1 = false;
zone.gotoAndStop('punch2');
}
}
}
}
return undefined;
}
if (!zone.shot1) {
zone.gun.gun.gun.gun.gotoAndStop('shoot');
if (zone.gun_type == 2 or zone.gun_type == 5 or zone.gun_type == 6) {
zone.shot1 = true;
zone.gun.gun.gun.gun.body.gotoAndPlay(1);
}
++zone.bullet_timer;
if (zone.gun_type == 30) {
if (!zone.chainsawing) {
zone.chainsawing = true;
s_chainsaw.s_chainsaw3.stop();
s_chainsaw.s_chainsaw1.start(0, 9999);
}
}
if (zone.bullet_timer % zone.gun_timer == 0) {
++current_shot;
if (current_shot > 4) {
current_shot = 1;
}
f_GunSound(zone.gun_type);
f_TestBullet(zone);
if (zone.gun_type == 6) {
f_TestBullet(zone, -3);
f_TestBullet(zone, 3);
}
--zone.ammo;
if (zone.ammo <= 0) {
gunshooting = false;
f_PlayerDropGun(zone);
}
}
}
} else {
if (zone.gun_type == 30) {
if (zone.chainsawing) {
zone.chainsawing = false;
s_chainsaw.s_chainsaw1.stop();
s_chainsaw4.start(0, 0);
s_chainsaw.s_chainsaw3.start(0, 9999);
}
}
zone.punched1 = false;
zone.shot1 = false;
zone.bullet_timer = zone.gun_timer - 1;
}
}
--zone.punch1_timer;
--zone.punch2_timer;
}
function f_ResetRotation(zone) {
zone._rotation = 0;
}
function f_LeftRightTimers(zone) {
if (Key.isDown(zone.b_left)) {
if (zone.left_timer <= 0) {
zone.left_last2 = zone.left_timer;
zone.left_timer = 1;
} else {
++zone.left_timer;
}
} else {
if (zone.left_timer > 0) {
zone.left_last = zone.left_timer;
zone.left_timer = 0;
} else {
--zone.left_timer;
}
}
if (Key.isDown(zone.b_right)) {
if (zone.right_timer <= 0) {
zone.right_last2 = zone.right_timer;
zone.right_timer = 1;
} else {
++zone.right_timer;
}
} else {
if (zone.right_timer > 0) {
zone.right_last = zone.right_timer;
zone.right_timer = 0;
} else {
--zone.right_timer;
}
}
}
function f_Walk(zone) {
zone.walking = false;
if (zone.wait) {
return undefined;
}
f_LeftRightTimers(zone);
if (zone.left_timer > 0 and zone.left_timer > zone.right_timer) {
if (zone._xscale > 0) {
if (controlmode == 1) {
f_FlipChar(zone);
}
zone.dashing = false;
}
if (zone.punching == false or zone.platform == undefined) {
if (zone.left_last < dash_timer and zone.left_last2 > -dash_timer and !zone.punching and chronicdash > 0) {
zone.left_last = dash_timer + 1;
zone.dashing = true;
}
if (!zone.platform and zone.jump_speed_x != 0) {
if (zone.jump_speed_x > 0) {
--zone.jump_speed_x;
if (zone.jump_speed_x < 0) {
zone.jump_speed_x = 0;
}
} else {
if (zone.jump_speed_x < 0) {
++zone.jump_speed_x;
if (zone.jump_speed_x > 0) {
zone.jump_speed_x = 0;
}
}
}
} else {
if (zone.dashing) {
zone.speed_x -= 0.5;
if (zone.speed_x > 0) {
zone.speed_x = 0;
}
if (zone.speed_x <= -zone.speed_x_dash) {
zone.speed_x = -zone.speed_x_dash;
}
} else {
zone.speed_x -= 4;
if (zone.speed_x <= -zone.speed_x_max) {
zone.speed_x = -zone.speed_x_max;
}
}
if (zone.x + game_x + zone.speed_x > 0) {
f_MoveH(zone, zone.speed_x);
}
}
zone.walking = true;
}
} else {
if (zone.speed_x < 0) {
++zone.speed_x;
}
}
if (zone.right_timer > 0 and zone.right_timer > zone.left_timer) {
if (zone._xscale < 0) {
if (controlmode == 1) {
f_FlipChar(zone);
}
zone.dashing = false;
}
if (zone.punching == false or zone.platform == undefined) {
if (zone.right_last < dash_timer and zone.right_last2 > -dash_timer and !zone.punching and chronicdash > 0) {
zone.right_last = dash_timer + 1;
zone.dashing = true;
}
if (!zone.platform and zone.jump_speed_x != 0) {
if (zone.jump_speed_x < 0) {
++zone.jump_speed_x;
}
} else {
if (zone.dashing) {
zone.speed_x += 0.5;
if (zone.speed_x < 0) {
zone.speed_x = 0;
}
if (zone.speed_x >= zone.speed_x_dash) {
zone.speed_x = zone.speed_x_dash;
}
} else {
zone.speed_x += 4;
if (zone.speed_x >= zone.speed_x_max) {
zone.speed_x = zone.speed_x_max;
}
}
if (zone.x + game_x + zone.speed_x < screenWidth) {
f_MoveH(zone, zone.speed_x);
}
}
zone.walking = true;
}
} else {
if (zone.speed_x > 0) {
--zone.speed_x;
}
}
}
function f_ForceJump(zone, speed_x, speed_y, nodouble) {
if (doublejump > 0 and !nodouble) {
zone.jumps = doublejump + 1;
} else {
zone.jumps = 0;
}
zone.platform = undefined;
zone.jumping = true;
zone.speed_y = speed_y;
zone.jump_speed_x = speed_x;
zone.punching = false;
zone.midpunch = false;
zone.crouch = false;
if (!zone.nojumpanim) {
zone.gotoAndStop('jump1');
}
}
function f_SpringBoard(zone) {
for (n in a_Players) {
var v1 = a_Players[n];
if (v1.platform == zone.z_platform) {
f_ForceJump(v1, 0, -70);
}
}
for (n in a_Enemies) {
v1 = a_Enemies[n];
if (v1.platform == zone.z_platform) {
if (v1.toss_speed_x == 0) {
f_ForceJump(v1, 0, -70);
} else {
f_TossInit(v1, v1.toss_speed_x, -70);
}
}
}
}
function f_CheckJump(zone) {
if (Key.isDown(zone.b_jump)) {
if (zone.pressed_jump == false) {
if (doublejump > 0) {
if (!zone.platform and !zone.ladder) {
--zone.jumps;
} else {
zone.jumps = doublejump + 1;
}
} else {
zone.jumps = 0;
}
if (zone.platform != undefined or zone.ladder != undefined or zone.jumps > 0) {
zone.pressed_jump = true;
zone.jumping = true;
zone.kicks = 0;
if (Key.isDown(zone.b_down) and zone.platform.dropthru) {
f_FX(zone.x, zone.y, zone.y + 21, 'dustpuff', 100, 100);
zone.speed_y = 1;
zone.y += 20;
zone._y = zone.y;
f_Depth(zone, zone.y);
} else {
if (zone.speed_y > zone.launch) {
zone.speed_y = zone.launch;
}
}
zone.punching = false;
zone.midpunch = false;
zone.crouch = false;
zone.jump_speed_x = 0;
if (!zone.nojumpanim) {
if (!zone.platform and !zone.ladder and !zone.punching) {
s_swing1.start(0, 0);
zone.gotoAndStop('jump1_mid');
zone.body.gotoAndPlay(1);
} else {
s_swing6.start(0, 0);
if (zone._xscale > 0) {
var v2 = 100;
} else {
var v2 = -100;
}
if (zone.speed_y < 0) {
if (Key.isDown(zone.b_left) or Key.isDown(zone.b_right)) {
f_FX(zone.x, zone.y, zone.y + 1, 'jumpdust', v2, 100);
} else {
f_FX(zone.x, zone.y, zone.y + 1, 'jumpdust2', v2, 100);
}
}
zone.gotoAndStop('jump1');
}
}
zone.platform = undefined;
zone.ladder = undefined;
}
}
} else {
zone.pressed_jump = false;
}
}
function f_WallHang(zone) {
if (Key.isDown(zone.b_jump)) {
if (zone.pressed_jump == false) {
zone.pressed_jump = true;
var v2 = Math.abs(zone.launch) / 2;
if (zone._xscale < 0) {
v2 *= -1;
}
zone.jumping = true;
if (Key.isDown(zone.b_down)) {
zone.speed_y = 1;
} else {
zone.speed_y = zone.launch;
}
zone.punching = false;
zone.midpunch = false;
zone.crouch = false;
zone.jump_speed_x = 0;
if (!zone.nojumpanim) {
zone.gotoAndStop('jump1');
if (!zone.platform and !zone.ladder) {
zone.body.gotoAndPlay('loop');
}
}
zone.platform = undefined;
zone.ladder = undefined;
}
} else {
zone.pressed_jump = false;
}
}
function f_EndJump(zone) {
f_GoFrame(zone, 'stand');
}
function f_EndPunch(zone) {
zone.punching = false;
zone.midpunch = false;
zone.dashing = false;
zone.onground = false;
zone.jump_speed_x = 0;
if (zone.prev_hit_timer <= 0) {
if (zone.pipe) {
zone.gotoAndStop('pipe_idle');
} else {
zone.gotoAndStop('stand');
}
}
}
function f_GoFrame(zone, u_frame) {
if (!zone.punching) {
zone.gotoAndStop(u_frame);
}
}
function f_MPRange(zone) {
zone.limit_left = zone._x;
zone.limit_right = zone._x + zone.range._width - zone.z_platform._width;
zone.total_range = zone.limit_right - zone.limit_left;
zone.speed_x_max = 15;
zone._x += zone.total_range / 2 - zone.z_platform._width / 2;
zone.x = zone._x;
}
function f_MovePlatformH(zone, u_speed) {
if (zone.z_platform != undefined) {
var v5 = zone.z_platform.x;
f_UpdatePlatform(zone, zone.z_platform);
var v4 = zone.z_platform.x - v5;
for (n in a_Players) {
var v2 = a_Players[n];
if (v2.platform == zone.z_platform) {
f_MoveH(v2, v4);
}
}
for (n in a_Enemies) {
var v1 = a_Enemies[n];
if (v1.platform == zone.z_platform) {
f_MovePlatformH(v1, f_MoveH(v1, v4));
}
}
}
}
function f_MovePlatformV(zone, u_speed) {
f_UpdatePlatform(zone, zone.z_platform);
if (zone.z_platform != undefined) {
for (n in a_Players) {
var v1 = a_Players[n];
if (v1.platform == zone.z_platform) {
if (u_speed < 20) {
f_MoveV(v1, u_speed);
} else {
v1.platform = undefined;
}
} else {
if (u_speed < 0) {
var v6 = zone.z_platform.x;
var v5 = zone.z_platform.y;
var v7 = zone.z_platform.w;
var v8 = zone.z_platform.h;
if (v1.x + v1.w2 > v6 - v7 and v1.x - v1.w2 < v6 + v7) {
if (v1.y <= v5 - u_speed and v1.y >= v5 - v8) {
f_AssignPlatform(v1, zone.z_platform);
v1.speed_y = 0;
v1.y = zone.z_platform.y;
v1._y = v1.y;
f_Depth(v1, v1.y);
v1.prevplatformx = v1.x;
v1.prevplatformy = v1.y;
}
}
}
}
}
for (n in a_Enemies) {
var v4 = a_Enemies[n];
if (v4.platform == zone.z_platform) {
if (u_speed < 5) {
f_MoveV(v4, u_speed);
} else {
v4.platform = undefined;
}
}
}
}
}
function f_MovingPlatform(zone) {
var v2 = 0.75 - Math.abs((zone.x - zone.limit_left) / zone.total_range - 0.5);
zone.speed_x = zone.speed_x_max * v2;
zone.x += zone.speed_x;
zone._x = zone.x;
f_MovePlatformH(zone, zone.speed_x);
if (zone.x >= zone.limit_right) {
if (zone.speed_x_max > 0) {
zone.speed_x_max *= -1;
}
} else {
if (zone.x <= zone.limit_left) {
if (zone.speed_x_max < 0) {
zone.speed_x_max *= -1;
}
}
}
}
function f_WallAbove(zone, u_speed) {
var v5 = false;
for (n in a_Walls) {
var v2 = a_Walls[n];
if (zone != v2._parent) {
if (zone.passwall and v2._parent.enemypass) {
} else {
pw = v2.w;
ph = v2.h;
px = v2.x;
py = v2.y;
if (zone.y - zone.h + u_speed <= py) {
if (zone.y + u_speed >= py - ph or zone.y - zone.h > py) {
if (zone.x - zone.w < px + pw) {
if (zone.x + zone.w > px - pw) {
if (zone.y - zone.h <= py and zone.y > py - ph) {
if (zone.pushes and v2.pushes) {
f_MoveV(v2._parent, zone.y - zone.h + u_speed - v2._parent.y);
} else {
if (zone.y < py and v2._parent.z_platform or u_speed >= 0) {
var v4 = v2._parent.z_platform.y - zone.y;
zone.platform = v2._parent.z_platform;
f_MoveV(zone, v4);
u_speed = 0;
} else {
var v4 = py + zone.h + 1 - zone.y;
if (f_PY(zone, v4) == false) {
f_MoveV(zone, v4);
}
}
}
}
zone.speed_y = 1;
zone.jumping = false;
v5 = true;
}
}
}
}
}
}
}
return v5;
}
function f_WallBelow(zone) {
for (n in a_Walls) {
var v2 = a_Walls[n];
if (zone != v2._parent) {
if (zone.passwall and v2._parent.enemypass) {
} else {
pw = v2.w;
ph = v2.h;
px = v2.x;
py = v2.y;
if (zone.y - zone.h + zone.speed_y < py - 1) {
if (zone.y + zone.speed_y > py - ph + 1) {
if (zone.x - zone.w < px + pw - 1) {
if (zone.x + zone.w > px - pw + 1) {
if (zone.x > px) {
if (Math.abs(zone.x - (px + pw + zone.w)) < 50) {
zone.x = px + pw + zone.w;
zone._x = zone.x;
}
} else {
if (Math.abs(zone.x - (px - pw - zone.w)) < 50) {
zone.x = px - pw - zone.w;
zone._x = zone.x;
}
}
}
}
}
}
}
}
}
}
function f_MoveDust(u_object, rside) {
if (u_object.dust_timer <= 0) {
if (u_object.platform.slope == 0) {
if (rside) {
f_FX(u_object.x - u_object.w / 2, u_object.y, u_object.y, 'dust1', -100, 100);
} else {
f_FX(u_object.x + u_object.w / 2, u_object.y, u_object.y, 'dust1', 100, 100);
}
u_object.dust_timer = 10;
}
} else {
--u_object.dust_timer;
}
}
function f_W(zone, speed) {
var v7 = speed;
var v5 = speed;
zone.wall_pt = undefined;
for (n in a_Walls) {
var v2 = a_Walls[n];
if (zone != v2._parent) {
if (zone.passwall and v2._parent.enemypass) {
} else {
var v4 = v2.w;
var v10 = v2.h;
var v3 = v2.x;
var v9 = v2.y;
if (zone.y - zone.h < v9 - 1) {
if (zone.y >= v9 - v10 + 1) {
if (zone.x + zone.w <= v3 + v4) {
if (zone.x + zone.w + speed >= v3 - v4) {
if (v2.pushes and speed > 0) {
if (zone.platform != undefined and !zone.inrecursion and !u_wall._parent.inrecursion) {
zone.inrecursion = true;
var v8 = v3 - v4 - (zone.x + zone.w);
if (v2._parent.weight > zone.weight) {
var v11 = v2._parent.weight / zone.weight;
} else {
var v11 = 1;
}
v5 = v8 + int(f_MoveH(v2._parent, (speed - v8) / v11));
f_UpdateWall(v2._parent, v2);
f_MovePlatformH(v2._parent, v5);
if (v7 != 0) {
f_MoveDust(v2._parent, true);
}
} else {
v5 = int(v3 - v4 - (zone.x + zone.w));
}
} else {
if (speed > 0) {
zone.wall_pt = v2;
v5 = int(v3 - v4 - (zone.x + zone.w));
}
}
}
} else {
if (zone.x - zone.w >= v3 - v4) {
if (zone.x - zone.w + speed <= v3 + v4) {
if (v2.pushes and speed < 0) {
if (zone.platform != undefined and !zone.inrecursion and !u_wall._parent.inrecursion) {
zone.inrecursion = true;
var v8 = v3 + v4 - (zone.x - zone.w);
if (v2._parent.weight > zone.weight) {
var v11 = v2._parent.weight / zone.weight;
} else {
var v11 = 1;
}
v5 = v8 + int(f_MoveH(v2._parent, (speed - v8) / v11));
f_UpdateWall(v2._parent, v2);
f_MovePlatformH(v2._parent, v5);
if (v7 != 0) {
f_MoveDust(v2._parent, false);
}
} else {
v5 = int(v3 + v4 - (zone.x - zone.w));
}
} else {
if (speed < 0) {
zone.wall_pt = v2;
v5 = int(v3 + v4 - (zone.x - zone.w));
}
}
}
} else {
if (zone.x + zone.w > v3 - v4 and zone.x - zone.w < v3 + v4) {
if (zone.x < v3) {
zone.x = v3 - v4 - zone.w;
zone._x = zone.x;
} else {
zone.x = v3 + v4 + zone.w;
zone._x = zone.x;
}
trace('Error in f_W - Got Inside Box');
}
}
}
}
}
}
}
if (speed < 0) {
if (v5 > v7) {
v7 = v5;
}
} else {
if (v5 < v7) {
v7 = v5;
}
}
}
zone.inrecursion = false;
if (zone.pushes) {
v7 = f_CheckPush(zone, v7);
}
if (v7 != speed) {
zone.hitwall = true;
}
if (Math.abs(v7 - speed) > 40) {
v7 = 0;
}
return v7;
}
function f_AssignPlatform(zone, u_p) {
zone.platform = u_p;
}
function f_PY(zone, speed, u_pass) {
r = false;
if (speed > 0) {
for (n in a_Platforms) {
var v2 = a_Platforms[n];
if (u_pass and !v2.nopass) {
} else {
if (zone.bullet and v2.dropthru) {
} else {
var v3 = v2.w;
var v6 = v2.h;
var v4 = v2.x;
var v5 = v2.y;
if (zone.x + zone.w2 > v4 - v3 and zone.x - zone.w2 < v4 + v3) {
if (zone.y <= v5 and zone.y + speed >= v5 - v6) {
if (v2.diagonal) {
if (zone.x > v4 - v3 and zone.x < v4 + v3) {
if (v2.incline) {
var v8 = (zone.x - (v4 - v3)) / v3 * 2;
var v7 = v5 - v6 * v8;
zone.platform_percent = v8;
} else {
var v8 = 1 - (zone.x - (v4 - v3)) / v3 * 2;
var v7 = v5 - v6 * v8;
zone.platform_percent = v8;
}
if (zone.y <= v7 + 5 and zone.y + speed >= v7 - 5) {
f_AssignPlatform(zone, v2);
zone.speed_y = 0;
f_MoveV(zone, v7 - zone.y);
zone.prevplatformx = zone.x;
zone.prevplatformy = v7;
return true;
}
}
} else {
f_AssignPlatform(zone, v2);
if (zone.bullet) {
zone.y += zone.speed_y;
zone._y = zone.y;
zone.speed_y = 0;
} else {
f_MoveV(zone, v5 - v6 - zone.y);
zone.speed_y = 0;
zone.prevplatformx = zone.x;
zone.prevplatformy = zone.y;
if (v2.springboard) {
s_spring.start(0, 0);
v2._parent.bumper.gotoAndPlay(2);
if (zone == p1) {
f_ForceJump(zone, 0, -70);
} else {
if (zone.toss_speed_x == 0) {
f_ForceJump(zone, 0, -70);
} else {
f_TossInit(zone, zone.toss_speed_x, -70);
}
}
}
}
return true;
}
}
}
}
}
}
}
if (r == false) {
f_WallBelow(zone);
}
return r;
}
function f_PH(zone, u_speed) {
if (zone.platform != undefined) {
var v3 = zone.platform;
var v2 = v3.w;
var v5 = v3.x;
var v4 = v3.y;
if (zone.x + zone.w2 < v5 - v2 or zone.x - zone.w2 > v5 + v2) {
zone.platform = undefined;
zone.speed_y = 1;
if (zone.jumping == false) {
zone.speed_y = 50;
zone.y -= 25;
zone._y = zone.y;
if (!f_PY(zone, zone.speed_y)) {
zone.y += 25;
zone._y = zone.y;
}
}
zone.speed_y = 1;
} else {
if (v3.diagonal) {
if (zone.y <= v4) {
var v6 = v3.h;
if (v3.incline) {
var v10 = (zone.x - (v5 - v2)) / v2 * 2;
var v8 = v4 - v6 * v10;
zone.platform_percent = v10;
} else {
var v10 = 1 - (zone.x - (v5 - v2)) / v2 * 2;
var v8 = v4 - v6 * v10;
zone.platform_percent = v10;
}
if (v8 >= v4 - v6) {
zone.y = v8;
zone._y = zone.y;
f_Depth(zone, zone.y);
} else {
zone.platform = undefined;
if (zone.jumping == false) {
zone.speed_y = 50;
zone.y -= 25;
zone._y = zone.y;
if (!f_PY(zone, zone.speed_y)) {
zone.y += 25;
zone._y = zone.y;
}
}
zone.speed_y = 1;
}
} else {
zone.platform = undefined;
if (zone.jumping == false) {
zone.speed_y = 50;
zone.y -= 25;
zone._y = zone.y;
if (!f_PY(zone, zone.speed_y)) {
zone.y += 25;
zone._y = zone.y;
}
}
zone.speed_y = 1;
}
}
}
if (!zone.platform) {
if (doublejump > 0) {
zone.jumps = doublejump + 2;
} else {
zone.jumps = 0;
}
}
} else {
for (n in a_Slopes) {
var v3 = a_Slopes[n];
var v2 = v3.w;
var v6 = v3.h;
var v5 = v3.x;
var v4 = v3.y;
if (zone.x + zone.w2 >= v5 - v2 and zone.x - zone.w2 <= v5 + v2) {
if (zone.y <= v4 and zone.y >= v4 - v6) {
if (v3.incline) {
var v10 = 1 - (zone.y - v4) / v6;
var v7 = v5 + v2 * v10;
v10 = (zone.x - (v5 - v2)) / v2 * 2;
var v8 = v4 - v6 * v10;
} else {
var v10 = 1 - Math.abs(zone.y - v4) / v6;
var v7 = v5 - v2 + v2 * 2 * v10;
v10 = 1 - (zone.x - (v5 - v2)) / v2 * 2;
var v8 = v4 - v6 * v10;
}
if (zone.y > v8) {
if (zone.y < v8 + 50) {
if (v3.incline and u_speed > 0 or !v3.incline and u_speed < 0) {
f_MoveV(zone, v8 - zone.y);
}
}
}
if (zone.x - u_speed <= v7 and zone.x >= v7 or zone.x - u_speed >= v7 and zone.x <= v7) {
zone.x = v7;
zone._x = zone.x;
r = true;
}
}
}
}
}
}
function f_GetSlope(zone) {
var v2 = Math.atan2(zone._parent._height, zone._parent._width) * 57.29577951308232;
if (zone.incline) {
zone.slope = -v2;
} else {
zone.slope = v2;
}
if (Math.abs(zone.slope) != 0) {
f_ObjectPush(zone, a_Slopes);
}
}
function f_PullUp(zone, speed) {
r = false;
for (n in a_Platforms) {
var v2 = a_Platforms[n];
var v6 = v2.w;
var v3 = v2.h;
var v5 = v2.x;
var v4 = v2.y;
if (zone.x + zone.w2 > v5 - v6 and zone.x - zone.w2 < v5 + v6) {
if (zone.y - zone.h >= v4 - v3 and zone.y - zone.h + speed <= v4 - v3) {
f_AssignPlatform(zone, v2);
zone.speed_y = 0;
zone.y = v4 - v3;
zone._y = zone.y;
f_Depth(zone, zone.y);
r = true;
return r;
}
}
}
return r;
}
function f_Ladder(zone) {
var v4 = 0;
var v6 = false;
if (Key.isDown(zone.b_down)) {
if (zone.platform) {
if (!zone.crouch) {
zone.crouch_timer = 0;
}
++zone.crouch_timer;
v4 = zone.speed_ladder;
v6 = true;
}
} else {
if (zone.crouch) {
zone.crouch = false;
}
if (Key.isDown(zone.b_up)) {
v4 = -zone.speed_ladder * 2;
v6 = true;
}
}
if (v6) {
if (zone.platform.elevator) {
if (v4 > 0) {
zone.crouch = false;
v4 = zone.platform.speed_y;
} else {
v4 = -zone.platform.speed_y;
}
if (zone.platform._parent.y + v4 > zone.platform._parent.limit_bottom) {
v4 = zone.platform._parent.limit_bottom - zone.platform._parent.y;
if (shake_y == 0) {
shake_y = 5;
}
} else {
if (zone.platform._parent.y + v4 < zone.platform._parent.limit_top) {
v4 = zone.platform._parent.limit_top - zone.platform._parent.y;
if (shake_y == 0) {
shake_y = 5;
}
}
}
if (shake_x == 0) {
shake_x = 3;
}
f_MoveV(zone.platform._parent, v4);
} else {
var v5 = 1;
while (v5 <= total_ladders) {
var v3 = _root['ladder' + v5];
pw = v3.w;
ph = v3.h;
px = v3.x;
py = v3.y;
if (zone.y + v4 <= py) {
if (zone.y + v4 >= py - ph) {
if (zone.x >= px - pw) {
if (zone.x <= px + pw) {
zone.ladder = v3;
zone.platform = undefined;
zone.speed_x = 0;
zone.speed_y = 0;
zone.crouch = false;
if (v4 > 0) {
zone.y += 75;
zone._y = zone.y;
f_Depth(zone, zone.y);
}
if (v4 > 0) {
zone.gotoAndStop('ladderdown');
} else {
zone.gotoAndStop('ladderup');
}
}
}
}
}
++v5;
}
}
}
if (zone.crouch) {
zone.gotoAndStop('crouch');
}
}
function f_CheckLadder(zone) {
var v2 = zone.ladder;
var v6 = v2.w;
var v7 = v2.h;
var v5 = v2.x;
var v3 = v2.y;
if (zone.punching == false) {
if (Key.isDown(zone.b_up)) {
f_MoveV(zone, -zone.speed_ladder);
if (f_PullUp(zone, -zone.speed_ladder)) {
zone.ladder = undefined;
zone.paused = true;
zone.gotoAndStop('laddertop');
} else {
zone.gotoAndStop('ladderup');
zone.body.play();
}
} else {
if (Key.isDown(zone.b_down)) {
if (f_PY(zone, zone.speed_ladder, true) == false) {
f_MoveV(zone, zone.speed_ladder);
zone.gotoAndStop('ladderdown');
zone.body.play();
} else {
zone.ladder = undefined;
return undefined;
}
} else {
zone.gotoAndStop('ladderup');
zone.body.stop();
}
}
}
var v4 = false;
if (zone.y <= v3) {
if (zone.y >= v3 - v7) {
if (zone.x >= v5 - v6) {
if (zone.x <= v5 + v6) {
v4 = true;
}
}
}
}
if (v4 == false) {
zone.ladder = undefined;
f_Ladder(zone);
}
}
function f_GeneralTimers(zone) {
if (zone.smoke_timer > 0) {
--zone.smoke_timer;
if (zone.smoke_timer % 2 == 0) {
var v2 = 90 + random(50);
f_FX(zone.x - 50 + random(100), zone.y - random(100), int(zone.y - 5 + random(10)), 'dustpuff', v2, v2);
}
}
if (zone.prev_hit_timer > 0) {
--zone.prev_hit_timer;
}
if (zone.invincible_timer > 0) {
--zone.invincible_timer;
}
if (zone.hit_timer < 1000) {
++zone.hit_timer;
}
if (zone == p1) {
if (zone.wait) {
zone.invincible_timer = 1;
if (zone.platform) {
gunshooting = false;
zone.gotoAndStop('wait');
}
}
} else {
if (zone.autowalk_timer > 0) {
--zone.autowalk_timer;
}
}
}
function f_Timers(zone) {
if (hud.health.bar._xscale < zone.health) {
++hud.health.bar._xscale;
}
if (hud.mana.bar._xscale < zone.mana) {
++hud.mana.bar._xscale;
}
f_GeneralTimers(zone);
if (zone.invincible_timer <= 0) {
if (zone.gotpixel > 0) {
--zone.gotpixel;
if (zone.gotpixel == 1) {
if (zone._xscale > 0) {
zone._xscale = 115;
} else {
zone._xscale = -115;
}
zone._yscale = 115;
f_ColorSwap(zone, color_yellow2);
} else {
if (zone.gotpixel == 0) {
f_ColorSwap(zone, color_default);
if (zone._xscale > 0) {
zone._xscale = 100;
} else {
zone._xscale = -100;
}
zone._yscale = 100;
}
}
}
}
}
function f_PipeControls(zone) {
zone.walking = false;
f_LeftRightTimers(zone);
if (!zone.punching) {
if (zone.left_timer > 0 and zone.left_timer > zone.right_timer) {
if (zone._xscale > 0) {
f_FlipChar(zone);
}
if (!zone.punching and !Key.isDown(zone.b_punch1)) {
zone.speed_x -= 4;
if (zone.speed_x <= -zone.speed_x_max / 2) {
zone.speed_x = -zone.speed_x_max / 2;
}
if (zone.x + game_x + zone.speed_x > 0) {
f_MoveH(zone, zone.speed_x);
}
zone.walking = true;
if (zone.x < zone.pipe.x - zone.pipe.w) {
zone.pipe = undefined;
zone.speed_y = 1;
s_swing1.start(0, 0);
zone.gotoAndStop('jump1_mid');
zone.body.gotoAndPlay(1);
return undefined;
}
}
} else {
if (zone.speed_x < 0) {
++zone.speed_x;
}
}
if (zone.right_timer > 0 and zone.right_timer > zone.left_timer) {
if (zone._xscale < 0) {
f_FlipChar(zone);
}
if (!zone.punching and !Key.isDown(zone.b_punch1)) {
zone.speed_x += 4;
if (zone.speed_x >= zone.speed_x_max / 2) {
zone.speed_x = zone.speed_x_max / 2;
}
if (zone.x + game_x + zone.speed_x < screenWidth) {
f_MoveH(zone, zone.speed_x);
}
zone.walking = true;
if (zone.x > zone.pipe.x + zone.pipe.w) {
zone.pipe = undefined;
zone.speed_y = 1;
s_swing1.start(0, 0);
zone.gotoAndStop('jump1_mid');
zone.body.gotoAndPlay(1);
return undefined;
}
}
} else {
if (zone.speed_x > 0) {
--zone.speed_x;
}
}
if (zone.walking) {
zone.gotoAndStop('pipe_walk');
f_Punch(zone);
} else {
zone.gotoAndStop('pipe_idle');
f_GunPlay(zone);
}
}
if (Key.isDown(zone.b_jump) or controlmode == 2 and Key.isDown(zone.b_pickup)) {
if (zone.pressed_jump == false) {
if (doublejump > 0) {
zone.jumps = doublejump + 1;
} else {
zone.jumps = 0;
}
if (Key.isDown(zone.b_jump)) {
zone.pressed_jump = true;
}
zone.speed_y = 1;
zone.pipe = undefined;
zone.punching = false;
zone.midpunch = false;
zone.jump_speed_x = 0;
s_swing1.start(0, 0);
zone.gotoAndStop('jump1_mid');
zone.body.gotoAndPlay(1);
return undefined;
}
} else {
zone.pressed_jump = false;
}
}
function f_GunPlay(zone) {
if (zone.prev_hit_timer <= 0) {
if (controlmode == 2) {
u_point.x = 0;
u_point.y = -50;
zone.localToGlobal(u_point);
var v4 = u_point.x;
var v3 = u_point.y;
dy = _ymouse - u_point.y;
dx = _xmouse - u_point.x;
if ((u_point.x - _xmouse) * p1._xscale > 0) {
p1._xscale *= -1;
}
if (zone.gun_type == 101) {
zone.gun_frame = 15;
zone.gun.gotoAndStop(15);
} else {
if (zone._xscale < 0) {
dx = -dx;
}
var v2 = int(f_rad2deg(Math.atan2(dy, dx)));
if (v2 < 0) {
v2 += 360;
}
zone.gun.gotoAndStop(v2 + 100);
}
} else {
if (Key.isDown(zone.b_down)) {
if (!Key.isDown(zone.b_left) and !Key.isDown(zone.b_right) and !zone.platform or !zone.platform) {
zone.gun_frame = 1;
} else {
zone.gun_frame = 10;
}
} else {
if (Key.isDown(zone.b_up)) {
if (!Key.isDown(zone.b_left) and !Key.isDown(zone.b_right)) {
zone.gun_frame = 29;
} else {
zone.gun_frame = 21;
}
} else {
zone.gun_frame = 15;
}
}
if (zone.gun_type == 101) {
zone.gun_frame = 15;
zone.gun.gotoAndStop(15);
} else {
if (zone.gun._currentframe < zone.gun_frame) {
if (zone.gun_frame > zone.gun._currentframe + 4) {
zone.gun.gotoAndStop(zone.gun._currentframe + int((zone.gun_frame - zone.gun._currentframe) / 4));
} else {
zone.gun.gotoAndStop(zone.gun._currentframe + 1);
}
} else {
if (zone.gun._currentframe > zone.gun_frame) {
if (zone.gun_frame < zone.gun._currentframe - 4) {
zone.gun.gotoAndStop(zone.gun._currentframe - int((zone.gun._currentframe - zone.gun_frame) / 4));
} else {
zone.gun.gotoAndStop(zone.gun._currentframe - 1);
}
}
}
}
}
f_Punch(zone);
}
}
function f_Controls(zone) {
if (!zone.paused) {
f_CheckJump(zone);
if (!zone.punching) {
if (zone.ladder == undefined) {
if (!zone.jumping) {
f_Ladder(zone);
}
} else {
f_CheckLadder(zone);
}
}
if (zone.freeze_timer <= 0) {
if (!zone.crouch and !(zone.ladder and zone.punching)) {
f_Walk(zone);
if (zone.wall_pt) {
if (zone.wallstick > 0) {
if (zone.wall_pt.sticky) {
if (zone.speed_y >= -5 and !zone.platform) {
if (zone.x < zone.wall_pt.x and zone._xscale > 0 or zone.x > zone.wall_pt.x and zone._xscale < 0) {
zone._xscale *= -1;
zone.gotoAndStop('wall_idle');
return undefined;
}
}
}
}
}
}
} else {
--zone.freeze_timer;
}
if (zone.ladder == undefined and !zone.paused) {
if (zone.platform == undefined or zone.jumping) {
if (zone.float_timer > 0) {
--zone.float_timer;
} else {
if (zone.jump_speed_x != 0) {
f_MoveH(zone, zone.jump_speed_x);
}
if (zone.speed_y >= 0) {
var v4 = 1;
while (v4 <= total_pipes) {
var v3 = _root['pipe' + v4];
pw = v3.w;
ph = v3.h;
px = v3.x;
py = v3.y;
if (zone.y - zone.h <= py) {
if (zone.y - zone.h >= py - ph) {
if (zone.x >= px - pw) {
if (zone.x <= px + pw) {
zone.pipe = v3;
zone.platform = undefined;
zone.speed_x = 0;
zone.speed_y = 0;
zone.crouch = false;
zone.y = py + 190;
zone._y = zone.y;
zone.gotoAndStop('pipe_idle');
}
}
}
}
++v4;
}
if (!zone.pipe) {
if (f_PY(zone, zone.speed_y) == false) {
f_MoveV(zone, zone.speed_y);
zone.speed_y += zone.weight;
zone.jumping = false;
f_GoFrame(zone, 'jump1_mid');
} else {
zone.jump_speed_x = 0;
zone.punching = false;
zone.midpunch = false;
f_FX(zone.x, zone.y, zone.y + 10, 'dustpuff', 100, 100);
f_GoFrame(zone, 'stand');
}
}
} else {
if (doublejump > 0 and zone.jumps <= doublejump) {
f_GoFrame(zone, 'jump1_mid');
} else {
f_GoFrame(zone, 'jump1');
}
if (f_WallAbove(zone, zone.speed_y) == false) {
f_MoveV(zone, zone.speed_y);
}
zone.speed_y += zone.weight;
}
if (zone.speed_y > zone.speed_y_max) {
zone.speed_y = zone.speed_y_max;
}
}
} else {
zone.dashing_timer = 0;
if (zone.crouch) {
f_LeftRightTimers(zone);
if (zone.left_timer > 0 and zone.left_timer > zone.right_timer) {
if (zone._xscale > 0) {
f_FlipChar(zone);
}
}
if (zone.right_timer > 0 and zone.right_timer > zone.left_timer) {
if (zone._xscale < 0) {
f_FlipChar(zone);
}
}
f_GoFrame(zone, 'crouch');
} else {
if (zone.walking) {
if (zone.dashing and (zone.speed_x == -zone.speed_x_dash or zone.speed_x == zone.speed_x_dash)) {
f_GoFrame(zone, 'dash');
} else {
f_GoFrame(zone, 'walk');
}
} else {
if (zone.platform.diagonal) {
f_GoFrame(zone, 'stand');
} else {
f_GoFrame(zone, 'stand');
}
}
}
}
}
f_GunPlay(zone);
}
}
function f_Depth(u_char, u_depth) {
var v2 = 200 * ((u_depth - abs_top) / abs_bottom);
if (u_char.depth_mod == undefined) {
trace('NO DEPTH: ' + u_char);
}
u_char.current_depth = int(v2 * 200 + u_char.depth_mod);
u_char.swapDepths(u_char.current_depth);
}
function f_SetDepths() {
for (n in a_Players) {
var v1 = a_Players[n];
f_Depth(v1, v1.y);
}
for (n in a_Enemies) {
v1 = a_Enemies[n];
if (!v1.nodepth) {
f_Depth(v1, v1.y);
}
}
}
function f_ClearDepth(u_char) {
u_char.swapDepths(u_char.depth_mod);
}
function f_SetDepthMod() {
++current_depth_mod;
if (current_depth_mod > depth_mod_max) {
current_depth_mod = 1;
}
return current_depth_mod;
}
function f_AddNeutral(zone) {
zone.depth_mod = f_SetDepthMod();
f_Depth(zone, zone._y);
}
function f_OptionalForceSlide(zone) {
if (zone._xscale > 0 and Key.isDown(zone.b_right) or zone._xscale < 0 and Key.isDown(zone.b_left)) {
f_ForceSlide(zone);
}
}
function f_ForceSlide(zone) {
if (zone._xscale > 0) {
if (zone.x + game_x + zone.slide_x < screenWidth) {
f_MoveH(zone, zone.slide_x);
}
} else {
if (zone.x + game_x - zone.slide_x > 0) {
f_MoveH(zone, -zone.slide_x);
}
}
--zone.slide_x;
if (zone.slide_x <= 0) {
zone.slide_x = 0;
}
if (zone.slide_y < 0) {
if (f_WallAbove(zone, zone.slide_y) == false) {
f_MoveV(zone, zone.slide_y);
}
++zone.slide_y;
}
}
function f_ForceSlideBack(zone) {
if (zone.force_x < 0) {
if (zone.x + game_x + zone.force_x > 0) {
f_MoveH(zone, zone.force_x);
}
++zone.force_x;
if (zone.force_x > 0) {
zone.force_x = 0;
}
} else {
if (zone.x + game_x + zone.force_x < screenWidth) {
f_MoveH(zone, zone.force_x);
}
--zone.force_x;
if (zone.force_x < 0) {
zone.force_x = 0;
}
}
}
function f_Health(zone, u_temp) {
zone.health += u_temp;
if (zone.health < 0) {
zone.health = 0;
} else {
if (zone.health > zone.health_max) {
zone.health = zone.health_max;
}
}
if (zone == p1) {
hud.health.bar._xscale = zone.health;
}
}
function f_Damage(zone, damage_val) {
var v2 = damage_val - zone.defense;
if (v2 < 1) {
if (damage_val > 0) {
v2 = 1;
} else {
v2 = 0;
}
}
if (v2 > 0) {
var v3 = f_FX(zone.x, zone.impact_y - 50, zone.y + 200, 'damage_val', 100, 100);
f_ShowVal(v3, v2, color_red);
if (zone._xscale > 0) {
v3.force_x = -zone.force_x * 0.5;
} else {
v3.force_x = zone.force_x * 0.5;
}
v3.force_y = zone.force_y * 0.5;
zone.health -= v2;
if (zone.health < 0) {
zone.health = 0;
}
if (zone == p1) {
hud.health.bar._xscale = zone.health;
hud.health.flasher._xscale = v2;
hud.health.flasher._x = zone.health;
hud.health.flasher.gotoAndPlay(2);
}
}
}
function f_GameOver() {
if (!gameover) {
gameover = true;
fader.warpto = 'reset';
fader.spawnpoint = spawnpoint;
fader.gotoAndPlay('fadeout');
}
}
function f_HitPlayer(zone) {
var v3 = 80 + random(30);
var v4 = f_FX(zone.x, zone.y - 40, zone.y + 10, 'impact1', v3, v3);
v4._rotation = random(180);
_root.f_DamagePlayer(1);
if (!zone.hitby.bullet) {
if (Math.abs(zone.force_x) > 12) {
s_punch3.start(0, 0);
} else {
f_PunchSound();
}
}
zone.nojumpanim = false;
zone.gun.gun.gun.gun.gotoAndStop('idle');
gunshooting = false;
if (zone.gun_type == 30) {
if (zone.chainsawing) {
zone.chainsawing = false;
s_chainsaw.s_chainsaw1.stop();
s_chainsaw4.start(0, 0);
s_chainsaw.s_chainsaw3.start(0, 9999);
}
}
if (zone.platform and zone.force_y >= -10) {
zone.force_y = -10;
}
if (zone.hitby.x < zone.x or zone.hitby.force_x > 0) {
if (!zone.hitby.noturn) {
if (zone._xscale > 0) {
zone._xscale *= -1;
}
}
f_TossInit(zone, zone.force_x, zone.force_y);
} else {
if (!zone.hitby.noturn) {
if (zone._xscale < 0) {
zone._xscale *= -1;
}
}
f_TossInit(zone, zone.force_x, zone.force_y);
}
}
function f_DefaultStats() {
stats = new Object();
stats.health_max = 20;
stats.health = stats.health_max;
stats.attack = 1;
stats.defense = 1;
stats.force_mod = 1;
stats.speed_x_max = 12;
stats.doublejump = 1;
stats.wave = 0;
stats.kills = 0;
stats.kills_goal = 0;
stats.money = 0;
var v1 = 1;
while (v1 <= turret_total) {
stats['t' + v1] = 0;
++v1;
}
}
function f_RetrievePlayerStats() {
p1.health_max = stats.health_max;
p1.health = stats.health;
p1.attack = stats.attack;
p1.defense = stats.defense;
p1.force_mod = stats.force_mod;
p1.speed_x_max = stats.speed_x_max;
}
function f_RetrieveGameStats() {
doublejump = stats.doublejump;
wave = stats.wave;
kills = stats.kills;
kills_goal = stats.kills_goal;
money = stats.money;
var v1 = 1;
while (v1 <= turret_total) {
game.game['t' + v1].level = stats['t' + v1];
++v1;
}
nextwave = false;
newgame = false;
}
function f_BackupStats() {
stats = new Object();
stats.health_max = p1.health_max;
stats.health = p1.health;
stats.attack = p1.attack;
stats.defense = p1.defense;
stats.force_mod = p1.force_mod;
stats.speed_x_max = p1.speed_x_max;
stats.doublejump = doublejump;
stats.wave = wave;
stats.kills = kills;
stats.kills_goal = kills_goal;
stats.money = money;
var v1 = 1;
while (v1 <= turret_total) {
stats['t' + v1] = game.game['t' + v1].level;
++v1;
}
}
function f_Save() {
so = SharedObject.getLocal('Madness2010');
so.clear();
so.data.stats = stats;
}
function f_Load() {
so = SharedObject.getLocal('Madness2010');
stats = so.data.stats;
}
function f_SavedGame() {
so = SharedObject.getLocal('Madness2010');
if (so.data.stats.wave) {
return true;
} else {
return false;
}
}
function f_Erase() {
so = SharedObject.getLocal('Madness2010');
so.clear();
}
function f_InitPlayer(zone) {
if (zone == p1) {
if (controlmode == 1) {
zone.b_punch1 = 65;
zone.b_jump = 83;
zone.b_left = 37;
zone.b_up = 38;
zone.b_right = 39;
zone.b_down = 40;
zone.b_pickup = 68;
} else {
if (controlmode == 2) {
zone.b_jump = 87;
zone.b_left = 65;
zone.b_right = 68;
zone.b_down = 83;
zone.b_pickup = 83;
}
}
zone.x = zone._x;
zone.y = zone._y;
zone.depth_mod = p1_depth_mod;
} else {
if (zone == p2) {
zone.b_punch1 = 219;
zone.b_punch2 = 221;
zone.b_jump = 220;
zone.b_left = 74;
zone.b_up = 73;
zone.b_right = 76;
zone.b_down = 75;
zone.x = screenWidth / 1.7 - game_x;
zone.y = screenHeight / 1.7 - game_y;
zone.depth_mod = p2_depth_mod;
}
}
f_Depth(zone, zone.y);
f_NewShadow(zone);
zone.speed_x_dash = 30;
zone.speed_x = 0;
zone.speed_y = 0;
zone.speed_y_max = speed_y_max;
zone.jump_speed_x = 0;
zone.speed_ladder = 8;
zone.launch = -25;
zone.weight = 1.75;
zone.bounce = 0.25;
zone.h = zone.zone._height;
zone.invincible_timer = 0;
zone.face_type = 1;
zone.body_type = 4;
zone.head_type = 1;
zone.bounce_limit = 2;
f_RetrievePlayerStats();
if (!zone.gun_type) {
f_GetGun31(zone);
}
zone.damage_val = zone.attack;
zone.left_timer = 0;
zone.right_timer = 0;
zone.fp_Hit1 = f_HitPlayer;
zone.fp_HitGround = f_HitGround1;
zone.w2 = 2;
zone._xscale = 100;
zone._yscale = 100;
zone.goodguy = true;
zone.pushesenemies = true;
zone._x = zone.x;
zone._y = zone.y;
zone.noremove = true;
zone.platform = undefined;
zone.ladder = undefined;
zone.punching = false;
zone.active = true;
zone.alive = true;
zone.float_timer = 0;
zone.bullet_timer = 1;
zone.texture = 4;
f_PlayerPush(zone);
++players;
zone.gotoAndStop('stand');
}
function f_CreateFX() {
i = 1;
while (i <= total_fx) {
var v3 = 'fx' + i;
var v1 = f_SetDepthMod();
game.game.attachMovie('fx', v3, v1);
var v2 = game.game['fx' + i];
v2.depth_mod = v1;
v2.noremove = true;
++i;
}
}
function f_CreateShadows(u_temp) {
total_shadows = u_temp;
i = 1;
while (i <= total_shadows) {
u_temp = 's' + i;
var v1 = f_SetDepthMod();
game.game.attachMovie('shadow', u_temp, v1);
u_temp = game.game['s' + i];
u_temp.depth_mod = v1;
u_temp.gotoAndStop('off');
++i;
}
}
function f_CreateItems(u_temp) {
total_items = u_temp;
i = 1;
while (i <= total_items) {
u_temp = 'item' + i;
var v1 = f_SetDepthMod();
game.game.attachMovie('item', u_temp, v1);
u_temp = game.game['item' + i];
u_temp.depth_mod = v1;
++i;
}
}
function f_FX(fx_x, fx_y, fx_depth, fx_type, fx_xscale, fx_yscale) {
var v1 = game.game['fx' + current_fx];
v1._x = fx_x;
v1._y = fx_y;
if (fx_xscale != undefined) {
v1._xscale = fx_xscale;
} else {
v1._xscale = 100;
}
if (fx_yscale != undefined) {
v1._yscale = fx_yscale;
} else {
v1._yscale = 100;
}
v1.noturn = false;
v1.force_x = 0;
v1.force_y = 0;
v1.damage_val = 0;
v1.hitall = false;
v1.attribute_poison = false;
v1.bullet = false;
v1._rotation = 0;
v1.gotoAndStop('blank');
v1.gotoAndStop(fx_type);
++current_fx;
if (current_fx > total_fx) {
current_fx = 1;
}
f_Depth(v1, fx_depth);
return v1;
}
function f_Item(u_x, u_y, u_depth, item_type, u_xscale, u_yscale) {
var v1 = game.game['item' + current_item];
v1.x = u_x;
v1.y = u_y;
v1._x = v1.x;
v1._y = v1.y;
v1.speed_y = 0;
v1.speed_y_max = 30;
v1.jump_speed_x = 0;
v1.platform = undefined;
v1.jumping = false;
v1.nojumpanim = true;
v1.launch = -20;
v1.weight = 1.5;
v1.weapon = false;
v1.active = true;
if (u_xscale != undefined) {
v1._xscale = u_xscale;
} else {
v1._xscale = 100;
}
if (u_yscale != undefined) {
v1._yscale = fx_yscale;
} else {
v1._yscale = 100;
}
v1.gotoAndStop('blank');
v1.gotoAndStop(item_type);
v1.w = v1._width / 2;
v1.w2 = v1._width / 2;
v1.h = v1._height;
++current_item;
if (current_item > total_items) {
current_item = 1;
}
f_Depth(v1, u_depth);
f_ObjectPush(v1, a_Items);
return v1;
}
function f_NewShadow(zone) {
var v1 = game.game['s' + current_shadow];
v1.x = zone.x;
v1.y = zone.y;
v1._x = v1.x;
v1._y = v1.y;
v1.w = 25;
v1.w2 = 2;
++current_shadow;
if (current_shadow > total_shadows) {
current_shadow = 1;
}
f_Depth(v1, zone.y - 1);
v1.gotoAndStop('on');
v1.owner = zone;
zone.shadow = v1;
}
function f_Shadow(zone) {
zone.x = zone.owner.x;
zone.y = zone.owner.y;
if (!zone.owner.platform) {
zone.y -= 10;
zone.platform = false;
f_PY(zone, 2000, false);
}
u_size = zone.y - zone.owner.y;
if (u_size > 50) {
u_size = 50;
}
u_size = 100 - u_size;
zone.body._xscale = u_size;
zone.body._yscale = u_size;
zone._x = zone.x;
zone._y = zone.y;
f_Depth(zone, zone.y - 3);
}
function f_ShrapnelExplode(zone) {
zone.gotoAndStop('explosion3');
}
function f_ShrapnelSplatter(zone) {
zone.gotoAndStop('blood1');
}
function f_ShrapnelRemove(zone) {
zone.gotoAndStop('remove');
}
function f_ShrapnelVanish(zone) {
zone.gotoAndStop('blank');
}
function f_ShrapnelGeneral(x, y, u_depth, u_speed_x, u_speed_y, item) {
var v1 = f_FX(x, y, u_depth, item, 100, 100);
v1.x = v1._x;
v1.y = v1._y;
v1.w = 1;
v1.w2 = 2;
v1.h = 1;
v1.platform = undefined;
v1.bounces = 0;
v1.bounce_limit = 1;
v1.weight = 2;
v1.bounce = 0.6;
v1.spin = true;
v1.speed_y = u_speed_y;
v1.toss_speed_x = u_speed_x;
v1.fp_ShrapnelEnd = f_ShrapnelRemove;
return v1;
}
function f_Shrapnel(zone) {
zone.old_speed_y = zone.speed_y;
if (zone.speed_y < 0) {
f_WallAbove(zone, zone.speed_y);
}
var v2 = f_MoveH(zone, zone.toss_speed_x);
if (zone.spin) {
if (zone._xscale < 0) {
zone.body._rotation -= v2;
} else {
zone.body._rotation += v2;
}
}
if (v2 == 0) {
zone.toss_speed_x *= -zone.bounce;
}
var v3 = zone.y;
if (f_PY(zone, zone.speed_y) == false) {
f_MoveV(zone, zone.speed_y);
zone.speed_y += zone.weight;
} else {
if (zone.old_speed_y > 4 and zone.bounces < zone.bounce_limit) {
zone.speed_y = zone.old_speed_y * -zone.bounce;
zone.platform = undefined;
++zone.bounces;
} else {
zone.fp_ShrapnelEnd(zone);
}
}
}
function f_BloodShrapnel(zone) {
zone._x += zone.speed_x;
zone.body._y += zone.speed_y;
zone.speed_y += zone.gravity;
if (zone.body._y > 0) {
zone.gotoAndStop('blank');
}
}
function f_TossHitChar(zone, u_p) {
if (zone != u_p) {
if (u_p.platform != undefined and u_p.humanoid) {
if (u_p.invincible_timer <= 0) {
if (zone.y - zone.h + 1 < u_p.y) {
if (zone.y >= u_p.y - u_p.h / 3) {
if (zone.x + zone.w > u_p.x - u_p.w) {
if (zone.x - zone.w < u_p.x + u_p.w) {
var v5 = zone.x + zone.w;
var v4 = u_p.x - u_p.w;
if (u_p.x > zone.x and zone.toss_speed_x > 0) {
u_p.x = zone.x + zone.w + u_p.w;
var v3 = Math.abs(zone.toss_speed_x);
f_FX(u_p.x, u_p.y - 50, u_p.y + 10, 'impact1', 90, 90);
s_punch2.start(0, 0);
u_p.invincible_timer = 10;
f_TossInit(u_p, v3, -10);
} else {
if (u_p.x < zone.x and zone.toss_speed_x < 0) {
u_p.x = zone.x - zone.w - u_p.w;
var v3 = -Math.abs(zone.toss_speed_x);
f_FX(u_p.x, u_p.y - 50, u_p.y + 10, 'impact1', 90, 90);
s_punch2.start(0, 0);
u_p.invincible_timer = 10;
f_TossInit(u_p, v3, -10);
}
}
}
}
}
}
}
}
}
}
function f_TossHit(zone) {
for (n in a_Players) {
var v1 = a_Players[n];
f_TossHitChar(zone, v1);
}
for (n in a_Enemies) {
v1 = a_Enemies[n];
f_TossHitChar(zone, v1);
}
}
function f_Toss(zone) {
var v2 = zone.speed_y;
var v6 = zone.toss_speed_x;
var v3 = f_MoveH(zone, zone.toss_speed_x);
if (zone.hitwall) {
if (zone.fp_HitWall(zone)) {
return undefined;
}
}
if (zone.spin and !zone.platform) {
zone.body._rotation += v3;
} else {
zone.fp_FixRotation(zone);
}
if (zone == p1) {
var v4 = screenWidth;
var v5 = 0;
} else {
var v4 = screenWidth + 100;
var v5 = -100;
}
if (v3 == 0) {
if (zone.pushes) {
zone.toss_speed_x *= -1;
} else {
zone.toss_speed_x *= -zone.bounce;
}
} else {
if (zone.x - zone.w + game_x > v4 or zone.x + zone.w + game_x < v5) {
if (zone == p1 and nostopping) {
} else {
v3 = 0;
zone.toss_speed_x = 0;
}
} else {
zone.toss_speed_x = v3;
}
}
var v7 = zone.y;
if (f_PY(zone, zone.speed_y) == false) {
if (zone.speed_y <= 0) {
if (f_WallAbove(zone, zone.speed_y * 2) == false) {
f_MoveV(zone, zone.speed_y);
}
} else {
f_MoveV(zone, zone.speed_y);
}
zone.speed_y += zone.weight;
if (zone.speed_y - zone.weight <= 0 and zone.speed_y > 0) {
if (!zone.blocking) {
zone.gotoAndStop('fish2');
}
}
} else {
f_FX(zone.x, zone.y, zone.y + 10, 'dust1', 100, 100);
if (zone.platform.diagonal) {
if (zone.bounces <= zone.temp_bounce_limit) {
s_bodyfall2.start(0, 0);
if (zone.platform.incline) {
if (zone.toss_speed_x > 0) {
zone.toss_speed_x *= zone.bounce / 2;
if (v2 <= 4 * (1 / zone.bounce)) {
v2 = 5;
}
}
} else {
if (zone.toss_speed_x < 0) {
zone.toss_speed_x *= zone.bounce / 2;
if (v2 <= 4) {
v2 = 5;
}
}
}
}
}
if (zone.weight >= 3) {
if (f_OnScreen(zone)) {
shake_y = 6;
}
}
if (v2 > 4 and zone.bounces < zone.temp_bounce_limit) {
zone.speed_y = v2 * -zone.bounce;
zone.platform = undefined;
++zone.bounces;
s_bodyfall2.start(0, 0);
if (!zone.blocking) {
zone.gotoAndStop('fish1');
}
} else {
zone.jumping = false;
}
}
if (zone == p1) {
f_TossHit(zone);
if (zone.invincible_timer < 5) {
zone.invincible_timer = 5;
}
}
if (zone.y > abs_bottom) {
zone.health = 0;
zone.fp_HitGround(zone);
return undefined;
}
if (zone.speed_y == 0 and zone.platform) {
if (zone.pushes) {
if (zone.toss_speed_x > 0) {
zone.toss_speed_x -= 1;
if (zone.toss_speed_x < 0) {
zone.toss_speed_x = 0;
}
} else {
if (zone.toss_speed_x < 0) {
zone.toss_speed_x += 1;
if (zone.toss_speed_x > 0) {
zone.toss_speed_x = 0;
}
} else {
zone.tossed = false;
if (zone.blocking) {
zone.blocking = false;
zone.gotoAndStop('stand');
} else {
zone.fp_HitGround(zone);
}
}
}
} else {
zone.tossed = false;
if (zone.blocking) {
zone.blocking = false;
zone.gotoAndStop('stand');
} else {
zone.fp_HitGround(zone);
}
}
}
}
function f_HitGround1(zone) {
f_ShakeY(5);
f_BodyFallSound();
zone.onground = true;
zone.gotoAndStop('hitground');
}
function f_HitGround2(zone) {
zone.gotoAndStop('stand');
}
function f_TossPose(zone) {
if (Math.abs(zone.speed_y) > Math.abs(zone.toss_speed_x)) {
zone.body.gotoAndStop(2);
} else {
zone.body.gotoAndStop(1);
}
}
function f_TossInit(tossee, speedx, speedy) {
tossee.toss_speed_x = speedx;
if (zone.pushes) {
if (speedx > 0 and speed_x < 20) {
tossee.toss_speed_x = 20;
} else {
if (speedx < 0 and speed_x > -20) {
tossee.toss_speed_x = -20;
}
}
}
tossee.rotate_speed = speedx;
tossee.speed_y = speedy;
if (speedy != 0) {
tossee.platform = undefined;
}
tossee.tossed = true;
tossee.jumping = true;
tossee.punching = false;
tossee.midpunch = false;
tossee.float_timer = 0;
tossee.bounces = 0;
if (tossee.bounce_limit >= 0) {
tossee.temp_bounce_limit = tossee.bounce_limit;
} else {
tossee.temp_bounce_limit = 1000;
}
tossee.gotoAndStop('toss');
tossee.body.gotoAndPlay(1);
}
function f_QueueFall(zone) {
zone.queue_y_speed += zone.queue_y_speed + zone.weight;
zone.speed_y = zone.queue_y_speed;
f_PY(zone, zone.speed_y);
zone.speed_y = zone.speed_y_max;
}
function f_FixRotation(zone) {
var v2 = zone.body._rotation;
if (v2 > -180 and v2 < -90) {
if (zone.rotate_speed > 0) {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
++zone.rotate_speed;
if (v2 > -90) {
v2 = -90;
}
} else {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
--zone.rotate_speed;
if (v2 < -180) {
v2 = -180;
}
}
zone.body._rotation = v2;
} else {
if (v2 > -90 and v2 < 0) {
if (zone.rotate_speed > 0) {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
++zone.rotate_speed;
if (v2 > 0) {
v2 = 0;
}
} else {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
--zone.rotate_speed;
if (v2 < -90) {
v2 = -90;
}
}
zone.body._rotation = v2;
} else {
if (v2 > 0 and v2 < 90) {
if (zone.rotate_speed > 0) {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
++zone.rotate_speed;
if (v2 > 90) {
v2 = 90;
}
} else {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
--zone.rotate_speed;
if (v2 < 0) {
v2 = 0;
}
}
zone.body._rotation = v2;
} else {
if (v2 > 90 and v2 < 180) {
if (zone.rotate_speed > 0) {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
++zone.rotate_speed;
if (v2 > 180) {
v2 = 180;
}
} else {
v2 += zone.rotate_speed;
f_MoveH(zone, zone.rotate_speed);
f_MovePlatformH(zone, zone.rotate_speed);
f_UpdateWall(zone, zone.z_wall);
--zone.rotate_speed;
if (v2 < 90) {
v2 = 90;
}
}
zone.body._rotation = v2;
}
}
}
}
}
function f_InitGeneral(zone) {
zone.speed_y = 0;
zone.speed_y_max = 30;
zone.active = true;
zone.alive = true;
zone.platform = undefined;
zone.hitby = undefined;
zone.nohit = false;
zone.float_timer = 0;
zone.jumping = false;
zone.x = zone._x;
zone.y = zone._y;
zone.depth_mod = f_SetDepthMod();
zone.fp_HitGround = f_HitGround1;
}
function f_RemovePlatform(u_platform) {
for (n in a_Players) {
var v2 = a_Players[n];
if (v2.platform == u_platform) {
v2.platform = undefined;
}
}
for (n in a_Enemies) {
var v1 = a_Enemies[n];
if (v1.platform == u_platform) {
v1.platform = undefined;
}
}
f_ObjectPop(u_platform, a_Platforms);
}
function f_UpdatePlatform(zone, u_platform) {
u_platform.x = zone._x + u_platform._x * (zone._xscale / 100);
u_platform.y = zone._y + u_platform._y * (zone._yscale / 100);
}
function f_AddPlatform(zone, u_platform) {
u_platform.x = zone._x + u_platform._x * (zone._xscale / 100);
u_platform.y = zone._y + u_platform._y * (zone._yscale / 100);
u_platform.w = (u_platform._width / 2) * (zone._xscale / 100);
u_platform.h = u_platform._height * (zone._yscale / 100);
f_ObjectPush(u_platform, a_Platforms);
}
function f_UpdateWall(zone, u_wall) {
u_wall.x = zone._x + u_wall._x;
u_wall.y = zone._y + u_wall._y;
}
function f_AddWall(zone, u_wall) {
u_wall.x = zone._x + u_wall._x;
u_wall.y = zone._y + u_wall._y;
u_wall.w = (u_wall._width / 2) * (zone._xscale / 100);
u_wall.h = u_wall._height * (zone._yscale / 100);
zone.w = u_wall.w;
zone.h = u_wall.h;
f_ObjectPush(u_wall, a_Walls);
}
function f_RemoveWall(u_wall) {
f_ObjectPop(u_wall, a_Walls);
}
function f_AddEnemyPush(zone) {
f_ObjectPush(zone, a_EnemiesPush);
}
function f_AddLadder(zone) {
++total_ladders;
zone.id = total_ladders;
zone.x = zone._x;
zone.y = zone._y;
zone.w = zone._width / 2;
zone.h = zone._height;
_root['ladder' + total_ladders] = zone;
}
function f_AddPipe(zone) {
++total_pipes;
zone.id = total_pipes;
zone.x = zone._x;
zone.y = zone._y;
zone.w = zone._width / 2;
zone.h = zone._height;
_root['pipe' + total_pipes] = zone;
}
function f_AddEnemy(zone) {
++total_enemies;
zone.id = total_enemies;
zone.x = zone._x;
zone.y = zone._y;
if (zone.z_wall) {
zone.w = zone.z_wall._width / 2;
zone.h = zone.z_wall._height;
} else {
zone.w = zone._width / 2;
zone.h = zone._height;
}
zone.active = true;
a_EnemiesLog.push(zone);
f_EnemyPush(zone);
}
function f_Clear() {
a_tiles = new Array(0);
a_Platforms = new Array(0);
a_Walls = new Array(0);
a_Slopes = new Array(0);
a_Ladders = new Array(0);
a_Players = new Array(0);
a_Enemies = new Array(0);
a_EnemiesLog = new Array(0);
a_EnemiesPush = new Array();
a_Events = new Array();
a_ObjectData = new Array(0);
a_Items = new Array(0);
total_platforms = 0;
total_walls = 0;
total_ladders = 0;
total_pipes = 0;
total_enemies = 0;
cleanup();
hand1ScreenOverlay.dispose();
hand2ScreenOverlay.dispose();
bossScreenOverlay.dispose();
screenOverlay.dispose();
if (total_shadows) {
i = 1;
while (i <= total_shadows) {
var v1 = game.game['s' + i];
v1.removeMovieClip();
++i;
}
}
}
function f_Blur(zone, blurx, blury, blurq) {
var v1 = new flash.filters.BlurFilter(blurx, blury, blurq);
zone.filters = [v1];
}
function f_Slowdown(u_rate, u_timer) {
slowdown_delay = 2;
slowdown_timer_default = u_timer;
slowdown_timer_rate = u_rate;
}
function f_LevelDefaults() {
y_expanse = game.game.abs_bottom._y - game.game.abs_top._y;
abs_bottom = game.game.abs_bottom._y;
abs_top = game.game.abs_top._y;
target_scale = 100;
u_scale = 100 / game._xscale;
p1 = game.game.p1;
camera = game.game.camera;
limit_left = undefined;
limit_right = undefined;
limit_top = undefined;
limit_bottom = undefined;
game.game.container = true;
slowdown_timer = 0;
f_CreateFX();
f_CreateItems(10);
f_CreateShadows(10);
camera_lag = camera_lag_default;
bosshealth.gotoAndStop(1);
nostopping = false;
f_RetrieveGameStats();
bg_default_x = game.game._x;
bg_default_y = game.game._y;
root_default_x = game.game._x + game._x;
root_default_y = game.game._y + game._y;
if (game.game.bg1) {
game.game.bg1._x = game.game.bg1_lock._x;
game.game.bg1._y = game.game.bg1_lock._y;
bg1_default_x = game.game.bg1._x + bg_default_x;
bg1_default_y = game.game.bg1._y + bg_default_y;
}
if (game.game.bg2) {
game.game.bg2._x = game.game.bg2_lock._x;
game.game.bg2._y = game.game.bg2_lock._y;
bg2_default_x = game.game.bg2._x + bg_default_x;
bg2_default_y = game.game.bg2._y + bg_default_y;
}
}
function f_Level1_31Init() {
currentlevel = 'level1_31';
limit_left = game.game.limit_left._x;
limit_right = game.game.limit_right._x;
limit_top = game.game.limit_top._y;
limit_bottom = game.game.limit_bottom._y;
level_texture = 3;
if (spawnpoint == 1) {
camera._x = game.game.spawn1._x + 200;
camera._y = game.game.spawn1._y;
f_CameraPop();
p1._x = game.game.spawn1._x;
p1._y = game.game.spawn1._y;
f_InitPlayer(p1);
camera.prey = p1;
f_CameraPop();
survival_scale = 60;
survival_min = 35;
target_scale = survival_scale;
f_ScalePop();
f_CameraPop();
p1.gotoAndStop('stand');
}
}
function f_Training() {
camera._x = game.game.chase_cam._x;
camera._y = game.game.chase_cam._y;
f_CameraPop();
p1._x = game.game.spawn1._x;
p1._y = game.game.spawn1._y;
f_InitPlayer(p1);
camera.prey = game.game.chase_cam;
f_CameraPop();
p1.gotoAndStop('stand');
}
function f_rad2deg(radian) {
return 57.29577951308232 * radian;
}
function f_ChangeSong(newsong, noloop) {
music.gotoAndStop(1);
song.stop();
stopAllSounds();
song = newsong;
if (musicoff) {
song.setVolume(0);
} else {
song.setVolume(100);
}
if (noloop) {
song.start(0, 0);
} else {
song.start(0, 1000);
}
}
function f_FadeSong(newsong) {
if (musicoff) {
f_ChangeSong(newsong);
} else {
music.newsong = newsong;
music.gotoAndStop('fade');
}
}
function f_NewGame() {
f_Clear();
newgame = true;
lives = 3;
got_pacifist = false;
chainsawblood = 0;
current_hit = 0;
current_shot = 0;
spawnpoint = 1;
}
function f_Medal(medal) {
com.newgrounds.API.unlockMedal(medal);
}
function f_CheckStart() {
if (Key.isDown(b_action)) {
if (!pressed_action) {
pressed_action = true;
return true;
}
return false;
}
pressed_action = false;
return false;
}
function f_Buy() {
s_buy.start(0, 0);
game.game.bg1.gotoAndPlay('buy');
}
function f_NoBuy() {
s_nobuy.start(0, 0);
game.game.bg1.gotoAndPlay('nobuy');
}
function f_Init() {
PI = 0.0174532925199433;
b_start1 = 49;
b_start2 = 50;
players = 0;
current_depth_mod = 0;
u_point = new Object();
total_fx = 200;
current_fx = 1;
current_item = 1;
current_shadow = 1;
depth_mod_max = 298;
p1_depth_mod = 296;
p2_depth_mod = 297;
turret_total = 6;
f_DefaultStats();
dash_timer = 4;
shake_x = 0;
shake_y = 0;
rockbreaker = 0;
chronicdash = 0;
wallstick = 0;
got_defense1 = false;
got_defense2 = false;
screenWidthDefault = 720;
screenHeightDefault = 405;
aspectRatio = screenWidthDefault / screenHeightDefault;
scrollSpeed = 10;
scrollBuffer = 150;
screenWidth = screenWidthDefault;
screenHeight = screenHeightDefault;
screenHeightMax = screenHeightDefault + scrollBuffer * 2;
screenWidthMax = screenWidthDefault + scrollBuffer * 2;
speed_y_max = 30;
s_buy = new Sound();
s_buy.attachSound('sound_buy');
s_nobuy = new Sound();
s_nobuy.attachSound('sound_nobuy');
s_shotgun = new Sound();
s_shotgun.attachSound('sound_shotgun1.wav');
s_explosion2 = new Sound();
s_explosion2.attachSound('sound_BANG.wav');
s_steam = new Sound();
s_steam.attachSound('sound_steam.wav');
mode2_unlocked = true;
mode3_unlocked = true;
s_spring = new Sound();
s_spring.attachSound('sound_spring.wav');
s_thwomp = new Sound();
s_thwomp.attachSound('sound_thwomp.wav');
s_swing1 = new Sound();
s_swing1.attachSound('sound_swinger1.wav');
s_swing6 = new Sound();
s_swing6.attachSound('sound_swinger6.wav');
s_zombiedie1 = new Sound();
s_zombiedie1.attachSound('sound_zombie_die1.wav');
s_zombiedie2 = new Sound();
s_zombiedie2.attachSound('sound_zombie_die2.wav');
s_zombiedie3 = new Sound();
s_zombiedie3.attachSound('sound_zombie_die3.wav');
s_zombie1 = new Sound();
s_zombie1.attachSound('sound_zombie1.wav');
s_zombie2 = new Sound();
s_zombie2.attachSound('sound_zombie2.wav');
s_zombie3 = new Sound();
s_zombie3.attachSound('sound_zombie3.wav');
s_clowndie = new Sound();
s_clowndie.attachSound('sound_clown_die.wav');
s_clownfire = new Sound();
s_clownfire.attachSound('sound_clown_fire.wav');
s_clownroar = new Sound();
s_clownroar.attachSound('sound_clown_roar.wav');
s_clownswipe = new Sound();
s_clownswipe.attachSound('sound_clown_swipe.wav');
s_explosion1 = new Sound();
s_explosion1.attachSound('sound_explosion_1.wav');
s_explosion2 = new Sound();
s_explosion2.attachSound('sound_BANG.wav');
s_explosion3 = new Sound();
s_explosion3.attachSound('sound_normalexplosion3.wav');
s_bodyfall1 = new Sound();
s_bodyfall1.attachSound('sound_bodyfall1.wav');
s_bodyfall2 = new Sound();
s_bodyfall2.attachSound('sound_bodyfall2.wav');
s_bodyfall3 = new Sound();
s_bodyfall3.attachSound('sound_bodyfall3.wav');
s_bodyfall4 = new Sound();
s_bodyfall4.attachSound('sound_bodyfall4.wav');
s_bodyfall5 = new Sound();
s_bodyfall5.attachSound('sound_bodyfall5.wav');
s_glass1 = new Sound();
s_glass1.attachSound('sound_glass1.wav');
s_punch1 = new Sound();
s_punch1.attachSound('sound_punch1.wav');
s_punch2 = new Sound();
s_punch2.attachSound('sound_punch2.wav');
s_punch3 = new Sound();
s_punch3.attachSound('sound_GoodPunch3.wav');
s_shot1 = new Sound();
s_shot1.attachSound('MG_SHOT_01.wav');
s_shot2 = new Sound();
s_shot2.attachSound('MG_SHOT_02.wav');
s_shot3 = new Sound();
s_shot3.attachSound('MG_SHOT_03.wav');
s_shot4 = new Sound();
s_shot4.attachSound('MG_SHOT_04.wav');
s_enemy_shoot1 = new Sound();
s_enemy_shoot1.attachSound('sound_enemy_shoot1.wav');
s_enemy_shoot2 = new Sound();
s_enemy_shoot2.attachSound('sound_enemy_shoot2.wav');
s_enemy_shoot3 = new Sound();
s_enemy_shoot3.attachSound('sound_enemy_shoot3.wav');
s_enemy_shoot4 = new Sound();
s_enemy_shoot4.attachSound('sound_enemy_shoot4.wav');
s_bullethitbody1 = new Sound();
s_bullethitbody1.attachSound('sound_bullethitbody1.wav');
s_bullethitbody2 = new Sound();
s_bullethitbody2.attachSound('sound_bullethitbody2.wav');
s_hit_dirt1 = new Sound();
s_hit_dirt1.attachSound('MG_GRAINYSHOT_01.wav');
s_hit_dirt2 = new Sound();
s_hit_dirt2.attachSound('MG_GRAINYSHOT_02.wav');
s_hit_dirt3 = new Sound();
s_hit_dirt3.attachSound('MG_GRAINYSHOT_03.wav');
s_hit_metal1 = new Sound();
s_hit_metal1.attachSound('MG_METALSHOT_01.wav');
s_hit_metal2 = new Sound();
s_hit_metal2.attachSound('MG_METALSHOT_02.wav');
s_hit_metal3 = new Sound();
s_hit_metal3.attachSound('MG_METALSHOT-X_02.wav');
s_hit_default1 = new Sound();
s_hit_default1.attachSound('MG_DIRTYSHOT_01.wav');
s_hit_default2 = new Sound();
s_hit_default2.attachSound('MG_DIRTYSHOT_02.wav');
s_hit_default3 = new Sound();
s_hit_default3.attachSound('MG_DIRTYSHOT_03.wav');
s_elevator = new Sound();
s_elevator.attachSound('sound_elevator.wav');
s_elevatordoor = new Sound();
s_elevatordoor.attachSound('sound_elevator_door.wav');
s_elevatorbreak = new Sound();
s_elevatorbreak.attachSound('sound_elevatorbreak.wav');
s_splash = new Sound();
s_splash.attachSound('sound_splashout.wav');
s_steam = new Sound();
s_steam.attachSound('sound_steam.wav');
s_cursor33 = new Sound();
s_cursor33.attachSound('sound_cursor33.wav');
s_cursor34 = new Sound();
s_cursor34.attachSound('sound_cursor34.wav');
s_power24 = new Sound();
s_power24.attachSound('sound_power24.wav');
s_record = new Sound();
s_record.attachSound('sound_record.wav');
s_doorslam = new Sound();
s_doorslam.attachSound('sound_doorslam.wav');
s_beams = new Sound();
s_beams.attachSound('sound_beams.wav');
zombiesound = false;
zombiesound_timer = 0;
s_chainsaw2 = new Sound();
s_chainsaw2.attachSound('sound_chainsaw2.wav');
s_chainsaw4 = new Sound();
s_chainsaw4.attachSound('sound_chainsaw4.wav');
s_berreta = new Sound();
s_berreta.attachSound('sound_berreta.wav');
s_flamethrower1 = new Sound();
s_flamethrower1.attachSound('sound_flamethrower1.wav');
s_eat = new Sound();
s_eat.attachSound('sound_eat1');
s_bang = new Sound();
s_bang.attachSound('Impact - large 1.wav');
s_shotgun = new Sound();
s_shotgun.attachSound('sound_shotgun1.wav');
s_chainsaw.s_chainsaw1 = new Sound(s_chainsaw);
s_chainsaw.s_chainsaw1.attachSound('sound_chainsaw1.wav');
s_chainsaw.s_chainsaw3 = new Sound(s_chainsaw);
s_chainsaw.s_chainsaw3.attachSound('sound_chainsaw3.wav');
song1.song = new Sound(song1);
song1.song.attachSound('334231_Broken_Rollercoaster_Bunge');
song2.song = new Sound(song2);
song2.song.attachSound('346485_Para___Marina');
song3.song = new Sound(song3);
song3.song.attachSound('359584_MindChamberMadness');
song4.song = new Sound(song4);
song4.song.attachSound('341761_xKoreSyntaxLoop');
song5.song = new Sound(song5);
song5.song.attachSound('356928_Condemned_Clown');
song6.song = new Sound(song6);
song6.song.attachSound('359165_theescape');
_lockroot = true;
camera_lag_default = 20;
camera_lag = camera_lag_default;
}
function f_StartUp() {
f_NewGame();
startEngine();
if (gamemode == 3) {
gotoAndPlay('level1_31');
} else {
gotoAndPlay('level1_19');
}
fader.gotoAndPlay('fadein');
}
function f_GameXY() {
game_x = game._x * u_scale + game.game._x;
game_y = game._y * u_scale + game.game._y;
f_Parallax();
}
function f_CameraPop() {
do {
var u_x = game_x;
var u_y = game_y;
draw();
} while (Math.abs(u_x - game_x) > 0.1 or Math.abs(u_y - game_y) > 0.1);
return undefined;
u_point.x = 0;
u_point.y = 0;
camera.prey.localToGlobal(u_point);
camera._x = u_point.x * u_scale - game_x;
camera._y = u_point.y * u_scale - game_y;
u_point.x = 0;
u_point.y = 0;
camera.localToGlobal(u_point);
var u_x = u_point.x * u_scale;
var u_y = u_point.y * u_scale;
var v2 = screenWidthDefault / 2;
if (Math.abs(v2 - u_x) > 10) {
var v3 = v2 - u_x;
game.game._x += v3;
}
var v1 = screenHeightDefault - 80;
if (Math.abs(v1 - u_y) > 10) {
v3 = v1 - u_y;
game.game._y += v3;
}
f_GameXY();
}
function f_ScalePop() {
var v1 = target_scale - game._xscale;
f_ScreenScale(v1);
}
function f_MoveGameX(u_speed) {
game.game._x += u_speed;
}
function f_MoveGameY(u_speed) {
game.game._y += u_speed;
if (bg2vert) {
game.game.bg2._y -= u_speed * ((game._xscale / 100) * 0.6);
} else {
game.game.bg2._y -= u_speed * (game._xscale / 100);
}
if (bg3vert) {
game.game.bg3._y -= u_speed * ((game._xscale / 100) * 0.9);
} else {
game.game.bg3._y -= u_speed * (game._xscale / 100);
}
}
function draw() {
if (camera.prey == p1) {
if (p1._xscale > 0 or p1.jump_speed_x > 0) {
if (Key.isDown(p1.b_right) and p1.right_timer >= 15 or p1.jump_speed_x > 0 or Key.isDown(p1.b_punch1) and p1.gun_type < 100 and !Key.isDown(p1.b_up) and p1._xscale > 0) {
camera._x = p1.x + 200 * u_scale;
} else {
camera._x = p1.x + 100 * u_scale;
camera._x = p1.x;
}
} else {
if (Key.isDown(p1.b_left) and p1.left_timer >= 15 or p1.jump_speed_x < 0 or Key.isDown(p1.b_punch1) and p1.gun_type < 100 and !Key.isDown(p1.b_up) and p1._xscale < 0) {
camera._x = p1.x - 200 * u_scale;
} else {
camera._x = p1.x - 100 * u_scale;
camera._x = p1.x;
}
}
if (!p1.platform) {
camera._y = p1.y + 70 + p1.speed_y * 1.5;
} else {
if (p1.crouch and p1.crouch_timer > 30) {
if (camera._y + 5 < p1.y + 300) {
camera._y += 5;
} else {
if (camera._y < p1.y) {
camera._y = p1.y;
}
}
} else {
if (p1.platform.y_mod) {
if (p1.platform.diagonal) {
camera._y = p1.y + p1.platform.y_mod * p1.platform_percent;
} else {
camera._y = p1.y + p1.platform.y_mod;
}
} else {
camera._y = p1.y;
}
}
}
} else {
if (camera.prey) {
u_point.x = 0;
u_point.y = 0;
camera.prey.localToGlobal(u_point);
camera._x = int(int(u_point.x) * u_scale - int(game_x));
camera._y = int(int(u_point.y) * u_scale - int(game_y));
}
}
if (camera._y > game.game.camera_bottom._y) {
camera._y = game.game.camera_bottom._y;
}
var v9 = false;
var v8 = false;
if (limit_left) {
if (camera._x - screenWidth / 2 < limit_left) {
camera._x = limit_left + screenWidth / 2;
v9 = true;
}
}
if (limit_right) {
if (camera._x + screenWidth / 2 > limit_right) {
camera._x = limit_right - screenWidth / 2;
v8 = true;
}
}
if (v9 or v8) {
var v6 = (screenWidthDefault / (limit_right - limit_left)) * 100;
if (v6 > target_scale) {
camera._x = limit_left + (limit_right - limit_left) / 2;
target_scale = v6;
}
}
if (limit_top) {
if (camera._y < limit_top) {
camera._y = limit_top;
}
}
if (limit_bottom) {
if (camera._y > limit_bottom) {
camera._y = limit_bottom;
}
}
u_point.x = 0;
u_point.y = 0;
camera.localToGlobal(u_point);
var v3 = u_point.x;
var v2 = u_point.y;
var v5 = screenWidthDefault / 2;
camera_lag = camera_lag_default;
if (nostopping) {
camera_lag = 5;
}
if (Math.abs(v5 - v3) > 1) {
var v7 = camera_lag;
if (game._xscale - target_scale != 0) {
v7 = 6;
}
var v10 = (v5 - v3) / v7;
f_MoveGameX(v10 * u_scale);
} else {
f_MoveGameX(v5 - v3);
}
game_x = game._x * u_scale + game.game._x;
var v4 = false;
if (limit_left) {
if (limit_left + game_x > 0) {
v4 = true;
f_MoveGameX(-(limit_left + game_x));
}
}
if (!v4) {
if (limit_right) {
if (limit_right + game_x < screenWidth) {
v4 = true;
f_MoveGameX(screenWidth - (limit_right + game_x));
}
}
}
var v1 = screenHeightDefault - 80 * (game._xscale / 100);
if (Math.abs(v1 - v2) > 1) {
var v7 = 6;
if (game._xscale - target_scale != 0) {
v7 = 3;
}
var v10 = (v1 - v2) / v7;
f_MoveGameY(v10 * u_scale);
} else {
f_MoveGameY(v1 - v2);
}
if (shake_x != 0) {
f_MoveGameX(shake_x);
shake_x *= -1;
if (shake_x > 0) {
--shake_x;
} else {
++shake_x;
}
}
if (shake_y != 0) {
f_MoveGameY(shake_y);
shake_y *= -1;
if (shake_y > 0) {
--shake_y;
} else {
++shake_y;
}
}
f_GameXY();
}
function f_CameraFollowX(zone, u_temp, u_cam) {
u_cam._x = zone.x + (u_temp.x - zone.x) / 2;
}
function f_CameraFollowCY(zone, u_temp, u_cam) {
u_cam.x = zone.x + (u_temp.x - zone.x) / 2;
if (zone == p1) {
if (zone.x + game_x > screenWidth - 100) {
u_cam.x += zone.x + game_x - (screenWidth - 100);
} else {
if (zone.x + game_x < 100) {
u_cam.x += zone.x + game_x - 100;
}
}
}
u_cam.y = zone.y + (u_temp.y + 450 - zone.y) / 2;
u_cam._x = u_cam.x;
u_cam._y = u_cam.y;
}
function f_CameraFollow(zone, u_temp, u_cam) {
u_cam.x = zone.x + (u_temp.x - zone.x) / 2;
if (zone == p1) {
if (zone.x + game_x > screenWidth - 100) {
u_cam.x += zone.x + game_x - (screenWidth - 100);
} else {
if (zone.x + game_x < 100) {
u_cam.x += zone.x + game_x - 100;
}
}
}
if (zone.y > u_temp.y) {
u_cam.y = zone.y;
} else {
u_cam.y = u_temp.y;
}
u_cam._x = u_cam.x;
u_cam._y = u_cam.y;
}
function f_CameraFollow3(zone, u_temp, u_temp2, u_cam) {
if (zone.x < u_temp.x) {
var v5 = zone;
var v6 = u_temp;
} else {
var v5 = u_temp;
var v6 = zone;
}
if (u_temp2.x < v5.x) {
v5 = u_temp2;
} else {
if (u_temp2.x > v6.x) {
v6 = u_temp2;
}
}
u_cam.x = v5.x + (v6.x - v5.x) / 2;
if (zone.y > u_temp.y) {
u_cam.y = zone.y;
} else {
u_cam.y = u_temp.y;
}
if (u_temp2.y > u_cam.y) {
u_cam.y = u_temp2.y;
}
u_cam._x = u_cam.x;
u_cam._y = u_cam.y;
}
function f_ScaleFollow(zone, u_temp, max_scale, min_scale) {
if (!max_scale) {
max_scale = 100;
}
if (!min_scale) {
min_scale = 10;
}
var v4 = Math.abs(zone.x - u_temp.x) + screenWidthDefault / 2;
if (v4 > screenWidthDefault) {
target_scale = max_scale * (screenWidthDefault / v4);
} else {
target_scale = max_scale;
}
v4 = Math.abs(zone.y - u_temp.y) + screenHeightDefault / 2 + 100;
if (v4 > screenHeightDefault) {
var v2 = max_scale * (screenHeightDefault / v4);
} else {
var v2 = max_scale;
}
if (v2 < target_scale) {
target_scale = v2;
}
if (target_scale < min_scale) {
target_scale = min_scale;
} else {
if (target_scale > max_scale) {
target_scale = max_scale;
}
}
}
function f_ScaleFollow3(zone, u_temp, u_temp2) {
if (zone.x < u_temp.x) {
var v9 = zone;
var v6 = u_temp;
} else {
var v9 = u_temp;
var v6 = zone;
}
if (u_temp2.x < v9.x) {
v9 = u_temp2;
} else {
if (u_temp2.x > v6.x) {
v6 = u_temp2;
}
}
if (zone.y > u_temp.y) {
var v7 = zone;
var v8 = u_temp;
} else {
var v7 = u_temp;
var v8 = zone;
}
if (u_temp2.y > v7.y) {
v7 = u_temp2;
} else {
if (u_temp2.y < v8.y) {
v8 = u_temp2;
}
}
var v5 = Math.abs(v9.x - v6.x) + screenWidthDefault / 2;
if (v5 > screenWidthDefault) {
target_scale = 100 * (screenWidthDefault / v5);
} else {
target_scale = 100;
}
v5 = Math.abs(v8.y - v7.y) + screenHeightDefault / 2 + 100;
if (v5 > screenHeightDefault) {
var v4 = 100 * (screenHeightDefault / v5);
} else {
var v4 = 100;
}
if (v4 < target_scale) {
target_scale = v4;
}
if (target_scale < 1) {
target_scale = 1;
}
}
function f_ScreenScale(scale_speed) {
var v2 = camera._x + game_x;
var v1 = camera._y + game_y;
u_point.x = 0;
u_point.y = 0;
camera.localToGlobal(u_point);
v2 = u_point.x;
v1 = u_point.y;
game._xscale += scale_speed;
game._yscale += scale_speed;
u_scale = 100 / game._xscale;
screenHeight = screenHeightDefault * u_scale;
screenWidth = screenWidthDefault * u_scale;
f_GameXY();
u_point.x = 0;
u_point.y = 0;
camera.localToGlobal(u_point);
var v4 = u_point.x;
var v3 = u_point.y;
game.game._x += (v2 - v4) * u_scale;
game.game._y += (v1 - v3) * u_scale;
f_GameXY();
}
function main() {
for (n in a_Events) {
var v2 = a_Events[n];
if (Math.abs(p1.x - v2._x) < v2._width / 2) {
if (p1.y < v2._y) {
if (p1.y > v2._y - v2._height) {
if (v2.warpto) {
p1.wait = true;
if (currentlevel != 'level1_26') {
camera.paused = true;
}
fader.spawnpoint = v2.warpspawn;
fader.warpto = v2.warpto;
fader.gotoAndPlay('fadeout');
v2.warpto = undefined;
if (v2.autowalk) {
if (p1._xscale > 0 and v2.autodir < 0 or p1._xscale < 0 and v2.autodir > 0) {
p1._xscale *= -1;
}
p1.wait = false;
p1.autowalk_timer = 600;
p1.invincible_timer = 200;
if (p1.platform) {
p1.gotoAndStop('autowalk');
}
p1.gun.gun.gun.gun.gotoAndStop('idle');
v2.autowalk = false;
}
return undefined;
} else {
if (v2.camplay) {
game.game.chase_cam.gotoAndPlay(v2.camplay);
v2.camplay = undefined;
} else {
if (v2.respawn) {
p1._x = v2.respawn._x;
p1._y = v2.respawn._y;
p1.x = p1._x;
p1.y = p1._y;
p1.platform = undefined;
} else {
if (v2.otherplay) {
v2.other.gotoAndPlay(v2.otherplay);
v2.otherplay = undefined;
}
}
}
}
}
}
}
}
if (camera.paused) {
fp_fpsLimiter();
return undefined;
}
if (game._xscale - target_scale != 0) {
if (Math.abs(target_scale - game._xscale) < 1) {
var v3 = target_scale - game._xscale;
} else {
var v3 = (target_scale - game._xscale) / 20;
if (v3 < 1 and v3 > 0) {
v3 = 1;
} else {
if (v3 > -1 and v3 < 0) {
v3 = -1;
}
}
}
f_ScreenScale(v3);
}
draw();
if (general_bullet_sound > 0) {
if (general_bullet_sound == 2) {
_root['s_enemy_shoot' + (random(4) + 1)].start(0, 0);
}
--general_bullet_sound;
}
fp_fpsLimiter();
}
function startEngine() {
go = true;
}
function f_RemovePlayer(zone) {
f_ObjectPop(zone, a_Players);
zone.active = false;
zone.gotoAndStop('blank');
--players;
if (players == 1) {
f_GetPlayer();
}
}
function f_GetPlayer() {
for (n in a_Players) {
player = a_Players[n];
}
}
function f_PlayerPush(zone) {
a_Players.push(zone);
}
function f_EnemyPush(zone) {
a_Enemies.push(zone);
}
function f_RemoveEnemy(zone) {
zone.active = false;
if (zone.z_platform) {
f_RemovePlatform(zone.z_platform);
}
if (zone.z_wall) {
f_ObjectPop(zone.z_wall, a_Walls);
}
f_ObjectPop(zone, a_Enemies);
}
function f_ObjectPush(zone, a_Array) {
a_Array.push(zone);
}
function f_ObjectPop(zone, a_Array) {
for (n in a_Array) {
if (a_Array[n] == zone) {
a_Array.splice(n, 1);
return undefined;
}
}
}
function f_SpawnPlayer(p_num, fileName) {
u_char = game.game['p' + p_num];
loadMovie(fileName, u_char);
}
function f_Parallax() {
var v3 = game._xscale / 100;
var v7 = (Stage.width / 2 - game._x) / v3 - game.game._x;
var v6 = (Stage.height / 2 - game._y) / v3 - game.game._y;
var v5 = Stage.width / 2 - game._x - v7;
var v4 = Stage.height / 2 - game._y - v6;
var v2 = bg_default_x - v5;
var v1 = bg_default_y - v4;
game.game.bg1._x = bg1_default_x - bg_default_x + v2 * 0.4;
game.game.bg2._x = bg2_default_x - bg_default_x + v2 * 0.6;
game.game.bg1._y = bg1_default_y - bg_default_y + v1 * 0.4;
game.game.bg2._y = bg2_default_y - bg_default_y + v1 * 0.6;
}
function fpsLimiter() {}
function f_FacePrey(zone) {
if (zone.x < zone.prey.x) {
if (zone._xscale < 0) {
zone._xscale *= -1;
}
} else {
if (zone.x > zone.prey.x) {
if (zone._xscale > 0) {
zone._xscale *= -1;
}
}
}
}
function f_ChasePrey(zone, u_range) {
var v3 = zone.x;
zone.target_x = zone.prey.x;
for (i in a_Enemies) {
var v2 = a_Enemies[i];
if (v2 != zone) {
if (v2.target_x == zone.target_x) {
if (zone.x > zone.target_x and v2.x > zone.target_x) {
if (zone.x > v2.x) {
zone.target_x += 150;
}
} else {
if (zone.x < zone.target_x and v2.x < zone.target_x) {
if (zone.x < v2.x) {
zone.target_x -= 150;
}
}
}
}
}
}
if (zone.x < zone.target_x - u_range) {
f_MoveH(zone, zone.speed_x);
zone.gotoAndStop('run');
} else {
if (zone.x > zone.target_x + u_range) {
f_MoveH(zone, -zone.speed_x);
zone.gotoAndStop('run');
} else {
zone.gotoAndStop('stand');
}
}
if (zone.prey.y < zone.y - 30 and zone.prey.y > zone.y - 300) {
if (zone.x < zone.prey.platform.x - zone.prey.platform.w) {
if (zone.x > zone.prey.platform.x - zone.prey.platform.w - 400) {
f_CharJump(zone);
if (Math.abs(zone.prey.x - zone.x) > 200) {
zone.jump_speed_x = zone.speed_x * 0.7;
} else {
if (Math.abs(zone.prey.x - zone.x) > 100) {
zone.jump_speed_x = zone.speed_x * 0.4;
} else {
zone.jump_speed_x = 1;
}
}
}
} else {
if (zone.x > zone.prey.platform.x + zone.prey.platform.w) {
if (zone.x < zone.prey.platform.x + zone.prey.platform.w + 400) {
f_CharJump(zone);
if (Math.abs(zone.prey.x - zone.x) > 200) {
zone.jump_speed_x = -zone.speed_x * 0.7;
} else {
if (Math.abs(zone.prey.x - zone.x) > 100) {
zone.jump_speed_x = -zone.speed_x * 0.4;
} else {
zone.jump_speed_x = -1;
}
}
}
}
}
}
if (zone.platform == undefined) {
f_CharJump(zone);
if (zone.prey.y > zone.y) {
zone.speed_y = 1;
}
if (zone._xscale > 0) {
zone.jump_speed_x = zone.speed_x_min;
} else {
zone.jump_speed_x = -zone.speed_x_min;
}
} else {
if (v3 == zone.x and zone.prey.y > zone.y - 350 and (zone.prey.y < zone.y - 30 or !zone.platform.dropthru)) {
f_CharJump(zone);
if (zone._xscale > 0) {
zone.jump_speed_x = zone.speed_x;
} else {
zone.jump_speed_x = -zone.speed_x;
}
} else {
if (zone.prey.platform and Math.abs(zone.x - zone.prey.x) < 300 and zone.prey.y > zone.y - 50 and zone.platform.dropthru) {
f_CharJump(zone);
zone.y += 20;
zone._y = zone.y;
zone.speed_y = 1;
}
}
}
}
function f_CharJump(zone) {
zone.jumping = true;
zone.speed_y = zone.launch;
zone.jump_speed_x = 0;
zone.punching = false;
zone.midpunch = false;
zone.platform = undefined;
zone.ladder = undefined;
zone.crouch = false;
f_ResetRotation(zone);
if (!zone.nojumpanim) {
zone.gotoAndStop('jump1');
}
}
function f_CharJumping(zone) {
if (zone.platform == undefined or zone.jumping) {
if (zone.float_timer > 0) {
--zone.float_timer;
} else {
if (zone.speed_y >= 0) {
if (f_PY(zone, zone.speed_y) == false) {
f_MoveV(zone, zone.speed_y);
zone.speed_y += zone.weight;
if (zone.speed_y > speed_y_max) {
zone.speed_y = speed_y_max;
}
zone.jumping = false;
if (!zone.nojumpanim) {
f_GoFrame(zone, 'jump1_mid');
}
} else {
zone.punching = false;
zone.midpunch = false;
if (zone.firstland) {
zone.firstland = false;
zone.gotoAndStop('stand');
} else {
if (zone.landanim) {
if (zone.newspawn) {
zone.gotoAndStop('stand');
} else {
zone.gotoAndStop(zone.landanim);
}
} else {
if (!zone.nojumpanim) {
f_GoFrame(zone, 'stand');
}
}
}
}
} else {
if (f_WallAbove(zone, zone.speed_y) == false) {
f_MoveV(zone, zone.speed_y);
}
zone.speed_y += zone.weight;
if (zone.speed_y > speed_y_max) {
zone.speed_y = speed_y_max;
}
}
if (zone.speed_y > zone.speed_y_max) {
zone.speed_y = zone.speed_y_max;
}
}
if (zone.jump_speed_x != 0) {
f_MoveH(zone, zone.jump_speed_x);
}
return true;
}
return false;
}
function f_HitType1(zone) {
if (zone.hitby.x > zone.x or zone.hitby.force_x < 0) {
if (zone._xscale < 0) {
zone._xscale *= -1;
}
} else {
if (zone.hitby.x < zone.x or zone.hitby.force_x > 0) {
if (zone._xscale > 0) {
zone._xscale *= -1;
}
}
}
zone.health -= zone.hit_damage_val;
if (zone.health <= 0) {
zone.alive = false;
zone.health = 0;
if (zone.force_y > -10 and zone.force_y < 5) {
zone.force_y = -10;
}
}
if (!zone.hitby.bullet and zone.hitby != p1) {
if (Math.abs(zone.force_x) > 12) {
s_punch3.start(0, 0);
} else {
f_PunchSound();
}
}
if (zone.platform == undefined or zone.force_y < -5 or Math.abs(zone.force_x) > 20) {
f_HitToss(zone);
} else {
if (zone.hit_timer < 30) {
zone.hit_timer = 0;
if (zone.hit_last == 1) {
zone.hit_last = 2;
zone.gotoAndStop('hit2');
} else {
zone.hit_last = 1;
zone.gotoAndStop('hit1');
}
} else {
zone.hit_timer = 0;
zone.hit_last = 1;
zone.gotoAndStop('hit1');
}
}
}
function f_HitType2(zone) {
f_PixelFly(zone.x + random(50) - 25, zone.y - 100);
f_PixelFly(zone.x + random(50) - 25, zone.y - 75);
f_PixelFly(zone.x + random(50) - 25, zone.y - 50);
f_Damage(zone, zone.hit_damage_val);
if (zone.hitby.x > zone.x) {
if (zone._xscale < 0) {
zone._xscale *= -1;
}
} else {
if (zone._xscale > 0) {
zone._xscale *= -1;
}
}
if (zone.health <= 0) {
zone.gotoAndStop('die');
return undefined;
}
}
function f_HitToss(zone) {
f_TossInit(zone, zone.force_x, zone.force_y);
}
function f_HitTossDamage(zone) {
if (zone.hitby._xscale > 0) {
f_TossInit(zone, zone.force_x, zone.force_y);
} else {
f_TossInit(zone, -zone.force_x, zone.force_y);
}
zone.body.body.nextFrame();
}
function f_HitDie(zone) {
f_Damage(zone, zone.hit_damage_val);
zone.gotoAndStop('die');
}
function f_Scout(zone) {
if (!f_CharJumping(zone)) {
if (zone.scout_timer > 0) {
--zone.scout_timer;
if (zone.scout_timer <= 0) {
zone._xscale *= -1;
} else {
return undefined;
}
}
if (zone._xscale > 0) {
if (zone.x + game_x - zone.w * 2 > screenWidth or zone.x > p1.x + 400) {
zone._xscale *= -1;
}
} else {
if (zone.x + game_x + zone.w * 2 < 0 or zone.x < p1.x - 400) {
zone._xscale *= -1;
}
}
if (zone._xscale > 0) {
if (zone.x < p1.x and zone.x > p1.x - 100 and Math.abs(zone.y - p1.y) < 20) {
zone.gotoAndStop('stand');
} else {
if (zone.x + zone.speed_x > zone.platform.x + zone.platform.w - 75) {
zone.scout_timer = 30;
zone.gotoAndStop('stand');
} else {
zone.gotoAndStop('walk');
if (f_MoveH(zone, zone.speed_x) != zone.speed_x) {
zone._xscale *= -1;
}
}
}
} else {
if (zone.x > p1.x and zone.x < p1.x + 100 and Math.abs(zone.y - p1.y) < 20) {
zone.gotoAndStop('stand');
} else {
if (zone.x - zone.speed_x < zone.platform.x - zone.platform.w + 75) {
zone.scout_timer = 30;
zone.gotoAndStop('stand');
} else {
zone.gotoAndStop('walk');
if (f_MoveH(zone, -zone.speed_x) != -zone.speed_x) {
zone._xscale *= -1;
}
}
}
}
}
}
function f_Scout2(zone) {
if (!f_CharJumping(zone)) {
if (zone.scout_timer > 0) {
--zone.scout_timer;
if (zone.scout_timer <= 0) {
if (zone.x > p1.x and zone._xscale > 0 or zone.x < p1.x and zone._xscale < 0) {
zone._xscale *= -1;
} else {
zone.scout_timer = 1;
}
} else {
return undefined;
}
}
if (zone._xscale > 0) {
if (zone.x + game_x - zone.w * 2 > screenWidth or zone.x > p1.x + 400) {
zone._xscale *= -1;
}
} else {
if (zone.x + game_x + zone.w * 2 < 0 or zone.x < p1.x - 400) {
zone._xscale *= -1;
}
}
if (zone._xscale > 0) {
if (zone.x <= p1.x and zone.x > p1.x - 100 and Math.abs(zone.y - p1.y) < 20) {
zone.gotoAndStop('stand');
} else {
if (zone.x + zone.speed_x > zone.platform.x + zone.platform.w - 75) {
zone.scout_timer = 30;
zone.gotoAndStop('stand');
} else {
u_wait = false;
for (i in a_Enemies) {
var v2 = a_Enemies[i];
if (v2 == zone) {
break;
} else {
if (v2.humanoid) {
if (Math.abs(zone.x - v2.x) < 40) {
u_wait = true;
}
}
}
}
if (u_wait) {
zone.gotoAndStop('stand');
} else {
zone.gotoAndStop('walk');
if (f_MoveH(zone, zone.speed_x) != zone.speed_x) {
zone._xscale *= -1;
}
}
}
}
} else {
if (zone.x > p1.x and zone.x < p1.x + 100 and Math.abs(zone.y - p1.y) < 20) {
zone.gotoAndStop('stand');
} else {
if (zone.x - zone.speed_x < zone.platform.x - zone.platform.w + 75) {
zone.scout_timer = 30;
zone.gotoAndStop('stand');
} else {
zone.gotoAndStop('walk');
if (f_MoveH(zone, -zone.speed_x) != -zone.speed_x) {
zone._xscale *= -1;
}
}
}
}
}
}
function f_ScoutAttack(zone) {
if (!f_CharJumping(zone)) {
if (zone.scout_timer <= 0) {
if (zone._xscale > 0) {
if (zone.x + zone.speed_x > zone.platform.x + zone.platform.w - 50) {
zone._xscale *= -1;
zone.gotoAndStop('stand');
} else {
if (f_MoveH(zone, zone.speed_x) != zone.speed_x) {
zone._xscale *= -1;
zone.gotoAndStop('stand');
}
}
} else {
if (zone.x - zone.speed_x < zone.platform.x - zone.platform.w + 50) {
zone._xscale *= -1;
zone.gotoAndStop('stand');
} else {
if (f_MoveH(zone, -zone.speed_x) != -zone.speed_x) {
zone._xscale *= -1;
zone.gotoAndStop('stand');
}
}
}
} else {
--zone.scout_timer;
}
}
}
function f_HencherDefaults(zone) {
zone.speed_x = zone.speed_x_min;
}
function f_HencherMelee(zone) {
if (zone.punch_timer <= 0) {
if (Math.abs(zone.x - p1.x) < 100) {
if (zone.x > p1.x and zone._xscale < 0 or zone.x < p1.x and zone._xscale > 0) {
if (Math.abs(zone.y - p1.y) < 10) {
zone.skipwait = false;
zone.punch_timer = zone.punch_timer_default;
if (zone.hasgun) {
zone.gun.gun.gun.gun.gotoAndStop('melee');
zone.shot_total = zone.shot_total_default;
zone.shot_timer = 0;
zone.gotoAndStop('punch1');
} else {
zone.gotoAndStop('punch1');
}
}
}
}
}
}
function f_EnemyShooter(zone) {
if (zone.y < zone.prey.y and !_root.f_OnScreen(zone)) {
return undefined;
}
if (zone.hasgun) {
u_point.x = 0;
u_point.y = 0;
zone.gun.localToGlobal(u_point);
game.game.globalToLocal(u_point);
zone_x = u_point.x;
zone_y = u_point.y;
u_x = zone.prey.x;
u_y = zone.prey.y - 50;
var v3 = f_rad2deg(Math.atan2(u_y - zone_y, u_x - zone_x));
if (zone._xscale < 0) {
if (v3 < 0) {
v3 = -(180 - Math.abs(v3));
} else {
v3 = 180 - v3;
}
}
zone.gun_frame = 30 - int(Math.abs((v3 + 106) / 212) * 29);
if (zone.shot_timer <= 0) {
if (zone.x < zone.prey.x and zone._xscale < 0 or zone.x > zone.prey.x and zone._xscale > 0) {
zone.gun_frame = 15;
if (zone._xscale > 0) {
v3 = 0;
} else {
v3 = 0;
}
}
var v6 = Math.abs(zone.gun._currentframe - zone.gun_frame);
var v7 = Math.abs(zone.gun.gun._rotation - v3);
if (v6 < v7) {
var v5 = 4 * (v6 / v7);
var v4 = 4;
} else {
var v5 = 4;
var v4 = 4 * (v7 / v6);
}
if (zone.gun._currentframe < zone.gun_frame - v5) {
zone.gun.gotoAndStop(zone.gun._currentframe + int(v5));
} else {
if (zone.gun._currentframe > zone.gun_frame + v5) {
zone.gun.gotoAndStop(zone.gun._currentframe - int(v5));
}
}
if (zone.gun.gun._rotation < v3 - v4) {
zone.gun.gun._rotation += v4;
} else {
if (zone.gun.gun._rotation > v3 + v4) {
zone.gun.gun._rotation -= v4;
} else {
var v8 = false;
if (zone.x < zone.prey.x and zone._xscale > 0 or zone.x > zone.prey.x and zone._xscale < 0) {
if (Math.abs(zone.y - zone.prey.y) < zone.shot_range_y or Math.abs(zone.x - zone.prey.x) < zone.shot_range_x) {
zone.gun.gun._rotation = v3;
zone.gun.gotoAndStop(zone.gun_frame);
zone.punching = true;
zone.gotoAndStop('stand');
f_EnemyBullet(zone);
if (zone.gun_type == 6) {
f_EnemyBullet(zone, -3);
f_EnemyBullet(zone, 3);
}
f_GunSound(zone.gun_type);
zone.gun.gun.gun.gun.gotoAndStop('shoot');
if (zone.gun_type == 2 or zone.gun_type == 5 or zone.gun_type == 6) {
zone.shot1 = true;
zone.gun.gun.gun.gun.body.gotoAndPlay(1);
}
--zone.shot_total;
if (zone.shot_total > 0) {
zone.skipwait = true;
zone.shot_timer = 3;
v8 = true;
}
}
}
if (!v8) {
zone.shot_total = zone.shot_total_default;
if (zone.shot_timer_default) {
zone.shot_timer = zone.shot_timer_default;
} else {
zone.shot_timer = 90;
}
zone.punching = false;
}
}
}
} else {
--zone.shot_timer;
}
zone.gun.gun._x = zone.gun.gun_pt._x;
zone.gun.gun._y = zone.gun.gun_pt._y;
}
}
function f_Hencher(zone) {
--zone.punch_timer;
if (!f_CharJumping(zone)) {
if (zone.wait or zone.wait_timer > 0) {
--zone.wait_timer;
zone.gotoAndStop('stand');
return undefined;
} else {
if (zone.phase == 1) {
if (zone.hasgun) {
f_Scout(zone);
f_HencherMelee(zone);
} else {
f_FacePrey(zone);
if (!f_InRange(zone, 80, 5000) or Math.abs(zone.y - zone.prey.y) > 20 and zone.prey.platform) {
zone.speed_x = zone.speed_x_max;
f_ChasePrey(zone, 80);
} else {
if (zone.prey.y < zone.y - 20) {
zone.gotoAndStop('lookup');
} else {
zone.gotoAndStop('stand');
}
f_HencherMelee(zone);
}
}
} else {
if (zone.phase == 3) {
f_EnemyShooter(zone);
if (!zone.punching) {
f_Scout2(zone);
}
} else {
if (zone.phase == 4) {
if (zone.autowalk_timer > 0) {
if (zone._xscale > 0) {
if (rotation_current < 0) {
var v2 = zone.speed_x * 2 - rotation_current;
} else {
var v2 = zone.speed_x * 2;
}
f_MoveH(zone, v2);
} else {
if (rotation_current > 0) {
var v2 = -(zone.speed_x * 2 + rotation_current);
} else {
var v2 = -zone.speed_x * 2;
}
f_MoveH(zone, v2);
}
return undefined;
}
if (zone.prey.y < zone.y - 350) {
zone.prey = game.game.middle.z_platform;
}
f_FacePrey(zone);
if (zone.hasgun) {
if (!f_InRange(zone, 300, 200) or Math.abs(zone.y - zone.prey.y) > 20) {
zone.speed_x = zone.speed_x_max;
f_ChasePrey(zone, 200);
--zone.shot_timer;
} else {
if (zone.prey.y < zone.y - 20) {
f_CharJump(zone);
zone.jump_speed_x = 0;
} else {
if (f_InRange(zone, 80, 20)) {
f_HencherMelee(zone);
} else {
f_EnemyShooter(zone);
}
}
}
} else {
if (!f_InRange(zone, 80, 200) or Math.abs(zone.y - zone.prey.y) > 20) {
zone.speed_x = zone.speed_x_max;
f_ChasePrey(zone, 80);
} else {
if (zone.prey.y < zone.y - 20) {
f_CharJump(zone);
zone.jump_speed_x = 0;
} else {
zone.gotoAndStop('stand');
}
f_HencherMelee(zone);
}
}
if (zone._xscale > 0) {
zone.jump_speed_x = zone.speed_x * 1.25;
} else {
zone.jump_speed_x = zone.speed_x * -1.25;
}
zone.prey = p1;
} else {
if (zone.phase == 10) {
f_EnemyShooter(zone);
if (!zone.punching) {
f_Scout(zone);
f_HencherMelee(zone);
}
} else {
if (zone.phase == 11) {
zone.gotoAndStop('weld');
} else {
if (zone.phase == 12) {
zone.prey = game.game.target_pt;
++zone.rapidfire;
if (zone.rapidfire < 100) {
zone.shot_total = 2;
if (zone.rapidfire % 3 == 0) {
zone.shot_timer = 0;
}
} else {
if (zone.rapidfire > 200) {
zone.rapidfire = 0;
} else {
zone.shot_total = 0;
zone.shot_timer = 1000;
zone.gun.gun.gun.gun.gotoAndStop('idle');
}
}
f_EnemyShooter(zone);
} else {
if (zone.phase == 13) {
if (f_OnScreen(zone)) {
f_EnemyShooter(zone);
}
}
}
}
}
}
}
}
}
}
}
function f_EnemyDefaults(zone) {
zone.x = zone._x;
zone.y = zone._y;
if (!zone.nodepth) {
zone.depth_mod = f_SetDepthMod();
f_Depth(zone, zone.y);
}
zone.speed_x = 6;
zone.speed_y = 0;
zone.speed_y_max = speed_y_max;
zone.jump_speed_x = 0;
zone.speed_ladder = 8;
zone.launch = -38;
zone.weight = 1.75;
zone.bounce = 0.5;
zone.force_x = 0;
zone.force_y = 0;
if (zone.zone) {
zone.w = zone.zone._width / 2;
} else {
zone.w = zone._width / 2;
}
if (zone.humanoid) {
zone.w = 5;
}
if (zone.zone) {
zone.h = zone.zone._height;
} else {
zone.h = zone._height;
}
zone.fp_HitGround = f_HitGround1;
zone.w2 = 2;
zone.platform = undefined;
zone.ladder = undefined;
zone.punching = false;
zone.active = true;
zone.alive = true;
zone.float_timer = 0;
zone.texture = 4;
zone.prey = p1;
}
function f_InitHencher(zone) {
zone.fp_Hit1 = f_HitType1;
zone.humanoid = true;
f_EnemyDefaults(zone);
zone.fp_HitGround = f_HitGround1;
if (gamemode == 2) {
zone.health_max = 20;
zone.speed_x_max = 12;
zone.speed_x_min = 8;
zone.speed_x = 8;
if (zone.shot_range_y == undefined) {
zone.shot_range_y = 400;
zone.shot_range_x = 700;
}
if (zone.shot_timer == undefined or zone.shot_timer >= 60) {
zone.shot_timer = 35;
}
if (zone.shot_total_default == undefined) {
zone.shot_total_default = 1;
}
if (zone.face_type == 2) {
zone.face_type = 5;
zone.head_type = 1;
zone.body_type = 5;
}
} else {
if (gamemode == 3) {
zone.health_max = 12;
zone.shot_range_y = 400;
zone.shot_range_x = 600;
zone.shot_timer_default = 60;
zone.shot_timer = zone.shot_timer_default;
if (!zone.shot_total_default) {
zone.shot_total_default = 1;
}
if (wave > 40) {
zone.health_max = 45;
zone.speed_x_max = 30;
zone.speed_x_min = 26;
zone.speed_x = 26;
zone.shot_timer_default = 20;
zone.shot_range_y = 600;
zone.shot_range_x = 800;
} else {
if (wave > 35) {
zone.health_max = 35;
zone.speed_x_max = 30;
zone.speed_x_min = 26;
zone.speed_x = 26;
} else {
if (wave > 30) {
zone.health_max = 25;
zone.speed_x_max = 22;
zone.speed_x_min = 18;
zone.speed_x = 18;
} else {
if (wave > 25) {
zone.health_max = 20;
zone.speed_x_max = 18;
zone.speed_x_min = 14;
zone.speed_x = 14;
} else {
if (wave > 20) {
zone.speed_x_max = 14;
zone.speed_x_min = 10;
zone.speed_x = 10;
} else {
if (wave > 10) {
zone.speed_x_max = 12;
zone.speed_x_min = 8;
zone.speed_x = 8;
} else {
zone.speed_x_max = 10;
zone.speed_x_min = 5;
zone.speed_x = 5;
}
}
}
}
}
}
if (zone.face_type == 6) {
zone.health_max *= 5;
}
zone.phase = 4;
} else {
zone.health_max = 12;
zone.speed_x_max = 10;
zone.speed_x_min = 5;
zone.speed_x = 5;
if (zone.shot_range_y == undefined) {
zone.shot_range_y = 70;
zone.shot_range_x = 100;
}
if (zone.shot_timer == undefined) {
zone.shot_timer = 90;
}
if (zone.shot_total_default == undefined) {
zone.shot_total_default = 1;
}
}
}
zone.health = zone.health_max;
zone.bullet_type = 'bullet2';
zone.attack = 1;
zone.defense = 1;
zone.damage_val = zone.attack;
zone.bloodtype = 1;
zone.tossed = false;
zone.onground = false;
zone.x_range = 50 + random(60);
zone.y_range = 6 + random(60);
zone.attack_timer = 30;
zone.landanim = 'land';
zone.w2 = 20;
zone.punch_timer_default = 60;
zone.punch_timer = 0;
zone.wait_timer = 0;
zone.newspawn = true;
if (zone.gun_type and zone.gun_type != 100) {
zone.gun_init = zone.gun_type;
} else {
zone.gun_init = 0;
}
zone.gun_type = 100;
if (zone.gun_init > 0) {
switch (zone.gun_init) {
case 1:
f_GetGun1(zone);
break;
case 2:
f_GetGun2(zone);
break;
case 3:
f_GetGun3(zone);
break;
case 4:
f_GetGun4(zone);
break;
case 5:
f_GetGun5(zone);
break;
case 6:
f_GetGun6(zone);
}
zone.hasgun = true;
zone.shot_total = zone.shot_total_default;
zone.gun.gun._rotation = 0;
zone.gun.gotoAndStop(15);
} else {
zone.gun_type = 100;
}
if (bosstest) {
zone.health = 1;
}
}
function f_PushOut(zone) {
if (Math.abs(p1.x - zone.x) < zone.w) {
if (p1.y - p1.h <= zone.y) {
if (p1.y >= zone.y - zone.h) {
if (p1.x > zone.x) {
f_MoveH(p1, zone.x + zone.w - p1.x);
} else {
f_MoveH(p1, zone.x - zone.w - p1.x);
}
}
}
}
}
function f_OnScreen(zone) {
if (zone.x + game_x < screenWidth + zone.w * 2) {
if (zone.x + game_x > -zone.w * 2) {
if (zone.y + game_y > -10) {
if (zone.y + game_y < screenHeight + zone.h + 10) {
return true;
}
}
}
}
return false;
}
function f_OnScreenActivate(zone) {
if (f_OnScreen(zone)) {
zone.gotoAndStop('activate');
}
}
function f_CrateHitWall(zone) {
if (Math.abs(zone.toss_speed_x) > 20) {
f_CrateExplode(zone);
return true;
} else {
return false;
}
}
function f_HealthText(health) {
if (health < 10) {
var v2 = '00' + health.toString();
return v2;
}
if (health < 100) {
v2 = '0' + health.toString();
return v2;
}
v2 = health;
return v2;
}
onMouseDown = function () {
if (menutime) {
clicked = false;
} else {
clicked = true;
}
};
onMouseUp = function () {
clicked = false;
p1.punched1 = false;
p1.shot1 = false;
};
oldT = getTimer();
maxF = 30;
fp_fpsLimiter = fpsLimiter;
f_Init();
stop();
}
movieClip 704 {
}
movieClip 709 {
}
button 710 {
on (release) {
gotoAndPlay('title');
}
on (keyPress 'a') {
gotoAndPlay('title');
}
}
movieClip 713 {
frame 1 {
_xscale = _xscale + 0.2;
_yscale = _yscale + 0.2;
}
frame 2 {
gotoAndPlay(1);
}
}
button 717 {
on (release) {
_root.nextFrame();
}
on (keyPress 'a') {
_root.nextFrame();
}
}
button 721 {
on (release) {
gotoAndStop('credits');
}
}
button 725 {
on (release) {
com.newgrounds.API.loadNewgrounds();
}
}
button 729 {
on (release) {
com.newgrounds.API.loadCustomLink('Madness2010');
}
}
button 733 {
on (release) {
getURL('http://tomfulp.newgrounds.com', '_blank');
}
}
button 734 {
on (release) {
getURL('http://mindchamber.newgrounds.com', '_blank');
}
}
button 735 {
on (release) {
getURL('http://krinkels.newgrounds.com', '_blank');
}
}
button 736 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/359165', '_blank');
}
}
button 737 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/359584', '_blank');
}
}
button 738 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/334231', '_blank');
}
}
button 739 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/346485', '_blank');
}
}
button 740 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/356928', '_blank');
}
}
button 741 {
on (release) {
musicoff = true;
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/341761', '_blank');
}
}
button 742 {
on (release) {
getURL('http://therealshadman.newgrounds.com', '_blank');
}
}
movieClip 748 {
}
movieClip 751 {
}
button 764 {
on (release) {
_parent.play();
}
}
button 769 {
on (release) {
if (musicoff) {
_root.f_ChangeSong(_root.song6.song);
}
gotoAndStop('menu');
}
}
movieClip 773 {
frame 106 {
_root.f_ChangeSong(_root.song6.song);
play();
}
frame 146 {
stop();
}
frame 147 {
musicoff = false;
}
}
movieClip 774 {
frame 1 {
cancelled = false;
stop();
}
instance of movieClip 599 {
onClipEvent (load) {
timer = 100;
vol = _root.song.getVolume();
if (!vol) {
vol = 0;
}
newvol = 0;
newsong = _parent.newsong;
newsong.start(0, 1000);
newsong.setVolume(newvol);
}
onClipEvent (enterFrame) {
if (!_parent.cancelled) {
if (_parent.newsong != newsong) {
_parent.oldsong = newsong;
_root.song.stop();
_root.song = newsong;
_root.song.setVolime(newvol);
timer = 100;
vol = newvol;
newvol = 0;
newsong = _parent.newsong;
newsong.start(0, 1000);
newsong.setVolume(newvol);
}
++newvol;
--vol;
if (vol < 0) {
vol = 0;
}
newsong.setVolume(newvol);
_root.song.setVolume(vol);
--timer;
if (timer <= 0) {
done = true;
_root.song.stop();
_root.song = newsong;
_root.song.setVolume(100);
_parent.gotoAndStop(1);
}
}
}
}
frame 3 {
gotoAndStop('fade');
}
}
frame 5 {
if (f_SavedGame()) {
gotoAndStop('resume');
} else {
gotoAndStop('controls');
}
}
movieClip 777 {
}
movieClip 778 {
frame 1 {
_xscale = _xscale + 0.2;
_yscale = _yscale + 0.2;
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 781 {
}
button 782 {
on (release) {
_root.f_Erase();
_root.gotoAndStop('controls');
}
}
button 783 {
on (release) {
_root.f_Load();
_root.gotoAndStop('controls');
}
}
movieClip 786 {
}
button 787 {
on (release) {
_root.controlmode = 1;
gotoAndPlay('go2');
}
}
button 788 {
on (release) {
_root.controlmode = 2;
gotoAndPlay('go2');
}
}
movieClip 789 {
frame 1 {
play();
}
frame 2 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_root.f_CheckStart()) {
_root.controlmode = 1;
_parent.gotoAndPlay('go2');
}
}
}
frame 7 {
stopAllSounds();
play();
}
frame 55 {
_root.gamemode = 3;
_root.nextFrame();
stop();
}
}
frame 8 {
f_StartUp();
}
movieClip 790 {
}
movieClip 792 {
}
button 794 {
on (release) {
stopAllSounds();
getURL('http://tomfulp.newgrounds.com', '_blank');
}
}
button 795 {
on (release) {
stopAllSounds();
getURL('http://mindchamber.newgrounds.com', '_blank');
}
}
button 796 {
on (release) {
stopAllSounds();
getURL('http://krinkels.newgrounds.com', '_blank');
}
}
button 797 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/92334', '_blank');
}
}
button 798 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/171975', '_blank');
}
}
button 799 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/170120', '_blank');
}
}
button 800 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/audio/listen/140436', '_blank');
}
}
button 802 {
on (release) {
stopAllSounds();
getURL('http://mike.newgrounds.com', '_blank');
}
}
movieClip 804 {
}
movieClip 805 {
}
movieClip 806 {
}
movieClip 807 {
}
movieClip 824 {
}
movieClip 827 {
}
button 828 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/store/product/madness-error-shirt', '_blank');
}
}
movieClip 831 {
}
button 832 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/store/product/madness-hank-shirt', '_blank');
}
}
button 833 {
on (release) {
stopAllSounds();
getURL('http://www.newgrounds.com/collection/madnessday2008', '_blank');
}
}
movieClip 835 {
}
movieClip 836 {
}
movieClip 839 {
}
button 840 {
on (release) {
stopAllSounds();
gotoAndPlay('replay');
}
}
movieClip 842 {
frame 1 {
stop();
}
frame 2 {
play();
}
instance of movieClip 29 empty {
onClipEvent (load) {
res = 1;
_root.f_MosaicScreen(res);
}
onClipEvent (enterFrame) {
res += 2;
_root.f_MosaicScreen(res);
}
}
frame 20 {
_root.f_Clear();
_root.spawnpoint = spawnpoint;
_root.gotoAndPlay(warpto);
gotoAndPlay('fadein');
}
frame 22 {
play();
}
instance of movieClip 29 empty {
onClipEvent (load) {
res = 40;
_root.f_MosaicScreen(res);
}
onClipEvent (enterFrame) {
res -= 2;
_root.f_MosaicScreen(res);
}
}
frame 42 {
stop();
}
frame 42 {
_root.f_MosaicScreen(0);
}
frame 55 {
play();
}
instance of movieClip 29 empty {
onClipEvent (load) {
if (_parent.warpto == 'level1_4intro') {
u_temp = true;
}
}
onClipEvent (enterFrame) {
if (u_temp) {
u_volume = _root.s_oceanside.s_oceanside.getVolume();
_root.s_oceanside.s_oceanside.setVolume(u_volume - 2);
}
}
}
frame 101 {
_root.screenOverlay.stop();
_root.f_Clear();
_root.spawnpoint = spawnpoint;
_root.gotoAndPlay(warpto);
gotoAndPlay('fadein');
}
frame 102 {
play();
}
frame 133 {
stop();
}
frame 134 {
play();
}
frame 141 {
stop();
}
frame 155 {
play();
}
frame 155 {
_root.f_MosaicScreen(0);
}
frame 362 {
stop();
}
frame 420 {
_root.gotoAndStop(1);
}
}
movieClip 844 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 10 {
stop();
}
frame 11 {
play();
}
frame 21 {
stop();
}
}
movieClip 846 {
}
movieClip 849 {
}
movieClip 850 {
frame 1 {
stop();
}
}
movieClip 856 {
}
movieClip 865 {
frame 1 {
stop();
}
frame 104 {
stop();
}
}
movieClip 873 {
}
movieClip 876 {
frame 1 {
_root.ammo = _root.p1.ammo;
_root.health = _root.p1.health + ' / ' + _root.p1.health_max;
_root.playerspeed = _root.p1.speed_x_max;
_root.playerattack = _root.p1.attack;
}
}
movieClip 881 {
frame 1 {
gotoAndStop(_root.controlmode);
}
}
movieClip 882 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 4 {
gotoAndStop(1);
}
}
movieClip 890 {
frame 1 {
_quality = 'medium';
i = 1;
gotoAndStop(2);
}
instance of movieClip 108 {
onClipEvent (enterFrame) {
_root.f_Quality(_parent);
}
}
frame 2 {
stop();
}
instance of movieClip 108 {
onClipEvent (enterFrame) {
_root.f_Quality(_parent);
--_parent.timer;
if (_parent.timer <= 0) {
_parent.gotoAndStop('blank');
}
}
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
ScreenOverlay.tick();
_root.f_PlayerPickup();
}
}
frame 14 {
_root.f_LevelDefaults();
_root.f_Level1_31Init();
stop();
}
movieClip 893 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 60 {
stop();
}
frame 61 {
play();
}
frame 121 {
stop();
}
frame 122 {
play();
}
frame 131 {
stop();
}
frame 132 {
play();
}
frame 141 {
stop();
}
}
movieClip 896 {
}
movieClip 898 {
}
movieClip 901 {
}
movieClip 902 {
frame 1 {
stop();
}
}
movieClip 904 {
}
movieClip 905 {
frame 1 {
stop();
}
}
movieClip 906 {
}
movieClip 909 {
}
movieClip 912 {
}
movieClip 916 {
}
movieClip 917 {
}
movieClip 921 {
}
movieClip 922 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 4 {
_root.s_elevatordoor.start(0, 0);
}
frame 6 {
if (spawns) {
_root.f_SurvivalEnemy(this);
} else {
stop();
}
}
frame 18 {
_root.s_steam.start(0, 0);
}
frame 20 {
stop();
}
frame 21 {
play();
}
frame 61 {
gotoAndPlay('close');
}
frame 72 {
stop();
}
frame 85 {
stop();
}
}
movieClip 925 {
frame 1 {
_root.f_AddNeutral(this);
}
}
movieClip 928 {
frame 1 {
_root.f_AddNeutral(this);
}
}
movieClip 929 {
frame 1 {
_root.f_AddPipe(this);
gotoAndStop(2);
}
}
movieClip 934 {
}
movieClip 939 {
}
movieClip 944 {
}
movieClip 949 {
}
movieClip 954 {
}
movieClip 959 {
}
movieClip 960 {
}
movieClip 961 {
}
movieClip 962 {
}
movieClip 963 {
}
movieClip 964 {
}
movieClip 965 {
}
movieClip 966 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 17 {
stop();
}
frame 19 {
_root.f_GeneralBullet(_parent._parent, bp1);
play();
}
frame 24 {
gotoAndStop('wait');
}
frame 26 {
play();
}
frame 37 {
stop();
}
}
movieClip 967 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 18 {
stop();
}
frame 20 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 20 {
play();
}
frame 22 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 28 {
gotoAndStop('wait');
}
frame 31 {
play();
}
}
movieClip 968 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 19 {
stop();
}
frame 21 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 21 {
play();
}
frame 23 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 25 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 30 {
gotoAndStop('wait');
}
frame 39 {
play();
}
}
movieClip 969 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 21 {
stop();
}
frame 23 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 23 {
play();
}
frame 25 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 27 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 29 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 34 {
gotoAndStop('wait');
}
frame 47 {
play();
}
}
movieClip 970 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 23 {
stop();
}
frame 26 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 26 {
play();
}
frame 28 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 30 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 32 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 34 {
_root.f_GeneralBullet(_parent._parent, bp);
}
frame 39 {
gotoAndStop('wait');
}
frame 49 {
play();
}
}
movieClip 971 {
frame 1 {
stop();
}
}
movieClip 973 {
}
movieClip 974 {
frame 1 {
_root.f_TurretInit(this);
stop();
}
frame 4 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Turret(_parent);
}
}
}
movieClip 980 {
}
movieClip 982 {
}
movieClip 984 {
frame 1 {
stop();
}
}
movieClip 985 {
frame 1 {
_root.f_SetBody(this);
}
}
movieClip 988 {
}
movieClip 990 {
}
movieClip 993 {
}
movieClip 994 {
frame 1 {
stop();
}
}
movieClip 995 {
frame 1 {
_root.f_SetBody(this);
}
}
movieClip 996 {
}
movieClip 998 {
}
movieClip 1000 {
}
movieClip 1007 {
}
movieClip 1010 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1015 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1020 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1025 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1027 {
}
movieClip 1030 {
}
movieClip 1033 {
}
movieClip 1034 {
frame 1 {
_root.f_SetHead(this);
}
}
movieClip 1036 {
}
movieClip 1038 {
}
movieClip 1040 {
}
movieClip 1042 {
}
movieClip 1043 {
}
movieClip 1047 {
}
movieClip 1049 {
}
movieClip 1051 {
}
movieClip 1052 {
}
movieClip 1054 {
}
movieClip 1055 {
}
movieClip 1056 {
frame 1 {
_root.f_SetFace(this);
}
}
movieClip 1057 {
}
movieClip 1059 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1060 {
}
movieClip 1062 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1063 {
}
movieClip 1069 {
}
movieClip 1070 {
frame 6 {
_parent.gotoAndStop('idle');
}
}
movieClip 1071 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1072 {
frame 1 {
_root.gunshooting = false;
stop();
}
}
movieClip 1073 {
}
movieClip 1074 {
frame 1 {
_root.u_point.x = 0;
_root.u_point.y = 0;
var par = _parent._parent._parent._parent._parent;
_parent._parent.bullet_pt.localToGlobal(_root.u_point);
var x = _root.u_point.x * _root.u_scale - _root.game_x;
var y = _root.u_point.y * _root.u_scale - _root.game_y;
var u_temp = _root.f_FX(x, y, par.y - 1, 'berreta_blast', 100, 100);
u_temp.body._rotation = _parent._parent._parent._rotation;
if (par._xscale < 0) {
u_temp._xscale *= -1;
}
play();
}
frame 13 {
_parent.gotoAndStop('idle');
}
}
movieClip 1075 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1076 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_parent._parent._parent._parent.shot1 = true;
}
}
movieClip 1077 {
}
movieClip 1078 {
}
movieClip 1082 {
}
movieClip 1083 {
frame 6 {
_parent.gotoAndStop('idle');
}
}
movieClip 1084 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1085 {
frame 1 {
_root.gunshooting = false;
stop();
}
}
movieClip 1086 {
}
movieClip 1087 {
frame 1 {
body.gotoAndStop(2);
}
frame 4 {
_parent.gotoAndStop('idle');
}
}
movieClip 1088 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1089 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_root.gunshooting = true;
}
}
movieClip 1090 {
}
movieClip 1094 {
frame 1 {
play();
}
frame 7 {
stop();
}
}
movieClip 1095 {
frame 1 {
body.gotoAndPlay(1);
play();
}
frame 3 {
_root.gunshooting = false;
}
frame 12 {
_parent.gotoAndStop('idle');
}
}
movieClip 1096 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1097 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_root.gunshooting = true;
_parent._parent._parent._parent.shot1 = true;
}
}
movieClip 1098 {
}
movieClip 1101 {
frame 1 {
_root.u_point.x = 0;
_root.u_point.y = 0;
var par = _parent._parent._parent._parent._parent;
_parent._parent.bullet_pt.localToGlobal(_root.u_point);
_root.game.game.globalToLocal(_root.u_point);
var x = _root.u_point.x;
var y = _root.u_point.y;
var u_temp = _root.f_FX(x, y, par.y - 1, 'shotgun_blast', 100, 100);
u_temp.body._rotation = _parent._parent._parent._rotation;
if (par._xscale < 0) {
u_temp._xscale *= -1;
}
play();
}
frame 3 {
_root.gunshooting = false;
}
frame 10 {
_root.u_point.x = 0;
_root.u_point.y = 0;
shell.localToGlobal(_root.u_point);
var x = _root.u_point.x * _root.u_scale - _root.game_x;
var y = _root.u_point.y * _root.u_scale - _root.game_y;
var u_temp = _root.f_ShrapnelGeneral(x, y, _parent._parent._parent._parent._parent.y + 1, 2 + random(4), -(8 + random(6)), 'shotgunshell');
u_temp.bounce_limit = 2;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelVanish;
u_temp._xscale = 70;
u_temp._yscale = 70;
}
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 1102 {
frame 10 {
_parent.gotoAndStop('idle');
}
}
movieClip 1103 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_root.gunshooting = true;
_parent._parent._parent._parent.shot1 = true;
}
}
movieClip 1104 {
}
movieClip 1106 {
}
movieClip 1107 {
frame 9 {
_parent.gotoAndStop('idle');
}
}
movieClip 1108 {
frame 1 {
_root.gunshooting = false;
stop();
}
frame 2 {
_root.gunshooting = true;
}
}
movieClip 1110 {
}
movieClip 1112 {
}
movieClip 1114 {
}
movieClip 1115 {
}
movieClip 1116 {
frame 1 {
if (_parent._parent._parent._parent.pipe) {
gotoAndStop('blank');
}
}
}
movieClip 1117 {
frame 1 {
_root.f_SetGun(this);
}
frame 102 {
_root.f_SetGun(this);
}
}
movieClip 1118 {
}
movieClip 1119 {
}
movieClip 1120 {
frame 17 {
gotoAndPlay('loop');
}
}
movieClip 1122 {
}
movieClip 1126 {
}
movieClip 1128 {
}
movieClip 1129 {
frame 6 {
stop();
}
}
movieClip 1132 {
}
movieClip 1134 {
}
movieClip 1137 {
frame 4 {
stop();
}
}
movieClip 1142 {
}
movieClip 1143 {
frame 8 {
_parent.gotoAndStop('stand');
}
}
movieClip 1149 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1150 {
}
movieClip 1152 {
frame 1 {
_root.f_ImpactPoint(this);
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 1153 {
frame 3 {
_parent.force_x = 12;
_parent.force_y = 0;
_parent.slide_x = 0;
}
frame 6 {
if (!_parent.u_hit) {
gotoAndPlay('finish');
}
}
frame 9 {
play();
}
frame 10 {
_root.f_EndPunch(_parent);
}
}
movieClip 1156 {
frame 4 {
_root.f_SetForceX(_parent, 12);
_parent.force_y = -8;
_parent.slide_x = 12;
}
frame 7 {
if (!_parent.u_hit) {
gotoAndPlay('finish');
}
}
frame 11 {
play();
}
frame 13 {
_root.f_EndPunch(_parent);
}
}
movieClip 1158 {
}
movieClip 1162 {
frame 8 {
if (_parent.platform == undefined) {
_parent.gotoAndStop('toss');
} else {
if (_parent.health <= 0) {
_parent.gotoAndStop('hitground');
} else {
_parent.gotoAndStop('stand');
}
}
}
}
movieClip 1163 {
frame 2 {
stop();
}
}
movieClip 1164 {
}
movieClip 1165 {
frame 2 {
stop();
}
}
movieClip 1169 {
frame 1 {
_root.f_SetHand(this);
}
}
movieClip 1170 {
frame 10 {
gotoAndPlay('loop');
}
}
movieClip 1171 {
frame 1 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_parent._parent.speed_y >= 0) {
_parent.gotoAndStop(3);
}
}
}
}
movieClip 1172 {
frame 2 {
_parent.gotoAndStop('toss2');
}
}
movieClip 1174 {
}
movieClip 1181 {
}
movieClip 1182 {
}
movieClip 1183 {
frame 6 {
if (_parent.health <= 0) {
_parent.alive = false;
if (_parent.body_type == 3) {
gotoAndPlay('die2');
} else {
gotoAndPlay('die');
}
} else {
_parent.onground = false;
}
}
frame 34 {
_root.f_EndPunch(_parent);
}
frame 35 {
if (_parent.smoke_timer > 0) {
_parent.smoke_timer = 10;
gotoAndPlay('burn');
}
}
frame 44 {
gotoAndPlay('burn');
}
frame 45 {
_root['s_zombiedie' + (random(3) + 1)].start(0, 0);
}
frame 69 {
++_root.kills;
_root.f_GetMoney();
_root.f_RemoveEnemy(_parent);
stop();
}
frame 70 {
play();
}
frame 94 {
_parent.body_type = 3;
_parent.head_type = 3;
_parent.face_type = 3;
_parent.alive = true;
_parent.health = _parent.health_max;
_parent.wait = true;
}
frame 116 {
_root.f_EndPunch(_parent);
}
frame 117 {
_parent.shadow.gotoAndStop('off');
play();
}
frame 151 {
if (_parent.hiddenkill) {
_parent.hiddenkill = false;
} else {
++_root.kills;
_root.f_GetMoney();
}
_root.f_RemoveEnemy(_parent);
stop();
}
}
movieClip 1186 {
}
movieClip 1188 {
}
movieClip 1202 {
}
movieClip 1216 {
}
movieClip 1223 {
}
movieClip 1231 {
}
movieClip 1233 {
}
movieClip 1234 {
}
movieClip 1237 {
}
movieClip 1239 {
}
movieClip 1242 {
}
movieClip 1257 {
}
movieClip 1258 {
}
movieClip 1259 {
frame 1 {
s_welding = new Sound(this);
s_welding.attachSound('welding.wav');
s_welding.start(0, 0);
}
instance of movieClip 108 {
onClipEvent (load) {
i = 1;
x = _parent._x + _parent._parent._x + _parent._parent._parent._x;
scale = _parent._parent._xscale / 100;
y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
++i;
if (i % 1 == 0) {
var u_scale = 60 + random(40);
var u_temp = _root.f_ShrapnelGeneral(x + _parent.spark._x * scale - 20, y - 5, y + 1, -4 + random(8), -(8 + random(15)), 'spark');
u_temp.bounce_limit = 1;
u_temp._xscale = 50 + random(50);
u_temp._yscale = 50 + random(50);
u_temp.weight = 1 + random(100) / 100;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelVanish;
}
}
}
frame 95 {
_root.game.game.ceiling.gotoAndPlay('go');
}
frame 190 {
s_welding.stop();
_parent._parent.phase = 10;
_parent._parent.gotoAndStop('stand');
}
}
movieClip 1260 {
}
movieClip 1261 {
frame 1 {
if (!init) {
init = true;
expand = 0;
}
var u_size = 80 + random(30);
_root.f_FX(_parent.x - _parent.w - expand + random(_parent.w * 2 + expand * 2), _parent.y + expand - random(_parent.h + expand * 2), _parent.y + 10, 'blood1', u_size, u_size);
}
frame 2 {
var u_size = 80 + random(30);
_root.f_FX(_parent.x - _parent.w - expand + random(_parent.w * 2 + expand * 2), _parent.y + expand - random(_parent.h + expand * 2), _parent.y + 10, 'blood1', u_size, u_size);
}
frame 3 {
--_parent.explosions;
if (_parent.explosions > 0) {
expand += 10;
gotoAndPlay(1);
} else {
stop();
}
}
}
movieClip 1265 {
}
movieClip 1266 {
frame 36 {
stop();
}
}
movieClip 1267 {
}
movieClip 1268 {
frame 1 {
stop();
}
}
movieClip 1270 {
}
movieClip 1272 {
}
movieClip 1274 {
}
movieClip 1276 {
}
movieClip 1277 {
frame 46 {
hand.gotoAndStop('two');
}
frame 80 {
hand.gotoAndStop('three');
}
frame 116 {
hand.gotoAndStop('one');
}
frame 132 {
stop();
}
}
movieClip 1278 {
frame 1 {
if (delay) {
gotoAndStop('blank');
} else {
_root.f_InitHencher(this);
}
}
frame 2 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_OnScreenActivate(_parent);
}
}
frame 3 {
if (delay or !alive) {
_root.f_InitHencher(this);
}
if (!shadow) {
_root.f_NewShadow(this);
} else {
shadow.gotoAndStop('on');
}
_root.f_AddEnemy(this);
_root.f_AddEnemyPush(this);
if (!platform) {
_root.f_PY(this, 20);
}
if (goframe) {
gotoAndStop(goframe);
} else {
gotoAndStop('walk');
}
}
frame 4 {
_root.f_HencherDefaults(this);
if (head_type == 3) {
_root.zombiesound = true;
}
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.gun._x * 0.5 + _parent.body._x;
_parent.gun._y = _parent.body.gun._y * 0.5 + _parent.body._y;
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Hencher(_parent);
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_GeneralTimers(_parent);
}
}
frame 8 {
punching = false;
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_parent.u_hit) {
_root.f_ForceSlide(_parent);
}
}
}
frame 14 {
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (!_root.f_CharJumping(_parent)) {
_root.f_ForceSlideBack(_parent);
}
}
}
frame 16 {
_root.f_TossPose(this);
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Toss(_parent);
}
}
frame 19 {
_root.f_DropGun(this);
gotoAndStop('toss2');
}
frame 25 {
_root.s_bodyfall3.start(0, 0);
_root.f_ShakeY(10);
}
frame 26 {
explosions = 6;
if (_xscale > 0) {
var u_speed_x = -(force_x + random(3));
} else {
var u_speed_x = force_x + random(3);
}
var u_speed_y = force_y;
var u_temp = _root.f_ShrapnelGeneral(x, y - 70, y + 1, u_speed_x, -20, 'hencher_head');
u_temp.bounce_limit = 2;
u_temp._xscale = _xscale;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelSplatter;
var u_temp = _root.f_ShrapnelGeneral(x, y - 10, y + 1, u_speed_x * 0.75, -10, 'hencher_body');
u_temp.bounce_limit = 1;
u_temp._xscale = _xscale;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelSplatter;
var u_temp = _root.f_ShrapnelGeneral(x, y, y + 1, u_speed_x * 0.75, -5, 'hencher_foot');
u_temp.bounce_limit = 1;
u_temp._xscale = _xscale;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelSplatter;
var u_temp = _root.f_ShrapnelGeneral(x, y - 50, y + 1, u_speed_x * 0.75, -12, 'hencher_hand');
u_temp.bounce_limit = 1;
u_temp._xscale = _xscale;
u_temp.fp_ShrapnelEnd = _root.f_ShrapnelSplatter;
_root.f_RemoveEnemy(this);
}
}
movieClip 1279 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1281 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1282 {
instance of movieClip 10 {
onClipEvent (load) {
_parent._parent.w = _parent._width / 2;
_parent._parent.h = _parent._height;
}
}
}
movieClip 1301 {
}
movieClip 1302 {
}
movieClip 1304 {
}
movieClip 1306 {
}
movieClip 1308 {
}
movieClip 1310 {
}
movieClip 1312 {
}
movieClip 1314 {
frame 1 {
stop();
}
}
movieClip 1315 {
}
movieClip 1317 {
}
movieClip 1319 {
}
movieClip 1320 {
}
movieClip 1323 {
}
movieClip 1325 {
}
movieClip 1326 {
frame 1 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_root.gunshooting) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
}
}
}
movieClip 1327 {
}
movieClip 1328 {
}
movieClip 1329 {
frame 18 {
if (_parent.gun_type == 30) {
if (Key.isDown(_parent.b_punch1) and Key.isDown(_parent.b_up)) {
_root.s_chainsaw2.start(0, 0);
}
}
}
frame 29 {
stop();
}
}
movieClip 1331 {
}
movieClip 1333 {
}
movieClip 1335 {
}
movieClip 1337 {
}
movieClip 1339 {
}
movieClip 1341 {
frame 1 {
stop();
}
}
movieClip 1343 {
}
movieClip 1344 {
}
movieClip 1345 {
}
movieClip 1346 {
frame 1 {
stop();
}
}
movieClip 1347 {
frame 12 {
gotoAndPlay('loop');
}
}
movieClip 1349 {
frame 1 {
_parent.gun.gun.gun.gotoAndStop('blank');
}
frame 8 {
_parent.gun.gun.gun.gotoAndStop(_parent.gun_type);
play();
}
frame 16 {
gotoAndPlay('loop');
}
}
movieClip 1351 {
frame 1 {
_root.f_SetForceX(_parent, 10 + _parent.attack * 2);
_parent.force_y = -8;
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_parent._parent.u_hit) {
if (_parent._parent._xscale > 0) {
var u_speed = -10;
} else {
var u_speed = 10;
}
++_parent._parent.kicks;
if (_parent._parent.kicks <= 1) {
var speed_y = _parent._parent.launch / 2;
} else {
if (_parent._parent.kicks == 2) {
var speed_y = _parent._parent.launch * 0.25;
u_speed *= 1.5;
} else {
if (_parent._parent.kicks == 3) {
var speed_y = 0;
u_speed *= 2;
} else {
var speed_y = 0;
u_speed *= 2;
}
}
}
_root.f_ForceJump(_parent._parent, u_speed, speed_y, true);
}
}
}
frame 3 {
stop();
}
}
movieClip 1353 {
}
movieClip 1354 {
frame 1 {
stop();
}
}
movieClip 1355 {
}
movieClip 1357 {
frame 7 {
if (_parent.health > 0) {
if (_parent.invincible_timer < 20) {
_parent.invincible_timer = 20;
}
_parent.gotoAndStop('stand');
} else {
_root.f_GameOver();
stop();
}
}
}
movieClip 1360 {
}
movieClip 1362 {
frame 2 {
_root.f_SetForceX(_parent, 10 + _parent.attack * 2);
_parent.force_y = -8;
_parent.slide_x = 12;
}
frame 6 {
if (!_parent.u_hit) {
gotoAndPlay('finish');
}
}
frame 9 {
play();
}
frame 12 {
_root.f_EndPunch(_parent);
}
}
movieClip 1364 {
}
movieClip 1366 {
}
movieClip 1368 {
frame 2 {
_root.f_SetForceX(_parent, 10 + _parent.attack * 2);
_parent.force_y = -8;
_parent.slide_x = 12;
}
frame 6 {
if (!_parent.u_hit) {
gotoAndPlay('finish');
}
}
frame 9 {
play();
}
frame 12 {
_root.f_EndPunch(_parent);
}
}
movieClip 1370 {
}
movieClip 1371 {
}
movieClip 1372 {
}
movieClip 1373 {
frame 9 {
gotoAndPlay('intro');
}
frame 45 {
gotoAndPlay('loop');
}
}
movieClip 1378 {
frame 2 {
_root.f_SetForceX(_parent, 12);
_parent.force_y = -8;
_parent.slide_x = 12;
_parent.gun.gun.gun.gotoAndStop('blank');
}
frame 6 {
if (!_parent.u_hit) {
gotoAndPlay('finish');
}
}
frame 9 {
play();
}
frame 15 {
_root.f_EndPunch(_parent);
}
}
movieClip 1379 {
frame 1 {
stop();
}
frame 2 {
onground = false;
pipe = undefined;
if (!shadow.active) {
shadow.gotoAndStop('on');
}
gun.gun.gun.gotoAndStop(gun_type);
if (autowalk_timer > 0) {
gun.gun.gun.gun.gotoAndStop('idle');
gun.gotoAndStop(15);
gotoAndStop('autowalk');
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.gun._x * 0.5 + _parent.body._x;
_parent.gun._y = _parent.body.gun._y * 0.5 + _parent.body._y;
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Controls(_parent);
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Timers(_parent);
}
}
frame 4 {
gun.gun.gun.gotoAndStop(gun_type);
}
instance of movieClip 29 empty {
onClipEvent (load) {
_parent.gun._x = _parent.body.body.gun._x * 0.5 + _parent.body.body._x + _parent.body._x;
_parent.gun._y = _parent.body.body.gun._y * 0.5 + _parent.body.body._y + _parent.body._y;
if (_root.controlmode == 2) {
if (_parent.speed_x * _parent._xscale < 0) {
_parent.body.gotoAndStop(2);
} else {
_parent.body.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.body.gun._x * 0.5 + _parent.body.body._x + _parent.body._x;
_parent.gun._y = _parent.body.body.gun._y * 0.5 + _parent.body.body._y + _parent.body._y;
if (_root.controlmode == 2) {
if (_parent.speed_x * _parent._xscale < 0) {
_parent.body.gotoAndStop(2);
} else {
_parent.body.gotoAndStop(1);
}
}
}
}
frame 5 {
gun.gun.gun.gotoAndStop(gun_type);
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.gun._x * 0.5 + _parent.body._x;
_parent.gun._y = _parent.body.gun._y * 0.5 + _parent.body._y;
}
}
frame 7 {
gun.gun.gun.gotoAndStop('blank');
}
frame 8 {
_root.f_TossPose(this);
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_Toss(_parent);
}
}
frame 9 {
gun.gun.gun.gotoAndStop(gun_type);
gun.gun.gun.gun.gotoAndStop('idle');
gun.gotoAndStop(20);
gun._x = 0;
gun._y = -20;
}
frame 10 {
gun.gun.gun.gotoAndStop(gun_type);
gun.gun.gun.gun.gotoAndStop('idle');
gun.gotoAndStop(20);
gun._x = 0;
gun._y = -20;
}
frame 11 {
gun.gun.gun.gotoAndStop(gun_type);
gun.gun.gun.gun.gotoAndStop('idle');
gun.gotoAndStop(20);
gun._x = 0;
gun._y = -10;
}
frame 12 {
gun.gun.gun.gotoAndStop('blank');
}
frame 13 {
gun.gun.gun.gotoAndStop('blank');
}
frame 14 {
gun.gun.gun.gotoAndStop('reset');
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.gun._x + _parent.body._x;
_parent.gun._y = _parent.body.gun._y + _parent.body._y;
}
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_PipeControls(_parent);
}
}
frame 15 {
gun.gun.gun.gotoAndStop('reset');
if (gun_type == 101) {
gun.gotoAndStop('up');
} else {
gun.gotoAndPlay('goup');
}
}
frame 16 {
gun.gun.gun.gotoAndStop('blank');
}
frame 17 {
_root.f_PY(this, 5);
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
if (_parent.autowalk_timer > 0) {
--_parent.autowalk_timer;
_parent.gun._x = _parent.body.gun._x * 0.5 + _parent.body._x;
_parent.gun._y = _parent.body.gun._y * 0.5 + _parent.body._y;
if (_parent._xscale > 0) {
_root.f_MoveH(_parent, _parent.speed_x_max);
} else {
_root.f_MoveH(_parent, -_parent.speed_x_max);
}
} else {
_parent.gotoAndStop('stand');
}
}
}
frame 18 {
gun.gun.gun.gotoAndStop(gun_type);
gun.gun.gun.gun.gotoAndStop('idle');
gun.gotoAndStop(15);
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_parent.gun._x = _parent.body.gun._x * 0.5 + _parent.body._x;
_parent.gun._y = _parent.body.gun._y * 0.5 + _parent.body._y;
}
}
frame 19 {
shadow.gotoAndStop('off');
}
}
movieClip 1381 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1383 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1385 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1387 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1389 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1391 {
frame 1 {
gotoAndStop(2);
}
}
movieClip 1392 {
frame 30 {
stop();
}
instance of movieClip 29 empty {
onClipEvent (enterFrame) {
_root.f_SurvivalSpawn(_parent);
}
}
instance of movieClip 29 empty {
onClipEvent (load) {
_root.f_SurvivalInit(_parent);
}
onClipEvent (enterFrame) {
_root.f_SurvivalAction(_parent);
}
}
frame 90 {
gotoAndStop('loop');
}
}
movieClip 1393 {
instance e7 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e8 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e5 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e6 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e1 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e2 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e3 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
instance e4 of movieClip 1278 {
onClipEvent (load) {
gun_type = 1;
phase = 3;
face_type = 2;
head_type = 1;
body_type = 2;
shot_timer = 60;
delay = true;
}
}
}
movieClip 1394 {
instance game of movieClip 1393 {
onClipEvent (enterFrame) {
if (_root.go == true) {
_root.main();
}
}
}
}
button 1395 {
on (rollOver) {
gotoAndStop(1);
}
}
button 1398 {
on (release) {
_root.f_MenuDone();
}
on (keyPress '<Enter>') {
_root.f_MenuDone();
}
on (rollOver) {
gotoAndStop(1);
}
}
button 1399 {
on (rollOver) {
gotoAndStop(2);
}
}
button 1400 {
on (rollOver) {
gotoAndStop(3);
}
}
button 1401 {
on (rollOver) {
gotoAndStop(4);
}
}
button 1404 {
on (release) {
_root.f_FirstAid(0.25);
}
}
button 1405 {
on (release) {
_root.f_FirstAid(0.5);
}
}
button 1406 {
on (release) {
_root.f_FirstAid(1);
}
}
button 1409 {
on (release) {
_root.f_UpgradeHealth();
}
}
button 1410 {
on (release) {
_root.f_UpgradeSpeed();
}
}
button 1411 {
on (release) {
_root.f_UpgradeAttack();
}
}
button 1412 {
on (release) {
_root.f_UpgradeJump();
}
}
button 1417 {
on (release) {
_root.f_UpgradeGun(1);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(1);
}
}
button 1418 {
on (release) {
_root.f_UpgradeGun(2);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(2);
}
}
button 1419 {
on (release) {
_root.f_UpgradeGun(3);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(3);
}
}
button 1420 {
on (release) {
_root.f_UpgradeGun(4);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(4);
}
}
button 1421 {
on (release) {
_root.f_UpgradeGun(5);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(5);
}
}
button 1422 {
on (release) {
_root.f_UpgradeGun(6);
}
on (rollOver) {
_root.f_SetGuns();
_root.f_RollOverGun(6);
}
}
movieClip 1429 {
frame 1 {
_root.f_SetGuns();
stop();
}
frame 2 {
_root.f_SetGuns();
}
frame 3 {
_root.f_SetGuns();
}
frame 4 {
_root.f_SetGuns();
}
}
movieClip 1432 {
frame 111 {
stop();
}
}
movieClip 1439 {
frame 160 {
_root.f_Medal('Survivor');
}
frame 301 {
if (_root.f_HasTurret()) {
gotoAndPlay('skipped');
}
}
frame 302 {
_root.f_Medal('Lone Wolf');
}
frame 443 {
play();
}
frame 591 {
_parent.gotoAndStop('on');
}
}
movieClip 1440 {
frame 1 {
gotoAndStop('off');
}
}
frame 15 {
gotoAndStop(1);
}
movieClip 1442 {
instance cliff of movieClip 24 l3 {
onClipEvent (load) {
z_platform.texture = 1;
}
}
}
movieClip 1443 {
instance game of movieClip 1442 {
onClipEvent (enterFrame) {
if (_root.go == true) {
_root.main();
}
}
}
}
frame 19 {
s_chainsaw.s_chainsaw1.stop();
s_chainsaw.s_chainsaw3.stop();
gameover = false;
--lives;
play();
}
frame 28 {
if (lives == 2) {
livesleft.hanks.hank1.gotoAndPlay('go');
} else {
if (lives == 1) {
livesleft.hanks.hank1.gotoAndStop('off');
livesleft.hanks.hank2.gotoAndPlay('go');
} else {
if (lives <= 0) {
livesleft.hanks.hank1.gotoAndStop('off');
livesleft.hanks.hank2.gotoAndStop('off');
livesleft.hanks.hank3.gotoAndPlay('go');
}
}
}
stop();
}
movieClip 1446 {
}
button 1450 {
on (release) {
choice = 1;
play();
}
}
button 1451 {
on (release) {
choice = 2;
play();
}
}
movieClip 1452 {
frame 1 {
stopAllSounds();
}
frame 36 {
stop();
}
frame 72 {
if (choice == 1) {
_root.gotoAndStop('reboot');
} else {
_root.gotoAndStop('clearout');
}
}
}
frame 38 {
stats.gun_type = undefined;
stats.ammo = 0;
gotoAndPlay(currentlevel);
}
frame 39 {
stopAllSounds();
gotoAndStop('title');
}