diff --git a/build.bat b/build.bat index 97d26375..2295f88d 100644 --- a/build.bat +++ b/build.bat @@ -8,40 +8,4 @@ call gradlew RatPoison echo. echo If there is an error message, close this window, try rebuilding a few times, or give up if it continues. echo. -set /P c=Would you like to randomize the file name for safety? [Y/N] -if /I "%c%" EQU "Y" goto :y -if /I "%c%" EQU "N" goto :n -:y -rem 16 stings pwd - -setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION -set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 - -set pwd= -FOR /L %%b IN (0, 1, 16) DO ( -SET /A rnd_num=!RANDOM! * 62 / 32768 + 1 -for /F %%c in ('echo %%alfanum:~!rnd_num!^,1%%') do set pwd=!pwd!%%c -) -cd build -cd pastepoison -ren "pastepoison.jar" "%pwd%.jar" -powershell -Command "(Get-Content -path 'Start pastepoison.bat') -replace 'pastepoison', '%pwd%' | Set-Content -Path 'Start pastepoison.bat'" -ren "Start pastepoison.bat" "%pwd%.bat" -echo. -echo File name has been randomized. -goto :n -:n -cd build -cd pastepoison -echo. -set /P c=Would you like to open the cheat folder? [Y/N] -if /I "%c%" EQU "Y" goto :y1 -if /I "%c%" EQU "N" goto :n1 -:y1 -start. -goto :n1 -:n1 -echo. -echo To run this cheat, open csgo and run the bat folder in the cheat folder. -echo. pause diff --git a/src/main/kotlin/rat/poison/utils/Aim.kt b/src/main/kotlin/rat/poison/utils/Aim.kt index f97e83f1..35aded66 100644 --- a/src/main/kotlin/rat/poison/utils/Aim.kt +++ b/src/main/kotlin/rat/poison/utils/Aim.kt @@ -6,8 +6,6 @@ import rat.poison.game.CSGO.gameHeight import rat.poison.game.CSGO.gameWidth import rat.poison.game.CSGO.gameX import rat.poison.game.CSGO.gameY -import rat.poison.game.clientState -import rat.poison.game.setAngle import rat.poison.settings.GAME_PITCH import rat.poison.settings.GAME_SENSITIVITY import rat.poison.settings.GAME_YAW @@ -16,34 +14,6 @@ import kotlin.math.round private val delta = ThreadLocal.withInitial { Vector() } -fun applyFlatSmoothing(currentAngle: Angle, destinationAngle: Angle, smoothing: Float, divisor: Int) = destinationAngle.apply { - x -= currentAngle.x - y -= currentAngle.y - z = 0F - normalize() - - var smooth = smoothing - - if (smooth == 0F) { - smooth = 1F - } - - var randX = if (curSettings["AIM_RANDOM_X_VARIATION"].toInt() > 0) randInt(0, curSettings["AIM_RANDOM_X_VARIATION"].toInt()) * randSign() else 0 - var randY = if (curSettings["AIM_RANDOM_Y_VARIATION"].toInt() > 0) randInt(0, curSettings["AIM_RANDOM_Y_VARIATION"].toInt()) * randSign() else 0 - val randDZ = curSettings["AIM_VARIATION_DEADZONE"].toInt() / 100F - - if (x in -randDZ..randDZ && y in -randDZ..randDZ) { - randX = 0 - randY = 0 - } - - x = currentAngle.x + (x + ((randX/10F) * (10F / smooth))) / 100F * (100F / smooth) / divisor - y = currentAngle.y + (y + ((randY/10F) * (10F / smooth))) / 100F * (100F / smooth) / divisor - - normalize() -} - - fun pathAim(currentAngle: Angle, destinationAngle: Angle, aimSpeed: Int, checkOnScreen: Boolean = true, divisor: Int = 1) { if (!destinationAngle.isValid()) { return }