#include "specials.acs"
#include "defs.acs"
#include "wvars.acs"

script 1 open
{
        switch(gametype())
        {
                case GAME_SINGLE_PLAYER:
                                print(s:"WELCOME TO MY WORLD!");
                                delay(64);
                                print(s:"MY WORLD IS MADE FOR DEATHMATCH");
                                delay(64);
                                print(s:"NOT FOR SINGLE PLAYER, SO PREPARE");
                                delay(64);
                                print(s:"TO SUFFER THE CONSEQUENCES!!!");
                                break;
                case GAME_NET_DEATHMATCH:
                                print(s:"WELCOME TO MY WORLD!!!!!");
                                delay(64);
                                print(s:"PREPARE YOURSELF FOR BATTLE");
                                delay(64);
                                print(s:"ONLY ONE WILL SURVIVE!");
                                break;
                case GAME_NET_COOPERATIVE:
                                print(s:"WHY THE HELL ARE YALL PLAYING COOPERATIVE?");
                                delay(64);
                                print(s:"THIS IS A DEATHMATCH LEVEL!!!");
                                break;
                       }
}

script 2 (void)
{
        floor_RaiseAndCrush(4,150, 10);
        printbold(s:"YOU FOOL! THOSE DON'T BELONG TO YOU!!");
        ambientsound("Ambient14", 127);
        Floor_LowerByValue(5,20,120);
        delay(200);
        Floor_CrushStop(4);
        Floor_LowerByValue(4,60,104);
        Floor_RaiseByValue(5,20,120);
             }

script 3 (void)
{
      
        DELAY(10);
        PRINT(s:"WELCOME TO MY HOME!");
        DELAY(80);
        THING_ACTIVATE(6);
        DELAY(50);
        AMBIENTSOUND("Ambient12",100);
        TERMINATE;
             }

script 4 (void)
{
        Thing_Activate(7);
        print(s:"YOU FOOL!");
        delay(80);
        thing_deactivate(7);
        AmbientSound("Ambient15",127);
        Floor_RaiseToNearest(6,100);
        delay(300);
        Floor_LowerByValueTimes8(6,100,3000);
             }
script 5 (void)
{
        Thing_Activate(8);
        printbold(s:"DIE YOU HERETIC!!!!");
        delay(10);
        Thing_Deactivate(8);
               }
script 6 (void)
{
        AmbientSound("Ambient2",127);
        }

script 7 (void)

{
        AmbientSound("Ambient13",127);
        printbold(s:"BEWARE...");
        }

script 8 (int arg0, int arg1, int arg2 ) 
{
        int var0;
        floor_lowerInstant(arg0,0, 16);
        sectorsound("GlassShatter", 127);
        delay(const: 3);
        var0=20;
        while ( var0 > 0)
        {
                var0--;
                Thing_projectileGravity(arg1, random(54, 63), random(0,255), random(10,
                40), random(5,20));
                Thing_projectileGravity(arg2, random(54, 63), random(0, 255), random(10,
                40), random(5, 20));
                }
          }

script 9 (void)
{
         print(s:"WHY EXIT? ARE YOU A LOSER?");
         thing_Activate(20);
         thing_deactivate(20);
                  }
       

script 10 (void)
{
        Thingsound(9,"wind3",127);
        }
  
