mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 20:24:30 +00:00
Fixed Alex solid armwear
This commit is contained in:
1 parent
769a574210
commit
092592bd27
2 files changed
+121
-13
No files matched your search
@@ -114,13 +114,13 @@ public class ModelMPM extends ModelNPCMale{
|
||||
this.bipedRightArmWear = (new ModelScaleRenderer(this, 40, 32));
|
||||
this.bipedRightArmWear.addBox(-2.0F, -2.0F, -2.0F, 3, 12, 4, par1 + 0.25F);
|
||||
this.bipedRightArm.addChild(this.bipedRightArmWear);
|
||||
this.solidRightArmWear = new ModelLimbWear(this,"arm","right");
|
||||
this.solidRightArmWear = new ModelLimbWear(this,"arm","right","Alex");
|
||||
this.bipedRightArm.addChild(this.solidRightArmWear);
|
||||
|
||||
this.bipedLeftArmwear = new ModelScaleRenderer(this, 48, 48);
|
||||
this.bipedLeftArmwear.addBox(-1.0F, -2.0F, -2.0F, 3, 12, 4, par1 + 0.25F);
|
||||
this.bipedLeftArm.addChild(this.bipedLeftArmwear);
|
||||
this.solidLeftArmWear = new ModelLimbWear(this,"arm","left");
|
||||
this.solidLeftArmWear = new ModelLimbWear(this,"arm","left","Alex");
|
||||
this.bipedLeftArm.addChild(this.solidLeftArmWear);
|
||||
}
|
||||
else{
|
||||
@@ -136,13 +136,13 @@ public class ModelMPM extends ModelNPCMale{
|
||||
this.bipedRightArmWear = (new ModelScaleRenderer(this, 40, 32));
|
||||
this.bipedRightArmWear.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, par1 + 0.25F);
|
||||
this.bipedRightArm.addChild(this.bipedRightArmWear);
|
||||
this.solidRightArmWear = new ModelLimbWear(this,"arm","right");
|
||||
this.solidRightArmWear = new ModelLimbWear(this,"arm","right","Steve");
|
||||
this.bipedRightArm.addChild(this.solidRightArmWear);
|
||||
|
||||
this.bipedLeftArmwear = new ModelScaleRenderer(this, 48, 48);
|
||||
this.bipedLeftArmwear.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, par1 + 0.25F);
|
||||
this.bipedLeftArm.addChild(this.bipedLeftArmwear);
|
||||
this.solidLeftArmWear = new ModelLimbWear(this,"arm","left");
|
||||
this.solidLeftArmWear = new ModelLimbWear(this,"arm","left","Steve");
|
||||
this.bipedLeftArm.addChild(this.solidLeftArmWear);
|
||||
}
|
||||
|
||||
@@ -157,13 +157,13 @@ public class ModelMPM extends ModelNPCMale{
|
||||
this.bipedRightLegWear = (new ModelScaleRenderer(this, 0, 32));
|
||||
this.bipedRightLegWear.addBox(-2.08F, 0.0F, -2.0F, 4, 12, 4, par1 + 0.25F);
|
||||
this.bipedRightLeg.addChild(this.bipedRightLegWear);
|
||||
this.solidRightLegWear = new ModelLimbWear(this,"leg","right");
|
||||
this.solidRightLegWear = new ModelLimbWear(this,"leg","right","Steve");
|
||||
this.bipedRightLeg.addChild(this.solidRightLegWear);
|
||||
|
||||
this.bipedLeftLegWear = new ModelScaleRenderer(this, 0, 48);
|
||||
this.bipedLeftLegWear.addBox(-1.92F, 0.0F, -2.0F, 4, 12, 4, par1 + 0.25F);
|
||||
this.bipedLeftLeg.addChild(this.bipedLeftLegWear);
|
||||
this.solidLeftLegWear = new ModelLimbWear(this,"leg","left");
|
||||
this.solidLeftLegWear = new ModelLimbWear(this,"leg","left","Steve");
|
||||
this.bipedLeftLeg.addChild(this.solidLeftLegWear);
|
||||
|
||||
|
||||
|
||||
@@ -6,18 +6,32 @@ import noppes.npcs.client.model.util.Model2DRenderer;
|
||||
import noppes.npcs.client.model.util.ModelScaleRenderer;
|
||||
|
||||
public class ModelLimbWear extends ModelScaleRenderer {
|
||||
public ModelLimbWear(ModelBase base, String limb, String side) {
|
||||
public ModelLimbWear(ModelBase base, String limb, String side, String type) {
|
||||
super(base);
|
||||
|
||||
float thick = 0.55f;
|
||||
switch (limb){
|
||||
case "arm":
|
||||
switch (side){
|
||||
case "right":
|
||||
rightArm(base,thick);
|
||||
switch(type) {
|
||||
case "Steve":
|
||||
switch (side) {
|
||||
case "right":
|
||||
rightArm(base, thick);
|
||||
break;
|
||||
case "left":
|
||||
leftArm(base, thick);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "left":
|
||||
leftArm(base,thick);
|
||||
case "Alex":
|
||||
switch (side) {
|
||||
case "right":
|
||||
rightArmAlex(base, thick);
|
||||
break;
|
||||
case "left":
|
||||
leftArmAlex(base, thick);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -36,6 +50,100 @@ public class ModelLimbWear extends ModelScaleRenderer {
|
||||
|
||||
}
|
||||
|
||||
public void rightArmAlex(ModelBase base, float thick){
|
||||
float x = 0.95f;
|
||||
float y = -2.0f;
|
||||
|
||||
Model2DRenderer front = new Model2DRenderer(base, 44, 36, 3, 12, 64, 64);
|
||||
front.setRotationPoint(-3.39375f+x, 12.535f+y, -2.58f);
|
||||
front.setScale(0.96f,0.8175f);
|
||||
front.setThickness(thick);
|
||||
setRotation(front, 0, 0, 0);
|
||||
this.addChild(front);
|
||||
|
||||
Model2DRenderer back = new Model2DRenderer(base, 51, 36, 3, 12, 64, 64);
|
||||
back.setRotationPoint(0.44f+x, 12.535f+y, 2.58f);
|
||||
back.setScale(0.96f,0.8175f);
|
||||
back.setThickness(thick);
|
||||
setRotation(back, 0, (float)(Math.PI), 0);
|
||||
this.addChild(back);
|
||||
|
||||
Model2DRenderer right = new Model2DRenderer(base, 47, 36, 4, 12, 64, 64);
|
||||
right.setRotationPoint(0.45f+x, 12.55f+y, -2.55f);
|
||||
right.setScale(0.96f,0.82f);
|
||||
right.setThickness(thick);
|
||||
setRotation(right, 0, (float)(Math.PI/-2f), 0);
|
||||
this.addChild(right);
|
||||
|
||||
Model2DRenderer left = new Model2DRenderer(base, 40, 36, 4, 12, 64, 64);
|
||||
left.setRotationPoint(-3.405f+x, 12.55f+y, 2.55f);
|
||||
left.setScale(0.96f,0.82f);
|
||||
left.setThickness(thick);
|
||||
setRotation(left, 0, (float)(Math.PI/2f), 0);
|
||||
this.addChild(left);
|
||||
|
||||
Model2DRenderer top = new Model2DRenderer(base, 44, 32, 3, 4, 64, 64);
|
||||
top.setRotationPoint(-3.39375f+x, -0.6f+y, -2.55f);
|
||||
top.setScale(0.32f);
|
||||
top.setThickness(thick);
|
||||
setRotation(top, (float)(Math.PI / -2), 0, 0);
|
||||
this.addChild(top);
|
||||
|
||||
Model2DRenderer bottom = new Model2DRenderer(base, 47, 32, 3, 4, 64, 64);
|
||||
bottom.setRotationPoint(-3.39375f+x, 12.0f+y, -2.545f);
|
||||
bottom.setScale(0.32f);
|
||||
bottom.setThickness(thick);
|
||||
setRotation(bottom, (float)(Math.PI / -2), 0, 0);
|
||||
this.addChild(bottom);
|
||||
}
|
||||
|
||||
public void leftArmAlex(ModelBase base,float thick){
|
||||
float x = 1.95f;
|
||||
float y = -2.0f;
|
||||
|
||||
Model2DRenderer front = new Model2DRenderer(base, 44+8, 36+16, 3, 12, 64, 64);
|
||||
front.setRotationPoint(-3.39375f+x, 12.535f+y, -2.58f);
|
||||
front.setScale(0.96f,0.8175f);
|
||||
front.setThickness(thick);
|
||||
setRotation(front, 0, 0, 0);
|
||||
this.addChild(front);
|
||||
|
||||
Model2DRenderer back = new Model2DRenderer(base, 51+8, 36+16, 3, 12, 64, 64);
|
||||
back.setRotationPoint(0.44f+x, 12.535f+y, 2.58f);
|
||||
back.setScale(0.96f,0.8175f);
|
||||
back.setThickness(thick);
|
||||
setRotation(back, 0, (float)(Math.PI), 0);
|
||||
this.addChild(back);
|
||||
|
||||
Model2DRenderer right = new Model2DRenderer(base, 47+8, 36+16, 4, 12, 64, 64);
|
||||
right.setRotationPoint(0.45f+x, 12.55f+y, -2.55f);
|
||||
right.setScale(0.96f,0.82f);
|
||||
right.setThickness(thick);
|
||||
setRotation(right, 0, (float)(Math.PI/-2f), 0);
|
||||
this.addChild(right);
|
||||
|
||||
Model2DRenderer left = new Model2DRenderer(base, 40+8, 36+16, 4, 12, 64, 64);
|
||||
left.setRotationPoint(-3.405f+x, 12.55f+y, 2.55f);
|
||||
left.setScale(0.96f,0.82f);
|
||||
left.setThickness(thick);
|
||||
setRotation(left, 0, (float)(Math.PI/2f), 0);
|
||||
this.addChild(left);
|
||||
|
||||
Model2DRenderer top = new Model2DRenderer(base, 44+8, 32+16, 3, 4, 64, 64);
|
||||
top.setRotationPoint(-3.39375f+x, -0.6f+y, -2.55f);
|
||||
top.setScale(0.32f);
|
||||
top.setThickness(thick);
|
||||
setRotation(top, (float)(Math.PI / -2), 0, 0);
|
||||
this.addChild(top);
|
||||
|
||||
Model2DRenderer bottom = new Model2DRenderer(base, 47+8, 32+16, 3, 4, 64, 64);
|
||||
bottom.setRotationPoint(-3.39375f+x, 12.0f+y, -2.545f);
|
||||
bottom.setScale(0.32f);
|
||||
bottom.setThickness(thick);
|
||||
setRotation(bottom, (float)(Math.PI / -2), 0, 0);
|
||||
this.addChild(bottom);
|
||||
}
|
||||
|
||||
public void rightArm(ModelBase base, float thick){
|
||||
float x = 0.95f;
|
||||
float y = -2.0f;
|
||||
@@ -76,7 +184,7 @@ public class ModelLimbWear extends ModelScaleRenderer {
|
||||
this.addChild(top);
|
||||
|
||||
Model2DRenderer bottom = new Model2DRenderer(base, 48, 32, 4, 4, 64, 64);
|
||||
bottom.setRotationPoint(-4.5f+x, 12.0f+y, -2.525f);
|
||||
bottom.setRotationPoint(-4.5f+x, 12.0f+y, -2.545f);
|
||||
bottom.setScale(0.32f);
|
||||
bottom.setThickness(thick);
|
||||
setRotation(bottom, (float)(Math.PI / -2), 0, 0);
|
||||
|
||||
Reference in new issue
Block a user