Skip to content

Commit

Permalink
Optimized and cleaned up cheat, added more settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jire committed Mar 8, 2017
1 parent 4dbaf70 commit f6307e4
Show file tree
Hide file tree
Showing 19 changed files with 296 additions and 159 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ build/
.idea/workspace.xml
.idea/tasks.xml
.idea/libraries
.idea/gradle.xml
.idea/gradle.xml

config/allatori/renaming-log.xml
4 changes: 2 additions & 2 deletions .idea/compiler.xml

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

8 changes: 3 additions & 5 deletions .idea/modules/overwatcheat_main.iml

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

8 changes: 3 additions & 5 deletions .idea/modules/overwatcheat_test.iml

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

44 changes: 41 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,63 @@ buildscript {

repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
}
}

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: "com.github.johnrengelman.shadow"

mainClassName = 'com.overwatcheat.Main'

sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6

repositories {
mavenCentral()
maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.1" }
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

compile group: 'org.bytedeco', name: 'javacv-platform', version: '1.3.1'

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

jar {
manifest {
attributes 'Main-Class': mainClassName
}
}

shadowJar {
baseName = 'overwatcheat-raw'
classifier = null
version = null
}

task allatori(type:Exec) {
commandLine 'java', '-jar', 'config/allatori/allatori.jar', 'config/allatori/config.xml'
}

task overwatcheat {
doLast {
println("Successfully built to build/libs/client.jar")
}
}

allatori.dependsOn shadowJar
allatori.mustRunAfter shadowJar

overwatcheat.dependsOn shadowJar
overwatcheat.dependsOn allatori

overwatcheat.mustRunAfter allatori
15 changes: 15 additions & 0 deletions overwatcheat.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# The virtual key code key which activates the aim bot when held
aim_key=1

# The speed of the aim, lower being slower, higher being faster
speed=4.0

# The minimum amount of milliseconds to sleep after each scan
sleep_min=2
# The maximum amount of milliseconds to sleep after each scan
sleep_max=20

# Calculates aim box width by dividing screen width by this value
box_width_divisor=6.0
# Calculates aim box height by dividing screen height by this value
box_height_divisor=3.5
52 changes: 0 additions & 52 deletions src/main/kotlin/com/overwatcheat/BufferedImageToRGB.kt

This file was deleted.

12 changes: 12 additions & 0 deletions src/main/kotlin/com/overwatcheat/Constants.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.overwatcheat

import com.overwatcheat.util.Screen

const val HP_BAR_COLOR = 0xFF_00_13
const val HP_BAR_COLOR_TOLERANCE = 2

const val X_OFFSET_1080p = 55
const val Y_OFFSET_1080p = 54

val X_OFFSET = Math.ceil(X_OFFSET_1080p * (Screen.WIDTH / 1920.0)).toInt()
val Y_OFFSET = Math.ceil(Y_OFFSET_1080p * (Screen.HEIGHT / 1080.0)).toInt()
16 changes: 0 additions & 16 deletions src/main/kotlin/com/overwatcheat/Keyboard.kt

This file was deleted.

8 changes: 0 additions & 8 deletions src/main/kotlin/com/overwatcheat/Mouse.kt

This file was deleted.

Loading

0 comments on commit f6307e4

Please sign in to comment.