f9 = 60F;
f10 = 0.0F;
ad = entitydragon.calculateSomething(11, field_40317_s);
for(int k = 0; k < 12; k++)
{
double ad2[] = entitydragon.calculateSomething(12 + k, field_40317_s);
f14 = (float)((double)f14 + Math.sin((float)k * 0.45F + f15) * 0.05000000074505806D);
modelNeck.rotateAngleY = ((func_40307_a(ad2[0] - ad[0]) * f11 + 180F) * 3.141593F) / 180F;
modelNeck.rotateAngleX = f14 + (((float)(ad2[1] - ad[1]) * 3.141593F) / 180F) * f11 * 5F;
modelNeck.rotateAngleZ = ((func_40307_a(ad2[0] - (double)f13) * 3.141593F) / 180F) * f11;
modelNeck.rotationPointY = f8;