Package com.flansmod.client.tmt

Examples of com.flansmod.client.tmt.ModelRendererTurbo


    int textureX = 64;
    int textureY = 16;
   
    gunModel = new ModelRendererTurbo[6];
   
    gunModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    gunModel[0].addShapeBox(-1F, -1F, -0.5F, 2, 3, 1, 0F, /* 0 */ -0.5F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ -0.5F, 0F, 0F, /* 4 */ -0.5F, -1F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -0.5F, -1F, 0F)
   
    gunModel[1] = new ModelRendererTurbo(this, 6, 0, textureX, textureY);
    gunModel[1].addShapeBox(1F, 1F, -0.5F, 1, 2, 1, 0F, /* 0 */ 0F, 0.5F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0.5F, 0F, /* 4 */ 0F, -1F, 0F, /* 5 */ 0F, 0.5F, 0F, /* 6 */ 0F, 0.5F, 0F, /* 7 */ 0F, -1F, 0F)

    gunModel[2] = new ModelRendererTurbo(this, 10, 0, textureX, textureY);
    gunModel[2].addBox(2F, 1F, -0.5F, 3, 0.25F, 1);
   
    gunModel[3] = new ModelRendererTurbo(this, 10, 2, textureX, textureY);
    gunModel[3].addBox(2F, 3.25F, -0.5F, 3, 0.25F, 1);

    gunModel[4] = new ModelRendererTurbo(this, 18, 0, textureX, textureY);
    gunModel[4].addBox(5F, 1F, -0.5F, 0.5F, 2.5F, 1);

    gunModel[5] = new ModelRendererTurbo(this, 22, 0, textureX, textureY);
    gunModel[5].addBox(5.5F, 2F, -0.5F, 6, 1.5F, 1);

    revolverBarrelModel = new ModelRendererTurbo[1];
   
    revolverBarrelModel[0] = new ModelRendererTurbo(this, 0, 4, textureX, textureY);
    revolverBarrelModel[0].addBox(2F, 1.25F, -1F, 3, 2, 2);

    revolverFlipAngle = 30F;
   
    ammoModel = new ModelRendererTurbo[6];
   
    for(int i = 0; i < 6; i++)
    {
      ammoModel[i] = new ModelRendererTurbo(this, 10, 4, textureX, textureY);
      ammoModel[i].addBox(0F, 0.35F, -0.5F, 2, 0.5F, 0.5F);
      ammoModel[i].setRotationPoint(2.5F, 2.25F, 0F);
      ammoModel[i].rotateAngleX = (float)Math.PI / 3F * i;
    }

 
View Full Code Here


  public ModelRendererTurbo[] c4Model;

  public ModelC4()
  {
    c4Model = new ModelRendererTurbo[2];
    c4Model[0] = new ModelRendererTurbo(this, 0, 0, 32, 8);
    c4Model[0].addBox(-2F, 0F, -3F, 4, 2, 6);
    c4Model[1] = new ModelRendererTurbo(this, 20, 0, 32, 8);
    c4Model[1].addBox(-1F, 1.5F, -2F, 2, 1, 4);
  }
View Full Code Here

    int textureX = 64;
    int textureY = 16;
   
    gunModel = new ModelRendererTurbo[2];
   
    gunModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    gunModel[0].addBox(1F, 1.5F, -0.5F, 16, 1, 1);
   
    gunModel[1] = new ModelRendererTurbo(this, 0, 2, textureX, textureY);
    gunModel[1].addShapeBox(-1F, 0F, -1F, 13, 2, 2, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, -1F, 0F, /* 2 */ 0F, -1F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
   
    //Scope
    defaultScopeModel = new ModelRendererTurbo[5];
   
    defaultScopeModel[0] = new ModelRendererTurbo(this, 0, 10, textureX, textureY);
    defaultScopeModel[0].addBox(-1F, 3F, -1F, 2, 2, 2);
   
    defaultScopeModel[1] = new ModelRendererTurbo(this, 0, 14, textureX, textureY);
    defaultScopeModel[1].addBox(1F, 3.5F, -0.5F, 5, 1, 1);
   
    defaultScopeModel[2] = new ModelRendererTurbo(this, 8, 10, textureX, textureY);
    defaultScopeModel[2].addBox(6F, 3F, -1F, 3, 2, 2);
   
    defaultScopeModel[3] = new ModelRendererTurbo(this, 12, 14, textureX, textureY);
    defaultScopeModel[3].addBox(1.5F, 2.5F, -0.5F, 1, 1, 1);
   
    defaultScopeModel[4] = new ModelRendererTurbo(this, 16, 14, textureX, textureY);
    defaultScopeModel[4].addBox(4.5F, 2.5F, -0.5F, 1, 1, 1);
   
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(17F / 16F, 4.5F / 16F, 0F);
   
    //Stock
    defaultStockModel = new ModelRendererTurbo[2];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 0, 6, textureX, textureY);
    defaultStockModel[0].addBox(-4F, -0.5F, -1F, 3, 2, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 16, 6, textureX, textureY);
    defaultStockModel[1].addShapeBox(-9F, -2F, -1F, 5, 4, 2, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, -1.5F, 0F, /* 2 */ 0F, -1.5F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    stockAttachPoint = new Vector3f(-1F / 16F, 1F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 34, 0, textureX, textureY);
    ammoModel[0].addBox(1F, 0.5F, -0.5F, 3, 1, 1);
 
   
    translateAll(0, 2.5F, 0);
   
View Full Code Here

    int textureX = 16;
    int textureY = 8;
   
    attachmentModel = new ModelRendererTurbo[2];
   
    attachmentModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    attachmentModel[0].addBox(-2F, -1F, -1F, 4, 1, 2);
   
    attachmentModel[1] = new ModelRendererTurbo(this, 10, 1, textureX, textureY);
    attachmentModel[1].addBox(-1F, -6F, -1F, 2, 5, 2);
  }
View Full Code Here

    int textureX = 64;
    int textureY = 16;
   
    headModel = new ModelRendererTurbo[3];
   
    headModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    headModel[0].addBox(-4.5F, -9F, -4.5F, 9, 4, 9);
   
    headModel[1] = new ModelRendererTurbo(this, 2, 2, textureX, textureY);
    headModel[1].addBox(-3.5F, -10F, -3.5F, 7, 1, 7);
   
    headModel[2] = new ModelRendererTurbo(this, 27, 0, textureX, textureY);
    headModel[2].addBox(-9.5F, -7F, -1F, 5, 2, 2);
  }
View Full Code Here

    int textureX = 64;
    int textureY = 16;
   
    gunModel = new ModelRendererTurbo[5];
   
    gunModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    gunModel[0].addBox(-1F, 3F, -1F, 7, 2, 2);
   
    gunModel[1] = new ModelRendererTurbo(this, 0, 4, textureX, textureY);
    gunModel[1].addBox(6F, 3F, -0.5F, 12, 2, 1);
   
    gunModel[2] = new ModelRendererTurbo(this, 16, 0, textureX, textureY);
    gunModel[2].addBox(15F, 5F, -0.5F, 1, 1, 1);
   
    gunModel[3] = new ModelRendererTurbo(this, 0, 7, textureX, textureY);
    gunModel[3].addBox(-1F, 0F, -1F, 2, 3, 2);
   
    gunModel[4] = new ModelRendererTurbo(this, 18, 0, textureX, textureY);
    gunModel[4].addBox(1F, 2F, -1F, 1, 1, 2);
   
    //Shotgun Handle
    pumpModel = new ModelRendererTurbo[1];
   
    pumpModel[0] = new ModelRendererTurbo(this, 8, 7, textureX, textureY);
    pumpModel[0].addBox(10F, 2.8F, -1F, 4, 1, 2);
   
    //Scope
    scopeAttachPoint = new Vector3f(3F / 16F, 5F / 16F, 0F);

    //Stock
    defaultStockModel = new ModelRendererTurbo[3];
   
    defaultStockModel[0] = new ModelRendererTurbo(this, 8, 10, textureX, textureY);
    defaultStockModel[0].addBox(-8F, 0F, -1F, 3, 3, 2);
   
    defaultStockModel[1] = new ModelRendererTurbo(this, 0, 12, textureX, textureY);
    defaultStockModel[1].addBox(-5F, 1F, -1F, 2, 2, 2);
   
    defaultStockModel[2] = new ModelRendererTurbo(this, 18, 12, textureX, textureY);
    defaultStockModel[2].addBox(-3F, 2F, -1F, 2, 2, 2);
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(18F / 16F, 4F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(12F / 16F, 3F / 16F, 0F);
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
   
    ammoModel[0] = new ModelRendererTurbo(this, 22, 0, textureX, textureY);
    ammoModel[0].addBox(4F, 3.5F, -0.5F, 2, 1, 1);
     
    gunSlideDistance = 0.5F;
    animationType = EnumAnimationType.SHOTGUN;
    pumpDelayAfterReload = 115;
View Full Code Here

    int textureX = 16;
    int textureY = 16;
   
    gunModel = new ModelRendererTurbo[2];
   
    gunModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    gunModel[0].addShapeBox(-1F, -2F, 0F, 2, 16, 0, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 1F, -2F, 0F, /* 6 */ 1F, -2F, 0F, /* 7 */ 0F, 0F, 0F)
   
    gunModel[1] = new ModelRendererTurbo(this, 4, 0, textureX, textureY);
    gunModel[1].addBox(-1F, -8F, -0.5F, 2, 6, 1);
   
    for(int i = 0; i < 2; i++)
      gunModel[i].setRotationPoint(0F, 8F, 0F);
   
View Full Code Here

    int textureX = 64;
    int textureY = 64;
   
    gunModel = new ModelRendererTurbo[1];
   
    gunModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    gunModel[0].addBox(4F, -20F, -8F, 1, 32, 16);
   
  }
View Full Code Here

    int textureX = 1024; //The x-size of the texture
    int textureY = 512//The y-size of the texture
 
        bodyModel = new ModelRendererTurbo[9];
       
        bodyModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); //Main body floor
    bodyModel[0].addBox(-96F, 8F, -32F, 192, 2, 64)
   
        bodyModel[1] = new ModelRendererTurbo(this, 0, 132, textureX, textureY); //Main body side
    bodyModel[1].addBox(-96F, 10F, -32F, 192, 64, 2)
   
    bodyModel[2] = new ModelRendererTurbo(this, 0, 198, textureX, textureY); //Main body side
    bodyModel[2].addBox(-96F, 10F, 30F, 192, 64, 2);   

    bodyModel[3] = new ModelRendererTurbo(this, 0, 66, textureX, textureY); //Main body floor
    bodyModel[3].addBox(-96F, 74F, -32F, 192, 2, 64);
   
        bodyModel[4] = new ModelRendererTurbo(this, 0, 264, textureX, textureY); //Main body side bulge
    bodyModel[4].addShapeBox(-96F, 10F, -48F, 192, 32, 16, 0F, /* 0 */ -8F, -8F, 0F, /* 1 */ -8F, -8F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ -8F, -8F, 0F, /* 5 */ -8F, -8F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F);   
   
    bodyModel[5] = new ModelRendererTurbo(this, 0, 312, textureX, textureY); //Main body side bulge
    bodyModel[5].addShapeBox(-96F, 10F, 32F, 192, 32, 16, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ -8F, -8F, 0F, /* 3 */ -8F, -8F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ -8F, -8F, 0F, /* 7 */ -8F, -8F, 0F)
   
        bodyModel[6] = new ModelRendererTurbo(this, 512, 314, textureX, textureY); //Seats
    bodyModel[6].addBox(-92F, 32F, -30F, 184, 2, 16)
   
        bodyModel[7] = new ModelRendererTurbo(this, 512, 332, textureX, textureY); //Seats
    bodyModel[7].addBox(-92F, 32F, 14F, 184, 2, 16)
   
        bodyModel[8] = new ModelRendererTurbo(this, 0, 0, textureX, textureY); //Inside floor piece
    bodyModel[8].addBox(-96F, 24F, -32F, 192, 2, 64)
   
    bodyWheelModel = new ModelRendererTurbo[12];
   
    for(int i = 0; i < 2; i++)
    {
      for(int j = 0; j < 2; j++)
      {
        bodyWheelModel[0 + 3 * i + 6 * j] = new ModelRendererTurbo(this, 624, 32, textureX, textureY); // Wheel connector
        bodyWheelModel[0 + 3 * i + 6 * j].addBox(0F, -8F, -2F, 4, 16, 4);
        bodyWheelModel[0 + 3 * i + 6 * j].setRotationPoint(-80F * (i == 0 ? 1 : -1), 0F, -24F * (j == 0 ? 1 : -1));
   
        bodyWheelModel[1 + 3 * i + 6 * j] = new ModelRendererTurbo(this, 640, 12, textureX, textureY); // Wheel
        bodyWheelModel[1 + 3 * i + 6 * j].addBox(-6F, -14F, -4F, 16, 16, 3)
        bodyWheelModel[1 + 3 * i + 6 * j].setRotationPoint(-80F * (i == 0 ? 1 : -1), 0F, -24F * (j == 0 ? 1 : -1));
       
        bodyWheelModel[2 + 3 * i + 6 * j] = new ModelRendererTurbo(this, 640, 12, textureX, textureY); // Wheel
        bodyWheelModel[2 + 3 * i + 6 * j].addBox(-6F, -14F, 1F, 16, 16, 3)
        bodyWheelModel[2 + 3 * i + 6 * j].setRotationPoint(-80F * (i == 0 ? 1 : -1), 0F, -24F * (j == 0 ? 1 : -1));
      }
    }

   
    noseModel = new ModelRendererTurbo[17];
   
    noseModel[0] = new ModelRendererTurbo(this, 0, 360, textureX, textureY); //Cockpit floor 1
    noseModel[0].addShapeBox(-128F, 8F, -32F, 32, 2, 64, 0F, /* 0 */ 0F, -4F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, -8F, /* 4 */ 0F, 4F, -8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 4F, -8F)
   
    noseModel[1] = new ModelRendererTurbo(this, 0, 426, textureX, textureY); //Cockpit wall 1
    noseModel[1].addShapeBox(-128F, 10F, -32F, 32, 64, 2, 0F, /* 0 */ 0F, -4F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, 8F, /* 4 */ -8F, -4F, -8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -8F, -4F, 8F)

    noseModel[2] = new ModelRendererTurbo(this, 68, 426, textureX, textureY); //Cockpit wall 2
    noseModel[2].addShapeBox(-128F, 10F, 30F, 32, 64, 2, 0F, /* 0 */ 0F, -4F, 8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, -8F, /* 4 */ -8F, -4F, 8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -8F, -4F, -8F)

    noseModel[3] = new ModelRendererTurbo(this, 192, 360, textureX, textureY); //Cockpit ceiling 1
    noseModel[3].addShapeBox(-128F, 74F, -32F, 32, 2, 64, 0F, /* 0 */ -8F, 4F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ -8F, 4F, -8F, /* 4 */ -8F, -4F, -8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -8F, -4F, -8F)
   
    noseModel[4] = new ModelRendererTurbo(this, 136, 426, textureX, textureY); //Cockpit upper front panel
    noseModel[4].addShapeBox(-125.75F, 44F, -24F, 2, 28, 48, 0F, /* 0 */ 0F, 0.25F, -1F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0.25F, -1F, /* 4 */ -4F, 0F, 0F, /* 5 */ 4F, 0F, 0F, /* 6 */ 4F, 0F, 0F, /* 7 */ -4F, 0F, 0F)
   
    noseModel[5] = new ModelRendererTurbo(this, 236, 426, textureX, textureY); //Cockpit floor 2
    noseModel[5].addShapeBox(-152F, 12F, -24F, 24, 2, 48, 0F, /* 0 */ 0F, -4F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, -8F, /* 4 */ 0F, 4F, -8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 4F, -8F)
   
    noseModel[6] = new ModelRendererTurbo(this, 128, 360, textureX, textureY); //Cockpit wall 3
    noseModel[6].addShapeBox(-152F, 14F, -24F, 24, 28, 2, 0F, /* 0 */ 0F, -4F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, 8F, /* 4 */ 0F, -4F, -8F, /* 5 */ 4F, 0F, 0F, /* 6 */ 4F, 0F, 0F, /* 7 */ 0F, -4F, 8F)

    noseModel[7] = new ModelRendererTurbo(this, 128, 390, textureX, textureY); //Cockpit wall 4
    noseModel[7].addShapeBox(-152F, 14F, 22F, 24, 28, 2, 0F, /* 0 */ 0F, -4F, 8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, -4F, -8F, /* 4 */ 0F, -4F, 8F, /* 5 */ 4F, 0F, 0F, /* 6 */ 4F, 0F, 0F, /* 7 */ 0F, -4F, -8F)
   
    noseModel[8] = new ModelRendererTurbo(this, 320, 360, textureX, textureY); //Cockpit ceiling 2
    noseModel[8].addShapeBox(-152F, 42F, -24F, 24, 2, 48, 0F, /* 0 */ 0F, 4F, -8F, /* 1 */ 4F, 0F, 0F, /* 2 */ 4F, 0F, 0F, /* 3 */ 0F, 4F, -8F, /* 4 */ 0F, -4F, -8F, /* 5 */ 4.25F, 0F, 0F, /* 6 */ 4.25F, 0F, 0F, /* 7 */ 0F, -4F, -8F)

    noseModel[9] = new ModelRendererTurbo(this, 448, 0, textureX, textureY); //Cockpit lower front panel
    noseModel[9].addShapeBox(-152F, 18F, -14F, 2, 20, 28, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, 0F)
   
    noseModel[10] = new ModelRendererTurbo(this, 512, 0, textureX, textureY); //Nose fin
    noseModel[10].addShapeBox(-96F, 76F, -4F, 48, 24, 8, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ -16F, 0F, 0F, /* 6 */ -16F, 0F, 0F, /* 7 */ 0F, 0F, 0F);
   
    noseModel[11] = new ModelRendererTurbo(this, 512, 32, textureX, textureY); //Nose fin
    noseModel[11].addShapeBox(-120F, 76F, -4F, 24, 24, 8, 0F, /* 0 */ 0F, 4F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 4F, 0F, /* 4 */ -16F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -16F, 0F, 0F);
     
    noseModel[12] = new ModelRendererTurbo(this, 512, 252, textureX, textureY); //Drivers seat base
    noseModel[12].addShapeBox(-124F, 24F, -30F, 28, 2, 60, 0F, /* 0 */ 0F, 0F, -8F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, -8F, /* 4 */ 0F, 0F, -8F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ 0F, 0F, -8F);

    noseModel[13] = new ModelRendererTurbo(this, 688, 196, textureX, textureY); //Drivers seat base 1
    noseModel[13].addBox(-112F, 26F, 8F, 16, 2, 16)
   
    noseModel[14] = new ModelRendererTurbo(this, 688, 196, textureX, textureY); //Drivers seat base 2
    noseModel[14].addBox(-112F, 26F, -24F, 16, 2, 16)
   
    noseModel[15] = new ModelRendererTurbo(this, 688, 214, textureX, textureY); //Drivers seat back 1
    noseModel[15].addBox(-96F, 26F, 8F, 2, 24, 16)
   
    noseModel[16] = new ModelRendererTurbo(this, 688, 214, textureX, textureY); //Drivers seat back 2
    noseModel[16].addBox(-96F, 26F, -24F, 2, 24, 16);     
   
    //Tail
    tailModel = new ModelRendererTurbo[2];
   
    tailModel[0] = new ModelRendererTurbo(this, 512, 64, textureX, textureY); //Tail
    tailModel[0].addShapeBox(96F, 8F, -32F, 64, 68, 64, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, -48F, -24F, /* 2 */ 0F, -48F, -24F, /* 3 */ 0F, 0F, 0F, /* 4 */ 0F, 0F, 0F, /* 5 */ 0F, 0F, -24F, /* 6 */ 0F, 0F, -24F, /* 7 */ 0F, 0F, 0F);

    tailModel[1] = new ModelRendererTurbo(this, 512, 196, textureX, textureY); //Tail fin
    tailModel[1].addShapeBox(80F, 76F, -4F, 80, 48, 8, 0F, /* 0 */ 0F, 0F, 0F, /* 1 */ 0F, 0F, 0F, /* 2 */ 0F, 0F, 0F, /* 3 */ 0F, 0F, 0F, /* 4 */ -16F, 0F, 0F, /* 5 */ 0F, 0F, 0F, /* 6 */ 0F, 0F, 0F, /* 7 */ -16F, 0F, 0F);
     
    //Main helicopter rotors
    heliMainRotorModels = new ModelRendererTurbo[2][7];
   
    for(int j = 0; j < 2; j++)
    {
      heliMainRotorModels[j][0] = new ModelRendererTurbo(this, 624, 0, textureX, textureY); //Stalk bit
      heliMainRotorModels[j][0].addBox(-2F, 124F, -2F, 4, 8, 4)
     
      for(int i = 0; i < 3; i++)
      {
        heliMainRotorModels[j][i * 2 + 1] = new ModelRendererTurbo(this, 640, 0, textureX, textureY); //Blade connecting bit
        heliMainRotorModels[j][i * 2 + 1].addBox(0F, 132F, -2F, 8, 1, 4)
        heliMainRotorModels[j][i * 2 + 1].rotateAngleY = (float)Math.PI / 3F * i * 2F;
       
        heliMainRotorModels[j][i * 2 + 2] = new ModelRendererTurbo(this, 664, 0, textureX, textureY); //Blade
        heliMainRotorModels[j][i * 2 + 2].addBox(8F, 132F, -2F, 128, 1, 8)
        heliMainRotorModels[j][i * 2 + 2].rotateAngleY = (float)Math.PI / 3F * i * 2F;
      }   
    }
   
 
View Full Code Here

  int textureY = 32;

  public ModelPoliceHat()
  {
    headModel = new ModelRendererTurbo[9];
    headModel[0] = new ModelRendererTurbo(this, 0, 0, textureX, textureY);
    headModel[1] = new ModelRendererTurbo(this, 0, 12, textureX, textureY);
    headModel[2] = new ModelRendererTurbo(this, 0, 19, textureX, textureY);
    headModel[3] = new ModelRendererTurbo(this, 0, 23, textureX, textureY);
    headModel[4] = new ModelRendererTurbo(this, 28, 0, textureX, textureY);
    headModel[5] = new ModelRendererTurbo(this, 32, 7, textureX, textureY);
    headModel[6] = new ModelRendererTurbo(this, 31, 3, textureX, textureY);
    headModel[7] = new ModelRendererTurbo(this, 40, 3, textureX, textureY);
    headModel[8] = new ModelRendererTurbo(this, 30, 17, textureX, textureY);

    headModel[0].addBox(-4.5F, -8F, -4.5F, 9, 2, 9, 0F); // Box 0

    headModel[1].addShapeBox(-5.5F, -9F, -0.5F, 11, 1, 5, 0F,0F, 0.5F, -0.5F,0F, 0.5F, -0.5F,0F, 0F, 0F,0F, 0F, 0F,-0.5F, 0F, -0.5F,-0.5F, 0F, -0.5F,-0.5F, 0F, 0F,-0.5F, 0F, 0F); // Box 1
View Full Code Here

TOP

Related Classes of com.flansmod.client.tmt.ModelRendererTurbo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.