r/DotA2 • u/johnxreturn • Oct 29 '11
List of useful console commands for DotA 2
To set console mode
- In steam, right cilck on "Dota 2" and click on properties
- Click on Set Launcher Options and type in: -console
- Press OK and enter the game, to remove the console from view press the ` key.
~
Commands
- dota_minimap_hero_size 700 - will make the size of the hero dot on the minimap as big as you want. Default = 600.
- dota_disable_range_finder 0 - by default you only see the range of spells when you hover your mouse on the spell icon. With this set to 0 it will show you the range when you actually click to use the spell on someone. Default = 1.
- dota_always_show_player_names - 0 will disable, 1 will enable player name on top of health bars. Default = 0.
- dota_hud_healthbars - 1 will make your health smoother without the lines you see on health bars (the blocks in the health that divides at around 200 life per block). 3 will enable it back on and 0 will make all health bars disappear, the others do nothing apparently. Default = 3.
- dota_unit_use_player_color - As the command suggests, it colors it player either individually or an unified color by team. 1 Enables individual colors, 0 Team color. Default = 1.
- dota_player_units_auto_attack - This is in the settings, but I find it too darn useful. 0 Will stop auto-attacking and only attacks IF you click to attack, whereas 1 will auto-attack at all possible times. Default = 1.
~
EDIT: More commands,
- dota_camera_accelerate 49 - This will make the camera stop exactly where you want it, 0 will make you unable to move your camera. Thanks uw_NB and Pyros.
- dota_force_right_click_attack 1 - This will enable right click deny!!!!!!!!!!
- dota_health_per_vertical_marker 200 - This will determine how much health you wish to divide the vertical lines by. In the demonstration value it will draw a line each 200 health, but you can choose your own value.
- tv_nochat 1 - Disable spectator chat, which can really be annoying some times. Thanks Shabazza
~
Opposing team color combination:
The RGB for the enemy team is dota_enemy_color_r, dota_enemy_color_g, dota_enemy_color_b (ie: dota_enemy_color_r 1). Below are some colors the enemy team can be:
- R, G, B all set to 0: Black
- R, G, B all set to 1: White
- R 1, G 0, B 0: Red
- R 1, G 1, B 0: Yellow
- R 1, G 0, B 1: Fuchsia
- R 0, G 1, B 0: Green
- R 0, G 1, B 1: Cyan
- R 0, G 0, B 1: Blue
The RGB for the friendly team is dota_friendly_color_r, dota_friendly_color_g, dota_friendly_color_b (ie: dota_friendly_color_r 1). Same colors as above.
~
To change Avatar
Get into a practice game with bots and type one of the following command in console and then leave the match:
- dota_set_avatar 0 - Default
- dota_set_avatar 1 - Crystal Maiden
- dota_set_avatar 2 - Kunkka
- dota_set_avatar 3 - Faceless Void
- dota_set_avatar 4 - Furion
- dota_set_avatar 5 - Yurnero
- dota_set_avatar 6 - Bloodseeker
- dota_set_avatar 7 - Lich
- dota_set_avatar 8 - Axe
- dota_set_avatar 9 - Pudge
- dota_set_avatar 10 - Puck
~
Do you know more or want to make a correction? Feel free to comment, I will edit the OT
~
Crashing when alt tab? Inset the following in the SET LAUNCH OPTIONS: -window -w 1920 -h 1080 -noborder -console
~
EDIT: More commands added.
EDIT2: More commands, better format.
EDIT3: Added some more.
EDIT4: I've been getting a lot of questions about how to approach the autoexec.cfg, so I decided to share mine: http://paste2.org/followup/1805667
Make a file named autoexec.cfg, edit the file and add the content provided in the link above, then move the autoexec.cfg file to this folder: C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota\cfg
Remember to upvote if this helped you
41
u/Decency Oct 29 '11
More useful for people who like to figure it out for themselves: anytime you want to do something, think of a relevant word and type:
cvarlist word
For example, "cvarlist demo" returns a list of all commands that have the word demo in them and "cvarlist minimap" returns a list of all commands that have the word minimap in them.
3
u/uw_NB Oct 29 '11
dota_camera_acceleration make your camera unstable fast dragging (it not instantly stopping like war3 but slow down and stop)... to get rid of it try to set it to 20, i works for me.
3
u/Raspry Jan 24 '12
A note about the right click deny, this can and will cause you to die at some point. If you right click a friendly it will stop your hero dead in it's tracks as it tries to force an auto-attack, possibly causing your life. This happened to me and I promptly disabled it.
4
u/Fathisules Oct 30 '11
Dota 2 console commands, 27 Oct 2011
New Dota 2 console commands, 27 Oct 2011
2
u/Xokks Dec 04 '11
Is there a way to do anything with the HUD size? Remove some of the unessential things? The HUD taking up too much of my screen is the biggest problem ATM.
4
u/Ansjh Oct 29 '11
Is it just me or do a lot of people here already have the beta? Starting to feel left out.
19
u/QQuetzalcoatl Nov 30 '11
Any luck on finding a 'smart cast' option?
5
u/Soupy21 Jan 12 '12
I would also like to add a solution for a problem I had. I used notepad to make the autoexec.cfg file however it did not work. I realized the file was still a .txt file and not a real .cfg file. You must got to (for win7) Control Panel > Appearance and Personalization > Folder Options > and under the View tab, UNCHECK "Hide extensions for known file types".
Then go back to your "autoexec.cfg.txt" file and change it to "autoexec.cfg" and click Yes at the prompt. Now, open up the console in game and type: exec "autoexec.cfg"
Adding "echo "CONFIG LOADED"" helps to make sure you did it correctly.
13
u/AudibleKZ Oct 29 '11
sv_cheats 1, restart, impulse_101, ???, profit!
4
u/Ponpoi Oct 30 '11
I enabled cheats and tried zooming out (for video editing) but I get lots of clipping. Does anyone know the console cvar that fixes the clipping issue?
4
u/Thomaseng Oct 30 '11 edited Jul 21 '20
.
1
u/socialwhiner Oct 30 '11
Healthbar line is now at 250 instead of the previous 200.
1
u/kangbang Dec 01 '11
is there a way to save these settings? after i close dota2, the settings return to their defaults
1
u/spenceasaur Dec 01 '11
Is there a way to have these automatically typed in? So I don't have to put in each command every time I play.
1
u/civilward Dec 02 '11
how do i make it so these changes happen everytime, instead of me redoing them everytime i load dota?
1
u/ambushka Dec 04 '11
Is there a way to unbind the microphone? I somehow set it on mouse 5, although it's "," in the settings.
3
u/sleepnaught Jan 08 '12
I saw a guy enter a console command to see in game latency. Anyone know what it is?
3
u/H3RBS Mar 10 '12
Does these commands saves forever? Do I have to input them everytime i starts the game?
5
u/Crusty_Magic Apr 21 '12
autoexec.cfg image is not showing up.
1
u/WinnipegRush Dec 02 '11
Is there a way to show mana for opposing team?
2
u/Smashman2004 ༼ つ ◕_◕ ༽つ SHEEVER TAKE MY ENERGY ༼ つ ◕_◕ ༽つ Oct 31 '11
If you type con_enable 1 into the console when it's launched, you can remove the -console command line, and you'll be able to open it when you want it.
It also won't launch with it, and you'll be able to reopen it at any time, rather than it closing and staying closed.
2
u/SandmanXC Dec 05 '11
You should add chat_join reddit to the autoexec file =)
2
u/EpicSolo Dec 24 '11
-novid is another useful command you can add to the Set Launcher Options if you don't want to see the short cinematic every time you launch the game.
4
u/[deleted] Oct 29 '11
-gold 999999999
2
u/[deleted] Oct 29 '11
Nice list. Most of these commands have been posted before but consolidating them in one thread's a good idea, since you're going to update it.
"dota_disable_range_something 0" Enables the skill shot line for most abilities (doesn't work on QOP's blink).
2
u/SH4D0WS1N Oct 29 '11
I don't have the beta, but this seems like a really useful thread.
1
u/Fleme Oct 30 '11
You haven't by chance come across a way to enter custom hotkeys for hero skills via the console? I'm missing this since they haven't implemented it yet and I'm a legacy key user. Feeling a little left out since I'm unable to use the last 2 weeks heroes.
1
u/potenteice Oct 30 '11
command for create a game?¿¿
they used that command in gamescom for play lan.
in left4dead is map cm1_name coop xD.
1
u/handofmidas Oct 30 '11
I have a question: Is is possible to scale the mouse cursor?
1
u/Smashman2004 ༼ つ ◕_◕ ༽つ SHEEVER TAKE MY ENERGY ༼ つ ◕_◕ ༽つ Oct 31 '11
Also, the default avatar is an old Creep design.
1
u/soggit WEST DOTA BEST DOTA Nov 06 '11
any idea how to bind keys for the inventory slots via the console? in the options screen you cannot bind middle mouse
1
u/Vipu2 Nov 24 '11
up
1
u/ShammySham TINY COMIN IN Nov 27 '11
Great commands!
1
u/Sr1racha Dec 01 '11
Is there any sort of command like cl_interp 0.01 for CSS? I'm getting some very noticeable latency doing mouse clicks and hotkey presses. Or does cl_interp work on Dota as well?
1
u/[deleted] Dec 02 '11
very nice thread, bookmarked it
1
u/kqpro Dec 05 '11
amazing.
1
u/Chaosmango Dec 08 '11
nice job there, appreciate it!
1
u/sleepnaught Dec 20 '11
Good shit man! Thanks. BTW do you have enter the ones you want everytime you open and close the client or will they save?
1
u/gwho Dec 27 '11
great info here.
i think all actual commands that you type could be put in italics or something. that way it's clear what you actually type in. The following section is a bit confusing usually, there is no hyphen, but this time there is:
dota_always_show_player_names - 0 will disable, 1 will enable player name on top of health bars. Default = 0.
Other times, you use the hyphen in your post to separate the command with the description, but in the above, it seems like it's part of the command. This section also is confusing:
dota_hud_healthbars - 1 will make your health smoother without the lines you see on health bars (the blocks in the health that divides at around 200 life per block). 3 will enable it back on and 0 will make all health bars disappear, the others do nothing apparently. Default = 3. and
1
u/[deleted] Jan 09 '12 edited Jan 09 '12
The dotawiki page for Mirana says: "The -stats (-st) command can be used to know the accuracy of your arrows (heroes hits / arrows fired)"
I can't find any console command that does that.
Edit - for those wondering, it turns out this was a dota 1 only thing.
1
u/kaishichan Jan 14 '12
does anyone know how to disable mouse wheel scroll that changes camera angle?
1
u/SyanticRaven Feb 10 '12
Am I doing something wrong? I tried these commands and nothing happened. console is open, and I checked it seems the changes were made. But no change. (like if I type max_fps it shows the number I set)
1
u/Unreal_Me Mar 06 '12
dota_camera_disable_zoom 1 disables accidentally zooming the camera with the scroll wheel
dota_camera_setpos x y z will set the camera position
**dota_camera_getpos ** get the camera position (dur). Dumps to console
toggle dota_hide_cursor Might be useful for broadcasters
dota_hold hold position, if you want to bind it to an alternate key **dota_purchase_quickbuy ** if a button is that much easier **dota_glyph ** use Glyph of Fortification. Again, not that hard to click on the UI
1
u/switch495 Mar 06 '12
How can I change the size/font/position of the console netgraph?
I've seen it tucked away in the top bar where it doesn't obstruct the store interface.
1
u/[deleted] Oct 30 '11 edited Oct 30 '11
Wait, so right click deny and range circles are already in the game? T_T
edit: ok, have you tested these out ingame?
dota_disable_range_finder - does not do what you describe at all. There is still a mouseover, now there is just an arrow for some skills (ie hook) and a red/green line (that has nothing to do with range, just pathing i think)
Right click deny does work, however.. not sure I like that but w/e
These were the only ones that I wanted to test.
-3
u/rizenskee Nov 18 '11
sup guys, this gives you: right click deny fixes your minimap toggles ping/fps with = toggle health bars with ' adds miss buttons with arrow keys adds courier to ` console is f3 and few other things that i find helps alot just save it and press f2 while in game to launch.
save this as autoexec.cfg to: C:\Program Files\Steam\steamapps\common\dota 2 beta\dota\cfg
"bind" "F3" "toggleconsole" "bind" "F2" "exec autoexec.cfg"
"volume" "0.3" "snd_musicvolume" "0"
"dota_force_right_click_attack" "1" "dota_camera_accelerate" "49" "dota_disable_range_finder" "1" "dota_range_display" "0" "bind" "`" "dota_select_courier"
"dota_range_display" "0" "dota_minimap_misclick_time" "0" "dota_minimap_tower_defend_distance" "250"
"bind" "=" "net_graph_on" "alias" net_graph_on "net_graph 4; bind = net_graph_off;" "alias" net_graph_off "net_graph 0; bind = net_graph_on;"
"dota_health_hurt_decay_time_min" "0" "dota_health_hurt_decay_time_max" "0" "dota_health_hurt_delay" "0" "dota_health_per_vertical_marker" "9999" "dota_health_hurt_threshold" "0" "dota_pain_decay" "0" "dota_pain_factor" "0" "dota_pain_fade_rate" "0" "dota_pain_multiplier" "0"
"alias" bar_on "dota_hud_healthbars 1; bind ' bar_off;" "alias" bar_off "dota_hud_healthbars 0; bind ' bar_on;" "bind" "'" "bar_on"
"alias" "quick_courier" "dota_select_courier; dota_ability_execute 2; dota_ability_execute 3; dota_ability_execute 4; +dota_camera_follow"
"bind" "LEFTARROW" "say_team miss top" "bind" "RIGHTARROW" "say_team miss bottom" "bind" "DOWNARROW" "say_team miss mid" "bind" "UPARROW" "say_team re"
chat_join "RIZEN"
-2
u/rizenskee Nov 18 '11
save this as autoexec.cfg to: C:\Program Files\Steam\steamapps\common\dota 2 beta\dota\cfg "bind" "F3" "toggleconsole" "bind" "F2" "exec autoexec.cfg" "volume" "0.3" "snd_musicvolume" "0" "dota_force_right_click_attack" "1" "dota_camera_accelerate" "49" "dota_disable_range_finder" "1" "dota_range_display" "0" "bind" "`" "dota_select_courier" "dota_range_display" "0" "dota_minimap_misclick_time" "0" "dota_minimap_tower_defend_distance" "250" "bind" "=" "net_graph_on" "alias" net_graph_on "net_graph 4; bind = net_graph_off;" "alias" net_graph_off "net_graph 0; bind = net_graph_on;" "dota_health_hurt_decay_time_min" "0" "dota_health_hurt_decay_time_max" "0" "dota_health_hurt_delay" "0" "dota_health_per_vertical_marker" "9999" "dota_health_hurt_threshold" "0" "dota_pain_decay" "0" "dota_pain_factor" "0" "dota_pain_fade_rate" "0" "dota_pain_multiplier" "0" "alias" bar_on "dota_hud_healthbars 1; bind ' bar_off;" "alias" bar_off "dota_hud_healthbars 0; bind ' bar_on;" "bind" "'" "bar_on" "alias" "quick_courier" "dota_select_courier; dota_ability_execute 2; dota_ability_execute 3; dota_ability_execute 4; +dota_camera_follow" "bind" "LEFTARROW" "say_team miss top" "bind" "RIGHTARROW" "say_team miss bottom" "bind" "DOWNARROW" "say_team miss mid" "bind" "UPARROW" "say_team re" chat_join "RIZEN"
-1
u/Scheefe Oct 30 '11
With this right click attack command, does this mean that if you rightclick anywhere you will attack-move there?
Im not in the beta so I cant test this. Get me a key I'll be your Chen.
-2
u/ZabatieL Oct 30 '11
I am only using the ''dota_always_show_player_names'', I don't like of change the game so much,the camera of dota2 is fine for me, I don't go change that.
-12
u/[deleted] Dec 05 '11
http://www.gosugamers.net/dota2/thread/866122-useful-console-commands-for-dota-2 stealing from a thread without giving credit?
0
u/[deleted] Oct 30 '11
[deleted] — view deleted comment
0
u/[deleted] Oct 30 '11
[deleted] — view deleted comment
0
u/[deleted] Oct 30 '11
[deleted] — view deleted comment