Classes:BossBrain

From ZDoom Wiki
Jump to: navigation, search
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.
Boss brain
Actor type Monster Game MiniDoom2LogoIcon.png
DoomEd Number 88 Class Name BossBrain


Classes: BossBrain

This actor is used to represent the exposed brain behind the hole in the Icon of Sin's skull. As an easter-egg from id Software, its sprites represent the severed head of John Romero on a pike.

DECORATE definition

ACTOR BossBrain
{
  Health 250
  Mass 10000000
  PainChance 255
  +SOLID
  +SHOOTABLE
  +NOICEDEATH
  +OLDRADIUSDMG
  PainSound "brain/pain"
  DeathSound "brain/death"
  States
  {
  BrainExplode:
    MISL BC 10 Bright
    MISL D 10 A_BrainExplode
    Stop
  Spawn:
    BBRN A -1
    Stop
  Pain:
    BBRN B 36 A_BrainPain
    Goto Spawn
  Death:
    BBRN A 100 A_BrainScream
    BBRN AA 10
    BBRN A -1 A_BrainDie
    Stop
  }
}

note: A_BrainScream and A_BrainExplode spawn a rocket and modify it so it results in a projectile like this:

ACTOR BossRocket : Rocket
{
  States
  {
  Spawn:
    MISL BC 10 Bright
    MISL D 10 Bright A_BrainExplode
    Stop
  }
}