Classes:SerpentFX

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Stalker slime ball
Actor type Explosive Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name SerpentFX


Classes: SerpentFX

The slimy green ball of acid thrown by a stalker leader. It makes a "whissing" sound while it travels along.

DECORATE definition

ACTOR SerpentFX
{
  Speed 15
  Radius 8
  Height 10
  Damage 4
  Projectile
  -ACTIVATEIMPACT
  -ACTIVATEPCROSS
  RenderStyle Add
  DeathSound "SerpentFXHit"
  States
  {
  Spawn:
    SSFX A 0
    SSFX A 3 Bright A_PlaySoundEx("SerpentFXContinuous", "Body", 1)
    SSFX BAB 3 Bright
    Goto Spawn+1
  Death:
    SSFX C 4 Bright A_StopSoundEx("Body")
    SSFX DEFGH 4 Bright
    Stop
  }
}