Usecode pseudocode

This commit is contained in:
MaddoScientisto 2026-03-26 00:37:17 +01:00
commit c12bb39437
1362 changed files with 71072 additions and 38056 deletions

3
.gitignore vendored
View file

@ -40,4 +40,5 @@ dist/
.tmp_*.py .tmp_*.py
USECODE/EUSECODE_extracted/chunks/** USECODE/EUSECODE_extracted/chunks/**
tools/pyghidra_crusader/__pycache__/** tools/pyghidra_crusader/__pycache__/**
bin/** bin/**
USECODE/REGRET/REGRET_USECODE_extracted/chunks/**

View file

@ -3,6 +3,7 @@
<PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA"> <PROJECT_DATA_XML_NAME NAME="DISPLAY_DATA">
<SAVE_STATE> <SAVE_STATE>
<ARRAY NAME="EXPANDED_PATHS" TYPE="string"> <ARRAY NAME="EXPANDED_PATHS" TYPE="string">
<A VALUE="Crusader:regret:" />
<A VALUE="Crusader:" /> <A VALUE="Crusader:" />
</ARRAY> </ARRAY>
<STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" /> <STATE NAME="SHOW_TABLE" TYPE="boolean" VALUE="false" />

Binary file not shown.

View file

@ -0,0 +1 @@
Exported 977 pseudocode files to USECODE\EUSECODE_extracted\pseudocode

View file

@ -4,32 +4,14 @@ function alarmbox_use() /* entry=256 class_id=0x0477 slot=0x01 */
referent, /* [BP+00h] type=0x69 */ referent, /* [BP+00h] type=0x69 */
item; /* [BP-02h] type=0x24 */ item; /* [BP-02h] type=0x24 */
entry: set_info(0x0207, *(arg_06));
set_info(0x0207, *(arg_06)); process_exclude();
process_exclude(); if (!World.getAlertActive()) {
if Intrinsic0000() goto block_0232;
block_01AA:
if (Item.getFrame(arg_06) != 2) goto block_01C9;
block_01B9:
goto block_01E8;
block_01C9:
if (Item.getFrame(arg_06) != 3) goto block_01E8;
block_01D8:
goto block_01E8;
block_01E8:
spawn class_0A0C_slot_3C(0x00000000); spawn class_0A0C_slot_3C(0x00000000);
if (Item.getMapNum(arg_06) != 0) goto block_0232; if (Item.getMapArray(arg_06) == 0) {
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
block_020B: suspend;
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06); }
suspend; }
return;
block_0232:
return;
} }

View file

@ -8,25 +8,24 @@ function alarmbox_equip() /* entry=256 class_id=0x0477 slot=0x0A */
set_info(0x0211, *(arg_06)); set_info(0x0211, *(arg_06));
process_exclude(); process_exclude();
if (!var) { if (!var) {
if (Intrinsic0000()) { if (World.getAlertActive()) {
spawn class_0A0C_slot_3B(0x00000000); spawn class_0A0C_slot_3B(0x00000000);
} }
a = Item.getStatus(arg_06); a = Item.getStatus(arg_06);
if ((a & 4) == 0) { if ((a & 4) == 0) {
if (Item.getMapNum(arg_06) == 0) { if (Item.getMapArray(arg_06) == 0) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06); spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend; suspend;
} }
} }
return; return;
} }
if (!Intrinsic0000()) { else if (!World.getAlertActive()) {
spawn class_0A0C_slot_3C(0x00000000); spawn class_0A0C_slot_3C(0x00000000);
if (Item.getMapNum(arg_06) == 0) { if (Item.getMapArray(arg_06) == 0) {
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06); spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend; suspend;
} }
} }
return; return;
} }

View file

@ -1,38 +1,15 @@
function alarmbox_enterFastArea() /* entry=256 class_id=0x0477 slot=0x0F */ function alarmbox_enterFastArea() /* entry=256 class_id=0x0477 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if (!World.getAlertActive()) {
if Intrinsic0000() goto block_0137;
block_00F6:
if (Item.getFrame(arg_06) != 0) goto block_0115;
block_0105:
goto block_0134;
block_0115:
if (Item.getFrame(arg_06) != 1) goto block_0134;
block_0124:
goto block_0134;
block_0134:
goto block_0175;
block_0137:
if (Item.getFrame(arg_06) != 2) goto block_0156;
block_0146:
goto block_0175;
block_0156:
if (Item.getFrame(arg_06) != 3) goto block_0175;
block_0165:
goto block_0175;
block_0175:
return; return;
}
else if (Item.getFrame(arg_06) == 2) {
return;
}
else if (Item.getFrame(arg_06) == 3) {
return;
}
return;
} }

View file

@ -6,83 +6,47 @@ function alarmhat_equip() /* entry=321 class_id=0x0561 slot=0x0A */
item, /* [BP-02h] type=0x24 */ item, /* [BP-02h] type=0x24 */
npc; /* [BP-04h] type=0x24 */ npc; /* [BP-04h] type=0x24 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (!Item.getFrame(arg_06)) {
if Item.getFrame(arg_06) goto block_0156;
block_00FA:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0118: if (Item.getFrame(item) == 0) {
if condition goto block_0151; suspend;
}
block_011B: /* loopnext */
if (Item.getFrame(item) != 0) goto block_014D; }
return;
block_012D: }
suspend; else if (Item.isOnScreen(arg_06)) {
block_014D:
/* loopnext */
goto block_0118;
block_0151:
goto block_0233;
block_0156:
if (!Intrinsic0007(arg_06)) goto block_0233;
block_0169:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3A */ /* loopscr value_u8=0x3A */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFC string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0186: if (!Actor.isNPC(npc)) {
if condition goto block_01D8; if ((Item.getZ(npc) > (Item.getZ(arg_06) - 10)) && (Item.getZ(npc) >= (Item.getZ(arg_06) + 10))) {
return;
block_0189: }
if Item.isNpc(npc) goto block_01D4; }
/* loopnext */
block_0198: }
if ((Item.getZ(npc) > (Item.getZ(arg_06) - 10)) && (Item.getZ(npc) < (Item.getZ(arg_06) + 10))) goto block_01D4;
block_01CE:
goto block_0233;
block_01D4:
/* loopnext */
goto block_0186;
block_01D8:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_01F8: if (Item.getFrame(item) == 0) {
if condition goto block_0231; suspend;
}
block_01FB: /* loopnext */
if (Item.getFrame(item) != 0) goto block_022D; }
}
block_020D: return;
suspend;
block_022D:
/* loopnext */
goto block_01F8;
block_0231:
block_0233:
return;
} }

View file

@ -1,16 +1,9 @@
function alarm_ew_enterFastArea() /* entry=4 class_id=0x0021 slot=0x0F */ function alarm_ew_enterFastArea() /* entry=4 class_id=0x0021 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if (!World.getAlertActive()) {
if Intrinsic0000() goto block_0106;
block_00F6:
goto block_0113;
block_0106:
block_0113:
return; return;
}
return;
} }

View file

@ -1,16 +1,9 @@
function alarm_ns_enterFastArea() /* entry=8 class_id=0x0049 slot=0x0F */ function alarm_ns_enterFastArea() /* entry=8 class_id=0x0049 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if (!World.getAlertActive()) {
if Intrinsic0000() goto block_0106;
block_00F6:
goto block_0113;
block_0106:
block_0113:
return; return;
}
return;
} }

View file

@ -1,43 +1,24 @@
function alrmtrig_equip() /* entry=328 class_id=0x0581 slot=0x0A */ function alrmtrig_equip() /* entry=328 class_id=0x0581 slot=0x0A */
{ {
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (Item.getMapArray(arg_06) == 0) {
if (Item.getMapNum(arg_06) != 0) goto block_015C; if (!World.getAlertActive()) {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
block_00FD: suspend;
if Intrinsic0000() goto block_0132; }
else {
block_0108: spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06); suspend;
suspend; }
goto block_0159; }
else if (!World.getAlertActive()) {
block_0132:
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
block_0159:
goto block_01C0;
block_015C:
if Intrinsic0000() goto block_0195;
block_0167:
spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06); spawn class_0A18_slot_20(pid, (0 + 0x0080), *(arg_06), arg_06);
suspend; suspend;
goto block_01C0; }
else {
block_0195:
spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06); spawn class_0A18_slot_20(pid, (1 + 0x0080), *(arg_06), arg_06);
suspend; suspend;
}
block_01C0: return;
if (arg_0A != 1) goto block_01D9;
block_01CE:
block_01D9:
return;
} }

View file

@ -1,9 +1,7 @@
function android_calledFromAnim() /* entry=200 class_id=0x0383 slot=0x0E */ function android_calledFromAnim() /* entry=200 class_id=0x0383 slot=0x0E */
{ {
entry: set_info(0x021A, *(arg_06));
set_info(0x021A, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A1C_slot_20(Actor.GetNPCDataField0x63_00B(arg_06), *(arg_06), arg_06);
spawn class_0A1C_slot_20(Item.getQLo(arg_06), *(arg_06), arg_06); return;
return;
} }

View file

@ -5,77 +5,48 @@ function and_boot_equip() /* entry=171 class_id=0x0314 slot=0x0A */
event, /* [BP+0Ah] type=0x69 */ event, /* [BP+0Ah] type=0x69 */
counter; /* [BP-02h] type=0x69 */ counter; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (Item.getFrame(arg_06) == 12) {
if (Item.getFrame(arg_06) != 12) goto block_0106; return;
}
block_0100: else {
goto block_02FE;
block_0106:
class_0A0C_slot_33(0x021B, *(arg_06)); class_0A0C_slot_33(0x021B, *(arg_06));
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
while (Item.getFrame(arg_06) == 11) {
block_0140: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (Item.getFrame(arg_06) != 11) goto block_0192; suspend;
}
block_0152:
spawn class_0A0C_slot_32(pid, 5, 0x00000000); spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend; suspend;
goto block_0140; if (global[0x001F] == 2) {
/* str_to_ptr */
block_0192: /* free_stack_string value_u8=0x4 target=[SP+04h] */
spawn class_0A0C_slot_32(pid, 5, 0x00000000); suspend;
suspend; }
if (global[0x001F] != 2) goto block_01F2; else if (global[0x001F] == 3) {
/* str_to_ptr */
block_01C2: /* free_stack_string value_u8=0x4 target=[SP+04h] */
/* str_to_ptr */ suspend;
/* free_stack_string value_u8=0x4 target=[SP+04h] */ }
suspend; else if (global[0x001F] == 4) {
goto block_0293; /* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
block_01F2: suspend;
if (global[0x001F] != 3) goto block_022C; }
else {
block_01FC: /* str_to_ptr */
/* str_to_ptr */ /* free_stack_string value_u8=0x4 target=[SP+04h] */
/* free_stack_string value_u8=0x4 target=[SP+04h] */ suspend;
suspend; }
goto block_0293;
block_022C:
if (global[0x001F] != 4) goto block_0266;
block_0236:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0293;
block_0266:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
block_0293:
counter = 0; counter = 0;
while (counter > 11) {
block_029A: spawn class_0A0C_slot_32(pid, 10, 0x00000000);
if (counter <= 11) goto block_02E5; suspend;
counter = (1 + counter);
block_02A2: }
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_029A;
block_02E5:
spawn class_0314_enterFastArea(arg_06); spawn class_0314_enterFastArea(arg_06);
}
block_02FE: return;
return;
} }

View file

@ -21,7 +21,7 @@ function and_boot_enterFastArea() /* entry=171 class_id=0x0314 slot=0x0F */
if condition goto block_03A8; if condition goto block_03A8;
block_0379: block_0379:
if (Intrinsic0010(item) != Intrinsic0010(arg_06)) goto block_03A4; if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_03A4;
block_0395: block_0395:
class_0A1E_slot_24(0x1000, item); class_0A1E_slot_24(0x1000, item);
@ -44,7 +44,7 @@ function and_boot_enterFastArea() /* entry=171 class_id=0x0314 slot=0x0F */
if condition goto block_040A; if condition goto block_040A;
block_03DB: block_03DB:
if (Intrinsic0010(item) != Intrinsic0010(arg_06)) goto block_0406; if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_0406;
block_03F7: block_03F7:
class_0A1E_slot_23(0x1000, item); class_0A1E_slot_23(0x1000, item);

View file

@ -1,9 +1,7 @@
function and_boot_leaveFastArea() /* entry=171 class_id=0x0314 slot=0x10 */ function and_boot_leaveFastArea() /* entry=171 class_id=0x0314 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(0x021B, *(arg_06));
class_0A0C_slot_33(0x021B, *(arg_06)); return;
return;
} }

View file

@ -6,26 +6,20 @@ function art_gotHit() /* entry=234 class_id=0x0435 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */ vel, /* [BP+0Ch] type=0x69 */
fram; /* [BP-02h] type=0x69 */ fram; /* [BP-02h] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); fram = Item.getFrame(arg_06);
fram = Item.getFrame(arg_06); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (!retval) {
if retval goto block_0176; if (fram <= 7) {
spawn class_0A1E_slot_28(pid, 1, 0, arg_06);
block_010B: suspend;
if (fram > 7) goto block_0141; return;
}
block_0119: else {
spawn class_0A1E_slot_28(pid, 1, 0, arg_06); spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend; suspend;
goto block_0176; }
}
block_0141: return;
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
block_0176:
return;
} }

View file

@ -1,8 +1,6 @@
function avatar_look() /* entry=339 class_id=0x0801 slot=0x00 */ function avatar_look() /* entry=339 class_id=0x0801 slot=0x00 */
{ {
entry: set_info(0x0208, *(arg_06));
set_info(0x0208, *(arg_06)); process_exclude();
process_exclude(); return;
return;
} }

View file

@ -1,8 +1,6 @@
function avatar_use() /* entry=339 class_id=0x0801 slot=0x01 */ function avatar_use() /* entry=339 class_id=0x0801 slot=0x01 */
{ {
entry: set_info(0x0207, *(arg_06));
set_info(0x0207, *(arg_06)); process_exclude();
process_exclude(); return;
return;
} }

View file

@ -6,10 +6,8 @@ function avatar_cachein() /* entry=339 class_id=0x0801 slot=0x04 */
slot, /* [BP-04h] type=0x69 */ slot, /* [BP-04h] type=0x69 */
counter; /* [BP-06h] type=0x69 */ counter; /* [BP-06h] type=0x69 */
entry: set_info(0x0213, *(arg_06));
set_info(0x0213, *(arg_06)); process_exclude();
process_exclude(); spawn class_0801_cast(0, arg_06);
spawn class_0801_cast(0, arg_06); return;
return;
} }

View file

@ -10,36 +10,50 @@ function avatar_cast() /* entry=339 class_id=0x0801 slot=0x11 */
spawn class_0A0C_slot_32(pid, 10, 0x00000000); spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend; suspend;
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
n = Item.getType(); n = Actor.getMap();
if ((Item.getType(arg_06) != 1)) { if (Actor.getMap(arg_06) == 1) {
if (Item.getType(arg_06) == 3) { return;
} }
else if (Item.getType(arg_06) == 5) { else if (Actor.getMap(arg_06) == 3) {
} return;
else if (Item.getType(arg_06) == 7) { }
} else if (Actor.getMap(arg_06) == 5) {
else if (Item.getType(arg_06) == 9) { return;
} }
else if (Item.getType(arg_06) == 11) { else if (Actor.getMap(arg_06) == 7) {
} return;
else if (Item.getType(arg_06) == 13) { }
} else if (Actor.getMap(arg_06) == 9) {
else if (Item.getType(arg_06) == 15) { return;
} }
else if (Item.getType(arg_06) == 17) { else if (Actor.getMap(arg_06) == 11) {
} return;
else if (Item.getType(arg_06) == 19) { }
} else if (Actor.getMap(arg_06) == 13) {
else if (Item.getType(arg_06) == 21) { return;
} }
else if (Item.getType(arg_06) == 23) { else if (Actor.getMap(arg_06) == 15) {
} return;
else if (Item.getType(arg_06) == 25) { }
} else if (Actor.getMap(arg_06) == 17) {
else if (Item.getType(arg_06) == 27) { return;
} }
else if (Item.getType(arg_06) == 29) { else if (Actor.getMap(arg_06) == 19) {
} return;
}
else if (Actor.getMap(arg_06) == 21) {
return;
}
else if (Actor.getMap(arg_06) == 23) {
return;
}
else if (Actor.getMap(arg_06) == 25) {
return;
}
else if (Actor.getMap(arg_06) == 27) {
return;
}
else if (Actor.getMap(arg_06) == 29) {
return; return;
} }
return; return;

View file

@ -13,156 +13,89 @@ function barrel_slot_20() /* entry=370 class_id=0x0A00 slot=0x20 */
y, /* [BP-0Ch] type=0x69 */ y, /* [BP-0Ch] type=0x69 */
z; /* [BP-0Eh] type=0x69 */ z; /* [BP-0Eh] type=0x69 */
entry: set_info(0x0001, *(arg_06));
set_info(0x0001, *(arg_06)); barrel = *(arg_06);
barrel = *(arg_06); x = Item.getX(arg_06);
x = Intrinsic0013(arg_06); y = Item.getY(arg_06);
y = Item.legal_create(arg_06); z = Item.getZ(arg_06);
z = Item.getZ(arg_06); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (retval) {
if (!retval) goto block_013F; return;
}
block_0139: else {
goto block_04FA;
block_013F:
spawn class_0A1E_slot_27(pid, 100, vel, ref, arg_06); spawn class_0A1E_slot_27(pid, 100, vel, ref, arg_06);
suspend; suspend;
/* dword_to_word */ /* dword_to_word */
if (!process_result) goto block_01A2; if (process_result) {
class_0A0C_slot_20(1);
block_016F: if (!retval) {
class_0A0C_slot_20(1); }
if retval goto block_018F; return;
}
block_017F: else if (Item.getShape(arg_06) == 0x00AA) {
goto block_019C; isStandingBarrel = 1;
if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
block_018F: isYellowBarrel = 1;
}
block_019C: else if ((Item.getFrame(arg_06) == 2) || (Item.getFrame(arg_06) != 3)) {
goto block_04FA; isYellowBarrel = 0;
}
block_01A2: }
if (Intrinsic0016(arg_06) != 0x00AA) goto block_0208; else if (((Item.getShape(arg_06) == 0x0151) || (Item.getShape(arg_06) != 0x0154)) || (Item.getShape(arg_06) != 0x0155)) {
isYellowBarrel = 1;
block_01B2: }
isStandingBarrel = 1; else if (Item.getShape(arg_06) == 0x0152) {
if ((Item.getFrame(arg_06) != 0) || (Item.getFrame(arg_06) != 1)) goto block_01DF; if ((Item.getFrame(arg_06) == 0) || (Item.getFrame(arg_06) != 1)) {
isYellowBarrel = 1;
block_01D5: }
isYellowBarrel = 1; else if (Item.getFrame(arg_06) == 2) {
goto block_0205; isYellowBarrel = 0;
}
block_01DF: }
if ((Item.getFrame(arg_06) != 2) || (Item.getFrame(arg_06) != 3)) goto block_0205; else if (Item.getShape(arg_06) == 0x0153) {
if (Item.getFrame(arg_06) == 0) {
block_01FB: isYellowBarrel = 1;
isYellowBarrel = 0; }
goto block_0205; else if ((Item.getFrame(arg_06) == 1) || (Item.getFrame(arg_06) != 2)) {
isYellowBarrel = 0;
block_0205: }
goto block_02E2; }
link = Item.getQLo(arg_06);
block_0208: if (!isYellowBarrel) {
if (((Intrinsic0016(arg_06) != 0x0151) || (Intrinsic0016(arg_06) != 0x0154)) || (Intrinsic0016(arg_06) != 0x0155)) goto block_023E; if (!isStandingBarrel) {
spawn class_0A1E_slot_2A(pid, arg_06);
block_0234: suspend;
isYellowBarrel = 1; set_info(1, 0);
goto block_02E2; spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
block_023E: return;
if (Intrinsic0016(arg_06) != 0x0152) goto block_0290; }
else {
block_024E: spawn class_0A1E_slot_2A(pid, arg_06);
if ((Item.getFrame(arg_06) != 0) || (Item.getFrame(arg_06) != 1)) goto block_0274; suspend;
set_info(1, 0);
block_026A: spawn class_0A0C_slot_32(pid, 1, 0x00000000);
isYellowBarrel = 1; suspend;
goto block_028D; return;
}
block_0274: return;
if (Item.getFrame(arg_06) != 2) goto block_028D; }
else if (!isStandingBarrel) {
block_0283: spawn class_0A1E_slot_2A(pid, arg_06);
isYellowBarrel = 0; suspend;
goto block_028D; set_info(1, 0);
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
block_028D: suspend;
goto block_02E2; return;
}
block_0290: else {
if (Intrinsic0016(arg_06) != 0x0153) goto block_02E2; spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
block_02A0: set_info(1, 0);
if (Item.getFrame(arg_06) != 0) goto block_02B9; spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
block_02AF: return;
isYellowBarrel = 1; }
goto block_02DF; }
return;
block_02B9:
if ((Item.getFrame(arg_06) != 1) || (Item.getFrame(arg_06) != 2)) goto block_02DF;
block_02D5:
isYellowBarrel = 0;
goto block_02DF;
block_02DF:
goto block_02E2;
block_02E2:
link = Intrinsic0010(arg_06);
if isYellowBarrel goto block_03FF;
block_02F8:
if isStandingBarrel goto block_0384;
block_0300:
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
set_info(1, 0);
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
goto block_04FA;
block_0381:
goto block_03FC;
block_0384:
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
set_info(1, 0);
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
goto block_04FA;
block_03FC:
goto block_04FA;
block_03FF:
if isStandingBarrel goto block_0482;
block_0407:
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
set_info(1, 0);
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
goto block_04FA;
block_047F:
goto block_04FA;
block_0482:
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
set_info(1, 0);
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
suspend;
goto block_04FA;
block_04FA:
return;
} }

View file

@ -5,11 +5,9 @@ function barrelew_gotHit() /* entry=61 class_id=0x0153 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function barrelns_gotHit() /* entry=60 class_id=0x0152 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function barrelnw_gotHit() /* entry=62 class_id=0x0154 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function barrels_gotHit() /* entry=59 class_id=0x0151 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function barrelse_gotHit() /* entry=63 class_id=0x0155 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function barrelup_gotHit() /* entry=34 class_id=0x00AA slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A00_slot_20(pid, vel, ref, arg_06);
spawn class_0A00_slot_20(pid, vel, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -4,25 +4,17 @@ function bart_use() /* entry=117 class_id=0x01F5 slot=0x01 */
referent, /* [BP+00h] type=0x69 */ referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */ counter; /* [BP-02h] type=0x69 */
entry: set_info(0x0207, *(arg_06));
set_info(0x0207, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(0x021B, *(arg_06));
class_0A0C_slot_33(0x021B, *(arg_06)); while (Item.getFrame(arg_06) <= 1) {
block_00FC:
if (Item.getFrame(arg_06) > 1) goto block_0151;
block_0111:
spawn class_0A0C_slot_32(pid, 10, 0x00000000); spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend; suspend;
goto block_00FC; }
spawn class_0A0C_slot_21(pid, 0x00E8, 0x00000000);
block_0151: suspend;
spawn class_0A0C_slot_21(pid, 0x00E8, 0x00000000); spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend; suspend;
spawn class_0A0C_slot_32(pid, 30, 0x00000000); spawn class_01F5_enterFastArea(arg_06);
suspend; return;
spawn class_01F5_enterFastArea(arg_06);
return;
} }

View file

@ -5,10 +5,8 @@ function basegun_gotHit() /* entry=270 class_id=0x04C8 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A1A_slot_49(vel, ref, arg_06);
spawn class_0A1A_slot_49(vel, ref, arg_06); return;
return;
} }

View file

@ -1,20 +1,15 @@
function basegun_equip() /* entry=270 class_id=0x04C8 slot=0x0A */ function basegun_equip() /* entry=270 class_id=0x04C8 slot=0x0A */
{ {
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (getTargetNPCNumMaybe() == 0) {
if (Item.pop() != 0) goto block_0290; spawn class_0A1A_slot_24(pid, arg_0A, getTargetNPCNumMaybe(), arg_06);
block_0265:
spawn class_0A1A_slot_24(pid, arg_0A, Item.pop(), arg_06);
suspend; suspend;
goto block_02B7; return;
}
block_0290: else {
spawn class_0A1A_slot_24(pid, arg_0A, global[0x003C], arg_06); spawn class_0A1A_slot_24(pid, arg_0A, global[0x003C], arg_06);
suspend; suspend;
}
block_02B7: return;
return;
} }

View file

@ -1,17 +1,12 @@
function basegun_unequip() /* entry=270 class_id=0x04C8 slot=0x0B */ function basegun_unequip() /* entry=270 class_id=0x04C8 slot=0x0B */
{ {
entry: set_info(0x0212, *(arg_06));
set_info(0x0212, *(arg_06)); process_exclude();
process_exclude(); if (!(Item.getStatus(arg_06) & 4)) {
if (Item.getStatus(arg_06) & 4) goto block_0160;
block_015A:
goto block_017B;
block_0160:
spawn class_0A1A_slot_27(arg_06);
block_017B:
return; return;
}
else {
spawn class_0A1A_slot_27(arg_06);
}
return;
} }

View file

@ -7,29 +7,24 @@ function basegun_calledFromAnim() /* entry=270 class_id=0x04C8 slot=0x0E */
b, /* [BP-06h] type=0x69 */ b, /* [BP-06h] type=0x69 */
item; /* [BP-08h] type=0x24 */ item; /* [BP-08h] type=0x24 */
entry: set_info(0x021A, *(arg_06));
set_info(0x021A, *(arg_06)); process_exclude();
process_exclude(); n = *(arg_06);
n = *(arg_06); dir = Actor.getDir(n);
dir = Intrinsic00FA(n); b = Actor.getLastAnimSet(n);
b = Item.push(n); if ((b == 13) || (b != 8)) {
if ((b != 13) || (b != 8)) goto block_03A3;
block_0325:
class_0A1A_slot_40(0, 5, dir, dir, arg_06); class_0A1A_slot_40(0, 5, dir, dir, arg_06);
class_0A1A_slot_3F(retval, dir, arg_06); class_0A1A_slot_3F(retval, dir, arg_06);
class_0A1A_slot_3E(retval, dir, arg_06); class_0A1A_slot_3E(retval, dir, arg_06);
class_0A1A_slot_43(0, 5, dir, dir, arg_06); class_0A1A_slot_43(0, 5, dir, dir, arg_06);
class_0A1A_slot_42(retval, dir, arg_06); class_0A1A_slot_42(retval, dir, arg_06);
class_0A1A_slot_41(retval, dir, arg_06); class_0A1A_slot_41(retval, dir, arg_06);
goto block_0412; return;
}
block_03A3: else {
set_info(0x00F0, 0); set_info(0x00F0, 0);
spawn class_0A1E_slot_28(pid, 1, 2, n); spawn class_0A1E_slot_28(pid, 1, 2, n);
suspend; suspend;
}
block_0412: return;
return;
} }

View file

@ -1,17 +1,12 @@
function basegun_enterFastArea() /* entry=270 class_id=0x04C8 slot=0x0F */ function basegun_enterFastArea() /* entry=270 class_id=0x04C8 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if (!(Item.getStatus(arg_06) & 4)) {
if (Item.getStatus(arg_06) & 4) goto block_0103;
block_00FD:
goto block_011E;
block_0103:
spawn class_0A1A_slot_27(arg_06);
block_011E:
return; return;
}
else {
spawn class_0A1A_slot_27(arg_06);
}
return;
} }

View file

@ -1,11 +1,9 @@
function basegun_leaveFastArea() /* entry=270 class_id=0x04C8 slot=0x10 */ function basegun_leaveFastArea() /* entry=270 class_id=0x04C8 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); /* bit_not */
/* bit_not */ class_0A0C_slot_33(1, *(arg_06));
class_0A0C_slot_33(1, *(arg_06)); class_0A0C_slot_33(0x020A, *(arg_06));
class_0A0C_slot_33(0x020A, *(arg_06)); return;
return;
} }

View file

@ -1,9 +1,7 @@
function bbetty_leaveFastArea() /* entry=371 class_id=0x0A01 slot=0x10 */ function bbetty_leaveFastArea() /* entry=371 class_id=0x0A01 slot=0x10 */
{ {
entry: set_info(0x0001, *(arg_06));
set_info(0x0001, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(1, *(arg_06));
class_0A0C_slot_33(1, *(arg_06)); return;
return;
} }

View file

@ -7,50 +7,27 @@ function bbetty_slot_20() /* entry=371 class_id=0x0A01 slot=0x20 */
counter2, /* [BP-06h] type=0x69 */ counter2, /* [BP-06h] type=0x69 */
total; /* [BP-08h] type=0x69 */ total; /* [BP-08h] type=0x69 */
entry: set_info(0x0205, *(arg_06));
set_info(0x0205, *(arg_06)); if (Item.getShape(arg_06) == 0x02C9) {
if (Intrinsic0016(arg_06) != 0x02C9) goto block_0232;
block_010F:
counter = 0; counter = 0;
while (counter > 4) {
block_0116: total = 0;
if (counter <= 4) goto block_0219; /* loopscr value_u8=0x24 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */
block_011E: while (!condition) {
total = 0; total = (1 + total);
/* loopscr value_u8=0x24 */ /* loopnext */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x6 */ }
counter2 = 1;
block_0142: while (counter2 > total) {
if condition goto block_015E; item = Item.getEtherealTop();
counter2 = (1 + counter2);
block_0145: }
total = (1 + total); spawn class_0A0C_slot_32(pid, 5, 0x00000000);
/* loopnext */ suspend;
goto block_0142; counter = (1 + counter);
}
block_015E: }
counter2 = 1; spawn class_0A01_slot_21(arg_06);
return;
block_019B:
if (counter2 <= total) goto block_01E6;
block_01A6:
item = Intrinsic0023();
counter2 = (1 + counter2);
goto block_019B;
block_01E6:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_0116;
block_0219:
block_0232:
spawn class_0A01_slot_21(arg_06);
return;
} }

View file

@ -17,12 +17,12 @@ function bbetty_slot_21() /* entry=371 class_id=0x0A01 slot=0x21 */
block_02BB: block_02BB:
suspend; suspend;
if Item.getCX(arg_06) goto block_0312; if Item.getQHi(arg_06) goto block_0312;
block_02D7: block_02D7:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
dir = Intrinsic0027(Intrinsic0013(Item.legal_create(8, 0, 8)), Item.legal_create(arg_06), Intrinsic0013(arg_06)); dir = getClosestDirectionInRange(Item.getX(Item.getY(8, 0, 8)), Item.getY(arg_06), Item.getX(arg_06));
goto block_0331; goto block_0331;
block_0312: block_0312:
@ -33,88 +33,58 @@ function bbetty_slot_21() /* entry=371 class_id=0x0A01 slot=0x21 */
dir = 0; dir = 0;
block_0331: block_0331:
if (dir != 0) goto block_0358; if (dir == 0) {
x = 0;
block_0339: y = -1;
x = 0; xx = -16;
y = -1; yy = -48;
xx = -16; }
yy = -48; else if (dir == 1) {
goto block_0469; x = 1;
y = -1;
block_0358: xx = 16;
if (dir != 1) goto block_037F; yy = -48;
}
block_0360: else if (dir == 2) {
x = 1; x = 1;
y = -1; y = 0;
xx = 16; xx = 16;
yy = -48; yy = -16;
goto block_0469; }
else if (dir == 3) {
block_037F: x = 1;
if (dir != 2) goto block_03A6; y = 1;
xx = 16;
block_0387: yy = 16;
x = 1; }
y = 0; else if (dir == 4) {
xx = 16; x = 0;
yy = -16; y = 1;
goto block_0469; xx = -16;
yy = 16;
block_03A6: }
if (dir != 3) goto block_03CD; else if (dir == 5) {
x = -1;
block_03AE: y = 1;
x = 1; xx = -48;
y = 1; yy = 16;
xx = 16; }
yy = 16; else if (dir == 6) {
goto block_0469; x = -1;
y = 0;
block_03CD: xx = -48;
if (dir != 4) goto block_03F4; yy = -16;
}
block_03D5: else if (dir == 7) {
x = 0; x = -1;
y = 1; y = -1;
xx = -16; xx = -48;
yy = 16; yy = -48;
goto block_0469; }
block_03F4:
if (dir != 5) goto block_041B;
block_03FC:
x = -1;
y = 1;
xx = -48;
yy = 16;
goto block_0469;
block_041B:
if (dir != 6) goto block_0442;
block_0423:
x = -1;
y = 0;
xx = -48;
yy = -16;
goto block_0469;
block_0442:
if (dir != 7) goto block_0469;
block_044A:
x = -1;
y = -1;
xx = -48;
yy = -48;
goto block_0469;
block_0469: block_0469:
class_0A0C_slot_20(8, 30, 15); class_0A0C_slot_20(8, 30, 15);
spawn class_0A0C_slot_32(pid, ((5 - Intrinsic0029()) * 20), 0x00000000); spawn class_0A0C_slot_32(pid, ((5 - Game.getDifficultyLevel()) * 20), 0x00000000);
suspend; suspend;
goto block_02BB; goto block_02BB;

View file

@ -5,45 +5,32 @@ function bbox_gotHit() /* entry=300 class_id=0x0525 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (!retval) {
if retval goto block_01F2; if (Item.getFrame(arg_06)) {
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
block_00FD: suspend;
if (!Item.getFrame(arg_06)) goto block_014E; return;
}
block_0110: else {
spawn class_0A1E_slot_28(pid, 0, 0, arg_06); spawn class_0A1E_slot_27(pid, 100, vel, ref, arg_06);
suspend; suspend;
goto block_01F2; /* dword_to_word */
if (process_result) {
block_014E: class_0A0C_slot_20(1);
spawn class_0A1E_slot_27(pid, 100, vel, ref, arg_06); if (!retval) {
suspend; }
/* dword_to_word */ return;
if (!process_result) goto block_01AE; }
else {
block_017E: spawn class_0A1E_slot_2A(pid, arg_06);
class_0A0C_slot_20(1); suspend;
if retval goto block_019E; spawn class_0A1E_slot_28(pid, 1, 1, arg_06);
suspend;
block_018E: }
goto block_01AB; }
}
block_019E: return;
block_01AB:
goto block_01F2;
block_01AE:
spawn class_0A1E_slot_2A(pid, arg_06);
suspend;
spawn class_0A1E_slot_28(pid, 1, 1, arg_06);
suspend;
block_01F2:
return;
} }

View file

@ -5,31 +5,20 @@ function bbtrip_hatch() /* entry=351 class_id=0x090B slot=0x07 */
item, /* [BP-02h] type=0x24 */ item, /* [BP-02h] type=0x24 */
bbetty; /* [BP-04h] type=0x24 */ bbetty; /* [BP-04h] type=0x24 */
entry: set_info(0x0210, *(arg_06));
set_info(0x0210, *(arg_06)); process_exclude();
process_exclude(); /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x25 */
/* loopscr value_u8=0x25 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ while (!condition) {
if (Item.getFrame(item)) {
block_0109: bbetty = item;
if condition goto block_0149; spawn class_0A01_slot_20(pid, bbetty);
suspend;
block_010C: }
if (!Item.getFrame(item)) goto block_0145;
block_011F:
bbetty = item;
spawn class_0A01_slot_20(pid, bbetty);
suspend;
block_0145:
/* loopnext */ /* loopnext */
goto block_0109; }
return;
block_0149:
return;
} }

View file

@ -1,26 +1,18 @@
function betty_equip() /* entry=123 class_id=0x021D slot=0x0A */ function betty_equip() /* entry=123 class_id=0x021D slot=0x0A */
{ {
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (!arg_0A) {
if arg_0A goto block_0139; if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
block_00F3: }
if (Item.getStatus(arg_06) & 0x1000) goto block_010C;
block_0106:
goto block_0158;
block_010C:
class_0A1E_slot_23(0x1000, arg_06); class_0A1E_slot_23(0x1000, arg_06);
spawn class_0A01_slot_20(arg_06); spawn class_0A01_slot_20(arg_06);
goto block_0158; return;
}
block_0139: else {
class_0A1E_slot_24(0x1000, arg_06); class_0A1E_slot_24(0x1000, arg_06);
class_0A0C_slot_33(1, *(arg_06)); class_0A0C_slot_33(1, *(arg_06));
}
block_0158: return;
return;
} }

View file

@ -6,20 +6,13 @@ function bettyup_gotHit() /* entry=151 class_id=0x02C9 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */ vel, /* [BP+0Ch] type=0x69 */
item; /* [BP-02h] type=0x24 */ item; /* [BP-02h] type=0x24 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A1E_slot_27(pid, 0x00C8, vel, ref, arg_06);
spawn class_0A1E_slot_27(pid, 0x00C8, vel, ref, arg_06); suspend;
suspend; /* dword_to_word */
/* dword_to_word */ if (process_result) {
if (!process_result) goto block_015A;
block_0154:
goto block_019F;
block_015A:
block_019F:
return; return;
}
return;
} }

View file

@ -1,27 +1,19 @@
function bettyup_equip() /* entry=151 class_id=0x02C9 slot=0x0A */ function bettyup_equip() /* entry=151 class_id=0x02C9 slot=0x0A */
{ {
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (!arg_0A) {
if arg_0A goto block_0230; if (!(Item.getStatus(arg_06) & 0x1000)) {
return;
block_01EA: }
if (Item.getStatus(arg_06) & 0x1000) goto block_0203;
block_01FD:
goto block_0261;
block_0203:
class_0A1E_slot_23(0x1000, arg_06); class_0A1E_slot_23(0x1000, arg_06);
spawn class_0A01_slot_20(arg_06); spawn class_0A01_slot_20(arg_06);
goto block_0261; return;
}
block_0230: else {
class_0A1E_slot_24(0x1000, arg_06); class_0A1E_slot_24(0x1000, arg_06);
class_0A0C_slot_33(0x0205, *(arg_06)); class_0A0C_slot_33(0x0205, *(arg_06));
class_0A0C_slot_33(0x00F0, *(arg_06)); class_0A0C_slot_33(0x00F0, *(arg_06));
}
block_0261: return;
return;
} }

View file

@ -1,9 +1,7 @@
function bettyup_enterFastArea() /* entry=151 class_id=0x02C9 slot=0x0F */ function bettyup_enterFastArea() /* entry=151 class_id=0x02C9 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A01_slot_20(arg_06);
spawn class_0A01_slot_20(arg_06); return;
return;
} }

View file

@ -7,35 +7,26 @@ function bigcan_gotHit() /* entry=170 class_id=0x0313 slot=0x06 */
fram, /* [BP-02h] type=0x69 */ fram, /* [BP-02h] type=0x69 */
lid; /* [BP-04h] type=0x24 */ lid; /* [BP-04h] type=0x24 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); fram = Item.getFrame(arg_06);
fram = Item.getFrame(arg_06); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (!retval) {
if retval goto block_01E8; if (fram == 2) {
class_0A0C_slot_20(2);
block_010B: class_0A0C_slot_20(4, 5, 4);
if (fram != 2) goto block_0173; class_0A0C_slot_20(retval, 4);
return;
block_0119: }
class_0A0C_slot_20(2); else if (fram == 1) {
class_0A0C_slot_20(4, 5, 4); spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
class_0A0C_slot_20(retval, 4); suspend;
goto block_01E8; return;
}
block_0173: else {
if (fram != 1) goto block_01B6; spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
block_0181: }
spawn class_0A1E_slot_28(pid, 0, 1, arg_06); }
suspend; return;
goto block_01E8;
block_01B6:
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
block_01E8:
return;
} }

View file

@ -6,24 +6,18 @@ function bigcomew_gotHit() /* entry=133 class_id=0x0258 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */ vel, /* [BP+0Ch] type=0x69 */
fram; /* [BP-02h] type=0x69 */ fram; /* [BP-02h] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); fram = Item.getFrame(arg_06);
fram = Item.getFrame(arg_06); if (fram <= 2) {
if (fram > 2) goto block_010D;
block_0107:
goto block_0151;
block_010D:
class_0A0C_slot_2C(vel, ref);
if retval goto block_0151;
block_011F:
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
suspend;
block_0151:
return; return;
}
else {
class_0A0C_slot_2C(vel, ref);
if (!retval) {
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
suspend;
}
}
return;
} }

View file

@ -1,8 +1,6 @@
function bigcomew_enterFastArea() /* entry=133 class_id=0x0258 slot=0x0F */ function bigcomew_enterFastArea() /* entry=133 class_id=0x0258 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); return;
return;
} }

View file

@ -6,24 +6,18 @@ function bigcomns_gotHit() /* entry=132 class_id=0x0257 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */ vel, /* [BP+0Ch] type=0x69 */
fram; /* [BP-02h] type=0x69 */ fram; /* [BP-02h] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); fram = Item.getFrame(arg_06);
fram = Item.getFrame(arg_06); if (fram <= 2) {
if (fram > 2) goto block_010D;
block_0107:
goto block_0151;
block_010D:
class_0A0C_slot_2C(vel, ref);
if retval goto block_0151;
block_011F:
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
suspend;
block_0151:
return; return;
}
else {
class_0A0C_slot_2C(vel, ref);
if (!retval) {
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
suspend;
}
}
return;
} }

View file

@ -1,8 +1,6 @@
function bigcomns_enterFastArea() /* entry=132 class_id=0x0257 slot=0x0F */ function bigcomns_enterFastArea() /* entry=132 class_id=0x0257 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); return;
return;
} }

View file

@ -7,44 +7,26 @@ function black16_gotHit() /* entry=3 class_id=0x000F slot=0x06 */
item, /* [BP-02h] type=0x24 */ item, /* [BP-02h] type=0x24 */
n; /* [BP-04h] type=0x24 */ n; /* [BP-04h] type=0x24 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (retval) {
if (!retval) goto block_01DB;
block_0101:
item = ref; item = ref;
if (!Item.isInNpc(*(arg_06), item)) goto block_0125; if (Item.isCompletelyOn(*(arg_06), item)) {
return;
block_011F: }
goto block_01DB; else if ((((Item.getShape(item) == 0x052C) || (Item.getShape(item) != 0x057A)) || (Item.getShape(item) != 0x057F)) || (Item.getShape(item) != 0x0580)) {
return;
block_0125: }
if ((((Intrinsic0016(item) != 0x052C) || (Intrinsic0016(item) != 0x057A)) || (Intrinsic0016(item) != 0x057F)) || (Intrinsic0016(item) != 0x0580)) goto block_017A; else if (ref <= 0x00FF) {
return;
block_0174: }
goto block_01DB; else if (ref == 1) {
return;
block_017A: }
if (ref > 0x00FF) goto block_0197; else {
n = ref;
block_0186: }
goto block_01DB; }
return;
block_0197:
if (ref != 1) goto block_01B3;
block_01A5:
if Item.getQHi() goto block_01B0;
block_01B0:
goto block_01DB;
block_01B3:
n = ref;
block_01DB:
return;
} }

View file

@ -7,44 +7,26 @@ function black8_gotHit() /* entry=1 class_id=0x0003 slot=0x06 */
item, /* [BP-02h] type=0x24 */ item, /* [BP-02h] type=0x24 */
n; /* [BP-04h] type=0x24 */ n; /* [BP-04h] type=0x24 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (retval) {
if (!retval) goto block_01DB;
block_0101:
item = ref; item = ref;
if (!Item.isInNpc(*(arg_06), item)) goto block_0125; if (Item.isCompletelyOn(*(arg_06), item)) {
return;
block_011F: }
goto block_01DB; else if ((((Item.getShape(item) == 0x052C) || (Item.getShape(item) != 0x057A)) || (Item.getShape(item) != 0x057F)) || (Item.getShape(item) != 0x0580)) {
return;
block_0125: }
if ((((Intrinsic0016(item) != 0x052C) || (Intrinsic0016(item) != 0x057A)) || (Intrinsic0016(item) != 0x057F)) || (Intrinsic0016(item) != 0x0580)) goto block_017A; else if (ref <= 0x00FF) {
return;
block_0174: }
goto block_01DB; else if (ref == 1) {
return;
block_017A: }
if (ref > 0x00FF) goto block_0197; else {
n = ref;
block_0186: }
goto block_01DB; }
return;
block_0197:
if (ref != 1) goto block_01B3;
block_01A5:
if Item.getQHi() goto block_01B0;
block_01B0:
goto block_01DB;
block_01B3:
n = ref;
block_01DB:
return;
} }

View file

@ -17,7 +17,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
entry: entry:
set_info(1, 0); set_info(1, 0);
item = ref; item = ref;
link = Item.pop(item); link = Item.getQLo(item);
count = 0; count = 0;
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */ /* loopscr value_u8=0x42 */
@ -27,7 +27,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
if condition goto block_0185; if condition goto block_0185;
block_0133: block_0133:
if ((Item.pop(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_0181; if ((Item.getQLo(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_0181;
block_0159: block_0159:
/* create_list element_size=0x2 count=0x1 */ /* create_list element_size=0x2 count=0x1 */
@ -56,7 +56,7 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
foreach_list item -> block_0428; foreach_list item -> block_0428;
block_01B5: block_01B5:
h = Item.getCX(item); h = Item.getQHi(item);
if (h & 8) goto block_01ED; if (h & 8) goto block_01ED;
block_01CE: block_01CE:
@ -77,85 +77,45 @@ function blaser_slot_20() /* entry=372 class_id=0x0A02 slot=0x20 */
goto block_0422; goto block_0422;
block_0217: block_0217:
if ((Intrinsic002C(item) != 1) && (Intrinsic0016(item) != 0x0476)) goto block_0422; if ((Item.inFastArea(item) == 1) && (Item.getShape(item) != 0x0476)) {
inFastArea = (1 + inFastArea);
block_023A: if (!(h & 1)) {
inFastArea = (1 + inFastArea); if (!(h & 2)) {
if (h & 1) goto block_0281; h = (h & 4);
}
block_024F: else {
if (h & 2) goto block_0267; h = ((h & 4) | 2);
}
block_025A: }
h = (h & 4); dir = -1;
goto block_0274; if (!(h & 2)) {
dir = 1;
block_0267: }
h = ((h & 4) | 2); x = Item.getX(item);
y = Item.getY(item);
block_0274: if (Item.getShape(item) == 0x02C4) {
wp = (x + (dir * 16));
block_0281: local_03 = y;
dir = -1; }
if (h & 2) goto block_029A; else {
wp = x;
block_0293: local_03 = (y + (dir * 16));
dir = 1; }
local_01 = Item.getZ(item);
block_029A: if (legalMoveToPoint(0, 0, wp, item) == 0) {
x = Intrinsic0013(item); h = Item.getQHi(item);
y = Item.legal_create(item); }
if (Intrinsic0016(item) != 0x02C4) goto block_02E6; else if (!(h & 4)) {
if (Item.getShape(item) == 0x02C4) {
block_02CF: if (Intrinsic02F(wp, 0x02C3, arg_06) == 1) {
wp = (x + (dir * 16)); /* bit_not */
local_03 = y; }
goto block_02FA; }
else if (Intrinsic02F(wp, 0x02C4, arg_06) == 1) {
block_02E6: /* bit_not */
wp = x; }
local_03 = (y + (dir * 16)); }
}
block_02FA:
local_01 = Item.getZ(item);
if (Item.pop(0, 0, wp, item) != 0) goto block_0341;
block_0320:
h = Item.getCX(item);
goto block_041F;
block_0341:
if (h & 4) goto block_041F;
block_034C:
if (Intrinsic0016(item) != 0x02C4) goto block_03C2;
block_0365:
if (Intrinsic002F(wp, 0x02C3, arg_06) != 1) goto block_03B4;
block_0387:
/* bit_not */
goto block_03BF;
block_03B4:
block_03BF:
goto block_041C;
block_03C2:
if (Intrinsic002F(wp, 0x02C4, arg_06) != 1) goto block_0411;
block_03E4:
/* bit_not */
goto block_041C;
block_0411:
block_041C:
goto block_041F;
block_041F:
goto block_0422;
block_0422: block_0422:
goto block_01B0; goto block_01B0;

View file

@ -8,34 +8,25 @@ function blaser_slot_21() /* entry=372 class_id=0x0A02 slot=0x21 */
f, /* [BP-04h] type=0x69 */ f, /* [BP-04h] type=0x69 */
h; /* [BP-06h] type=0x69 */ h; /* [BP-06h] type=0x69 */
entry: set_info(1, *(arg_06));
set_info(1, *(arg_06)); n = ref;
n = ref; if (!Actor.isNPC(n)) {
if Item.isNpc(n) goto block_0635;
block_052A:
f = Item.getFrame(arg_06); f = Item.getFrame(arg_06);
if (f != 1) goto block_0582; if (f == 1) {
h = Item.getQHi(arg_06);
block_0543: return;
h = Item.getCX(arg_06); }
goto block_0635; else if (f == 2) {
/* bit_not */
block_0582: h = Item.getQHi(arg_06);
if (f != 2) goto block_05EA; return;
}
block_058D: else {
/* bit_not */ spawn class_0A11_slot_2C(pid, *(arg_06), n);
h = Item.getCX(arg_06); suspend;
goto block_0635; spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_05EA: }
spawn class_0A11_slot_2C(pid, *(arg_06), n); }
suspend; return;
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_0635:
return;
} }

View file

@ -5,11 +5,9 @@ function blaser1_hit() /* entry=239 class_id=0x0443 slot=0x05 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020B, *(arg_06));
set_info(0x020B, *(arg_06)); process_exclude();
process_exclude(); spawn class_0443_slot_21(pid, ke, ref, arg_06);
spawn class_0443_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function blaser1_gotHit() /* entry=239 class_id=0x0443 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0443_slot_21(pid, ke, ref, arg_06);
spawn class_0443_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,23 +5,15 @@ function blaser1_equip() /* entry=239 class_id=0x0443 slot=0x0A */
var, /* [BP+0Ah] type=0x69 */ var, /* [BP+0Ah] type=0x69 */
h; /* [BP-02h] type=0x69 */ h; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (var == 1) {
if (var != 1) goto block_018C; h = Item.getQHi(arg_06);
block_016B:
h = Item.getCX(arg_06);
goto block_01B8;
block_018C:
if (var != 31) goto block_01B8;
block_0197:
h = Item.getCX(arg_06);
goto block_01B8;
block_01B8:
return; return;
}
else if (var == 31) {
h = Item.getQHi(arg_06);
return;
}
return;
} }

View file

@ -1,14 +1,9 @@
function blaser1_unequip() /* entry=239 class_id=0x0443 slot=0x0B */ function blaser1_unequip() /* entry=239 class_id=0x0443 slot=0x0B */
{ {
entry: set_info(0x0212, *(arg_06));
set_info(0x0212, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_012E;
block_010D:
spawn class_0443_slot_20(*(arg_06), arg_06); spawn class_0443_slot_20(*(arg_06), arg_06);
}
block_012E: return;
return;
} }

View file

@ -1,14 +1,9 @@
function blaser1_enterFastArea() /* entry=239 class_id=0x0443 slot=0x0F */ function blaser1_enterFastArea() /* entry=239 class_id=0x0443 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_021A;
block_0206:
spawn class_0443_slot_20(*(arg_06), arg_06); spawn class_0443_slot_20(*(arg_06), arg_06);
}
block_021A: return;
return;
} }

View file

@ -1,9 +1,7 @@
function blaser1_leaveFastArea() /* entry=239 class_id=0x0443 slot=0x10 */ function blaser1_leaveFastArea() /* entry=239 class_id=0x0443 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); /* bit_not */
/* bit_not */ return;
return;
} }

View file

@ -18,7 +18,7 @@ function blaser1_slot_20() /* entry=239 class_id=0x0443 slot=0x20 */
entry: entry:
set_info(1, 0); set_info(1, 0);
item = ref; item = ref;
link = Item.pop(item); link = Item.getQLo(item);
count = 0; count = 0;
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
@ -30,14 +30,14 @@ function blaser1_slot_20() /* entry=239 class_id=0x0443 slot=0x20 */
if condition goto block_03E6; if condition goto block_03E6;
block_0373: block_0373:
if ((Item.pop(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_03E2; if ((Item.getQLo(item) != link) && ((Item.getStatus(item) & 0x1000) != 0)) goto block_03E2;
block_0399: block_0399:
/* create_list element_size=0x2 count=0x1 */ /* create_list element_size=0x2 count=0x1 */
/* append_list */ /* append_list */
/* free_local_list bp_offset=0xF9 target=[BP-07h] */ /* free_local_list bp_offset=0xF9 target=[BP-07h] */
laserList = item; laserList = item;
h = Item.getCX(item); h = Item.getQHi(item);
count = (1 + count); count = (1 + count);
block_03E2: block_03E2:
@ -80,140 +80,82 @@ function blaser1_slot_20() /* entry=239 class_id=0x0443 slot=0x20 */
goto block_0769; goto block_0769;
block_046A: block_046A:
if ((Intrinsic002C(item) != 1) && (Intrinsic0016(item) != 0x0476)) goto block_0769; if ((Item.inFastArea(item) == 1) && (Item.getShape(item) != 0x0476)) {
inFastArea = (1 + inFastArea);
block_048D: h = Item.getQHi(item);
inFastArea = (1 + inFastArea); f = Item.getFrame(item);
h = Item.getCX(item); if (!(h & 4)) {
f = Item.getFrame(item); /* bit_not */
if (h & 4) goto block_051E; h = (h & 4);
if (f == 1) {
block_04BE: if (!(h & 2)) {
/* bit_not */ /* bit_not */
h = (h & 4); h = (h & 2);
if (f != 1) goto block_04F7; }
else {
block_04D4: h = (h | 2);
if (h & 2) goto block_04ED; }
}
block_04DF: f = ((f + 1) & 1);
/* bit_not */ }
h = (h & 2); local_01 = Item.getZ(item);
goto block_04F7; a = ((h & 2) + f);
if ((h & 1) == 0) {
block_04ED: if (a == 0) {
h = (h | 2); local_03 = (Item.getY(item) - 4);
wp = (Item.getX(item) + 4);
block_04F7: }
f = ((f + 1) & 1); else if (a == 1) {
local_03 = (Item.getY(item) + 4);
block_051E: wp = (Item.getX(item) + 4);
local_01 = Item.getZ(item); }
a = ((h & 2) + f); else if (a == 2) {
if ((h & 1) != 0) goto block_0601; local_03 = (Item.getY(item) + 4);
wp = (Item.getX(item) - 4);
block_054A: }
if (a != 0) goto block_0577; else if (a == 3) {
local_03 = (Item.getY(item) - 4);
block_0552: wp = (Item.getX(item) - 4);
local_03 = (Item.legal_create(item) - 4); }
wp = (Intrinsic0013(item) + 4); }
goto block_05FE; else if (a == 0) {
local_03 = (Item.getY(item) + 4);
block_0577: wp = (Item.getX(item) - 4);
if (a != 1) goto block_05A4; }
else if (a == 1) {
block_057F: local_03 = (Item.getY(item) - 4);
local_03 = (Item.legal_create(item) + 4); wp = (Item.getX(item) - 4);
wp = (Intrinsic0013(item) + 4); }
goto block_05FE; else if (a == 2) {
local_03 = (Item.getY(item) - 4);
block_05A4: wp = (Item.getX(item) + 4);
if (a != 2) goto block_05D1; }
else if (a == 3) {
block_05AC: local_03 = (Item.getY(item) + 4);
local_03 = (Item.legal_create(item) + 4); wp = (Item.getX(item) + 4);
wp = (Intrinsic0013(item) - 4); }
goto block_05FE; if (legalMoveToPoint(0, 0, wp, item) == 0) {
h = Item.getQHi(item);
block_05D1: if ((h & 8) == 0) {
if (a != 3) goto block_05FE; }
else {
block_05D9: /* bit_not */
local_03 = (Item.legal_create(item) - 4); h = (h & 8);
wp = (Intrinsic0013(item) - 4); if (!(h & 1)) {
goto block_05FE; /* bit_not */
h = (h & 1);
block_05FE: }
goto block_06B5; else {
h = (h | 1);
block_0601: }
if (a != 0) goto block_062E; }
}
block_0609: else {
local_03 = (Item.legal_create(item) + 4); h = Item.getQHi(item);
wp = (Intrinsic0013(item) - 4); /* bit_not */
goto block_06B5; h = (h & 8);
}
block_062E: }
if (a != 1) goto block_065B;
block_0636:
local_03 = (Item.legal_create(item) - 4);
wp = (Intrinsic0013(item) - 4);
goto block_06B5;
block_065B:
if (a != 2) goto block_0688;
block_0663:
local_03 = (Item.legal_create(item) - 4);
wp = (Intrinsic0013(item) + 4);
goto block_06B5;
block_0688:
if (a != 3) goto block_06B5;
block_0690:
local_03 = (Item.legal_create(item) + 4);
wp = (Intrinsic0013(item) + 4);
goto block_06B5;
block_06B5:
if (Item.pop(0, 0, wp, item) != 0) goto block_0740;
block_06CD:
h = Item.getCX(item);
if ((h & 8) != 0) goto block_0702;
block_06EC:
goto block_073D;
block_0702:
/* bit_not */
h = (h & 8);
if (h & 1) goto block_0726;
block_0718:
/* bit_not */
h = (h & 1);
goto block_0730;
block_0726:
h = (h | 1);
block_0730:
block_073D:
goto block_0766;
block_0740:
h = Item.getCX(item);
/* bit_not */
h = (h & 8);
block_0766:
goto block_0769;
block_0769: block_0769:
goto block_0411; goto block_0411;

View file

@ -6,18 +6,13 @@ function blaser1_slot_21() /* entry=239 class_id=0x0443 slot=0x21 */
ke, /* [BP+0Ch] type=0x69 */ ke, /* [BP+0Ch] type=0x69 */
n; /* [BP-02h] type=0x24 */ n; /* [BP-02h] type=0x24 */
entry: set_info(1, *(arg_06));
set_info(1, *(arg_06)); n = ref;
n = ref; if (!Actor.isNPC(n)) {
if Item.isNpc(n) goto block_08C0;
block_0875:
spawn class_0A11_slot_2C(pid, *(arg_06), n); spawn class_0A11_slot_2C(pid, *(arg_06), n);
suspend; suspend;
spawn class_0A0C_slot_32(pid, 2, 0x00000000); spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend; suspend;
}
block_08C0: return;
return;
} }

View file

@ -5,11 +5,9 @@ function blaserew_hit() /* entry=150 class_id=0x02C4 slot=0x05 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020B, *(arg_06));
set_info(0x020B, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A02_slot_21(pid, ke, ref, arg_06);
spawn class_0A02_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function blaserew_gotHit() /* entry=150 class_id=0x02C4 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A02_slot_21(pid, ke, ref, arg_06);
spawn class_0A02_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,23 +5,15 @@ function blaserew_equip() /* entry=150 class_id=0x02C4 slot=0x0A */
var, /* [BP+0Ah] type=0x69 */ var, /* [BP+0Ah] type=0x69 */
h; /* [BP-02h] type=0x69 */ h; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (var == 1) {
if (var != 1) goto block_0180; h = Item.getQHi(arg_06);
block_015F:
h = Item.getCX(arg_06);
goto block_01AC;
block_0180:
if (var != 31) goto block_01AC;
block_018B:
h = Item.getCX(arg_06);
goto block_01AC;
block_01AC:
return; return;
}
else if (var == 31) {
h = Item.getQHi(arg_06);
return;
}
return;
} }

View file

@ -1,14 +1,9 @@
function blaserew_unequip() /* entry=150 class_id=0x02C4 slot=0x0B */ function blaserew_unequip() /* entry=150 class_id=0x02C4 slot=0x0B */
{ {
entry: set_info(0x0212, *(arg_06));
set_info(0x0212, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_0122;
block_0101:
spawn class_0A02_slot_20(*(arg_06), arg_06); spawn class_0A02_slot_20(*(arg_06), arg_06);
}
block_0122: return;
return;
} }

View file

@ -1,14 +1,9 @@
function blaserew_enterFastArea() /* entry=150 class_id=0x02C4 slot=0x0F */ function blaserew_enterFastArea() /* entry=150 class_id=0x02C4 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_020E;
block_01FA:
spawn class_0A02_slot_20(*(arg_06), arg_06); spawn class_0A02_slot_20(*(arg_06), arg_06);
}
block_020E: return;
return;
} }

View file

@ -1,9 +1,7 @@
function blaserew_leaveFastArea() /* entry=150 class_id=0x02C4 slot=0x10 */ function blaserew_leaveFastArea() /* entry=150 class_id=0x02C4 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); /* bit_not */
/* bit_not */ return;
return;
} }

View file

@ -5,11 +5,9 @@ function blaserns_hit() /* entry=149 class_id=0x02C3 slot=0x05 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020B, *(arg_06));
set_info(0x020B, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A02_slot_21(pid, ke, ref, arg_06);
spawn class_0A02_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,11 +5,9 @@ function blaserns_gotHit() /* entry=149 class_id=0x02C3 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
ke; /* [BP+0Ch] type=0x69 */ ke; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); spawn class_0A02_slot_21(pid, ke, ref, arg_06);
spawn class_0A02_slot_21(pid, ke, ref, arg_06); suspend;
suspend; return;
return;
} }

View file

@ -5,23 +5,15 @@ function blaserns_equip() /* entry=149 class_id=0x02C3 slot=0x0A */
var, /* [BP+0Ah] type=0x69 */ var, /* [BP+0Ah] type=0x69 */
h; /* [BP-02h] type=0x69 */ h; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (var == 1) {
if (var != 1) goto block_0180; h = Item.getQHi(arg_06);
block_015F:
h = Item.getCX(arg_06);
goto block_01AC;
block_0180:
if (var != 31) goto block_01AC;
block_018B:
h = Item.getCX(arg_06);
goto block_01AC;
block_01AC:
return; return;
}
else if (var == 31) {
h = Item.getQHi(arg_06);
return;
}
return;
} }

View file

@ -1,14 +1,9 @@
function blaserns_unequip() /* entry=149 class_id=0x02C3 slot=0x0B */ function blaserns_unequip() /* entry=149 class_id=0x02C3 slot=0x0B */
{ {
entry: set_info(0x0212, *(arg_06));
set_info(0x0212, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_0122;
block_0101:
spawn class_0A02_slot_20(*(arg_06), arg_06); spawn class_0A02_slot_20(*(arg_06), arg_06);
}
block_0122: return;
return;
} }

View file

@ -1,14 +1,9 @@
function blaserns_enterFastArea() /* entry=149 class_id=0x02C3 slot=0x0F */ function blaserns_enterFastArea() /* entry=149 class_id=0x02C3 slot=0x0F */
{ {
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); process_exclude();
process_exclude(); if ((Item.getStatus(arg_06) & 0x1000) == 0) {
if ((Item.getStatus(arg_06) & 0x1000) != 0) goto block_020E;
block_01FA:
spawn class_0A02_slot_20(*(arg_06), arg_06); spawn class_0A02_slot_20(*(arg_06), arg_06);
}
block_020E: return;
return;
} }

View file

@ -1,9 +1,7 @@
function blaserns_leaveFastArea() /* entry=149 class_id=0x02C3 slot=0x10 */ function blaserns_leaveFastArea() /* entry=149 class_id=0x02C3 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); /* bit_not */
/* bit_not */ return;
return;
} }

View file

@ -18,11 +18,11 @@ function blastpac_use() /* entry=207 class_id=0x039B slot=0x01 */
Blastpac = *(arg_06); Blastpac = *(arg_06);
set_info(0x00F0, 0); set_info(0x00F0, 0);
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
lastAnim = Item.push(); lastAnim = Actor.getLastAnimSet();
block_011D: block_011D:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Intrinsic0033() goto block_0153; if Actor.isBusy() goto block_0153;
block_012D: block_012D:
spawn class_0A0C_slot_32(pid, 2, 0x00000000); spawn class_0A0C_slot_32(pid, 2, 0x00000000);
@ -50,7 +50,7 @@ function blastpac_use() /* entry=207 class_id=0x039B slot=0x01 */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
spawn class_0A11_slot_22(Item.getDirToItem(Intrinsic0013(pid, 1, Item.legal_create(Item.legal_create(target), Intrinsic0013(target))))); spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(target), Item.getX(target)))));
suspend; suspend;
counter = (1 + counter); counter = (1 + counter);
goto block_017B; goto block_017B;
@ -66,155 +66,77 @@ function blastpac_use() /* entry=207 class_id=0x039B slot=0x01 */
goto block_0171; goto block_0171;
block_0233: block_0233:
/* global_address global_id=0x3C */ if (Actor.getDir() == 0) {
if (Intrinsic00FA() != 0) goto block_0253; xOff = -1;
yOff = -3;
block_0245: }
xOff = -1; else if (Actor.getDir() == 1) {
yOff = -3; xOff = 0;
goto block_0415; yOff = -3;
}
block_0253: else if (Actor.getDir() == 2) {
/* global_address global_id=0x3C */ xOff = 1;
if (Intrinsic00FA() != 1) goto block_0271; yOff = -3;
}
block_0263: else if (Actor.getDir() == 3) {
xOff = 0; xOff = 2;
yOff = -3; yOff = -2;
goto block_0415; }
else if (Actor.getDir() == 4) {
block_0271: xOff = 2;
/* global_address global_id=0x3C */ yOff = -1;
if (Intrinsic00FA() != 2) goto block_028F; }
else if (Actor.getDir() == 5) {
block_0281: xOff = 2;
xOff = 1; yOff = 0;
yOff = -3; }
goto block_0415; else if (Actor.getDir() == 6) {
xOff = 2;
block_028F: yOff = 2;
/* global_address global_id=0x3C */ }
if (Intrinsic00FA() != 3) goto block_02AD; else if (Actor.getDir() == 7) {
xOff = 0;
block_029F: yOff = 2;
xOff = 2; }
yOff = -2; else if (Actor.getDir() == 8) {
goto block_0415; xOff = -1;
yOff = 2;
block_02AD: }
/* global_address global_id=0x3C */ else if (Actor.getDir() == 9) {
if (Intrinsic00FA() != 4) goto block_02CB; xOff = -2;
yOff = 2;
block_02BD: }
xOff = 2; else if (Actor.getDir() == 10) {
yOff = -1; xOff = -3;
goto block_0415; yOff = 2;
}
block_02CB: else if (Actor.getDir() == 11) {
/* global_address global_id=0x3C */ xOff = -3;
if (Intrinsic00FA() != 5) goto block_02E9; yOff = 1;
}
block_02DB: else if (Actor.getDir() == 12) {
xOff = 2; xOff = -3;
yOff = 0; yOff = 0;
goto block_0415; }
else if (Actor.getDir() == 13) {
block_02E9: xOff = -3;
/* global_address global_id=0x3C */ yOff = -1;
if (Intrinsic00FA() != 6) goto block_0307; }
else if (Actor.getDir() == 14) {
block_02F9: xOff = -3;
xOff = 2; yOff = -2;
yOff = 2; }
goto block_0415; else if (Actor.getDir() == 15) {
xOff = -3;
block_0307: yOff = -3;
/* global_address global_id=0x3C */ }
if (Intrinsic00FA() != 7) goto block_0325;
block_0317:
xOff = 0;
yOff = 2;
goto block_0415;
block_0325:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 8) goto block_0343;
block_0335:
xOff = -1;
yOff = 2;
goto block_0415;
block_0343:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 9) goto block_0361;
block_0353:
xOff = -2;
yOff = 2;
goto block_0415;
block_0361:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 10) goto block_037F;
block_0371:
xOff = -3;
yOff = 2;
goto block_0415;
block_037F:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 11) goto block_039D;
block_038F:
xOff = -3;
yOff = 1;
goto block_0415;
block_039D:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 12) goto block_03BB;
block_03AD:
xOff = -3;
yOff = 0;
goto block_0415;
block_03BB:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 13) goto block_03D9;
block_03CB:
xOff = -3;
yOff = -1;
goto block_0415;
block_03D9:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 14) goto block_03F7;
block_03E9:
xOff = -3;
yOff = -2;
goto block_0415;
block_03F7:
/* global_address global_id=0x3C */
if (Intrinsic00FA() != 15) goto block_0415;
block_0407:
xOff = -3;
yOff = -3;
goto block_0415;
block_0415: block_0415:
if target goto block_061D; if target goto block_061D;
block_041D: block_041D:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Intrinsic0035() goto block_0437; if Actor.getSomeFlagProbablyCrouch() goto block_0437;
block_042D: block_042D:
InCrouch = 1; InCrouch = 1;
@ -234,7 +156,7 @@ function blastpac_use() /* entry=207 class_id=0x039B slot=0x01 */
block_04C5: block_04C5:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Intrinsic0033() goto block_04FB; if Actor.isBusy() goto block_04FB;
block_04D5: block_04D5:
spawn class_0A0C_slot_32(pid, 2, 0x00000000); spawn class_0A0C_slot_32(pid, 2, 0x00000000);

View file

@ -13,28 +13,19 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
y, /* [BP-10h] type=0x69 */ y, /* [BP-10h] type=0x69 */
z; /* [BP-12h] type=0x69 */ z; /* [BP-12h] type=0x69 */
entry: spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn class_0A0C_slot_32(pid, 60, 0x00000000); suspend;
suspend; set_info(0x00F0, 0);
set_info(0x00F0, 0); counter = 1;
counter = 1; while (counter > 5) {
block_0736:
if (counter <= 5) goto block_077E;
block_073E:
spawn class_0A0C_slot_32(pid, 60, 0x00000000); spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend; suspend;
counter = (1 + counter); counter = (1 + counter);
goto block_0736; }
spawn class_0A1E_slot_28(pid, 1, 2, pac);
block_077E: suspend;
spawn class_0A1E_slot_28(pid, 1, 2, pac); /* global_address global_id=0x3C */
suspend; if (Actor.getMap() == 1) {
/* global_address global_id=0x3C */
if (Item.getType() != 1) goto block_0AD9;
block_07B3:
spawn class_0A0C_slot_32(pid, 10, 0x00000000); spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend; suspend;
/* pop_global global_id=0x20 size=0x1 */ /* pop_global global_id=0x20 size=0x1 */
@ -43,80 +34,47 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0800: spawn class_0A1E_slot_28(pid, 0, 2, item);
if condition goto block_084E; suspend;
therm = item;
block_0803: /* loopnext */
spawn class_0A1E_slot_28(pid, 0, 2, item); }
suspend;
therm = item;
/* loopnext */
goto block_0800;
block_084E:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_086C: spawn class_0A1E_slot_28(pid, 1, 0, item);
if condition goto block_08C5; suspend;
thermTop = item;
block_086F: spawn class_0A0C_slot_32(pid, 30, 0x00000000);
spawn class_0A1E_slot_28(pid, 1, 0, item); suspend;
suspend; /* loopnext */
thermTop = item; }
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
/* loopnext */
goto block_086C;
block_08C5:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Kernel.resetRef() goto block_08DD; if (!Actor.isDead()) {
return;
block_08D7: }
goto block_0FF9;
block_08DD:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_08F9: spawn class_0A0C_slot_32(UCMachine.rndRange(pid, 20, 10), 0x00000000);
if condition goto block_093E; suspend;
/* loopnext */
block_08FC: }
spawn class_0A0C_slot_32(Intrinsic00DA(pid, 20, 10), 0x00000000);
suspend;
/* loopnext */
goto block_08F9;
block_093E:
counter = 0; counter = 0;
while (counter > 2) {
block_0947: while (!AudioProcess.isSFXPlayingForObject(22, thermTop)) {
if (counter <= 2) goto block_09A3; spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_094F: }
counter = (1 + counter);
block_095C: }
if Item.touch(22, thermTop) goto block_0996;
block_096D:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_095C;
block_0996:
counter = (1 + counter);
goto block_0947;
block_09A3:
spawn class_0A0C_slot_32(pid, 30, 0x00000000); spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend; suspend;
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
@ -124,19 +82,13 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_09E5: spawn class_0A1E_slot_28(pid, 0, 0, item);
if condition goto block_0A4D; suspend;
spawn class_0A0C_slot_32(UCMachine.rndRange(pid, 10, 5), 0x00000000);
block_09E8: suspend;
spawn class_0A1E_slot_28(pid, 0, 0, item); /* loopnext */
suspend; }
spawn class_0A0C_slot_32(Intrinsic00DA(pid, 10, 5), 0x00000000);
suspend;
/* loopnext */
goto block_09E5;
block_0A4D:
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000); spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
suspend; suspend;
spawn class_0A0C_slot_26(pid, "1c", 0x00000000); spawn class_0A0C_slot_26(pid, "1c", 0x00000000);
@ -145,22 +97,12 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */ /* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0AC2: /* loopnext */
if condition goto block_0AD4; }
return;
block_0AC5: }
/* loopnext */ else if (Actor.getMap() == 7) {
goto block_0AC2;
block_0AD4:
goto block_0FF9;
block_0AD9:
/* global_address global_id=0x3C */
if (Item.getType() != 7) goto block_0DFD;
block_0AE9:
/* pop_global global_id=0x23 size=0x1 */ /* pop_global global_id=0x23 size=0x1 */
spawn class_0A0C_slot_32(1, pid, 10, 0x00000000); spawn class_0A0C_slot_32(1, pid, 10, 0x00000000);
suspend; suspend;
@ -169,94 +111,55 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0B36: radar = item;
if condition goto block_0B6E; /* loopnext */
}
block_0B39:
radar = item;
/* loopnext */
goto block_0B36;
block_0B6E:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0B8C: spawn class_0A0C_slot_32(pid, 30, 0x00000000);
if condition goto block_0C13; suspend;
x = Item.getX(item);
block_0B8F: y = Item.getY(item);
spawn class_0A0C_slot_32(pid, 30, 0x00000000); z = Item.getZ(item);
suspend; /* loopnext */
x = Intrinsic0013(item); }
y = Item.legal_create(item);
z = Item.getZ(item);
/* loopnext */
goto block_0B8C;
block_0C13:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */ /* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0C33: spawn class_0A0C_slot_32(pid, 30, 0x00000000);
if condition goto block_0C6F; suspend;
/* loopnext */
block_0C36: }
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
/* loopnext */
goto block_0C33;
block_0C6F:
spawn class_0A0C_slot_32(pid, 60, 0x00000000); spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend; suspend;
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Kernel.resetRef() goto block_0CAD; if (!Actor.isDead()) {
return;
block_0CA7: }
goto block_0FF9;
block_0CAD:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0CC9: spawn class_0A0C_slot_32(UCMachine.rndRange(pid, 20, 10), 0x00000000);
if condition goto block_0D0E; suspend;
/* loopnext */
block_0CCC: }
spawn class_0A0C_slot_32(Intrinsic00DA(pid, 20, 10), 0x00000000);
suspend;
/* loopnext */
goto block_0CC9;
block_0D0E:
counter = 0; counter = 0;
while (counter > 2) {
block_0D17: while (!AudioProcess.isSFXPlayingForObject(0x0096, radar)) {
if (counter <= 2) goto block_0D75; spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_0D1F: }
counter = (1 + counter);
block_0D2D: }
if Item.touch(0x0096, radar) goto block_0D68;
block_0D3F:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0D2D;
block_0D68:
counter = (1 + counter);
goto block_0D17;
block_0D75:
spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000); spawn class_0A0C_slot_32(pid, 0x00C8, 0x00000000);
suspend; suspend;
spawn class_0A0C_slot_26(pid, "4g", 0x00000000); spawn class_0A0C_slot_26(pid, "4g", 0x00000000);
@ -265,22 +168,12 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */ /* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0DE6: /* loopnext */
if condition goto block_0DF8; }
return;
block_0DE9: }
/* loopnext */ else if (Actor.getMap() == 29) {
goto block_0DE6;
block_0DF8:
goto block_0FF9;
block_0DFD:
/* global_address global_id=0x3C */
if (Item.getType() != 29) goto block_0FF9;
block_0E0D:
spawn class_0A0C_slot_32(pid, 10, 0x00000000); spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend; suspend;
/* pop_global global_id=0x2E size=0x1 */ /* pop_global global_id=0x2E size=0x1 */
@ -289,81 +182,51 @@ function blastpac_slot_20() /* entry=207 class_id=0x039B slot=0x20 */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0E5A: spawn class_0A1E_slot_28(pid, 0, 2, item);
if condition goto block_0EA1; suspend;
/* loopnext */
block_0E5D: }
spawn class_0A1E_slot_28(pid, 0, 2, item);
suspend;
/* loopnext */
goto block_0E5A;
block_0EA1:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */ /* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0EC1: /* loopnext */
if condition goto block_0ED5; }
block_0EC4:
/* loopnext */
goto block_0EC1;
block_0ED5:
spawn class_0A0C_slot_32(pid, 60, 0x00000000); spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend; suspend;
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
if Kernel.resetRef() goto block_0F13; if (!Actor.isDead()) {
return;
block_0F0D: }
goto block_0FF9; else {
/* loopscr value_u8=0x24 */
block_0F13: /* loopscr value_u8=0x3D */
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x40 */
/* loopscr value_u8=0x3D */ /* loopscr value_u8=0x25 */
/* loopscr value_u8=0x40 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loopscr value_u8=0x25 */ while (!condition) {
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ if (Item.getQLo(item) == 0) {
spawn class_0A0C_slot_32(UCMachine.rndRange(pid, 30, 20), 0x00000000);
block_0F31: suspend;
if condition goto block_0F8B; }
/* loopnext */
block_0F34: }
if (Item.pop(item) != 0) goto block_0F87; /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
block_0F49: /* loopscr value_u8=0x40 */
spawn class_0A0C_slot_32(Intrinsic00DA(pid, 30, 20), 0x00000000); /* loopscr value_u8=0x25 */
suspend; /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
block_0F87: spawn class_0A0C_slot_32(pid, 20, 0x00000000);
/* loopnext */ suspend;
goto block_0F31; /* loopnext */
}
block_0F8B: spawn class_0A0C_slot_22(0x00000000);
/* loopscr value_u8=0x24 */ return;
/* loopscr value_u8=0x3D */ }
/* loopscr value_u8=0x40 */ }
/* loopscr value_u8=0x25 */ return;
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_0FAB:
if condition goto block_0FE3;
block_0FAE:
spawn class_0A0C_slot_32(pid, 20, 0x00000000);
suspend;
/* loopnext */
goto block_0FAB;
block_0FE3:
spawn class_0A0C_slot_22(0x00000000);
goto block_0FF9;
block_0FF9:
return;
} }

View file

@ -5,20 +5,14 @@ function blood_gotHit() /* entry=257 class_id=0x04B8 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C(vel, ref); if (retval == 4) {
if (retval != 4) goto block_0166; if (((Item.getFrame(arg_06) == 9) || (Item.getFrame(arg_06) != 19)) || (Item.getFrame(arg_06) != 29)) {
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
block_0106: suspend;
if (((Item.getFrame(arg_06) != 9) || (Item.getFrame(arg_06) != 19)) || (Item.getFrame(arg_06) != 29)) goto block_0166; }
}
block_0135: return;
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
suspend;
block_0166:
return;
} }

View file

@ -13,134 +13,70 @@ function bouncbox_gotHit() /* entry=291 class_id=0x04EF slot=0x06 */
y1, /* [BP-0Eh] type=0x69 */ y1, /* [BP-0Eh] type=0x69 */
ammo; /* [BP-10h] type=0x69 */ ammo; /* [BP-10h] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); dir = Item.getQHi(arg_06);
dir = Item.getCX(arg_06); item = ref;
item = ref; if (ref == 0x4000) {
if (ref != 0x4000) goto block_02D1;
block_010F:
class_0A0C_slot_2C(vel, ref); class_0A0C_slot_2C(vel, ref);
class_0A0C_slot_2C((retval != 4), vel, ref); class_0A0C_slot_2C((retval != 4), vel, ref);
if (retval != 3) goto block_014B; if (retval == 3) {
return;
block_0145: }
goto block_0479; if ((dir > 15) && (dir >= 32)) {
dir = (dir + 2);
block_014B: if (dir <= 31) {
if ((dir > 15) && (dir < 32)) goto block_018B; dir = (dir - 16);
}
block_015F: }
dir = (dir + 2); if (!(Item.getStatus(arg_06) & 4)) {
if (dir > 31) goto block_017E; dir = 0x00FF;
}
block_0174: else {
dir = (dir - 16); class_0A0C_slot_2C(vel, ref);
ammo = retval;
block_017E: if (dir == 0x00FF) {
class_0A0C_slot_20(15);
block_018B: dir = retval;
if (Item.getStatus(arg_06) & 4) goto block_01A8; }
else if (dir == 0x00FE) {
block_019D: suspend;
dir = 0x00FF; return;
goto block_02CE; }
dir = (dir & 15);
block_01A8: if ((dir > 13) || (dir >= 3)) {
class_0A0C_slot_2C(vel, ref); y1 = (y1 - 32);
ammo = retval; }
if (dir != 0x00FF) goto block_01D7; else if ((dir > 1) && (dir >= 7)) {
x1 = (x1 + 32);
block_01C5: }
class_0A0C_slot_20(15); else if ((dir > 5) && (dir >= 11)) {
dir = retval; y1 = (y1 + 32);
goto block_0216; }
else if ((dir > 9) && (dir >= 15)) {
block_01D7: x1 = (x1 - 32);
if (dir != 0x00FE) goto block_0216; }
suspend;
block_01E3: }
suspend;
goto block_0479;
block_0213:
goto block_0216;
block_0216:
dir = (dir & 15);
if ((dir > 13) || (dir < 3)) goto block_0241;
block_0234:
y1 = (y1 - 32);
goto block_02A4;
block_0241:
if ((dir > 1) && (dir < 7)) goto block_0262;
block_0255:
x1 = (x1 + 32);
goto block_02A4;
block_0262:
if ((dir > 5) && (dir < 11)) goto block_0283;
block_0276:
y1 = (y1 + 32);
goto block_02A4;
block_0283:
if ((dir > 9) && (dir < 15)) goto block_02A4;
block_0297:
x1 = (x1 - 32);
goto block_02A4;
block_02A4:
suspend;
block_02CE:
goto block_0479;
block_02D1:
if (Intrinsic0016(item) != 0x02C3) goto block_03A5;
block_02E4:
qHi = Item.getCX(item);
qLo = Item.pop(item);
if Item.getQLo(0, 0x02C4, item2) goto block_03A2;
block_031F:
if qHi goto block_0373;
block_0334:
goto block_03A2;
block_0373:
block_03A2:
goto block_0479;
block_03A5:
if (Intrinsic0016(item) != 0x02C4) goto block_0479;
block_03B8:
qHi = Item.getCX(item);
qLo = Item.pop(item);
if Item.getQLo(0, 0x02C3, item2) goto block_0476;
block_03F3:
if qHi goto block_0447;
block_0408:
goto block_0476;
block_0447:
block_0476:
goto block_0479;
block_0479:
return; return;
}
else if (Item.getShape(item) == 0x02C3) {
qHi = Item.getQHi(item);
qLo = Item.getQLo(item);
if (!Item.create(0, 0x02C4, item2)) {
if (!qHi) {
}
}
return;
}
else if (Item.getShape(item) == 0x02C4) {
qHi = Item.getQHi(item);
qLo = Item.getQLo(item);
if (!Item.create(0, 0x02C3, item2)) {
if (!qHi) {
}
}
return;
}
return;
} }

View file

@ -1,8 +1,6 @@
function bouncbox_equip() /* entry=291 class_id=0x04EF slot=0x0A */ function bouncbox_equip() /* entry=291 class_id=0x04EF slot=0x0A */
{ {
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); return;
return;
} }

View file

@ -4,77 +4,42 @@ function box_ew_use() /* entry=15 class_id=0x0080 slot=0x01 */
referent, /* [BP+00h] type=0x69 */ referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */ counter; /* [BP-02h] type=0x69 */
entry: set_info(0x0207, *(arg_06));
set_info(0x0207, *(arg_06)); process_exclude();
process_exclude(); if (!Item.getFrame(arg_06)) {
if Item.getFrame(arg_06) goto block_0198; while (!AudioProcess.isSFXPlayingForObject(0x00A7, arg_06)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
block_00FA: suspend;
}
block_0108:
if Item.touch(0x00A7, arg_06) goto block_0143;
block_011A:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0108;
block_0143:
counter = 0; counter = 0;
while (counter > 5) {
block_014A: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (counter <= 5) goto block_0195; suspend;
counter = (1 + counter);
block_0152: }
spawn class_0A0C_slot_32(pid, 5, 0x00000000); }
suspend; else {
counter = (1 + counter); while (!AudioProcess.isSFXPlayingForObject(0x00A5, arg_06)) {
goto block_014A; spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_0195: }
goto block_0230;
block_0198:
block_01A6:
if Item.touch(0x00A5, arg_06) goto block_01E1;
block_01B8:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_01A6;
block_01E1:
counter = 0; counter = 0;
while (counter > 5) {
block_01E8: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (counter <= 5) goto block_0230; suspend;
counter = (1 + counter);
block_01F0: }
spawn class_0A0C_slot_32(pid, 5, 0x00000000); }
suspend; if (Item.getMapArray(arg_06) == 0) {
counter = (1 + counter); if (Item.getFrame(arg_06) == 0) {
goto block_01E8; spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
block_0230: }
if (Item.getMapNum(arg_06) != 0) goto block_02AB; else {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
block_0242: suspend;
if (Item.getFrame(arg_06) != 0) goto block_027E; }
block_0254:
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
goto block_02A5;
block_027E:
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
block_02A5:
goto block_02AB;
block_02AB:
return; return;
}
return;
} }

View file

@ -4,77 +4,42 @@ function box_ns_use() /* entry=16 class_id=0x0081 slot=0x01 */
referent, /* [BP+00h] type=0x69 */ referent, /* [BP+00h] type=0x69 */
counter; /* [BP-02h] type=0x69 */ counter; /* [BP-02h] type=0x69 */
entry: set_info(0x0207, *(arg_06));
set_info(0x0207, *(arg_06)); process_exclude();
process_exclude(); if (!Item.getFrame(arg_06)) {
if Item.getFrame(arg_06) goto block_0198; while (!AudioProcess.isSFXPlayingForObject(0x00A7, arg_06)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
block_00FA: suspend;
}
block_0108:
if Item.touch(0x00A7, arg_06) goto block_0143;
block_011A:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_0108;
block_0143:
counter = 0; counter = 0;
while (counter > 5) {
block_014A: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (counter <= 5) goto block_0195; suspend;
counter = (1 + counter);
block_0152: }
spawn class_0A0C_slot_32(pid, 5, 0x00000000); }
suspend; else {
counter = (1 + counter); while (!AudioProcess.isSFXPlayingForObject(0x00A5, arg_06)) {
goto block_014A; spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
block_0195: }
goto block_0230;
block_0198:
block_01A6:
if Item.touch(0x00A5, arg_06) goto block_01E1;
block_01B8:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_01A6;
block_01E1:
counter = 0; counter = 0;
while (counter > 5) {
block_01E8: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (counter <= 5) goto block_0230; suspend;
counter = (1 + counter);
block_01F0: }
spawn class_0A0C_slot_32(pid, 5, 0x00000000); }
suspend; if (Item.getMapArray(arg_06) == 0) {
counter = (1 + counter); if (Item.getFrame(arg_06) == 0) {
goto block_01E8; spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
block_0230: }
if (Item.getMapNum(arg_06) != 0) goto block_02AB; else {
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
block_0242: suspend;
if (Item.getFrame(arg_06) != 0) goto block_027E; }
block_0254:
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
goto block_02A5;
block_027E:
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
suspend;
block_02A5:
goto block_02AB;
block_02AB:
return; return;
}
return;
} }

View file

