forked from Person8880/Shine
-
Notifications
You must be signed in to change notification settings - Fork 0
Vote Scramble
Person8880 edited this page May 6, 2013
·
9 revisions
The vote scramble plugin provides a vote to scramble the teams in a similar way to Team Fortress 2. If enough players vote to scramble, the teams will be shuffled either randomly or based on player score.
Unlike vote random, this is an instantaneous, one time shuffle of the teams. It does not block team switching afterwards. However, it can sort the teams based on player score, not just randomly.
This plugin was mostly an expirement, I plan to overhaul random/scramble voting soon.
The default config file should look something like this:
{ "IgnoreSpectators": true, "MinPlayers": 10, "IgnoreCommanders": true, "ScrambleType": 2, "VoteDelay": 5, "PercentNeeded": 0.75, "VoteTimeout": 120, }
The file should be called “VoteScramble.json” and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).
Option | Description |
---|---|
IgnoreSpectators | Sets whether to ignore spectators/ready room players when switching teams. |
IgnoreCommanders | Sets whether to switch commanders. |
MinPlayers | Sets the minimum number of players required on the server to be able to start a vote. |
ScrambleType | Sets the type of the scramble. Currently there are 2 options, 1 will scramble at random with no method. 2 will scramble based on player score. |
PercentNeeded | Percentage of the server population needed for a vote to succeed. |
VoteDelay | Time in minutes after a successful vote before a new scramble vote is allowed. |
VoteTimeout | After this many seconds with no votes, the vote count is reset to 0 if it never passed. |
Command | Chat Command | Arguments | Description |
---|---|---|---|
sh_votescramble | !votescramble or !scramble or !scrambleteams or !scramblevote | N/A | Votes to scramble the teams. |
sh_scrambleimmune | N/A | N/A | Not a command, but grants immunity from being switched by a scramble vote. |