Classes:ChickenPlayer

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 Player Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name ChickenPlayer


Classes: PlayerPawnChickenPlayer
Players hit by a morph ovum shot are temporarily turned into this. Upon morphing back to their original shape, their health is reset to the default for their class (usually 100). Using the tome of power puts an end to the transformation. Not to be confused with the chicken class.

DECORATE definition

ACTOR ChickenPlayer : PlayerPawn native
{
  Health 30
  ReactionTime 0
  PainChance 255
  Radius 16
  Height 24
  Speed 1
  Gravity 0.125
  +NOSKIN
  +CANSUPERMORPH
  PainSound "chicken/pain"
  DeathSound "chicken/death"
  Player.JumpZ 1
  Player.Viewheight 21
  Player.ForwardMove 1.22, 1.22
  Player.SideMove 1.22, 1.22
  Player.SpawnClass "Chicken"
  Player.SoundClass "Chicken"
  Player.DisplayName "Chicken"
  Player.MorphWeapon "Beak"
  -PICKUP
  States
  {
  Spawn:
    CHKN A -1
    Stop
  See:
    CHKN ABAB 3
    Loop
  Melee:
  Missile:
    CHKN C 12
    Goto Spawn
  Pain:
    CHKN D 4 A_Feathers
    CHKN C 4 A_Pain
    Goto Spawn
  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
  }
}