Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script Earthquake
- {
- void run(int strength, int sfx, int sfx_delay, int aftershock_sfx)
- {
- bool done;
- while(1)
- {
- Screen->Quake = strength;
- if ( sfx_delay < 1 ) Game->PlaySound(sfx);
- --strength;
- --sfx_delay;
- done = true;
- if ( strength > 0 ) done = false;
- if ( strength > 0 ) done = false;
- if ( done ) break;
- Waitframe();
- }
- Game->PlaySound(aftershock_sfx); Quit();
- }
- }
- ffc script Earthquake
- {
- void run(int strength, int sfx, int sfx_delay)
- {
- bool done;
- while(1)
- {
- Screen->Quake = strength;
- if ( sfx_delay < 1 ) Game->PlaySound(sfx);
- --strength;
- --sfx_delay;
- done = true;
- if ( strength > 0 ) done = false;
- if ( strength > 0 ) done = false;
- if ( done ) Quit();
- Waitframe();
- }
- }
- }
- ffc script Earthquake
- {
- void run(int strength, int sfx, int sfx_delay, int aftershock_sfx)
- {
- bool done;
- while(1)
- {
- Screen->Quake = strength;
- if ( sfx_delay < 1 ) Game->PlaySound(sfx);
- --strength;
- --sfx_delay;
- done = true;
- if ( strength > 0 ) done = false;
- if ( strength > 0 ) done = false;
- if ( done ) break;
- Waitframe();
- }
- while(Screen->Quake > 0 ) Waitframe();
- Game->PlaySound(aftershock_sfx); Quit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement