61 lines
1.5 KiB
Text
61 lines
1.5 KiB
Text
function lift_gotHit() /* entry=52 class_id=0x0133 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;
|
|
FREE.slot_2C(vel, ref);
|
|
if (!retval) {
|
|
return;
|
|
}
|
|
else if (ref == 1) {
|
|
return;
|
|
}
|
|
else if (Item.getQuality(arg_06) == 1) {
|
|
/* global_address global_id=0x3C */
|
|
if (!Actor.isBusy()) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
spawn LIFT.slot_20(pid, arg_06);
|
|
suspend;
|
|
suspend;
|
|
suspend;
|
|
return;
|
|
}
|
|
else if (Item.getQuality(arg_06) == 10) {
|
|
/* global_address global_id=0x3C */
|
|
if (!Actor.isBusy()) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
/* global_address global_id=0x3C */
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
spawn LIFT.slot_20(pid, arg_06);
|
|
suspend;
|
|
suspend;
|
|
/* global_address global_id=0x3C */
|
|
suspend;
|
|
return;
|
|
}
|
|
return;
|
|
}
|