Classes:PodGenerator

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do NOT need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it will cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
Pod generator
Actor type Map spot Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 43 Class Name PodGenerator
Spawn ID 126 Identifier T_PODGENERATOR


Classes: PodGenerator
Pod generators are invisible actors that constantly try to create more pods around them, stopping only when they have 16 pods they have created themselves currently in existence, or when there is no longer enough room around them to spawn more. A pod created by their native action A_MakePod will appear in its Grow state rather than its spawn state.

DECORATE definition

ACTOR PodGenerator
{
  +NOBLOCKMAP
  +NOSECTOR
  +DONTSPLASH
  AttackSound "world/podgrow"

  action native A_MakePod(class<Actor> podtype = "Pod");

  States
  {
  Spawn:
    TNT1 A 35 A_MakePod
    Loop
  }
}