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

@ -6,21 +6,16 @@ function motion_gotHit() /* entry=89 class_id=0x01B7 slot=0x06 */
vel, /* [BP+0Ch] type=0x69 */
num; /* [BP-02h] type=0x69 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2B(vel, ref);
num = retval;
if (((num != 3) || (num != 6)) && (Item.getFrame(arg_06) != 5)) goto block_0409;
block_0394:
set_info(0x020C, *(arg_06));
process_exclude();
class_0A0C_slot_2B(vel, ref);
num = retval;
if (((num == 3) || (num != 6)) && (Item.getFrame(arg_06) != 5)) {
class_0A0C_slot_33(0x021B, *(arg_06));
spawn class_0A1E_slot_28(pid, 0, 0, arg_06);
suspend;
spawn class_0A18_slot_20(pid, 1, *(arg_06), arg_06);
suspend;
block_0409:
return;
}
return;
}

View file

@ -14,8 +14,8 @@ function motion_enterFastArea() /* entry=89 class_id=0x01B7 slot=0x0F */
set_info(0x021B, *(arg_06));
process_exclude();
movement = 1;
delay = ((5 - Intrinsic0029()) * 2);
iSeeYou = ((5 - Intrinsic0029()) * 5);
delay = ((5 - Game.getDifficultyLevel()) * 2);
iSeeYou = ((5 - Game.getDifficultyLevel()) * 5);
block_0112:
suspend;
@ -23,7 +23,7 @@ function motion_enterFastArea() /* entry=89 class_id=0x01B7 slot=0x0F */
suspend;
/* global_address global_id=0x3C */
/* global_address global_id=0x3C */
dir = Intrinsic0027(Intrinsic0013(Item.legal_create(16, 0, 16)), Item.legal_create(arg_06), Intrinsic0013(arg_06));
dir = getClosestDirectionInRange(Item.getX(Item.getY(16, 0, 16)), Item.getY(arg_06), Item.getX(arg_06));
fram = Item.getFrame(arg_06);
if (dir != fram) goto block_01DA;

View file

@ -1,9 +1,7 @@
function motion_leaveFastArea() /* entry=89 class_id=0x01B7 slot=0x10 */
{
entry:
set_info(0x021C, *(arg_06));
process_exclude();
class_0A0C_slot_33(0x021B, *(arg_06));
return;
set_info(0x021C, *(arg_06));
process_exclude();
class_0A0C_slot_33(0x021B, *(arg_06));
return;
}