Hi Epvpers i read a lot of tutorials of memory aimbots and made one by myself with autoit x_X, the thing is that some math in the code is wrong and don't know how to fix it, caus i'm very bad at maths...
All i can say is that the rotation x is working good from left to right and the y rotation only work if the enemy is at the same yPos as you D: but fortunately it shots at head :D ,right to left is not aiming even if the player that is on your left is the nearest.
Is an offline aimbot that will aim the nearest bot(team too(by now the nearest bot on your right)) when you press right click.
Things to consider:
rotationX (mouseX) go between 0 to 360
rotationY (mouseY) go between -89 to +89
i'm a stupid noob that i can't calculate the angle...
Here's the video:
[Only registered and activated users can see links. Click Here To Register...]
Here is what i get until now:
Very sorry for my bad english the video will be uploaded in two hours (fail internet)
All i can say is that the rotation x is working good from left to right and the y rotation only work if the enemy is at the same yPos as you D: but fortunately it shots at head :D ,right to left is not aiming even if the player that is on your left is the nearest.
Is an offline aimbot that will aim the nearest bot(team too(by now the nearest bot on your right)) when you press right click.
Things to consider:
rotationX (mouseX) go between 0 to 360
rotationY (mouseY) go between -89 to +89
i'm a stupid noob that i can't calculate the angle...
Here's the video:
[Only registered and activated users can see links. Click Here To Register...]
Here is what i get until now:
Code:
Global Const $_PI =3.14159265
;Posible something bad in here? i get it from autoit forums...
#region Math Atan2
Func atan2($x, $y)
$Pi = 4 * ATan(1)
If StringIsInt($x) Or StringIsFloat($x) Then
If StringIsInt($y) Or StringIsFloat($y) Then
; OK
Else
SetError(1)
Return ""
EndIf
Else
SetError(1)
Return ""
EndIf
Dim $PolarAnswer[3] ; $Results[0]=Radius, [1]=Theta (in Radians), [2]=Theta (in Degrees)
$r = Sqrt(($x ^ 2) + ($y ^ 2))
$PolarAnswer[0] = $r
Select
Case $x = 0 And $y = 0
$ThetaRad = 0
$ThetaDeg = 0
Case $x >= 0 And $y >= 0 ; +x/+y = 0-90deg quadrant
$ThetaRad = ATan($x / $y)
$ThetaDeg = $ThetaRad * 180 / $Pi
Case $x >= 0 And $y < 0 ; +x/-y = 90-180deg quadrant
$ThetaRad = ATan(Abs($y) / $x)
$ThetaDeg = $ThetaRad * 180 / $Pi + 90
$ThetaRad = $ThetaRad + $Pi / 2
Case $x < 0 And $y < 0 ; -x/-y = 180-270deg quadrant
$ThetaRad = ATan(Abs($x) / Abs($y))
$ThetaDeg = $ThetaRad * 180 / $Pi + 180
$ThetaRad = $ThetaRad + $Pi
Case $x < 0 And $y >= 0 ; -x/+y = 2700-360deg quadrant
$ThetaRad = ATan($y / Abs($x))
$ThetaDeg = $ThetaRad * 180 / $Pi + 270
$ThetaRad = $ThetaRad + 3 * $Pi / 2
EndSelect
$PolarAnswer[1] = $ThetaDeg
SetError(0)
Return $ThetaDeg
EndFunc ;==>atan2
#endregion
#region Aimbot Math
;EnemyVals[0,1,2] = xyz (All bots)
;PlayerVals[0,1,2] = xyz (Main Player)
Func Get3dDistance($EnemyVals,$PlayerVals)
$float=Sqrt( _
(($EnemyVals[0] - $PlayerVals[0]) * ($EnemyVals[0] - $PlayerVals[0]))+ _
(($EnemyVals[1] - $PlayerVals[1]) * ($EnemyVals[1] - $PlayerVals[1]))+ _
(($EnemyVals[2] - $PlayerVals[2]) * ($EnemyVals[2] - $PlayerVals[2])))
Return $float
EndFunc
#cs
Something here is wrong
#ce
Func AimAtTarget($EnemyVal,$PlayerVal)
; Z Z xyz xyz
$PitchX= ASin(($EnemyVal[2]-$PlayerVal[2])/Get3dDistance($EnemyVal,$PlayerVal))*180/$_PI
$PitchY= -Atan2($EnemyVal[0]-$PlayerVal[0],$EnemyVal[1]-$PlayerVal[1])/($_PI*180*88)
; X X Y Y
Local $MouseX= _MemoryWrite($MouseAdd[0][0],$Open,$PitchX,"float") ;x mouse axis
Local $MouseY= _MemoryWrite($MouseAdd[1][0],$Open,$PitchY,"float") ;y mouse axis
EndFunc
#endregion