Advertisement
Guest User

KF2 Script

a guest
Dec 11th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Killing Floor 2 Hotkeys
  2. ;Created by 11GOD11
  3. ;Version 2.1
  4.  
  5.  
  6. #installkeybdhook
  7. #installmousehook
  8. #UseHook on
  9. #NoEnv
  10. #MaxThreads 255
  11. #MaxMem 4095
  12. #singleInstance, force
  13. #IfWinActive ahk_exe KFGame.exe
  14. SetWorkingDir, %A_ScriptDir%
  15. SendMode Input
  16.  
  17. ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  18. ; REQUIRED KEY ASSIGNMENTS (All Default Keybindings)
  19. ; b = Throw dosh
  20. ; q = Heal self
  21. ; Backspace = Drop weapon
  22. ; 1,2,3,4 = Weapon selection
  23. ; Left Click = Primary fire
  24. ; g = Throw Grenade
  25. ; t = Chat
  26. ; Middle Mouse Button = Alt Fire
  27. ; Left Control not assigned
  28.  
  29. ;If you want to disable any of these put a ; before the varible below and infront of the corrisponding Hotkey line
  30.  
  31. ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  32. ;Variables to change / If you change these keep the asterix it makes it so that if you are holding down shift the hotkey will still work
  33. Weapon = 1                  ; Change this to 1, 2 or 3 depending on if you want to swap to primary, pistols or  melee
  34. HealSelf = *q               ; this will heal you then imediatly switch back to selected weapon (Above)
  35. DoshDrop = WheelDown                ; hold down this key to drop dosh much faster rather than puch the button a lot {you can still tap to drop)
  36. DoshDropSpeed = 25          ; Lower this value to drop dosh faster, increase to drop slower
  37. HealPlayer = *Numpad0       ; Swap to syringe and heal the player you are next to then swap back to weapon
  38. ChatFleshpound = *Numpad7   ; Will type message "Fleshpund incoming!"
  39. ChatScrake = *Numpad8       ; Will type message "Scrake incoming!"
  40. ChatHeal = *Numpad4         ; Will type message "Thanks for the heal :)"
  41. ChatThanks = *Numpad6       ; Will type message "Thank you!"
  42. ChatDosh = *Numpad5         ; Will type message "Does anyone need dosh?"
  43. Suicide = *Numpad3          ; Press this if you know you are about to die, Will drop all your weapons, dosh and grenades
  44. MedicHeal = LControl        ; This will swap between the MedAR, MedShotgun and MedPistol and shoot healing darts, You need to have all three and be holding the MedAR
  45.  
  46. ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  47. ;Dont change these variables unless they dont work, you can increase them or decrease them, Some depend on weapon swap speeds so can be decreased or need to be increased
  48. Chatdelay = 125
  49. SuicideDelay = 50
  50. SelfHealDelay = 1300
  51. WeaponSwapDelay = 1300
  52. HealOtherDelay = 1000
  53. GrenadeDelay = 650
  54. MedDartDelay = 180
  55. MedARMedSG = 1500
  56. MedSGMedPistol = 1300
  57. MedPistolMedAR = 1300
  58.  
  59.  
  60. Hotkey, %HealSelf%, HealSelf
  61. Hotkey, %HealPlayer%, HealPlayer
  62. Hotkey, %ChatFleshpound%, ChatFleshpound
  63. Hotkey, %ChatScrake%, ChatScrake
  64. Hotkey, %ChatThanks%, ChatThanks
  65. Hotkey, %ChatHeal%, ChatHeal
  66. Hotkey, %ChatDosh%, ChatDosh
  67. Hotkey, %DoshDrop%, DoshDrop
  68. Hotkey, %Suicide%, Suicide
  69. Hotkey, %MedicHeal%, MedicHeal
  70. Return
  71.  
  72. MedicHeal:
  73. {
  74. While GetKeyState("LControl","P")
  75. {
  76.     loop, 3
  77.     {
  78.         Send {MButton}
  79.         Sleep %MedDartDelay%
  80.     }
  81.     Send 2
  82.     Sleep %MedSGMedPistol%
  83.     loop, 3
  84.     {
  85.         Send {MButton}
  86.         Sleep %MedDartDelay%
  87.     }
  88.     Send 1
  89.     Sleep %MedPistolMedAR%
  90. }
  91. }
  92. Return
  93.  
  94.  
  95. HealSelf:
  96. {
  97.     Sendinput, Q
  98.     sleep %SelfHealDelay%
  99.     send %Weapon%
  100. }
  101. Return
  102.  
  103. HealPlayer:
  104. {
  105.     Send 4
  106.     sleep %WeaponSwapDelay%
  107.     Loop, 5
  108.     {
  109.         MouseClick,
  110.     }
  111.     sleep %HealOtherDelay%
  112.     send %Weapon%
  113. }
  114. Return
  115.  
  116. ChatHeal:
  117. {
  118.     Send T
  119.     Sleep %Chatdelay%
  120.     Send Thanks for the heal :)
  121.     Sleep %chatdelay%
  122.     Send {Enter}
  123. }
  124. Return
  125.  
  126. ChatThanks:
  127. {
  128.     Send T
  129.     Sleep %Chatdelay%
  130.     Send Thank you{!}
  131.     Sleep %Chatdelay%
  132.     Send {Enter}
  133. }
  134. Return
  135.  
  136. ChatScrake:
  137. {
  138.     Send T
  139.     Sleep %Chatdelay%
  140.     Send Scrake incoming{!}
  141.     Sleep %Chatdelay%
  142.     Send {Enter}
  143. }
  144. Return
  145.  
  146. ChatFleshpound:
  147. {
  148.     Send T
  149.     Sleep %Chatdelay%
  150.     Send Fleshpound incoming{!}
  151.     Sleep %Chatdelay%
  152.     Send {Enter}
  153. }
  154. Return
  155.  
  156. ChatDosh:
  157. {
  158.     Send T
  159.     Sleep %Chatdelay%
  160.     Send Does anyone need dosh?
  161.     Sleep %Chatdelay%
  162.     Send {Enter}
  163. }
  164. Return
  165.  
  166. DoshDrop:
  167. {
  168.     Send WheelDown
  169.     Sleep %DoshDropSpeed%
  170.  
  171. Return
  172. }
  173.  
  174. Suicide:
  175. {
  176.     Send 1 ;Swaps to primary weapon
  177.     Sleep 620
  178.     loop, 10 ;will drop all weapons
  179.     {
  180.         Send {Backspace}
  181.         Sleep %SuicideDelay%
  182.     }
  183.     loop, 100 ;Will drop up to 5000 dosh in .1 second
  184.     {
  185.         send b
  186.         Sleep 1
  187.     }
  188.     loop, 5 ; Throws all of your grenades
  189.     {  
  190.         send g
  191.         Sleep %GrenadeDelay%
  192.     }
  193. }
  194. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement