No Fall Snippet

Posts 1–8 of 8 · Page 1 of 1
No Fall Snippet
Reference here to learn how to make your own client.

This code isn't ripped from anything but my brain, so leave credits if used.

You can find the original fall inside EntityLiving.java, replace it with this.

Code:
protected void fall(float f)
    {
        super.fall(f);
        int i = (int)Math.ceil(f - 3F);
        if(i > 0)
        {
        	if(GuiIngame.hackNoFall) 
        	{
        		if(i > 4)
                {
                    worldObj.playSoundAtEntity(this, "damage.fallbig", 1.0F, 1.0F);
                } else
                {
                    worldObj.playSoundAtEntity(this, "damage.fallsmall", 1.0F, 1.0F);
                }
               
        	} else
        	{
            if(i > 4)
            {
                worldObj.playSoundAtEntity(this, "damage.fallbig", 1.0F, 1.0F);
            } else
            {
                worldObj.playSoundAtEntity(this, "damage.fallsmall", 1.0F, 1.0F);
            }
            attackEntityFrom(DamageSource.fall, i);
            int j = worldObj.getBlockId(MathHelper.floor_double(posX), MathHelper.floor_double(posY - 0.20000000298023224D - (double)yOffset), MathHelper.floor_double(posZ));
            if(j > 0)
            {
                StepSound stepsound = Block.blocksList[j].stepSound;
                worldObj.playSoundAtEntity(this, stepsound.stepSoundDir2(), stepsound.getVolume() * 0.5F, stepsound.getPitch() * 0.75F);
            }
        	}
        }
    }
12-22-2011 --> 8-7-2013

WOW Epic Bump
Quote Originally Posted by Gku2 View Post
WOW Epic Bump
I appreciate the thanks he gave.
Quote Originally Posted by iiTzHaZe View Post
I appreciate the thanks he gave.
He Still Bumped This Thread, It's A Bannable Offence.
Quote Originally Posted by Gku2 View Post
He Still Bumped This Thread, It's A Bannable Offence.
It's only a 2 year old bump. No problem there right?
Quote Originally Posted by LordPankake View Post
It's only a 2 year old bump. No problem there right?
You're Right, My Mistake. Sorry!!
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us