Skip to main content
Players can propose changes to the game rules at any time during a match by typing a chat command. If enough players agree within the voting window, the change takes effect immediately.

How voting works

1

Propose a vote

Any player types a vote command in all-chat (e.g., -antirat). The game announces the proposal to all players.
2

Players vote

A 10-second window opens. All connected players cast their vote — the system counts the total active player count automatically.
3

Threshold check

The number of approvals is measured against a required percentage. Some votes require 100% agreement; others need only 50% or 70% depending on the map and the vote type.
4

Outcome

If the threshold is met, the rule change is applied immediately and a global announcement is broadcast. If the threshold is not met, the vote fails silently and can be re-proposed.
Most votes can only be passed once per game. Attempting to start a vote that has already passed shows an error message.

Voteable rules

The table below lists every vote available in-game. Threshold shows the percentage of players who must approve the vote. The all_allowed map uses relaxed thresholds for some votes; standard maps require 100% for those same votes.
Chat commandAliasWhat it doesThreshold (standard)Threshold (all_allowed)
-antirat-arEnables anti-rat protection. Tier 3 towers cannot be destroyed until all outer towers are gone.100%50%
-doublecreeps-dcDoubles all neutral creep camp spawns (neutralMultiply = 2).100%70%
-enablecheat-ecEnables cheat mode for all players, unlocking all cheat commands.100%100%
-enablekamikaze-ekDisables the anti-kamikaze mechanic. No penalty for dying 3 times within 60 seconds.100%100%
-enablebuilder-ebUnlocks the in-game hero builder so players can change their build mid-game. A 30-second penalty applies if both teams have active players.100%100%
-enablerespawn-erDisables the escalating respawn time mechanic. Respawn rates no longer increase after 40 minutes.100%100%
-enablefat-efStarts the Fat-O-Meter mechanic (useFatOMeter = 2).100%50%
-enablerefreshEnables cooldown refresh on death.100%50%
-switchteamMoves the proposing player to the other team. Only available when the game detects a team imbalance or in single-player mode. Requires only 50% approval if the game is under 20 minutes old.100%
-switchteam is only available to the player on the larger team (or when Ingame.needsTeamBalance is true). It cannot be proposed at game time 0.

Threshold differences by map

The all_allowed map is designed for relaxed, permissive play. To reflect that, several votes that normally require unanimous agreement pass at a lower threshold:
-- From commands.lua
util:CreateVoting(
  "lodVotingAntirat",
  playerID,
  10,  -- voting window in seconds
  OptionManager:GetOption('mapname') == 'all_allowed' and 50 or 100,
  function() ... end
)
Only -enablecheat, -enablekamikaze, -enablebuilder, and -enablerespawn always require 100% regardless of map — these are considered consequential enough to need full agreement.

Cheat commands (after cheat mode is enabled)

Once cheat mode is active (either via -enablecheat vote or automatically in single-player mode), additional commands become available to all players:
CommandEffect
-gold [amount]Gives gold (default 100,000)
-points [amount]Gives ability points (default 1)
-godToggles 60-second invulnerability
-nofog / -fogDisables or re-enables fog of war
-aghs / -scepterToggles Aghanim’s Scepter upgrade
-regenToggles fountain regeneration aura
-gemToggles permanent true sight
-invisToggles permanent invisibility
-reflectToggles spell reflect
-spellblockToggles spell block
-cooldownToggles no-cooldown mode
-globalcastToggles global cast range
-wtfToggles WTF mode (no cooldowns or mana costs)
-lvlup [n]Levels up the hero by n levels (default 1)
-lvlmaxSets hero to maximum level with all abilities maxed
-item <name>Gives a named item
-addability <name>Adds a named ability
-removeability <name>Removes a named ability (use all to remove everything)
-respawnInstantly respawns a dead hero
-refreshRestores full HP, mana, and resets all cooldowns
-teleport / -daggerGives a global teleport dagger
-startgameForces the game to start immediately
-dif <level> [playerID]Changes bot difficulty (1–4 scale)
-fortifyToggles fountain regen on all buildings (both teams)
-fortify_radToggles fountain regen on Radiant buildings only
-fortify_direToggles fountain regen on Dire buildings only
See Cheat commands for full documentation.

Build docs developers (and LLMs) love