Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/PODBOY/slot_06_gotHit.txt
2026-03-25 23:32:36 +01:00

55 lines
1.1 KiB
Text

function podboy_gotHit() /* entry=129 class_id=0x022D slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
vel, /* [BP+0Ch] type=0x69 */
fram, /* [BP-02h] type=0x69 */
counter, /* [BP-04h] type=0x69 */
item; /* [BP-06h] type=0x24 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
if (Item.getFrame(arg_06) != 1) goto block_0222;
block_0218:
fram = 22;
goto block_025B;
block_0222:
if (Item.getFrame(arg_06) != 2) goto block_023B;
block_0231:
fram = 11;
goto block_025B;
block_023B:
if (Item.getFrame(arg_06) != 3) goto block_0254;
block_024A:
fram = 0;
goto block_025B;
block_0254:
fram = 34;
block_025B:
spawn class_022D_slot_20(*(arg_06), 0x00000000);
spawn class_0A1E_slot_28(pid, 0, 1, arg_06);
suspend;
counter = 0;
block_02FA:
if (counter <= 10) goto block_0348;
block_0302:
spawn class_0A0C_slot_32(pid, (15 - counter), 0x00000000);
suspend;
counter = (1 + counter);
goto block_02FA;
block_0348:
return;
}