Skip to content

Instantly share code, notes, and snippets.

@sowderca
Created November 30, 2021 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sowderca/dbecaa868158e5ffbc8f7186c8d3ff0b to your computer and use it in GitHub Desktop.
Save sowderca/dbecaa868158e5ffbc8f7186c8d3ff0b to your computer and use it in GitHub Desktop.
Code:
init:
#NoEnv
#SingleInstance, Force
#Persistent
#InstallKeybdHook
#UseHook
#KeyHistory, 0
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
version = 0.2
traytip, Halo Aim Assist %version%, Script Active!, 5, 1
Menu, tray, NoStandard
Menu, tray, Tip, Halo Aim Assist %version%
Menu, tray, Add, Halo Aim Assist %version%, return
Menu, tray, Add
Menu, tray, Add, Help, info
Menu, tray, Add, Exit, exit
SetKeyDelay,-1, 1
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
SendMode, InputThenPlay
SetBatchLines,-1
ListLines, Off
CoordMode, Pixel, Screen, RGB
CoordMode, Mouse, Screen
PID := DllCall("GetCurrentProcessId")
Process, Priority, %PID%, High
EMCol := 0xF45BE5
ColVn := 64
AntiShakeX := (A_ScreenHeight // 0)
AntiShakeY := (A_ScreenHeight // 0)
ZeroX := (A_ScreenWidth // 2)
ZeroY := (A_ScreenHeight // 2)
CFovX := (A_ScreenWidth // 8)
CFovY := (A_ScreenHeight // 40)
ScanL := ZeroX - CFovX
ScanT := ZeroY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY
Loop, {
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, ColVn, Fast RGB
if (!ErrorLevel=0) {
loop, 1 {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
DirX := -1
DirY := -1
If ( AimX > 0 ) {
DirX := 0.75
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY
MoveX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MoveY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
DllCall("mouse_event", uint, 1, int, MoveX * 3.0, int, MoveY, uint, 0, int, 0)
}
}
}
Pause:: pause
return:
goto, init
info:
msgbox, 0, Halo Aim Assist %version%, Made by Gunslaying at UnknownCheats.me
return
^esc:: ExitApp ;
exit:
exitapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment