Added new cheat codes for automap:
- IDDKT and RAVKMAP (for Doom and Heretic respectively) centers automap on alive thing with the COUNTKILL flag. If reused, it moves to next alive thing.
- IDDIT and RAVIMAP (for Doom and Heretic respectively) centers automap on item with the COUNTITEM flag. If reused, it moves to next item.
- IDDST and RAVSMAP (for Doom and Heretic respectively) centers automap on sector marked as secret. If reused, it moves to next secret sector.
The idea is based on similar cheat codes from ports such as Woof!, DSDA, etc. It is a very useful tool when playtesting maps and detecting various gameplay issues. Or when you want to find a very obscure secret on a certain map.
Made with reference to the Woof! source code, but implemented slightly differently. I moved everything related to the automap to the am_map file, leaving only the cheat codes themselves in m_cheat. The mapportal_overlay setting is taken into account to correctly display on maps with linked portals (tested on my special udmf map).
I also made the functions with reuse in mind for the future. For example, it is possible to implement a flexible console command that could be used to search for objects of certain types with certain flags, etc.
Branch: dron12261-New_automap_cheats
Pull request: team-eternity#717
Added new cheat codes for automap:
The idea is based on similar cheat codes from ports such as Woof!, DSDA, etc. It is a very useful tool when playtesting maps and detecting various gameplay issues. Or when you want to find a very obscure secret on a certain map.
Made with reference to the Woof! source code, but implemented slightly differently. I moved everything related to the automap to the am_map file, leaving only the cheat codes themselves in m_cheat. The mapportal_overlay setting is taken into account to correctly display on maps with linked portals (tested on my special udmf map).
I also made the functions with reuse in mind for the future. For example, it is possible to implement a flexible console command that could be used to search for objects of certain types with certain flags, etc.