CCBlueX Forum

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

    Redesky LongJump

    Scripts
    1
    1
    366
    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.
    • G
      Gabriel last edited by

      This is a Redesky LongJump originally made by Arcane using CzechHek's Core.
      Here are the changes that i made and the code:
      1.0: Arcane created the script.
      1.1: Added timer option.
      1.2: Made timer reset to 1 when it disables.
      Code:

      ///api_version=2
      (script = registerScript({
          name: "Redesky LongJump",
          version: "1.2",
          authors: ["Arcane, CH / Gabriel / Coccocoa's Helper"]
      })).import("Core.lib");
      
      var ticks = 0;
      
      module = {
          name: "RedeskyLongJump",
          category: "Movement",
          values: [
              ticksValue = value.createInteger("Ticks", 21, 1, 25),
              timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5),
              xzMultiplier = value.createFloat("XZ-Multiplier", 0.9, 0.1, 1),
              yMultiplier = value.createFloat("Y-Multiplier", 0.77, 0.1, 1),
              glide = value.createBoolean("Glide", true)
          ],
          onEnable: function() {
              ticks = 0;
          },
          onDisable: function() {
              mc.timer.timerSpeed = 1;
          },
          onUpdate: function() {
              if (ticks < ticksValue.get()) {
                  mc.timer.timerSpeed = timerValue.get();
                  mc.thePlayer.motionY *= yMultiplier.get();
                  mc.thePlayer.motionX *= xzMultiplier.get();
                  mc.thePlayer.motionZ *= xzMultiplier.get();
      
                  mc.thePlayer.jump();
              }
              if (glide.get()) {
                  mc.thePlayer.motionY += 0.03;
              }
              ticks++;
          }
      }
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      About
      • Terms of Service
      • Privacy Policy
      • Status
      • Contact Us
      Downloads
      • Releases
      • Source code
      • License
      Docs
      • Tutorials
      • CustomHUD
      • AutoSettings
      • ScriptAPI
      Community
      • Forum
      • Guilded
      • YouTube
      • Twitter
      • D.Tube