you may have to change "antiPatternSpeed", "antiPatternRadius" and "jitter"
tested in on mc-gamster for intave and poke for aac/aacp
you may have to block mouse input...
tested in on mc-gamster for intave and poke for aac/aacp
you may have to block mouse input...
Java:
float[] rotationTarget = getRotationFromPosition(targetPosition);
float deltaYaw = Util.getDeltaAngle(mc.thePlayer.rotationYaw, rotationTarget[0]);
float deltaPitch = mc.thePlayer.rotationPitch - rotationTarget[1];
//apply smoothing here:
//deltaYaw *= 0.5f
//deltaPitch *= 0.5f
int jitter = 1;
deltaYaw += Math.signum(Math.random() - 0.5f) * jitter;
deltaPitch += Math.signum(Math.random() - 0.5f) * jitter;
// optional
//float antiPatternSpeed = 0.3f;
//float antiPatternRadius = 4;
//deltaYaw += Math.sin(pl.ticksExisted*antiPatternSpeed) * antiPatternRadius;
//deltaPitch += Math.cos(pl.ticksExisted*antiPatternSpeed) * antiPatternRadius * 1.5f;
//important part
mc.thePlayer.setAngles((int) (deltaYaw*6.66f) , (int) (deltaPitch*6.66f));