Skip to content

Commit

Permalink
W
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetchnoblade committed Apr 29, 2024
1 parent e5e0b8d commit 03bc145
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/aspw/client/Launch.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import net.aspw.client.features.module.impl.other.BrandSpoofer
import net.aspw.client.features.module.impl.other.ThunderNotifier
import net.aspw.client.features.module.impl.visual.Interface
import net.aspw.client.features.module.impl.visual.SilentRotations
import net.aspw.client.features.module.impl.visual.TargetESP
import net.aspw.client.features.module.impl.visual.Trajectories
import net.aspw.client.utils.*
import net.aspw.client.utils.misc.sound.TipSoundManager
Expand Down Expand Up @@ -100,6 +101,7 @@ object Launch {
moduleManager.getModule(Interface::class.java)?.state = true
moduleManager.getModule(SilentRotations::class.java)?.state = true
moduleManager.getModule(BrandSpoofer::class.java)?.state = true
moduleManager.getModule(TargetESP::class.java)?.state = true
moduleManager.getModule(net.aspw.client.features.module.impl.other.DiscordRPC::class.java)?.state = true
moduleManager.getModule(ThunderNotifier::class.java)?.state = true
moduleManager.getModule(Trajectories::class.java)?.state = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ class Scaffold : Module() {
Potion.moveSpeed
) && hypixelCount >= 6) && autoJumpValue.get().equals("hypixelkeepy", true)
) {
mc.thePlayer.motionX = 0.0
mc.thePlayer.motionZ = 0.0
mc.thePlayer.motionX *= 0.1
mc.thePlayer.motionZ *= 0.1
if (mc.thePlayer.posY >= launchY + 1 && mc.thePlayer.posY < launchY + 2) {
KeyBinding.onTick(mc.gameSettings.keyBindUseItem.keyCode)
hypixelCount++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package net.aspw.client.features.module.impl.visual

import net.aspw.client.event.AttackEvent
import net.aspw.client.event.EventTarget
import net.aspw.client.event.Render2DEvent
import net.aspw.client.event.Render3DEvent
import net.aspw.client.features.module.Module
import net.aspw.client.features.module.ModuleCategory
import net.aspw.client.features.module.ModuleInfo
import net.aspw.client.utils.EntityUtils
import net.minecraft.client.renderer.GlStateManager
import net.minecraft.entity.Entity
import org.lwjgl.opengl.GL11
Expand All @@ -14,6 +15,7 @@ import kotlin.math.sin

@ModuleInfo(name = "TargetESP", spacedName = "Target ESP", category = ModuleCategory.VISUAL)
class TargetESP : Module() {

var targets = mutableListOf<Entity?>()

override fun onDisable() {
Expand All @@ -22,21 +24,17 @@ class TargetESP : Module() {

@EventTarget
fun onAttack(event: AttackEvent) {
if (event.targetEntity !in targets) {
if (event.targetEntity !in targets && EntityUtils.isSelected(event.targetEntity, true))
targets.add(event.targetEntity)
chat("ADD " + event.targetEntity)
}
}

@EventTarget
fun onRender2D(event: Render2DEvent) {
fun onRender3D(event: Render3DEvent) {
if (targets.isEmpty()) return

for (target in targets) {
if (target?.isDead!!) {
chat("remove dead")
if (target?.isDead!!)
targets.remove(target)
}

if (6 >= mc.thePlayer.getDistanceToEntity(target)) {
GL11.glPushMatrix()
Expand Down Expand Up @@ -87,10 +85,7 @@ class TargetESP : Module() {

GlStateManager.resetColor()
GL11.glColor4f(1F, 1F, 1F, 1F)
} else {
chat("remove range")
targets.remove(target)
}
} else targets.remove(target)
}
}
}

0 comments on commit 03bc145

Please sign in to comment.