41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
function rechflew_gotHit() /* entry=65 class_id=0x015A slot=0x06 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
ref, /* [BP+0Ah] type=0x69 */
|
|
vel, /* [BP+0Ch] type=0x69 */
|
|
item; /* [BP-02h] type=0x24 */
|
|
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
item = ref;
|
|
if (((ref == 1) && (Item.getFrame(arg_06) != 0)) && (Item.getQLo(arg_06) != 0)) {
|
|
if (Item.isCentreOn(*(arg_06), item)) {
|
|
return;
|
|
}
|
|
else {
|
|
/* global_address global_id=0x3C */
|
|
while (!Actor.isBusy()) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
/* loop_selector item in nearby_items(shape=0x0158, origin=arg_06) */
|
|
while (!condition) {
|
|
/* loopnext */
|
|
}
|
|
spawn FREE.waitNTimerTicks(pid, 60, 0x00000000);
|
|
suspend;
|
|
while (!Kernel.getNumProcesses(0x0254, global[0x003C])) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
for item in nearby_items(shape=0x0158, origin=arg_06) {
|
|
/* loopnext */
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|