Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Reliable Weapons
  2.  
  3. Added new command to let KTPro choose/fire weapons! This avoids
  4. a wrong weapon choice, you maybe know from some situations with
  5. lag, where the client chooses the weapon (e.g. the weapon function
  6. in MQWCL).
  7.  
  8. First step is to let KTPro know what weapon binds you want to use.
  9. Every time you enter a map, the alias 'on_enter' will be called.
  10. Important: Do not use 'on_connect', as the registration has to be
  11. done every time you enter a map!
  12.  
  13. So you could add the following line to your config:
  14.  
  15. alias on_enter "exec wreg.cfg"
  16.  
  17. The 'wreg.cfg' could look like this:
  18.  
  19. cmd wreg a +75432
  20. cmd wreg b +8542
  21. cmd wreg c +61
  22. cmd wreg z -
  23.  
  24. alias +rl "cmd a"
  25. alias -rl "cmd z"
  26. bind mouse1 "+rl"
  27.  
  28. alias +tb "cmd b"
  29. alias -tb "cmd z"
  30. bind mouse3 "+tb"
  31.  
  32. alias +gl "cmd c"
  33. alias -gl "cmd z"
  34. bind alt "+gl"
  35.  
  36. Looks a bit complicated for now, so let's take a closer look.
  37.  
  38. The first three commands assign the chars 'a' to 'c' to the weapons,
  39. while the last one (z) just stands for '-attack'.
  40.  
  41. It has the following syntax: "cmd wreg [[char] [[+/-]weapon order]]"
  42. If you call "cmd wreg" without any parameters, it will show your
  43. current weapon orders.
  44.  
  45. To call one of your binds you have to use "cmd <char>". So if you
  46. press mouse1, "cmd a" gets called. That command stands for "+75432".
  47. The mod then chooses the best weapon out of these (as long you got
  48. it and some ammo for it :). Then the mod will fire at once! Until
  49. you release mouse1, in that case "cmd z" gets called and the mod
  50. ceases fire =).
  51.  
  52.  
  53. Some guys prefer to choose weapons and fire separately. A bind for
  54. that case would look like this:
  55.  
  56. cmd wreg a 5432
  57. cmd wreg b 7632
  58. cmd wreg c 82
  59. cmd wreg x +
  60. cmd wreg z -
  61.  
  62. bind 5 "cmd a"
  63. bind 7 "cmd b"
  64. bind 8 "cmd c"
  65.  
  66. alias +fire "cmd x"
  67. alias -fire "cmd z"
  68. bind mouse1 "+fire"
  69.  
  70.  
  71. Swedes (hihi) might wanna use 'sg scripts', they just have to change
  72. the '-attack' part of the wreg, e.g.:
  73.  
  74. cmd z -21
  75.  
  76. KTPro will then switch back to sg (or axe if you don't have shells)
  77. after you have released the fire button.
  78.  
  79.  
  80. If you want to use impulses greater than 9, e.g. for the weapon switch
  81. impulses, you can use "cmd imp <##>". You don't have to register them
  82. like the weapons, but they are still reliable!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement