Back to index

freedink-data  1.08.20080920
Functions
ITEM-BOM.c File Reference

Go to the source code of this file.

Functions

void use (void)
void disarm (void)
void arm (void)
void pickup (void)
void drop (void)

Function Documentation

void arm ( void  )

Definition at line 20 of file ITEM-BOM.c.

{
preload_seq(420);
preload_seq(161);
preload_seq(166);

init("load_sequence_now graphics\dink\walk\ds-w1- 71 43 38 72 -14 -9 14 9");
init("load_sequence_now graphics\dink\walk\ds-w2- 72 43 37 69 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w3- 73 43 38 72 -14 -9 14 9");
init("load_sequence_now graphics\dink\walk\ds-w4- 74 43 38 72 -12 -9 12 9");

init("load_sequence_now graphics\dink\walk\ds-w6- 76 43 38 72 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w7- 77 43 38 72 -12 -10 12 10");
init("load_sequence_now graphics\dink\walk\ds-w8- 78 43 37 69 -13 -9 13 9");
init("load_sequence_now graphics\dink\walk\ds-w9- 79 43 38 72 -14 -9 14 9");

init("load_sequence_now graphics\dink\idle\ds-i2- 12 250 33 70 -12 -9 12 9");
init("load_sequence_now graphics\dink\idle\ds-i4- 14 250 30 71 -11 -9 11 9");
init("load_sequence_now graphics\dink\idle\ds-i6- 16 250 36 70 -11 -9 11 9");
init("load_sequence_now graphics\dink\idle\ds-i8- 18 250 32 68 -12 -9 12 9");

}
void disarm ( void  )

Definition at line 13 of file ITEM-BOM.c.

{
debug("bomb disarmed.");

kill_this_task();
}
void drop ( void  )

Definition at line 48 of file ITEM-BOM.c.

{
debug("bomb removed");
draw_status();
kill_this_task();
}
void pickup ( void  )

Definition at line 43 of file ITEM-BOM.c.

{
kill_this_task();
}
void use ( void  )

Definition at line 3 of file ITEM-BOM.c.

{

spawn("dam-bom");

kill_cur_item();
//nothing more will be read here, put stuff in disarm and drop if you need
//something done
}