Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.lwjgl.opengl.GL11;
- public class FRY_ModelFairy extends vs
- {
- public ps strand;
- public ps crown;
- public ps wingLeft;
- public ps wingRight;
- public boolean flymode;
- public boolean showCrown;
- public boolean scoutWings;
- public float sinage;
- public FRY_ModelFairy()
- {
- this(0.0F);
- }
- public FRY_ModelFairy(float f) {
- this(f, 0.0F);
- }
- public FRY_ModelFairy(float f, float f1) {
- this.r = 0;
- this.s = 0;
- this.t = false;
- this.flymode = (this.showCrown = 0);
- this.c = new ps(this, 0, 0);
- this.c.a(-3.0F, -6.0F, -3.0F, 6, 6, 6, f);
- this.c.a(0.0F, 0.0F + f1, 0.0F);
- this.strand = new ps(this).b(64, 32);
- this.strand.a(0, 20).a(-3.0F, -5.0F, 3.0F, 6, 3, 1, f);
- this.strand.a(24, 0).a(-4.0F, -5.0F, -3.0F, 1, 3, 6, f);
- this.strand.a(24, 0).a(3.0F, -5.0F, -3.0F, 1, 3, 6, f);
- this.strand.a(13, 23).a(-5.0F, -2.5F, 1.5F, 10, 3, 3, f);
- this.strand.a(0.0F, 0.0F + f1, 0.0F);
- this.crown = new ps(this, 37, 14);
- this.crown.a(-3.0F, -6.75F, -3.0F, 6, 3, 6, f + 0.25F);
- this.crown.a(0.0F, 0.0F + f1, 0.0F);
- this.e = new ps(this).b(64, 32);
- this.e.a(8, 12).a(-2.0F, 0.0F, -1.0F, 4, 6, 2, f);
- this.e.a(15, 20).a(-2.0F, 1.0F, -2.0F, 4, 2, 1, f);
- this.e.a(0.0F, 0.0F + f1, 0.0F);
- this.wingRight = new ps(this, 27, 9);
- this.wingRight.a(0.0F, -0.75F, -1.0F, 5, 4, 1, f + 0.25F);
- this.wingRight.a(0.5F, 0.0F + f1, 1.0F);
- this.wingLeft = new ps(this, 27, 9);
- this.wingLeft.i = true;
- this.wingLeft.a(-5.0F, -0.75F, -1.0F, 5, 4, 1, f + 0.25F);
- this.wingLeft.a(-0.5F, 0.0F + f1, 1.0F);
- this.f = new ps(this, 0, 12);
- this.f.a(-1.0F, -1.0F, -1.0F, 2, 6, 2, f);
- this.f.a(-5.0F, 1.0F + f1, 0.0F);
- this.g = new ps(this, 0, 12);
- this.g.i = true;
- this.g.a(-1.0F, -1.0F, -1.0F, 2, 6, 2, f);
- this.g.a(5.0F, 1.0F + f1, 0.0F);
- this.n = new ps(this, 20, 12);
- this.n.a(-1.0F, 0.0F, -1.0F, 2, 6, 2, f);
- this.n.a(-1.0F, 18.0F + f1, 0.0F);
- this.o = new ps(this, 20, 12);
- this.o.i = true;
- this.o.a(-1.0F, 0.0F, -1.0F, 2, 6, 2, f);
- this.o.a(1.0F, 18.0F + f1, 0.0F);
- }
- public void a(ms e, float f, float f1, float f2, float f3, float f4, float f5) {
- GL11.glPushMatrix();
- a(f, f1, f2, f3, f4, f5);
- this.c.a(f5);
- this.e.a(f5);
- this.f.a(f5);
- this.g.a(f5);
- this.n.a(f5);
- this.o.a(f5);
- this.strand.a(f5);
- if (this.showCrown) {
- this.crown.a(f5);
- }
- if (!this.scoutWings) {
- this.wingLeft.a(f5);
- this.wingRight.a(f5);
- }
- GL11.glPopMatrix();
- }
- public void a(float f, float f1, float f2, float f3, float f4, float f5) {
- this.c.g = (f3 / 57.29578F);
- this.c.f = (f4 / 57.29578F);
- this.strand.g = this.c.g;
- this.strand.f = this.c.f;
- this.crown.g = this.c.g;
- this.crown.f = this.c.f;
- if (!this.flymode) {
- this.f.f = (ga.b(f * 0.6662F + 3.141593F) * 2.0F * f1 * 0.5F);
- this.g.f = (ga.b(f * 0.6662F) * 2.0F * f1 * 0.5F);
- this.n.f = (ga.b(f * 0.6662F) * 1.4F * f1);
- this.o.f = (ga.b(f * 0.6662F + 3.141593F) * 1.4F * f1);
- } else {
- this.f.f = 0.0F;
- this.g.f = 0.0F;
- this.n.f = 0.0F;
- this.o.f = 0.0F;
- }
- this.f.h = 0.05F;
- this.g.h = -0.05F;
- this.n.g = 0.0F;
- this.o.g = 0.0F;
- this.n.h = 0.0F;
- this.o.h = 0.0F;
- if (((this.i) || (this.t)) && (!this.flymode)) {
- this.f.f += -0.6283185F;
- this.g.f += -0.6283185F;
- this.n.f = -1.256637F;
- this.o.f = -1.256637F;
- this.n.g = 0.314159F;
- this.o.g = -0.314159F;
- if (this.t) {
- this.n.f = -1.570796F;
- this.o.f = -1.570796F;
- }
- }
- if (this.r != 0) {
- this.g.f = (this.g.f * 0.5F - 0.314159F);
- }
- if (this.s != 0) {
- this.f.f = (this.f.f * 0.5F - 0.314159F);
- }
- this.f.g = 0.0F;
- this.g.g = 0.0F;
- if (this.h > -9990.0F) {
- float f6 = this.h;
- this.e.g = (ga.a(ga.c(f6) * 3.141593F * 2.0F) * 0.2F);
- this.wingLeft.g = (this.wingRight.g = ga.a(ga.c(f6) * 3.141593F * 2.0F) * 0.2F);
- this.f.e = (ga.a(this.e.g) * 5.0F);
- this.f.c = (-ga.b(this.e.g) * 5.0F + 2.0F);
- this.g.e = (-ga.a(this.e.g) * 5.0F);
- this.g.c = (ga.b(this.e.g) * 5.0F - 2.0F);
- this.f.g += this.e.g;
- this.g.g += this.e.g;
- this.g.f += this.e.g;
- f6 = 1.0F - this.h;
- f6 *= f6;
- f6 *= f6;
- f6 = 1.0F - f6;
- float f8 = ga.a(f6 * 3.141593F);
- float f9 = ga.a(this.h * 3.141593F) * -(this.c.f - 0.7F) * 0.75F;
- ps tmp720_717 = this.f; tmp720_717.f = (float)(tmp720_717.f - (f8 * 1.2D + f9));
- this.f.g += this.e.g * 2.0F;
- this.f.h = (ga.a(this.h * 3.141593F) * -0.4F);
- }
- if (this.flymode) {
- float f7 = 3.141593F;
- this.e.f = (f7 / 2.0F);
- this.e.d = 19.0F;
- this.wingLeft.f = (f7 / 2.0F);
- this.wingRight.f = (f7 / 2.0F);
- this.wingLeft.d = 17.5F;
- this.wingRight.d = 17.5F;
- this.wingLeft.e = 1.0F;
- this.wingRight.e = 1.0F;
- this.n.e = 0.0F;
- this.o.e = 0.0F;
- this.f.d = 19.0F;
- this.g.d = 19.0F;
- this.n.d = 18.0F;
- this.o.d = 18.0F;
- this.n.e = 6.0F;
- this.o.e = 6.0F;
- this.c.e = -3.0F;
- this.c.d = 19.75F;
- this.strand.e = -3.0F;
- this.strand.d = 19.75F;
- this.crown.e = -3.0F;
- this.crown.d = 19.75F;
- } else {
- this.e.f = 0.0F;
- this.e.d = 12.0F;
- this.wingLeft.f = 0.0F;
- this.wingRight.f = 0.0F;
- this.wingLeft.d = 12.5F;
- this.wingRight.d = 12.5F;
- this.wingLeft.e = 1.0F;
- this.wingRight.e = 1.0F;
- this.n.e = 0.0F;
- this.o.e = 0.0F;
- if (this.i) {
- this.f.d = 13.0F;
- this.g.d = 13.0F;
- } else {
- this.f.d = 13.0F;
- this.g.d = 13.0F;
- }
- this.n.d = 18.0F;
- this.o.d = 18.0F;
- this.n.e = 0.0F;
- this.o.e = 0.0F;
- this.c.e = 0.0F;
- this.c.d = 12.0F;
- this.strand.e = 0.0F;
- this.strand.d = 12.0F;
- this.crown.e = 0.0F;
- this.crown.d = 12.0F;
- }
- if (this.flymode) {
- this.f.h += ga.b(f2 * 0.09F) * 0.1F + 0.05F;
- this.g.h -= ga.b(f2 * 0.09F) * 0.1F + 0.05F;
- this.f.f += ga.a(f2 * 0.067F) * 0.1F;
- this.g.f -= ga.a(f2 * 0.067F) * 0.1F;
- this.n.h += ga.b(f2 * 0.09F) * 0.1F + 0.05F;
- this.o.h -= ga.b(f2 * 0.09F) * 0.1F + 0.05F;
- this.n.f = 0.1F;
- this.o.f = 0.1F;
- } else {
- this.f.h += ga.b(f2 * 0.09F) * 0.05F + 0.05F;
- this.g.h -= ga.b(f2 * 0.09F) * 0.05F + 0.05F;
- this.f.f += ga.a(f2 * 0.067F) * 0.05F;
- this.g.f -= ga.a(f2 * 0.067F) * 0.05F;
- }
- if (this.flymode) {
- this.wingLeft.g = 0.1F;
- this.wingRight.g = -0.1F;
- ps tmp1505_1502 = this.wingLeft; tmp1505_1502.g = (float)(tmp1505_1502.g + Math.sin(this.sinage) / 6.0D);
- ps tmp1531_1528 = this.wingRight; tmp1531_1528.g = (float)(tmp1531_1528.g - Math.sin(this.sinage) / 6.0D);
- this.wingLeft.h = 0.5F;
- this.wingRight.h = -0.5F;
- } else {
- this.wingLeft.g = 0.6F;
- this.wingRight.g = -0.6F;
- ps tmp1596_1593 = this.wingLeft; tmp1596_1593.g = (float)(tmp1596_1593.g + Math.sin(this.sinage) / 3.0D);
- ps tmp1622_1619 = this.wingRight; tmp1622_1619.g = (float)(tmp1622_1619.g - Math.sin(this.sinage) / 3.0D);
- this.wingLeft.h = 0.125F;
- this.wingRight.h = -0.125F;
- }
- ps tmp1666_1663 = this.wingLeft; tmp1666_1663.h = (float)(tmp1666_1663.h + Math.cos(this.sinage) / (this.flymode ? 3.0F : 8.0F));
- ps tmp1704_1701 = this.wingRight; tmp1704_1701.h = (float)(tmp1704_1701.h - Math.cos(this.sinage) / (this.flymode ? 3.0F : 8.0F));
- }
- public void a(float f)
- {
- }
- public void b(float f)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement