PostBow Helper Hack

Posts 14 of 4 · Page 1 of 1
Bow Helper Hack
I saw an outdated tutorial for this hack on another forum and had a go at making it, basically it'll add these notches on your screen to show you where to aim with a bow, like in real life sniper sights. Didn't think that this would be a great hack to post, but you can certainly use the potential to draw a menu using a picture, it makes it far more interesting.

First, add this method in GuiIngame, it's the same method as renderPumpkinBlur but edited a little bit because the colours would mess up otherwise.

Code:
private void renderbow(int par1, int par2)
    {
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        mc.getTextureManager().bindTexture(BowHelperTexPath);
        Tessellator var3 = Tessellator.instance;
        var3.startDrawingQuads();
        var3.addVertexWithUV(0.0D, (double)par2, -90.0D, 0.0D, 1.0D);
        var3.addVertexWithUV((double)par1, (double)par2, -90.0D, 1.0D, 1.0D);
        var3.addVertexWithUV((double)par1, 0.0D, -90.0D, 1.0D, 0.0D);
        var3.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D);
        var3.draw();
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    }
Then add this resource location:
Code:
private static final ResourceLocation BowHelperTexPath = new ResourceLocation("BowHelper.png");
Call the hack like this:
Code:
renderbow(var6, var7);
Finally, add the picture in MCP/src/minecraft/assets/minecraft (the path doesn't exist, make the assets and minecraft folders, it'll place the picture in the right place). I'll add the picture I used as an attachment.

The Result

Quote Originally Posted by RandomAmazingGuy View Post
I saw an outdated tutorial for this hack on another forum and had a go at making it, basically it'll add these notches on your screen to show you where to aim with a bow, like in real life sniper sights. Didn't think that this would be a great hack to post, but you can certainly use the potential to draw a menu using a picture, it makes it far more interesting.

First, add this method in GuiIngame, it's the same method as renderPumpkinBlur but edited a little bit because the colours would mess up otherwise.

Code:

private void renderbow(int par1, int par2)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.getTextureManager().bindTexture(BowHelperTexPat h);
Tessellator var3 = Tessellator.instance;
var3.startDrawingQuads();
var3.addVertexWithUV(0.0D, (double)par2, -90.0D, 0.0D, 1.0D);
var3.addVertexWithUV((double)par1, (double)par2, -90.0D, 1.0D, 1.0D);
var3.addVertexWithUV((double)par1, 0.0D, -90.0D, 1.0D, 0.0D);
var3.addVertexWithUV(0.0D, 0.0D, -90.0D, 0.0D, 0.0D);
var3.draw();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
}

Then add this resource location:
Code:

private static final ResourceLocation BowHelperTexPath = new ResourceLocation("BowHelper.png");

Call the hack like this:
Code:

renderbow(var6, var7);

Finally, add the picture in MCP/src/minecraft/assets/minecraft (the path doesn't exist, make the assets and minecraft folders, it'll place the picture in the right place). I'll add the picture I used as an attachment.

The Result
really well done tutorial..... thanks for the share
This is very useful. It'll be better if you gave hints though
Well, you *could* always just draw all of that with OpenGL + FontRenderer...
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?