sv_singleplayerrespawn

Moderator: GZDoom Developers

Post Reply
User avatar
Rachael
Posts: 13956
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

sv_singleplayerrespawn

Post by Rachael »

https://github.com/rheit/zdoom/pull/869

Simple. Allows you to respawn in single player like you do in multiplayer without any special map flags or bots.
User avatar
Beed28
Posts: 598
Joined: Sun Feb 24, 2013 4:07 pm
Location: United Kingdom

Re: sv_singleplayerrespawn

Post by Beed28 »

Oh yes!

By the way, can you make it so that mods can enforce it? A certain gameplay mod of mine needs it, as it desperately needs it to get rid of the MAPINFO hack it has.
User avatar
Rachael
Posts: 13956
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: sv_singleplayerrespawn

Post by Rachael »

How do you mean? What would be the ideal way for your mod to enable it?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: sv_singleplayerrespawn

Post by Graf Zahl »

Err... MAPINFO?
User avatar
Rachael
Posts: 13956
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: sv_singleplayerrespawn

Post by Rachael »

I'm confused. It's already doable through MAPINFO. If you want it done some other way, give me a sample definition.

But otherwise, for the mod-side idea to work, I think there should be a way to retroactively activate level flags without using "defaultmap" - i.e. if you load it after the previous mod's MAPINFO. That would be much cleaner, in my opinion, and would much more cleanly enable this without the use of hacks.

I am willing to implement a "skillinfo" version of this, though.

This submission is just purely a non-mod way to accomplish the same thing.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: sv_singleplayerrespawn

Post by Edward-san »

I guess what he meant is to not restrict to single specific maps, so something similar to 'allowrespawn' should be allowed in the gameinfo block?

[edit] nevermind, 'gamedefaults' block should accomplish the same. What's the hack here?
User avatar
Rachael
Posts: 13956
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: sv_singleplayerrespawn

Post by Rachael »

I think what they're wanting is for this to be enabled retroactively (enabled in MAPINFO for post-load order), but I suggested an alternate (and in my opinion, cleaner) solution for that - being that there should be a map settings override block if this should be done through MAPINFO.

Regardless, that entire discussion is beyond the scope of this submission.

Without Graf's involvement in this discussion, my wording would have changed instead of addressing him directly, to expressing my opinion that this is the way it should be done, first, and that it would require a separate submission (this would be a more complex system and may or may not require some deeper and more systematic code changes).
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: sv_singleplayerrespawn

Post by Major Cooke »

Graf was addressing Beed28. And yes, mods can enforce it via the use of MAPINFO.
User avatar
Beed28
Posts: 598
Joined: Sun Feb 24, 2013 4:07 pm
Location: United Kingdom

Re: sv_singleplayerrespawn

Post by Beed28 »

I tried "gamedefaults" once. I still had to redefine every map from MAP01 to MAP32. Any map that isn't defined, it isn't applied to.

I've cooked up an example wad. In MAP01 and MAP03, you'll be able to respawn, there's low gravity, and you have full air control. But only in MAP01 and MAP03. It doesn't apply to the other maps at all. I've tried "defaultmap", "adddefaultmap" and "gamedefaults". None of those solve the problem.
Attachments
mapinfotest.wad
(578 Bytes) Downloaded 53 times
User avatar
Rachael
Posts: 13956
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: sv_singleplayerrespawn

Post by Rachael »

That's because of the issue I already addressed earlier when I thought Graf was addressing me.

Those are pre-load headers. They only work for entries that are subsequent (following). What you're looking for is something that does not yet exist, probably due to technical reasons - an override header.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”