Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GuiIngame.fly)//Just use this code. I don't see a point in anyone using a tutorial for a fly hack. Sorry for making you have to Copy it though. No credits needed
- {
- onGround = false;
- motionX = 0.0D;
- motionY = 0.0D;
- motionZ = 0.0D;
- if(Keyboard.isKeyDown(57) && mc.inGameHasFocus)
- {
- motionY++;
- } else
- if(Keyboard.isKeyDown(42) && mc.inGameHasFocus)
- {
- motionY--;
- }
- double d5 = rotationPitch + 90F;
- double d6 = rotationYaw + 90F;
- boolean flag4 = Keyboard.isKeyDown(17) && mc.inGameHasFocus;
- boolean flag5 = Keyboard.isKeyDown(31) && mc.inGameHasFocus;
- boolean flag6 = Keyboard.isKeyDown(30) && mc.inGameHasFocus;
- boolean flag7 = Keyboard.isKeyDown(32) && mc.inGameHasFocus;
- if(flag4)
- {
- if(flag6)
- {
- d6 -= 45D;
- } else
- if(flag7)
- {
- d6 += 45D;
- }
- } else
- if(flag5)
- {
- d6 += 180D;
- if(flag6)
- {
- d6 += 45D;
- } else
- if(flag7)
- {
- d6 -= 45D;
- }
- } else
- if(flag6)
- {
- d6 -= 90D;
- } else
- if(flag7)
- {
- d6 += 90D;
- }
- if(flag4 || flag6 || flag5 || flag7)
- {
- motionX = Math.cos(Math.toRadians(d6));
- motionZ = Math.sin(Math.toRadians(d6));
- }
- }
- return false;
- }
Add Comment
Please, Sign In to add comment