Skip to content

Commit

Permalink
Update 1.35
Browse files Browse the repository at this point in the history
AACTP add FindPathMode
Fix AACTP
Update Renderer
You can use javascript add PlayerModels in Renderer
  • Loading branch information
RMCQAZ committed Sep 29, 2021
1 parent 2d847e7 commit dea67c9
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 22 deletions.
2 changes: 2 additions & 0 deletions src/minecraft/kevin/file/FileManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class FileManager extends MinecraftInstance {
public final File serverIconsDir = new File(dir,"ServerIcons");
public final File configsDir = new File(dir,"Configs");
public final File killMessages = new File(dir,"KillMessages");
public final File playerModels = new File(dir,"PlayerModels");
public final FileConfig modulesConfig = new ModulesConfig(new File(dir, "modules.json"));
public final FileConfig hudConfig = new HudConfig(new File(dir, "hud.json"));
public final File altsFile = new File(dir,"accounts.json");
Expand All @@ -33,6 +34,7 @@ public void load(){
if (!serverIconsDir.exists()) serverIconsDir.mkdir();
if (!configsDir.exists()) configsDir.mkdir();
if (!killMessages.exists()) killMessages.mkdir();
if (!playerModels.exists()) playerModels.mkdir();
}

public void saveConfig(final FileConfig config) {
Expand Down
6 changes: 4 additions & 2 deletions src/minecraft/kevin/main/KevinClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import kevin.hud.HUD.Companion.createDefault
import kevin.module.ModuleManager
import kevin.module.modules.render.ClickGui.ClickGUI
import kevin.module.modules.render.ClickGui.NewClickGui
import kevin.module.modules.render.Renderer
import kevin.skin.SkinManager
import kevin.utils.CombatManager
import kevin.utils.FontManager
import org.lwjgl.opengl.Display

object KevinClient {
var name = "Kevin"
var version = "b1.31"
var version = "b1.35"

lateinit var moduleManager: ModuleManager
lateinit var fileManager: FileManager
Expand All @@ -42,11 +43,12 @@ object KevinClient {
fontManager = FontManager()
fontManager.loadFonts()
Display.setTitle("$name $version | Minecraft 1.8.9")
fileManager.load()
Renderer.load()
moduleManager.load()
fileManager.loadConfig(fileManager.modulesConfig)
hud = createDefault()
fileManager.loadConfig(fileManager.hudConfig)
fileManager.load()
commandManager.load()
clickGUI = ClickGUI()
newClickGui = NewClickGui()
Expand Down
3 changes: 2 additions & 1 deletion src/minecraft/kevin/module/modules/combat/KillAura.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package kevin.module.modules.combat
import kevin.event.*
import kevin.main.KevinClient
import kevin.module.*
import kevin.module.modules.exploit.TP
import kevin.module.modules.misc.Teams
import kevin.utils.*
import net.minecraft.client.gui.inventory.GuiContainer
Expand Down Expand Up @@ -676,7 +677,7 @@ class KillAura : Module("KillAura","Automatically attacks targets around you.",
*/
private val cancelRun: Boolean
inline get() = mc.thePlayer!!.isSpectator || !isAlive(mc.thePlayer!!)
|| KevinClient.moduleManager.getModule("Blink")!!.getToggle() || KevinClient.moduleManager.getModule("FreeCam")!!.getToggle()
|| KevinClient.moduleManager.getModule("Blink")!!.getToggle() || KevinClient.moduleManager.getModule("FreeCam")!!.getToggle() || (KevinClient.moduleManager.getModule("TP")!!.getToggle()&&(KevinClient.moduleManager.getModule("TP") as TP).mode.get().equals("AAC",true))

/**
* Check if [entity] is alive
Expand Down
27 changes: 19 additions & 8 deletions src/minecraft/kevin/module/modules/exploit/TP.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import kevin.module.modules.misc.Teams
import kevin.utils.BlockUtils
import kevin.utils.ChatUtils
import kevin.utils.MovementUtils
import kevin.utils.PathUtils
import net.minecraft.client.entity.EntityOtherPlayerMP
import net.minecraft.init.Blocks
import net.minecraft.network.play.client.C03PacketPlayer
Expand All @@ -23,12 +24,13 @@ import kotlin.math.max
import kotlin.math.min

class TP : Module("TP","Allows you to teleport around.",category = ModuleCategory.EXPLOIT) {
private val mode = ListValue("Mode", arrayOf("Flag","AAC"),"Flag")
val mode = ListValue("Mode", arrayOf("Flag","AAC"),"Flag")
private val keepTick = IntegerValue("FlagKeepTick",40,10,60)
private val autoBedFind = BooleanValue("AutoBedFind",false)
private val bedFindRange = IntegerValue("BedFindRange",6,2,6)

private val aacFlySpeedValue = FloatValue("Speed", 0.8f, 0.1f, 2f)
private val aacPathFindMode = ListValue("AACPathFindMode", arrayOf("Direct","FindPath"),"Direct")
private var fakePlayer: EntityOtherPlayerMP? = null
private var flagTPState = 0
private var playerPos = Vec3(.0,.0,.0)
Expand Down Expand Up @@ -71,17 +73,26 @@ class TP : Module("TP","Allows you to teleport around.",category = ModuleCategor
thePlayer.motionZ = 0.0

//Do teleport
val packets = (mc.thePlayer.getDistance(playerPos.xCoord,playerPos.yCoord,playerPos.zCoord).toInt() / 10) + 1
val packetY = arrayOf(1.1,1.1,1.2,1.2,.8,.8,.4,.0,.0,1.1,1.1)
repeat(11){
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(playerPos.xCoord,playerPos.yCoord+packetY[it],playerPos.zCoord,true))
}

val xV = ((thePlayer.posX - playerPos.xCoord)) / packets.toDouble()
val yV = ((thePlayer.posY - playerPos.yCoord)) / packets.toDouble()
val zV = ((thePlayer.posZ - playerPos.zCoord)) / packets.toDouble()
repeat(packets){
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(playerPos.xCoord+xV*(it+1),playerPos.yCoord+yV*(it+1),playerPos.zCoord+zV*(it+1),true))
when(aacPathFindMode.get()){
"Direct" -> {
val packets = (mc.thePlayer.getDistance(playerPos.xCoord,playerPos.yCoord,playerPos.zCoord).toInt() / 10) + 1
val xV = ((thePlayer.posX - playerPos.xCoord)) / packets.toDouble()
val yV = ((thePlayer.posY - playerPos.yCoord)) / packets.toDouble()
val zV = ((thePlayer.posZ - playerPos.zCoord)) / packets.toDouble()
repeat(packets){
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(playerPos.xCoord+xV*(it+1),playerPos.yCoord+yV*(it+1),playerPos.zCoord+zV*(it+1),true))
}
}
"FindPath" -> {
val path = PathUtils.findBlinkPath2(playerPos.xCoord,playerPos.yCoord,playerPos.zCoord,thePlayer.posX,thePlayer.posY,thePlayer.posZ,thePlayer.getDistance(playerPos.xCoord,playerPos.yCoord,playerPos.zCoord) % 10.0)
path.forEach {
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(it.xCoord,it.yCoord,it.zCoord,true))
}
}
}
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(thePlayer.posX,thePlayer.posY-1,thePlayer.posZ,true))
mc.netHandler.addToSendQueue(C03PacketPlayer.C04PacketPlayerPosition(playerPos.xCoord,playerPos.yCoord,playerPos.zCoord,true))
Expand Down
Loading

0 comments on commit dea67c9

Please sign in to comment.