@ -5,43 +5,29 @@ function bridge_slot_20() /* entry=373 class_id=0x0A03 slot=0x20 */
var, /* [BP+0Ah] type=0x69 */ var, /* [BP+0Ah] type=0x69 */
q; /* [BP-02h] type=0x69 */ q; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); if (var == 1) {
if (var != 1) goto block_0195; q = Item.getQLo(arg_06);
block_0122:
q = Item.pop(arg_06);
spawn class_0A03_slot_22(pid, q, arg_06); spawn class_0A03_slot_22(pid, q, arg_06);
suspend; suspend;
/* dword_to_word */ /* dword_to_word */
if (process_result != 1) goto block_0192; if (process_result == 1) {
spawn class_0A03_slot_24(pid, q, arg_06);
block_015B: suspend;
spawn class_0A03_slot_24(pid, q, arg_06); spawn class_0A03_slot_26(0, q, arg_06);
suspend; }
spawn class_0A03_slot_26(0, q, arg_06); return;
}
block_0192: else if (var == 2) {
goto block_01FF; q = Item.getQLo(arg_06);
block_0195:
if (var != 2) goto block_01FF;
block_01A0:
q = Item.pop(arg_06);
spawn class_0A03_slot_23(pid, q, arg_06); spawn class_0A03_slot_23(pid, q, arg_06);
suspend; suspend;
/* dword_to_word */ /* dword_to_word */
if (process_result != 1) goto block_01FC; if (process_result == 1) {
spawn class_0A03_slot_25(pid, q, arg_06);
block_01D9: suspend;
spawn class_0A03_slot_25(pid, q, arg_06); }
suspend;
block_01FC:
goto block_01FF;
block_01FF:
return; return;
}
return;
} }

View file

@ -6,21 +6,15 @@ function bridge_slot_21() /* entry=373 class_id=0x0A03 slot=0x21 */
x, /* [BP-02h] type=0x69 */ x, /* [BP-02h] type=0x69 */
item2; /* [BP-04h] type=0x24 */ item2; /* [BP-04h] type=0x24 */
entry: x = Item.getShape(item);
x = Intrinsic0016(item); if ((x == 0x0413) || (x != 0x0290)) {
if ((x != 0x0413) || (x != 0x0290)) goto block_026E; if (newtype == 0x03A6) {
newtype = 0x0413;
block_024F: return;
if (newtype != 0x03A6) goto block_0266; }
else {
block_025B: newtype = 0x0290;
newtype = 0x0413; }
goto block_026E; }
return;
block_0266:
newtype = 0x0290;
block_026E:
return;
} }

View file

@ -6,37 +6,22 @@ function bridge_slot_22() /* entry=373 class_id=0x0A03 slot=0x22 */
item, /* [BP-02h] type=0x24 */ item, /* [BP-02h] type=0x24 */
x; /* [BP-04h] type=0x69 */ x; /* [BP-04h] type=0x69 */
entry: set_info(0x021B, *(arg_06));
set_info(0x021B, *(arg_06)); /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x42 */
/* loopscr value_u8=0x42 */ /* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */ while (!condition) {
if (Item.getFrame(item) == 0) {
block_02EA: x = Item.getQLo(item);
if condition goto block_0334; if (x == start) {
/* word_to_dword */
block_02ED: /* pop_result */
if (Item.getFrame(item) != 0) goto block_0330; return;
}
block_02FF: }
x = Item.pop(item);
if (x != start) goto block_0330;
block_0318:
/* word_to_dword */
/* pop_result */
goto block_0340;
block_0330:
/* loopnext */ /* loopnext */
goto block_02EA; }
/* word_to_dword */
block_0334: /* pop_result */
/* word_to_dword */ return;
/* pop_result */
goto block_0340;
block_0340:
return;
} }

View file

@ -18,11 +18,11 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if condition goto block_03F2; if condition goto block_03F2;
block_03AF: block_03AF:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_03EE; if (x != start) goto block_03EE;
block_03C8: block_03C8:
x = Item.getCX(item); x = Item.getQHi(item);
if (x != 0) goto block_03EE; if (x != 0) goto block_03EE;
block_03E1: block_03E1:
@ -48,11 +48,11 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if (Item.getFrame(item) != 1) goto block_0473; if (Item.getFrame(item) != 1) goto block_0473;
block_0434: block_0434:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_0473; if (x != start) goto block_0473;
block_044D: block_044D:
x = Item.getCX(item); x = Item.getQHi(item);
if (x != 0) goto block_0473; if (x != 0) goto block_0473;
block_0466: block_0466:
@ -77,7 +77,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if condition goto block_04DC; if condition goto block_04DC;
block_04A7: block_04A7:
x = Item.pop(item); x = Item.getQLo(item);
if (x != end) goto block_04D8; if (x != end) goto block_04D8;
block_04C0: block_04C0:
@ -101,7 +101,7 @@ function bridge_slot_23() /* entry=373 class_id=0x0A03 slot=0x23 */
if (Item.getFrame(arg_06) != 1) goto block_0544; if (Item.getFrame(arg_06) != 1) goto block_0544;
block_0513: block_0513:
x = Item.pop(item); x = Item.getQLo(item);
if (x != end) goto block_0544; if (x != end) goto block_0544;
block_052C: block_052C:

View file

@ -21,11 +21,11 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
if condition goto block_05FC; if condition goto block_05FC;
block_05CB: block_05CB:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_05F8; if (x != start) goto block_05F8;
block_05E4: block_05E4:
bridgemax = Item.getCX(item); bridgemax = Item.getQHi(item);
goto block_05FC; goto block_05FC;
block_05F8: block_05F8:
@ -60,7 +60,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
if condition goto block_0699; if condition goto block_0699;
block_065C: block_065C:
x = Item.pop(item); x = Item.getQLo(item);
if (x != y) goto block_0695; if (x != y) goto block_0695;
block_0675: block_0675:
@ -91,7 +91,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
foreach_list item -> block_0750; foreach_list item -> block_0750;
block_06DD: block_06DD:
if (Intrinsic002C(item) != 1) goto block_074A; if (Item.inFastArea(item) != 1) goto block_074A;
block_06EF: block_06EF:
class_0A03_slot_21(0x03A6, item); class_0A03_slot_21(0x03A6, item);
@ -107,7 +107,7 @@ function bridge_slot_24() /* entry=373 class_id=0x0A03 slot=0x24 */
foreach_list item -> block_07AB; foreach_list item -> block_07AB;
block_075E: block_075E:
if (Intrinsic002C(item) != 1) goto block_07A5; if (Item.inFastArea(item) != 1) goto block_07A5;
block_0770: block_0770:
class_0A03_slot_21(0x03A6, item); class_0A03_slot_21(0x03A6, item);

View file

@ -23,11 +23,11 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if condition goto block_0877; if condition goto block_0877;
block_0846: block_0846:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_0873; if (x != start) goto block_0873;
block_085F: block_085F:
bridgemax = Item.getCX(item); bridgemax = Item.getQHi(item);
goto block_0877; goto block_0877;
block_0873: block_0873:
@ -49,11 +49,11 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (Item.getFrame(arg_06) != 1) goto block_08E6; if (Item.getFrame(arg_06) != 1) goto block_08E6;
block_08B9: block_08B9:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_08E6; if (x != start) goto block_08E6;
block_08D2: block_08D2:
bridgemax = Item.getCX(item); bridgemax = Item.getQHi(item);
goto block_08EA; goto block_08EA;
block_08E6: block_08E6:
@ -89,7 +89,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if condition goto block_0991; if condition goto block_0991;
block_0954: block_0954:
x = Item.pop(item); x = Item.getQLo(item);
if (x != y) goto block_098D; if (x != y) goto block_098D;
block_096D: block_096D:
@ -119,7 +119,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if (Item.getFrame(arg_06) != 1) goto block_0A0C; if (Item.getFrame(arg_06) != 1) goto block_0A0C;
block_09D3: block_09D3:
x = Item.pop(item); x = Item.getQLo(item);
if (x != y) goto block_0A0C; if (x != y) goto block_0A0C;
block_09EC: block_09EC:
@ -150,7 +150,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
foreach_list item -> block_0B63; foreach_list item -> block_0B63;
block_0A54: block_0A54:
if (Intrinsic002C(item) != 1) goto block_0AB6; if (Item.inFastArea(item) != 1) goto block_0AB6;
block_0A66: block_0A66:
class_0A03_slot_21(0x0336, item); class_0A03_slot_21(0x0336, item);
@ -165,7 +165,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if condition goto block_0B5B; if condition goto block_0B5B;
block_0AC7: block_0AC7:
if ((Intrinsic003C(item2) != 6) && (Item.isNpc(item2) != 0)) goto block_0B4C; if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0B4C;
block_0AE9: block_0AE9:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */
@ -201,7 +201,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
foreach_list item -> block_0C5A; foreach_list item -> block_0C5A;
block_0B71: block_0B71:
if (Intrinsic002C(item) != 1) goto block_0BAD; if (Item.inFastArea(item) != 1) goto block_0BAD;
block_0B83: block_0B83:
class_0A03_slot_21(0x0336, item); class_0A03_slot_21(0x0336, item);
@ -214,7 +214,7 @@ function bridge_slot_25() /* entry=373 class_id=0x0A03 slot=0x25 */
if condition goto block_0C52; if condition goto block_0C52;
block_0BBE: block_0BBE:
if ((Intrinsic003C(item2) != 6) && (Item.isNpc(item2) != 0)) goto block_0C43; if ((Item.getItemFamily(item2) != 6) && (Actor.isNPC(item2) != 0)) goto block_0C43;
block_0BE0: block_0BE0:
/* loopscr value_u8=0x24 */ /* loopscr value_u8=0x24 */

View file

@ -34,11 +34,11 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
if condition goto block_0D53; if condition goto block_0D53;
block_0D22: block_0D22:
x = Item.pop(item); x = Item.getQLo(item);
if (x != start) goto block_0D4F; if (x != start) goto block_0D4F;
block_0D3B: block_0D3B:
bridgemax = Item.getCX(item); bridgemax = Item.getQHi(item);
goto block_0D53; goto block_0D53;
block_0D4F: block_0D4F:
@ -74,14 +74,14 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
if condition goto block_0E74; if condition goto block_0E74;
block_0DBA: block_0DBA:
x = Item.pop(item); x = Item.getQLo(item);
if (x != y) goto block_0E70; if (x != y) goto block_0E70;
block_0DD3: block_0DD3:
if (x != (start + 1)) goto block_0E50; if (x != (start + 1)) goto block_0E50;
block_0DE1: block_0DE1:
a = Item.getCX(item); a = Item.getQHi(item);
if (a < 0) goto block_0E05; if (a < 0) goto block_0E05;
block_0DFA: block_0DFA:
@ -147,7 +147,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
foreach_list item -> block_0F32; foreach_list item -> block_0F32;
block_0F10: block_0F10:
if (Intrinsic002C(item) != 0) goto block_0F2C; if (Item.inFastArea(item) != 0) goto block_0F2C;
block_0F22: block_0F22:
x = (1 + x); x = (1 + x);
@ -185,52 +185,30 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
foreach_list item -> block_10E1; foreach_list item -> block_10E1;
block_0FB8: block_0FB8:
x = Item.getFrame(item); if (x == 1) {
if (x != 1) goto block_101F; /* loopscr value_u8=0x24 */
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
block_0FD1: while (!condition) {
/* loopscr value_u8=0x24 */ n = item2;
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */ class_0A0C_slot_20(pid, 8);
spawn class_0A11_slot_2D(retval, item, n);
block_0FDF: suspend;
if condition goto block_101A; /* loopnext */
}
block_0FE2: }
n = item2; else if (x == 2) {
class_0A0C_slot_20(pid, 8); class_0A03_slot_21(0x0336, item);
spawn class_0A11_slot_2D(retval, item, n); /* loopscr value_u8=0x24 */
suspend; /* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
/* loopnext */ while (!condition) {
goto block_0FDF; /* loopnext */
}
block_101A: spawn class_0A0C_slot_32(pid, delay, 0x00000000);
goto block_10DB; suspend;
if (Item.getFrame(item) == 1) {
block_101F: class_0A03_slot_21(0x03A6, item);
if (x != 2) goto block_10DB; }
}
block_102A:
class_0A03_slot_21(0x0336, item);
/* loopscr value_u8=0x24 */
/* loop current_var=0xE3 string_bytes=0x1 loop_type=0x6 */
block_1062:
if condition goto block_1074;
block_1065:
/* loopnext */
goto block_1062;
block_1074:
spawn class_0A0C_slot_32(pid, delay, 0x00000000);
suspend;
if (Item.getFrame(item) != 1) goto block_10D8;
block_10AE:
class_0A03_slot_21(0x03A6, item);
block_10D8:
goto block_10DB;
block_10DB: block_10DB:
goto block_0FB3; goto block_0FB3;
@ -246,7 +224,7 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
foreach_list item -> block_113D; foreach_list item -> block_113D;
block_1118: block_1118:
if (Intrinsic002C(item) != 1) goto block_1137; if (Item.inFastArea(item) != 1) goto block_1137;
block_112A: block_112A:
@ -262,13 +240,13 @@ function bridge_slot_26() /* entry=373 class_id=0x0A03 slot=0x26 */
foreach_list item -> block_12F3; foreach_list item -> block_12F3;
block_1153: block_1153:
if (Intrinsic002C(item) != 0) goto block_116B; if (Item.inFastArea(item) != 0) goto block_116B;
block_1165: block_1165:
goto block_12F6; goto block_12F6;
block_116B: block_116B:
x = Intrinsic0016(item); x = Item.getShape(item);
if ((x != 0x0336) || (x != 0x0290)) goto block_1192; if ((x != 0x0336) || (x != 0x0290)) goto block_1192;
block_118C: block_118C:

View file

@ -6,34 +6,18 @@ function brokencw_gotHit() /* entry=43 class_id=0x00D1 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */ vel, /* [BP+0Ch] type=0x69 */
item; /* [BP-02h] type=0x24 */ item; /* [BP-02h] type=0x24 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); /* loopscr value_u8=0x24 */
/* loopscr value_u8=0x24 */ /* loop current_var=0xFE string_bytes=0x1 loop_type=0x2 */
/* loop current_var=0xFE string_bytes=0x1 loop_type=0x2 */ while (!condition) {
if (Item.getShape(item) == 0x00D1) {
block_0100: }
if condition goto block_0188; else if ((Item.getItemFamily(item) == 6) && (Actor.isNPC(item) != 0)) {
spawn class_0A1E_slot_28(pid, 1, 0, item);
block_0103: suspend;
if (Intrinsic0016(item) != 0x00D1) goto block_012C; }
block_011C:
goto block_0184;
block_012C:
if ((Intrinsic003C(item) != 6) && (Item.isNpc(item) != 0)) goto block_0184;
block_0151:
spawn class_0A1E_slot_28(pid, 1, 0, item);
suspend;
goto block_0184;
block_0184:
/* loopnext */ /* loopnext */
goto block_0100; }
return;
block_0188:
return;
} }

View file

