Exemple #1
0
        /// <summary>
        /// Updates creeper scale in prerender callback
        /// </summary>
        protected virtual void UpdateCreeperScale(EntityCreeper par1EntityCreeper, float par2)
        {
            EntityCreeper entitycreeper = par1EntityCreeper;
            float         f             = entitycreeper.SetCreeperFlashTime(par2);
            float         f1            = 1.0F + MathHelper2.Sin(f * 100F) * f * 0.01F;

            if (f < 0.0F)
            {
                f = 0.0F;
            }

            if (f > 1.0F)
            {
                f = 1.0F;
            }

            f *= f;
            f *= f;
            float f2 = (1.0F + f * 0.4F) * f1;
            float f3 = (1.0F + f * 0.1F) / f1;
            //GL.Scale(f2, f3, f2);
        }