Advertisement
aveyo

[Dota2] quick-cast toggle with OSD - outdated!

Oct 18th, 2014
1,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.31 KB | None | 0 0
  1. ////# REQUIRES ADDING ONCE TO YOUR AUTOEXEC.CFG THE OSD ENGINE PART FROM HERE: http://pastebin.com/MLYx21zm
  2.  
  3. alias "osd_qc_none_toolong" "echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` __ ` __ `` ______ ` `__ ` __ ` _______;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` |` \ | `|` /` __ `\ `| `\ | `| | ` ____|;echo ` |` |` |` | ` |` .----` `_______` |` `\| `| |` |` | `| | ` \| `| |` |__;echo ` |` |` / \| ` |` |` ` ` |_______| |` . ` `| |` | `| `| | `. ` `| | ` __|"
  4. alias "osd_qc_none" "osd_padding;osd_qc_none_toolong;echo ` |` |__\` \ ` |` `----. ` ` ` ` ` |` |\ ` | |` |__| `| | `|\ ` | |` |____;echo `` \_____\__| ` \______| ` ` ` ` ` |__| \__|` \______/ `|__| \__| |_______|"
  5. alias "osd_qc_all" "osd_padding;echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` ` ` ___ ` ` ` __ ` ` ` __;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` ` ` / ` \ ` ` |` | ` ` |` |;echo ` |` |` |` | ` |` .----` `_______ ` ` /` ^ `\ `` |` | ` ` |` |;echo ` |` |` / \| ` |` |` ` ` |_______| ` /` /_\ `\ ` |` | ` ` |` |;echo ` |` |__\` \ ` |` `----. ` ` `` ` ` /` _____ `\ `|` `---. |` `---.;echo `` \_____\__| ` \______| ` ` ` ` ` /__/ ` ` \__\ |______| |______|"
  6. alias "osd_qc_not_q_toolong" "echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` __ ` __ `` ______ ` `________ ` ` ` ` ______;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` |` \ | `|` /` __ `\ `|` ` ` ` |` _` ` / `__` \;echo ` |` |` |` | ` |` .----` `_______` |` `\| `| |` |` | `| `--|` |--` |_|` |` |` |` |;echo ` |` |` / \| ` |` |` ` ` |_______| |` . ` `| |` | `| `| `` |` | ` ` _ ` |` |` / \|"
  7. alias "osd_qc_not_q" "osd_padding;osd_qc_not_q_toolong;echo ` |` |__\` \ ` |` `----. ` ` ` ` ` |` |\ ` | |` |__| `| `` |` | ` `|_|` |` |__\` \;echo `` \_____\__| ` \______| ` ` ` ` ` |__| \__|` \______/ ` ` |__| ` ` ` `` \_____\__|"
  8. alias "osd_qc_not_w_toolong" "echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` __ ` __ `` ______ ` `________ ` ` `___ `` __ `` ___;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` |` \ | `|` /` __ `\ `|` ` ` ` | `_` \ `\` / `\` /` /;echo ` |` |` |` | ` |` .----` `_______` |` `\| `| |` |` | `| `--|` |--` |_|` \ `\/ ` `\/` /;echo ` |` |` / \| ` |` |` ` ` |_______| |` . ` `| |` | `| `| `` |` | ` ` _ `` \ `` ` ` ` /"
  9. alias "osd_qc_not_w" "osd_padding;osd_qc_not_w_toolong;echo ` |` |__\` \ ` |` `----. ` ` ` ` ` |` |\ ` | |` |__| `| `` |` | ` `|_|` ` \ ` /\ ` /;echo `` \_____\__| ` \______| ` ` ` ` ` |__| \__|` \______/ ` ` |__| ` ` `` ` ` \_/``\_/"
  10. alias "osd_qc_not_e_toolong" "echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` __ ` __ `` ______ ` `________ ` `` `_______;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` |` \ | `|` /` __ `\ `|` ` ` ` | `_ `| ` ____|;echo ` |` |` |` | ` |` .----` `_______` |` `\| `| |` |` | `| `--|` |--` |_| |` |__;echo ` |` |` / \| ` |` |` ` ` |_______| |` . ` `| |` | `| `| `` |` | ` ` _ `| ` __|"
  11. alias "osd_qc_not_e" "osd_padding;osd_qc_not_e_toolong;echo ` |` |__\` \ ` |` `----. ` ` ` ` ` |` |\ ` | |` |__| `| `` |` | ` `|_| |` |____;echo `` \_____\__| ` \______| ` ` ` ` ` |__| \__|` \______/ ` ` |__| ` ` ` `|_______|"
  12. alias "osd_qc_smart_toolong" "echo ` ` ______ ` ` ` ______ ` ` ` ` ` ` ` _______. .___` ___.` ` ` ___ ` ` ` ______ ` `________;echo `` / `__` \ ` ` /` ` ` | ` ` ` ` ` ` / ` ` ` | | ` \/ ` | ` ` / ` \ ` ` | ` _` \` |` ` ` ` |;echo ` |` |` |` | ` |` .----` `_______` ` \ ` \---` |` \ `/ `|` ` /` ^ `\` ` |` |_| `| `--|` |--`"
  13. alias "osd_qc_smart" "osd_padding;osd_qc_smart_toolong;echo ` |` |` / \| ` |` |` ` ` |_______|` ` \ ` \ `` |` |\/| `| ` /` /_\ `\ ` | ` ` `/ ` ` |` |;echo ` |` |__\` \ ` |` `----. ` ` ` ` ` .---\ ` \ ` |` |` | `|` /` _____ `\` |` |\ `\ ` ` |` |;echo `` \_____\__| ` \______| ` ` ` ` ` |_______/ ` |__| `|__| /__/ ` ` \__\ |__| \__\ `` |__|"
  14.  
  15.  
  16. ////# TOGGLE QUICKCAST SCRIPT BY AVEYO WITH AWESOME OSD!
  17. ////# Abilities NormalCast: the only disadvantage is that it's slow / choose target mode is annoying for experienced players!
  18. alias "ability_normalcast_0" "alias Ability_0 dota_ability_execute 0";alias "ability_normalcast_1" "alias Ability_1 dota_ability_execute 1";alias "ability_normalcast_2" "alias Ability_2 dota_ability_execute 2"
  19. alias "ability_normalcast_3" "alias Ability_3 dota_ability_execute 3";alias "ability_normalcast_4" "alias Ability_4 dota_ability_execute 4";alias "ability_normalcast_5" "alias Ability_5 dota_ability_execute 5"
  20.  
  21. ////# Abilities QuickCast: nobody would need anything else if it did work with double-tap-to-self-cast
  22. alias "ability_quickcast_0" "alias Ability_0 dota_ability_quickcast 0";alias "ability_quickcast_1" "alias Ability_1 dota_ability_quickcast 1";alias "ability_quickcast_2" "alias Ability_2 dota_ability_quickcast 2"
  23. alias "ability_quickcast_3" "alias Ability_3 dota_ability_quickcast 3";alias "ability_quickcast_4" "alias Ability_4 dota_ability_quickcast 4";alias "ability_quickcast_5" "alias Ability_5 dota_ability_quickcast 5"
  24.  
  25. ////# SmartCast Alternative
  26. ////# It's a hackish way of emulating QuickCast without it's main disadvantage of not working with "Double Tap to Self Cast" or blocking level up skills, while also providing auto-queue without shift (how it should have been from the get-go, Valve!)
  27. ////# It can introduce it's own bugs, like random jumping targets or accidentally selecting units under mouse cursor in the heat of the battle, and it also screws with "Double Tap to Self Cast" for town portal scroll or BoT by sending you to the nearest target instead of the fountain
  28. alias "leftclick" "+sixense_left_click; -sixense_left_click" //the hackish part about it
  29. ////# Items SmartCast:
  30. alias "dota_item_smartcast_0" "dota_item_execute 0;leftclick";alias "dota_item_smartcast_1" "dota_item_execute 1;leftclick";alias "dota_item_smartcast_2" "dota_item_execute 2;leftclick"
  31. alias "dota_item_smartcast_3" "dota_item_execute 3;leftclick";alias "dota_item_smartcast_4" "dota_item_execute 4;leftclick";alias "dota_item_smartcast_5" "dota_item_execute 5;leftclick"
  32. ////# Abilities SmartCast:
  33. alias "dota_ability_smartcast_0" "dota_ability_execute 0;leftclick";alias "dota_ability_smartcast_1" "dota_ability_execute 1;leftclick";alias "dota_ability_smartcast_2" "dota_ability_execute 2;leftclick"
  34. alias "dota_ability_smartcast_3" "dota_ability_execute 3;leftclick";alias "dota_ability_smartcast_4" "dota_ability_execute 4;leftclick";alias "dota_ability_smartcast_5" "dota_ability_execute 5;leftclick"
  35. alias "ability_smartcast_0" "alias Ability_0 dota_ability_smartcast_0";alias "ability_smartcast_1" "alias Ability_1 dota_ability_smartcast_1";alias "ability_smartcast_2" "alias Ability_2 dota_ability_smartcast_2"
  36. alias "ability_smartcast_3" "alias Ability_3 dota_ability_smartcast_3";alias "ability_smartcast_4" "alias Ability_4 dota_ability_smartcast_4";alias "ability_smartcast_5" "alias Ability_5 dota_ability_smartcast_5"
  37.  
  38. ////# Neither method is perfect, so to combine them in an easy way, i'm grouping all heroes by self-casting abilities: QC-NONE / QC-ALL / QC-NOT-Q / QC-NOT-W / QC-NOT-E / QC-SMART
  39. alias "qc_none" "ability_normalcast_0;ability_normalcast_1;ability_normalcast_2;ability_normalcast_3;ability_normalcast_4;ability_normalcast_5; alias qc qc_all; osd_qc_none" // oracle omni invoker? = use only normalcast
  40. alias "qc_all" "ability_quickcast_0;ability_quickcast_1;ability_quickcast_2;ability_quickcast_3;ability_quickcast_4;ability_quickcast_5; alias qc qc_not_q; osd_qc_all" // all heroes without self-casting = use only Quickcast
  41. alias "qc_not_q" "ability_normalcast_0;ability_quickcast_1;ability_quickcast_2;ability_quickcast_3;ability_quickcast_4;ability_quickcast_5; alias qc qc_not_w; osd_qc_not_q" // bane,bloodseeker,huskar,shadowdemon,treant = use QuickCast except for Q (Ability_0)
  42. alias "qc_not_w" "ability_quickcast_0;ability_normalcast_1;ability_quickcast_2;ability_quickcast_3;ability_quickcast_4;ability_quickcast_5; alias qc qc_not_e; osd_qc_not_w" // abaddon,darkseer,dazzle,legioncommander,lich,magnus,meepo,od,pudge,pugna,undying,warlock = use QuickCast except for W (Ability_1)
  43. alias "qc_not_e" "ability_quickcast_0;ability_quickcast_1;ability_normalcast_2;ability_quickcast_3;ability_quickcast_4;ability_quickcast_5; alias qc qc_smart; osd_qc_not_e" // io,kotl,kunkka,ogre = use QuickCast except for E (Ability_2)
  44. alias "qc_smart" "ability_smartcast_0;ability_smartcast_1;ability_smartcast_2;ability_smartcast_3;ability_smartcast_4;ability_smartcast_5; alias qc qc_none; osd_qc_smart" // SmartCast all (read the notes for pro's and con's)
  45. alias "qc_init" "ability_normalcast_0;ability_normalcast_1;ability_normalcast_2;ability_normalcast_3;ability_normalcast_4;ability_normalcast_5; alias qc qc_all"; qc_init // Use normalcast by default i.e. disable all QuickCast
  46. ////# Just one key needed to toggle quickcast/normalcast:
  47. alias "+qc_toggle" "contimes 11;osd_on";alias "-qc_toggle" "qc;osd_off";
  48.  
  49. ////# ABILITIES = QWEDF-R-TY Normal cast: Quick cast: Smart cast Dynamic Toggle
  50. bind "Q" "Ability_0" // Ability 0 - SET TO ALT+Q IN GUI!!! "dota_ability_execute 0" "dota_ability_quickcast 0" "dota_ability_smartcast_0" "Ability_0"
  51. bind "W" "Ability_1" // Ability 1 - SET TO ALT+W IN GUI!!! "dota_ability_execute 1" "dota_ability_quickcast 1" "dota_ability_smartcast_1" "Ability_1"
  52. bind "E" "Ability_2" // Ability 2 - SET TO ALT+E IN GUI!!! "dota_ability_execute 2" "dota_ability_quickcast 2" "dota_ability_smartcast_2" "Ability_2"
  53. bind "D" "Ability_3" // Ability 3 - SET TO ALT+D IN GUI!!! "dota_ability_execute 3" "dota_ability_quickcast 3" "dota_ability_smartcast_3" "Ability_3"
  54. bind "F" "Ability_4" // Ability 4 - SET TO ALT+F IN GUI!!! "dota_ability_execute 4" "dota_ability_quickcast 4" "dota_ability_smartcast_4" "Ability_4"
  55. bind "R" "Ability_5" // Ultimate - SET TO ALT+R IN GUI!!! "dota_ability_execute 5" "dota_ability_quickcast 5" "dota_ability_smartcast_5" "Ability_5"
  56. bind "T" "dota_ability_learn_mode" // Ability Learn
  57. bind "Y" "dota_learn_stats" // Upgrade Stats
  58.  
  59. ////# ITEMS = 123456 Normal cast: Quick cast: Smart cast:
  60. bind "1" "dota_item_quick_cast 0" // Item 0 - SET TO ALT+1 IN GUI!!! "dota_item_execute 0" "dota_item_quick_cast 0" "dota_item_smartcast_0"
  61. bind "2" "dota_item_quick_cast 1" // Item 1 - SET TO ALT+2 IN GUI!!! "dota_item_execute 1" "dota_item_quick_cast 1" "dota_item_smartcast_1"
  62. bind "3" "dota_item_smart_cast_2" // Item 2 - SET TO ALT+3 IN GUI!!! "dota_item_execute 2" "dota_item_quick_cast 2" "dota_item_smartcast_2"
  63. bind "4" "dota_item_smart_cast_3" // Item 3 - SET TO ALT+4 IN GUI!!! "dota_item_execute 3" "dota_item_quick_cast 3" "dota_item_smartcast_3"
  64. bind "5" "dota_item_execute 4" // Item 4 - SET TO ALT+5 IN GUI!!! "dota_item_execute 4" "dota_item_quick_cast 4" "dota_item_smartcast_4"
  65. bind "6" "dota_item_execute 5" // Item 5 - SET TO ALT+6 IN GUI!!! "dota_item_execute 5" "dota_item_quick_cast 5" "dota_item_smartcast_5"
  66.  
  67. ////# TOGGLE QUICKCAST / SMARTCAST
  68. bind "INS" "+qc_toggle" //or just write 'qc' in console to toggle
  69. //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement