Advertisement
ZoriaRPG

FFC_BurnNext.zs

Jun 21st, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. ffc script BurnNext
  2. {
  3.     void run(int combo_type, int sfx)
  4.     {
  5.         lweapon l; int x; int y; int pos;
  6.         while(1)
  7.         {
  8.             for ( int q = Screen->NumLWeapons(); q > 0; --q )
  9.             {
  10.                 l = Screen->LoadLWeapon(q);
  11.                 x = l->X+8; y = l->Y+8;
  12.                 pos = ComboAt(x,y);
  13.                 if ( l->ID == LW_FIRE )
  14.                 {
  15.                     if ( Screen->ComboT[pos] == combo_type )
  16.                     {
  17.                         ++Screen->ComboD[pos];
  18.                         Game->PlaySound(sfx);
  19.                     }
  20.                 }
  21.             }
  22.             Waitframe();
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement