Classes:Chicken

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.
Chicken
Actor type Monster Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name Chicken
Spawn ID 122 Identifier T_CHICKEN


Classes: MorphedMonsterChicken
Monsters hit by a morph ovum shot, unless immune to morphing thanks to the DONTMORPH flag, are turned into this.

DECORATE definition

ACTOR Chicken : MorphedMonster
{
  Health 10
  Radius 9
  Height 22
  Mass 40
  Speed 4
  PainChance 200
  Monster
  -COUNTKILL
  +WINDTHRUST
  +DONTMORPH
  +FLOORCLIP
  SeeSound "chicken/pain"
  AttackSound "chicken/attack"
  PainSound "chicken/pain"
  DeathSound "chicken/death"
  ActiveSound "chicken/active"
  Obituary "$OB_CHICKEN"
  States
  {
  Spawn:
    CHKN AB 10 A_Look
    Loop
  See:
    CHKN AB 3 A_Chase
    Loop
  Pain:
    CHKN D 5 A_Feathers
    CHKN C 5 A_Pain
    Goto See
  Melee:
    CHKN A 8 A_FaceTarget
    CHKN C 10 A_CustomMeleeAttack(random[ChicAttack](1,2))
    Goto See
  Death:
    CHKN E 6 A_Scream
    CHKN F 6 A_Feathers
    CHKN G 6
    CHKN H 6 A_NoBlocking
    CHKN IJK 6
    CHKN L -1
    Stop
  }
}