mirror of
https://github.com/bnowakow/GT7-Scripts.git
synced 2026-01-28 14:06:01 +00:00
initial commit
This commit is contained in:
29
bnowakow/old versions/GT7-B-Spec 0.99/Mod/CheckTyres.ahk
Normal file
29
bnowakow/old versions/GT7-B-Spec 0.99/Mod/CheckTyres.ahk
Normal file
@@ -0,0 +1,29 @@
|
||||
GoTo EndCheckTyresDef
|
||||
|
||||
CheckTyresOverheating:
|
||||
tc := BitGrab(tyreX, tyreY, box_size)
|
||||
for i, c in tc
|
||||
{
|
||||
td := Distance(c, color_tyre_overheat)
|
||||
if (td < tolerance ){
|
||||
tyres_overheating := true
|
||||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
RetryRace:
|
||||
Gosub, PauseLoop
|
||||
Sleep 500
|
||||
tyres_overheating := false
|
||||
controller.Buttons.Options.SetState(true)
|
||||
Sleep 200
|
||||
controller.Buttons.Options.SetState(false)
|
||||
Sleep, 500
|
||||
controller.Dpad.SetState("Right")
|
||||
Sleep, 200
|
||||
controller.Dpad.SetState("None")
|
||||
Goto, AFKLoop
|
||||
return
|
||||
|
||||
EndCheckTyresDef:
|
||||
Reference in New Issue
Block a user