Results 1 to 1 of 1
  1. #1
    hackroj's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    442
    Reputation
    10
    Thanks
    2,545
    My Mood
    Fine

    Help with freaking keybinds (what am i missing)

    Short story decided to port my 1.4.7 forge to 1.5.2 and being the idiot i am i am probably missing something obvious but when i press any of my keybinded buttons or the buttons i used with keyboard method nothing actually happens.
    I know modifying GuiInGame is kinda dumb but eh didnt have the time at first and now too lazy to change it.

    what i have done :

    added
    Code:
    private boolean keyStates[];
    after public class

    then
    Code:
    keyStates = new boolean [256];
    on public GuiInGame
    then
    Code:
        public boolean checkKey(int i)
        {
        	if(mc.currentScreen != null)
        	{
        		return false;
        	}
        	if(Keyboard.isKeyDown(i) != keyStates[i])
        	{
        		return keyStates[i] = !keyStates[i];
        	}else{
        		return false;
        	}
        }
    after
    Code:
     this.drawString(fontrenderer, String.format("ws: %.3f, fs: %.3f, g: %b, fl: %d", new Object[] {Float.valueOf(this.mc.thePlayer.capabilities.getWalkSpeed()), Float.valueOf(this.mc.thePlayer.capabilities.getFlySpeed()), Boolean.valueOf(this.mc.thePlayer.onGround), Integer.valueOf(this.mc.theWorld.getHeightValue(k3, k2))}), 2, 104, 14737632);
                GL11.glPopMatrix();
                this.mc.mcProfiler.endSection();
    i added
    Code:
    }else{ 
    if(checkKey(Keybinds.keybindFullBright))
     {
             Hacks.fullbright = !Hacks.fullbright;
     
             if(Hacks.fullbright)
     {
    	   mc.gameSettings.gammaSetting = 100000F;
    	   
     }else
     {
    	   mc.gameSettings.gammaSetting = 1F;
     }
     }
    Keybinds thing can be modified into Keyboard.KEY_B but still fails and is declared and stuff.

    Any help would be nice but probably something obvious im missing.

    ---------- Post added at 03:48 PM ---------- Previous post was at 02:37 PM ----------

    Nevermind i solved it it was just forge stealing my methods.
    Last edited by hackroj; 07-31-2013 at 02:39 PM.

Similar Threads

  1. [Help] I Need Help With UnderStanding What To Do With Codes!!
    By Chaos_Hacker in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 07-28-2012, 04:00 PM
  2. Replies: 1
    Last Post: 10-19-2011, 09:52 AM
  3. [Solved] HELP, i dont know what to do with .dll?
    By maxiboy1 in forum Combat Arms Help
    Replies: 4
    Last Post: 08-17-2011, 10:48 AM
  4. What do you need help with?
    By Lolland in forum Visual Basic Programming
    Replies: 22
    Last Post: 11-29-2009, 07:34 PM
  5. Need help with missing .dll file
    By crossfire-noob in forum CrossFire Hacks & Cheats
    Replies: 11
    Last Post: 08-31-2009, 12:02 PM