Classes:IceGuy

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.
Wendigo
Actor type Monster Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 8020 Class Name IceGuy
Spawn ID 20 Identifier T_ICEGOLEM


Classes: IceGuy
The wendigo, or ice golem, is a creature made of solid ice that is able to throw ice projectiles that upon impact explode into a volley of shards. When slain, a wendigo bursts into ice fragments like frozen corpses do.

DECORATE definition

ACTOR IceGuy
{
  Health 120
  PainChance 144
  Speed 14
  Radius 22
  Height 75
  Mass 150
  DamageType "Ice"
  Monster
  +NOBLOOD
  +TELESTOMP
  +NOICEDEATH
  SeeSound "IceGuySight"
  AttackSound "IceGuyAttack"
  ActiveSound "IceGuyActive"
  Obituary "$OB_ICEGUY" // "%o was frozen solid by a Wendigo."

  action native A_IceGuyLook();
  action native A_IceGuyChase();
  action native A_IceGuyAttack();

  States
  {
  Spawn:
    ICEY A 10 A_IceGuyLook
    Loop
  See:
    ICEY A 4 A_Chase
    ICEY B 4 A_IceGuyChase
    ICEY CD 4 A_Chase
    Loop
  Pain:
    ICEY A 1 A_Pain
    Goto See
  Missile:
    ICEY EF 3 A_FaceTarget
    ICEY G 8 Bright A_IceGuyAttack
    ICEY F 4 A_FaceTarget
    Goto See
  Death:
    ICEY A 1 A_IceGuyDie
    Stop
  Inactive:
    ICEY A -1
    Goto See
  }
}