Advertisement
AnitaOctavia

Temporary Camp Warding Console

Nov 18th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.69 KB | None | 0 0
  1. // Training Mission: Camp Warding Console Settings by Anita (Octavia, u/iheartdisraptor)
  2. // This script belongs to the community. Feel free to extend and rerelease this script.
  3.  
  4. // Directions:
  5. // 1. Enable the Dota 2 console: http://www.hattongames.com/2012/03/how-to-enable-the-console-in-dota-2
  6. // 2. Download and save this script as
  7. //    <Steam folder>/SteamApps/common/dota 2 beta/dota/cfg/tm_camp_warding_console.cfg.
  8. // 3. Download and save tm_camp_warding.txt as
  9. //    <Steam folder>/SteamApps/common/dota 2 beta/dota/scripts/tutorial/tm_camp_warding.txt.
  10. // 4. In autoexec.cfg add "exec tm_camp_warding_console.cfg".
  11. // 5. Start Dota 2, open the console (~ by default), and enter "tm_camp_warding".
  12.  
  13. // Changelog:
  14. // 1.0-6.79, 13.11.18
  15. // - Initial version
  16.  
  17. // Controls //
  18.  
  19. // Rebind these as necessary (e.g. if they conflict with your settings)
  20. // Besides the training mission, these controls will work in a practice lobby if you want to
  21. // look for warding spots on your own.
  22.  
  23. // [ : Toggle near/far camera distance
  24. // ] : Display spawn boxes
  25. // \ : Teleport hero to mouse position
  26. // F6 : Toggle UI
  27. // mouse4 : Teleport hero to mouse position
  28.  
  29. // Toggle normal and far camera distance
  30. bind [ tm_toggle_camera_distance
  31.  
  32. // Display spawn boxes
  33. bind ] spawn_boxes
  34.  
  35. // Teleport hero to the current mouse position with keyboard or mouse buttons
  36. bind \ "tm_teleport"
  37. bind mouse4 tm_teleport // will not override game controls
  38.  
  39. // Toggle display of the HUD (various modes)
  40. bind F6 toggle_ui
  41.  
  42. // Aliases for controls //
  43.  
  44. // Spawn neutrals if their boxes are clear and say as much
  45. alias tm_spawn_neutrals "say_team Spawning neutrals; tutorial_cheats; dota_spawn_neutrals"
  46.  
  47. // Toggle the distance of the camera between normal and far
  48. alias tm_toggle_camera_distance tm_camera_far
  49. alias tm_camera_far "say_team A bird's eye view.; tutorial_cheats; dota_camera_distance 1534; tm_hero_focus; alias tm_toggle_camera_distance tm_camera_normal"
  50. alias tm_camera_normal "say_team A down-to-earth view.; tutorial_cheats; dota_camera_distance 1134; tm_hero_focus; alias tm_toggle_camera_distance tm_camera_far"
  51. alias tm_hero_focus "+dota_camera_follow; -dota_camera_follow; +dota_camera_follow; -dota_camera_follow"
  52.  
  53. // Kill all wards on the map and say as much
  54. alias tm_kill_wards "say_team All wards, all away.; tutorial_cheats; dota_killwards; dota_dev killwards"
  55.  
  56. // Teleport hero to current mouse position
  57. alias tm_teleport "say_team Sproink! Teleported.; tutorial_cheats; dota_dev hero_teleport; dota_stop; dota_hold"
  58.  
  59. // HUD toggling //
  60.  
  61. // Toggle HUD mode
  62. alias toggle_ui ui_noreplay
  63.  
  64. // Disable the replay UI. Only useful in a replay or DotaTV.
  65. alias ui_noreplay "say_team Getting rid of replay UI.; developer 0; dota_sf_hud_stats_dropdown 0; dota_sf_hud_force_spec -1; alias toggle_ui ui_some"
  66.  
  67. // Disable all of the UI except the minimap and the hero portrait.
  68. alias ui_some "say_team Getting rid of some 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 1; dota_sf_hud_inventory 0; dota_sf_hud_top 0; dota_hud_healthbars 0; dota_no_minimap 0; cl_drawhud 1; dota_render_crop_height 0; dota_render_y_inset 0; developer 0; net_graph 0; alias toggle_ui ui_none"
  69.  
  70. // Disable all of the UI
  71. alias ui_none "say_team Getting rid of all 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 toggle_ui ui_full"
  72.  
  73. // Reenable all of the UI. For 1080p, render_crop_height should be 166 else restoring the UI will
  74. // not work quite right (you can change this below). For 1200p, render_crop_height should be 148.
  75. alias ui_full "say_team Restoring the 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 3; dota_no_minimap 0; cl_drawhud 1; dota_render_crop_height 148; dota_render_y_inset 31; alias toggle_ui ui_noreplay"
  76.  
  77. // Spawn box display //
  78.  
  79. // Radiant ancients
  80. alias spawn_radiant_ancients "box -3520.0 -256.0 522.0 -2560.0 768.0 522.0; box -3520.0 768.0 266.0 -2560.0 -256.0 266.0; box -3520.0 -256.0 522.0 -3520.0 768.0 266.0; box -2560.0 768.0 522.0 -2560.0 -256.0 266.0; box -2560.0 -256.0 522.0 -3520.0 -256.0 266.0; box -3520.0 768.0 522.0 -2560.0 768.0 266.0"
  81.  
  82. // Radiant medium camp near mid T1
  83. alias spawn_radiant_medium1 "box -1024.0 -2368.0 394.0 64.0 -2368.0 138.0; box 64.0 -3456.0 394.0 -1024.0 -3456.0 138.0; box -1024.0 -3456.0 394.0 64.0 -2368.0 394.0; box -1024.0 -2368.0 138.0 64.0 -3456.0 138.0; box 64.0 -2368.0 394.0 64.0 -3456.0 138.0; box -1024.0 -3456.0 394.0 -1024.0 -2368.0 138.0"
  84.  
  85. // Radiant hard camp near rune
  86. alias spawn_radiant_hard1 "box 1088.0 -4544.0 522.0 2304.0 -3200.0 522.0; box 1088.0 -3200.0 266.0 2304.0 -4544.0 266.0; box 2304.0 -3200.0 522.0 2304.0 -4544.0 266.0; box 1088.0 -4544.0 522.0 1088.0 -3200.0 266.0; box 1088.0 -3200.0 522.0 2304.0 -3200.0 266.0; box 2304.0 -4544.0 522.0 1088.0 -4544.0 266.0"
  87.  
  88. // Radiant medium camp near rune
  89. alias spawn_radiant_medium2 "box 2688.0 -2944.0 266.0 3776.0 -4096.0 266.0; box 2688.0 -4096.0 522.0 3776.0 -2944.0 522.0; box 3776.0 -4096.0 522.0 2688.0 -4096.0 266.0; box 2688.0 -2944.0 522.0 3776.0 -2944.0 266.0; box 3776.0 -2944.0 522.0 3776.0 -4096.0 266.0; box 2688.0 -4096.0 522.0 2688.0 -2944.0 266.0"
  90.  
  91. // Radiant easy pull camp
  92. alias spawn_radiant_easy "box 3776.0 -5312.0 522.0 2240.0 -5312.0 266.0; box 2240.0 -4288.0 522.0 3776.0 -4288.0 266.0; box 2240.0 -5312.0 522.0 2240.0 -4288.0 266.0; box 3776.0 -4288.0 522.0 3776.0 -5312.0 266.0; box 2240.0 -4288.0 266.0 3776.0 -5312.0 266.0; box 2240.0 -5312.0 522.0 3776.0 -4288.0 522.0"
  93.  
  94. // Radiant hard camp near mid T2 (1)
  95. alias spawn_radiant_hard2_1 "box -1728.0 -4224.0 586.0 -1344.0 -3520.0 586.0; box -1728.0 -3520.0 138.0 -1344.0 -4224.0 138.0; box -1728.0 -3520.0 586.0 -1344.0 -3520.0 138.0; box -1344.0 -4224.0 586.0 -1728.0 -4224.0 138.0; box -1728.0 -4224.0 586.0 -1728.0 -3520.0 138.0; box -1344.0 -3520.0 586.0 -1344.0 -4224.0 138.0"
  96.  
  97. // Radiant hard camp near mid T2 (2)
  98. alias spawn_radiant_hard2_2 "box -1344.0 -3520.0 586.0 -704.0 -3520.0 138.0; box -704.0 -4480.0 586.0 -1344.0 -4480.0 138.0; box -704.0 -3520.0 586.0 -704.0 -4480.0 138.0; box -1344.0 -4480.0 586.0 -1344.0 -3520.0 138.0; box -1344.0 -4480.0 586.0 -704.0 -3520.0 586.0; box -1344.0 -3520.0 138.0 -704.0 -4480.0 138.0"
  99.  
  100. // Dire ancients
  101. alias spawn_dire_ancients "box 3904.0 -1536.0 138.0 4928.0 -2560.0 138.0; box 3904.0 -2560.0 394.0 4928.0 -1536.0 394.0; box 4928.0 -2560.0 394.0 3904.0 -2560.0 138.0; box 3904.0 -1536.0 394.0 4928.0 -1536.0 138.0; box 3904.0 -2560.0 394.0 3904.0 -1536.0 138.0; box 4928.0 -1536.0 394.0 4928.0 -2560.0 138.0"
  102.  
  103. // Dire hard camp near mid T2
  104. alias spawn_dire_hard1 "box 448.0 2816.0 522.0 1664.0 3776.0 522.0; box 448.0 3776.0 266.0 1664.0 2816.0 266.0; box 448.0 3776.0 522.0 1664.0 3776.0 266.0; box 1664.0 2816.0 522.0 448.0 2816.0 266.0; box 1664.0 3776.0 522.0 1664.0 2816.0 266.0; box 448.0 2816.0 522.0 448.0 3776.0 266.0"
  105.  
  106. // Dire medium camp near top T2
  107. alias spawn_dire_medium1 "box 0.0 4096.0 522.0 0.0 3200.0 266.0; box -832.0 3200.0 522.0 -832.0 4096.0 266.0; box -832.0 3200.0 522.0 0.0 4096.0 522.0; box -832.0 4096.0 266.0 0.0 3200.0 266.0; box -832.0 4096.0 522.0 0.0 4096.0 266.0; box 0.0 3200.0 522.0 -832.0 3200.0 266.0"
  108.  
  109. // Dire medium camp near rune
  110. alias spawn_dire_medium2 "box -1920.0 3136.0 138.0 -960.0 2304.0 138.0; box -1920.0 2304.0 394.0 -960.0 3136.0 394.0; box -1920.0 3136.0 394.0 -960.0 3136.0 138.0; box -960.0 2304.0 394.0 -1920.0 2304.0 138.0; box -960.0 3136.0 394.0 -960.0 2304.0 138.0; box -1920.0 2304.0 394.0 -1920.0 3136.0 138.0"
  111.  
  112. // Dire hard pull camp
  113. alias spawn_dire_hard2 "box -5056.0 3264.0 522.0 -5056.0 4352.0 266.0; box -3712.0 4352.0 522.0 -3712.0 3264.0 266.0; box -3712.0 3264.0 522.0 -5056.0 3264.0 266.0; box -5056.0 4352.0 522.0 -3712.0 4352.0 266.0; box -5056.0 4352.0 266.0 -3712.0 3264.0 266.0; box -5056.0 3264.0 522.0 -3712.0 4352.0 522.0"
  114.  
  115. // Dire easy pull camp
  116. alias spawn_dire_easy "box -3456.0 3968.0 522.0 -3456.0 4928.0 266.0; box -2688.0 4928.0 522.0 -2688.0 3968.0 266.0; box -2688.0 3968.0 522.0 -3456.0 3968.0 266.0; box -3456.0 4928.0 522.0 -2688.0 4928.0 266.0; box -3456.0 4928.0 266.0 -2688.0 3968.0 266.0; box -3456.0 3968.0 522.0 -2688.0 4928.0 522.0"
  117.  
  118. // Draw all spawn boxes
  119. alias spawn_boxes "tutorial_cheats; say_team There they are!; spawn_radiant_ancients; spawn_radiant_medium1; spawn_radiant_hard1; spawn_radiant_medium2; spawn_radiant_easy; spawn_radiant_hard2_1; spawn_radiant_hard2_2; spawn_dire_ancients; spawn_dire_hard1; spawn_dire_medium1; spawn_dire_medium2; spawn_dire_hard2; spawn_dire_easy"
  120.  
  121. // Debug controls //
  122.  
  123. alias tutorial_cheats "dota_tutorial_game 0; sv_cheats 1; tutorial_mode"
  124.  
  125. alias tutorial_mode tutorial_off
  126. alias tutorial_on "dota_tutorial_game 1"
  127. alias tutorial_off "dota_tutorial_game 0"
  128.  
  129. alias set_tutorial_on "alias tutorial_mode tutorial_on"
  130. alias set_tutorial_off "alias tutorial_mode tutorial_off"
  131. set_tutorial_off
  132.  
  133. //bind p "tutorial_cheats; dota_camera_distance 100; dota_camera_getpos"
  134.  
  135. // Start the training mission //
  136.  
  137. alias tm_camp_warding "developer 0; set_tutorial_on; toggleconsole; dota_tutorial_start tm_camp_warding"
  138. alias drill_wards "echo You can now use the tutorial commands in a practice lobby; set_tutorial_off"
  139.  
  140. // Hide console output
  141. //developer 0
  142.  
  143. // Show the loading screen
  144. //toggleconsole
  145.  
  146. // Start the tutorial
  147. //dota_tutorial_start tm_camp_warding
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement