Classes:Officer

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.
Officer
Actor type Monster Game MiniWolf3DLogoIcon.png
DoomEd Number 12 Class Name Officer


Classes: ActorWolfensteinMonsterOfficer
 →LostOfficer

Overview

White-uniformed operational officer. Attacks with a pistol, but has a high run speed and is quick on the draw.

DECORATE Definition

actor Officer: WolfensteinMonster 12
{
  Points 400
  Health 50
  Speed 1, 5
  SightTime 2
  DropItem "Clip"
  AttackSound "officer/attack"
  DeathSound "officer/death"
  SecretDeathSound "officer/fart"
  SeeSound "officer/sight"
  states
  {
    Spawn:
      OFFI A -1 NOP A_Look
      stop
    Path:
      OFFI B 10 NOP A_Chase
      OFFI B 2.5
      OFFI C 7.5 NOP A_Chase
      OFFI D 10 NOP A_Chase
      OFFI D 2.5
      OFFI E 7.5 NOP A_Chase
      loop
    Pain:
      OFFI I 5 A_JumpIf(health & 1, 1)
      goto See
      OFFI J 5
      goto See
    Missile:
      OFFI F 3 A_FaceTarget
      OFFI G 10 A_FaceTarget
      OFFI H 5 bright A_WolfAttack
      goto See
    See:
      OFFI B 5 NOP A_Chase
      OFFI B 1.5
      OFFI C 4 NOP A_Chase
      OFFI D 5 NOP A_Chase
      OFFI D 1.5
      OFFI E 4 NOP A_Chase
      loop
    Death:
      OFFI K 5.5 A_Fall
      OFFI L 5.5 A_Scream
      OFFI MN 5.5
      OFFI O -1
      stop
  }
}