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

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

View file

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

View file

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