Dota 2 custom binds define

Dota 2 custom binds define

Dota 2 custom binds define

Thread: For those who want custom Multiple-key binds. (Noob-friendly guide)

Thread Tools
Display
  • Linear Mode
  • Switch to Hybrid Mode
  • Switch to Threaded Mode

For those who want custom Multiple-key binds. (Noob-friendly gu >

I have prepared an easy-to-read script, detailed, to explain how to make 2 keys of your choice execute a specific command.

Prior to my notice that no guide has been written in the past concerning Multiple-key binding, and to the many posts regarding the matter, I thought I might share my way (which I believe is not the only way) to do it.

NOTE: Modifiers(CTRL/ALT/SHIFT) can (almost*see bottom of the post for ALT binding)NOT be used for custom binds, they are by default used by the client to queue actions/ping/level up skills etc. If you try to bind them yourself, no change will be applied. I’ll give some more details on the matter further in this thread.

Here’s the script.
I recommend you use two. cfg for your config (excluding default config. cfg), where autoexec. cfg will be your main, clean, file, where you are going to add bindings by simply calling commands by their name, and commandscripts. cfg (any name will do) will contain your command scripts and all the confusing lines that makes a file barely readable. Make sure you include “exec commandscripts. cfg” in autoexec. cfg..

//note for script-noobs: Lines that begin with //Double-slashes will be ignored when executed in the console command (Comments..).

//-These lines are the ones written in my commandscripts. cfg
//So, if I’d want my F2 key to select courier, and my Modifier Key (V in my case) + F2 to buy a TP, my code would be

alias “+modf2” “bind F2 dota_purchase_sticky_buy”
alias “-modf2” “bind F2 dota_select_courier ”
//easy. while my mod-key is held down, F2 means “by me a tp”, but when it is not pressed, its meaning will be “select courier”
//console commands that start with + will automatically note that it has to execute the following command until the key is released – modf2

//To add more commands, you do the same thing
alias “+modf3” “bind F3 DC_mid_1” //DC_mid_1 is a custom command of mine, it’s just a chat that says “re”.
alias “-modf3” “bind F3 courier_del” //courier_del is also a custom command, it executes the default F3 command but with courier burst added to it.

//This command will be the one activating all the binds once you press the modifier key, then setting them back them back to default upon release.
alias +mod “+modf2;+modf3” // every command added need to be written in both these lines (“+” in the top one and “-” bot , ofc!).
alias – mod “-modf2;-modf3”

//Now I bind my script to the autoexec. cfg. When binding commands to a key, you only need to specify the “+” line.
bind “v” “+mod”

//To those who just created autoexec and commandscripts, don’t forget to include “exec commandscripts. cfg” in your autoexec file.

The ways to bind ALT are:
* You don’t mind not having to use ALT to ping/call missing/announce item buy etc), then add in the code : “dota_remap_alt_key SPACE”.
This is the easiest way to do it.

* You don’t mind using 3 keys for the default ALT and 2 keys for your custom bind.

//Add these lines in the code
alias +remap “dota_remap_alt_key “ALT”” //”k” will be any key you wish for the ALT map(function) to be transfered
alias – remap “dota_remap_alt_key “k””
alias map_on “bind “v” mapon”
alias map_off “dota_remap_alt_key “k””

alias mapoff “dota_remap_alt_key k;bind “v” mapon”
alias mapon “dota_remap_alt_key ALT;bind “v” mapoff”
mapon

//replace these ones
alias “+mod” “+modf2;+modf3;map_on”
alias “-mod” “-modf2;-modf3;map_off”

//What this does is: IF, and only IF, I press the m key, I will be able to ping etc. “m” is a bit far off, i know. Note that once m is pressed, you will not be able to use any other binds until to press ALT again.
//It’s pretty legit if you ask me, I actually use ALT pinging less than my binds, and on a key like v, pinging is quick enough. And you can use your ALT + key
//binds any time.

* You can freely use alt (for default purpose) all the time, but when you’re about to use a modifier, you need to turn off the ALT map (explanation as to why in spoiler).
I assumed this could be an issue +for those who which their alt + key to be clutch. [QUOTE].
You could have thought about it out yourself anyway, just set a toggle for the remap.

//add
alias mapoff “dota_remap_alt_key k;bind “v” mapon”
alias mapon “dota_remap_alt_key ALT;bind “v” mapoff”
mapon
bind “v” “mapoff”

Dota 2 custom binds define

Leave a comment

Design a site like this with WordPress.com
Get started