Classes:SectorFlagSetter

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.
Sector Flag-Setter
Actor type Internal Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number 9041 Class Name SectorFlagSetter


Classes: SectorFlagSetter

This actor sets extra flags for the sector it is placed within. These flags cannot be defined in the normal way for Hexen-format maps because there is no space left in the WAD format for them, so this actor allows mappers access to these flags without having to use the UDMF format.

To use, place the actor within the target sector and set its first argument to the desired flag value. If setting more than one flag, add their values together and place the result in the actor's first argument.

Currently the following flags can be used:

  • SECF_SILENT (1)
Actors in this sector make no noise.
  • SECF_NOFALLINGDAMAGE (2)
Actors don't take falling damage from hitting this sector's floor.
  • SECF_FLOORDROP (4)
Actors in this sector always fall with the floor, even if it is lowering very fast.
  • SECF_NORESPAWN (8)
When the "Spawn at same spot" DMFlag is set, players will not be allowed to respawn in this sector.

DECORATE definition

ACTOR SectorFlagSetter native
{
  +NOBLOCKMAP
  +NOGRAVITY
  +DONTSPLASH
  RenderStyle None
}