Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////
- // Smartcast [ON]
- //////////////////////////////////////////////////
- // Verion: 2.0
- // Updated: April 20th, 2012
- /////
- // Script by: 8e8
- // Inspired by: SkyClad, denunciator
- //////////////////////////////////////////////////
- // Notes:
- //////////////////////////////////////////////////
- // This script is a user made solution to Smartcasting in Dota 2.
- // As such, it may have some unintended results. Use at your own discretion.
- // Be sure to back up your existing configs to revert any unwanted changes.
- // If your ability/item keys are bound through key modifiers this script will not work
- // (ex. Alt+Q for Ability 1, or Alt+1 for Item 1)
- //////////////////////////////////////////////////
- // Smartcast Key Binds
- /////
- // Replace these with your own keys, and be sure to unbind those keys from the settings menu
- // Comment out the line of the binds you don't want to use
- //////////////////////////////////////////////////
- bind "q" "+sCast_A1" // Ability 1
- bind "w" "+sCast_A2" // Ability 2
- bind "e" "+sCast_A3" // Ability 3
- bind "t" "+sCast_A4" // Ability 4
- bind "g" "+sCast_A5" // Ability 5
- bind "r" "+sCast_A6" // Ultimate
- bind "1" "+sCast_I1" // Item 1
- bind "2" "+sCast_I2" // Item 2
- bind "3" "+sCast_I3" // Item 3
- bind "4" "+sCast_I4" // Item 4
- bind "5" "+sCast_I5" // Item 5
- bind "6" "+sCast_I6" // Item 6
- bind "a" "+sCast_Atk" // Attack
- bind "d" "+sCast_Move" // Move
- // Uncomment the toggle bind you'd like to use. I'd suggest using only one (excluding sCast0)
- //bind "space" "+sCast" // Toggles Smartcast
- //bind "space" "+sCast1" // Toggles Smartcast when held down (ex. Press SPACE+Q to Smartcast Q)
- //bind "space" "+sCast2" // Toggles Smartcast on the key that is pressed in conjunction with this one (ex. Press SPACE+Q to enable Smartcasting on Q, and again to disable)
- //bind "space" "+sCast0" // Disables Smartcast when held. Useful when you need to self-cast.
- // Smartcast Abilities
- /////
- // Creates an alias for each Ability to toggle between Smartcasting
- //////////////////////////////////////////////////
- alias "sCast_A1" "dota_ability_execute 0"
- alias "sCast_A2" "dota_ability_execute 1"
- alias "sCast_A3" "dota_ability_execute 2"
- alias "sCast_A4" "dota_ability_execute 3"
- alias "sCast_A5" "dota_ability_execute 4"
- alias "sCast_A6" "dota_ability_execute 5"
- alias "sCast_A1_Clk" "clk"
- alias "sCast_A2_Clk" "clk"
- alias "sCast_A3_Clk" "clk"
- alias "sCast_A4_Clk" "clk"
- alias "sCast_A5_Clk" "clk"
- alias "sCast_A6_Clk" "clk"
- alias "+sCast_A1" "sCast_A1"
- alias "-sCast_A1" "sCast_A1_Clk"
- alias "+sCast_A2" "sCast_A2"
- alias "-sCast_A2" "sCast_A1_Clk"
- alias "+sCast_A3" "sCast_A3"
- alias "-sCast_A3" "sCast_A1_Clk"
- alias "+sCast_A4" "sCast_A4"
- alias "-sCast_A4" "sCast_A1_Clk"
- alias "+sCast_A5" "sCast_A5"
- alias "-sCast_A5" "sCast_A1_Clk"
- alias "+sCast_A6" "sCast_A6"
- alias "-sCast_A6" "sCast_A1_Clk"
- alias "sCast_A1_ON" "alias sCast_A1_Clk clk"
- alias "sCast_A1_OFF" "alias sCast_A1_Clk"
- alias "sCast_A2_ON" "alias sCast_A2_Clk clk"
- alias "sCast_A2_OFF" "alias sCast_A2_Clk"
- alias "sCast_A3_ON" "alias sCast_A3_Clk clk"
- alias "sCast_A3_OFF" "alias sCast_A3_Clk"
- alias "sCast_A4_ON" "alias sCast_A4_Clk clk"
- alias "sCast_A4_OFF" "alias sCast_A4_Clk"
- alias "sCast_A5_ON" "alias sCast_A5_Clk clk"
- alias "sCast_A5_OFF" "alias sCast_A5_Clk"
- alias "sCast_A6_ON" "alias sCast_A6_Clk clk"
- alias "sCast_A6_OFF" "alias sCast_A6_Clk"
- // Smartcast Items
- /////
- // Creates an alias for each item to toggle between Smartcasting
- //////////////////////////////////////////////////
- alias "sCast_I1" "dota_item_execute 0"
- alias "sCast_I2" "dota_item_execute 1"
- alias "sCast_I3" "dota_item_execute 2"
- alias "sCast_I4" "dota_item_execute 3"
- alias "sCast_I5" "dota_item_execute 4"
- alias "sCast_I6" "dota_item_execute 5"
- alias "sCast_I1_Clk" "clk"
- alias "sCast_I2_Clk" "clk"
- alias "sCast_I3_Clk" "clk"
- alias "sCast_I4_Clk" "clk"
- alias "sCast_I5_Clk" "clk"
- alias "sCast_I6_Clk" "clk"
- alias "+sCast_I1" "sCast_I1"
- alias "-sCast_I1" "sCast_I1_Clk"
- alias "+sCast_I2" "sCast_I2"
- alias "-sCast_I2" "sCast_I2_Clk"
- alias "+sCast_I3" "sCast_I3"
- alias "-sCast_I3" "sCast_I3_Clk"
- alias "+sCast_I4" "sCast_I4"
- alias "-sCast_I4" "sCast_I4_Clk"
- alias "+sCast_I5" "sCast_I5"
- alias "-sCast_I5" "sCast_I5_Clk"
- alias "+sCast_I6" "sCast_I6"
- alias "-sCast_I6" "sCast_I6_Clk"
- alias "sCast_I1_ON" "alias sCast_I1_Clk clk"
- alias "sCast_I1_OFF" "alias sCast_I1_Clk"
- alias "sCast_I2_ON" "alias sCast_I2_Clk clk"
- alias "sCast_I2_OFF" "alias sCast_I2_Clk"
- alias "sCast_I3_ON" "alias sCast_I3_Clk clk"
- alias "sCast_I3_OFF" "alias sCast_I3_Clk"
- alias "sCast_I4_ON" "alias sCast_I4_Clk clk"
- alias "sCast_I4_OFF" "alias sCast_I4_Clk"
- alias "sCast_I5_ON" "alias sCast_I5_Clk clk"
- alias "sCast_I5_OFF" "alias sCast_I5_Clk"
- alias "sCast_I6_ON" "alias sCast_I6_Clk clk"
- alias "sCast_I6_OFF" "alias sCast_I6_Clk"
- // Smartcast Actions
- /////
- // Creates an alias for the "Attack" and "Move" commands to toggle between Smartcasting
- //////////////////////////////////////////////////
- alias "sCast_Atk" "mc_attack"
- alias "sCast_Move" "mc_move"
- alias "sCast_Atk_Clk" "clk"
- alias "sCast_Move_Clk" "clk"
- alias "+sCast_Atk" "sCast_Atk"
- alias "-sCast_Atk" "sCast_Atk_Clk"
- alias "+sCast_Move" "sCast_Move"
- alias "-sCast_Move" "sCast_Move_Clk"
- alias "sCast_Atk_ON" "alias sCast_Atk_Clk clk"
- alias "sCast_Atk_OFF" "alias sCast_Atk_Clk"
- alias "sCast_Move_ON" "alias sCast_Move_Clk clk"
- alias "sCast_Move_OFF" "alias sCast_Move_Clk"
- // Smartcast Press-to-Toggle
- /////
- // Toggles the state of every key
- //////////////////////////////////////////////////
- alias "+sCast" "+sCast_OFF"
- alias "-sCast" "-sCast_OFF"
- alias "sCast_ON" "sCast_A1_ON; sCast_A2_ON; sCast_A3_ON; sCast_A4_ON; sCast_A5_ON; sCast_A6_ON; sCast_I1_ON; sCast_I2_ON; sCast_I3_ON; sCast_I4_ON; sCast_I5_ON; sCast_I6_ON; sCast_Atk_ON; sCast_Move_ON; alias +sCast +sCast_OFF; alias -sCast -sCast_OFF"
- alias "sCast_OFF" "sCast_A1_OFF; sCast_A2_OFF; sCast_A3_OFF; sCast_A4_OFF; sCast_A5_OFF; sCast_A6_OFF; sCast_I1_OFF; sCast_I2_OFF; sCast_I3_OFF; sCast_I4_OFF; sCast_I5_OFF; sCast_I6_OFF; sCast_Atk_OFF; sCast_Move_OFF; alias +sCast +sCast_ON; alias -sCast -sCast_ON"
- alias "+sCast_ON" "sCast_ON; dev_ON; echo !!!Smartcasting ON!!!"
- alias "-sCast_ON" "dev_OFF"
- alias "+sCast_OFF" "sCast_OFF; dev_ON; echo !!!Smartcasting OFF!!!"
- alias "-sCast_OFF" "dev_OFF"
- // Smartcast Hold-to-Toggle (All)
- /////
- // Toggles the state of every key when held
- //////////////////////////////////////////////////
- alias "+sCast1" "+sCast_ON"
- alias "-sCast1" "+sCast_OFF"
- // Smartcast Hold-to-Toggle (Individual)
- /////
- // Toggles the state of each key
- //////////////////////////////////////////////////
- alias "+sCast2" "sCast2_ON1; sCast2_ON2"
- alias "sCast2_ON1" "alias +sCast_A1 +sCast2_A1; alias +sCast_A2 +sCast2_A2; alias +sCast_A3 +sCast2_A3; alias +sCast_A4 +sCast2_A4; alias +sCast_A5 +sCast2_A5; alias +sCast_A6 +sCast2_A6; alias +sCast_I1 +sCast2_I1; alias +sCast_I2 +sCast2_I2; alias +sCast_I3 +sCast2_I3; alias +sCast_I4 +sCast2_I4; alias +sCast_I5 +sCast2_I5; alias +sCast_I6 +sCast2_I6; alias +sCast_Atk +sCast2_Atk; alias +sCast_Move +sCast2_Move;"
- alias "sCast2_ON2" "alias -sCast_A1 -sCast2_A1; alias -sCast_A2 -sCast2_A2; alias -sCast_A3 -sCast2_A3; alias -sCast_A4 -sCast2_A4; alias -sCast_A5 -sCast2_A5; alias -sCast_A6 -sCast2_A6; alias -sCast_I1 -sCast2_I1; alias -sCast_I2 -sCast2_I2; alias -sCast_I3 -sCast2_I3; alias -sCast_I4 -sCast2_I4; alias -sCast_I5 -sCast2_I5; alias -sCast_I6 -sCast2_I6; alias -sCast_Atk -sCast2_Atk; alias -sCast_Move -sCast2_Move"
- alias "-sCast2" "sCast2_OFF1; sCast2_OFF2"
- alias "sCast2_OFF1" "alias +sCast_A1 sCast_A1; alias +sCast_A2 sCast_A2; alias +sCast_A3 sCast_A3; alias +sCast_A4 sCast_A4; alias +sCast_A5 sCast_A5; alias +sCast_A6 sCast_A6; alias +sCast_I1 sCast_I1; alias +sCast_I2 sCast_I2; alias +sCast_I3 sCast_I3; alias +sCast_I4 sCast_I4; alias +sCast_I5 sCast_I5; alias +sCast_I6 sCast_I6; alias +sCast_Atk sCast_Atk; alias +sCast_Move sCast_Move"
- alias "sCast2_OFF2" "alias -sCast_A1 sCast_A1_Clk; alias -sCast_A2 sCast_A2_Clk; alias -sCast_A3 sCast_A3_Clk; alias -sCast_A4 sCast_A4_Clk; alias -sCast_A5 sCast_A5_Clk; alias -sCast_A6 sCast_A6_Clk; alias -sCast_I1 sCast_I1_Clk; alias -sCast_I2 sCast_I2_Clk; alias -sCast_I3 sCast_I3_Clk; alias -sCast_I4 sCast_I4_Clk; alias -sCast_I5 sCast_I5_Clk; alias -sCast_I6 sCast_I6_Clk; alias -sCast_Atk sCast_Atk_Clk; alias -sCast_Move sCast_Move_Clk""
- /////
- // Abilities
- /////
- alias "+sCast2_A1" "sCast2_A1_OFF"
- alias "-sCast2_A1" "dev_OFF"
- alias "+sCast2_A2" "sCast2_A2_OFF"
- alias "-sCast2_A2" "dev_OFF"
- alias "+sCast2_A3" "sCast2_A3_OFF"
- alias "-sCast2_A3" "dev_OFF"
- alias "+sCast2_A4" "sCast2_A4_OFF"
- alias "-sCast2_A4" "dev_OFF"
- alias "+sCast2_A5" "sCast2_A5_OFF"
- alias "-sCast2_A5" "dev_OFF"
- alias "+sCast2_A6" "sCast2_A6_OFF"
- alias "-sCast2_A6" "dev_OFF"
- alias "sCast2_A1_ON" "sCast_A1_ON; alias +sCast2_A1 sCast2_A1_OFF; dev_ON; echo "!!!Ability 1 Smartcasting ON!!!
- alias "sCast2_A1_OFF" "sCast_A1_OFF; alias +sCast2_A1 sCast2_A1_ON; dev_ON; echo "!!!Ability 1 Smartcasting OFF!!!"
- alias "sCast2_A2_ON" "sCast_A2_ON; alias +sCast2_A2 sCast2_A2_OFF; dev_ON; echo "!!!Ability 2 Smartcasting ON!!!"
- alias "sCast2_A2_OFF" "sCast_A2_OFF; alias +sCast2_A2 sCast2_A2_ON; dev_ON; echo "!!!Ability 2 Smartcasting OFF!!!"
- alias "sCast2_A3_ON" "sCast_A3_ON; alias +sCast2_A3 sCast2_A3_OFF; dev_ON; echo "!!!Ability 3 Smartcasting ON!!!"
- alias "sCast2_A3_OFF" "sCast_A3_OFF; alias +sCast2_A3 sCast2_A3_ON; dev_ON; echo "!!!Ability 3 Smartcasting OFF!!!"
- alias "sCast2_A4_ON" "sCast_A4_ON; alias +sCast2_A4 sCast2_A4_OFF; dev_ON; echo "!!!Ability 4 Smartcasting ON!!!"
- alias "sCast2_A4_OFF" "sCast_A4_OFF; alias +sCast2_A4 sCast2_A4_ON; dev_ON; echo "!!!Ability 4 Smartcasting OFF!!!"
- alias "sCast2_A5_ON" "sCast_A5_ON; alias +sCast2_A5 sCast2_A5_OFF; dev_ON; echo "!!!Ability 5 Smartcasting ON!!!"
- alias "sCast2_A5_OFF" "sCast_A5_OFF; alias +sCast2_A5 sCast2_A5_ON; dev_ON; echo "!!!Ability 5 Smartcasting OFF!!!"
- alias "sCast2_A6_ON" "sCast_A6_ON; alias +sCast2_A6 sCast2_A6_OFF; dev_ON; echo "!!!Ability 6 Smartcasting ON!!!"
- alias "sCast2_A6_OFF" "sCast_A6_OFF; alias +sCast2_A6 sCast2_A6_ON; dev_ON; echo "!!!Ability 6 Smartcasting OFF!!!"
- /////
- // Items
- /////
- alias "+sCast2_I1" "sCast2_I1_OFF"
- alias "-sCast2_I1" "dev_OFF"
- alias "+sCast2_I2" "sCast2_I2_OFF"
- alias "-sCast2_I2" "dev_OFF"
- alias "+sCast2_I3" "sCast2_I3_OFF"
- alias "-sCast2_I3" "dev_OFF"
- alias "+sCast2_I4" "sCast2_I4_OFF"
- alias "-sCast2_I4" "dev_OFF"
- alias "+sCast2_I5" "sCast2_I5_OFF"
- alias "-sCast2_I5" "dev_OFF"
- alias "+sCast2_I6" "sCast2_I6_OFF"
- alias "-sCast2_I6" "dev_OFF"
- alias "sCast2_I1_ON" "sCast_I1_ON; alias +sCast2_I1 sCast2_I1_OFF; dev_ON; echo "!!!Item 1 Smartcasting ON!!!"
- alias "sCast2_I1_OFF" "sCast_I1_OFF; alias +sCast2_I1 sCast2_I1_ON; dev_ON; echo "!!!Item 1 Smartcasting OFF!!!"
- alias "sCast2_I2_ON" "sCast_I2_ON; alias +sCast2_I2 sCast2_I2_OFF; dev_ON; echo "!!!Item 2 Smartcasting ON!!!"
- alias "sCast2_I2_OFF" "sCast_I2_OFF; alias +sCast2_I2 sCast2_I2_ON; dev_ON; echo "!!!Item 2 Smartcasting OFF!!!"
- alias "sCast2_I3_ON" "sCast_I3_ON; alias +sCast2_I3 sCast2_I3_OFF; dev_ON; echo "!!!Item 3 Smartcasting ON!!!"
- alias "sCast2_I3_OFF" "sCast_I3_OFF; alias +sCast2_I3 sCast2_I3_ON; dev_ON; echo "!!!Item 3 Smartcasting OFF!!!"
- alias "sCast2_I4_ON" "sCast_I4_ON; alias +sCast2_I4 sCast2_I4_OFF; dev_ON; echo "!!!Item 4 Smartcasting ON!!!"
- alias "sCast2_I4_OFF" "sCast_I4_OFF; alias +sCast2_I4 sCast2_I4_ON; dev_ON; echo "!!!Item 4 Smartcasting OFF!!!"
- alias "sCast2_I5_ON" "sCast_I5_ON; alias +sCast2_I5 sCast2_I5_OFF; dev_ON; echo "!!!Item 5 Smartcasting ON!!!"
- alias "sCast2_I5_OFF" "sCast_I5_OFF; alias +sCast2_I5 sCast2_I5_ON; dev_ON; echo "!!!Item 5 Smartcasting OFF!!!"
- alias "sCast2_I6_ON" "sCast_I6_ON; alias +sCast2_I6 sCast2_I6_OFF; dev_ON; echo "!!!Item 6 Smartcasting ON!!!"
- alias "sCast2_I6_OFF" "sCast_I6_OFF; alias +sCast2_I6 sCast2_I6_ON; dev_ON; echo "!!!Item 6 Smartcasting OFF!!!"
- /////
- // Actions
- /////
- alias "+sCast2_Atk" "sCast2_Atk_OFF"
- alias "-sCast2_Atk" "dev_OFF"
- alias "+sCast2_Move" "sCast2_Move_OFF"
- alias "-sCast2_Move" "dev_OFF"
- alias "sCast2_Atk_ON" "sCast_Atk_ON; alias +sCast2_Atk sCast2_Atk_OFF; dev_ON; echo "!!!Attack Smartcasting ON!!!"
- alias "sCast2_Atk_OFF" "sCast_Atk_OFF; alias +sCast2_Atk sCast2_Atk_ON; dev_ON; echo "!!!Attack Smartcasting OFF!!!"
- alias "sCast2_Move_ON" "sCast_Move_ON; alias +sCast2_Move sCast2_Move_OFF; dev_ON; echo "!!!Move Smartcasting ON!!!"
- alias "sCast2_Move_OFF" "sCast_Move_OFF; alias +sCast2_Move sCast2_Move_ON; dev_ON; echo "!!!Move Smartcasting OFF!!!"
- // Smartcast Hold-to-Disable (Individual)
- /////
- // Turns off Smartcasting when held
- //////////////////////////////////////////////////
- alias "+sCast0" "alias -sCast_A1; alias -sCast_A2; alias -sCast_A3; alias -sCast_A4; alias -sCast_A5; alias -sCast_A6; alias -sCast_I1; alias -sCast_I2; alias -sCast_I3; alias -sCast_I4; alias -sCast_I5; alias -sCast_I6; alias -sCast_Atk; alias -sCast_Move;"
- alias "-sCast0" "alias -sCast_A1 sCast_A1_Clk; alias -sCast_A2 sCast_A2_Clk; alias -sCast_A3 sCast_A3_Clk; alias -sCast_A4 sCast_A4_Clk; alias -sCast_A5 sCast_A5_Clk; alias -sCast_A6 sCast_A6_Clk; alias -sCast_I1 sCast_I1_Clk; alias -sCast_I2 sCast_I2_Clk; alias -sCast_I3 sCast_I3_Clk; alias -sCast_I4 sCast_I4_Clk; alias -sCast_I5 sCast_I5_Clk; alias -sCast_I6 sCast_I5_Clk; alias -sCast_Atk sCast_Atk_Clk; alias -sCast_Move sCast_Move_Clk;"
- // Misc
- //////////////////////////////////////////////////
- // Left-click simulation
- alias "clk" "+sixense_left_click; -sixense_left_click"
- // Developer Mode On/Off
- alias "dev_ON" "developer 1"
- alias "dev_OFF" "developer 0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement