<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Kotlin] TargetStrafe with circle]]></title><description><![CDATA[<p dir="auto">sexy targetstrafe with sexy circle wow<br />
.killaura strafe silent</p>
<pre><code>package net.ccbluex.liquidbounce.features.module.modules.movement

import net.ccbluex.liquidbounce.LiquidBounce
import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.MoveEvent
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.combat.KillAura
import net.ccbluex.liquidbounce.utils.RotationUtils
import net.ccbluex.liquidbounce.value.BoolValue
import net.ccbluex.liquidbounce.value.FloatValue
import net.ccbluex.liquidbounce.value.ListValue
import net.minecraft.entity.Entity
import net.minecraft.util.AxisAlignedBB
import org.lwjgl.opengl.GL11
import java.awt.Color
import kotlin.math.cos
import kotlin.math.sin


@ModuleInfo(name = "TargetStrafe", description = "TargetStrafe", category = ModuleCategory.MOVEMENT)
class TargetStrafe : Module() {

    private val render = BoolValue("Render", true)
    private val radiusValue = FloatValue("radius", 0.5f, 0.1f, 5.0f)
    private val modeValue = ListValue("KeyMode", arrayOf("Jump", "None"), "None")
    private val radiusMode = ListValue("radiusMode", arrayOf("TrueRadius", "Simple"), "Simple")
    private val killAura = LiquidBounce.moduleManager.getModule(KillAura::class.java) as KillAura
    private val speed = LiquidBounce.moduleManager.getModule(Speed::class.java) as Speed
    private val fly = LiquidBounce.moduleManager.getModule(Fly::class.java) as Fly

    var consts = 0
    var lastDist = 0.0

    fun onMove(event: MoveEvent) {
        val xDist = event.x
        val zDist = event.z
        lastDist = Math.sqrt(xDist * xDist + zDist * zDist)
    }
    @EventTarget
    fun movestrafe(event: MoveEvent) {
        onMove(event)

        if (!isVoid(0, 0) &amp;&amp; canStrafe) {
            val strafe = RotationUtils.getRotations(killAura.target)
            setSpeed(event, lastDist, strafe.yaw, radiusValue.get(), 1.0)
        }

    }

    val keyMode: Boolean
        get() = when (modeValue.get().toLowerCase()) {
            "jump" -&gt; mc.gameSettings.keyBindJump.isKeyDown
            "none" -&gt; mc.thePlayer.movementInput.moveStrafe == 0f || mc.thePlayer.movementInput.moveForward == 0f
            else -&gt; false
        }

    val canStrafe: Boolean
        get() = (killAura.state &amp;&amp; (speed.state || fly.state) &amp;&amp; killAura.target != null &amp;&amp; !mc.thePlayer.isSneaking
                &amp;&amp; keyMode)

    val cansize: Float
        get() = when {
            radiusMode.get().toLowerCase() == "simple" -&gt;
                45f / mc.thePlayer.getDistance(killAura.target!!.posX, mc.thePlayer.posY, killAura.target!!.posZ).toFloat()
            else -&gt; 45f
        }
    val Enemydistance: Double
        get() = mc.thePlayer.getDistance(killAura.target!!.posX, mc.thePlayer.posY, killAura.target!!.posZ)

    val algorithm: Float
        get() = Math.max(Enemydistance - radiusValue.get(), Enemydistance - (Enemydistance - radiusValue.get() / (radiusValue.get() * 2))).toFloat()



    fun setSpeed(
        moveEvent: MoveEvent, moveSpeed: Double, pseudoYaw: Float, pseudoStrafe: Float,
        pseudoForward: Double
    ) {
        var yaw = pseudoYaw
        var forward = pseudoForward
        var strafe = pseudoStrafe
        var strafe2 = 0f

        check()

        when {
            modeValue.get().toLowerCase().equals("jump") -&gt;
                strafe = (pseudoStrafe * 0.98 * consts).toFloat()
            modeValue.get().toLowerCase().equals("none") -&gt;
                strafe = consts.toFloat()
        }

        if (forward != 0.0) {
            if (strafe &gt; 0.0) {
                if (radiusMode.get().toLowerCase() == "trueradius")
                    yaw += (if (forward &gt; 0.0) -cansize else cansize)
                strafe2 += (if (forward &gt; 0.0) -45 / algorithm else 45 / algorithm)
            } else if (strafe &lt; 0.0) {
                if (radiusMode.get().toLowerCase() == "trueradius")
                    yaw += (if (forward &gt; 0.0) cansize else -cansize)
                strafe2 += (if (forward &gt; 0.0) 45 / algorithm else -45 / algorithm)
            }
            strafe = 0.0f
            if (forward &gt; 0.0)
                forward = 1.0
            else if (forward &lt; 0.0)
                forward = -1.0

        }
        if (strafe &gt; 0.0)
            strafe = 1.0f
        else if (strafe &lt; 0.0)
            strafe = -1.0f


        val mx = Math.cos(Math.toRadians(yaw + 90.0 + strafe2))
        val mz = Math.sin(Math.toRadians(yaw + 90.0 + strafe2))
        moveEvent.x = forward * moveSpeed * mx + strafe * moveSpeed * mz
        moveEvent.z = forward * moveSpeed * mz - strafe * moveSpeed * mx
    }

    private fun check() {
        if (mc.thePlayer.isCollidedHorizontally || checkVoid()) {
            if (consts &lt; 2) consts += 1
            else {
                consts = -1
            }
        }
        when (consts) {
            0 -&gt; {
                consts = 1
            }
            2 -&gt; {
                consts = -1
            }
        }
    }

    private fun checkVoid(): Boolean {
        for (x in -1..0) {
            for (z in -1..0) {
                if (isVoid(x, z)) {
                    return true
                }
            }
        }
        return false
    }


    private fun isVoid(X: Int, Z: Int): Boolean {
        val fly = LiquidBounce.moduleManager.getModule(Fly::class.java) as Fly
        if (fly.state) {
            return false
        }
        if (mc.thePlayer.posY &lt; 0.0) {
            return true
        }
        var off = 0
        while (off &lt; mc.thePlayer.posY.toInt() + 2) {
            val bb: AxisAlignedBB = mc.thePlayer.entityBoundingBox.offset(X.toDouble(), (-off).toDouble(), Z.toDouble())
            if (mc.theWorld!!.getCollidingBoundingBoxes(mc.thePlayer as Entity, bb).isEmpty()) {
                off += 2
                continue
            }
            return false
            off += 2
        }
        return true
    }

    @EventTarget
    fun onRender3D(event: Render3DEvent) {
        val target = (LiquidBounce.moduleManager[KillAura::class.java] as KillAura).target
        if (render.get()) {
            target?:return
            GL11.glPushMatrix()
            GL11.glDisable(3553)
            GL11.glEnable(2848)
            GL11.glEnable(2881)
            GL11.glEnable(2832)
            GL11.glEnable(3042)
            GL11.glBlendFunc(770, 771)
            GL11.glHint(3154, 4354)
            GL11.glHint(3155, 4354)
            GL11.glHint(3153, 4354)
            GL11.glDisable(2929)
            GL11.glDepthMask(false)
            GL11.glLineWidth(5.0f)

            GL11.glBegin(3)
            val x = target.lastTickPosX + (target.posX - target.lastTickPosX) * event.partialTicks - mc.renderManager.viewerPosX
            val y = target.lastTickPosY + (target.posY - target.lastTickPosY) * event.partialTicks - mc.renderManager.viewerPosY
            val z = target.lastTickPosZ + (target.posZ - target.lastTickPosZ) * event.partialTicks - mc.renderManager.viewerPosZ
            for (i in 0..360) {
                GL11.glColor3f( 200.0f, 0.0f,   0.0f)
                GL11.glVertex3d(x + radiusValue.get() * cos(i.toDouble() * 6.283185307179586 /13), y, z + radiusValue.get()* sin(i.toDouble() * 6.283185307179586 / 13.0))
            }
            GL11.glEnd()

            GL11.glDepthMask(true)
            GL11.glEnable(2929)
            GL11.glDisable(2848)
            GL11.glDisable(2881)
            GL11.glEnable(2832)
            GL11.glEnable(3553)
            GL11.glPopMatrix()
        }
    }

}
</code></pre>
]]></description><link>https://forum.liquidbounce.net/topic/2558/kotlin-targetstrafe-with-circle</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 00:32:23 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/2558.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Jul 2021 19:04:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Sat, 03 Jul 2021 08:57:22 GMT]]></title><description><![CDATA[<p dir="auto">its sad <img src="https://forum.liquidbounce.net/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=866ab33d74c" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://forum.liquidbounce.net/post/19961</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19961</guid><dc:creator><![CDATA[BobikHatar]]></dc:creator><pubDate>Sat, 03 Jul 2021 08:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Sat, 03 Jul 2021 06:10:02 GMT]]></title><description><![CDATA[<p dir="auto">@божественная-кара its not funny</p>
]]></description><link>https://forum.liquidbounce.net/post/19959</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19959</guid><dc:creator><![CDATA[6Sence]]></dc:creator><pubDate>Sat, 03 Jul 2021 06:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:28:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plumer-man" aria-label="Profile: plumer-man">@<bdi>plumer-man</bdi></a> <a href="https://en.wikipedia.org/wiki/OK" target="_blank" rel="noopener noreferrer nofollow ugc">https://en.wikipedia.org/wiki/OK</a></p>
]]></description><link>https://forum.liquidbounce.net/post/19951</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19951</guid><dc:creator><![CDATA[BobikHatar]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:27:08 GMT]]></title><description><![CDATA[<p dir="auto">@божественная-кара <a href="https://en.wikipedia.org/wiki/I_Know" target="_blank" rel="noopener noreferrer nofollow ugc">https://en.wikipedia.org/wiki/I_Know</a></p>
]]></description><link>https://forum.liquidbounce.net/post/19950</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19950</guid><dc:creator><![CDATA[Plumer Man]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:27:08 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:26:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/plumer-man" aria-label="Profile: plumer-man">@<bdi>plumer-man</bdi></a> <a href="https://en.wikipedia.org/wiki/Joke" target="_blank" rel="noopener noreferrer nofollow ugc">https://en.wikipedia.org/wiki/Joke</a></p>
]]></description><link>https://forum.liquidbounce.net/post/19949</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19949</guid><dc:creator><![CDATA[BobikHatar]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:26:16 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:24:14 GMT]]></title><description><![CDATA[<p dir="auto">@божественная-кара 100% no copy + paste</p>
<p dir="auto"><a href="https://github.com/Project-EZ4H/FDPClient/blob/master/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/TargetStrafe.kt" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Project-EZ4H/FDPClient/blob/master/src/main/java/net/ccbluex/liquidbounce/features/module/modules/movement/TargetStrafe.kt</a></p>
<p dir="auto"><img src="/assets/uploads/files/1625253842636-c8de1e7d-ff2e-4407-92d2-dbfdfa073a71-image.png" alt="c8de1e7d-ff2e-4407-92d2-dbfdfa073a71-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1625253852361-2b649a36-a100-4b20-beb3-50888d520fe7-image.png" alt="2b649a36-a100-4b20-beb3-50888d520fe7-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.liquidbounce.net/post/19948</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19948</guid><dc:creator><![CDATA[Plumer Man]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:10:39 GMT]]></title><description><![CDATA[<p dir="auto">@mems lol yesyes its my</p>
]]></description><link>https://forum.liquidbounce.net/post/19947</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19947</guid><dc:creator><![CDATA[BobikHatar]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:10:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Kotlin] TargetStrafe with circle on Fri, 02 Jul 2021 19:09:49 GMT]]></title><description><![CDATA[<p dir="auto">@божественная-кара is it yours? holy smokes dude how did you code that</p>
]]></description><link>https://forum.liquidbounce.net/post/19946</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/19946</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:09:49 GMT</pubDate></item></channel></rss>