Back to index

freedink-data  1.08.20080920
Functions
DAM-FIRE.c File Reference

Go to the source code of this file.

Functions

void main (void)
void damage (void)

Function Documentation

void damage ( void  )

Definition at line 9 of file DAM-FIRE.c.

{
        playsound(18, 8000,0,0,0);

        &scrap = &current_sprite;
        kill_shadow(&scrap);
        sp_seq(&scrap, 70);
        sp_pseq(&scrap, 70);
        sp_frame(&scrap, 1);
        sp_brain(&scrap, 7);
        &mcrap = sp_y(&scrap, -1);
        &mcrap -= 35;
        sp_y(&scrap, &mcrap);

 &mcrap = sp_pseq(&missile_target, -1);
 &scrap = sp_pframe(&missile_target, -1);
  int &hold = sp_editor_num(&missile_target);

  if (&mcrap == 32)
  {
   if (&scrap == 1)
   {
   //they hit a tree, lets burn the thing
    sp_hard(&missile_target, 1);
    draw_hard_sprite(&missile_target);

  &junk = is_script_attached(&missile_target);
  if (&junk > 0)
  {
 //Script is attached to this tree!  Let's run it's die script
  run_script_by_number(&junk, "DIE");
   return;
  }

  if (&hold != 0)
    {
     //this was placed by the editor, lets make the tree stay burned
     editor_type(&hold, 4); 
     editor_seq(&hold, 20);
     editor_frame(&hold, 29);
     //type means show this seq/frame combo as background in the future
    }
  
    sp_pseq(&missile_target, 20);
    sp_pframe(&missile_target, 29);
    sp_hard(&missile_target, 0);
    draw_hard_sprite(&missile_target);
    sp_seq(&missile_target, 20);
    playsound(6, 8000,0,&missile_target,0);
    
   }
  }

}

Here is the call graph for this function:

void main ( void  )

Definition at line 2 of file DAM-FIRE.c.

{
        int &mcrap;
        int &scrap;
       int &junk;
}