mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Friction Boots - semi-working
This commit is contained in:
1 parent
c3a1b6b3c5
commit
efe2502be1
9 files changed
+334
-14
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package mekanism.client.render;
|
||||
|
||||
import mekanism.client.model.ModelFrictionBoots;
|
||||
import mekanism.client.model.ModelGasMask;
|
||||
import mekanism.client.model.ModelJetpack;
|
||||
import mekanism.client.model.ModelScubaTank;
|
||||
@@ -35,8 +36,8 @@ public class ModelCustomArmor extends ModelBiped
|
||||
resetPart(bipedBody, 0, 0, 0);
|
||||
resetPart(bipedRightArm, 5, 2, 0);
|
||||
resetPart(bipedLeftArm, -5, 2, 0);
|
||||
resetPart(bipedRightLeg, 2, 12, 0);
|
||||
resetPart(bipedLeftLeg, -2, 12, 0);
|
||||
resetPart(bipedRightLeg, 0, 0, 0);
|
||||
resetPart(bipedLeftLeg, 0, 0, 0);
|
||||
|
||||
bipedHeadwear.cubeList.clear();
|
||||
bipedEars.cubeList.clear();
|
||||
@@ -64,6 +65,13 @@ public class ModelCustomArmor extends ModelBiped
|
||||
bipedBody.isHidden = false;
|
||||
bipedBody.showModel = true;
|
||||
}
|
||||
else if(modelType.armorSlot == 3)
|
||||
{
|
||||
bipedLeftLeg.isHidden = false;
|
||||
bipedLeftLeg.showModel = true;
|
||||
bipedRightLeg.isHidden = false;
|
||||
bipedRightLeg.showModel = true;
|
||||
}
|
||||
|
||||
setRotationAngles(f, f1, f2, f3, f4, size, entity);
|
||||
}
|
||||
@@ -137,6 +145,21 @@ public class ModelCustomArmor extends ModelBiped
|
||||
GL11.glTranslatef(0, 0, -0.05F);
|
||||
ArmorModel.gasMaskModel.render(0.0625F);
|
||||
}
|
||||
else if(biped.modelType == ArmorModel.FRICTIONBOOTS)
|
||||
{
|
||||
GL11.glScalef(0.99F, 0.99F, 0.99F);
|
||||
|
||||
if(partRender == biped.bipedLeftLeg)
|
||||
{
|
||||
GL11.glTranslatef(-0.1375F, -0.75F, 0);
|
||||
ArmorModel.frictionBootsModel.renderLeft(0.0625F);
|
||||
}
|
||||
else if(partRender == biped.bipedRightLeg)
|
||||
{
|
||||
GL11.glTranslatef(0.1375F, -0.75F, 0);
|
||||
ArmorModel.frictionBootsModel.renderRight(0.0625F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GL11.glPopMatrix();
|
||||
@@ -161,6 +184,10 @@ public class ModelCustomArmor extends ModelBiped
|
||||
{
|
||||
return partRender == biped.bipedBody;
|
||||
}
|
||||
else if(type.armorSlot == 3)
|
||||
{
|
||||
return partRender == biped.bipedLeftLeg || partRender == biped.bipedRightLeg;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -169,7 +196,8 @@ public class ModelCustomArmor extends ModelBiped
|
||||
{
|
||||
JETPACK(1, MekanismUtils.getResource(ResourceType.RENDER, "Jetpack.png")),
|
||||
SCUBATANK(1, MekanismUtils.getResource(ResourceType.RENDER, "ScubaSet.png")),
|
||||
GASMASK(0, MekanismUtils.getResource(ResourceType.RENDER, "ScubaSet.png"));
|
||||
GASMASK(0, MekanismUtils.getResource(ResourceType.RENDER, "ScubaSet.png")),
|
||||
FRICTIONBOOTS(3, MekanismUtils.getResource(ResourceType.RENDER, "FrictionBoots.png"));
|
||||
|
||||
public int armorSlot;
|
||||
public ResourceLocation resource;
|
||||
@@ -177,6 +205,7 @@ public class ModelCustomArmor extends ModelBiped
|
||||
public static ModelJetpack jetpackModel = new ModelJetpack();
|
||||
public static ModelGasMask gasMaskModel = new ModelGasMask();
|
||||
public static ModelScubaTank scubaTankModel = new ModelScubaTank();
|
||||
public static ModelFrictionBoots frictionBootsModel = new ModelFrictionBoots();
|
||||
|
||||
private ArmorModel(int i, ResourceLocation r)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user