Advertisement
Mister_Stefan

Fast DT Recharge

Aug 24th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var last_shot_tick = 0
  2. var in_recharge = false
  3. var shot = false
  4. var was_not_dt = false
  5. UI.AddSliderInt("Shift amount", 8, 14)
  6. UI.AddSliderInt("Tolerance", 1, 8)
  7. UI.AddCheckbox("Fast recharge")
  8. UI.AddSliderInt("Recharge time", 0, 64)
  9. function weapon_fire() {
  10.     if (Entity.GetEntityFromUserID(Event.GetInt("userid")) == Entity.GetLocalPlayer()) {
  11.         last_shot_tick = Globals.Tickcount()
  12.         shot = true
  13.     }
  14. }
  15. function cm() {
  16.    
  17.     Exploit.OverrideShift(UI.GetValue("Script items", "Shift amount"))
  18.     Exploit.OverrideTolerance(UI.GetValue("Script items", "Tolerance"))
  19.     var dt = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap") && UI.GetValue("Rage", "GENERAL", "Exploits", "Doubletap")
  20.     var hs = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots") && UI.GetValue("Rage", "GENERAL", "Exploits", "Hide shots")
  21.     if(!UI.GetValue("Script items", "Fast recharge") || (hs && !dt)) {
  22.         Exploit.EnableRecharge()
  23.         return
  24.     }
  25.     Exploit.DisableRecharge()
  26.     var charge = Exploit.GetCharge()
  27.     if (charge != 1) {
  28.         if (UI.GetValue("Anti-Aim", "Extra", "Fake duck") ||
  29.             !dt)
  30.         {
  31.             was_not_dt = true
  32.             return
  33.         }
  34.         if (Globals.Tickcount() - last_shot_tick > UI.GetValue("Script items", "Recharge time") && shot) {
  35.             in_recharge = true
  36.             shot = false
  37.         }
  38.         if(was_not_dt)
  39.         {
  40.             was_not_dt = false
  41.             in_recharge = true
  42.         }
  43.     }
  44.     if (in_recharge) {
  45.         Exploit.Recharge()
  46.         if (charge == 1) {
  47.             in_recharge = false
  48.         }
  49.     }
  50. }
  51. function unload() {
  52.     Exploit.EnableRecharge()
  53.     Exploit.OverrideShift(12)
  54.     Exploit.OverrideTolerance(2)
  55. }
  56. function round_start() {
  57.     last_shot_tick = 0
  58.     in_recharge = true
  59. }
  60. Cheat.RegisterCallback("round_start", "round_start")
  61. Cheat.RegisterCallback("Unload", "unload")
  62. Cheat.RegisterCallback("CreateMove", "cm")
  63. Cheat.RegisterCallback("weapon_fire", "weapon_fire")
  64.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement