This article's documentation is for anything that uses the Source engine. Click here for more information.

Vote controller: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
{{ent not in fgd|codeonly=1}}
{{Ent not in fgd|codeonly=1}}
{{CD|CVoteController|file1=vote_controller.cpp}}
{{CD|CVoteController|file1=vote_controller.cpp}}
{{this is a|logical entity|except-multi={{asw}}{{portal2}}|name=vote_controller}} It controls the voting system in game. It's spawned automatically in games where voting by players is available such as {{l4ds|2}}, {{tf2|2}}, {{csgo|2}}.
{{This is a|logical entity|except-multi={{asw}}{{portal2}}|name=vote_controller}} It controls the voting system in game. It's spawned automatically in games where voting by players is available such as {{l4ds|2}}, {{tf2|2}}, {{csgo|2}}.
{{PreservedEnt|vote_controller}}
{{PreservedEnt|vote_controller}}
{{warning|Killing this entity may crash the game.}}
{{warning|Killing this entity may crash the game.}}
== ConCommands ==
{{varcom|start}}
{{varcom|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 .}}
{{varcom|end}}


== See also ==
== See also ==

Revision as of 07:31, 3 May 2025

Stub

This article or section is a stub. You can help by expanding it.

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
C++ Class hierarchy
CVoteController
CBaseEntity
C++ vote_controller.cpp

vote_controller is a logical entity available in all Source Source games except Alien SwarmPortal 2. It controls the voting system in game. It's spawned automatically in games where voting by players is available such as Left 4 Dead seriesLeft 4 Dead series Left 4 Dead series, Team Fortress 2 Team Fortress 2, Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Icon-Important.pngImportant:This is a preserved entity in Team Fortress 2Left 4 DeadLeft 4 Dead 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.
Warning.pngWarning:Killing this entity may crash the game.

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 .

See also