A_PainDie

From ZDoom Wiki

Jump to: navigation, search

A_PainDie [(string spawntype)]


The death effect of Doom's Pain Elemental. 3 actors of the specified type are shot in different directions. If no parameter is specified it will shoot Lost Souls.

Examples

This is a Shotgun Zombie that uses A_PainDie to spawn not Lost Souls, but Arch-Viles:

actor SummoningShotgunGuy 3009
{
  obituary "%o was shot by a sergeant."
  health 30
  radius 20
  height 56
  mass 100
  speed 8
  painchance 170
  seesound "shotguy/sight"
  attacksound "shotguy/attack"
  painsound "shotguy/pain"
  deathsound "shotguy/death"
  activesound "shotguy/active"
  dropitem "Shotgun" 256
  MONSTER
  +FLOORCLIP
  states
  {
  Spawn:
    SPOS AB 10 A_Look
    loop
  See:
    SPOS AABBCCDD 3 A_Chase
    loop
  Missile:
    SPOS E 10 A_FaceTarget
    SPOS F 10 bright A_SPosAttack
    SPOS E 10
    goto See
  Pain:
    SPOS G 3
    SPOS G 3 A_Pain
    goto See
  Death:
    SPOS H 5
    SPOS I 5 A_Scream
    SPOS J 5 A_NoBlocking
    SPOS K 5 A_PainDie("Archvile")
    SPOS L -1
    stop
  XDeath:
    SPOS M 5
    SPOS N 5 A_XScream
    SPOS O 5 A_NoBlocking
    SPOS PQRST 5
    SPOS U -1
    stop
  Raise:
    SPOS LKJIH 5
    goto See
  }
}
Personal tools