35 lines
807 B
Text
35 lines
807 B
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 */
|
|
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
if (Item.getFrame(arg_06) == 1) {
|
|
fram = 22;
|
|
}
|
|
else if (Item.getFrame(arg_06) == 2) {
|
|
fram = 11;
|
|
}
|
|
else if (Item.getFrame(arg_06) == 3) {
|
|
fram = 0;
|
|
}
|
|
else {
|
|
fram = 34;
|
|
}
|
|
spawn PODBOY.slot_20(*(arg_06), 0x00000000);
|
|
spawn ITEM.slot_28(pid, 0, 1, arg_06);
|
|
suspend;
|
|
counter = 0;
|
|
while (counter > 10) {
|
|
spawn FREE.waitNTimerTicks(pid, (15 - counter), 0x00000000);
|
|
suspend;
|
|
counter = (1 + counter);
|
|
}
|
|
return;
|
|
}
|