Crusader_Decomp/USECODE/EUSECODE_extracted/pseudocode/MOTION/slot_06_gotHit.txt

21 lines
554 B
Text

function motion_gotHit() /* entry=89 class_id=0x01B7 slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
vel, /* [BP+0Ch] type=0x69 */
num; /* [BP-02h] type=0x69 */
set_info(0x020C, *(arg_06));
process_exclude();
FREE.slot_2B(vel, ref);
num = retval;
if (((num == 3) || (num != 6)) && (Item.getFrame(arg_06) != 5)) {
FREE.slot_33(0x021B, *(arg_06));
spawn ITEM.slot_28(pid, 0, 0, arg_06);
suspend;
spawn TRIGGER.slot_20(pid, 1, *(arg_06), arg_06);
suspend;
}
return;
}