Skip to content

Commit

Permalink
FastUse Grim / NCP
Browse files Browse the repository at this point in the history
AutoRole Module
Removed bad notifications styles
opZywl committed Jan 15, 2024
1 parent acb63be commit 2077e25
Showing 39 changed files with 280 additions and 265 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/ccbluex/liquidbounce/FDPClient.kt
Original file line number Diff line number Diff line change
@@ -14,10 +14,10 @@ import net.ccbluex.liquidbounce.features.module.ModuleManager
import net.ccbluex.liquidbounce.config.FileManager
import net.ccbluex.liquidbounce.config.core.ConfigManager
import net.ccbluex.liquidbounce.handler.combat.CombatManager
import net.ccbluex.liquidbounce.handler.discord.DiscordRPC
import net.ccbluex.liquidbounce.features.special.discord.DiscordRPC
import net.ccbluex.liquidbounce.handler.network.BungeeCordSpoof
import net.ccbluex.liquidbounce.handler.network.ClientFixes
import net.ccbluex.liquidbounce.handler.network.ClientSpoofHandler
import net.ccbluex.liquidbounce.features.special.spoof.ClientSpoofHandler
import net.ccbluex.liquidbounce.ui.client.gui.EnumLaunchFilter
import net.ccbluex.liquidbounce.ui.client.gui.LaunchFilterInfo
import net.ccbluex.liquidbounce.ui.client.gui.LaunchOption
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ package net.ccbluex.liquidbounce.features.module.modules.client
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.features.module.ModuleCategory
import net.ccbluex.liquidbounce.features.module.ModuleInfo
import net.ccbluex.liquidbounce.handler.discord.DiscordRPC
import net.ccbluex.liquidbounce.features.special.discord.DiscordRPC
import net.ccbluex.liquidbounce.value.*

