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

View file

@ -1,9 +1,7 @@
function miss2_cachein() /* entry=354 class_id=0x090E slot=0x04 */
{
entry:
set_info(0x0213, *(arg_06));
process_exclude();
/* pop_global global_id=0x1F size=0x1 */
return;
set_info(0x0213, *(arg_06));
process_exclude();
/* pop_global global_id=0x1F size=0x1 */
return;
}

View file

@ -1,43 +1,29 @@
function miss2_hatch() /* entry=354 class_id=0x090E slot=0x07 */
{
entry:
set_info(0x0210, *(arg_06));
process_exclude();
if (Intrinsic003F(arg_06) != 1) goto block_01B3;
block_0175:
set_info(0x0210, *(arg_06));
process_exclude();
if (Egg.getEggId(arg_06) == 1) {
class_0A0C_slot_41();
spawn class_090E_slot_28(pid, arg_06);
suspend;
/* pop_global global_id=0x21 size=0x1 */
goto block_026F;
block_01B3:
if (Intrinsic003F(arg_06) != 2) goto block_01F7;
block_01C2:
return;
}
else if (Egg.getEggId(arg_06) == 2) {
class_0A0C_slot_41();
spawn class_090E_slot_29(pid, arg_06);
suspend;
goto block_026F;
block_01F7:
if (Intrinsic003F(arg_06) != 3) goto block_0233;
block_0206:
return;
}
else if (Egg.getEggId(arg_06) == 3) {
spawn class_090E_slot_2A(pid, arg_06);
suspend;
goto block_026F;
block_0233:
if (Intrinsic003F(arg_06) != 4) goto block_026F;
block_0242:
return;
}
else if (Egg.getEggId(arg_06) == 4) {
spawn class_090E_slot_2B(pid, arg_06);
suspend;
goto block_026F;
block_026F:
return;
}
return;
}

View file

@ -6,42 +6,26 @@ function miss2_slot_20() /* entry=354 class_id=0x090E slot=0x20 */
inc, /* [BP-04h] type=0x69 */
item; /* [BP-06h] type=0x24 */
entry:
set_info(1, 0);
counter = 0;
if up goto block_02AE;
block_02A7:
set_info(1, 0);
counter = 0;
if (!up) {
inc = 1;
goto block_02B5;
block_02AE:
}
else {
inc = -1;
block_02B5:
if (counter != 2) goto block_0334;
block_02C3:
}
while (counter == 2) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
block_02E1:
if condition goto block_02FF;
block_02E4:
/* loopnext */
goto block_02E1;
block_02FF:
while (!condition) {
/* loopnext */
}
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
counter = (1 + counter);
goto block_02B5;
block_0334:
return;
}
return;
}

View file

@ -1,10 +1,8 @@
function miss2_slot_21() /* entry=354 class_id=0x090E slot=0x21 */
{
entry:
set_info(1, 0);
spawn class_0A11_slot_22(pid, 11, 0, arg_06);
suspend;
suspend;
return;
set_info(1, 0);
spawn class_0A11_slot_22(pid, 11, 0, arg_06);
suspend;
suspend;
return;
}

View file

@ -1,37 +1,21 @@
function miss2_slot_22() /* entry=354 class_id=0x090E slot=0x22 */
{
entry:
set_info(1, 0);
if (Item.getFrame(arg_06) != 9) goto block_0457;
block_03FF:
if (Item.getFrame(arg_06) != 9) goto block_0454;
block_0414:
spawn class_0A0C_slot_32(pid, 8, 0x00000000);
suspend;
goto block_03FF;
block_0454:
goto block_04AC;
block_0457:
if (Item.getFrame(arg_06) != 2) goto block_04AC;
block_046C:
spawn class_0A0C_slot_32(pid, 8, 0x00000000);
suspend;
goto block_0457;
block_04AC:
if Item.touch(81, arg_06) goto block_04E3;
block_04BD:
set_info(1, 0);
if (Item.getFrame(arg_06) == 9) {
while (Item.getFrame(arg_06) == 9) {
spawn class_0A0C_slot_32(pid, 8, 0x00000000);
suspend;
}
}
else {
while (Item.getFrame(arg_06) == 2) {
spawn class_0A0C_slot_32(pid, 8, 0x00000000);
suspend;
}
}
while (!AudioProcess.isSFXPlayingForObject(81, arg_06)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_04AC;
block_04E3:
return;
}
return;
}

View file

@ -7,89 +7,49 @@ function miss2_slot_23() /* entry=354 class_id=0x090E slot=0x23 */
activate, /* [BP-04h] type=0x62 */
item; /* [BP-06h] type=0x24 */
entry:
set_info(1, 0);
done0 = 0;
done1 = 0;
done2 = 0;
block_051D:
if (((done0 != 0) || (done1 != 0)) || (done2 != 0)) goto block_066A;
block_0537:
set_info(1, 0);
done0 = 0;
done1 = 0;
done2 = 0;
while (((done0 == 0) || (done1 != 0)) || (done2 != 0)) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFA string_bytes=0x6 loop_type=0x2 */
block_0555:
if condition goto block_0665;
block_0558:
activate = 0;
if (!done0) goto block_058E;
block_0568:
if (Item.getQHi(item) != 0) goto block_058B;
block_057D:
activate = 1;
done0 = 1;
block_058B:
goto block_05EC;
block_058E:
if (!done1) goto block_05BD;
block_0597:
if (Item.getQHi(item) != 1) goto block_05BA;
block_05AC:
activate = 1;
done1 = 1;
block_05BA:
goto block_05EC;
block_05BD:
if (!done2) goto block_05EC;
block_05C6:
if (Item.getQHi(item) != 2) goto block_05E9;
block_05DB:
activate = 1;
done2 = 1;
block_05E9:
goto block_05EC;
block_05EC:
if activate goto block_0661;
block_05F4:
if (!done2) goto block_063B;
block_05FD:
spawn class_090E_slot_22(item, 0x00000000);
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
goto block_0661;
block_063B:
spawn class_090E_slot_22(pid, item, 0x00000000);
suspend;
block_0661:
/* loopnext */
goto block_0555;
block_0665:
goto block_051D;
block_066A:
return;
while (!condition) {
activate = 0;
if (done0) {
if (Item.getQLo(item) == 0) {
activate = 1;
done0 = 1;
}
}
else if (done1) {
if (Item.getQLo(item) == 1) {
activate = 1;
done1 = 1;
}
}
else if (done2) {
if (Item.getQLo(item) == 2) {
activate = 1;
done2 = 1;
}
}
if (!activate) {
if (done2) {
spawn class_090E_slot_22(item, 0x00000000);
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
}
else {
spawn class_090E_slot_22(pid, item, 0x00000000);
suspend;
}
}
/* loopnext */
}
}
return;
}

View file

@ -1,19 +1,11 @@
function miss2_slot_24() /* entry=354 class_id=0x090E slot=0x24 */
{
entry:
set_info(0x0202, 0);
block_06BB:
if arg_06 goto block_0704;
block_06C3:
set_info(0x0202, 0);
while (!arg_06) {
/* global_address global_id=0x3C */
arg_06 = (arg_06 - 1);
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
suspend;
goto block_06BB;
block_0704:
return;
}
return;
}

View file

@ -10,88 +10,50 @@ function miss2_slot_25() /* entry=354 class_id=0x090E slot=0x25 */
inc, /* [BP-0Bh] type=0x69 */
itemNum; /* [BP-0Dh] type=0x69 */
entry:
set_info(1, 0);
counter = 32;
itemNum = 0;
if up goto block_0749;
block_0742:
set_info(1, 0);
counter = 32;
itemNum = 0;
if (!up) {
inc = 2;
goto block_0750;
block_0749:
}
else {
inc = -2;
block_0750:
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
/* global_address global_id=0x3C */
block_0792:
if counter goto block_08FF;
block_079A:
}
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 30, 0x00000000);
suspend;
/* global_address global_id=0x3C */
while (!counter) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x43 */
/* loop current_var=0xFE string_bytes=0x8 loop_type=0x2 */
block_07BC:
if condition goto block_08FA;
block_07BF:
x = Intrinsic0013(item);
y = Item.legal_create(item);
z = Item.getZ(item);
itemNum = (1 + itemNum);
if ((counter <= 16) && (Intrinsic0016(item) != 0x04C8)) goto block_08B1;
block_082E:
if (up != 1) goto block_088B;
block_083F:
if (Item.getFrame(item) != 12) goto block_0888;
block_0854:
if (!Item.getFrame(item)) goto block_0871;
block_0864:
goto block_0888;
block_0871:
block_0888:
goto block_08B1;
block_088B:
if (Item.getFrame(item) != 8) goto block_08B1;
block_089D:
block_08B1:
if (itemNum != 5) goto block_08F6;
block_08BF:
itemNum = 0;
counter = (counter - 2);
spawn class_090E_slot_24(pid, 4, 0x00000000);
suspend;
block_08F6:
/* loopnext */
goto block_07BC;
block_08FA:
goto block_0792;
block_08FF:
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
suspend;
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend;
return;
while (!condition) {
x = Item.getX(item);
y = Item.getY(item);
z = Item.getZ(item);
itemNum = (1 + itemNum);
if ((counter <= 16) && (Item.getShape(item) == 0x04C8)) {
if (up == 1) {
if (Item.getFrame(item) == 12) {
if (Item.getFrame(item)) {
}
}
}
}
if (itemNum == 5) {
itemNum = 0;
counter = (counter - 2);
spawn class_090E_slot_24(pid, 4, 0x00000000);
suspend;
}
/* loopnext */
}
}
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 15, 0x00000000);
suspend;
/* global_address global_id=0x3C */
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
suspend;
return;
}

View file

@ -10,73 +10,42 @@ function miss2_slot_26() /* entry=354 class_id=0x090E slot=0x26 */
itemNum, /* [BP-0Bh] type=0x69 */
turn; /* [BP-0Dh] type=0x69 */
entry:
set_info(1, 0);
if (!position) goto block_09D5;
block_09CE:
set_info(1, 0);
if (position) {
counter = 96;
goto block_09DD;
block_09D5:
}
else {
counter = 0x0140;
block_09DD:
itemNum = 0;
turn = 1;
/* global_address global_id=0x3C */
block_09F9:
if counter goto block_0B29;
block_0A01:
}
itemNum = 0;
turn = 1;
/* global_address global_id=0x3C */
while (!counter) {
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_0A21:
if condition goto block_0B24;
block_0A24:
x = Intrinsic0013(item);
y = Item.legal_create(item);
z = Item.getZ(item);
itemNum = (1 + itemNum);
if ((Intrinsic0016(item) != 0x04C8) && (position != 1)) goto block_0ADB;
block_0A93:
if (turn != 5) goto block_0AD1;
block_0AA1:
if (Item.getFrame(item) != 12) goto block_0AC7;
block_0AB3:
block_0AC7:
turn = 0;
goto block_0ADB;
block_0AD1:
turn = (1 + turn);
block_0ADB:
if (itemNum != 2) goto block_0B20;
block_0AE9:
itemNum = 0;
counter = (counter - 4);
spawn class_090E_slot_24(pid, 1, 0x00000000);
suspend;
block_0B20:
/* loopnext */
goto block_0A21;
block_0B24:
goto block_09F9;
block_0B29:
/* global_address global_id=0x3C */
return;
while (!condition) {
x = Item.getX(item);
y = Item.getY(item);
z = Item.getZ(item);
itemNum = (1 + itemNum);
if ((Item.getShape(item) == 0x04C8) && (position != 1)) {
if (turn == 5) {
turn = 0;
}
else {
turn = (1 + turn);
}
}
if (itemNum == 2) {
itemNum = 0;
counter = (counter - 4);
spawn class_090E_slot_24(pid, 1, 0x00000000);
suspend;
}
/* loopnext */
}
}
/* global_address global_id=0x3C */
return;
}

View file

@ -5,17 +5,15 @@ function miss2_slot_27() /* entry=354 class_id=0x090E slot=0x27 */
old, /* [BP-02h] type=0x69 */
new; /* [BP-04h] type=0x69 */
entry:
set_info(1, 0);
old = Item.getFrame(gun);
new = ((Item.getFrame(gun) * 2) + 20);
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
spawn class_0A1A_slot_4B(old, gun);
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
return;
set_info(1, 0);
old = Item.getFrame(gun);
new = ((Item.getFrame(gun) * 2) + 20);
spawn class_0A0C_slot_32(pid, 10, 0x00000000);
suspend;
spawn class_0A1A_slot_4B(old, gun);
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
suspend;
return;
}

View file

@ -24,7 +24,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
block_0CD5:
/* global_address global_id=0x3C */
if Intrinsic0033() goto block_0D0B;
if Actor.isBusy() goto block_0D0B;
block_0CE5:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
@ -33,7 +33,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
block_0D0B:
/* global_address global_id=0x3C */
if Intrinsic0035() goto block_0D4B;
if Actor.getSomeFlagProbablyCrouch() goto block_0D4B;
block_0D1B:
/* global_address global_id=0x3C */
@ -52,12 +52,12 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
if ((Item.getZ(item) > 96) && (Item.getZ(item) < 0x0096)) goto block_0E26;
block_0D8E:
x = Intrinsic0013(item);
y = Item.legal_create(item);
x = Item.getX(item);
y = Item.getY(item);
if ((((x > 0x522F) && (x < 0x53BF)) && (y < 0x448E)) && (y > 0x407F)) goto block_0E26;
block_0DCE:
if (((Intrinsic0016(item) != 17) && (Intrinsic0016(item) != 0x04FE)) && (Intrinsic0016(item) != 0x0135)) goto block_0E26;
if (((Item.getShape(item) != 17) && (Item.getShape(item) != 0x04FE)) && (Item.getShape(item) != 0x0135)) goto block_0E26;
block_0E08:
@ -103,7 +103,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
/* 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(item) - 32), (Intrinsic0013(item) - 16)))));
spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY((Item.getY(item) - 32), (Item.getX(item) - 16)))));
suspend;
counter = (1 + counter);
goto block_0EC2;
@ -122,7 +122,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
spawn class_0A11_slot_22(Item.getDirToItem(Intrinsic0013(pid, 3, Item.legal_create(Item.legal_create(hoffman), Intrinsic0013(hoffman)))));
spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 3, Item.getY(Item.getY(hoffman), Item.getX(hoffman)))));
suspend;
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
@ -154,7 +154,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
/* 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(pathEgg), Intrinsic0013(pathEgg)))));
spawn class_0A11_slot_22(Item.getDirFromTo16(Item.getX(pid, 1, Item.getY(Item.getY(pathEgg), Item.getX(pathEgg)))));
suspend;
counter = (1 + counter);
goto block_1050;
@ -185,7 +185,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
if condition goto block_12A1;
block_123F:
if (Item.getQHi(item) != 13) goto block_129D;
if (Item.getQLo(item) != 13) goto block_129D;
block_1254:
suspend;
@ -209,7 +209,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
if condition goto block_1362;
block_1317:
if (Intrinsic007E(item) != 1) goto block_135E;
if (Item.getQuality(item) != 1) goto block_135E;
block_132C:
/* global_address global_id=0x3C */
@ -264,32 +264,22 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
if condition goto block_14F9;
block_1493:
if (!Item.getQHi(item)) goto block_14AA;
if (!Item.getQLo(item)) goto block_14AA;
block_14A3:
door = item;
goto block_14F5;
block_14AA:
if (Item.getQHi(item) != 1) goto block_14C3;
block_14BC:
door1 = item;
goto block_14F5;
block_14C3:
if (Item.getQHi(item) != 2) goto block_14DC;
block_14D5:
door2 = item;
goto block_14F5;
block_14DC:
if (Item.getQHi(item) != 3) goto block_14F5;
block_14EE:
door3 = item;
goto block_14F5;
if (Item.getQLo(item) == 1) {
door1 = item;
}
else if (Item.getQLo(item) == 2) {
door2 = item;
}
else if (Item.getQLo(item) == 3) {
door3 = item;
}
block_14F5:
/* loopnext */
@ -442,7 +432,7 @@ function miss2_slot_28() /* entry=354 class_id=0x090E slot=0x28 */
if condition goto block_1CD3;
block_1C9C:
if (Item.getQHi(item) != 13) goto block_1CCF;
if (Item.getQLo(item) != 13) goto block_1CCF;
block_1CB1:
suspend;

View file

@ -15,7 +15,7 @@ function miss2_slot_29() /* entry=354 class_id=0x090E slot=0x29 */
block_1DBD:
/* global_address global_id=0x3C */
if Intrinsic0033() goto block_1DF3;
if Actor.isBusy() goto block_1DF3;
block_1DCD:
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
@ -24,7 +24,7 @@ function miss2_slot_29() /* entry=354 class_id=0x090E slot=0x29 */
block_1DF3:
/* global_address global_id=0x3C */
if Intrinsic0035() goto block_1E33;
if Actor.getSomeFlagProbablyCrouch() goto block_1E33;
block_1E03:
/* global_address global_id=0x3C */

View file

@ -4,26 +4,18 @@ function miss2_slot_2A() /* entry=354 class_id=0x090E slot=0x2A */
referent, /* [BP+00h] type=0x69 */
item; /* [BP-02h] type=0x24 */
entry:
set_info(0x0001, *(arg_06));
/* pop_global global_id=0x30 size=0x1 */
spawn class_0A0C_slot_26(1, pid, "2g", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
spawn class_0A0C_slot_32(pid, 100, 0x00000000);
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
block_2256:
if condition goto block_2268;
block_2259:
set_info(0x0001, *(arg_06));
/* pop_global global_id=0x30 size=0x1 */
spawn class_0A0C_slot_26(1, pid, "2g", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
spawn class_0A0C_slot_32(pid, 100, 0x00000000);
suspend;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x42 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
while (!condition) {
/* loopnext */
goto block_2256;
block_2268:
return;
}
return;
}

View file

@ -1,10 +1,8 @@
function miss2_slot_2B() /* entry=354 class_id=0x090E slot=0x2B */
{
entry:
set_info(0x0001, *(arg_06));
spawn class_0A0C_slot_26(pid, "02i", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
return;
set_info(0x0001, *(arg_06));
spawn class_0A0C_slot_26(pid, "02i", 0x00000000);
/* free_stack_string value_u8=0x0 target=[SP+00h] */
suspend;
return;
}