NanashiSC

toggle_radarScale.cfg

Jan 26th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.12 KB | None | 0 0
  1. echo >Lese Toggle Radar Scale ...
  2. //--------------------------------------------------------------------------------------------------
  3. echo ""
  4. echo " _______ _ _____ _ _____ _"
  5. echo " |__ __| | | | __ \ | | / ____| | |"
  6. echo " | | ___ __ _ __ _| | ___ | |__) |__ _ __| | __ _ _ _| (___ ___ __ _| | ___"
  7. echo " | |/ _ \ / _` |/ _` | |/ _ \ | _ // _` |/ _` |/ _` | '__\___ \ / __/ _` | |/ _ \"
  8. echo " | | (_) | (_| | (_| | | __/ | | \ \ (_| | (_| | (_| | | ____) | (_| (_| | | __/"
  9. echo " |_|\___/ \__, |\__, |_|\___| |_| \_\__,_|\__,_|\__,_|_| |_____/ \___\__,_|_|\___|"
  10. echo " __/ | __/ | AND DISPLAY DAMAGE /W SUPERE"
  11. echo " |___/ |___/ Author: /u/NanashiSC"
  12. echo " Version: 2020-04-29"
  13. echo " for updates, go visit pastebin.com/Y1vQ1e0F"
  14. //--------------------------------------------------------------------------------------------------
  15. // Original Idea: Creating indivual scales for each map while focusing on a fine balance between overall-coverage and readability
  16. //--------------------------------------------------------------------------------------------------
  17. // Console Filter Setup
  18. //--------------------------------------------------------------------------------------------------
  19. con_filter_enable 2 //def. 0 - 1=filter text 2=highlight text - Filters or highlights console output defined with "con_filter_text".
  20. con_filter_text Damage //Text with which to filter (or highlight) console spew. Set con_filter_enable 1 or 2 to activate
  21. con_filter_text_out Player: //Text to filter OUT of console spew. Set con_filter_enable 1 or 2 to activate.
  22. developer 1 //Show console text output in upper left corner (not recommended, can cause performance issues)
  23. //--------------------------------------------------------------------------------------------------
  24. // Radar Scale Starting Value: Default (Dust2)
  25. //--------------------------------------------------------------------------------------------------
  26. cl_radar_scale 0.3 //Dust2
  27. //--------------------------------------------------------------------------------------------------
  28. // Initialize Radar Scale Index
  29. //--------------------------------------------------------------------------------------------------
  30. alias exec_rs "rs_map_echo; rs_zoomout"
  31. alias rs_map_echo
  32. alias rs_zoomin
  33. alias rs_zoomout
  34. //--------------------------------------------------------------------------------------------------
  35. // Radar Scale Map Pool (A-Z) --->
  36. //--------------------------------------------------------------------------------------------------
  37. // Cache
  38. //--------------------------------------------------------------------------------------------------
  39. alias rs_cache "alias rs_map_echo cache_echo; alias rs_zoomin cache_zoomin; alias rs_zoomout cache_zoomout"
  40. alias cache_echo "echo radarScale_cache"
  41. alias cache_zoomin "cl_radar_scale 0.7" //+superE
  42. alias cache_zoomout "cl_radar_scale 0.375" //-superE (default)
  43. //--------------------------------------------------------------------------------------------------
  44. // Cbble
  45. //--------------------------------------------------------------------------------------------------
  46. alias rs_cbble "alias rs_map_echo cbble_echo; alias rs_zoomin cbble_zoomin; alias rs_zoomout cbble_zoomout"
  47. alias cbble_echo "echo radarScale_cbble"
  48. alias cbble_zoomin "cl_radar_scale 0.7" //+superE
  49. alias cbble_zoomout "cl_radar_scale 0.42" //-superE (default)
  50. //--------------------------------------------------------------------------------------------------
  51. // Dust2
  52. //--------------------------------------------------------------------------------------------------
  53. alias rs_dust2 "alias rs_map_echo dust2_echo; alias rs_zoomin dust2_zoomin; alias rs_zoomout dust2_zoomout"
  54. alias dust2_echo "echo radarScale_dust2"
  55. alias dust2_zoomin "cl_radar_scale 0.7" //+superE
  56. alias dust2_zoomout "cl_radar_scale 0.3" //-superE (default)
  57. //--------------------------------------------------------------------------------------------------
  58. // Inferno
  59. //--------------------------------------------------------------------------------------------------
  60. alias rs_inferno "alias rs_map_echo inferno_echo; alias rs_zoomin inferno_zoomin; alias rs_zoomout inferno_zoomout"
  61. alias inferno_echo "echo radarScale_inferno"
  62. alias inferno_zoomin "cl_radar_scale 0.7" //+superE
  63. alias inferno_zoomout "cl_radar_scale 0.55" //-superE (default)
  64. //--------------------------------------------------------------------------------------------------
  65. // Mirage
  66. //--------------------------------------------------------------------------------------------------
  67. alias rs_mirage "alias rs_map_echo mirage_echo; alias rs_zoomin mirage_zoomin; alias rs_zoomout mirage_zoomout"
  68. alias mirage_echo "echo radarScale_mirage"
  69. alias mirage_zoomin "cl_radar_scale 0.7" //+superE
  70. alias mirage_zoomout "cl_radar_scale 0.385" //-superE (default)
  71. //--------------------------------------------------------------------------------------------------
  72. // Nuke
  73. //--------------------------------------------------------------------------------------------------
  74. alias rs_nuke "alias rs_map_echo nuke_echo; alias rs_zoomin nuke_zoomin; alias rs_zoomout nuke_zoomout"
  75. alias nuke_echo "echo radarScale_mirage"
  76. alias nuke_zoomin "cl_radar_scale 0.6" //+superE
  77. alias nuke_zoomout "cl_radar_scale 0.385" //-superE (default)
  78. //--------------------------------------------------------------------------------------------------
  79. // Overpass
  80. //--------------------------------------------------------------------------------------------------
  81. alias rs_overpass "alias rs_map_echo overpass_echo; alias rs_zoomin overpass_zoomin; alias rs_zoomout overpass_zoomout"
  82. alias overpass_echo "echo radarScale_overpass"
  83. alias overpass_zoomin "cl_radar_scale 0.7" //+superE
  84. alias overpass_zoomout "cl_radar_scale 0.34" //-superE (default)
  85. //--------------------------------------------------------------------------------------------------
  86. // Train
  87. //--------------------------------------------------------------------------------------------------
  88. alias rs_train "alias rs_map_echo train_echo; alias rs_zoomin train_zoomin; alias rs_zoomout train_zoomout"
  89. alias train_echo "echo radarScale_train"
  90. alias train_zoomin "cl_radar_scale 0.7" //+superE
  91. alias train_zoomout "cl_radar_scale 0.315" //-superE (default)
  92. //--------------------------------------------------------------------------------------------------
  93. // HotTo add another Map:
  94. //--------------------------------------------------------------------------------------------------
  95. // 1. Copy + Paste the following lines of code (Example: Mapname)
  96. // 2. Replace "mapname" with the Name of the Map you wish to add
  97. // 3. Replace 1337 with the numbers of your choice
  98. //--------------------------------------------------------------------------------------------------
  99. // Example: Mapname
  100. //--------------------------------------------------------------------------------------------------
  101. //alias rs_mapname "alias rs_map_index rs_mapname; alias rs_map_echo mapname_echo; alias rs_zoomin mapname_zoomin; alias rs_zoomout mapname_zoomout; radarScale_mapname"
  102. //alias mapname_echo "echo radarScale_mapname"
  103. //alias mapname_zoomin "cl_radar_scale 1337" //+superE
  104. //alias mapname_zoomout "cl_radar_scale 1337" //-superE (default)
  105. //--------------------------------------------------------------------------------------------------
  106. // <--- Radar Scale Map Pool (A-Z)
  107. //--------------------------------------------------------------------------------------------------
  108. // Starting values(default: Dust2)
  109. //--------------------------------------------------------------------------------------------------
  110. //alias rs_map_echo "dust2_echo"
  111. //alias rs_zoomin "dust2_zoomin"
  112. //alias rs_zoomout "dust2_zoomout"
  113. //--------------------------------------------------------------------------------------------------
  114. // Radar Scale Map Rotation Slots --->
  115. //--------------------------------------------------------------------------------------------------
  116. // - replace rs_mapname with any map from the mappool above
  117. // - if you wish to add/remove slots, you would need to alter Toggle RadarScale as well
  118. // - I recommend to stay with an alphabetical sorting
  119. //--------------------------------------------------------------------------------------------------
  120. alias rs_slot1 "rs_cache"
  121. alias rs_slot2 "rs_cbble"
  122. alias rs_slot3 "rs_dust2"
  123. alias rs_slot4 "rs_inferno"
  124. alias rs_slot5 "rs_mirage"
  125. alias rs_slot6 "rs_overpass"
  126. alias rs_slot7 "rs_train"
  127. //--------------------------------------------------------------------------------------------------
  128. // <--- Radar Scale Map Rotation Slots
  129. //--------------------------------------------------------------------------------------------------
  130. // Toggle RadarScale AND DisplayDamage --->
  131. //--------------------------------------------------------------------------------------------------
  132. // Toggle RadarScale (Kudos to /u/flizzflobking)
  133. //--------------------------------------------------------------------------------------------------
  134. alias toggle_radarScale rs_map1
  135. alias rs_map1 "rs_slot1; exec_rs; alias toggle_radarScale rs_map2"
  136. alias rs_map2 "rs_slot2; exec_rs; alias toggle_radarScale rs_map3"
  137. alias rs_map3 "rs_slot3; exec_rs; alias toggle_radarScale rs_map4"
  138. alias rs_map4 "rs_slot4; exec_rs; alias toggle_radarScale rs_map5"
  139. alias rs_map5 "rs_slot5; exec_rs; alias toggle_radarScale rs_map6"
  140. alias rs_map6 "rs_slot6; exec_rs; alias toggle_radarScale rs_map7"
  141. alias rs_map7 "rs_slot7; exec_rs; alias toggle_radarScale rs_map1"
  142. //--------------------------------------------------------------------------------------------------
  143. // Toggle Console Filter (DisplayDamage (Text Ouput on Screen 0)| Display Radar Scale (Text Ouput on Screen 1))
  144. //--------------------------------------------------------------------------------------------------
  145. // Note: Developer 1 might cause performance issues, which is why I have decided to only flip it on, when I use toggle_radarScale.
  146. //--------------------------------------------------------------------------------------------------
  147. // Text-out for both //uncomment to enable, comment to disable
  148. alias +toggle_radarScale "con_filter_text radarScale_; clear; toggle_radarScale" //bind to +alt + KEY
  149. alias -toggle_radarScale "con_filter_text Damage" //bind to -alt + KEY
  150. // Text-out only for radarScale (use this if you encounter any peformance issues) //uncomment to enable, comment to disable
  151. //alias +toggle_radarScale "developer 1; con_filter_text radarScale_; clear; toggle_radarScale" //bind to +alt + KEY
  152. //alias -toggle_radarScale "developer 0; con_filter_text Damage" //bind to -alt + KEY
  153. //--------------------------------------------------------------------------------------------------
  154. // <--- Toggle RadarScale AND DisplayDamage
  155. //--------------------------------------------------------------------------------------------------
  156. // Super E-Key (radarScale Edition) (Kudos to /u/nbpetrov) --->
  157. //--------------------------------------------------------------------------------------------------
  158. // 1. Use
  159. // 2. Pick up and equip Weapon while holding e
  160. // 3. Enable Gaminstructor (Bomb in Smoke)
  161. // 4. Zoomin Radar while holding e //(+)rs_zoomin, (-)rs_zoomout
  162. //--------------------------------------------------------------------------------------------------
  163. // superE /w Zoomin for better close range vision when defusing //uncomment to enable, comment to disable
  164. alias +superE "+use; cl_autowepswitch 1; toggle_teamequip; cl_clearhinthistory; gameinstructor_enable 1; rs_zoomin"
  165. alias -superE "-use; cl_autowepswitch 0; gameinstructor_enable 0; rs_zoomout"
  166. // superE /wo Zoomin //uncomment to enable, comment to disable
  167. //alias +superE "+use; cl_autowepswitch 1; cl_clearhinthistory; gameinstructor_enable 1"
  168. //alias -superE "-use; cl_autowepswitch 0; gameinstructor_enable 0"
  169. //--------------------------------------------------------------------------------------------------
  170. // <--- Super E-Key (radarScale Edition)
  171. //--------------------------------------------------------------------------------------------------
  172. // <--- Toggle RadarScale AND DisplayDamage w/ superE by Nanashi
  173. //--------------------------------------------------------------------------------------------------
  174. // Bind --->
  175. //--------------------------------------------------------------------------------------------------
  176. //bind KEY +toggle_radarScale; playvol buttons\blip1 0.5 //I recommend alt + r
  177. //bind e +superE
  178. //--------------------------------------------------------------------------------------------------
  179. // Known Issues
  180. //--------------------------------------------------------------------------------------------------
  181. // If you use this script in combination with altbinds, like I recommend (alt + r) things complicate a bit
  182. // and if you are interested in the details, here they are:
  183. //
  184. // 1st) You have to hold down alt and press r for at least two times to get the text-output in the upper left
  185. // corner of your screen. The script will already execute on the first tap, but only start showing text-output
  186. // on the 2nd tap. To reduce this delay of feedback we could outsource the damage filter to +altbinds and -altbinds
  187. // like so:
  188. //
  189. // "+altbinds "(...); con_filter_text radarScale_; (...)"
  190. // "-altbinds "(...); con_filter_text Damage; (...)"
  191. //
  192. // but things would get quite messy this way, especially if you intend to use additional text-filter in
  193. // other scripts.
  194. //
  195. // 2nd) Since altbinds create an additional layer, you have to bind -toggle_radarScale on -alt + KEY
  196. // or it won't get triggered at all:
  197. //
  198. // so instead of:
  199. //
  200. //alias priR "bind r +reload"
  201. //alias modR "bind r secR"
  202. //alias secR "+toggle_radarScale; playvol buttons\blip1 0.5"
  203. //
  204. // we have to go with:
  205. //
  206. //alias priR "bind r +reload; -toggle_radarScale"
  207. //alias modR "bind r secR"
  208. //alias secR "+toggle_radarScale; playvol buttons\blip1 0.5"
  209. //--------------------------------------------------------------------------------------------------
  210. // <--- Bind
  211. //--------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment