Skip to content

Commit

Permalink
ayo is this bladee
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRAVEDLIVO committed Jul 21, 2021
1 parent 761d821 commit 5d5aea8
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 92 deletions.
1 change: 1 addition & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 10 additions & 13 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions .idea/libraries-with-intellij-classes.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 49 additions & 70 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import java.nio.file.Files
import org.apache.commons.io.FileUtils

buildscript {
ext.kotlin_version = '1.3.72'
ext.jnaVersion = '5.2.0'
ext.gdxVersion = '1.9.10'
ext.visuiVersion = "1.4.4"
ext.kotlin_version = '1.4.21'
ext.jnaVersion = '5.6.0'
ext.gdxVersion = '1.9.14'
ext.visuiVersion = "1.5.0"

repositories {
jcenter()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
classpath "commons-io:commons-io:2.8.0"
}
}

Expand All @@ -23,37 +25,44 @@ apply plugin: "application"
apply plugin: "com.github.johnrengelman.shadow"

group "rat.poison"
version "1.7"
version "1.8"

mainClassName = "rat.poison.RatPoison"

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

repositories {
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

dependencies {
compile group: "org.jire.arrowhead", name: "arrowhead", version: "1.3.3"

compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"

compile group: 'net.java.dev.jna', name: 'jna', version: jnaVersion
compile group: 'net.java.dev.jna', name: 'jna-platform', version: jnaVersion

compile "com.kotcrab.vis:vis-ui:$visuiVersion"
implementation group: "org.jire.arrowhead", name: "arrowhead", version: "1.3.3"

implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
implementation group: 'net.java.dev.jna', name: 'jna', version: jnaVersion
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: jnaVersion
implementation "com.kotcrab.vis:vis-ui:$visuiVersion"
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime', version: kotlin_version
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-script-util', version: kotlin_version
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: kotlin_version

implementation group: 'commons-io', name: 'commons-io', version: '2.8.0'
implementation 'com.github.ata4:ioutils:b1f26588b5'
implementation 'com.github.ata4:bspsrc:v1.3.24'

compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-runtime', version: kotlin_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-script-util', version: kotlin_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler-embeddable', version: kotlin_version
implementation group: 'it.unimi.dsi', name: 'fastutil', version: '8.4.4'

compile group: 'commons-io', name: 'commons-io', version: 2.6
compile 'com.github.ata4:ioutils:b1f26588b5'
implementation 'com.github.ata4:bspsrc:v1.3.24'
implementation group: 'net.openhft', name: 'chronicle-core', version: '2.20.125'
}

jar {
Expand All @@ -63,16 +72,18 @@ jar {
}

shadowJar {
baseName = 'RatPoison'
classifier = null
archiveBaseName.set('RatPoison')
archiveClassifier.set(null)
}

task RatPoison {
doLast {
def name = "RatPoison $version"

def dir = file("build/$name/")
if (dir.exists()) dir.deleteDir()
if (dir.exists()) {
dir.deleteDir()
}
dir.mkdirs()

def jarName = "${name}.jar"
Expand All @@ -91,53 +102,14 @@ task RatPoison {
pause""".getBytes())

def dirSettings = file(new File(dir, "settings"))
dirSettings.mkdirs()
def settings = file("settings")
settings.listFiles().each {
Files.copy(it.toPath(), (new File(dirSettings, it.getName())).toPath())
}

def dirHitsounds = file(new File(dir, "settings\\hitsounds"))
dirHitsounds.mkdirs()
def hitsounds = file("settings\\hitsounds")
hitsounds.listFiles().each {
Files.copy(it.toPath(), (new File(dirHitsounds, it.getName())).toPath())
}

def dirCfgs = file(new File(dir, "settings\\CFGS"))
dirCfgs.mkdirs()
def cfgs = file("settings\\CFGS")
cfgs.listFiles().each {
Files.copy(it.toPath(), (new File(dirCfgs, it.getName())).toPath())
}

def dirHelper = file(new File(dir, "settings\\NadeHelper"))
dirHelper.mkdirs()
def helper = file("settings\\NadeHelper")
helper.listFiles().each {
Files.copy(it.toPath(), (new File(dirHelper, it.getName())).toPath())
}

def dirSkinInfo = file(new File(dir, "settings\\Data"))
dirSkinInfo.mkdirs()
def skinfo = file("settings\\Data")
skinfo.listFiles().each {
Files.copy(it.toPath(), (new File(dirSkinInfo, it.getName())).toPath())
}
dirSettings.mkdirs()
FileUtils.copyDirectory(settings, dirSettings)

def dirSkin = file(new File(dir, "skin"))
dirSkin.mkdirs()
def skins = file("skin")
skins.listFiles().each {
Files.copy(it.toPath(), (new File(dirSkin, it.getName())).toPath())
}

def dirLocalizations = file(new File(dir, "settings\\Localizations"))
dirLocalizations.mkdirs()
def localizations = file("settings\\Localizations")
localizations.listFiles().each {
Files.copy(it.toPath(), (new File(dirLocalizations, it.getName())).toPath())
}
FileUtils.copyDirectory(skins, dirSkin)
}
}

Expand All @@ -149,3 +121,10 @@ sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'settings'
}

compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = ["-Xinline-classes"]
}
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 02 21:43:01 CST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStoreBase=GRADLE_USER_HOME
2 changes: 1 addition & 1 deletion src/main/kotlin/rat/poison/RatPoison.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data class sWeapon(var tSkinID: Int, var tStatTrak: Int, var tWear: Float, var t
const val TITLE = "RatPoison"
const val BRANCH = "Master"
const val F_VERSION = "1.7"
const val M_VERSION = "1.7.1.3"
const val M_VERSION = "1.7.1.4"
var LOADED_CONFIG = "DEFAULT"

//const val EXPERIMENTAL = false
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/rat/poison/game/hooks/EntityIteration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fun constructEntities() = every(500, continuous = true) {
var dzMode = false

for (glowIndex in 0..glowObjectCount) {
val glowAddress = glowObject + (glowIndex * GLOW_OBJECT_SIZE)
val glowAddress = glowObject + (glowIndex * GLOW_OBJECT_SIZE) + 4
val entity = csgoEXE.uint(glowAddress)

if (entity > 0L) {
Expand All @@ -154,9 +154,9 @@ fun constructEntities() = every(500, continuous = true) {
}
}

val maxIndex = clientDLL.int(dwEntityList + 0x24) //Not right?
//val maxIndex = clientDLL.int(dwEntityList + 0x24) //Not right?

for (i in 64..maxIndex) {
for (i in 64..512) {
val entity = clientDLL.uint(dwEntityList + (i * 0x10) - 0x10)

if (entity != 0L) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/rat/poison/game/offsets/EngineOffsets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object EngineOffsets {
val dwModelPrecache by engineDLL(0x3, subtract = false)(0x0C, 0x3B, 0x81, 0[4], 0x75, 0x11, 0x8B, 0x45, 0x10, 0x83, 0xF8, 0x01, 0x7C, 0x09, 0x50, 0x83)

val dwGlobalVars by engineDLL(1)(0x68, 0[4], 0x68, 0[4], 0xFF, 0x50, 0x08, 0x85, 0xC0)
val dwViewAngles by engineDLL(4, subtract = false)(0xF3, 0x0F, 0x11, 0x80, 0[4], 0xD9, 0x46, 0x04, 0xD9, 0x05)
val dwViewAngles by engineDLL(4, subtract = false)(0xF3, 0x0F, 0x11, 0x80, 0[4], 0xF3, 0x0F, 0x10, 0x44, 0x24, 0x38)

val dwSignOnState by engineDLL(2, subtract = false)(0x83, 0xB8, 0[5], 0x0F, 0x94, 0xC0, 0xC3)
val dwbSendPackets = parseOffset()
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.7.1.3
1.7.1.4
master

0 comments on commit 5d5aea8

Please sign in to comment.