Classes:SectorFlagSetter

From ZDoom Wiki
Jump to navigation Jump to 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.
Sector Flag-Setter
Actor type Internal Game MiniZDoomLogoIcon.png
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
}