help me

Avatar

By Survi_G 14 April 2019 14:40

Member · 211 comments

How can I do the visual rotations?
what I want to say is that I do not move the screen up

var scriptName = "Fly";
var scriptAuthor = "By Virus";
var scriptVersion = 1.0;

function TimerTick(offset) {
    if(mc.thePlayer.onGround) {
        if(mc.gameSettings.keyBindForward.isKeyDown()) {
            if(mc.thePlayer.ticksExisted % 5 == 0) {
                mc.timer.timerSpeed = offset;
            }else{
                mc.timer.timerSpeed = 1.0;
            }
        }
    }   
}

function test(offset) {
    var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
    mc.thePlayer.rotationYaw = offset;
}
function FlyModule() {

    this.getName = function() {
        return "BowFly";
    }

    this.getDescription = function() {
        return "."
    }

    this.getCategory = function() {
        return "Fun";
    }

    this.onUpdate = function() {
        if(mc.thePlayer.hurtTime) {
            mc.thePlayer.motionY = 0.60;
            mc.timer.timerSpeed = 0.30;
        }
        if(mc.thePlayer.onGround) {
            mc.timer.timerSpeed = 1.0;
        }
        if(!mc.thePlayer.onGround) {
            mc.gameSettings.keyBindForward.pressed = true;
            mc.thePlayer.rotationPitch = - 83;
            if(mc.thePlayer.ticksExisted % 8 == 0) {
                mc.gameSettings.keyBindUseItem.pressed = true;
            }else{
                if(mc.thePlayer.ticksExisted % 6 == 0) {
                    mc.gameSettings.keyBindUseItem.pressed = false;
                }
              
            }
        }

    
    }

    this.onDisable = function() {
        mc.gameSettings.keyBindUseItem.pressed = false;
        mc.timer.timerSpeed = 1.0;
        mc.thePlayer.speedInAir = 0.02;
        
    }
}

var flyModule = new FlyModule();
var flyModuleClient;

function onEnable() {
    flyModuleClient = moduleManager.registerModule(flyModule);
}

function onDisable() {
    moduleManager.unregisterModule(flyModuleClient);
}
Avatar

By Shiv3R 14 April 2019 15:23

Member · 146 comments

you can't cuz there aren't onpacket

Avatar

By Survi_G 14 April 2019 15:28

Member · 211 comments
Shiv3R wrote

you can't cuz there aren't onpacket

oh : (

Avatar

By icewormy3 14 April 2019 21:27

Member · 518 comments

senk ju made a github issue about this https://github.com/CCBlueX/LiquidBounce … ssues/2823