Skip to content

Commit 2c4013d

Browse files
committed
Fix incorrect models
1 parent 349c948 commit 2c4013d

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

run/Flan/WW2 Pack/guns/Type99.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Deployable True
3030
//All the following is for deployables only. Other guns do not need any of this
3131
//-----------------------------------------------------------------------------
3232
//Place the compiled model class in the models folder
33-
DeployedModel ww2.Bren
33+
DeployedModel ww2.Type99
3434
//Place the texture .png in the skins folder
3535
DeployedTexture Type99
3636
//The length from the bipod to the trigger of the gun. Deployables only.

src/main/java/com/flansmod/client/model/mw/ModelLeopard2A6.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class ModelLeopard2A6 extends ModelVehicle //Same as Filename
1313
{
14-
int textureX = 2048;
14+
int textureX = 4096;
1515
int textureY = 4096;
1616

1717
public ModelLeopard2A6() //Same as Filename
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.flansmod.client.model.ww2;
2+
3+
import com.flansmod.client.model.ModelMG;
4+
import com.flansmod.client.tmt.ModelRendererTurbo;
5+
6+
public class ModelType99 extends ModelMG
7+
{
8+
public ModelType99()
9+
{
10+
bipodModel = new ModelRendererTurbo[2];
11+
bipodModel[0] = new ModelRendererTurbo(this, 0, 0);
12+
bipodModel[0].addBox(0F, 0F, 0F, 1, 8, 1);
13+
bipodModel[0].rotateAngleZ = 3.14159265F / 4F;
14+
bipodModel[0].setRotationPoint(5.66F, 0F, 0F);
15+
bipodModel[1] = new ModelRendererTurbo(this, 0, 0);
16+
bipodModel[1].addBox(-1F, 0F, 0F, 1, 8, 1);
17+
bipodModel[1].rotateAngleZ = -3.14159265F / 4F;
18+
bipodModel[1].setRotationPoint(-5.66F, 0F, 0F);
19+
20+
gunModel = new ModelRendererTurbo[3];
21+
gunModel[0] = new ModelRendererTurbo(this, 0, 0);
22+
gunModel[0].addBox(-1F, -1F, -2F, 2, 2, 16);
23+
gunModel[0].setRotationPoint(0F, 6F, 0F);
24+
gunModel[1] = new ModelRendererTurbo(this, 4, 0);
25+
gunModel[1].addBox(-1F, -4F, 8F, 2, 3, 2);
26+
gunModel[1].setRotationPoint(0F, 6F, 0F);
27+
gunModel[2] = new ModelRendererTurbo(this, 0, 18);
28+
gunModel[2].addBox(-0.5F, -0.5F, -8F, 1, 1, 6);
29+
gunModel[2].setRotationPoint(0F, 6F, 0F);
30+
31+
ammoModel = new ModelRendererTurbo[2];
32+
ammoModel[0] = new ModelRendererTurbo(this, 4, 5);
33+
ammoModel[0].addBox(0F, 1F, 5F, 1, 3, 2);
34+
ammoModel[0].setRotationPoint(0F, 6F, 0F);
35+
ammoModel[1] = new ModelRendererTurbo(this, 4, 5);
36+
ammoModel[1].addBox(0F, 4F, 4.5F, 1, 2, 2);
37+
ammoModel[1].setRotationPoint(0F, 6F, 0F);
38+
}
39+
}

0 commit comments

Comments
 (0)