Package com.flansmod.client.model.mw

Source Code of com.flansmod.client.model.mw.ModelM14

package com.flansmod.client.model.mw;

import com.flansmod.client.model.EnumAnimationType;
import com.flansmod.client.model.ModelGun;
import com.flansmod.client.tmt.ModelRendererTurbo;
import com.flansmod.common.vector.Vector3f;

public class ModelM14 extends ModelGun
{
  public ModelM14()
  {
    int textureX = 64;
    int textureY = 32;
   
    gunModel = new ModelRendererTurbo[10];
    gunModel[0] = new ModelRendererTurbo(this,  120, textureX, textureY); // gun1
    gunModel[1] = new ModelRendererTurbo(this,  06, textureX, textureY); // gun2
    gunModel[2] = new ModelRendererTurbo(this,  09, textureX, textureY); // gun3
    gunModel[3] = new ModelRendererTurbo(this,  014, textureX, textureY); // gun4
    gunModel[4] = new ModelRendererTurbo(this,  016, textureX, textureY); // gun5
    gunModel[5] = new ModelRendererTurbo(this,  018, textureX, textureY); // gun6
    gunModel[6] = new ModelRendererTurbo(this,  00, textureX, textureY); // gun7
   
    gunModel[8] = new ModelRendererTurbo(this,  616, textureX, textureY); // gun9
    gunModel[9] = new ModelRendererTurbo(this,  2024, textureX, textureY); // gun10
    gunModel[7] = new ModelRendererTurbo(this,  2221, textureX, textureY); // gun10

    gunModel[0].addBox(0F, 0F, 0F, 1, 3, 2, 0F); // gun1
    gunModel[0].setRotationPoint(0F, -7F, -1F);

    gunModel[1].addBox(0F, 0F, 0F, 3, 1, 2, 0F); // gun2
    gunModel[1].setRotationPoint(0F, -4F, -1F);

    gunModel[2].addBox(0F, 0F, 0F, 14, 3, 2, 0F); // gun3
    gunModel[2].setRotationPoint(7F, -3F, -1F);

    gunModel[3].addBox(0F, 0F, 0F, 5, 1, 1, 0F); // gun4
    gunModel[3].setRotationPoint(20F, -1.5F, -0.5F);

    gunModel[4].addBox(0F, 0F, 0F, 2, 1, 1, 0F); // gun5
    gunModel[4].setRotationPoint(21F, -2.8F, -0.5F);

    gunModel[5].addBox(0F, 0F, 0F, 9, 2, 2, 0F); // gun6
    gunModel[5].setRotationPoint(-2F, -3F, -1F);

    gunModel[6].addBox(0F, 0F, 0F, 4, 1, 2, 0F); // gun7
    gunModel[6].setRotationPoint(-2F, -1F, -1F);



    gunModel[8].addBox(0F, 0F, 0F, 1, 1, 1, 0F); // gun9
    gunModel[8].setRotationPoint(18.5F, 0F, -0.5F);

    gunModel[9].addBox(0F, 0F, 0F, 6, 2, 1, 0F); // gun10
    gunModel[9].setRotationPoint(9F, -3.2F, 0.2F);

    gunModel[7].addBox(0F, 0F, 0F, 6, 2, 1, 0F); // gun10
    gunModel[7].setRotationPoint(9F, -3.2F, -1.2F);   
   
    //Scope
    scopeAttachPoint = new Vector3f(0F / 16F, 6.25F / 16F, 0F);
   
    defaultScopeModel = new ModelRendererTurbo[1];
   
    defaultScopeModel[0] = new ModelRendererTurbo(this,  030, textureX, textureY); // gun8
    defaultScopeModel[0].addBox(0F, 0F, 0F, 3, 1, 1, 0F); // gun8
    defaultScopeModel[0].setRotationPoint(-1.5F, 0F, -0.5F);

    //defaultStock
    defaultStockModel = new ModelRendererTurbo[2];
    defaultStockModel[0] = new ModelRendererTurbo(this,  828, textureX, textureY); // gun2SHAPE
    defaultStockModel[1] = new ModelRendererTurbo(this,  2027, textureX, textureY); // gun2SHAPE

    defaultStockModel[0].addShapeBox(0F, 0F, 0F, 4, 2, 2, 0F, 0F, 1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 1F, 0F, 0F, -1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, -1F, 0F); //Test
    defaultStockModel[0].setRotationPoint(-6F, -3F, -1F);

    defaultStockModel[1].addShapeBox(0F, 0F, 0F, 5, 3, 2, 0F, 0F, 0F, 0F, 0F, -1F, 0F, 0F, -1F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F, 0F); //Test
    defaultStockModel[1].setRotationPoint(-11F, -5F, -1F);   
   
    stockAttachPoint = new Vector3f(1F / 16F, 4F / 16F, 0F);
   
    //Barrel   
    barrelAttachPoint = new Vector3f(25F / 16F, 5.25F / 16F, 0F);
   
    //Grip
    gripAttachPoint = new Vector3f(10F / 16F, 3F / 16F, 0F);

    //Bolt
    slideModel = new ModelRendererTurbo[1];
    slideModel[0] = new ModelRendererTurbo(this,  022, textureX, textureY); // bolt

    slideModel[0].addBox(0F, 0F, 0F, 5, 1, 1, 0F); // bolt
    slideModel[0].setRotationPoint(2F, -1.1F, -0.5F)
   
    //Ammo
    ammoModel = new ModelRendererTurbo[1];
    ammoModel[0] = new ModelRendererTurbo(this,  024, textureX, textureY); // Ammo

    ammoModel[0].addBox(0F, 0F, 0F, 3, 5, 1, 0F); // Ammo
    ammoModel[0].setRotationPoint(5F, -7F, -0.5F);
    ammoModel[0].rotateAngleZ = 0.06981317F

   
    gunSlideDistance = 0.2F;
    animationType = EnumAnimationType.BOTTOM_CLIP;
   
    translateAll(0, 6.25F, 0);
  }
}
TOP

Related Classes of com.flansmod.client.model.mw.ModelM14

TOP
Copyright © 2018 www.massapi.com. 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.