Advertisement
S1L1R

lazy_vs_pz

Feb 9th, 2023 (edited)
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global ui_theme := {voidTheme: {winOL: "ADADAD", alpOL: 255, winBG: "151515", alpBG: 180, title: "Montserrat Medium", titleCol: "86C8BC", titleSZ: 13, main: "Montserrat Medium", mainCol: "White", mainSZ: 13, info: "Montserrat Medium", infoCol: "FFF6BD", infoSZ: 13}}
  2. ui_theme := ui_theme.voidTheme
  3.  
  4. #include %A_AppData%\LazyHub\lib
  5.  
  6. #include headers.ahk
  7. #include timers.ahk
  8. #include utils.ahk
  9. #include custom_ui.ahk
  10.  
  11. #include game_settings.ahk
  12.  
  13. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  14. ;;               Globals               ;;
  15. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  16. global g_desiredLimb := -20
  17. global g_raplakDelay := 1608 ; my host has 300+ fps who cares
  18. global g_step := 5
  19.  
  20. ; Math
  21. global g_cooldown := 17186 - g_raplakDelay + g_desiredLimb
  22.  
  23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  24. ;;                Binds                ;;
  25. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  26. AntiDesyncKey   = XButton2
  27. IncreaseTimeKey = Down
  28. DecreaseTimeKey = Left
  29. EnergyDrainKey  = F5
  30.  
  31. ; Technical part
  32. #IfWinActive ahk_exe Warframe.x64.exe
  33. Hotkey, IfWinActive, ahk_exe Warframe.x64.exe
  34.  
  35. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  36. ;;               Hotkeys               ;;
  37. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  38. Hotkey, *%AntiDesyncKey%, AntiDesync
  39. Hotkey, *%IncreaseTimeKey%, IncreaseTime
  40. Hotkey, *%DecreaseTimeKey%, DecreaseTime
  41. Hotkey, *%EnergyDrainKey%, EnergyDrain
  42.  
  43. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  44. ;;             GUI Settings            ;;
  45. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  46. global ui := []
  47.  
  48. gGuiW := 80
  49. gGuiH := 28
  50.  
  51. gPosX := Ceil(gScreen[1] * 0.008)
  52. gPosY := Ceil(gScreen[2] * 0.47)
  53.  
  54. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  55. ;;                 GUI                 ;;
  56. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  57. ui.push(new Window("vs_title", gPosX, gPosY, gGuiW, gGuiH, ui_theme, 3.132))
  58. ui.push(new Window("vs_body", gPosX, gPosY+ui[1].h+4, gGuiW, gGuiH*2, ui_theme, 3.132))
  59.  
  60. ui[1].new_text("T1", "lazy", "auto", "title")
  61. ui[2].new_text("T2", g_cooldown, "xs ym+3", "main")
  62. ui[2].new_text("T3", "[time]", "xs ym+24", "info")
  63.  
  64. loop % ui.Length()
  65.     ui[A_Index].show()
  66. return
  67.  
  68. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  69. ;;                Funcs                ;;
  70. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  71. UpdateTimer(begin, end := "", prec := "3") {
  72.     if (end == "")
  73.         DllCall("QueryPerformanceCounter", "Int64*", end)
  74.  
  75.     offset := MeasureTime(begin, end)
  76.     offsetText := Format(offset >= 9999 ? "{1:.0f}" : "{1:.1f}", offset)
  77.  
  78.     ui[1].edit_text("T1", offsetText)
  79. }
  80.  
  81. AntiDesync:
  82.    GoSub, IncreaseTime
  83.     GoSub, DecreaseTime
  84.  
  85.     loop, 5
  86.     {
  87.         DllCall("QueryPerformanceCounter", "Int64*", beforePropa)
  88.         SendInput, {Blind}{%shoot2Key%}
  89.         DllCall("QueryPerformanceCounter", "Int64*", afterPropa)
  90.  
  91.         lSleep(500)
  92.         GoSub, BackToWarframe
  93.         GoSub, VigSwap
  94.        
  95.         lSleep(g_raplakDelay, beforePropa)
  96.  
  97.         DllCall("QueryPerformanceCounter", "Int64*", beforeRaplak)
  98.         SendInput, {Blind}{%shootKey%}
  99.         Sleep 4000
  100.  
  101.         UpdateTimer(beforePropa, beforeRaplak)
  102.         lSleep(14700, beforeRaplak)
  103.        
  104.         GuiControl, gui_debug:Text, DebugText, paused
  105.         Hotkey, *%IncreaseTimeKey%, off
  106.         Hotkey, *%DecreaseTimeKey%, off
  107.  
  108.         lSleep(15300, beforeRaplak)
  109.  
  110.         Hotkey, *%IncreaseTimeKey%, on
  111.         Hotkey, *%DecreaseTimeKey%, on
  112.  
  113.         lSleep(g_cooldown, beforeRaplak)
  114.         UpdateTimer(beforeRaplak)
  115.     }
  116.     beforePropa := 0, afterPropa := 0
  117.     beforeRaplak := 0
  118. return
  119.  
  120. IncreaseTime:
  121.    if (g_desiredLimb > 300)
  122.         return
  123.  
  124.     g_desiredLimb += g_step
  125.     g_cooldown += g_step
  126.  
  127.     limbText := Format("{1:.3f}", g_desiredLimb * 0.001)
  128.     ui[2].edit_text("T2", g_cooldown)
  129.     ui[2].edit_text("T3", limbText)
  130. return
  131.  
  132. DecreaseTime:
  133.    if (g_desiredLimb - g_step < -150)
  134.         return
  135.  
  136.     g_desiredLimb -= g_step
  137.     g_cooldown -= g_step
  138.  
  139.     limbText := Format("{1:.3f}", g_desiredLimb * 0.001)
  140.     ui[2].edit_text("T2", g_cooldown)
  141.     ui[2].edit_text("T3", limbText)
  142. return
  143.  
  144. EnergyDrain:
  145.    SendInput, {Blind}{%shiftKey% Down}
  146.     lSleep(10)
  147.  
  148.     SendInput, {Blind}{%secondAKey%} ; 2nd madurai ability
  149.     lSleep(10)
  150.    
  151.     Loop, 18
  152.     {
  153.         SendInput, {Blind}{%jumpKey%}
  154.         SendInput, {Blind}{%shootKey%}
  155.         Sleep 1
  156.     }
  157.     SendInput, {Blind}{%shiftKey% Up}
  158. return
  159.  
  160. VigSwap:
  161.    lSleep(10)
  162.     SendInput, {Blind}{%switchKey%}
  163.         lSleep(20) ; delay before weapon switch
  164.     SendInput, {Blind}{%switchKey%}
  165.     lSleep(10)
  166. return
  167.  
  168. BackToWarframe:
  169.    lSleep(1)
  170.    
  171.     SendInput, {Blind}{%meleeKey%}
  172.     lSleep(60)
  173.     SendInput, {Blind}{%emoteKey%}
  174.     lSleep(1)
  175.     SendInput, {Blind}{%shootKey%}
  176.    
  177.     lSleep(20)
  178. return
  179.  
  180. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  181. ;;                Misc                 ;;
  182. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  183. #IfWinActive
  184. *Insert::reload
  185. *Del::exitapp
  186.  
  187. *F11::
  188.     suspend, toggle
  189.     state := A_IsSuspended ? "pause" : "lazy"
  190.     GuiControl, gui_debug:, DebugText, %state%
  191. return
  192.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement