Bug 879

Summary: spawn delay behavior
Product: Odamex Reporter: JKist3 <jkist3>
Component: Server & ClientAssignee: Odamex Bug Reporter <odamex-bug-reporter>
Status: REOPENED ---    
Severity: normal CC: grandpachuck187
Priority: P1    
Version: 0.6.x   
Hardware: All   
OS: All   

Description JKist3 2012-07-21 05:51:16 UTC
It's been brought to my attention that zdaemon has a few tic buffer between when u die and when u can spawn, and odamex does not (to try and emulate doom2.exe insta spawns).  After testing odamex a while i do notice the timings for spawns im used to is off for sure.  I was thinking it was due to the ticbuffer but maybe its this as well or a combination of the two.  I'd like to propose making a server setting where you can configure the amount of time between when someone dies and someone respawns. This would effectively act as a dmflag just like how odamex currently has zdoom physics vs exe physics and also double by making servers be able to get creative for certain games/modes.
Comment 1 Dr. Sean 2012-07-24 19:25:24 UTC
The behavior of sv_ticbuffer will not have an effect on this since the server's buffer of ticcmds is essentially cleared when a player dies.  More specifically, the server acts as though sv_ticbuffer is disabled for any player that is dead.

The rest of the report seems to mirror other comments I've received from longtime ZD players as well.
Comment 2 Dr. Sean 2012-08-13 18:41:23 UTC
After some investigation, it shows that ZDoom does in fact add a 35 tic (1 second) delay before a player can respawn, whereas Odamex removed the delay as it seriously affect vanilla demo compatibility and tactics.
Comment 3 Dr. Sean 2012-08-13 20:26:22 UTC
The server cvar sv_zdoomspawndelay was added in r3333 to allow admins to enable this behavior. Please test and confirm.
Comment 4 JKist3 2012-10-18 00:31:07 UTC
I've tested this on a new server and it seems to work great.  Just fyi I think zdaemon has a lower respawn tic delay than csdoom for some reason (but not 0), the delay implemented seems to be the one in csdoom, not that I have a problem with it.
Comment 5 Mike Lightner 2012-11-07 02:53:31 UTC
Thanks, closing bug.
Comment 6 JKist3 2013-02-19 08:25:21 UTC
As mentioned before zdaemon has a lower spawn delay than some other zdoom ports.  I haven't really cared too much but other players do.  Making the spawn delay in tics configurable by the server seems like a good solution and would be an upgrade to the current flag.
Comment 7 JKist3 2013-03-30 07:05:00 UTC
ZDaemon shortened the zdoom spawn delay to 12-13 tics.  If we could be able to at least set the spawn delay to 12 or 13 tics that would be ideal.
Comment 8 Dr. Sean 2013-04-10 16:15:24 UTC
co_zdoomspawndelay has been changed to sv_spawndelaytime. The delay time is now configurable.