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

@ -9,65 +9,36 @@ function glass_ew_gotHit() /* entry=137 class_id=0x027B slot=0x06 */
counter, /* [BP-06h] type=0x69 */
door; /* [BP-08h] type=0x24 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
shot = ref;
class_0A0C_slot_2C(vel, ref);
if (!retval) goto block_010E;
block_0108:
goto block_0307;
block_010E:
set_info(0x020C, *(arg_06));
process_exclude();
shot = ref;
class_0A0C_slot_2C(vel, ref);
if (retval) {
return;
}
else {
door = *(arg_06);
spawn class_0A1E_slot_27(pid, 1, vel, ref, arg_06);
suspend;
/* dword_to_word */
if (!process_result) goto block_017A;
block_0147:
class_0A0C_slot_20(1);
if retval goto block_0167;
block_0157:
goto block_0174;
block_0167:
block_0174:
goto block_0307;
block_017A:
spawn class_0A06_slot_22(pid, door);
suspend;
if (!Item.getFrame(arg_06)) goto block_0307;
block_01A9:
counter = 1;
block_01BD:
if (counter <= 3) goto block_0205;
block_01C5:
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
goto block_01BD;
block_0205:
if Npc.isDead((Item.getZ(arg_06) + 1), (Item.legal_create(arg_06) + 32), (Intrinsic0013(arg_06) + 80), 0x0349) goto block_0278;
block_0239:
block_0278:
if Npc.isDead((Item.getZ(arg_06) + 1), Item.legal_create(arg_06), (Intrinsic0013(arg_06) - 32), 0x027A) goto block_02E5;
block_02A9:
block_02E5:
block_0307:
return;
if (process_result) {
class_0A0C_slot_20(1);
if (!retval) {
}
return;
}
else {
spawn class_0A06_slot_22(pid, door);
suspend;
if (Item.getFrame(arg_06)) {
counter = 1;
while (counter > 3) {
spawn class_0A0C_slot_32(pid, 5, 0x00000000);
suspend;
counter = (1 + counter);
}
}
}
}
return;
}