Classes:Macil1

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.
Macil
Actor type Monster Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number 64 Class Name Macil1
Conversation ID 49, 48, 49 Puzzle Item ID N/A


Classes: Macil1
 →Macil2
Macil is the brave leader of The Front, sworn to fight for freedom and justice! This particular variation of Macil is essentially immune to harm.

DECORATE definition

ACTOR Macil1
{
  Health 95
  Radius 20
  Height 56
  Speed 8
  PainChance 250
  Monster
  -COUNTKILL
  +NOTDMATCH
  +NOICEDEATH
  +NOSPLASHALERT
  +NODAMAGE
  +NEVERRESPAWN
  DamageFactor "Fire", 0.5
  MinMissileChance 150
  SeeSound "macil/sight"
  PainSound "macil/pain"
  ActiveSound "macil/active"
  CrushPainSound "misc/pcrush"
  Tag "$TAG_MACIL1" // "MACIL"
  Obituary "$OB_MACIL" // "%o should have never rebelled against Macil."
  DropItem "BoxOfBullets"
  MaxStepHeight 16
  MaxDropoffHeight 32
  States
  {
  Spawn:
    LEDR C 5 A_Look2
    Loop
    LEDR A 8
    Loop
    LEDR B 8
    Loop
    LEAD ABCD 6 A_Wander
    Loop
  See:
    LEAD AABBCCDD 3 A_Chase
    Loop
  Missile:
  Death:
    LEAD E 2 A_FaceTarget
    LEAD F 2 Bright A_ShootGun
    LEAD E 1 A_SentinelRefire
    Loop
  Pain:
    LEAD Y 3
    LEAD Y 3 A_Pain
    Goto See
  }
}