Navigation

    CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    CookieVelocity 3.4 部分开源

    Chinese
    1
    1
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CookieChinese
      CookieChinese last edited by

      case "AAC4":
                      if (mc.thePlayer.hurtTime == 0 || !velocity) {
      					velocity && (velocity = false);
                          return;
                      } if (mc.thePlayer.onGround) {
      					mc.thePlayer.hurtTime <= 6 && (mc.thePlayer.motionX *= 0.6, mc.thePlayer.motionZ *= 0.6);
                          mc.thePlayer.hurtTime <= 4 && (mc.thePlayer.motionX *= 0.6, mc.thePlayer.motionZ *= 0.6);
                      } else if (mc.thePlayer.hurtTime <= 9) {
                          mc.thePlayer.motionX *= 0.600001;
                          mc.thePlayer.motionZ *= 0.600001;
                      }
                      break;
                  case "Matrix":
                      if (mc.thePlayer.hurtTime == 0 || !velocity) {
      					velocity && (velocity = false);
                          return;
                      } if (mc.thePlayer.onGround) {
                          mc.thePlayer.hurtTime <= 6 && (mc.thePlayer.motionX *= 0.700054132, mc.thePlayer.motionZ *= 0.700054132);
      					mc.thePlayer.hurtTime <= 5 && (mc.thePlayer.motionX *= 0.803150645, mc.thePlayer.motionZ *= 0.803150645);
                      } else if (mc.thePlayer.hurtTime <= 10) {
                          mc.thePlayer.motionX *= 0.605001;
                          mc.thePlayer.motionZ *= 0.605001;
                      }
                      break;
                  case "Jump":
                      if (mc.thePlayer.onGround && mc.thePlayer.hurtTime > 0 && velocity) {
      					velocity = false;
      					mc.thePlayer.motionY = 0.42 + (mc.thePlayer.isPotionActive(Potion.jump) ? (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1 : 0);
      					mc.thePlayer.motionX -= Math.sin((var0 = mc.thePlayer.rotationYaw * 0.017453292)) * 0.2;
      					mc.thePlayer.motionZ += Math.cos(var0) * 0.2;
                      } else if (mc.thePlayer.hurtTime == 0 && velocity) {
                          velocity = false;
                      }
                      break;
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post