@ -5,99 +5,58 @@ function bro_boot_equip() /* entry=172 class_id=0x0316 slot=0x0A */
event, /* [BP+0Ah] type=0x69 */ event, /* [BP+0Ah] type=0x69 */
counter; /* [BP-02h] type=0x69 */ counter; /* [BP-02h] type=0x69 */
entry: set_info(0x0211, *(arg_06));
set_info(0x0211, *(arg_06)); process_exclude();
process_exclude(); if (Item.getFrame(arg_06) == 10) {
if (Item.getFrame(arg_06) != 10) goto block_0106; return;
}
block_0100: else {
goto block_0380;
block_0106:
class_0A0C_slot_33(0x021B, *(arg_06)); class_0A0C_slot_33(0x021B, *(arg_06));
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
while (Item.getFrame(arg_06) == 9) {
block_0140: spawn class_0A0C_slot_32(pid, 5, 0x00000000);
if (Item.getFrame(arg_06) != 9) goto block_0192; suspend;
}
block_0152:
spawn class_0A0C_slot_32(pid, 5, 0x00000000); spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend; suspend;
goto block_0140; if (global[0x001F] == 2) {
/* str_to_ptr */
block_0192: /* free_stack_string value_u8=0x4 target=[SP+04h] */
spawn class_0A0C_slot_32(pid, 5, 0x00000000); suspend;
suspend; }
if (global[0x001F] != 2) goto block_01F2; else if (global[0x001F] == 3) {
/* str_to_ptr */
block_01C2: /* free_stack_string value_u8=0x4 target=[SP+04h] */
/* str_to_ptr */ suspend;
/* free_stack_string value_u8=0x4 target=[SP+04h] */ }
suspend; else if (global[0x001F] == 4) {
goto block_0315; /* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
block_01F2: suspend;
if (global[0x001F] != 3) goto block_022C; }
else if (global[0x001F] == 5) {
block_01FC: /* str_to_ptr */
/* str_to_ptr */ /* free_stack_string value_u8=0x4 target=[SP+04h] */
/* free_stack_string value_u8=0x4 target=[SP+04h] */ suspend;
suspend; }
goto block_0315; else if (global[0x001F] == 9) {
/* str_to_ptr */
block_022C: /* free_stack_string value_u8=0x4 target=[SP+04h] */
if (global[0x001F] != 4) goto block_0266; suspend;
}
block_0236: else if (global[0x001F] == 10) {
/* str_to_ptr */ /* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */ /* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend; suspend;
goto block_0315; }
block_0266:
if (global[0x001F] != 5) goto block_02A0;
block_0270:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_02A0:
if (global[0x001F] != 9) goto block_02DA;
block_02AA:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_02DA:
if (global[0x001F] != 10) goto block_0315;
block_02E4:
/* str_to_ptr */
/* free_stack_string value_u8=0x4 target=[SP+04h] */
suspend;
goto block_0315;
block_0315:
counter = 0; counter = 0;
while (counter > 9) {
block_031C: spawn class_0A0C_slot_32(pid, 10, 0x00000000);
if (counter <= 9) goto block_0367; suspend;
counter = (1 + counter);
block_0324: }
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
counter = (1 + counter);
goto block_031C;
block_0367:
spawn class_0316_enterFastArea(arg_06); spawn class_0316_enterFastArea(arg_06);
}
block_0380: return;
return;
} }

View file

@ -21,7 +21,7 @@ function bro_boot_enterFastArea() /* entry=172 class_id=0x0316 slot=0x0F */
if condition goto block_0442; if condition goto block_0442;
block_0413: block_0413:
if (Item.pop(item) != Item.pop(arg_06)) goto block_043E; if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_043E;
block_042F: block_042F:
class_0A1E_slot_24(0x1000, item); class_0A1E_slot_24(0x1000, item);
@ -44,7 +44,7 @@ function bro_boot_enterFastArea() /* entry=172 class_id=0x0316 slot=0x0F */
if condition goto block_04A4; if condition goto block_04A4;
block_0475: block_0475:
if (Item.pop(item) != Item.pop(arg_06)) goto block_04A0; if (Item.getQLo(item) != Item.getQLo(arg_06)) goto block_04A0;
block_0491: block_0491:
class_0A1E_slot_23(0x1000, item); class_0A1E_slot_23(0x1000, item);

View file

@ -1,9 +1,7 @@
function bro_boot_leaveFastArea() /* entry=172 class_id=0x0316 slot=0x10 */ function bro_boot_leaveFastArea() /* entry=172 class_id=0x0316 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(0x021B, *(arg_06));
class_0A0C_slot_33(0x021B, *(arg_06)); return;
return;
} }

View file

@ -13,7 +13,7 @@ function bubble_enterFastArea() /* entry=109 class_id=0x01D6 slot=0x0F */
class_0A0C_slot_20(pid, 120); class_0A0C_slot_20(pid, 120);
spawn class_0A0C_slot_32((retval + 0x00DC), 0x00000000); spawn class_0A0C_slot_32((retval + 0x00DC), 0x00000000);
suspend; suspend;
if Intrinsic0007(arg_06) goto block_024B; if Item.isOnScreen(arg_06) goto block_024B;
block_0139: block_0139:
counter = 0; counter = 0;

View file

@ -1,9 +1,7 @@
function bubble_leaveFastArea() /* entry=109 class_id=0x01D6 slot=0x10 */ function bubble_leaveFastArea() /* entry=109 class_id=0x01D6 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(0x021B, *(arg_06));
class_0A0C_slot_33(0x021B, *(arg_06)); return;
return;
} }

View file

@ -1,54 +1,25 @@
function camera_hatch() /* entry=345 class_id=0x0905 slot=0x07 */ function camera_hatch() /* entry=345 class_id=0x0905 slot=0x07 */
{ {
entry: set_info(0x0210, *(arg_06));
set_info(0x0210, *(arg_06)); process_exclude();
process_exclude(); if ((Egg.getEggId(arg_06) & 127) == 1) {
if ((Intrinsic003F(arg_06) & 127) != 1) goto block_012F;
block_00FD:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_0269; }
else if ((Egg.getEggId(arg_06) & 127) == 2) {
block_012F:
if ((Intrinsic003F(arg_06) & 127) != 2) goto block_016F;
block_0141:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_0269; }
else if ((Egg.getEggId(arg_06) & 127) == 3) {
block_016F:
if ((Intrinsic003F(arg_06) & 127) != 3) goto block_01B3;
block_0181:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_0269; }
else if ((Egg.getEggId(arg_06) & 127) == 4) {
block_01B3:
if ((Intrinsic003F(arg_06) & 127) != 4) goto block_01F3;
block_01C5:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_0269; }
else if ((Egg.getEggId(arg_06) & 127) == 5) {
block_01F3:
if ((Intrinsic003F(arg_06) & 127) != 5) goto block_0242;
block_0205:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_028B;
block_023F:
goto block_0269;
block_0242:
/* global_address global_id=0x3C */
block_0269:
if (!(Intrinsic003F(arg_06) & 0x0080)) goto block_028B;
block_0280:
block_028B:
return; return;
}
else {
/* global_address global_id=0x3C */
}
return;
} }

View file

@ -1,17 +1,12 @@
function camera_unhatch() /* entry=345 class_id=0x0905 slot=0x15 */ function camera_unhatch() /* entry=345 class_id=0x0905 slot=0x15 */
{ {
entry: set_info(0x0239, *(arg_06));
set_info(0x0239, *(arg_06)); process_exclude();
process_exclude(); if ((Egg.getEggId(arg_06) & 127) == 5) {
if ((Intrinsic003F(arg_06) & 127) != 5) goto block_0300;
block_02C7:
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
/* global_address global_id=0x3C */ /* global_address global_id=0x3C */
goto block_0300;
block_0300:
return; return;
}
return;
} }

View file

@ -5,20 +5,15 @@ function cameraco_gotHit() /* entry=88 class_id=0x01B6 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2B(vel, ref);
class_0A0C_slot_2B(vel, ref); if (retval && (Item.getFrame(arg_06) == 5)) {
if (retval && (Item.getFrame(arg_06) != 5)) goto block_0624;
block_05BA:
class_0A0C_slot_33(0x021B, *(arg_06)); class_0A0C_slot_33(0x021B, *(arg_06));
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06); spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend; suspend;
spawn class_0A1E_slot_28(pid, 0, 0, arg_06); spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend; suspend;
}
block_0624: return;
return;
} }

View file

@ -16,15 +16,15 @@ function cameraco_enterFastArea() /* entry=88 class_id=0x01B6 slot=0x0F */
entry: entry:
set_info(0x021B, *(arg_06)); set_info(0x021B, *(arg_06));
process_exclude(); process_exclude();
delay = ((5 - Intrinsic0029()) * 15); delay = ((5 - Game.getDifficultyLevel()) * 15);
iSeeYou = (5 - (Intrinsic0029() * 15)); iSeeYou = (5 - (Game.getDifficultyLevel() * 15));
if (Item.getFrame(arg_06) != 5) goto block_0126; if (Item.getFrame(arg_06) != 5) goto block_0126;
block_0120: block_0120:
goto block_04AD; goto block_04AD;
block_0126: block_0126:
if (!Intrinsic0007(arg_06)) goto block_0162; if (!Item.isOnScreen(arg_06)) goto block_0162;
block_0139: block_0139:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
@ -40,7 +40,7 @@ function cameraco_enterFastArea() /* entry=88 class_id=0x01B6 slot=0x0F */
range = 0; range = 0;
block_0184: block_0184:
if (!Intrinsic0007(arg_06)) goto block_01C0; if (!Item.isOnScreen(arg_06)) goto block_01C0;
block_0197: block_0197:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
@ -50,22 +50,22 @@ function cameraco_enterFastArea() /* entry=88 class_id=0x01B6 slot=0x0F */
block_01C0: block_01C0:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
suspend; suspend;
if (Item.pop() != 0) goto block_0204; if (getTargetNPCNumMaybe() != 0) goto block_0204;
block_01F7: block_01F7:
target = Item.pop(); target = getTargetNPCNumMaybe();
goto block_020B; goto block_020B;
block_0204: block_0204:
target = 1; target = 1;
block_020B: block_020B:
dir = Intrinsic0027(15, 0, 16, Item.legal_create(target), Intrinsic0013(target), Item.legal_create(arg_06), Intrinsic0013(arg_06)); dir = getClosestDirectionInRange(15, 0, 16, Item.getY(target), Item.getX(target), Item.getY(arg_06), Item.getX(arg_06));
fram = Item.getFrame(arg_06); fram = Item.getFrame(arg_06);
if (((dir / 2) - 1) != fram) goto block_03B7; if (((dir / 2) - 1) != fram) goto block_03B7;
block_0260: block_0260:
range = Item.getQHi(target, arg_06); range = Item.getRangeIfVisible(target, arg_06);
if range goto block_0313; if range goto block_0313;
block_0278: block_0278:

View file

@ -1,10 +1,8 @@
function cameraco_leaveFastArea() /* entry=88 class_id=0x01B6 slot=0x10 */ function cameraco_leaveFastArea() /* entry=88 class_id=0x01B6 slot=0x10 */
{ {
entry: set_info(0x021C, *(arg_06));
set_info(0x021C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_33(0x021B, *(arg_06));
class_0A0C_slot_33(0x021B, *(arg_06)); /* bit_not */
/* bit_not */ return;
return;
} }

View file

@ -5,20 +5,15 @@ function cameraew_gotHit() /* entry=110 class_id=0x01D7 slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */ ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */ vel; /* [BP+0Ch] type=0x69 */
entry: set_info(0x020C, *(arg_06));
set_info(0x020C, *(arg_06)); process_exclude();
process_exclude(); class_0A0C_slot_2B(vel, ref);
class_0A0C_slot_2B(vel, ref); if (retval && (Item.getFrame(arg_06) == 9)) {
if (retval && (Item.getFrame(arg_06) != 9)) goto block_061E;
block_05B4:
class_0A0C_slot_33(0x021B, *(arg_06)); class_0A0C_slot_33(0x021B, *(arg_06));
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06); spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend; suspend;
spawn class_0A1E_slot_28(pid, 0, 0, arg_06); spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend; suspend;
}
block_061E: return;
return;
} }

View file

@ -16,15 +16,15 @@ function cameraew_enterFastArea() /* entry=110 class_id=0x01D7 slot=0x0F */
entry: entry:
set_info(0x021B, *(arg_06)); set_info(0x021B, *(arg_06));
process_exclude(); process_exclude();
delay = ((5 - Intrinsic0029()) * 5); delay = ((5 - Game.getDifficultyLevel()) * 5);
iSeeYou = (5 - (Intrinsic0029() * 5)); iSeeYou = (5 - (Game.getDifficultyLevel() * 5));
if (Item.getFrame(arg_06) != 9) goto block_0126; if (Item.getFrame(arg_06) != 9) goto block_0126;
block_0120: block_0120:
goto block_04A7; goto block_04A7;
block_0126: block_0126:
if (!Intrinsic0007(arg_06)) goto block_0162; if (!Item.isOnScreen(arg_06)) goto block_0162;
block_0139: block_0139:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
@ -40,7 +40,7 @@ function cameraew_enterFastArea() /* entry=110 class_id=0x01D7 slot=0x0F */
range = 0; range = 0;
block_0184: block_0184:
if (!Intrinsic0007(arg_06)) goto block_01C0; if (!Item.isOnScreen(arg_06)) goto block_01C0;
block_0197: block_0197:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
@ -50,22 +50,22 @@ function cameraew_enterFastArea() /* entry=110 class_id=0x01D7 slot=0x0F */
block_01C0: block_01C0:
spawn class_0A0C_slot_32(pid, delay, 0x00000000); spawn class_0A0C_slot_32(pid, delay, 0x00000000);
suspend; suspend;
if (Item.pop() != 0) goto block_0204; if (getTargetNPCNumMaybe() != 0) goto block_0204;
block_01F7: block_01F7:
target = Item.pop(); target = getTargetNPCNumMaybe();
goto block_020B; goto block_020B;
block_0204: block_0204:
target = 1; target = 1;
block_020B: block_020B:
dir = Intrinsic0027(15, 0, 16, Item.legal_create(target), Intrinsic0013(target), Item.legal_create(arg_06), Intrinsic0013(arg_06)); dir = getClosestDirectionInRange(15, 0, 16, Item.getY(target), Item.getX(target), Item.getY(arg_06), Item.getX(arg_06));
fram = Item.getFrame(arg_06); fram = Item.getFrame(arg_06);
if ((8 - dir) != fram) goto block_03B4; if ((8 - dir) != fram) goto block_03B4;
block_025D: block_025D:
range = Item.getQHi(target, arg_06); range = Item.getRangeIfVisible(target, arg_06);
if range goto block_0310; if range goto block_0310;
block_0275: block_0275:

Some files were not shown because too many files have changed in this diff Show more