bradharding / doomretro

The classic, refined DOOM source port. For Windows PC.
https://www.doomretro.com
GNU General Public License v3.0
714 stars 89 forks source link

Map command to change maps does not reset the player #860

Closed KLNeidecker closed 1 month ago

KLNeidecker commented 1 month ago

If you do a map command, map map01 or the like, with less than 100% health, with any shotgun ammo, etc., the map changes but you retain your current health and ammo.

It seems the player object isn't being reset to default on the use of the map command.

bradharding commented 1 month ago

This is actually by design, as I prefer it this way. The IDCLEV cheat works the same. But since you bring it up, I may consider a separate resetplayer CCMD. Or, you could always do this:

alias resetplayer "take all; give pistol; give boxofbullets"
KLNeidecker commented 1 month ago

Excellent. Not a problem, leave it as it is if that's the preference.

To be honest, I've spent so many years typing "map" in consoles I totally forgot IDCLEV worked like that.

Your alias idea will work just fine for testing maps.