Skip to content

Respawn timer fix

terencehill requested to merge terencehill/respawn_timer_fix into master

Improve respawn timer when max respawn delay is higher than respawn delay

Example:
g_forced_respawn 1
g_respawn_delay_max 10
g_respawn_delay_small 7

  • Current timer behaviour:

"You are dead, wait 10 seconds before respawning" (and counting down)
if you press the jump key after 4 seconds it changes to:
"Respawning in 6 seconds..." (and counting down)
but you respawn when it shows:
"Respawning in 3 seconds..."

  • New behaviour (fixed):

"You are dead, wait 7 seconds before respawning" (and counting down)
if you press the jump key after 4 seconds it changes to:
"Respawning in 3 seconds..." (and counting down)
and you respawn when the countdown ends, as expected
if you let pass 7 seconds without pressing the jump key, it shows:
"Respawning in 3 seconds..." (and counting down)
and you respawn when the countdown ends, as expected

Merge request reports