Dota – How to make hold attacking nobody

dota-2

I do not like the way DotA2 has implemented the hold function.

I would like to have stop as a button to cancel attacks and spells but keep autoattacking activated.

On the other hand i would like hold as a button to cancel attacks and spells and disable autoattacking (not even autoattacking while in range).

So i want to combine both states of "Auto Attack", switching live while playing.

enter image description here

The reasoning behind this is the fact that i need to spam a key to not attack with a ranged hero.

Basically this would be the behavior Heroes of Newerth implemented.

Is there a way to achieve this?

Best Answer

Yes, just use this script:

alias "autoAtkOn_Stop" "dota_player_units_auto_attack 1;dota_stop"
alias "autoAtkOff_Hold" "dota_player_units_auto_attack 0;dota_hold"
bind "S" "autoAtkOn_Stop"
bind "D" "autoAtkOff_Hold"

Change S and D according to your needs.

This script does set the autoattack-setting from the settings menu to on when you press S and issues a stop command(canceling your spellcast,attack).

If you press D it will set the autoattack to off and issue a hold command(basically the same as before)

See this video for live demonstration: