Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.flansmod.client.model.YourPackage;
- import com.flansmod.client.model.EnumAnimationType;
- import com.flansmod.client.model.ModelGun;
- import com.flansmod.client.tmt.ModelRendererTurbo;
- import com.flansmod.common.vector.Vector3f;
- import com.flansmod.client.tmt.Coord2D;
- import com.flansmod.client.tmt.Shape2D;
- public class ModelPlasmaPistol extends ModelGun
- {
- int textureX = 512;
- int textureY = 512;
- public ModelPlasmaPistol()
- {
- gunModel = new ModelRendererTurbo[1];
- gunModel[0] = new ModelRendererTurbo(this, 49, 1, textureX, textureY); // Box 10
- gunModel[0].addTrapezoid(3F, -13F, 0F, 5, 1, 1, 0F, 0.00F, ModelRendererTurbo.MR_BACK); // Box 10
- gunModel[0].setRotationPoint(-4F, 12F, 0F);
- gunModel[0].rotateAngleZ = -0.20943951F;
- defaultBarrelModel = new ModelRendererTurbo[2];
- defaultBarrelModel[0] = new ModelRendererTurbo(this, 1, 1, textureX, textureY); // Box 0
- defaultBarrelModel[1] = new ModelRendererTurbo(this, 33, 1, textureX, textureY); // Box 9
- defaultBarrelModel[0].addFlexBox(0F, 0F, 0F, 9, 1, 1, 0F, 0.00F, -2.00F, 0.00F, 0.00F, ModelRendererTurbo.MR_TOP); // Box 0
- defaultBarrelModel[0].setRotationPoint(1F, -4F, 0F);
- defaultBarrelModel[1].addFlexBox(6F, -4F, 0F, 5, 1, 1, 0F, 1.00F, 2.00F, 0.00F, 0F, ModelRendererTurbo.MR_TOP); // Box 9
- defaultBarrelModel[1].setRotationPoint(-1F, 7F, 0F);
- defaultBarrelModel[1].rotateAngleZ = 0.31415927F;
- defaultGripModel = new ModelRendererTurbo[1];
- defaultGripModel[0] = new ModelRendererTurbo(this, 25, 1, textureX, textureY); // Box 6
- defaultGripModel[0].addBox(1F, -2F, 0F, 1, 5, 1, 0F); // Box 6
- defaultGripModel[0].setRotationPoint(1F, -2F, 0F);
- defaultGripModel[0].rotateAngleZ = -0.2443461F;
- ammoModel = new ModelRendererTurbo[2];
- ammoModel[0] = new ModelRendererTurbo(this, 65, 1, textureX, textureY); // Box 12
- ammoModel[1] = new ModelRendererTurbo(this, 73, 1, textureX, textureY); // Box 13
- 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
- ammoModel[0].setRotationPoint(0F, -3F, 0F);
- ammoModel[0].rotateAngleZ = -0.2268928F;
- 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
- ammoModel[1].setRotationPoint(0F, -3F, 0F);
- ammoModel[1].rotateAngleZ = -0.54105207F;
- barrelAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
- stockAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
- scopeAttachPoint = new Vector3f(0F /16F, 0F /16F, 0F /16F);
- gripAttachPoint = new Vector3f(0 /16F, 0F /16F, 0F /16F);
- gunSlideDistance = 0F;
- animationType = EnumAnimationType.NONE;
- translateAll(0F, 0F, 0F);
- flipAll();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement