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,14 +8,14 @@ function elevat_slot_20() /* entry=379 class_id=0x0A09 slot=0x20 */
return;
}
else {
class_0A09_slot_22(Item.getZ(arg_06), arg_06);
ELEVAT.slot_22(Item.getZ(arg_06), arg_06);
if (!retval) {
spawn class_0A09_slot_23(pid, arg_06);
spawn ELEVAT.slot_23(pid, arg_06);
suspend;
return;
}
else {
spawn class_0A09_slot_24(pid, arg_06);
spawn ELEVAT.slot_24(pid, arg_06);
suspend;
}
}

View file

@ -31,7 +31,7 @@ function elevat_slot_23() /* entry=379 class_id=0x0A09 slot=0x23 */
counter2 = (1 + counter2);
}
total = 0;
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
counter = (1 + counter);
}

View file

@ -16,7 +16,7 @@ function elevat_slot_24() /* entry=379 class_id=0x0A09 slot=0x24 */
set_info(0x0001, *(arg_06));
height = Item.getZ(arg_06);
class_0A09_slot_21(arg_06);
ELEVAT.slot_21(arg_06);
minLimit = retval;
minLimitCount = ((height - minLimit) / 2);
counter = 1;
@ -49,7 +49,7 @@ function elevat_slot_24() /* entry=379 class_id=0x0A09 slot=0x24 */
cargoDown = Item.getEtherealTop();
counter2 = (1 + counter2);
}
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
}
else {
@ -58,9 +58,9 @@ function elevat_slot_24() /* entry=379 class_id=0x0A09 slot=0x24 */
cargoDown = Item.getEtherealTop();
counter2 = (1 + counter2);
}
spawn class_0A0C_slot_32(pid, 60, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
suspend;
spawn class_0A09_slot_23(pid, arg_06);
spawn ELEVAT.slot_23(pid, arg_06);
suspend;
return;
}

View file

@ -10,22 +10,18 @@ function elevat_slot_25() /* entry=379 class_id=0x0A09 slot=0x25 */
set_info(0x0001, *(arg_06));
totFrames = 5;
/* loopscr value_u8=0x24 */
/* loopscr value_u8=0x3D */
/* loopscr value_u8=0x40 */
/* loopscr value_u8=0x25 */
/* loop current_var=0xFE string_bytes=0x6 loop_type=0x2 */
/* loop_selector liftpit in nearby_items(shape=ELEVATOR_BASE, origin=arg_06) */
while (!condition) {
class_0A0C_slot_3F((Item.getX(arg_06) - Item.getX(liftpit)));
FREE.slot_3F((Item.getX(arg_06) - Item.getX(liftpit)));
checkX = retval;
class_0A0C_slot_3F((Item.getY(arg_06) - Item.getY(liftpit)));
FREE.slot_3F((Item.getY(arg_06) - Item.getY(liftpit)));
checkY = retval;
if ((checkX >= 2) && (checkY < 2)) {
if ((Item.getStatus(liftpit) & 0x1000) == 0) {
if (Item.getFrame(liftpit) == 0) {
pitCounter = 1;
while (pitCounter > totFrames) {
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
pitCounter = (1 + pitCounter);
}
@ -33,11 +29,11 @@ function elevat_slot_25() /* entry=379 class_id=0x0A09 slot=0x25 */
else {
pitCounter = totFrames;
while (pitCounter <= 0) {
spawn class_0A0C_slot_32(pid, 1, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 1, 0x00000000);
suspend;
pitCounter = (pitCounter - 1);
}
spawn class_0A0C_slot_32(pid, 2, 0x00000000);
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
suspend;
}
/* bit_not */