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

[Suggestion] [BaseCommands] - Change the amount of eject votes depending on the game length #709

Closed
Wooza42 opened this issue Aug 7, 2018 · 1 comment

Comments

@Wooza42
Copy link

Wooza42 commented Aug 7, 2018

I would like to change the amount of eject votes depending on how much time passed in the round.
The times when the amount of votes changes should be configurable by the server operator.

Further I was thinking to also change the amount of eject votes for in-game replacement commanders but I can't find a nice solution. The idea here would also be that they start usually with a lower amount of votes needed.

@Person8880
Copy link
Owner

Person8880 commented Aug 19, 2018

I've implemented this slightly differently. It's based on the total time a commander has spent in the command chair for the current round, rather than the round's current length. This means a different commander jumping in mid-round will start from 0.

To configure, add entries to the EjectVotesNeeded list:

"EjectVotesNeeded": [
    {
        "FractionOfTeamToPass": 0.5, "MaxSecondsAsCommander": 30
    },
    {
        "FractionOfTeamToPass": 0.75
    }
]

In this example, for the first 30 seconds a commander will require half the team to vote to eject them. After that, they will require 75% of the team to vote.

The MaxSecondsAsCommander decides how long the given entry lasts. You can have as many entries as you want, and should order them by the MaxSecondsAsCommander in ascending order (though the plugin will correct it if you don't). The final entry should omit this so it covers the entire remaining duration (the plugin will validate and correct this if it doesn't).

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

No branches or pull requests

2 participants