Classes:Pod

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
Actor type Hazard Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 2035 Class Name Pod
Spawn ID 125 Identifier T_POD


Classes: Pod
A strange fungal growth, floating a few inches over the ground, which explodes when damaged too much. Like Doom's explosive barrels, chain reactions are possible. In places where a PodGenerator is present, new pods will appear spontaneously to replace exploded pods.

DECORATE definition

ACTOR Pod
{
  Health 45
  Radius 16
  Height 54
  PainChance 255
  +SOLID
  +NOBLOOD
  +SHOOTABLE
  +DROPOFF
  +WINDTHRUST
  +PUSHABLE
  +SLIDESONWALLS
  +CANPASS
  +TELESTOMP
  +DONTMORPH
  +NOBLOCKMONST
  +DONTGIB
  +OLDRADIUSDMG
  DeathSound "world/podexplode"
  PushFactor 0.5

  action native A_PodPain(class<Actor> podtype = "PodGoo");
  action native A_RemovePod();

  States
  {
  Spawn:
    PPOD A 10
    Loop
  Pain:
    PPOD B 14 A_PodPain
    Goto Spawn
  Death:
    PPOD C 5 Bright A_RemovePod
    PPOD D 5 Bright A_Scream
    PPOD E 5 Bright A_Explode
    PPOD F 10 Bright
    Stop
  Grow:
    PPOD IJKLMNOP 3
    Goto Spawn
  }
}