28 lines
646 B
Text
28 lines
646 B
Text
function fffloor2_gotHit() /* entry=96 class_id=0x01C8 slot=0x06 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
ref, /* [BP+0Ah] type=0x69 */
|
|
vel, /* [BP+0Ch] type=0x69 */
|
|
n; /* [BP-02h] type=0x24 */
|
|
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
if ((Item.getFrame(arg_06) == 1) || (ref > 0x0100)) {
|
|
return;
|
|
}
|
|
else {
|
|
n = ref;
|
|
while (!Item.isOn(*(arg_06), n)) {
|
|
if (Item.getFrame(arg_06) == 1) {
|
|
return;
|
|
}
|
|
FREE.slot_20(pid, 8);
|
|
spawn NPC.slot_2D(retval, *(arg_06), n);
|
|
suspend;
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
}
|
|
return;
|
|
}
|