Skip to content

Commit

Permalink
Fix incorrect models
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLane committed Dec 24, 2018
1 parent 349c948 commit 2c4013d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run/Flan/WW2 Pack/guns/Type99.txt
Expand Up @@ -30,7 +30,7 @@ Deployable True
//All the following is for deployables only. Other guns do not need any of this
//-----------------------------------------------------------------------------
//Place the compiled model class in the models folder
DeployedModel ww2.Bren
DeployedModel ww2.Type99
//Place the texture .png in the skins folder
DeployedTexture Type99
//The length from the bipod to the trigger of the gun. Deployables only.
Expand Down
Expand Up @@ -11,7 +11,7 @@

public class ModelLeopard2A6 extends ModelVehicle //Same as Filename
{
int textureX = 2048;
int textureX = 4096;
int textureY = 4096;

public ModelLeopard2A6() //Same as Filename
Expand Down
39 changes: 39 additions & 0 deletions src/main/java/com/flansmod/client/model/ww2/ModelType99.java
@@ -0,0 +1,39 @@
package com.flansmod.client.model.ww2;

import com.flansmod.client.model.ModelMG;
import com.flansmod.client.tmt.ModelRendererTurbo;

public class ModelType99 extends ModelMG
{
public ModelType99()
{
bipodModel = new ModelRendererTurbo[2];
bipodModel[0] = new ModelRendererTurbo(this, 0, 0);
bipodModel[0].addBox(0F, 0F, 0F, 1, 8, 1);
bipodModel[0].rotateAngleZ = 3.14159265F / 4F;
bipodModel[0].setRotationPoint(5.66F, 0F, 0F);
bipodModel[1] = new ModelRendererTurbo(this, 0, 0);
bipodModel[1].addBox(-1F, 0F, 0F, 1, 8, 1);
bipodModel[1].rotateAngleZ = -3.14159265F / 4F;
bipodModel[1].setRotationPoint(-5.66F, 0F, 0F);

gunModel = new ModelRendererTurbo[3];
gunModel[0] = new ModelRendererTurbo(this, 0, 0);
gunModel[0].addBox(-1F, -1F, -2F, 2, 2, 16);
gunModel[0].setRotationPoint(0F, 6F, 0F);
gunModel[1] = new ModelRendererTurbo(this, 4, 0);
gunModel[1].addBox(-1F, -4F, 8F, 2, 3, 2);
gunModel[1].setRotationPoint(0F, 6F, 0F);
gunModel[2] = new ModelRendererTurbo(this, 0, 18);
gunModel[2].addBox(-0.5F, -0.5F, -8F, 1, 1, 6);
gunModel[2].setRotationPoint(0F, 6F, 0F);

ammoModel = new ModelRendererTurbo[2];
ammoModel[0] = new ModelRendererTurbo(this, 4, 5);
ammoModel[0].addBox(0F, 1F, 5F, 1, 3, 2);
ammoModel[0].setRotationPoint(0F, 6F, 0F);
ammoModel[1] = new ModelRendererTurbo(this, 4, 5);
ammoModel[1].addBox(0F, 4F, 4.5F, 1, 2, 2);
ammoModel[1].setRotationPoint(0F, 6F, 0F);
}
}

0 comments on commit 2c4013d

Please sign in to comment.