Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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}}
- ui_theme := ui_theme.voidTheme
- #include %A_AppData%\LazyHub\lib
- #include headers.ahk
- #include timers.ahk
- #include utils.ahk
- #include custom_ui.ahk
- #include game_settings.ahk
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Globals ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- global g_desiredLimb := -20
- global g_raplakDelay := 1608 ; my host has 300+ fps who cares
- global g_step := 5
- ; Math
- global g_cooldown := 17186 - g_raplakDelay + g_desiredLimb
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Binds ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- AntiDesyncKey = XButton2
- IncreaseTimeKey = Down
- DecreaseTimeKey = Left
- EnergyDrainKey = F5
- ; Technical part
- #IfWinActive ahk_exe Warframe.x64.exe
- Hotkey, IfWinActive, ahk_exe Warframe.x64.exe
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Hotkeys ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- Hotkey, *%AntiDesyncKey%, AntiDesync
- Hotkey, *%IncreaseTimeKey%, IncreaseTime
- Hotkey, *%DecreaseTimeKey%, DecreaseTime
- Hotkey, *%EnergyDrainKey%, EnergyDrain
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; GUI Settings ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- global ui := []
- gGuiW := 80
- gGuiH := 28
- gPosX := Ceil(gScreen[1] * 0.008)
- gPosY := Ceil(gScreen[2] * 0.47)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; GUI ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ui.push(new Window("vs_title", gPosX, gPosY, gGuiW, gGuiH, ui_theme, 3.132))
- ui.push(new Window("vs_body", gPosX, gPosY+ui[1].h+4, gGuiW, gGuiH*2, ui_theme, 3.132))
- ui[1].new_text("T1", "lazy", "auto", "title")
- ui[2].new_text("T2", g_cooldown, "xs ym+3", "main")
- ui[2].new_text("T3", "[time]", "xs ym+24", "info")
- loop % ui.Length()
- ui[A_Index].show()
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Funcs ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- UpdateTimer(begin, end := "", prec := "3") {
- if (end == "")
- DllCall("QueryPerformanceCounter", "Int64*", end)
- offset := MeasureTime(begin, end)
- offsetText := Format(offset >= 9999 ? "{1:.0f}" : "{1:.1f}", offset)
- ui[1].edit_text("T1", offsetText)
- }
- AntiDesync:
- GoSub, IncreaseTime
- GoSub, DecreaseTime
- loop, 5
- {
- DllCall("QueryPerformanceCounter", "Int64*", beforePropa)
- SendInput, {Blind}{%shoot2Key%}
- DllCall("QueryPerformanceCounter", "Int64*", afterPropa)
- lSleep(500)
- GoSub, BackToWarframe
- GoSub, VigSwap
- lSleep(g_raplakDelay, beforePropa)
- DllCall("QueryPerformanceCounter", "Int64*", beforeRaplak)
- SendInput, {Blind}{%shootKey%}
- Sleep 4000
- UpdateTimer(beforePropa, beforeRaplak)
- lSleep(14700, beforeRaplak)
- GuiControl, gui_debug:Text, DebugText, paused
- Hotkey, *%IncreaseTimeKey%, off
- Hotkey, *%DecreaseTimeKey%, off
- lSleep(15300, beforeRaplak)
- Hotkey, *%IncreaseTimeKey%, on
- Hotkey, *%DecreaseTimeKey%, on
- lSleep(g_cooldown, beforeRaplak)
- UpdateTimer(beforeRaplak)
- }
- beforePropa := 0, afterPropa := 0
- beforeRaplak := 0
- return
- IncreaseTime:
- if (g_desiredLimb > 300)
- return
- g_desiredLimb += g_step
- g_cooldown += g_step
- limbText := Format("{1:.3f}", g_desiredLimb * 0.001)
- ui[2].edit_text("T2", g_cooldown)
- ui[2].edit_text("T3", limbText)
- return
- DecreaseTime:
- if (g_desiredLimb - g_step < -150)
- return
- g_desiredLimb -= g_step
- g_cooldown -= g_step
- limbText := Format("{1:.3f}", g_desiredLimb * 0.001)
- ui[2].edit_text("T2", g_cooldown)
- ui[2].edit_text("T3", limbText)
- return
- EnergyDrain:
- SendInput, {Blind}{%shiftKey% Down}
- lSleep(10)
- SendInput, {Blind}{%secondAKey%} ; 2nd madurai ability
- lSleep(10)
- Loop, 18
- {
- SendInput, {Blind}{%jumpKey%}
- SendInput, {Blind}{%shootKey%}
- Sleep 1
- }
- SendInput, {Blind}{%shiftKey% Up}
- return
- VigSwap:
- lSleep(10)
- SendInput, {Blind}{%switchKey%}
- lSleep(20) ; delay before weapon switch
- SendInput, {Blind}{%switchKey%}
- lSleep(10)
- return
- BackToWarframe:
- lSleep(1)
- SendInput, {Blind}{%meleeKey%}
- lSleep(60)
- SendInput, {Blind}{%emoteKey%}
- lSleep(1)
- SendInput, {Blind}{%shootKey%}
- lSleep(20)
- return
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; Misc ;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- #IfWinActive
- *Insert::reload
- *Del::exitapp
- *F11::
- suspend, toggle
- state := A_IsSuspended ? "pause" : "lazy"
- GuiControl, gui_debug:, DebugText, %state%
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement