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

49 lines
951 B
Text

function convflr_gotHit() /* entry=128 class_id=0x022C slot=0x06 */
{
var
referent, /* [BP+00h] type=0x69 */
ref, /* [BP+0Ah] type=0x69 */
v, /* [BP+0Ch] type=0x69 */
xdir, /* [BP-01h] type=0x62 */
ydir, /* [BP-02h] type=0x62 */
item, /* [BP-04h] type=0x24 */
a, /* [BP-05h] type=0x62 */
b; /* [BP-06h] type=0x62 */
entry:
set_info(0x020C, *(arg_06));
process_exclude();
xdir = 0;
ydir = -3;
if Item.isOn(arg_06) goto block_0211;
block_020A:
ydir = 3;
block_0211:
class_0A0C_slot_2C(v, ref);
if retval goto block_0229;
block_0223:
goto block_029C;
block_0229:
item = ref;
a = Item.getQHi(*(arg_06), item);
b = 1;
if (Item.isOn(arg_06) != 0x00FF) goto block_0266;
block_025F:
b = 0;
block_0266:
if (a && b) goto block_029C;
block_0277:
spawn class_0A04_slot_20(pid, ydir, xdir, arg_06);
suspend;
block_029C:
return;
}