Classes:Pod

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's actually harmful as it can 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.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Pod
Actor type Hazard Game MiniHereticLogoIcon.png
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
  }
}