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.
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);
}
}
}
}

