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 19: | Line 19: | ||
{{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_holder_may_vote_no {{tf2}}|0||1 {{=}} Vote caller is not forced to vote yes on yes/no votes.}} | ||
{{varcom|sv_vote_bots_allowed {{tf2}}|0||Allow bots to vote or not.}} | {{varcom|sv_vote_bots_allowed {{tf2}}|0||Allow bots to vote or not.}} | ||
{{varcom|end}} | |||
=== Left 4 Dead / Left 4 Dead 2 === | |||
{{varcom|start}} | |||
{{varcom|sv_vote_command_delay {{l4ds}}|2||How long after a vote passes until the action happens}} | |||
{{varcom|sv_vote_issue_change_difficulty_allowed|1||Can people hold votes to change the difficulty?}} | |||
{{varcom|sv_vote_issue_change_map_later_allowed|1||Can people hold votes to change the map after this round?}} | |||
{{varcom|sv_vote_issue_change_map_now_allowed|1||Can people hold votes to immediately change the map?}} | |||
{{varcom|sv_vote_issue_change_mission_allowed|1||Can people hold votes to change missions?}} | |||
{{varcom|sv_vote_issue_kick_allowed|1||Can people hold votes to kick players from the server?}} | |||
{{varcom|sv_vote_issue_restart_game_allowed|1||Can people hold votes to restart the game?}} | |||
{{varcom|sv_vote_kick_ban_duration|5||How long should a kick vote ban someone from the server? (in minutes)}} | |||
{{varcom|sv_vote_plr_map_limit {{l4d2}}|3||Number of failed votes a user can call per map}} | |||
{{varcom|sv_vote_show_caller {{l4d2}}|1||Show the name of the person that called the vote? (1: Yes, 0: No)}} | |||
{{varcom|end}} | {{varcom|end}} | ||
Revision as of 08:17, 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:
|

ConVars
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]