Back to index

freedink-data  1.08.20080920
ITEM-BOM.c
Go to the documentation of this file.
00001 //item bomb
00002 
00003 void use( void )
00004 {
00005 
00006 spawn("dam-bom");
00007 
00008 kill_cur_item();
00009 //nothing more will be read here, put stuff in disarm and drop if you need
00010 //something done
00011 }
00012 
00013 void disarm(void)
00014 {
00015 debug("bomb disarmed.");
00016 
00017 kill_this_task();
00018 }
00019 
00020 void arm(void)
00021 {
00022 preload_seq(420);
00023 preload_seq(161);
00024 preload_seq(166);
00025 
00026 init("load_sequence_now graphics\dink\walk\ds-w1- 71 43 38 72 -14 -9 14 9");
00027 init("load_sequence_now graphics\dink\walk\ds-w2- 72 43 37 69 -13 -9 13 9");
00028 init("load_sequence_now graphics\dink\walk\ds-w3- 73 43 38 72 -14 -9 14 9");
00029 init("load_sequence_now graphics\dink\walk\ds-w4- 74 43 38 72 -12 -9 12 9");
00030 
00031 init("load_sequence_now graphics\dink\walk\ds-w6- 76 43 38 72 -13 -9 13 9");
00032 init("load_sequence_now graphics\dink\walk\ds-w7- 77 43 38 72 -12 -10 12 10");
00033 init("load_sequence_now graphics\dink\walk\ds-w8- 78 43 37 69 -13 -9 13 9");
00034 init("load_sequence_now graphics\dink\walk\ds-w9- 79 43 38 72 -14 -9 14 9");
00035 
00036 init("load_sequence_now graphics\dink\idle\ds-i2- 12 250 33 70 -12 -9 12 9");
00037 init("load_sequence_now graphics\dink\idle\ds-i4- 14 250 30 71 -11 -9 11 9");
00038 init("load_sequence_now graphics\dink\idle\ds-i6- 16 250 36 70 -11 -9 11 9");
00039 init("load_sequence_now graphics\dink\idle\ds-i8- 18 250 32 68 -12 -9 12 9");
00040 
00041 }
00042 
00043 void pickup(void)
00044 {
00045 kill_this_task();
00046 }
00047 
00048 void drop(void)
00049 {
00050 debug("bomb removed");
00051 draw_status();
00052 kill_this_task();
00053 }