Bug : respawn into solid objects? + (few other questions)

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Bug : respawn into solid objects? + (few other questions)

Post by cocka »

Hello!

When you are in multiplayer or single but with cooperative settings AND sv_samespawnspot is true it can happen that you are shot into a solid object (for example a tree or a torch) and you'll respawn into the solid object. I guess this is not the normal behaviour. It would be nice if the player was respawned at the start spot just like it happens when you die in an instant death sector.

Other problem is the following:

With the aforementioned dmflag set to true, if you step on an instant death floor, you'll be respawned to one of the player startspots.
But if it is set in acs by [wiki]Sector_SetDamage[/wiki] with very high (at least a value being higher than the actual amount of player's health) damage values i.e. 1000<= the player will respawn on the same place where there is the instant death floor. I think the player in this case should be respawned to one of the player start spots. These damaging floors are placed usually at the bottom of deep chasms, so the player is trapped.

My conception would be:

Somehow get the player's max health (I mean the max amount of health that (s)he can reach during the entire gameplay) and if the mapper sets a higher amount in acs then it could be regarded as an instant death floor so the player wouldn't be spawned to the same "instant" death floor.

Here is a demonstration wad:
floordamage.7z
(65.23 KiB) Downloaded 66 times
Start it with the following command:

Code: Select all

zdoom floordamage.wad -iwad doom2.wad -host 1 -warp 1 +sv_samespawnspot 1 +sv_respawnprotect 1
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Bug : respawn into solid objects? + (few other questions

Post by NeuralStunner »

Probably the best solution would be to only spawn where you died if killed by something other than "the world". We can generally assume that any death not caused by a monster or player is of the trap variety, and those don't tend to become any safer after killing one victim.
User avatar
Major Cooke
Posts: 8218
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: Bug : respawn into solid objects? + (few other questions

Post by Major Cooke »

Spawn Where Died might want to be disabled for landing in instant death sectors.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Bug : respawn into solid objects? + (few other questions

Post by _mental_ »

I think damaging floor issue can fixed like this.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Bug : respawn into solid objects? + (few other questions

Post by Graf Zahl »

That won't catch anything, of course - if a player dies by enemy fire in a damaging sector this won't trigger, and there may be some scripted situation where this triggers but shouldn't. Overall, it's a good idea, though, so I merged it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Bug : respawn into solid objects? + (few other questions

Post by Graf Zahl »

Thinking about this again, there's really nothing more that can be done. Spawning into solid objects is not an issue because ZDoom's collision detection code allows the player to move out again and the cases this does not catch cannot be reliably detected.
Post Reply

Return to “Closed Bugs [GZDoom]”