Cách dùng console


Dota 2’s console is an immensely powerful tool. Using it properly is as important as picking the best Dota 2 heroesin terms of improving your chances of victory & keeping your enemies on the back foot.

Bạn đang xem: Cách dùng console

It can reduce screen clutter, make the minimaps more useful & give sầu you powerful tools khổng lồ keep traông chồng of what’s happening around the bản đồ. Steam’s launch options are similar, letting you get inkhổng lồ the game faster and customise how it looks before it loads. Meanwhile Dota 2 cheats can be used in non-competitive sầu và offline sandbox modes lớn help improve sầu your play, or lớn turn multiplayer games with friends inlớn far weirder affairs than normal.

We’ve scoured the internet for useful console commands, the best Dota 2 config files and the most fun cheats & laid them out below in a handy danh mục. You won’t want lớn leave sầu the fountain without our best Dota 2 console commands guide.

How bởi you enter Dota 2 console commands?

To use Dota 2 console commands you, unsurprisingly, have khổng lồ enable the console. This can’t actually be done from in-game & you have to lớn use Steam’s launch options. To access these, right clichồng on the game’s entry in your Steam library and go lớn Properties, then hit ‘Set Launch Options…’


You’ll get a little pop up box which you can enter any text you like into lớn. The syntax for launch options is a dash followed by whatever the comm& is, then a space to separate it from the next commvà. We’ll go over some examples in the next section, which is all about the…

Best Dota 2 Launch Options

Enable Console-consoleOR+con_enable 1-console will bring up the console as soon as you get inlớn the game, where as +con_enable 1 will simply enable it so it can be accessed via a hotkey, the mặc định for which is ` (that’s the button to lớn the left of your 1 key). If you’ve sầu rebound this button, you’ll need lớn go inlớn the options thực đơn and make sure a not-easily-pressed key is bound to console. It’s in the bottom right hvà corner of the hotkeys section. Personally I go with <.

That’s all you’ll need to lớn use our console commands section later on, however there are other useful launch options too, like…

Turn Off Intro Videos-novidThis disables the Valve sầu intro đoạn phim, saving you 3-4 precious seconds every time you boot up the game. You also won’t get spooked when you forget that his head turns around now.

High CPU Priority-highThis gives the game high priority in the CPU, meaning it won’t be slowed down by other processes you might happen to have running. Useful on slower machines where you want lớn keep a browser open at the same time. Do be warned, messing with CPU priority can cause some odd things khổng lồ happen, so just be careful.

Mouse Settings-useforcedmparms -noforcemaccel -noforcemspdThis trio of commands prevents the game from changing your mouse sensitivity và acceleration settings, so it will use whatever Windows’ settings are.

Rephối Graphics Settings-autoconfigIf you have this enabled, every time you boot up the game it will remix the graphics options to lớn whatever the recommended ones for your hardware are. This is useful if you manage lớn mix it lớn some resolution your monitor doesn’t recognise, or massively screw up in some other way. Cheers, Valve sầu.

Faster Game Loading-bản đồ dotaThis loads the bản đồ along with the game when you start, meaning you’ll have a lower load time on your first match. Again, very useful for frontloading that time so slower computers don’t take too long to get into a game.

Different Load Screens-dashboardA set of commands that will force the client to use the cosmetics of the various events that have run through the years. The possible codes are:

international_2012 – Displays The International 2012 loading screen and main thực đơn background.international_2013 – Displays The International 2013 loading screen & main menu background.international_2014 – Displays The International 2014 loading screen only.frostivus_2013 – Displays Frostivus 2013 main menu background.newbloom_năm trước – Displays New Bloom 2014 loading screen & main thực đơn background.spirits_2013 – Displays Three Spirits main menu background.

I’m personally quite partial to the TI2012 one. Do remember that while this command is running you won’t ever see any sexy new loading screens Valve introduces.

Run In Windowed Mode-windowedBoots the game in a window & -noborder makes it borderless. You can use…-h-w -x -y To position where the window is on the screen. Again, this means you can customise these factors from outside the game and is useful for putting it on a second monitor, if necessary. For example, -window -noborder -h 19trăng tròn -w 1080 -x 1921 -y 0 would have sầu the game window fill a second 1080p monitor.

OpenGL Mode-glForces the game to run using the OpenGL graphics library.

DirectX 9 Mode-dx9Forces the game lớn run using DirectX 9, disabling several prettier graphics options. Useful on older computers.

Most Useful Dota 2 Console Commands

Console commands come in two categories: ones you put inkhổng lồ the console individually to lớn see certain stats, và ones you want running every time you boot up the game. The former are simple and will be covered later, the latter are a little more complex and use something called an autoexec.cfg tệp tin to lớn run every time.

This file is located or should be placed in /SteamApps/common/dota 2 beta/dota/cfg/. If there is not a file called autoexec.cfg, create a new notepad document, open it và go khổng lồ File -> Save sầu As. Change the tệp tin type lớn all files then name it autoexec.cfg. Save sầu và cthua it, then reopen it, telling Windows khổng lồ use Notepad lớn open .cfg files if necessary. That done, you’re ready to start telling Dota 2 what lớn vì chưng every time you boot it up.


But what is an autoexec file? Well it’s a series of console commands that Dota 2 knows to lớn load every time. It can vì everything the options thực đơn in-game can vì & much more besides. It has advantages over using that menu not only in power, but in convenience. Once you have an autoexec tệp tin ready, you can use it on any Dota 2 thiết đặt you can copy it to lớn, instantly giving you the options you’re used to lớn.

Now that’s out of the way, here’s…

The Best Dota 2 Autoexec File Commands

Bind keys to console commandsbind “” “command”This lets you bind keys lớn various commands. It’s useful for quickly getting your settings right on a new machine, as discussed above, but also lets you bind console commands. That lets you bởi things like…

Create keys to lớn quickly look at runes

This set of commands will bind F2 lớn look at the position of the maps where the top rune spawns while you hold the key down, moving baông chồng khổng lồ your anh hùng when you let it go. F3 will be bottom rune.

unbind F2unbind F3alias “+toprune” “dota_camera_set_lookatpos -2273 1800”alias “-toprune” “+dota_camera_center_on_hero;+dota_camera_center_on_hero;-dota_camera_center_on_hero”alias “+botrune” “dota_camera_set_lookatpos 3035 -2350”alias “-botrune” “+dota_camera_center_on_hero;+dota_camera_center_on_hero;-dota_camera_center_on_hero”bind F2 “+toprune”bind F3 “+botrune”

Glancing at rune spots isn’t as useful as it once was (with there now always being one in each location) but you putdota_camera_get_lookatposinto the command line to find the camera coordinates of various useful locations & decide which you’d like to lớn be able lớn hit a button & see. Here’s some we made earlier:

Mid-lane: -487 -214Bot-lane: 6058 -4850Top-lane: -6105 5006Rosh pit: 4092 -1878Dire Secret Shop: 3608 355Radiant Secret Shop: -4384 1357

Just replace the numbers in the above example with these and you’re good khổng lồ go. Remember that you vì also need buttons on your keyboard for things like abilities, items & telling your team-mates just how bad they are.

Print current time in chatbind “chatwheel_say 57”This will print the current game time in chat for your team when the corresponding button is pressed. Useful for keeping track of Roshan spawns và the lượt thích.

Bind team messages lớn keysbind “say_team This will bind whatever key you lượt thích to lớn say whatever you want to lớn your team. Don’t be mean.

Bind keys for spectatingbind “demo_goto lớn -120 relative”bind”demo_goto lớn 1đôi mươi relative”These commands will move the seek bar in a chạy thử backwards & forwards by about 4 seconds. The number is ‘ticks’ và operates at about 30 a second. Test to see what you prefer for when you’re analysing replays.

Lower graphics settingsdota_cheap_water 1cl_globallight_shadow_mode 0r_deferred_height_fog 0r_deferred_simple_light 1r_screenspace_aa 0mat_vsync 0

This mix of commands will turn off lots of graphics settings, making the game run better on older machines.

Instant health removaldota_health_hurt_threshold 99999dota_health_hurt_decay_time_max 0dota_health_hurt_decay_time_min 0dota_health_hurt_delay 0dota_pain_decay 0dota_pain_factor 0dota_pain_fade_rate 0dota_pain_multiplier 0

These will remove sầu the scaling Trắng bar that appears when a anh hùng loses health instead just immediately setting their health bar lớn the new value. You can modify these numbers if you would prefer for the white bar lớn be there but fade quicker. While we’re on health…

Healthbar Settingsdota_health_per_vertical_marker 250decides how much health will be shown per vertical line on the health bar. 250 is the mặc định value. Axe players may wish for different ones, for example. To turn the lines off entirely, set it to lớn 99999.

The Netgraphnet_graphheight 64net_graphinsetbottom 437net_graphinsetleft 0net_graphinsetright -30net_graphpos 1net_graphproportionalphông 0net_graphtext 1bind F10 “showgraph”alias “showgraph” “showgraph_off”alias “showgraph_on” “net_graph 1; alias showgraph showgraph_off”alias “showgraph_off” “net_graph 0; alias showgraph showgraph_on”

This set will place the netgraph, a useful phối of ping readouts & other network information, in the unused space at the top right of the screen. F10 will toggle between it being on và off. It’s optimised for 1920*1080, so you might need to lớn adjust some values if that isn’t your resolution.

Hide the Minimapdota_no_minimaps 1Hides the minimaps.

Dichromatic Minimapdota_minimap_simple_colors 1Stops enemies and allies showing up in different colours on the minimaps. All allied units are green, all enemy ones are red.

You can also customise how enemies, allies & neutrals appear on the minimaps with these commands:

dota_enemy_color_b ###dota_enemy_color_g ###dota_enemy_color_r ###

dota_friendly_color_b ###dota_friendly_color_g ###dota_friendly_color_r ###

dota_neutral_color_b ###dota_neutral_color_g ###dota_neutral_color_r ###

These use standard blue/red/green colour definitions. Here’s a handy tool for finding out which colours are what.

Flip the HUDdota_hud_flip 1Moves the minimaps khổng lồ be in the bottom right h& corner of the screen.

Colourblind Modedota_hud_colorblind 1Enables colour blind mode.

Heroes More Visible On Minimapdota_minimap_hero_size 1000Changes the kích cỡ of anh hùng icons on the minibản đồ. The default is 600, 1000 or so makes it much more obvious out of the corner of your eye.

Longer Pings On Minimapdota_minimap_ping_duration 3Changes how long pings remain on the minibản đồ for in seconds. 3 is the default value.

Change the FPS Capfps_max 120Sets the maximum FPS for the game. 1trăng tròn is the default value.

Enable Range Finderdota_disable_range_finder 0Turns on a little green line between your anh hùng và cursor whenever you start targeting an ability. If the line disappears you’re out of range.

Xem thêm: Độ Dài Tiêu Cự Máy Ảnh, Ống Kính Là Gì? Có Ý Nghĩa Gì Trong Việc Chụp Ảnh?

Enable Quiông chồng Self-castingdota_ability_quick_cast 1Makes double tapping an ability or tác phẩm button use it on yourself.

Disable Auto-attackdota_player_units_auto_attaông chồng 0Disables auto-attaông chồng for your hero.

Right Cliông xã Denyingdota_force_right_click_attaông xã 1Turns on ‘right cliông xã deny’ – you don’t have sầu khổng lồ press the attack key and then left cliông chồng on friendly minions to lớn hit them, you just right cliông chồng as you would on enemies.

Prsự kiện Minimaps Misclicksdota_minimap_misclick_time 0.2The time in seconds that the mouse must be over the minibản đồ before a move commvà can be issued. Prevents misclicks when running away. Set khổng lồ 0 if you’d rather have an instantly responsive sầu minibản đồ, or 9999 if you don’t want it khổng lồ be usable at all.

Disable Mousewheel Zoomdota_camera_disable_zoom 1Makes it so you can’t zoom the camera in with the mousewheel.

Disable Respawn Camera Movedota_reset_camera_on_spawn 0Stops the camera from moving to lớn your nhân vật when you respawn.

Disable Screen Shakedota_screen_shake 0Disables the distracting screen shake when certain abilities are used.

Enable Simple Ready Updota_simple_ready_up 1Removes the ready animation when a game pops & allows you lớn get in immediately.

Enable The Consolecon_enable 1If you aren’t using a launch option to enable the console, you’ll need this.

Print Text To Consoleemang đến “Prints text to the console. I’d recommover having a line at the over of your autoexec that’s something like of eđến “PREPARED FOR DIGITAL SPORTS” – when you see that in the console you know your autoexec has ran properly. If you kết thúc up with a particularly large autoexec it’s worth splitting it inkhổng lồ sections, each with their own emang lại comm& so you know which bits are loading properly.

Alright, so you’ve sầu got your autoexec sorted. What might you need lớn use the console in-game for?

In-game Console Commands For Dota 2

A small note: when typing commands inlớn the console directly, you don’t need quotes around your values.


Reconnect To GamesretryThis reconnects to lớn the last server you were on.

Show FPS Countercl_showfpsShows the FPS counter.

Show Player PingspingShows the ping of all players in the console.

Show Net Graphnet_graph 1Shows the netgraph, if you’re not using the autoexec chunk from earlier.

Dota 2 Cheat Commands


In a custom lobby you can enable cheats. This is useful for a couple of things – improving your skills in a singleplayer sandbox or mucking about with your friends. You enter them inlớn the chat box as you would a message lớn your team mates. The syntax is always a dash and then the commvà, then usually a space before whatever value. In the below examples, x will represent where a numerical value can go.

Level Up-lvlup xIncreases your hero’s level by x. You can’t delevel this way, entering negative values won’t vày anything.

Level Bots-levelbots xIncreases bot heroes’ levels by x. See above sầu.

Give Gold-gold xGives your nhân vật x unreliable gold. Negative sầu numbers reduce it.

Give Items-tác phẩm Gives your hero the named vật phẩm. You can see a list of công trình names on the Dota 2 wiki.

Give Bot Items-givebots Gives bot heroes the named sản phẩm. See above.

Refresh Heroes-refreshRestores the health, mamãng cầu và cooldowns of all heroes on the maps.

Force Respawn-respawnRespawns you. While alive, moves you khổng lồ the fountain.

Skip Warmup Phase-startgameImmediately starts the game, causing creeps to spawn & such. Has no effect after the warmup period ends.

Spawn Creep Wave-spawncreepsSpawns a wave of creeps in each lane for both teams.

Spawn Neutral Creeps-spawnneutralsSpawns neutrals at their respective sầu camps. Doesn’t ignore usual blocking rules.

Stop Creep Spawns-disablecreepspawnStops the regular spawning of creeps in lanes. -enablecreepspawn renables it.

Spawn Runes-spawnruneSpawns runes at the runespots. One will be a bounty rune, the other a random non-bounty rune.

Kill Wards-killwardsDestroys all placed Sentry và ObVPS wards on the bản đồ.

Creat Heroes-createanh hùng Creates the specified nhân vật at wherever the mouse cursor is pointing. You can see a danh sách of the codes for heroes on the Dota 2 wiki. If you add the “ neutral” or “ enemy” khổng lồ the over it will create the hero for that faction, but still under your control.

WTF Mode-wtfAll spells & items have sầu no manacost or cooldown. -unwtf turns this mode off.

Shared Vision-allvisionRadiant và Dire vision is shared. -normalvision disables this.

Xem thêm: 100+ Hình Ảnh Galaxy Ý Tưởng, 4000+ Galaxy & Ảnh Vũ Trụ Miễn Phí

And that’s all the custom commands we could find that seemed of use. If you want more information on good autoexecs, or a complete list of the ridiculous number of commands in the Source engine, here’s some handy liên kết.

If you’ve any questions or additional advice, we’ve a lovely comments section for just those sorts of things. GLHF!

Chuyên mục: Tin Tức