Advertisement
Guest User

Untitled

a guest
Sep 7th, 2020
8,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.69 KB | None | 0 0
  1. //////////////////////////////////////////////
  2. // Keypress Checker Script - Start
  3.  
  4. // The main functionality of the script, each number represent key presses:
  5. alias wasd_0                "wasd_action_0; alias wasd_prev wasd_0; alias wasd_next wasd_1"
  6. alias wasd_1                "wasd_action_1; alias wasd_prev wasd_0; alias wasd_next wasd_2"
  7. alias wasd_2                "wasd_action_2; alias wasd_prev wasd_1; alias wasd_next wasd_3"
  8. alias wasd_3                "wasd_action_3; alias wasd_prev wasd_2; alias wasd_next wasd_4"
  9. alias wasd_4                "wasd_action_4; alias wasd_prev wasd_3; alias wasd_next wasd_4"
  10. alias wasd_prev             "wasd_0"
  11. alias wasd_next             "wasd_1"
  12.  
  13. // Additional functionality that is required for script to work:
  14. alias +forward_wasd         "+forward;      wasd_next"
  15. alias +back_wasd            "+back;         wasd_next"
  16. alias +moveleft_wasd        "+moveleft;     wasd_next"
  17. alias +moveright_wasd       "+moveright;    wasd_next"
  18. alias -forward_wasd         "-forward;      wasd_prev"
  19. alias -back_wasd            "-back;         wasd_prev"
  20. alias -moveleft_wasd        "-moveleft;     wasd_prev"
  21. alias -moveright_wasd       "-moveright;    wasd_prev"
  22.  
  23. // Main functionality for bonus feature:
  24. alias enable_no_move_binds          "bind mouse1 +attack_wasd"
  25. alias disable_no_move_binds         "bind mouse1 +attack"
  26. 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;"
  27. 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;"
  28. alias no_move_binds_switch          "no_move_binds_switch_off"
  29.  
  30. // Bonus feature. Add 'enable_attack' or 'disable_attack' as possible triggers.
  31. alias +attack_wasd                  "+attack"
  32. alias -attack_wasd                  "-attack"
  33. alias enable_attack                 "alias +attack_wasd +attack"
  34. alias disable_attack                "alias +attack_wasd"
  35.  
  36. // This decides what gets triggered depending on how many keys you press:
  37. alias wasd_action_0         "cl_crosshairgap -3; enable_attack"
  38. alias wasd_action_1         "cl_crosshairgap -2; enable_attack"
  39. alias wasd_action_2         "cl_crosshairgap -1; disable_attack"
  40. alias wasd_action_3         "cl_crosshairgap -1; disable_attack"
  41. alias wasd_action_4         "cl_crosshairgap -1; disable_attack"
  42.  
  43. // Edit 'w' 's' 'a' 'd' 'h' to your liking
  44. bind w +forward_wasd
  45. bind s +back_wasd
  46. bind a +moveleft_wasd
  47. bind d +moveright_wasd
  48. bind h no_move_binds_switch //Toggle bonus feature (default: off)
  49.  
  50. // Leave this one right here
  51. bind mouse1 +attack
  52.  
  53. // Keypress Checker Script - End
  54. //////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement