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,10 +5,8 @@ function sentry_gotHit() /* entry=100 class_id=0x01CD slot=0x06 */
ref, /* [BP+0Ah] type=0x69 */
vel; /* [BP+0Ch] type=0x69 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
spawn class_0A1A_slot_49(vel, ref, arg_06);
return;
set_info(0x020C, *(arg_06));
process_exclude();
spawn class_0A1A_slot_49(vel, ref, arg_06);
return;
}

View file

@ -1,20 +1,15 @@
function sentry_equip() /* entry=100 class_id=0x01CD slot=0x0A */
{
entry:
set_info(0x0211, *(arg_06));
process_exclude();
if (Item.pop() != 0) goto block_0290;
block_0265:
spawn class_0A1A_slot_24(pid, arg_0A, Item.pop(), arg_06);
set_info(0x0211, *(arg_06));
process_exclude();
if (getTargetNPCNumMaybe() == 0) {
spawn class_0A1A_slot_24(pid, arg_0A, getTargetNPCNumMaybe(), arg_06);
suspend;
goto block_02B7;
block_0290:
return;
}
else {
spawn class_0A1A_slot_24(pid, arg_0A, global[0x003C], arg_06);
suspend;
block_02B7:
return;
}
return;
}

View file

@ -1,17 +1,12 @@
function sentry_unequip() /* entry=100 class_id=0x01CD slot=0x0B */
{
entry:
set_info(0x0212, *(arg_06));
process_exclude();
if (Item.getStatus(arg_06) & 4) goto block_0160;
block_015A:
goto block_017B;
block_0160:
spawn class_0A1A_slot_27(arg_06);
block_017B:
set_info(0x0212, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 4)) {
return;
}
else {
spawn class_0A1A_slot_27(arg_06);
}
return;
}

View file

@ -5,11 +5,9 @@ function sentry_calledFromAnim() /* entry=100 class_id=0x01CD slot=0x0E */
n, /* [BP-02h] type=0x24 */
dir; /* [BP-04h] type=0x69 */
entry:
set_info(0x021A, *(arg_06));
process_exclude();
n = *(arg_06);
dir = Intrinsic00FA(n);
return;
set_info(0x021A, *(arg_06));
process_exclude();
n = *(arg_06);
dir = Actor.getDir(n);
return;
}

View file

@ -1,17 +1,12 @@
function sentry_enterFastArea() /* entry=100 class_id=0x01CD slot=0x0F */
{
entry:
set_info(0x021B, *(arg_06));
process_exclude();
if (Item.getStatus(arg_06) & 4) goto block_0103;
block_00FD:
goto block_011E;
block_0103:
spawn class_0A1A_slot_27(arg_06);
block_011E:
set_info(0x021B, *(arg_06));
process_exclude();
if (!(Item.getStatus(arg_06) & 4)) {
return;
}
else {
spawn class_0A1A_slot_27(arg_06);
}
return;
}

View file

@ -1,11 +1,9 @@
function sentry_leaveFastArea() /* entry=100 class_id=0x01CD slot=0x10 */
{
entry:
set_info(0x021C, *(arg_06));
process_exclude();
/* bit_not */
class_0A0C_slot_33(1, *(arg_06));
class_0A0C_slot_33(0x020A, *(arg_06));
return;
set_info(0x021C, *(arg_06));
process_exclude();
/* bit_not */
class_0A0C_slot_33(1, *(arg_06));
class_0A0C_slot_33(0x020A, *(arg_06));
return;
}