@ModuleInfo(name = "DiscordRPC", category = ModuleCategory.CLIENT)
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ import net.ccbluex.liquidbounce.value.BoolValue
@ModuleInfo(name = "Target", category = ModuleCategory.CLIENT, canEnable = false)
object Target : Module() {
val playerValue = BoolValue("Player", true)
val animalValue = BoolValue("Animal", false)
val animalValue = BoolValue("Animal", true)
val mobValue = BoolValue("Mob", true)
val invisibleValue = BoolValue("Invisible", false)
val deadValue = BoolValue("Dead", false)
val invisibleValue = BoolValue("Invisible", true)
val deadValue = BoolValue("Dead", true)
override fun handleEvents() = true
}
Original file line number Diff line number Diff line change
@@ -278,7 +278,6 @@ object KillAura : Module() {

private val displayMode = ListValue("DisplayMode", arrayOf("Simple", "LessSimple", "Complicated"), "Simple")


/**
* MODULE
*/
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* FDPClient Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge by LiquidBounce.
* https://github.com/SkidderMC/FDPClient/
*/
package net.ccbluex.liquidbounce.features.module.modules.combat.velocitys

import net.ccbluex.liquidbounce.FDPClient
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@ import net.minecraft.util.EnumFacing

class Grim117 : VelocityMode("Grim1.17") {

private var velocityInput = false
override fun onPacket(event: PacketEvent) {
mc.netHandler.addToSendQueue(
C03PacketPlayer.C06PacketPlayerPosLook(
@@ -30,7 +29,6 @@ class Grim117 : VelocityMode("Grim1.17") {
C07PacketPlayerDigging.Action.STOP_DESTROY_BLOCK,mc.thePlayer.position,
EnumFacing.DOWN)
)
velocityInput = false
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* ZAVZ Hacked Client
*/
package net.ccbluex.liquidbounce.features.module.modules.player;

import net.ccbluex.liquidbounce.FDPClient;
import net.ccbluex.liquidbounce.config.impl.FriendsConfig;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.UpdateEvent;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.utils.render.ColorUtils;
import net.ccbluex.liquidbounce.value.BoolValue;
import net.minecraft.scoreboard.ScorePlayerTeam;

import java.util.Arrays;

@ModuleInfo(name = "AutoRole", category = ModuleCategory.PLAYER)
public class AutoRole extends Module {

private final BoolValue formattingValue = new BoolValue("Formatting", true);

private static final String[] STAFF_PREFIXES = {
"[Moderador] ",
"[MODERADOR] ",
"[Mod] ",
"[MOD] ",
"[Administrador] ",
"[ADMINISTRADOR] ",
"[Admin] ",
"[ADMIN] ",
"[Coordenador] ",
"[COORDENADOR] ",
"[Coord] ",
"[COORD] ",
"[Gerente] ",
"[GERENTE] ",
"[CEO] ",
"[Dono] ",
"[DONO] ",
"[DIRETOR] ",
"[DEV] ",
"[Dev] ",
"Diretor ",
"DIRETOR ",
"Dev ",
"DEV ",
"Mod ",
"MOD ",
"[Master] ",
"[MASTER] ",
"[CEO] ",
"[TRIAL] "
};

private boolean isStaff(final String prefix) {
return Arrays.asList(STAFF_PREFIXES).contains(ColorUtils.stripColor(prefix));
}

@EventTarget
public void handle(final UpdateEvent event) {
final FriendsConfig friendManager = FDPClient.fileManager.getFriendsConfig();

String[] formatCodes = {"§k", "§l", "§m", "§n", "§o"};
int currentFormatIndex = 0;

for (final ScorePlayerTeam team : mc.theWorld.getScoreboard().getTeams()) {
if (this.isStaff(team.getColorPrefix())) {
for (final String member : team.getMembershipCollection()) {
if (!friendManager.isFriend(member)) {
friendManager.addFriend(member);

String colorPrefix = team.getColorPrefix();
if (formattingValue.get() && currentFormatIndex < formatCodes.length) {
colorPrefix = formatCodes[currentFormatIndex] + colorPrefix;
currentFormatIndex++;
if (currentFormatIndex >= formatCodes.length) {
currentFormatIndex = 0;
}
}

chat("§7[§d!§7]§7 ADICIONADO: " + colorPrefix + member);
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ import net.minecraft.network.play.client.C03PacketPlayer
@ModuleInfo(name = "FastUse", category = ModuleCategory.PLAYER)
object FastUse : Module() {

private val modeValue = ListValue("Mode", arrayOf("NCP","Instant", "Timer", "CustomDelay", "DelayedInstant", "MinemoraTest", "AAC", "NewAAC","Medusa","Matrix","Fast"), "DelayedInstant")
private val modeValue = ListValue("Mode", arrayOf("NCP", "NCP2", "Instant", "Timer", "CustomDelay", "DelayedInstant", "MinemoraTest", "AAC", "NewAAC","Medusa","Matrix","Fast", "Grim"), "DelayedInstant")
private val timerValue = FloatValue("Timer", 1.22F, 0.1F, 2.0F).displayable { modeValue.equals("Timer") }
private val durationValue = IntegerValue("InstantDelay", 14, 0, 35).displayable { modeValue.equals("DelayedInstant") }
private val delayValue = IntegerValue("CustomDelay", 0, 0, 300).displayable { modeValue.equals("CustomDelay") }
@@ -116,7 +116,13 @@ object FastUse : Module() {

stopUsing()
}
"ncp2" -> if (mc.thePlayer.itemInUseDuration > 14) {
repeat(20) {
mc.netHandler.addToSendQueue(C03PacketPlayer(mc.thePlayer.onGround))
}

mc.playerController.onStoppedUsingItem(mc.thePlayer)
}
"instant" -> {
send(35)

@@ -129,6 +135,13 @@ object FastUse : Module() {
send(23)
}
}
"grim" -> {
mc.timer.timerSpeed = 0.3F
usedTimer = true
repeat(34) {
mc.netHandler.addToSendQueue(C03PacketPlayer(mc.thePlayer.onGround))
}
}
"newaac" -> {
mc.timer.timerSpeed = 0.49F
usedTimer = true
Original file line number Diff line number Diff line change
@@ -5,13 +5,24 @@
*/
package net.ccbluex.liquidbounce.features.module.modules.visual

import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.Render2DEvent
import net.ccbluex.liquidbounce.event.Render3DEvent
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.features.module.ModuleCategory
import net.ccbluex.liquidbounce.features.module.ModuleInfo
import net.ccbluex.liquidbounce.features.module.modules.player.ChestAura
import net.ccbluex.liquidbounce.utils.render.RenderUtils
import net.ccbluex.liquidbounce.utils.render.shader.shaders.GlowShader
import net.ccbluex.liquidbounce.utils.render.shader.shaders.OutlineShader
import net.ccbluex.liquidbounce.value.BoolValue
import net.ccbluex.liquidbounce.value.FloatValue
import net.ccbluex.liquidbounce.value.IntegerValue
import net.ccbluex.liquidbounce.value.ListValue
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher
import net.minecraft.tileentity.*
import org.lwjgl.opengl.GL11
import java.awt.Color

@ModuleInfo(name = "Chams", category = ModuleCategory.VISUAL)
object Chams : Module() {
@@ -31,4 +42,97 @@ object Chams : Module() {
val alphaValue = IntegerValue("Alpha", 255, 0, 255).displayable { legacyMode.get() }
val saturationValue = FloatValue("Saturation", 1F, 0F, 1F).displayable { legacyMode.get() && colorModeValue.equals("Slowly") }
val brightnessValue = FloatValue("Brightness", 1F, 0F, 1F).displayable { legacyMode.get() && colorModeValue.equals("Slowly") }

private val storageESP = BoolValue("StorageESP", false)
private val modeValue = ListValue("Storage-Mode", arrayOf("Box", "OtherBox", "Outline", "ShaderOutline", "ShaderGlow", "2D", "WireFrame"), "Outline").displayable { storageESP.get() }
private val outlineWidthValue = FloatValue("Outline-Width", 3f, 0.5f, 5f).displayable { modeValue.equals("Outline") }
private val chestValue = BoolValue("Chest", false).displayable { storageESP.get() }
private val enderChestValue = BoolValue("EnderChest", false).displayable { storageESP.get() }
private val furnaceValue = BoolValue("Furnace", false).displayable { storageESP.get() }
private val dispenserValue = BoolValue("Dispenser", false).displayable { storageESP.get() }
private val hopperValue = BoolValue("Hopper", false).displayable { storageESP.get() }

private fun getColor(tileEntity: TileEntity): Color? {
if (chestValue.get() && tileEntity is TileEntityChest && !ChestAura.clickedBlocks.contains(tileEntity.getPos())) return Color(0, 66, 255)
if (enderChestValue.get() && tileEntity is TileEntityEnderChest && !ChestAura.clickedBlocks.contains(tileEntity.getPos())) return Color.MAGENTA
if (furnaceValue.get() && tileEntity is TileEntityFurnace) return Color.BLACK
if (dispenserValue.get() && tileEntity is TileEntityDispenser) return Color.BLACK
if (hopperValue.get() && tileEntity is TileEntityHopper) return Color.GRAY

return null
}

@EventTarget
fun onRender3D(event: Render3DEvent) {
try {
val mode = modeValue.get()
val gamma = mc.gameSettings.gammaSetting
mc.gameSettings.gammaSetting = 100000.0f

for (tileEntity in mc.theWorld.loadedTileEntityList) {
val color = getColor(tileEntity) ?: continue
when (mode.lowercase()) {
"otherbox", "box" -> RenderUtils.drawBlockBox(tileEntity.pos, color, !mode.equals("otherbox", ignoreCase = true), true, outlineWidthValue.get())

"2d" -> RenderUtils.draw2D(tileEntity.pos, color.rgb, Color.BLACK.rgb)

"outline" -> RenderUtils.drawBlockBox(tileEntity.pos, color, true, false, outlineWidthValue.get())

"wireframe" -> {
GL11.glPushMatrix()
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS)
GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE)
GL11.glDisable(GL11.GL_TEXTURE_2D)
GL11.glDisable(GL11.GL_LIGHTING)
GL11.glDisable(GL11.GL_DEPTH_TEST)
GL11.glEnable(GL11.GL_LINE_SMOOTH)
GL11.glEnable(GL11.GL_BLEND)
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA)
RenderUtils.glColor(color)
GL11.glLineWidth(1.5f)
TileEntityRendererDispatcher.instance.renderTileEntity(tileEntity, event.partialTicks, -1)
GL11.glPopAttrib()
GL11.glPopMatrix()
}
}
}

GL11.glColor4f(1F, 1F, 1F, 1F)
mc.gameSettings.gammaSetting = gamma
} catch (e: Exception) {
e.printStackTrace()
}
}

@EventTarget
fun onRender2D(event: Render2DEvent) {
val mode = modeValue.get()
val renderManager = mc.renderManager
val partialTicks = event.partialTicks
val shader = when (mode) {
"shaderoutline" -> OutlineShader.OUTLINE_SHADER
"shaderglow" -> GlowShader.GLOW_SHADER
else -> return
}

val entityMap: MutableMap<Color, ArrayList<TileEntity>> = HashMap()

// search
for (tileEntity in mc.theWorld.loadedTileEntityList) {
val color = getColor(tileEntity) ?: continue
if (!entityMap.containsKey(color)) {
entityMap[color] = ArrayList()
}
entityMap[color]!!.add(tileEntity)
}

// draw
for ((key, value) in entityMap) {
shader.startDraw(partialTicks)
for (tileEntity in value) {
TileEntityRendererDispatcher.instance.renderTileEntityAt(tileEntity, tileEntity.pos.x - renderManager.renderPosX, tileEntity.pos.y - renderManager.renderPosY, tileEntity.pos.z - renderManager.renderPosZ, partialTicks)
}
shader.stopDraw(key, if (mode.equals("shaderglow", ignoreCase = true)) 2.5f else 1.5f, 1f)
}
}
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import net.ccbluex.liquidbounce.value.BoolValue
import org.lwjgl.input.Keyboard
import org.lwjgl.opengl.Display

@ModuleInfo(name = "FreeLook", description = "", category = ModuleCategory.VISUAL, keyBind = Keyboard.KEY_LSHIFT, triggerType = EnumTriggerType.PRESS)
@ModuleInfo(name = "FreeLook", description = "", category = ModuleCategory.VISUAL, keyBind = Keyboard.KEY_Z, triggerType = EnumTriggerType.PRESS)
class FreeLook : Module() {
private val thirdPerson = BoolValue("ThirdPerson", true)
val reverse = BoolValue("Reverse", false)
Loading

1 comment on commit 2077e25

@z7087
Copy link
Contributor

@z7087 z7087 commented on 2077e25 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grim fastuse?

Please sign in to comment.