56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
function pplate2_gotHit() /* entry=80 class_id=0x0199 slot=0x06 */
|
|
{
|
|
var
|
|
referent, /* [BP+00h] type=0x69 */
|
|
ref, /* [BP+0Ah] type=0x69 */
|
|
vel, /* [BP+0Ch] type=0x69 */
|
|
f, /* [BP-02h] type=0x69 */
|
|
item; /* [BP-04h] type=0x24 */
|
|
|
|
set_info(0x020C, *(arg_06));
|
|
process_exclude();
|
|
FREE.slot_2C(vel, ref);
|
|
if (!retval) {
|
|
return;
|
|
}
|
|
else {
|
|
f = Item.getFrame(arg_06);
|
|
if (!(f & 1)) {
|
|
return;
|
|
}
|
|
else {
|
|
item = ref;
|
|
if ((Item.getSurfaceWeight(arg_06) == 0) || (Item.isCentreOn(*(arg_06), item) != 0)) {
|
|
return;
|
|
}
|
|
else if (Item.getMapArray(arg_06) == 0) {
|
|
spawn TRIGGER.slot_20(pid, 0, *(arg_06), arg_06);
|
|
suspend;
|
|
while (!(1)) {
|
|
if (Item.getSurfaceWeight(arg_06) == 0) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
else {
|
|
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
|
|
suspend;
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
else {
|
|
while (!(1)) {
|
|
if (Item.getSurfaceWeight(arg_06) == 0) {
|
|
spawn FREE.waitNTimerTicks(pid, 2, 0x00000000);
|
|
suspend;
|
|
}
|
|
else {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|