Advertisement
AnitaOctavia

Dota 2 Autoexec Script by Anita

Nov 4th, 2013
2,279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 32.83 KB | None | 0 0
  1. // Dota 2 Autoexec Script Anita (Octavia, u/iheartdisraptor)
  2. // Credits to Filk for an earlier version and various Reddit threads on autoexec scripts.
  3. // Reddit thread: http://www.reddit.com/r/DotA2/comments/1pwvut/enhanced_autoexec_script_with_useful_variables
  4. // This script belongs to the community. Feel free to extend and rerelease this script.
  5.  
  6. // Directions:
  7. // 1. Enable the Dota 2 console: http://www.hattongames.com/2012/03/how-to-enable-the-console-in-dota-2
  8. // 2. Place script in <Steam folder>/SteamApps/common/dota 2 beta/dota/cfg.
  9. // 3. For changes to take effect, restart Dota or enter "exec autoexec.cfg" into the console.
  10.  
  11. // Notes:
  12. // Some keys may not work until you unbind them in the GUI settings (top left corner of start screen).
  13. // Many console variables are boolean (0 means off and 1 means on), so they can be enabled/disabled that way.
  14. // To disable a line, use // at the beginning of the line.
  15.  
  16. // Changelog:
  17. // 1.3, 13.11.11
  18. // - Added advanced spectator controls with F7 (enabled by default or entering spectator_controls in console)
  19. // - Moved reload autoexec button to F10
  20. // - Combined debug output into a toggle button (F11)
  21. // - Improved cheats
  22. //   - Combined cheat keys into a toggle button (F8)
  23. //   - Added free_camera and fixed_camera bound to toggle on KP_DIVIDE
  24. //   - Added controls for setting camera distance (-/+/* on keypad)
  25. // - Added options for the courier message, including no message
  26. // - dota_range_display now defaults to 1300 (XP range)
  27. // - Improved organization, documentation, and comments
  28. // 1.2, 13.11.05
  29. // - Added net graph positioning for 1920x1080
  30. // - Added keys to enable/disable debug output
  31. // - Added key to exec autoexec.cfg
  32. // - Improved organization and comments
  33. // - Fixed "unknown command 's'" bug
  34. // - Moved alias to before drills
  35. // 1.1, 13.11.04
  36. // - Added right click deny (credits to Jakeyzz)
  37. // - Added minimap icon scaling by heroes distance from each other (credits to gramathy)
  38. // 1.0, 13.11.04
  39. // - Initial version
  40.  
  41. // Console variables //////////////////////////////////////////////////////////////////////////////////////////////////
  42.  
  43. // Miscellaneous variables //
  44.  
  45. // Enable console on game launch. This allows you to use the console without specifying the -console launch option.
  46. // This method is preferable if you don't want the console to open automatically at startup (what -console does).
  47. con_enable 1
  48.  
  49. // When enabled, displays debug output
  50. //developer 0
  51.  
  52. // Enable cheats in local lobbies
  53. sv_cheats 1
  54.  
  55. // When range finder is disabled, the range of a skill is shown with a green arrow when active
  56. dota_disable_range_finder 0
  57.  
  58. // Set a static range indicator to 1200 units (only works in practice lobbies)
  59. dota_range_display 1300
  60.  
  61. // When enabled, right clicking an allied creep can deny it
  62. dota_force_right_click_attack 0
  63.  
  64. // Minimap variables //
  65.  
  66. // Set the delay between a c;ommand and clicking the minimap
  67. dota_minimap_misclick_time 0.20
  68.  
  69. // Set the the size of minimap icons
  70. dota_minimap_hero_size 800
  71.  
  72. // Minimap icon scaling //
  73.  
  74. // Minimap icon scaling by heroes proximity to each other
  75. // When heroes are close together, their icons will be reduced in size on the minimap so that you can more easily see
  76. // who is there from the minimap. Without this, icons close together will overlap more and its hard to tell who is
  77. // there by looking at the minimap.
  78.  
  79. // Enable minimap icon scaling
  80. dota_minimap_hero_scalar 1
  81.  
  82. // Proximity in pixels to begin scaling (default 12)
  83. dota_minimap_hero_scalar_distance 20
  84.  
  85. // Minimum scaled size (default 500)
  86. dota_minimap_hero_scalar_minimum 600
  87.  
  88. // Net graph variables //
  89.  
  90. // The net graph shows ping and FPS in the top right corner. If you don't use one of the resolutions defined below,
  91. // you will have to experiment with the values to position the graph correctly.
  92.  
  93. // Enable the net graph on start (default 0)
  94. net_graph 1
  95.  
  96. // When enabled, font size is proportional to screen resolution
  97. net_graphproportionalfont 0
  98.  
  99. // Vertical height of the graph in pixels
  100. net_graphheight 40
  101.  
  102. // Position the net graph for 1920x1200 resolution (16:10 aspect ratio)
  103. net_graphinsetbottom 450 // Distance in pixels from the bottom of the screen
  104. net_graphinsetleft 650   // Distance in pixels from the left side of the screen
  105.  
  106. // Position the net graph for 1920x1080 resolution (16:9 aspect ratio)
  107. //net_graphinsetbottom 445
  108. //net_graphinsetleft 750
  109.  
  110. // Health bar variables //
  111.  
  112. // Fade time on damage received reduced to half duration
  113. dota_health_hurt_decay_time_max 0.4  // default 0.8
  114. dota_health_hurt_decay_time_min 0.15 // default 0.3
  115. dota_health_hurt_delay 0.05          // default 0.1
  116. dota_pain_decay 0.4                  // default 0.8
  117. dota_pain_factor 1.5                 // default 3
  118. dota_pain_fade_rate 1.5              // default 3
  119. dota_pain_multiplier 0.4             // default 0.8
  120.  
  121. // Set health points per vertical marker in health bars (default 250)
  122. dota_health_per_vertical_marker 250
  123.  
  124. // Custom key controls ////////////////////////////////////////////////////////////////////////////////////////////////
  125.  
  126. // NOTE: Key control settings through the UI will always override those in autoexec.cfg. If something doesn't work, it's
  127. // likely because you have it bound through the UI. Try changing the UI binding to get it to work.
  128.  
  129. // Camera focus controls //
  130.  
  131. // Center the camera on the top rune
  132. alias "focus_on_top_rune" "dota_camera_setpos -2273.898682 1232.745483 982.072876; bind F2 focus_on_bot_rune"
  133.  
  134. // Center the camera on the bot rune
  135. alias "focus_on_bot_rune" "dota_camera_setpos 3035.773438 -2972.680176 966.072937; bind F2 focus_on_hero"
  136.  
  137. // Center the camera on the hero
  138. alias "focus_on_hero" "+dota_camera_follow; -dota_camera_follow; +dota_camera_follow; -dota_camera_follow; bind F2 focus_on_top_rune"
  139.  
  140. // Bind keys to center the camera on the hero with a single button press
  141. bind "F1" "focus_on_hero"
  142.  
  143. // Do the same using the legacy key from HoN
  144. //bind "c" "focus_on_hero"
  145.  
  146. // Bind a key to cycle between runes and hero
  147. bind "F2" "focus_on_top_rune"
  148.  
  149. // Courier controls //
  150.  
  151. // Various messages (enable one by uncommenting it while disabling the rest by commenting them)
  152. alias "quick_courier_msg" "say_team Using the courier! Share if needed."
  153. //alias "quick_courier_msg" "say_team The courier is coming to me! Please wait."
  154. //alias "quick_courier_msg" "" // Uncomment this to display no message
  155.  
  156. // Courier deliver items with speed boost and a message for teammates
  157. alias "quick_courier" "dota_courier_deliver; quick_courier_msg;dota_select_courier;dota_ability_execute 5;+dota_camera_follow"
  158.  
  159. // Bind a key to have the courier deliver items with speed boost
  160. bind "x" "quick_courier"
  161.  
  162. // Seven chat wheels //
  163.  
  164. // Setup seven chat wheels bound to s, y, u, i, h, j, k (generated with http://chudooder.github.io/dota2chatwheel)
  165. // that are organized logically (except for 's', which contains often used responses. Change the bindings as needed.
  166.  
  167. // Often used responses
  168. bind "s" "+chatwheel; chat0"
  169. alias chat0 "chat_wheel_phrase_0 8;chat_wheel_phrase_1 1;chat_wheel_phrase_2 2;chat_wheel_phrase_3 5;chat_wheel_phrase_4 12;chat_wheel_phrase_5 57;chat_wheel_phrase_6 6;chat_wheel_phrase_7 7;"
  170.  
  171. // Positioning related responses
  172. bind "y" "+chatwheel; chat1"
  173. alias chat1 "chat_wheel_phrase_0 14;chat_wheel_phrase_1 15;chat_wheel_phrase_2 16;chat_wheel_phrase_3 19;chat_wheel_phrase_4 20;chat_wheel_phrase_5 21;chat_wheel_phrase_6 22;chat_wheel_phrase_7 23;"
  174.  
  175. // Spells and runes responses
  176. bind "u" "+chatwheel; chat2"
  177. alias chat2 "chat_wheel_phrase_0 25;chat_wheel_phrase_1 26;chat_wheel_phrase_2 27;chat_wheel_phrase_3 28;chat_wheel_phrase_4 30;chat_wheel_phrase_5 31;chat_wheel_phrase_6 32;chat_wheel_phrase_7 33;"
  178.  
  179. // Ganking, pushing, and detection responses
  180. bind "i" "+chatwheel; chat3"
  181. alias chat3 "chat_wheel_phrase_0 34;chat_wheel_phrase_1 35;chat_wheel_phrase_2 36;chat_wheel_phrase_3 37;chat_wheel_phrase_4 38;chat_wheel_phrase_5 39;chat_wheel_phrase_6 41;chat_wheel_phrase_7 42;"
  182.  
  183. // Laning responses
  184. bind "h" "+chatwheel; chat4"
  185. alias chat4 "chat_wheel_phrase_0 44;chat_wheel_phrase_1 45;chat_wheel_phrase_2 46;chat_wheel_phrase_3 59;chat_wheel_phrase_4 48;chat_wheel_phrase_5 49;chat_wheel_phrase_6 50;chat_wheel_phrase_7 51;"
  186.  
  187. // Flavor responses 1
  188. bind "j" "+chatwheel; chat5"
  189. alias chat5 "chat_wheel_phrase_0 53;chat_wheel_phrase_1 0;chat_wheel_phrase_2 54;chat_wheel_phrase_3 60;chat_wheel_phrase_4 61;chat_wheel_phrase_5 62;chat_wheel_phrase_6 63;chat_wheel_phrase_7 64;"
  190.  
  191. // Flavor responses 2
  192. bind "k" "+chatwheel; chat6"
  193. alias chat6 "chat_wheel_phrase_0 65;chat_wheel_phrase_1 66;chat_wheel_phrase_2 67;chat_wheel_phrase_3 68;chat_wheel_phrase_4 69;chat_wheel_phrase_5 70;chat_wheel_phrase_6 55;chat_wheel_phrase_7 56;"
  194.  
  195. // Cheat controls //
  196.  
  197. // Disable cheats by default
  198. disable_cheats
  199.  
  200. // Turn on/off cheats (see below)
  201. bind "F8" "cheat_keys_on"
  202.  
  203. // Here is a list of the commands created by enabling cheats (F8)
  204. // ...
  205.  
  206. // The following are aliases used to implement cheat keys (see above)
  207.  
  208. // Turn on/off wtf mode (no cooldowns or manacost) (binds to =, -)
  209. alias "cheats_wtf" "say_team 'wtf'; dota_ability_debug_enable; dota_ability_debug 1"
  210. alias "cheats_unwtf" "say_team 'unwtf'; dota_ability_debug_disable; dota_ability_debug 0"
  211.  
  212. // Fully restore the currently selected unit (binds to [)
  213. alias "cheats_refresh" "say_team 'refresh'; dota_hero_refresh; dota_dev hero_refresh"
  214.  
  215. // Destroy all wards (binds to ])
  216. alias "cheats_killwards" "say_team 'killwards'; dota_killwards; dota_dev killwards"
  217.  
  218. // Spawn neutrals in the jungle (binds to \)
  219. alias "cheats_spawnneutrals" "say_team 'spawnneutrals'; dota_spawn_neutrals"
  220.  
  221. // Level up your hero to max level (binds to ,)
  222. alias "cheats_lvlup25" "say_team 'lvlup 25'; dota_hero_level 25; dota_dev hero_level 25"
  223.  
  224. // Max level for all bots (binds to .)
  225. alias "cheats_levelbots25" "say_team 'levelbots 25'; dota_bot_give_level 25"
  226.  
  227. // Give max gold (binds to /)
  228. alias "cheats_gold99999" "say_team 'gold 99999'; dota_give_gold 99999; dota_dev player_givegold 99999"
  229.  
  230. // Create aliases to turn off and turn cheats. Note: this uses F8 in definition, if you want to change it you must change
  231. // it in the next two lines as well as below.
  232. alias "enable_cheats" "sv_cheats 1; bind = cheats_wtf; bind - cheats_unwtf; bind [ cheats_refresh; bind ] cheats_killwards; bind \ cheats_spawnneutrals; bind , cheats_lvlup25; bind . cheats_levelbots25; bind / cheats_gold99999"
  233. alias "disable_cheats" "bind = .; bind - .; bind [ .; bind ] .; bind \ .; bind , .; bind . .; bind / ."
  234. alias "cheat_keys_on" "echo Cheat keys on; enable_cheats; bind F8 cheat_keys_off"
  235. alias "cheat_keys_off" "echo Cheat keys off; disable_cheats; bind F8 cheat_keys_on"
  236.  
  237. // Always on cheat controls //
  238.  
  239. // These cheats don't echo to the console or team chat, and therefore don't need to be enabled/disabled.
  240.  
  241. // These all require sv_cheats to be set, therefore they always attempt to set it first.
  242.  
  243. // Teleport hero to the current mouse position (requires sv_cheats 1 in a local lobby)
  244. bind "l" "sv_cheats 1; dota_dev hero_teleport"
  245.  
  246. // Increase game speed (requires sv_cheats 1 in a local lobby)
  247. bind "'" "sv_cheats 1; incrementvar host_timescale 1 12 11"
  248.  
  249. // Turn on or off free camera mode. Use mouse to turn and arrow keys to travel.
  250. alias "free_camera" "sv_cheats 1; noclip 1; dota_hud_healthbars 0; bind kp_divide fixed_camera"
  251. alias "fixed_camera" "sv_cheats 1; noclip 0; dota_hud_healthbars 1; bind kp_divide free_camera"
  252. bind "kp_divide" "free_camera"
  253.  
  254. // Change camera distance by zooming out
  255. bind "kp_plus" "sv_cheats 1; incrementvar dota_camera_distance 134 3134 200; focus_on_hero"
  256.  
  257. // Change camera distance by zooming in
  258. bind "kp_minus" "sv_cheats 1; incrementvar dota_camera_distance 134 3134 -200; focus_on_hero"
  259.  
  260. // Reset camera distance
  261. bind "kp_multiply" "sv_cheats 1; dota_camera_distance 1134; focus_on_hero"
  262.  
  263. // Advanced spectator controls //
  264.  
  265. // by Anita (Octavia, u/iheartdisraptor)
  266. // Spectator controls in options will override these controls; if something doesn't work you must disable or change it in options.
  267. // This script belongs to the community. Feel free to extend and rerelease this script.
  268.  
  269. // Directions:
  270. // 1. Enable the Dota 2 console: http://www.hattongames.com/2012/03/how-to-enable-the-console-in-dota-2
  271. // 2. Add this script to  <Steam folder>/SteamApps/common/dota 2 beta/dota/cfg/autoexec.cfg.
  272. // 3. Restart Dota 2 or open the console and enter "exec autoexec.cfg".
  273. // 4. Review the key bindings below and change/disable in the UI options any spectator keys that conflict.
  274. // 5. Open a game in DotaTV or a replay and hit F7 to enable the controls.
  275.  
  276. // Known issues:
  277. // - Controls set in the UI options (top left corner) will override these controls and must be changed/disabled
  278. // - Controls do not work during the drafting phase (UI still works)
  279. // - When using free camera and disabled UI bindings sometimes cause the game to not accept key presses. You must restart Dota to fix this.
  280.  
  281. // Changelog:
  282. // 1.2, 13.11.13
  283. // - F6 additional display mode that shows minimap but disables the rest of the UI
  284. // 1.1, 13.11.12
  285. // - F6 also disables stats dropdown and replay panels
  286. // - F6 cycles between disabling replay UI, full UI, and none
  287. // 1.0, 13.11.11
  288. // - Initial version
  289.  
  290. // The following are the key bindings created by pressing F7 (defined below):
  291. // F7 : Enable advanced spectator controls
  292. // 1-5 : Select Radiant heroes
  293. // QWERTY : Select Dire heroes
  294. // ASDFK : Select camera mode (directed, free, hero chase, player perspective, and directed player perspective accordingly)
  295. // Z : Rewind 10 seconds
  296. // X : Decelerate replay speed
  297. // C : Accelerate replay speed
  298. // V : Restore replay speed to normal (1x)
  299. // G : Select hero under mouse
  300. // N : Normal camera distance (1134) (you may have to move the camera for this to take effect)
  301. // M : Far camera distance (you may have to move the camera for this to take effect)
  302. // < : Zoom camera in
  303. // > : Zoom camera out
  304. // / : Free camera mode (allows turning of the camera; use in conjunction with hero chase and camera zoom in/out)
  305. // L : Toggle shoulder view
  306. // P : Toggle autospeed (directed camera only)
  307. // F6 : Toggle UI display
  308. // space : Pause
  309. // backspace : Clear chat (useful when seeking since replays tend to output all chat when seeking)
  310.  
  311. // Clear chat (useful when seeking through replays since all chat tends to display itself in its entirety)
  312. bind "backspace" "chat_clear"
  313.  
  314. // Enable spectator mode (special spectator commands listed above) with F7
  315. // If you use this in a normal game, you will have to disconnect/reconnect to fix your controls.
  316. bind F7 "spectator_enable"
  317.  
  318. // Enable/disable the UI (credits to Cyborgmatt)
  319. bind "F6" "ui_mode"
  320.  
  321. // Aliases used for implementing advanced spectator controls. See above.
  322.  
  323. alias "spectator_enable" "developer 1; echo Enabling advanced spectator controls; say_team Enabling advanced spectator controls. Warning: You must disconnect/reconnect to undo this.; spectator_bind_heroes; spectator_bind_modes; spectator_bind_controls"
  324.  
  325. // For 1080p, render_crop_height should be 166 and render_y_inset or else restoring the UI will not work quite right (you can change this below)
  326. // For 1200p, render_crop_height should be 148 and render_y_inset or else restoring the UI will not work quite right (you can change this below)
  327. alias "ui_mode" "ui_noreplay"
  328. alias "ui_noreplay" "echo Disabling replay UI; developer 0; dota_sf_hud_stats_dropdown 0; dota_sf_hud_force_spec -1; alias ui_mode ui_none"
  329. alias "ui_none" "echo Disabling UI; sv_cheats 1; dota_sf_hud_stats_dropdown 0; dota_sf_hud_force_spec -1; dota_sf_hud_actionpanel 0; dota_sf_hud_channelbar 0; dota_sf_hud_chat 0; dota_sf_hud_inventory 0; dota_sf_hud_top 0; dota_hud_healthbars 0; dota_no_minimap 1; cl_drawhud 0; dota_render_crop_height 0; dota_render_y_inset 0; developer 0; net_graph 0; alias ui_mode ui_full"
  330. alias "ui_full" "echo Enabling UI; sv_cheats 1; dota_sf_hud_stats_dropdown -1; dota_sf_hud_force_spec 0; dota_sf_hud_actionpanel 1; dota_sf_hud_channelbar 1; dota_sf_hud_chat 1; dota_sf_hud_inventory 1; dota_sf_hud_top 1; dota_hud_healthbars 1; dota_no_minimap 0; cl_drawhud 1; dota_render_crop_height 148; dota_render_y_inset 31; alias ui_mode ui_noreplay"alias "spectator_bind_heroes" "bind 1 dota_spectator_hero_index0; bind 2 dota_spectator_hero_index1; bind 3 dota_spectator_hero_index2; bind 4 dota_spectator_hero_index3; bind 5 dota_spectator_hero_index4; bind q dota_spectator_hero_index5; bind w dota_spectator_hero_index6; bind e dota_spectator_hero_index7; bind r dota_spectator_hero_index8; bind t dota_spectator_hero_index9"
  331. alias "spectator_bind_modes" "bind a dota_spectator_mode0; bind s dota_spectator_mode1; bind d dota_spectator_mode2; bind f dota_spectator_mode3; bind k dota_spectator_mode4; bind l dota_spectator_shoulder_toggle; bind p dota_spectator_autospeed_toggle"
  332. alias "spectator_bind_controls" "bind z dota_spectator_rewind; bind x dota_spectator_decreasereplayspeed; bind c dota_spectator_increasereplayspeed; bind v dota_spectator_resetreplayspeed; bind space dota_spectator_pausetoggle; bind n dota_camera_distance_normal; bind m dota_camera_distance_far; bind , spectator_zoom_in; bind . spectator_zoom_out; bind / dota_free_camera1; bind g dota_spectator_select_under_mouse"
  333.  
  334. alias "dota_free_camera0" "echo Free camera disabled; dota_free_camera 0; dota_hud_healthbars 1; bind / dota_free_camera1"
  335. alias "dota_free_camera1" "echo Free camera enabled; dota_free_camera 1; dota_hud_healthbars 0; bind / dota_free_camera0"
  336. alias "spectator_zoom_out" "echo Zooming out by 200 units; sv_cheats 1; incrementvar dota_camera_distance 134 6134 200"
  337. alias "spectator_zoom_in" "echo Zooming in by 200 units; sv_cheats 1; incrementvar dota_camera_distance 134 6134 -200"
  338. alias "dota_spectator_hero_index0" "echo Selecting hero Radiant blue; dota_spectator_hero_index 0"
  339. alias "dota_spectator_hero_index1" "echo Selecting hero Radiant teal; dota_spectator_hero_index 1"
  340. alias "dota_spectator_hero_index2" "echo Selecting hero Radiant purple; dota_spectator_hero_index 2"
  341. alias "dota_spectator_hero_index3" "echo Selecting hero Radiant yellow; dota_spectator_hero_index 3"
  342. alias "dota_spectator_hero_index4" "echo Selecting hero Radiant orange; dota_spectator_hero_index 4"
  343. alias "dota_spectator_hero_index5" "echo Selecting hero Dire pink; dota_spectator_hero_index 5"
  344. alias "dota_spectator_hero_index6" "echo Selecting hero Dire dark yellow; dota_spectator_hero_index 6"
  345. alias "dota_spectator_hero_index7" "echo Selecting hero Dire light blue; dota_spectator_hero_index 7"
  346. alias "dota_spectator_hero_index8" "echo Selecting hero Dire dark green; dota_spectator_hero_index 8"
  347. alias "dota_spectator_hero_index9" "echo Selecting hero Dire brown; dota_spectator_hero_index 9"
  348. alias "dota_spectator_mode0" "echo Using directed camera; dota_spectator_mode 0"
  349. alias "dota_spectator_mode1" "echo Using free camera; dota_spectator_mode 1"
  350. alias "dota_spectator_mode2" "echo Using hero chase; dota_spectator_mode 2"
  351. alias "dota_spectator_mode3" "echo Using player perspective; dota_spectator_mode 3; dota_spectator_directed_player_perspective 0"
  352. alias "dota_spectator_mode4" "echo Using directed player perspective; dota_spectator_mode 3; dota_spectator_directed_player_perspective 1"
  353. alias "dota_camera_distance_normal" "echo Setting normal camera distance; dota_camera_distance 1134 +dota_camera_follow; -dota_camera_follow; +dota_camera_follow; -dota_camera_follow"
  354. alias "dota_camera_distance_far" "echo Setting far camera distance; dota_camera_distance 1900; +dota_camera_follow; -dota_camera_follow; +dota_camera_follow; -dota_camera_follow"
  355. alias "dota_spectator_autospeed_toggle" "echo Toggling directed autospeed; toggle dota_spectator_autospeed 0 1; dota_spectator_resetreplayspeed"
  356. alias "dota_spectator_shoulder_toggle" "echo Toggling directed shoulder view; toggle dota_spectator_shoulder_view 0 1"
  357.  
  358. // Miscellaneous controls //
  359.  
  360. // Bind a key to toggle health per marker in health bars between 150 and 250.
  361. // 150 results in one bar per 200 magic damage assuming base 25% magic resistance (all heroes but Meepo and Visage).
  362. // Add additional numbers to dota_health_per_vertical_marker to extend the list of possible values.
  363. bind "F3" "toggle dota_health_per_vertical_marker 150 250"
  364.  
  365. // Bind a key toggle the net graph
  366. alias "show_net_graph" "net_graph 1; bind F5 hide_net_graph"
  367. alias "hide_net_graph" "net_graph 0; bind F5 show_net_graph"
  368. bind "F5" "hide_net_graph"
  369.  
  370. // F7 enables spectator controls, see above
  371. // F8 enables cheat controls, see above
  372.  
  373. // Reload this configuration script after it has been modified
  374. //bind "F10" "exec autoexec.cfg; echo Reloaded autoexec.cfg; say_team Reloaded autoexec.cfg."
  375. bind "F10" "exec autoexec.cfg; echo Reloaded autoexec.cfg"
  376.  
  377. // Bind F11 to enable/disable developer debug output
  378. alias "developer_on" "developer 1; echo Debug output enabled.; bind F11 developer_off"
  379. alias "developer_off" "developer 0; echo Debug output disabled.; bind F11 developer_on"
  380. bind F11 "developer_on"
  381.  
  382. // Display ping in the top right corner for a few seconds
  383. bind "p" "say_team -ping; dota_ping"
  384.  
  385. // Use the mouse to voice chat during drafting (during which the normal PTT key doesn't work)
  386. bind "mouse5" "+voicerecord"
  387.  
  388. // Aliases ////////////////////////////////////////////////////////////////////////////////////////////////////////////
  389.  
  390. // Aliases for creating allies //
  391.  
  392. // Create Sven to act as a punching bag and to test magic immunity vs skills
  393. alias "create_sven" "dota_create_unit sven; dota_bot_give_level 25; dota_bot_give_item item_heart; dota_bot_give_item item_black_king_bar; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart"
  394.  
  395. // Create a practice meepo
  396. alias "create_meepo" "dota_hero_level 25; dota_dev player_givegold 99999; dota_create_item item_power_treads; dota_create_item item_blink; dota_create_item item_ring_of_basilius; dota_create_item item_ultimate_scepter; dota_create_item item_courier; dota_create_item item_flying_courier"
  397.  
  398. // Alias for creating enemies //
  399.  
  400. // Create an enemy Nature's Prophet to run around placing wards
  401. alias "create_enemy_np" "dota_create_unit furion enemy; dota_bot_give_level 25; dota_bot_give_item item_travel_boots; dota_bot_give_item item_cyclone; give_bots_wards; give_bots_wards; give_bots_wards; give_bots_wards; give_bots_wards; dota_bot_give_item item_sange_and_yasha; dota_bot_give_item item_ancient_janggo"
  402.  
  403. // Create an enemy Sven as a punching bag and BKB tester
  404. alias "create_enemy_sven" "dota_create_unit sven enemy; dota_bot_give_level 25; dota_bot_give_item item_heart; dota_bot_give_item item_black_king_bar; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart"
  405.  
  406. // Create a Roshan
  407. alias "create_roshan" "dota_create_unit roshan enemy"
  408.  
  409. // Miscellaneous aliases //
  410.  
  411. // Pause aliases
  412. alias "pause_kb"    "say can we pause please? need to fix keyboard; dota_pause"
  413. alias "pause_mouse" "say can we pause please? need to fix mouse; dota_pause"
  414. alias "pause_wc"    "say can we pause please? need to use bathroom; dota_pause"
  415. alias "pause_door"  "say can we pause please? someone's banging on the door; dota_pause"
  416. alias "pause_cat"   "say can we pause please? cat puked something awful; dota_pause"
  417.  
  418. // A message to use when being a benevolent captain
  419. alias "say_captain" "say_team what roles do you want? what heroes can you play? no guarantees but it helps to know. also suggest bans as we go."
  420.  
  421. // Launch a single player bot game without having to connect to the Dota 2 network
  422. alias "start_bot_game" "sv_cheats 1; sv_lan 1; dota_start_ai_game 1; dota_bot_set_difficulty 2; map dota"
  423.  
  424. // Launch a single player game without bots. After the game loads, you will have to open the console and enter
  425. // "jointeam good" or "jointeam bad" to go to the pick screen.
  426. alias "start_empty_game" "sv_cheats 1; sv_lan 1; map dota"
  427.  
  428. // Shortcut aliases //
  429.  
  430. // These aliases are used in other commands either for clarity or because command lengths are limited.
  431.  
  432. alias "give_wards" "dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; "
  433.  
  434. // Give 10 of each ward type to bots
  435. alias "give_bots_wards" "dota_bot_give_item item_ward_sentry; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_sentry; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_sentry; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_sentry; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_sentry; dota_bot_give_item item_ward_observer;"
  436.  
  437. // Give 10 observer wards to player
  438. alias "give_observer_wards" "dota_create_item item_ward_observer; dota_create_item item_ward_observer; dota_create_item item_ward_observer; dota_create_item item_ward_observer; dota_create_item item_ward_observer"
  439.  
  440. // Give 50 observer wards to player
  441. alias "give_more_observer_wards" "give_observer_wards; give_observer_wards; give_observer_wards; give_observer_wards; give_observer_wards"
  442.  
  443. // Give 10 observer wards to bots
  444. alias "give_bots_observer_wards" "dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_observer; dota_bot_give_item item_ward_observer"
  445.  
  446. // Give 50 observer wards to bots
  447. alias "give_bots_more_observer_wards" "give_bots_observer_wards; give_bots_observer_wards; give_bots_observer_wards; give_bots_observer_wards; give_bots_observer_wards"
  448.  
  449. // Give an upgraded courier
  450. alias "give_courier" "dota_create_item item_courier; dota_create_item item_flying_courier"
  451.  
  452. // Practice drills ////////////////////////////////////////////////////////////////////////////////////////////////////
  453.  
  454. // Give 10 of each ward type to player. Used by the drills below.
  455. alias "give_wards" "dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; dota_create_item item_ward_sentry; dota_create_item item_ward_observer; "
  456.  
  457. // Sets up your hero for warding practice.
  458. // Gives you 50 of each type of ward and mobility. It also sets the range display (circle around hero)
  459. // to the reveal range of sentries. Use the teleport cheat to place your hero on top of your sentries
  460. // to see how far they reveal.
  461. alias "drill_wards" "drill_wards_msg; sv_cheats 1; dota_creeps_no_spawning_enable; dota_ability_debug_enable; drill_wards_upgrade_hero; dota_range_display 800"
  462. alias "drill_wards_msg" "say_team Drill: Wards."
  463. alias "drill_wards_upgrade_hero" "dota_hero_level 25; dota_dev player_givegold 99999; dota_create_item item_travel_boots; dota_create_item item_quelling_blade; give_wards; give_wards; give_wards; give_wards; give_wards; dota_create_item item_rapier; dota_create_item item_rapier"
  464.  
  465. // Gives your hero items for running juke paths. Use in conjunction with TheParadoxataur's juke path map:
  466. // http://www.reddit.com/r/DotA2/comments/182ggn/map_of_juke_paths_hiding_spots/
  467. alias "drill_juke" "drill_juke_msg; sv_cheats 1; dota_creeps_no_spawning_enable; dota_ability_debug_enable; drill_juke_upgrade_hero"
  468. alias "drill_juke_msg" "say_team Drill: Juke paths."
  469. alias "drill_juke_upgrade_hero" "dota_hero_level 25; dota_dev player_givegold 99999; dota_create_item item_travel_boots; dota_create_item item_quelling_blade; dota_create_item item_cyclone; dota_create_item item_sange_and_yasha; dota_create_item item_ancient_janggo; dota_ability_debug_enable;dota_creeps_no_spawning_enable"
  470.  
  471. // Sets up stacking and pulling practice. Gives you a quelling blade for cutting trees for chain pulling and warding.
  472. // Creates a tanky Sven to be positioned in front of the T1 tower so that it never dies.
  473. alias "drill_stackpull" "drill_stackpull_msg; sv_cheats 1; dota_start_game; drill_stackpull_upgrade_hero; drill_stackpull_create_sven; dota_range_display 800"
  474. alias "drill_stackpull_msg" "say_team Drill: Stacking and pulling."
  475. alias "drill_stackpull_upgrade_hero" "dota_create_item item_tpscroll; dota_create_item item_tpscroll; dota_create_item item_quelling_blade; give_wards"
  476. alias "drill_stackpull_create_sven" "dota_create_unit sven; dota_bot_give_level 25; dota_bot_give_item item_travel_boots; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart"
  477.  
  478. // Gives you items for practicing Meepo blinking and other micro
  479. alias "drill_meepo" "drill_meepo_msg; sv_cheats 1; drill_meepo_upgrade_hero"
  480. alias "drill_meepo_msg" "say_team Drill: Meepo skills."
  481. alias "drill_meepo_upgrade_hero" "dota_hero_level 25; dota_dev player_givegold 99999; dota_create_item item_power_treads; dota_create_item item_blink; dota_create_item item_ring_of_basilius; dota_create_item item_ultimate_scepter; dota_create_item item_courier; dota_create_item item_flying_courier"
  482.  
  483. // Sets up practicing for Pudge hooking
  484. alias "drill_pudge" "drill_pudge_msg; sv_cheats 1; drill_pudge"
  485. alias "drill_pudge_msg" "say_team Drill: Pudge skills."
  486.  
  487. // Sets up commands for spawning creeps under towers to practice tower lasthitting.
  488. // '[' will spawn a melee, ']' will spawn a ranged, and '\' will spawn a siege
  489. alias "drill_tower_lasthit" "drill_tower_lasthit_msg; sv_cheats 1; dota_creeps_no_spawning_enable; bind [ drill_tower_melee; bind ] drill_tower_ranged; bind \ drill_tower_siege"
  490. alias "drill_tower_lasthit_msg" "say_team Drill: Lasthit under towers."
  491. // Create an enemy melee creep
  492. alias "drill_tower_melee" "dota_create_unit npc_dota_creep_badguys_melee enemy"
  493. // Create an enemy ranged creep
  494. alias "drill_tower_ranged" "dota_create_unit npc_dota_creep_badguys_ranged enemy"
  495. // Create an enemy siege creep
  496. alias "drill_tower_siege" "dota_create_unit npc_dota_badguys_siege enemy"
  497.  
  498. // Creates an enemy Furion to be used for testing tower ranges (vision and reveal).
  499. alias "drill_tower_range" "drill_tower_range_msg; sv_cheats 1; dota_creeps_no_spawning_enable; dota_ability_debug_enable; drill_tower_range_enemy_np; drill_tower_range_upgrade_hero"
  500. alias "drill_tower_range_msg" "say_team Drill: Tower range."
  501. alias "drill_tower_range_enemy_np" "dota_create_unit furion enemy; dota_bot_give_level 25; dota_bot_give_item item_heart; dota_bot_give_item item_invis_sword; give_bots_more_observer_wards; dota_bot_give_item item_heart; dota_bot_give_item item_heart; dota_bot_give_item item_heart;"
  502. alias "drill_tower_range_upgrade_hero" "dota_hero_level 25; dota_dev player_givegold 99999; dota_create_item item_heart; dota_create_item item_invis_sword; give_more_observer_wards; dota_create_item item_heart; dota_create_item item_heart; dota_create_item item_heart;"
  503.  
  504. // Unused/old commands ////////////////////////////////////////////////////////////////////////////////////////////////
  505.  
  506. // Create a Nature's Prophet to run around placing wards
  507. //alias "create_np" "dota_create_unit furion; dota_bot_give_level 25; dota_bot_give_item item_travel_boots; dota_bot_give_item item_cyclone; give_bots_wards; give_bots_wards; give_bots_wards; give_bots_wards; give_bots_wards; dota_bot_give_item item_sange_and_yasha; dota_bot_give_item item_ancient_janggo"
  508.  
  509. // local cheats (sv_cheats 1)
  510. //bind "[" "say_team refresh; "
  511. //bind "]" "say_team killwards; "
  512. //bind "\" "say_team spawnneutrals; "
  513. //bind "," "say_team lvlup 25; dota_dev hero_level 25"
  514. //bind "." "say_team levelbots 25; dota_bot_give_level 25"
  515. //bind "/" "say_team gold 99999; dota_dev player_givegold 99999"
  516.  
  517. // Hold F1, F2, and F3 to display range indicators (only works in practice lobbies)
  518. //bind "F1" "+range1"
  519. //alias "+range1" "dota_range_display 600"
  520. //alias "-range1" "dota_range_display 0"
  521. //bind "F2" "+range2"
  522. //alias "+range2" "dota_range_display 900"
  523. //alias "-range2" "dota_range_display 0"
  524. //bind "F3" "+range3"
  525. //alias "+range3" "dota_range_display 1200"
  526. //alias "-range3" "dota_range_display 0"
  527.  
  528. // Manually adjust range indicator (only works in practice lobbies)
  529. //bind [ "incrementvar dota_range_display 0 1200 -100"
  530. //bind ] "incrementvar dota_range_display 0 1200 100"
  531.  
  532. // Center camera on top/bot rune
  533. //bind "F4" "dota_camera_setpos -2273.898682 1232.745483 982.072876"
  534. //bind "F5" "dota_camera_setpos 3035.773438 -2972.680176 966.072937"
  535.  
  536. //alias "spectate_directed" "dota_spectator_mode 0; echo Directed Camera; bind k spectate_player; bind l spectate_free"
  537. //alias "spectate_free" "dota_spectator_mode 1; echo Free Camera; bind k spectate_directed; bind l spectate_chase"
  538. //alias "spectate_chase" "dota_spectator_mode 2; echo Hero Chase; bind k spectate_free; bind l spectate_player"
  539. //alias "spectate_player" "dota_spectator_mode 3; echo Player Perspective; bind k spectate_chase; bind l spectate_directed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement