Classes:GunBat

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.
Gun Bat
Actor type Monster Game MiniSpearLogoIcon.png
DoomEd Number 96 Class Name GunBat


Classes: ActorWolfensteinMonsterMutantGunBat

Overview

Replacement for Mutant in the Spear of Destiny mission packs. It appears as a bat with two pistols and behaves identically to the parent.

DECORATE Definition

actor GunBat : Mutant 96
{
  AttackSound "bat/attack"
  DeathSound "bat/death"
  SecretDeathSound "bat/fart"
  DropItem "BlueClip"
  states
  {
    Spawn:
      GBAT A -1 NOP A_Look
      stop
    Path:
      GBAT B 10 NOP A_Chase
      GBAT B 2.5
      GBAT C 7.5 NOP A_Chase
      GBAT D 10 NOP A_Chase
      GBAT D 2.5
      GBAT E 7.5 NOP A_Chase
      loop
    Pain:
      GBAT J 5 A_JumpIf(health & 1, 1)
      goto See
      GBAT K 5
      goto See
    See:
      GBAT B 5 NOP A_Chase
      GBAT B 1.5
      GBAT C 4 NOP A_Chase
      GBAT D 5 NOP A_Chase
      GBAT D 1.5
      GBAT E 4 NOP A_Chase
      loop
    Missile:
      GBAT F 3 A_FaceTarget
      GBAT G 10 bright A_WolfAttack
      GBAT H 5 A_FaceTarget
      GBAT I 10 bright A_WolfAttack
      goto See
    Death:
      GBAT L 3.5 A_Fall
      GBAT M 3.5 A_Scream
      GBAT NO 3.5
      GBAT P -1
      stop
  }
}