Skip to content

Add low population features to Map Vote System - #461

Open
Faramour wants to merge 1 commit into
Source2ZE:devfrom
Faramour:mapvote_lowpop
Open

Add low population features to Map Vote System#461
Faramour wants to merge 1 commit into
Source2ZE:devfrom
Faramour:mapvote_lowpop

Conversation

@Faramour

Copy link
Copy Markdown
Collaborator

PR adds two features to Map Vote system that are active when server is in "Low Population" (low player count) state:

  • Nominations can ignore map cooldowns (other restrictions like min/max player count requirements still apply)
  • Played maps don't go on cooldown (and don't trigger group cooldown)

These features function when server is at or below a player count threshold controlled by cs2f_vote_lowpop_max_count CVAR.
The nominations related feature is based on current player count, so nominations will become invalid once threshold player count is crossed. The "no cooldown on played maps" feature is based on maximum player count reached during map's playtime - cooldown does not get applied as long as maximum player count during the session was at most equal to the threshold player count.

Did very brief testing, so it might require more thorough testing on a live server to see if it works without issues.

I'd also ask if different behavior introduced by this PR would need changes or additions to chat messages to tell players why their nomination got reset or why map doesn't go on cooldown.

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