Skip to content

Commit

Permalink
care
Browse files Browse the repository at this point in the history
  • Loading branch information
sotakoira committed Nov 4, 2022
1 parent 888268c commit 32c0770
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
36 changes: 0 additions & 36 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 0 additions & 30 deletions src/main/kotlin/rat/poison/utils/Aim.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }

Expand Down

0 comments on commit 32c0770

Please sign in to comment.