Guest User

Dota 2 Smartcast v1.0b [ON]

a guest
Apr 16th, 2012
1,451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //////////////////////////////////////////////////
  2. // Smartcast
  3. //////////////////////////////////////////////////
  4. // Verion: 1.0b
  5. // Updated: April 16th, 2012
  6. /////
  7. // Script by: 8e8
  8. // Inspired by: SkyClad, denunciator
  9. //////////////////////////////////////////////////
  10. // Notes:
  11. //////////////////////////////////////////////////
  12. // This script is a user made solution to Smartcasting in Dota 2.
  13. // As such, it may have some unintended results. Use at your own discretion.
  14. // Be sure to back up your existing configs to revert any unwanted changes.
  15. // If your ability/item keys are bound through key modifiers this script will not work
  16. // (ex. Alt+Q for Ability 1, or Alt+1 for Item 1)
  17. //////////////////////////////////////////////////
  18.  
  19.  
  20.  
  21. // Smartcast Key Binds
  22. /////
  23. // Replace these with your own keys, and be sure to unbind those keys from the settings menu
  24. //////////////////////////////////////////////////
  25. bind "q" "+sCastAbil_1" // Ability 1
  26. bind "w" "+sCastAbil_2" // Ability 2
  27. bind "e" "+sCastAbil_3" // Ability 3
  28. bind "t" "+sCastAbil_4" // Ability 4
  29. bind "g" "+sCastAbil_5" // Ability 5
  30. bind "r" "+sCastAbil_6" // Ultimate
  31. bind "1" "+sCastItem_1" // Item 1
  32. bind "2" "+sCastItem_2" // Item 2
  33. bind "3" "+sCastItem_3" // Item 3
  34. bind "4" "+sCastItem_4" // Item 4
  35. bind "5" "+sCastItem_5" // Item 5
  36. bind "6" "+sCastItem_6" // Item 6
  37. // Uncomment the bind you'd like to use
  38. //bind "m" "sCast" // Toggles Smartcast on or off
  39. //bind "m" "+sCast" // Toggles Smartcast when held down
  40.  
  41.  
  42. // Smartcast Abilities
  43. /////
  44. // Creates an alias for each Ability to toggle between Smartcasting
  45. //////////////////////////////////////////////////
  46. alias "+sCastAbil_1" "dota_ability_execute 0"
  47. alias "-sCastAbil_1" "click"
  48. alias "+sCastAbil_2" "dota_ability_execute 1"
  49. alias "-sCastAbil_2" "click"
  50. alias "+sCastAbil_3" "dota_ability_execute 2"
  51. alias "-sCastAbil_3" "click"
  52. alias "+sCastAbil_4" "dota_ability_execute 3"
  53. alias "-sCastAbil_4" "click"
  54. alias "+sCastAbil_5" "dota_ability_execute 4"
  55. alias "-sCastAbil_5" "click"
  56. alias "+sCastAbil_6" "dota_ability_execute 5"
  57. alias "-sCastAbil_6" "click"
  58.  
  59.  
  60. // Smartcast Items
  61. /////
  62. // Creates an alias for each item to toggle between Smartcasting
  63. //////////////////////////////////////////////////
  64. alias "+sCastItem_1" "dota_item_execute 0"
  65. alias "-sCastItem_1" "click"
  66. alias "+sCastItem_2" "dota_item_execute 1"
  67. alias "-sCastItem_2" "click"
  68. alias "+sCastItem_3" "dota_item_execute 2"
  69. alias "-sCastItem_3" "click"
  70. alias "+sCastItem_4" "dota_item_execute 3"
  71. alias "-sCastItem_4" "click"
  72. alias "+sCastItem_5" "dota_item_execute 4"
  73. alias "-sCastItem_5" "click"
  74. alias "+sCastItem_6" "dota_item_execute 5"
  75. alias "-sCastItem_6" "click"
  76.  
  77.  
  78. // Smartcast Press-to-Toggle
  79. /////
  80. // Toggles the state of every key
  81. //////////////////////////////////////////////////
  82. alias "sCast" "sCastOff"
  83. alias "sCastOn" "alias -sCastAbil_1 click; alias -sCastAbil_2 click; alias -sCastAbil_3 click; alias -sCastAbil_4 click; alias -sCastAbil_5 click; alias -sCastAbil_6 click; alias -sCastAbil_1 click; alias -sCastItem_2 click; alias -sCastItem_3 click; alias -sCastItem_4 click; alias -sCastItem_ 5 click; alias -sCastItem_6 click; alias sCast sCastOff;
  84. alias "sCastOff" "alias -sCastAbil_1; alias -sCastAbil_2; alias -sCastAbil_3; alias -sCastAbil_4; alias -sCastAbil_5; alias -sCastAbil_6; alias -sCastAbil_1; alias -sCastItem_2; alias -sCastItem_3; alias -sCastItem_4; alias -sCastItem_5; alias -sCastItem_6; alias sCast sCastOn;
  85.  
  86.  
  87. // Smartcast Hold-to-Toggle
  88. /////
  89. // Toggles the state of every key when held
  90. //////////////////////////////////////////////////
  91. alias "+sCast" "sCastOn"
  92. alias "-sCast" "sCastOff"
  93.  
  94.  
  95. // Left-click simulation
  96. alias "click" "+sixense_left_click; -sixense_left_click"
Advertisement
Add Comment
Please, Sign In to add comment