Guest User

Untitled

a guest
Jun 13th, 2022
4,112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.30 KB | None | 0 0
  1. // Scripts from MrMaxim's video: https://youtu.be/jld0EiM7u3k
  2.  
  3. ////// Keypress Checker Script
  4.  
  5. // Part 1 The main functionality of the script, each number represent key presses:
  6. alias wasd_0                "wasd_action_0; alias wasd_prev wasd_0; alias wasd_next wasd_1"
  7. alias wasd_1                "wasd_action_1; alias wasd_prev wasd_0; alias wasd_next wasd_2"
  8. alias wasd_2                "wasd_action_2; alias wasd_prev wasd_1; alias wasd_next wasd_3"
  9. alias wasd_3                "wasd_action_3; alias wasd_prev wasd_2; alias wasd_next wasd_4"
  10. alias wasd_4                "wasd_action_4; alias wasd_prev wasd_3; alias wasd_next wasd_4"
  11. alias wasd_prev             "wasd_0"
  12. alias wasd_next             "wasd_1"
  13.  
  14. // Part 2 Additional functionality that is required for script to work:
  15. alias +forward_wasd         "+forward;      wasd_next"
  16. alias +back_wasd            "+back;         wasd_next"
  17. alias +moveleft_wasd        "+moveleft;     wasd_next"
  18. alias +moveright_wasd       "+moveright;    wasd_next"
  19. alias -forward_wasd         "-forward;      wasd_prev"
  20. alias -back_wasd            "-back;         wasd_prev"
  21. alias -moveleft_wasd        "-moveleft;     wasd_prev"
  22. alias -moveright_wasd       "-moveright;    wasd_prev"
  23.  
  24. // Part 3 Main functionality for bonus feature:
  25. alias enable_no_move_binds          "bind mouse1 +attack_wasd"
  26. alias disable_no_move_binds         "bind mouse1 +attack"
  27. alias no_move_binds_switch_on       "-attack; disable_no_move_binds; alias no_move_binds_switch no_move_binds_switch_off; playvol buttons\blip2 0.5;"
  28. alias no_move_binds_switch_off      "enable_no_move_binds;           alias no_move_binds_switch no_move_binds_switch_on;  playvol buttons\blip1 0.5;"
  29. alias no_move_binds_switch          "no_move_binds_switch_off"
  30.  
  31. // Part 4 Bonus feature. Add 'enable_attack' or 'disable_attack' as possible triggers.
  32. alias +attack_wasd                  "+attack"
  33. alias -attack_wasd                  "-attack"
  34. alias enable_attack                 "alias +attack_wasd +attack"
  35. alias disable_attack                "alias +attack_wasd"
  36.  
  37. // Part 5 This decides what gets triggered depending on how many keys you press:
  38. alias wasd_action_0         "cl_crosshairgap -3; enable_attack"
  39. alias wasd_action_1         "cl_crosshairgap -2; enable_attack"
  40. alias wasd_action_2         "cl_crosshairgap -1; disable_attack"
  41. alias wasd_action_3         "cl_crosshairgap -1; disable_attack"
  42. alias wasd_action_4         "cl_crosshairgap -1; disable_attack"
  43.  
  44. // Part 6 Edit 'w' 's' 'a' 'd' 'h' to your liking
  45. bind w +forward_wasd
  46. bind s +back_wasd
  47. bind a +moveleft_wasd
  48. bind d +moveright_wasd
  49. bind h no_move_binds_switch //Toggle bonus feature (default: off)
  50.  
  51. // Part 7 Leave this one right here
  52. bind mouse1 +attack
  53.  
  54. ////// Radar Zoom when holding use key
  55. alias "+usezoom" "+use; cl_radar_scale 0.9"
  56. alias "-usezoom" "-use; cl_radar_scale 0.4"
  57. bind e "+usezoom"
  58.  
  59. ////// Ghetto-ass Bomb Timer by TheElderNigs
  60. alias "25s" "sndplaydelay 14 ui/beep07"
  61. alias "20s" "sndplaydelay 19 ui/beep07"
  62. alias "15s" "sndplaydelay 24 buttons/blip2"
  63. alias "10s" "sndplaydelay 29 buttons/blip2"
  64. alias "5s" "sndplaydelay 34 ui/beep22"
  65. alias "bombtimer" "25s;20s;15s;10s;5s;"
  66. bind "k" "bombtimer"
  67.  
  68. ////// Improve nade bindings
  69. // Add use weapon_knife
  70. // example:
  71. bind q "use weapon_knife; use weapon_flashbang"
  72.  
Advertisement
Add Comment
Please, Sign In to add comment