Classes:PodGenerator

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.
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
  }
}