Advertisement
ZoriaRPG

FFC_Whistle_Secret.zs

Jul 2nd, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. ffc script whistlesecret
  2. {
  3.     void run(int count)
  4.     {
  5.         lweapon w;
  6.         while(count > 0)
  7.         {
  8.             for ( int q = Screen->NumLWeapons(); q > 0; --q )
  9.             {
  10.                 w = Screen->LoadLWeapon(q);
  11.                 if ( w->Type == LW_WHISTLE )
  12.                     if ( w->HitXOffset > -32768 )
  13.                     {
  14.                         --count; Game->PlaySound(SFX_SECRET);
  15.                     }
  16.                     else
  17.                     {
  18.                         w->HitXOffset = -32768;
  19.                         Remove(w);
  20.                     }
  21.                 }
  22.             }
  23.             Waitframe();
  24.         }
  25.         //Run secret here
  26.         //e.g.
  27.         for ( int q = 0; q < 176; ++q )
  28.         {
  29.             if ( ( Screen->ComboF[q] == CF_SCRIPT5 )
  30.             {
  31.                 ++Screen->ComboD[q];
  32.                 Screen->ComboF[q] = 0;
  33.             }
  34.             else if ( Screen->ComboI[q] == CF_SCRIPT5 ) )
  35.             {
  36.                 ++Screen->ComboD[q];
  37.             }
  38.         }
  39.                
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement