#NIGHTMARE 3D 2005 LEVEL1 EPISODE1#
#Coded by Batteryman "Alexander Mikael" #
#INFO#

Map Info {
  ID = "E1M1";
  Name = "House of horror";
  Author = "Nightmare 3d 2005 edition";
  Par time = 118.0;
#Level Gravity
  Gravity = 1;

  #Fog Settings
  # mif_fog Activates Fog
  # R = Red value
  # G = Green value
  # B = Blue value
  Flags = "";
  Fog color R = 0;
  Fog color G = 0;
  Fog color B = 0;

  # Fog dispersion range
  # Start/End for Linear dispersal
  # Density for EXP or EXP2 (Exponential)
  Fog start = 0;
  Fog end = 0;
  Fog density = 0.0000;

  #Sky Model Setup
  Sky Model
    {
        ID = "D1S1Side1";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  Sky Model
    {
        ID = "D1S1Side2";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  Sky Model
    {
        ID = "D1S1Side3";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  Sky Model
    {
        ID = "D1S1Side4";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  Sky Model
    {
        ID = "D1S1Side5";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  Sky Model
    {
        ID = "D1S1Side6";
        Frame interval = 0;
        Offset factor { 0.0 0.0 0.0 };
        Rotate {0 0};
        Yaw = 0;
        Yaw speed = 0;
    };

  # Default sky Sphere settings

  # Z Height Defaults for:
  # Sky Sphere	 (default = 0.49)
  # Horizon Offset (default = -0.105)
  Sky height = 0.49;
  Horizon offset = 1.105;
  # Sky Sphere

  Sky Layer 1 {
	 Flags = "slf_enable";
	 Texture = "SKY1";
  };
}

 

#END#

#MUSIC#
Music { ID = "e1m1"; Lump = "MUS_E1M1"; }
#END#

#XG SCRIPT#

Sector Type {
ID = 192;
Ambient sound ="N3DTELEAMBIENCE";
Ambient max interval = 7.986;
}

Sector Type {
ID = 256;
Ambient sound ="N3DRAIN";
Ambient max interval = 2.364;
}

Line Type {
ID = 142;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "Moveceil tag 24 128 128 255; playsound N3DCURTIAN;";
}

Line Type {
ID = 149;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "Moveceil tag 25 128 128 255; Moveceil tag 1 128 128 255; playsound N3DCURTIAN;";
}

Line Type {
ID = 143;
Comment = "Reset the invisible sector to high value 0";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Act sound = "Null";	
Sp0 = "Moveceil tag 24 -64 128 255; spawnmobj CURTIAN -1232 -320 0 180;";
}	

Line Type {
ID = 144;
Comment = "Respawn a new curtian after the curtian is open";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_on";
Time = 0;
Count = -1;
Act sound = "Null";	
Sp0 = "spawnmobj CURTIAN -1136 128 -2 180";
}

Line Type {
ID = 148;
Comment = "Respawn a new curtian after the curtian is open";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_on";
Time = 0;
Count = -1;
Act sound = "Null";	
Sp0 = "Moveceil tag 25 0 128 255; Moveceil tag 1 0 128 255; spawnmobj CURTIAN2 -1360 -28 0 270;";
}



Line Type { 
ID= 145 
  Comment= ""
  Class =  chain_sequence
  Count =  1
  Type =   timed_off
  Flags2 = when_act | any
  Time =  -1
  Ip0 = done_d
  Ip1 = 145
  Fp1 = 20
    Act sound= "N3DLIGHTNING"        
}



Line Type {
ID = 146;
Comment = "Ammo/stuff sound";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any ltf2_2sided";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "playsound N3DGETSTUFF";
}

Line Type {
ID = 147;
Comment = "stuff2 sound";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any ltf2_2sided";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "playsound N3DGETSF2";
}

Line Type {
ID = 152;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;

Sp0 = "Moveceil tag 26 128 128 255;  playsound N3DCURTIAN;";
}

Line Type {
ID = 151;
Comment = "Respawn a new curtian after the curtian is open";
Time = 0;
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_on";

Count = -1;
Act sound = "Null";	
Sp0 = "Moveceil tag 26 0 128 255;  spawnmobj CURTIAN2 -1360 1024 0 270;";
}


Line Type {
ID = 153;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "Moveceil tag 7 128 128 255; playsound N3DCURTIAN; ";

}



Line Type {
ID = 155;
Comment = "Respawn a new curtian after the curtian is open2";

Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_on";
Time = 0;
Count = -1;
Act sound = "Null";	
Sp0 = "Moveceil tag 7 0 128 255; spawnmobj CURTIANBROWN 1376 688 0 180;";
}


Line Type {
ID = 156;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 2 128 128 255; playsound N3DPANEL; ";

}

Line Type {
ID = 157;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 8 128 128 255; Moveceil tag 3 128 128 255; playsound N3DPANEL; ";

}

Line Type {
ID = 158;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 9 128 128 255; playsound N3DPANEL; ";

}

Line Type {
ID = 159;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 10 128 128 255; playsound N3DPANEL; ";

}

Line Type {
ID = 160;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any ltf2_key3";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 12 128 128 255; playsound N3DOPENWOOD; ";

}

Line Type {
ID = 161;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any ltf2_key2";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 19 156 80 255; playsound N3DCURTIAN; ";

}

Line Type {
ID = 162;
Comment = "sound fx for lifter";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any ltf2_2sided";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "playsound N3DLIFT; ";

}

Line Type {
ID = 163;
Comment = "sound fx for lifter";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any ltf2_2sided";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 4 128 128 255; playsound N3DPANEL;";

}

Line Type {
ID = 164;
Comment = "sound fx for lifter";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any ltf2_2sided";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 5 128 128 255; playsound N3DPANEL;";
}

Line Type {
ID = 165;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 20 128 128 255; playsound N3DPANEL; ";
}

Line Type {
ID = 166;
Comment = "Elevator";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "Movefloor tag 21 208; playsound N3DLIFTER; ";
}

Line Type {
ID = 167;
Comment = "Elevator";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = -1;
Sp0 = "Movefloor tag 21 0; playsound N3DLIFTER; ";
}

Line Type {
ID = 168;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_use";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 22 80 128 255; playsound N3DSDOOR; ";

}

Line Type {
ID = 169;
Comment = "LIft the invisible sector to high value 128";
Flags = "ltf_player_cross";
Flags2 = "ltf2_when_act ltf2_any";
Class = "ltc_command";
Type = "lat_flip_timed_off";
Count = 1;
Sp0 = "Moveceil tag 22 0 128 255; playsound N3DSDOOR; spawnmobj Solid-door-close -64 -800 0 180";

}

#END#

#REFLECTIONS#

Reflection
{
Flat = "ZBLURID";
Blending mode = "bm_add";
Shininess = 0.7;
Min color { 0.48627450980392156862745098039216 0.58039215686274509803921568627451 0.84705882352941176470588235294118 };
Shiny map = "SHINY-ZBLURID";
Mask map = "MASK-ZBLURID";
}

Reflection
{
Flat = "ZGRYFLR";
Blending mode = "bm_add";
Shininess = 0.2;
Min color { 0.48627450980392156862745098039216 0.58039215686274509803921568627451 0.84705882352941176470588235294118 };
Shiny map = "ZSHADER";
Mask map = "ZMASK";
}

#END#

#PARTICLES#

Generator
{
Flat = "ZBLURID";
Flags = "gnf_extra gnf_blendadd";
Speed = 9.9;
Speed Rnd = 9.95;
Vector { 0.0 0.0 0.5 };
Center { 5.0 5.0 5.0 };
Spawn radius = 1.9;
Spawn age = -1;
Max age = -1;
Particles = 5;
Spawn rate = 7.5;
Spawn Rnd = 0.25;
Stage{Type = "pt_point"; Tics = 256; Rnd = 0.1; Color { 0.48627450980392156862745098039216 0.58039215686274509803921568627451 0.84705882352941176470588235294118 0.5 }; Radius = 12.0; Rnd = 0.1; 
Gravity = 0.0;  Flags = "ptf_bright";};
}
#END#

#SKY#
Modelpath "data/N3D2005/3D/Sky1";

Model {
  ID = "D1S1Side1"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "0"; Skin = 0; };
}

Model {
  ID = "D1S1Side2"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "1"; Skin = 1; };
}

Model {
  ID = "D1S1Side3"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "2"; Skin = 2; };
}

Model {
  ID = "D1S1Side4"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "3"; Skin = 3; };
}

Model {
  ID = "D1S1Side5"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "4"; Skin = 4; };
}

Model {
  ID = "D1S1Side6"; Scale XYZ { 1 .8 1 };
  Md2{ Flags = "df_notexcomp" File = "D1Sky1.md2"; Frame = "5"; Skin = 5; };
}

#END#

#SOUND - sfx16khz.pk3#

Sound {
  ID = "N3DTELEAMBIENCE";
  Flags = "sf_shift2";
  Lump = "N3DTELEAMBIENCE";
  Link pitch = -1;
  Link volume = -1;
  Priority = 70;
  Max channels = 2;
}

Sound {
  ID = "N3DRAIN";
  Flags = "sf_shift2";
  Lump = "N3DRAIN";
  Link pitch = -1;
  Link volume = -1;
  Priority = 64;
  Max channels = -1;
}

Sound {
  ID = "N3DLIFTER";
  Flags = "sf_shift2";
  Lump = "N3DLIFTER";
  Link pitch = -1;
  Link volume = -1;
  Priority = 64;
  Max channels = -1;
}



#END#

#END OF FILE#