Skip to content
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

Add map cooldown configuration and saving/loading of map cooldown state #288

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

m-arcuri
Copy link
Contributor

@m-arcuri m-arcuri commented Sep 1, 2024

Adds a new value to maplist.cfg: "cooldown"

  • Use this to configure the cooldown length of each map individually

Map cooldowns are counted on map initialization instead of at the end of the map vote.

Using !nominate without any arguments and without having nominated a map will instead list all maps and their cooldowns in console.

Writes cooldown keyvalues to "addons/cs2fixes/configs/cooldowns.cfg" whenever map cooldowns are decremented. This file will be read when the map list is loaded to restore the remaining cooldown lengths from the previous session. If not found, all maps will start as available to nominate.

List cooldown of all maps when running !nominate without having set a nomination
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