Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Fixed aim assist and massively improved defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Jire committed Jul 27, 2016
1 parent e257bca commit e8c5c9f
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/main/kotlin/org/abendigo/plugin/csgo/AimAssistPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ object AimAssistPlugin : InGamePlugin("Aim Assist", duration = 8) {
override val author = "Jire"
override val description = "Assists your aim"

private const val SMOOTHING_MIN = 5F
private const val SMOOTHING_MAX = 8.5F
private const val SMOOTHING_MIN = 7F
private const val SMOOTHING_MAX = 9F

private const val MIN_ELAPSED = 75
private const val MAX_ELAPSED = 300

private val TARGET_BONES = arrayOf(Bones.NECK, Bones.HEAD)
private const val CHANGE_BONE_CHANCE = 18
private val TARGET_BONES = arrayOf(Bones.HEAD, Bones.HEAD, Bones.HEAD, Bones.HEAD, Bones.NECK)
private const val CHANGE_BONE_CHANCE = 30

private const val RESET_TARGET_CHANCE = 13

Expand All @@ -38,7 +38,7 @@ object AimAssistPlugin : InGamePlugin("Aim Assist", duration = 8) {

try {
val weapon = (+Me().weapon).type!!
if (!weapon.automatic) return
if (!weapon.pistol && !weapon.automatic && !weapon.shotgun) return
} catch (t: Throwable) {
if (DEBUG) t.printStackTrace()
}
Expand All @@ -48,12 +48,8 @@ object AimAssistPlugin : InGamePlugin("Aim Assist", duration = 8) {
if (targetAddress <= 0) return

val targetIndex = csgo.get<Int>(targetAddress + m_dwIndex) - 1
try {
target = Client.enemies[targetIndex]!!
} catch (t: Throwable) {
if (DEBUG) t.printStackTrace()
return
}
if (!Client.enemies.containsKey(targetIndex)) return
target = Client.enemies[targetIndex]!!
}

if (+Me().dead || +target!!.dead || !+target!!.spotted) {
Expand Down

0 comments on commit e8c5c9f

Please sign in to comment.