Skip to content

[TF2 Feature Request] Add mp_timelimit_min to control the min time limit required to switch maps after a round ends #1206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bradasparky
Copy link

@Bradasparky Bradasparky commented Apr 19, 2025

Notes:

  • The following doesn't include Arena or Tournament mode because Sudden Death cannot occur in these modes
  • Time limit refers to the map time remaining from mp_timelimit

Proposal

Currently, once a round ends and the time limit is below a hardcoded 5 minutes, the map will change rather than playing out the remaining map time, and if mp_match_end_at_timelimit 0 then the full round would play out before switching maps. This PR proposes a new convar mp_timelimit_min (default: 5) that allows server operators to change the minimum time limit to any number they'd like. The requirement of mp_timelimit_min being under the value of mp_timelimit is still required.

Theory Behind The Old Hardcoded Value

In September of 2007 there was a patch note When a round finishes, if there are less than 5 minutes left on the time limit, the server now goes ahead and switches level right away, instead of going into Sudden Death., wherein the hardcoded minimum time limit was most likely to have been added. There was also a comment left next to the code explaining why this change was made. If there's less than 5 minutes to go, just switch now. This avoids the problem of sudden death modes starting shortly after a new round starts.

Sudden Death will trigger under two conditions

  1. During an active round if mp_match_end_at_timelimit 1 and the time limit hits 0
  2. During an active round if mp_stalemate_enable 1 and a stalemate occurs

Why I Believe The Hardcoded Value Is Outdated

In January of 2008, mp_stalemate_enable (default: 0) was added for server operators to decide if they want Sudden Death to occur. However, the hardcoded minimum time limit of 5 minutes still takes effect regardless of mp_stalemate_enable's value. This doesn't make sense because the comment suggests that the minimum time limit of 5 minutes was set specifically to prevent Sudden Death from occuring when rounds were given less than 5 minutes to play out. In 2025 where server operators have the choice of enabling Sudden Death, and when Sudden Death is off by default, it makes sense to me that server operators should have the ability to modify the minimum time limit. For example, if tf_timelimit_min 0 maps can run the full mp_timelimit and start new rounds up until the very last second before changing maps. Any rounds which start in the last few seconds could be considered a bonus round with mp_match_end_at_timelimit 0. Should servers want Sudden Death enabled then the default value of mp_timelimit_min 5 is there to accomodate them. Servers have been running with this minimum time limit for over a decade and a half so I believe having the default value mimic the hardcoded value of 5 is justified.

Video Preview

Note: When the scoreboard appears and my weapon disappears, that means the server is going to changelevel. mp_bonusroundtime is set to 5 seconds

mp_timelimit_min_demonstration_1.mp4

@Bradasparky Bradasparky changed the title [TF2] Add mp_timelimit_min to control the min time limit required to switch maps after a round ends [TF2 Feature Request] Add mp_timelimit_min to control the min time limit required to switch maps after a round ends Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant