#NIGHTMARE 3D 2005 LIGHTNING#
#Coded by Batteryman "Alexander Mikael" #

#SPRITE#
Sprite { ID = "BLNK"; }
#END#

#ID#
Thing {
  ID = "THUND";
  DoomEd number = 93;
  Spawn state = "THUNDFX";
  See state = "NULL";
  Pain state = "NULL";
  Melee state = "NULL";
  Missile state = "NULL";
  Death state = "NULL";
  Xdeath state = "NULL";
  Raise state = "NULL";
  See sound = "None";
  Attack sound = "None";
  Pain sound = "none";
  Death sound = "none";
  Active sound = "None";
  Pain chance = 0;
  Spawn health = -1;
  Radius = 1;
  Height = 1;
  Mass = 65535;
  Flags = "mf_solid ";
}
#END#

#STATE#
State {
  ID = "THUNDFX";
  Sprite = "PLAY";
  Frame = 0;
  Tics = 640;
  Next state = "THUNDFX2";
}

State {
  ID = "THUNDFX2";
  Sprite = "PLAY";
  Frame = 32769;
  Tics = 1;
  Next state = "THUNDFX3";
}

State {
  ID = "THUNDFX3";
  Sprite = "PLAY";
  Frame = 32769;
  Tics = 12;
  Next state = "THUNDFX";
}
#END#

#MODEL#
Model {
State = "THUNDFX";
Scale = 2.0;
Offset XYZ { 0.0 3.0 0.0 };
Md2{File = ""; 
Skin file = "lightning.png";
};
}
Model {
State = "THUNDFX2";
Scale = 2.0;
Offset XYZ { 0.0 3.0 0.0 };
Md2{File = "lightning.md2"; 
Skin file = "lightning.png";
};
}
Model {
State = "THUNDFX3";
Scale = 2.0;
Offset XYZ { 0.0 3.0 0.0 };
Md2{File = "lightning.md2"; 
Skin file = "lightning.png";
};
}
#END#
#PARTICLES#
Generator
{
State = "THUNDFX3";
Flags = "gnf_extra gnf_blendadd";
Speed = 0.5;
Speed Rnd = 0.25;
Vector { 0.0 0.0 0.5 };
Center { 0.0 0.0 0.0 };
Spawn radius = 0.9;
Spawn age = 8;
Max age = -1;
Particles = 1;
Spawn rate = 0.5;
Spawn Rnd = 1.0;
Stage{Type = "pt_point"; Tics = 8; Rnd = 0.5; Color { 0.0 0.0 0.0 0.0 }; Radius = 90.0; Radius Rnd = 0.5; sound = "N3DLIGHTNING";    Flags = "ptf_bright";};
}
#END#

#LIGHT FX#
Light {
  State = "THUNDFX3";
  
  Size = 100;
}

#END#

#SOUND - sfx16khz.pk3#
Sound {
ID = "N3DLIGHTNING";
Lump = "N3DLIGHTNING";
Link pitch = -1;
Link volume = -1;
Priority = 64;
Max channels = -1;
}
#END#

#END OF FILE#