Classes:CeilingTurret

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.
Ceiling turret
Actor type Monster Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number 27 Class Name CeilingTurret
Conversation ID 122 Puzzle Item ID N/A


Classes: CeilingTurret
A turret... on the ceiling. Can be tricky to fight early on in the game due to its respectable amount of health and being relatively tricky to aim at, but they'll only bother you if the alarm has been sounded. They can't hit you if you are directly under them, and it is possible to take them out with the punch dagger in many cases without taking a hit.

DECORATE definition

ACTOR CeilingTurret
{
  Health 125
  Speed 0
  PainChance 0
  Mass 10000000
  Monster
  -SOLID
  -CANPASS
  +AMBUSH
  +SPAWNCEILING
  +NOGRAVITY
  +NOBLOOD
  +NOSPLASHALERT
  +DONTFALL
  MinMissileChance 150
  DeathSound "turret/death"
  States
  {
  Spawn:
    TURT A 5 A_TurretLook
    Loop
  See:
    TURT A 2 A_Chase
    Loop
  Missile:
  Pain:
    TURT B 4 Slow A_ShootGun
    TURT D 3 Slow A_SentinelRefire
    TURT A 4 A_SentinelRefire
    Loop
  Death:
    BALL A 6 Bright A_Scream
    BALL BCDE 6 Bright
    TURT C -1
    Stop
  }
}