Pseudocode and stuff

This commit is contained in:
MaddoScientisto 2026-03-25 23:32:13 +01:00
commit ee33f94b4b
466 changed files with 27770 additions and 276 deletions

View file

@ -0,0 +1,14 @@
function basegun_gotHit() /* entry=270 class_id=0x04C8 slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
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;
}

View file

@ -0,0 +1,20 @@
function basegun_equip() /* entry=270 class_id=0x04C8 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);
suspend;
goto block_02B7;
block_0290:
spawn class_0A1A_slot_24(pid, arg_0A, global[0x003C], arg_06);
suspend;
block_02B7:
return;
}

View file

@ -0,0 +1,17 @@
function basegun_unequip() /* entry=270 class_id=0x04C8 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:
return;
}

View file

@ -0,0 +1,35 @@
function basegun_calledFromAnim() /* entry=270 class_id=0x04C8 slot=0x0E */
{
var
referent, /* [BP+00h] type=0x69 */
n, /* [BP-02h] type=0x24 */
dir, /* [BP-04h] type=0x69 */
b, /* [BP-06h] type=0x69 */
item; /* [BP-08h] type=0x24 */
entry:
set_info(0x021A, *(arg_06));
process_exclude();
n = *(arg_06);
dir = Intrinsic00FA(n);
b = Item.push(n);
if ((b != 13) || (b != 8)) goto block_03A3;
block_0325:
class_0A1A_slot_40(0, 5, dir, dir, arg_06);
class_0A1A_slot_3F(retval, dir, arg_06);
class_0A1A_slot_3E(retval, dir, arg_06);
class_0A1A_slot_43(0, 5, dir, dir, arg_06);
class_0A1A_slot_42(retval, dir, arg_06);
class_0A1A_slot_41(retval, dir, arg_06);
goto block_0412;
block_03A3:
set_info(0x00F0, 0);
spawn class_0A1E_slot_28(pid, 1, 2, n);
suspend;
block_0412:
return;
}

View file

@ -0,0 +1,17 @@
function basegun_enterFastArea() /* entry=270 class_id=0x04C8 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:
return;
}

View file

@ -0,0 +1,11 @@
function basegun_leaveFastArea() /* entry=270 class_id=0x04C8 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;
}