无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網 會員登陸 & 注冊

HypixelBunny.kt

2023-08-23 12:41 作者:Dimples1337_  | 我要投稿
  • /*
    * LiquidBounce Hacked Client
    * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
    * https://github.com/CCBlueX/LiquidBounce/
    */
    package net.ccbluex.liquidbounce.features.module.modules.movement.speeds.other


    import net.ccbluex.liquidbounce.event.MoveEvent
    import net.ccbluex.liquidbounce.features.module.modules.movement.speeds.SpeedMode
    import net.ccbluex.liquidbounce.utils.MovementUtil
    import net.ccbluex.liquidbounce.utils.MovementUtils
    import net.minecraft.potion.Potion
    import kotlin.math.cos
    import kotlin.math.sin
    import kotlin.math.sqrt
    /**
    *
    * Skid By DeadStar
    * @Date on 2023/8/22
    *
    */
    class HypixelBunny : SpeedMode("HypixelBunny") {
    ? ?private fun getSpeedPotion(): Int {
    ? ? ? ?return if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1 else 0
    ? ?}

    ? ?fun getMoveYaw(): Float {
    ? ? ? ?var moveYaw = mc.thePlayer.rotationYaw
    ? ? ? ?if (mc.thePlayer.moveForward != 0f && mc.thePlayer.moveStrafing == 0f) {
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveForward > 0) 0 else 180).toFloat()
    ? ? ? ?} else if (mc.thePlayer.moveForward != 0f && mc.thePlayer.moveStrafing != 0f) {
    ? ? ? ? ? ?if (mc.thePlayer.moveForward > 0) moveYaw += (if (mc.thePlayer.moveStrafing > 0) -45 else 45).toFloat() else moveYaw -= (if (mc.thePlayer.moveStrafing > 0) -45 else 45).toFloat()
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveForward > 0) 0 else 180).toFloat()
    ? ? ? ?} else if (mc.thePlayer.moveStrafing != 0f && mc.thePlayer.moveForward == 0f) {
    ? ? ? ? ? ?moveYaw += (if (mc.thePlayer.moveStrafing > 0) -90 else 90).toFloat()
    ? ? ? ?}
    ? ? ? ?return moveYaw
    ? ?}

    ? ? ? private fun setMoveSpeed() {
    ? ? ? ?var yaw = getMoveYaw();
    ? ? ? ? ? var speed = MovementUtils.getSpeed()
    ? ? ? ?if (mc.thePlayer.moveForward != 0.toFloat() || mc.thePlayer.moveStrafing != 0.toFloat()) {
    ? ? ? ? ? ?mc.thePlayer.motionX = -sin(Math.toRadians(yaw.toDouble())) * speed;
    ? ? ? ? ? ?mc.thePlayer.motionZ = cos(Math.toRadians(yaw.toDouble())) * speed;
    ? ? ? ?}
    ? ?}

    ? ?override fun onMotion() {
    ? ?}

    ? ?override fun onDisable() {
    ? ?}

    ? ?override fun onMove(event: MoveEvent?) {}
    ? ?override fun onUpdate() {
    ? ? ? ?if (mc.thePlayer.onGround && (mc.thePlayer.moveForward != 0.toFloat() || mc.thePlayer.moveStrafing != 0.toFloat())) {
    ? ? ? ? ? ?mc.thePlayer.jump();

    ? ? ? ? ? ?setMoveSpeed()
    ? ? ? ?}
    ? ?}

    }



HypixelBunny.kt的評論 (共 條)

分享到微博請遵守國家法律
肇东市| 永丰县| 蓝田县| 太仓市| 咸丰县| 巴彦淖尔市| 琼海市| 萨嘎县| 海晏县| 收藏| 山西省| 漠河县| 高邮市| 石城县| 汶上县| 青岛市| 宜春市| 九江县| 云霄县| 泰兴市| 阿荣旗| 天祝| 临沧市| 西林县| 元朗区| 登封市| 靖西县| 沿河| 临潭县| 武威市| 伊吾县| 高雄市| 彭阳县| 宝鸡市| 双柏县| 灵宝市| 大城县| 新兴县| 牙克石市| 肇州县| 祥云县|