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 will 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.
Map revealer
Actor type Internal Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number None Class Name MapRevealer

Classes: InventoryMapRevealer

MapRevealers make the entire automap visible. Essentially this is like Doom's computer map without predefined sprites.

Custom map revealers

Any item that inherits from MapRevealer can always be picked up and will make the entire level visible in the automap. This class doesn't define any properties and only uses the Inventory properties that are related to picking up the item (i.e. pickup message and pickup sound) and the respawn time.



Class TheMap : MapRevealer 1337
     inventory.pickupsound "misc/p_pkup";
     inventory.pickupmessage "Cool map item!";
     inventory.respawntics 2010;
    MMAP A -1 bright;


actor TheMap : MapRevealer 1337
  inventory.pickupsound "misc/p_pkup"
  inventory.pickupmessage "Cool map item!"
  inventory.respawntics 2010
    MMAP A -1 bright

MapRevealer definition

ZScript definition

class MapRevealer : Inventory
	override bool TryPickup (in out Actor toucher)
		level.allmap = true;
		GoAwayAndDie ();
		return true;

DECORATE definition

ACTOR MapRevealer : Inventory native {}