Skip to content

Commit

Permalink
i have commitment issues 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyaannn committed Nov 27, 2022
1 parent 964a6ed commit e2af289
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 595 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/lambda/client/module/Category.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ enum class Category(override val displayName: String) : DisplayEnum {
PLAYER("Player"),
RENDER("Render"),
EXPLOITS("Exploits"),
TUCOCLIENT("Random");
TUCOCLIENT("Tuco");
override fun toString() = displayName
}
46 changes: 46 additions & 0 deletions src/main/kotlin/com/lambda/client/module/modules/chat/AutoReply.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.lambda.client.module.modules.chat
import com.lambda.client.event.events.PacketEvent
import com.lambda.client.module.Category
import com.lambda.client.util.TickTimer
import com.lambda.client.util.TimeUnit
import com.lambda.client.util.text.MessageDetection
import com.lambda.client.util.text.MessageSendHelper
import com.lambda.client.util.text.MessageSendHelper.sendServerMessage
import com.lambda.client.util.threads.safeListener
import com.lambda.client.event.listener.listener
import net.minecraft.network.play.server.SPacketChat
import com.lambda.client.module.Module
import net.minecraftforge.fml.common.gameevent.TickEvent


object AutoReply : Module(
name = "AutoReply",
description = "Automatically reply to direct messages",
category = Category.CHAT
) {
private val customMessage by setting("Custom Message", false)
private val customText by setting("Custom Text", "unchanged", { customMessage })

private val timer = TickTimer(TimeUnit.SECONDS)
private const val defaultMessage = "Lambda+ on top!"

init {
listener<PacketEvent.Receive> {
if (it.packet is SPacketChat) {
val message = (it.packet as SPacketChat).chatComponent.unformattedText
if (MessageDetection.Direct.RECEIVE detect message) {
if (customMessage) {
if (!message.contains(customText)) sendServerMessage("/r $customText")
} else {
if (!message.contains(defaultMessage)) sendServerMessage("/r $defaultMessage")
}
}
}
}
safeListener<TickEvent.ClientTickEvent> {
if (timer.tick(5L) && customMessage && customText.equals("unchanged", true)) {
MessageSendHelper.sendWarningMessage("$chatName Warning: In order to use the custom $name, please change the CustomText setting in ClickGUI")
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,19 @@ object MenuShader : Module(
enabledByDefault = true
) {
private val mode by setting("Mode", Mode.SET)
private val shader by setting("Shader", ShaderEnum.CLOUDS, { mode == Mode.SET })
private val shader by setting("Shader", ShaderEnum.SUNSET, { mode == Mode.SET })

private enum class Mode {
RANDOM, SET
}

@Suppress("UNUSED")
private enum class ShaderEnum(val path: String) {
PY3sDream("/assets/shaders/menu/PY3's Dream.fsh"),
Germany("/assets/shaders/menu/germany.fsh"),
GERMANY("/assets/shaders/menu/germany.fsh"),
BLUEGRID("/assets/shaders/menu/bluegrid.fsh"),
BLUENEBULA("/assets/shaders/menu/bluenebula.fsh"),
BLUEVORTEX("/assets/shaders/menu/bluevortex.fsh"),
CAVE("/assets/shaders/menu/cave.fsh"),
CLOUDS("/assets/shaders/menu/clouds.fsh"),
DOUGHNUTS("/assets/shaders/menu/doughnuts.fsh"),
FIRE("/assets/shaders/menu/fire.fsh"),
JUPITER("/assets/shaders/menu/jupiter.fsh"),
Expand All @@ -48,7 +46,7 @@ object MenuShader : Module(
SPACE("/assets/shaders/menu/space.fsh"),
SPACE2("/assets/shaders/menu/space2.fsh"),
STORM("/assets/shaders/menu/storm.fsh"),
TRIANGLE("/assets/shaders/menu/triangle.fsh")
SUNSET("/assets/shaders/menu/triangle.fsh")

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object BedAura : Module(
private val suicideMode by setting("Suicide Mode", false)
private val hitDelay by setting("Hit Delay", 5, 1..10, 1, unit = " ticks")
private val hitDelayb by setting("Hit Delay Bypass", 0f, -100f..100f, 0.25f,unit = " ticks")

private val iticks by setting("Inactive Ticks", 5, 1..100, 1)
private val refillDelay by setting("Refill Delay", 2, 1..5, 1, unit = " ticks")
private val minDamage by setting("Min Damage", 10f, 1f..20f , 0.25f)
private val maxSelfDamage by setting("Max Self Damage", 4f, 1f..10f, 0.25f, { !suicideMode })
Expand All @@ -57,7 +57,7 @@ object BedAura : Module(
private var state = State.NONE
private var clickPos = BlockPos(0, -6969, 0)
private var lastRotation = Vec2f.ZERO
private var hitTickCount = -10
private var hitTickCount = 0
private var inactiveTicks = 0

private enum class State {
Expand Down Expand Up @@ -95,7 +95,7 @@ object BedAura : Module(
if (player.dimension == 0 || !CombatManager.isOnTopPriority(BedAura) || CombatSetting.pause) {
state = State.NONE
resetRotation()
inactiveTicks = 6
inactiveTicks = iticks
return@safeListener
}

Expand Down Expand Up @@ -197,7 +197,7 @@ object BedAura : Module(
private fun getExplodePos() = bedMap.values.firstOrNull()

private fun SafeClientEvent.preExplode(pos: BlockPos) {
hitTickCount = -10
hitTickCount = 0
preClick(pos, Vec3d(0.5, 0.0, 0.5))
state = State.EXPLODE
}
Expand Down
154 changes: 0 additions & 154 deletions src/main/resources/assets/shaders/menu/PY3's Dream.fsh

This file was deleted.

Loading

0 comments on commit e2af289

Please sign in to comment.