vote_controller
Jump to navigation
Jump to search
| CVoteController |
vote_controller is a logical entity available in all
Source games except ![]()
. It controls the voting system in game. It's spawned automatically in games where voting by players is available such as ![]()
Left 4 Dead series,
Team Fortress 2,
Counter-Strike: Global Offensive. In
3 vote_controllers are spawned, one global, one for blue team and one for red team.
If the game has round restart mechanics this entity may not behave as expected:
|
ConVars
Team Fortress 2 branch
| Cvar/Command | Parameters or default value | Descriptor | Effect |
|---|---|---|---|
| sv_vote_timer_allow_early_finish | 1 | If all votes are in, whether to end the vote (for debugging) | |
| sv_vote_failure_timer_mvm | 120 | A vote that fails in MvM cannot be re-submitted for this long | |
| sv_vote_quorum_ratio | 0.6 | The minimum ratio of eligible players needed to pass a vote. Min 0.1, Max 1.0. | |
| sv_vote_allow_spectators | 0 | Allow spectators to vote? | |
| sv_vote_ui_hide_disabled_issues | 1 | Suppress listing of disabled issues in the vote setup screen. | |
| sv_vote_holder_may_vote_no | 0 | 1 = Vote caller is not forced to vote yes on yes/no votes. | |
| sv_vote_bots_allowed | 0 | Allow bots to vote or not. |
Left 4 Dead / Left 4 Dead 2
ConCommands
| Cvar/Command | Parameters or default value | Descriptor | Effect |
|---|---|---|---|
| callvote | string | issue to be voted on | Start a vote on an issue. If no parameters provided then it lists available issues if the game supports vote_controller . |
| listissues | void | void | List all the issues that can be voted on. |
listissues
Team Fortress 2
[Todo]
Left 4 Dead / Left 4 Dead 2
---Vote commands--- callvote ChangeDifficulty Impossible callvote ChangeDifficulty Expert callvote ChangeDifficulty Hard callvote ChangeDifficulty Normal callvote RestartGame callvote Kick <userID> callvote ChangeMission callvote ReturnToLobby callvote ChangeChapter callvote ChangeAllTalk --- End Vote commands---
Counter-Strike: Global Offensive
[Todo]