Classes:MapRevealer
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:
|
Map revealer | |||
---|---|---|---|
Actor type | Internal | Game | (ZDoom) |
DoomEd Number | None | Class Name | MapRevealer |
Classes: Inventory→MapRevealer
→Allmap
→StrifeMap
→SuperMap
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.
Examples:
ZScript
Class TheMap : MapRevealer 1337 { Default { inventory.pickupsound "misc/p_pkup"; inventory.pickupmessage "Cool map item!"; inventory.respawntics 2010; +COUNTITEM } States { Spawn: MMAP A -1 bright; stop; } }
DECORATE
actor TheMap : MapRevealer 1337 { inventory.pickupsound "misc/p_pkup" inventory.pickupmessage "Cool map item!" inventory.respawntics 2010 +COUNTITEM states { Spawn: MMAP A -1 bright stop } }
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 {}
Categories:
- Chex Quest actors
- Chex Quest internal actors
- Chex Quest 3 actors
- Chex Quest 3 internal actors
- Doom actors
- Doom internal actors
- Doom II actors
- Doom II internal actors
- Heretic actors
- Heretic internal actors
- Hexen actors
- Hexen internal actors
- Strife actors
- Strife internal actors
- ZDoom actors
- ZDoom internal actors
- Internal