AutoSprint

Posts 1–5 of 5 · Page 1 of 1
AutoSprint
Boolean:
Code:
public static boolean HackAutoSprint = false;
Function Code:
Code:
if(GuiIngame.HackAutoSprint)
{
        mc.thePlayer.setSprinting(true);
}else
{
        boolean var1 = GuiIngame.HackAutoSprint;
}
For Hotkey:
Code:
if(checkKey(Keyboard.KEY_KeyBind))
{
        HackAutoSprint = !HackAutoSprint;
}
Gui In Game:
Code:
if(HackAutoSprint)
{
        var8.drawStringWithShadow("[KeyBind] - Sprint [ON]", 2, 2, 0x33CC99);
} else
{
        var8.drawStringWithShadow("[Keybind] - Sprint [OFF]", 2, 2, 0xFF0033);
}
Code:
if(GuiIngame.HackAutoSprint)
{
        mc.thePlayer.setSprinting(true);
}else
{
        boolean var1 = GuiIngame.HackAutoSprint;
}
You don't need the else.


Code:
GuiIngame.HackAutoSprint
putting things in GuiIngame is messy.
just mc.thePlayer.setSprinting(true); ?
Quote Originally Posted by kufalov View Post
just mc.thePlayer.setSprinting(true); ?
Yup. That's all you need.
hmm thanks for notice
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us