Description
Allows players in a server to initialize a vote whether a certain player should be switched to the opposing team or not. After the vote is started, players can vote if they want the player to be switched or not.
The player that will be switched does not lose anything (Not kills or whatever)
If the amount of people that vote 'No' is more or equal than the amount of people that vote 'Yes', the vote is cancelled.
Installation
Installation is easy. Download the 2 files, place them in your System and then open up your DeusEx.ini. Find the following:
- Code: Select all
[DeusEx.DeusExGameEngine]
After that, add this:
ServerActors=MMSwitchVote100.VoteMutator
Then open Mutators.ini and add this at the bottom:
[MMSwitchVote100.VoteMutator]
VoteLength=3
RequiredPercentage=60
Usage
This mod is easy to use, I hope.
There are 3 available commands:
- Code: Select all
Mutate Switch.Vote [PlayerID]
This starts a vote concering the player with the given PlayerID.
You can obtain a playerID by typing 'playerlist' or by looking behind his name when he says something (Example: 'Player(5): HI!')
- Code: Select all
Mutate Switch.Yes
This votes 'Yes', in favour of transferring the player, when the vote is initalized.
- Code: Select all
Mutate Switch.No
This votes 'No', against transferring the player, when the vote is initalized.
Explanation
There are 2 configurable variables:
VoteLength
RequiredPercentage
VoteLength is the amount of time the mutator should wait before ending the vote.
This gets multiplied by 10. So 3 becomes 30 seconds.
RequiredPercentage is the required percentage of people that vote 'Yes'.
For example, if 3 out of 10 players vote 'Yes', the percentage is 30%.
Known Bugs
None so far. Please, report if found asap!
Special Thanks
Allan - Helping me testing this mod.
SOURCE IS POSTED IN SCRIPTING SOCIETY