Added solid render option for bodywear

This commit is contained in:
luisc committed 2021-12-30 08:27:04 -06:00
1 parent de5f119fd7
commit a32db79a0b
4 files changed
+36 -26

No files matched your search

@@ -51,9 +51,9 @@ public class ModelMPM extends ModelNPCMale{
private ModelLegs legs;
private ModelScaleRenderer headwear;
// private ModelScaleRenderer bodywear;
// private ModelScaleRenderer armwear;
// private ModelScaleRenderer legwear;
private ModelScaleRenderer bodywear;
private ModelScaleRenderer armwear;
private ModelScaleRenderer legwear;
private ModelTail tail;
public ModelBase entityModel;
@@ -160,7 +160,7 @@ public class ModelMPM extends ModelNPCMale{
headwear = new ModelHeadwear(this);
legs = new ModelLegs(this, (ModelScaleRenderer)bipedRightLeg, (ModelScaleRenderer)bipedLeftLeg, 64, 64);
// bodywear = new ModelBodywear(this);
bodywear = new ModelBodywear(this);
this.bipedBody.addChild(breasts = new ModelBreasts(this, 64, 64));
if(!isArmor){
@@ -539,7 +539,24 @@ public class ModelMPM extends ModelNPCMale{
((ModelScaleRenderer)this.bipedBody).isHidden = entity.modelData.hideBody == 1;
// Hide Bodywear
((ModelScaleRenderer)this.bipedBodywear).isHidden = entity.modelData.bodywear != 1;
((ModelScaleRenderer)this.bipedBodywear).isHidden = entity.modelData.bodywear == 0;
if(bipedBodywear.showModel && !bipedBodywear.isHidden){
if(entity.modelData.bodywear == 1 || isArmor){
((ModelScaleRenderer)this.bipedBodywear).setConfig(entity.modelData.body,x,y,z);
((ModelScaleRenderer)this.bipedBodywear).render(f);
}
else if(entity.modelData.bodywear == 2){
this.bodywear.rotateAngleX = bipedBodywear.rotateAngleX;
this.bodywear.rotateAngleY = bipedBodywear.rotateAngleY;
this.bodywear.rotateAngleZ = bipedBodywear.rotateAngleZ;
this.bodywear.rotationPointX = bipedBodywear.rotationPointX;
this.bodywear.rotationPointY = bipedBodywear.rotationPointY;
this.bodywear.rotationPointZ = bipedBodywear.rotationPointZ;
this.bodywear.setConfig(entity.modelData.body,x,y,z);
this.bodywear.render(f);
}
}
((ModelScaleRenderer)this.bipedBody).setConfig(body,x,y,z);
((ModelScaleRenderer)this.bipedBody).render(f);