Classes:GreenGuard

From ECWolf Wiki
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.
Green Guard
Actor type Monster Game MiniSpearLogoIcon.png
DoomEd Number 93 Class Name GreenGuard


Classes: ActorWolfensteinMonsterGuardGreenGuard

Overview

Alternate version of the Guard for the Spear of Destiny mission packs. Identical in behavior and similar in appearance to the parent, but wears a green uniform.

DECORATE Definition

actor GreenGuard : Guard 93
{
  AttackSound "greenguard/attack"
  DeathSound "greenguard/death"
  SecretDeathSound "greenguard/crash"
  SeeSound "greenguard/sight"
  DropItem "BlueClip"
  states
  {
    Spawn:
      GGRD A -1 NOP A_Look
      stop
    Path:
      GGRD B 10 NOP A_Chase
      GGRD B 2.5
      GGRD C 7.5 NOP A_Chase
      GGRD D 10 NOP A_Chase
      GGRD D 2.5
      GGRD E 7.5 NOP A_Chase
      loop
    See:
      GGRD B 5 NOP A_Chase
      GGRD B 1.5
      GGRD C 4 NOP A_Chase
      GGRD D 5 NOP A_Chase
      GGRD D 1.5
      GGRD E 4 NOP A_Chase
      loop
    Missile:
      GGRD FG 10 A_FaceTarget
      GGRD H 10 bright A_WolfAttack
      goto See
    Pain:
      GGRD I 5 A_JumpIf(health & 1, 1)
      goto See
      GGRD J 5
      goto See
    Death:
      GGRD K 7.5 A_Fall
      GGRD L 7.5 A_Scream
      GGRD M 7.5
      GGRD N -1
      stop
  }
}