Advertisement
guitarplayer616

Plasma Pistol Flan's

Jun 11th, 2015
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.79 KB | None | 0 0
  1. package com.flansmod.client.model.YourPackage;
  2.  
  3. import com.flansmod.client.model.EnumAnimationType;
  4. import com.flansmod.client.model.ModelGun;
  5. import com.flansmod.client.tmt.ModelRendererTurbo;
  6. import com.flansmod.common.vector.Vector3f;
  7. import com.flansmod.client.tmt.Coord2D;
  8. import com.flansmod.client.tmt.Shape2D;
  9.  
  10. public class ModelPlasmaPistol extends ModelGun
  11. {
  12.     int textureX = 512;
  13.     int textureY = 512;
  14.  
  15.     public ModelPlasmaPistol()
  16.     {
  17.         gunModel = new ModelRendererTurbo[1];
  18.         gunModel[0] = new ModelRendererTurbo(this, 49, 1, textureX, textureY); // Box 10
  19.  
  20.         gunModel[0].addTrapezoid(3F, -13F, 0F, 5, 1, 1, 0F, 0.00F, ModelRendererTurbo.MR_BACK); // Box 10
  21.         gunModel[0].setRotationPoint(-4F, 12F, 0F);
  22.         gunModel[0].rotateAngleZ = -0.20943951F;
  23.  
  24.  
  25.         defaultBarrelModel = new ModelRendererTurbo[2];
  26.         defaultBarrelModel[0] = new ModelRendererTurbo(this, 1, 1, textureX, textureY); // Box 0
  27.         defaultBarrelModel[1] = new ModelRendererTurbo(this, 33, 1, textureX, textureY); // Box 9
  28.  
  29.         defaultBarrelModel[0].addFlexBox(0F, 0F, 0F, 9, 1, 1, 0F, 0.00F, -2.00F, 0.00F, 0.00F, ModelRendererTurbo.MR_TOP); // Box 0
  30.         defaultBarrelModel[0].setRotationPoint(1F, -4F, 0F);
  31.  
  32.         defaultBarrelModel[1].addFlexBox(6F, -4F, 0F, 5, 1, 1, 0F, 1.00F, 2.00F, 0.00F, 0F, ModelRendererTurbo.MR_TOP); // Box 9
  33.         defaultBarrelModel[1].setRotationPoint(-1F, 7F, 0F);
  34.         defaultBarrelModel[1].rotateAngleZ = 0.31415927F;
  35.  
  36.  
  37.         defaultGripModel = new ModelRendererTurbo[1];
  38.         defaultGripModel[0] = new ModelRendererTurbo(this, 25, 1, textureX, textureY); // Box 6
  39.  
  40.         defaultGripModel[0].addBox(1F, -2F, 0F, 1, 5, 1, 0F); // Box 6
  41.         defaultGripModel[0].setRotationPoint(1F, -2F, 0F);
  42.         defaultGripModel[0].rotateAngleZ = -0.2443461F;
  43.  
  44.  
  45.         ammoModel = new ModelRendererTurbo[2];
  46.         ammoModel[0] = new ModelRendererTurbo(this, 65, 1, textureX, textureY); // Box 12
  47.         ammoModel[1] = new ModelRendererTurbo(this, 73, 1, textureX, textureY); // Box 13
  48.  
  49.         ammoModel[0].addShapeBox(5F, -1F, 0F, 2, 1, 1, 0F,0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F); // Box 12
  50.         ammoModel[0].setRotationPoint(0F, -3F, 0F);
  51.         ammoModel[0].rotateAngleZ = -0.2268928F;
  52.  
  53.         ammoModel[1].addShapeBox(5F, -1F, 0F, 2, 1, 1, 0F,0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F, 0F, 1F, 0F); // Box 13
  54.         ammoModel[1].setRotationPoint(0F, -3F, 0F);
  55.         ammoModel[1].rotateAngleZ = -0.54105207F;
  56.  
  57.  
  58.  
  59.         barrelAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
  60.         stockAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
  61.         scopeAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
  62.         gripAttachPoint = new Vector3f(0 /16F, 0F /16F, 0F /16F);
  63.  
  64.         gunSlideDistance = 0F;
  65.         animationType = EnumAnimationType.NONE;
  66.  
  67.  
  68.         translateAll(0F, 0F, 0F);
  69.  
  70.  
  71.         flipAll();
  72.     }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement