Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script whistlesecret
- {
- void run(int count)
- {
- lweapon w;
- while(count > 0)
- {
- for ( int q = Screen->NumLWeapons(); q > 0; --q )
- {
- w = Screen->LoadLWeapon(q);
- if ( w->Type == LW_WHISTLE )
- if ( w->HitXOffset > -32768 )
- {
- --count; Game->PlaySound(SFX_SECRET);
- }
- else
- {
- w->HitXOffset = -32768;
- Remove(w);
- }
- }
- }
- Waitframe();
- }
- //Run secret here
- //e.g.
- for ( int q = 0; q < 176; ++q )
- {
- if ( ( Screen->ComboF[q] == CF_SCRIPT5 )
- {
- ++Screen->ComboD[q];
- Screen->ComboF[q] = 0;
- }
- else if ( Screen->ComboI[q] == CF_SCRIPT5 ) )
- {
- ++Screen->ComboD[q];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement