Skip to content

Conversation

@m-arcuri
Copy link
Contributor

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

Adds a new values to maplist.cfg:

"cooldown"

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

"minPlayers"

  • Set the minimum players required to be online to nominate the map

"maxPlayers"

  • Set the maximum player limit for nominating the map

Map cooldowns are counted at the end of next map vote instead of at the end of the current one, matching the old CS:GO map manager behaviour.

Using !nominate without any arguments and without having nominated a map will instead list all maps and their cooldowns in console. If a map cannot be nominated due to Min/Max player limits, it will display this information.

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.

@m-arcuri m-arcuri force-pushed the mapvote-cooldown-config branch from 7e15a79 to a13210a Compare October 26, 2024 21:47
@m-arcuri m-arcuri changed the title Add map cooldown configuration and saving/loading of map cooldown state Add map cooldown and min/max player configuration, saving of map cooldown state Oct 26, 2024
Copy link
Contributor

@Vauff Vauff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to remove existing nominations if player count goes out of bounds, and notify those nomination owners.

@m-arcuri m-arcuri force-pushed the mapvote-cooldown-config branch from a13210a to c46a9b6 Compare November 17, 2024 16:45
@m-arcuri m-arcuri force-pushed the mapvote-cooldown-config branch from c46a9b6 to 65ad87f Compare November 17, 2024 16:49
@Vauff Vauff changed the base branch from main to mapsystem-updates November 20, 2024 16:51
@Vauff Vauff merged commit e994f77 into Source2ZE:mapsystem-updates Nov 20, 2024
3 checks passed
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.

3 participants