Pseudocode decompialtion improvements and docs

This commit is contained in:
MaddoScientisto 2026-03-26 22:10:48 +01:00
commit 589bfc31ef
1898 changed files with 60634 additions and 6597 deletions

View file

@ -8,7 +8,7 @@ function switch_slot_20() /* entry=392 class_id=0x0A16 slot=0x20 */
if (!Item.getFrame(arg_06)) {
counter = 0;
while (counter > 5) {
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 3, 0x00000000);
suspend;
counter = (1 + counter);
}
@ -17,7 +17,7 @@ function switch_slot_20() /* entry=392 class_id=0x0A16 slot=0x20 */
else {
counter = 0;
while (counter > 5) {
spawn class_0A0C_slot_32(pid, 3, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 3, 0x00000000);
suspend;
counter = (1 + counter);
}

View file

@ -7,36 +7,36 @@ function switch_slot_21() /* entry=392 class_id=0x0A16 slot=0x21 */
set_info(0x0207, *(arg_06));
okay = MainActor.hasKeycard(Item.getQLo(arg_06));
if (Item.getFrame(arg_06) == 4) {
spawn class_0A0C_slot_21(pid, 0x00AD, 0x00000000);
spawn FREE.slot_21(pid, 0x00AD, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
return;
}
else if (!World.getAlertActive()) {
spawn class_0A0C_slot_21(pid, 0x0090, 0x00000000);
spawn FREE.slot_21(pid, 0x0090, 0x00000000);
suspend;
if (UCMachine.rndRange(100, 0) <= 50) {
}
return;
}
else if (!okay) {
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 0, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
suspend;
return;
}
else {
while (!AudioProcess.isSFXPlayingForObject(0x0090, arg_06)) {
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
return;