Classes:Guard

From ECWolf Wiki
Revision as of 13:13, 6 January 2013 by Hair Machine (talk | contribs) (Created page with "{{Actor| | type = Internal | name = Guard | class = Guard }}Classes: {{Class}} → {{Class|WolfensteinMonster}} → Guard<br> == Overview == A brown-uniformed castl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.
Guard
Actor type Internal Game MiniECWolfLogoIcon.png
DoomEd Number None Class Name Guard


Classes: ActorWolfensteinMonster → Guard

Overview

A brown-uniformed castle security guard, attacking with a pistol. The most commonplace enemy in the game.

DECORATE Definition

actor WolfensteinMonster
{
  points 100
  health 25
  speed 1, 3
  sighttime 1, 4
  dropitem "Clip"
  attacksound "guard/attack"
  deathsound "guard/death"
  secretdeathsound "guard/fart"
  seesound "guard/fart"
  states
  {
    Spawn:
      GARD A -1 NOP A_Look
      stop
    Path:
      GARD B 10 NOP A_Chase
      GARD B 2.5
      GARD C 7.5 NOP A_Chase
      GARD D 10 NOP A_Chase
      GARD D 2.5
      GARD E 7.5 NOP A_Chase
      loop
    See:
      GARD B 5 NOP A_Chase
      GARD B 1.5
      GARD C 4 NOP A_Chase
      GARD D 5 NOP A_Chase
      GARD D 1.5
      GARD E 4 NOP A_Chase
      loop
    Missile:
      GARD FG 10 A_FaceTarget
      GARD H 10 bright A_WolfAttack
      goto See
    Pain:
      GARD I 5 A_JumpIf(health & 1, 1)
      goto See
      GARD J 5
      goto See
    Death:
      GARD K 7.5 A_Fall
      GARD L 7.5 A_Scream
      GARD M 7.5
      GARD N -1
      stop
  }
}