ZoriaRPG

FFC_Whistle_Secret.zs

Jul 2nd, 2018
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×