Vote controller: Difference between revisions
Jump to navigation
Jump to search
Important:This is a preserved entity in 


.
If the game has round restart mechanics this entity may not behave as expected:
Warning:Killing this entity may crash the game.
No edit summary |
|||
Line 15: | Line 15: | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|sv_vote_timer_duration|15||How long to allow voting on an issue}} | {{varcom|sv_vote_timer_duration|15||How long to allow voting on an issue}} | ||
{{varcom|sv_vote_timer_allow_early_finish|1||If all votes are in, whether to end the vote (for debugging)}} | {{varcom|sv_vote_timer_allow_early_finish {{tf2}}|1||If all votes are in, whether to end the vote (for debugging)}} | ||
{{varcom|sv_allow_votes|1||Allow voting?}} | {{varcom|sv_allow_votes|1||Allow voting?}} | ||
{{varcom|sv_vote_failure_timer|300||A vote that fails cannot be re-submitted for this long}} | {{varcom|sv_vote_failure_timer|300 (0 in {{l4ds}})||A vote that fails cannot be re-submitted for this long}} | ||
{{varcom|sv_vote_failure_timer_mvm {{tf2}}|120||A vote that fails in MvM cannot be re-submitted for this long}} | {{varcom|sv_vote_failure_timer_mvm {{tf2}}|120||A vote that fails in MvM cannot be re-submitted for this long}} | ||
{{varcom|sv_vote_creation_timer|150||How long before a player can attempt to call another vote (in seconds).}} | {{varcom|sv_vote_creation_timer|150 (180 in {{l4d2}}, 30 in {{l4d}})||How long before a player can attempt to call another vote (in seconds).}} | ||
{{varcom|sv_vote_quorum_ratio|0.6||The minimum ratio of eligible players needed to pass a vote. Min 0.1, Max 1.0.}} | {{varcom|sv_vote_quorum_ratio {{tf2}}|0.6||The minimum ratio of eligible players needed to pass a vote. Min 0.1, Max 1.0.}} | ||
{{varcom|sv_vote_allow_spectators|0||Allow spectators to vote?}} | {{varcom|sv_vote_allow_spectators {{tf2}}|0||Allow spectators to vote?}} | ||
{{varcom|sv_vote_ui_hide_disabled_issues|1||Suppress listing of disabled issues in the vote setup screen.}} | {{varcom|sv_vote_ui_hide_disabled_issues {{tf2}}|1||Suppress listing of disabled issues in the vote setup screen.}} | ||
{{varcom|sv_vote_holder_may_vote_no|0||1 {{=}} Vote caller is not forced to vote yes on yes/no votes.}} | {{varcom|sv_vote_holder_may_vote_no {{tf2}}|0||1 {{=}} Vote caller is not forced to vote yes on yes/no votes.}} | ||
{{varcom|sv_vote_bots_allowed|0||Allow bots to vote or not.}} | {{varcom|sv_vote_bots_allowed {{tf2}}|0||Allow bots to vote or not.}} | ||
{{varcom|end}} | {{varcom|end}} | ||
Revision as of 07:49, 3 May 2025

![]() |
---|
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.





If the game has round restart mechanics this entity may not behave as expected:
|

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. |