29-11-2017, 13:22
Salut,
je viens partager et demander conseil pour un script AimAssist ahk.
J'ai l'impression qu'il ne fonctionne pas correctement car il y a sûrement des petits réglage à ajuster comme "FOV" par exemple.
Ma première question, pourquoi "Mouse2"?
Menu.ahk:
T.ahk:
CT.ahk:
Merci de votre aide.
Ps: je pense qu'un fois opérationnel il peut plaire a beaucoup
je viens partager et demander conseil pour un script AimAssist ahk.
J'ai l'impression qu'il ne fonctionne pas correctement car il y a sûrement des petits réglage à ajuster comme "FOV" par exemple.
Ma première question, pourquoi "Mouse2"?
Menu.ahk:
Code PHP :
Gui, Add, Picture, x2 y-1 w610 h470 , E:\Thomas\Pictures\2k 034.jpga15a6b34-8130-4132-a6a9-0276499ee562Large.jpg
Gui, Add, Text, x52 y79 w180 h40 +Center +BackgroundTrans +Hidden, Terrorists : F3
Gui, Add, Text, x52 y179 w180 h40 +Center, Counter-Terrorists : F4
Gui, Add, Text, x52 y109 w180 h40 +Center, Terrrorists : F3
Gui, Add, GroupBox, x42 y69 w200 h180 , Aim Assist V4.0 by CPL Net
Gui, Font, S8 Cred, Verdana
Gui, Add, Text, x2 y269 w290 h60 , Press INSERT when changing side camp
; Generated using SmartGUI Creator 4.0
Gui, Show, x164 y172 h294 w288, New GUI Window
Return
GuiClose:
ExitApp
F3:: Run T.ahk
F4:: Run CT.ahk
T.ahk:
Code PHP :
ColVn := 0
ZeroX := 960
ZeroY := 540
CFovX := 95
CFovY := 95
ScanL := ZeroX - CFovX
ScanT := ZeroY - CFovY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY
Loop {
GetKeyState, Mouse2, LButton, P
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4B2716, ColVn, Fast RGB ; barbus dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3B3E45, ColVn, Fast RGB ; barbus dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4B2614, ColVn, Fast RGB ; barbus dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}
}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x54361A, ColVn, Fast RGB ; black dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x474946, ColVn, Fast RGB ; black dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4D321E, ColVn, Fast RGB ; black dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x8E603A, ColVn, Fast RGB ; zeus dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x30302E, ColVn, Fast RGB ; zeus dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x836140, ColVn, Fast RGB ; zeus dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}
}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x725C36, ColVn, Fast RGB ; jaune dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x2C2C2C, ColVn, Fast RGB ; jaune dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x775D3A, ColVn, Fast RGB ; jaune dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}
}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x492418, ColVn, Fast RGB ; rouge dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x2A2A28, ColVn, Fast RGB ; rouge dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x472215, ColVn, Fast RGB ; rouge dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x302312, ColVn, Fast RGB ; jaune sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x11100E, ColVn, Fast RGB ; jaune sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x302210, ColVn, Fast RGB ; jaune sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x2C1608, ColVn, Fast RGB ; black sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x2F2E29, ColVn, Fast RGB ; black sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x1E0E06, ColVn, Fast RGB ; black sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x331E0D, ColVn, Fast RGB ; zeus sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x161511, ColVn, Fast RGB ; zeus sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x341F0D, ColVn, Fast RGB ; zeus sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x2B150C, ColVn, Fast RGB ; barbus sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x22211F, ColVn, Fast RGB ; barbus sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x251108, ColVn, Fast RGB ; barbus sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x1D0A04, ColVn, Fast RGB ; rouge sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x090806, ColVn, Fast RGB ; rouge sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x1B0804, ColVn, Fast RGB ; rouge sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xB5AD96, ColVn, Fast RGB ; cagoule cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x9F987E, ColVn, Fast RGB ; cagoule cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xA49A81, ColVn, Fast RGB ; cagoule cache
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xE9D0B0, ColVn, Fast RGB ; terro inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x908376, ColVn, Fast RGB ; terro inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xFBDFC1, ColVn, Fast RGB ; terro inferno
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3F3631, ColVn, Fast RGB ; terro sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x413730, ColVn, Fast RGB ; terro sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x433B37, ColVn, Fast RGB ; terro sombre inferno
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x484742, ColVn, Fast RGB ; terro cagoule sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4F4B48, ColVn, Fast RGB ; terro cagoule sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4E4B46, ColVn, Fast RGB ; terro cagoule sombre overpass
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x6B4A2B, ColVn, Fast RGB ; terro arabe train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x6C4331, ColVn, Fast RGB ; terro arabe train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x77522E, ColVn, Fast RGB ; terro arabe train
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3D2F22, ColVn, Fast RGB ; terro arabe sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3C2A1C, ColVn, Fast RGB ; terro arabe sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3E3023, ColVn, Fast RGB ; terro arabe sombre train
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
}
GetAimOffset:
AimX := AimPixelX - ZeroX
If ( AimX > 0 ) {
DirX := 1
}
If ( AimX < 0 ) {
DirX := -1
}
If ( AimY > 0 ) {
DirY := 1
}
If ( AimY < 0 ) {
DirY := -1
}
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY
Return
GetAimMoves:
RootX := ATan(( AimPixelX - A_ScreenWidth/2 + aimtracespeed) * 0.01)
x := ATan(RootX * DirX) / lockspeed
RootY := ATan(( AimPixelY - A_ScreenHeight/2 + aimtracespeed) * 0.01)
y := ATan(RootY * DirY) / lockspeed
Return
AntiShake:
Abs(AimPixelX - A_ScreenWidth/2 + aimassistspeed)> 60
return
MouseMoves:
If ( Mouse2 == "D" ) {
DllCall("mouse_event", "UInt", 0x01, "Int", x, "Int", 0)
}
return
aimassistspeed := 130 ; low = legit , high = robot reaction / adding or substracting 1 number value, can be far.
aimtracespeed := 200 ; low = High tracing, high = smooth tracing
lockspeed := 0.3 ; low = slow locking, high = insta lock
INS:: ExitApp
Code PHP :
ColVn := 0
ZeroX := 960
ZeroY := 540
CFovX := 55
CFovY := 95
ScanL := ZeroX - CFovX
ScanT := ZeroY - CFovY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY
Loop {
GetKeyState, Mouse2, LButton, P
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3C392A, ColVn, Fast RGB ; vert sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x222016, ColVn, Fast RGB ; vert sombre dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x3B3729, ColVn, Fast RGB ; vert sombre dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xBEA972, ColVn, Fast RGB ; vert dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xCCB37D, ColVn, Fast RGB ; vert dust2
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x83764A, ColVn, Fast RGB ; vert dust2
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x55402F, ColVn, Fast RGB ; gign sombre cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x403021, ColVn, Fast RGB ; gign sombre cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x564130, ColVn, Fast RGB ; gign sombre cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4A3929, ColVn, Fast RGB ; gign sombre cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x533F2F, ColVn, Fast RGB ; gign sobmre cache
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x544237, ColVn, Fast RGB ; gign cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x524439, ColVn, Fast RGB ; gign cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x554639, ColVn, Fast RGB ; gign cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x473930, ColVn, Fast RGB ; gign cache
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x4B3E35, ColVn, Fast RGB ; gign cache
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x6E7276, ColVn, Fast RGB ; sas inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x6A6D72, ColVn, Fast RGB ; sas inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x585D63, ColVn, Fast RGB ; sas inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x867E7B, ColVn, Fast RGB ; sas inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x696E74, ColVn, Fast RGB ; sas inferno
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x08101B, ColVn, Fast RGB ; sas sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x0A101C, ColVn, Fast RGB ; sas sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x0F1522, ColVn, Fast RGB ; sas sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x090F1B, ColVn, Fast RGB ; sas sombre inferno
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x0A101C, ColVn, Fast RGB ; sas sobmre inferno
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x40362A, ColVn, Fast RGB ; polizei overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x43392D, ColVn, Fast RGB ; polizei overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x151412, ColVn, Fast RGB ; polizei overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x403429, ColVn, Fast RGB ; polizei overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x42392C, ColVn, Fast RGB ; polizei overpass
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x0F0F0F, ColVn, Fast RGB ; polizei sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x16171C, ColVn, Fast RGB ; polizei sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x1B1A1F, ColVn, Fast RGB ; polizei sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x111113, ColVn, Fast RGB ; polizei sombre overpass
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x212129, ColVn, Fast RGB ; polizei sonbre overpass
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x94714E, ColVn, Fast RGB ; beige train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x9B7854, ColVn, Fast RGB ; beige train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xB38F5C, ColVn, Fast RGB ; beige train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xA07D51, ColVn, Fast RGB ; beige train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x86714D, ColVn, Fast RGB ; beige train
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x706A4F, ColVn, Fast RGB ; beige sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x5E5244, ColVn, Fast RGB ; beige sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x574A3A, ColVn, Fast RGB ; beige sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x5A5D48, ColVn, Fast RGB ; beige sombre train
if errorlevel = 0
{
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x7A7155, ColVn, Fast RGB ; beige sombre train
if errorlevel = 0
{
GoSub GetAimOffset
GoSub GetAimMoves
GoSub AntiShake
GoSub MouseMoves
}}
}
}}
}
GetAimOffset:
AimX := AimPixelX - ZeroX
If ( AimX > 0 ) {
DirX := 1
}
If ( AimX < 0 ) {
DirX := -1
}
If ( AimY > 0 ) {
DirY := 1
}
If ( AimY < 0 ) {
DirY := -1
}
AimOffsetX := AimX * DirX
Return
GetAimMoves:
RootX := ATan(( AimPixelX - A_ScreenWidth/2 + aimtracespeed) * 0.01)
x := ATan(RootX * DirX) / lockspeed
RootY := ATan(( AimPixelY - A_ScreenHeight/2 + aimtracespeed) * 0.01)
y := ATan(RootY * DirY) / lockspeed
Return
AntiShake:
Abs(AimPixelX - A_ScreenWidth/2 + aimassistspeed)> 60
return
MouseMoves:
If ( Mouse2 == "D" ) {
DllCall("mouse_event", "UInt", 0x01, "Int", x, "Int", 0)
}
return
aimassistspeed := 130 ; low = legit , high = robot reaction / adding or substracting 1 number value, can be far.
aimtracespeed := 200 ; low = High tracing, high = smooth tracing
lockspeed := 0.3 ; low = slow locking, high = insta lock
INS:: ExitApp
Merci de votre aide.
Ps: je pense qu'un fois opérationnel il peut plaire a beaucoup