remnants power armor
@ -1995,6 +1995,10 @@ public class ModItems {
|
|||||||
public static Item ajro_plate;
|
public static Item ajro_plate;
|
||||||
public static Item ajro_legs;
|
public static Item ajro_legs;
|
||||||
public static Item ajro_boots;
|
public static Item ajro_boots;
|
||||||
|
public static Item rpa_helmet;
|
||||||
|
public static Item rpa_plate;
|
||||||
|
public static Item rpa_legs;
|
||||||
|
public static Item rpa_boots;
|
||||||
public static Item bj_helmet;
|
public static Item bj_helmet;
|
||||||
public static Item bj_plate;
|
public static Item bj_plate;
|
||||||
public static Item bj_plate_jetpack;
|
public static Item bj_plate_jetpack;
|
||||||
@ -4875,6 +4879,23 @@ public class ModItems {
|
|||||||
ajro_legs = new ArmorAJRO(aMatAJR, 7, 2, RefStrings.MODID + ":textures/armor/starmetal_2.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) ajro_helmet).setUnlocalizedName("ajro_legs").setTextureName(RefStrings.MODID + ":ajro_legs");
|
ajro_legs = new ArmorAJRO(aMatAJR, 7, 2, RefStrings.MODID + ":textures/armor/starmetal_2.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) ajro_helmet).setUnlocalizedName("ajro_legs").setTextureName(RefStrings.MODID + ":ajro_legs");
|
||||||
ajro_boots = new ArmorAJRO(aMatAJR, 7, 3, RefStrings.MODID + ":textures/armor/starmetal_1.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) ajro_helmet).setUnlocalizedName("ajro_boots").setTextureName(RefStrings.MODID + ":ajro_boots");
|
ajro_boots = new ArmorAJRO(aMatAJR, 7, 3, RefStrings.MODID + ":textures/armor/starmetal_1.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) ajro_helmet).setUnlocalizedName("ajro_boots").setTextureName(RefStrings.MODID + ":ajro_boots");
|
||||||
|
|
||||||
|
rpa_helmet = new ArmorRPA(aMatAJR, 7, 0, RefStrings.MODID + ":textures/armor/starmetal_1.png", 2500000, 10000, 2000, 25).setMod(0.25F).setCap(6.0F).setThreshold(4F)
|
||||||
|
.setFireproof(true)
|
||||||
|
.enableVATS(true)
|
||||||
|
.setHasGeigerSound(true)
|
||||||
|
.setHasHardLanding(true)
|
||||||
|
.addEffect(new PotionEffect(Potion.jump.id, 20, 0))
|
||||||
|
.addEffect(new PotionEffect(Potion.damageBoost.id, 20, 0))
|
||||||
|
.setBlastProtection(0.25F)
|
||||||
|
.setStep("hbm:step.metal")
|
||||||
|
.setJump("hbm:step.iron_jump")
|
||||||
|
.setFall("hbm:step.iron_land")
|
||||||
|
.addResistance("monoxide", 0F)
|
||||||
|
.addResistance("fall", 0).setUnlocalizedName("rpa_helmet").setTextureName(RefStrings.MODID + ":rpa_helmet");
|
||||||
|
rpa_plate = new ArmorRPA(aMatAJR, 7, 1, RefStrings.MODID + ":textures/armor/starmetal_1.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) rpa_helmet).setUnlocalizedName("rpa_plate").setTextureName(RefStrings.MODID + ":rpa_plate");
|
||||||
|
rpa_legs = new ArmorRPA(aMatAJR, 7, 2, RefStrings.MODID + ":textures/armor/starmetal_2.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) rpa_helmet).setUnlocalizedName("rpa_legs").setTextureName(RefStrings.MODID + ":rpa_legs");
|
||||||
|
rpa_boots = new ArmorRPA(aMatAJR, 7, 3, RefStrings.MODID + ":textures/armor/starmetal_1.png", 2500000, 10000, 2000, 25).cloneStats((ArmorFSB) rpa_helmet).setUnlocalizedName("rpa_boots").setTextureName(RefStrings.MODID + ":rpa_boots");
|
||||||
|
|
||||||
ArmorMaterial aMatBJ = EnumHelper.addArmorMaterial("HBM_BLACKJACK", 150, new int[] { 3, 8, 6, 3 }, 100);
|
ArmorMaterial aMatBJ = EnumHelper.addArmorMaterial("HBM_BLACKJACK", 150, new int[] { 3, 8, 6, 3 }, 100);
|
||||||
aMatBJ.customCraftingMaterial = ModItems.plate_armor_lunar;
|
aMatBJ.customCraftingMaterial = ModItems.plate_armor_lunar;
|
||||||
bj_helmet = new ArmorBJ(aMatBJ, 7, 0, RefStrings.MODID + ":textures/armor/starmetal_1.png", 10000000, 10000, 1000, 100).setMod(0.25F).setCap(4.0F).setThreshold(4F)
|
bj_helmet = new ArmorBJ(aMatBJ, 7, 0, RefStrings.MODID + ":textures/armor/starmetal_1.png", 10000000, 10000, 1000, 100).setMod(0.25F).setCap(4.0F).setThreshold(4F)
|
||||||
@ -7702,6 +7723,10 @@ public class ModItems {
|
|||||||
GameRegistry.registerItem(ajro_plate, ajro_plate.getUnlocalizedName());
|
GameRegistry.registerItem(ajro_plate, ajro_plate.getUnlocalizedName());
|
||||||
GameRegistry.registerItem(ajro_legs, ajro_legs.getUnlocalizedName());
|
GameRegistry.registerItem(ajro_legs, ajro_legs.getUnlocalizedName());
|
||||||
GameRegistry.registerItem(ajro_boots, ajro_boots.getUnlocalizedName());
|
GameRegistry.registerItem(ajro_boots, ajro_boots.getUnlocalizedName());
|
||||||
|
GameRegistry.registerItem(rpa_helmet, rpa_helmet.getUnlocalizedName());
|
||||||
|
GameRegistry.registerItem(rpa_plate, rpa_plate.getUnlocalizedName());
|
||||||
|
GameRegistry.registerItem(rpa_legs, rpa_legs.getUnlocalizedName());
|
||||||
|
GameRegistry.registerItem(rpa_boots, rpa_boots.getUnlocalizedName());
|
||||||
GameRegistry.registerItem(bj_helmet, bj_helmet.getUnlocalizedName());
|
GameRegistry.registerItem(bj_helmet, bj_helmet.getUnlocalizedName());
|
||||||
GameRegistry.registerItem(bj_plate, bj_plate.getUnlocalizedName());
|
GameRegistry.registerItem(bj_plate, bj_plate.getUnlocalizedName());
|
||||||
GameRegistry.registerItem(bj_plate_jetpack, bj_plate_jetpack.getUnlocalizedName());
|
GameRegistry.registerItem(bj_plate_jetpack, bj_plate_jetpack.getUnlocalizedName());
|
||||||
|
|||||||
33
src/main/java/com/hbm/items/armor/ArmorRPA.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package com.hbm.items.armor;
|
||||||
|
|
||||||
|
import com.hbm.render.model.ModelArmorRPA;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import net.minecraft.client.model.ModelBiped;
|
||||||
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
public class ArmorRPA extends ArmorFSBPowered {
|
||||||
|
|
||||||
|
public ArmorRPA(ArmorMaterial material, int layer, int slot, String texture, long maxPower, long chargeRate, long consumption, long drain) {
|
||||||
|
super(material, layer, slot, texture, maxPower, chargeRate, consumption, drain);
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
ModelArmorRPA[] models;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot) {
|
||||||
|
|
||||||
|
if(models == null) {
|
||||||
|
models = new ModelArmorRPA[4];
|
||||||
|
|
||||||
|
for(int i = 0; i < 4; i++)
|
||||||
|
models[i] = new ModelArmorRPA(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
return models[armorSlot];
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -638,6 +638,7 @@ public class ResourceManager {
|
|||||||
public static final IModelCustom armor_fau = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/fau.obj"));
|
public static final IModelCustom armor_fau = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/fau.obj"));
|
||||||
public static final IModelCustom armor_dnt = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/dnt.obj"));
|
public static final IModelCustom armor_dnt = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/dnt.obj"));
|
||||||
public static final IModelCustom armor_steamsuit = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/steamsuit.obj"));
|
public static final IModelCustom armor_steamsuit = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/steamsuit.obj"));
|
||||||
|
public static final IModelCustom armor_remnant = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/remnant.obj"));
|
||||||
public static final IModelCustom armor_mod_tesla = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/mod_tesla.obj"));
|
public static final IModelCustom armor_mod_tesla = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/mod_tesla.obj"));
|
||||||
public static final IModelCustom armor_wings = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/murk.obj"));
|
public static final IModelCustom armor_wings = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/murk.obj"));
|
||||||
public static final IModelCustom armor_solstice = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/solstice.obj"));
|
public static final IModelCustom armor_solstice = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/armor/solstice.obj"));
|
||||||
@ -746,6 +747,11 @@ public class ResourceManager {
|
|||||||
public static final ResourceLocation steamsuit_chest = new ResourceLocation(RefStrings.MODID, "textures/armor/steamsuit_chest.png");
|
public static final ResourceLocation steamsuit_chest = new ResourceLocation(RefStrings.MODID, "textures/armor/steamsuit_chest.png");
|
||||||
public static final ResourceLocation steamsuit_arm = new ResourceLocation(RefStrings.MODID, "textures/armor/steamsuit_arm.png");
|
public static final ResourceLocation steamsuit_arm = new ResourceLocation(RefStrings.MODID, "textures/armor/steamsuit_arm.png");
|
||||||
|
|
||||||
|
public static final ResourceLocation rpa_helmet = new ResourceLocation(RefStrings.MODID, "textures/armor/rpa_helmet.png");
|
||||||
|
public static final ResourceLocation rpa_leg = new ResourceLocation(RefStrings.MODID, "textures/armor/rpa_leg.png");
|
||||||
|
public static final ResourceLocation rpa_chest = new ResourceLocation(RefStrings.MODID, "textures/armor/rpa_chest.png");
|
||||||
|
public static final ResourceLocation rpa_arm = new ResourceLocation(RefStrings.MODID, "textures/armor/rpa_arm.png");
|
||||||
|
|
||||||
public static final ResourceLocation mod_tesla = new ResourceLocation(RefStrings.MODID, "textures/armor/mod_tesla.png");
|
public static final ResourceLocation mod_tesla = new ResourceLocation(RefStrings.MODID, "textures/armor/mod_tesla.png");
|
||||||
|
|
||||||
public static final ResourceLocation wings_murk = new ResourceLocation(RefStrings.MODID, "textures/armor/wings_murk.png");
|
public static final ResourceLocation wings_murk = new ResourceLocation(RefStrings.MODID, "textures/armor/wings_murk.png");
|
||||||
|
|||||||
106
src/main/java/com/hbm/render/model/ModelArmorRPA.java
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
package com.hbm.render.model;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
|
import com.hbm.main.ResourceManager;
|
||||||
|
import com.hbm.render.loader.ModelRendererObj;
|
||||||
|
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
import net.minecraft.client.renderer.OpenGlHelper;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
|
public class ModelArmorRPA extends ModelArmorBase {
|
||||||
|
|
||||||
|
ModelRendererObj fan;
|
||||||
|
ModelRendererObj glow;
|
||||||
|
|
||||||
|
public ModelArmorRPA(int type) {
|
||||||
|
super(type);
|
||||||
|
|
||||||
|
head = new ModelRendererObj(ResourceManager.armor_remnant, "Head");
|
||||||
|
body = new ModelRendererObj(ResourceManager.armor_remnant, "Body");
|
||||||
|
fan = new ModelRendererObj(ResourceManager.armor_remnant, "Fan");
|
||||||
|
glow = new ModelRendererObj(ResourceManager.armor_remnant, "Glow");
|
||||||
|
leftArm = new ModelRendererObj(ResourceManager.armor_remnant, "LeftArm").setRotationPoint(-5.0F, 2.0F, 0.0F);
|
||||||
|
rightArm = new ModelRendererObj(ResourceManager.armor_remnant, "RightArm").setRotationPoint(5.0F, 2.0F, 0.0F);
|
||||||
|
leftLeg = new ModelRendererObj(ResourceManager.armor_remnant, "LeftLeg").setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||||
|
rightLeg = new ModelRendererObj(ResourceManager.armor_remnant, "RightLeg").setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||||
|
leftFoot = new ModelRendererObj(ResourceManager.armor_remnant, "LeftBoot").setRotationPoint(1.9F, 12.0F, 0.0F);
|
||||||
|
rightFoot = new ModelRendererObj(ResourceManager.armor_remnant, "RightBoot").setRotationPoint(-1.9F, 12.0F, 0.0F);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) {
|
||||||
|
|
||||||
|
setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
|
||||||
|
//body.copyTo(fan);
|
||||||
|
body.copyTo(glow);
|
||||||
|
|
||||||
|
GL11.glPushMatrix();
|
||||||
|
GL11.glShadeModel(GL11.GL_SMOOTH);
|
||||||
|
|
||||||
|
if(type == 0) {
|
||||||
|
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.rpa_helmet);
|
||||||
|
head.render(par7);
|
||||||
|
}
|
||||||
|
if(type == 1) {
|
||||||
|
|
||||||
|
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.rpa_arm);
|
||||||
|
leftArm.render(par7);
|
||||||
|
rightArm.render(par7);
|
||||||
|
|
||||||
|
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.rpa_chest);
|
||||||
|
body.render(par7);
|
||||||
|
|
||||||
|
/// START GLOW ///
|
||||||
|
float lastX = OpenGlHelper.lastBrightnessX;
|
||||||
|
float lastY = OpenGlHelper.lastBrightnessY;
|
||||||
|
GL11.glPushAttrib(GL11.GL_LIGHTING_BIT);
|
||||||
|
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240F, 240F);
|
||||||
|
GL11.glDisable(GL11.GL_LIGHTING);
|
||||||
|
glow.render(par7);
|
||||||
|
GL11.glEnable(GL11.GL_LIGHTING);
|
||||||
|
GL11.glPopAttrib();
|
||||||
|
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, lastX, lastY);
|
||||||
|
/// END GLOW ///
|
||||||
|
|
||||||
|
/// START FAN ///
|
||||||
|
GL11.glPushMatrix();
|
||||||
|
double px = 0.0625D;
|
||||||
|
GL11.glTranslatef(body.offsetX * (float) px, body.offsetY * (float) px, body.offsetZ * (float) px);
|
||||||
|
GL11.glTranslatef(body.rotationPointX * (float) px, body.rotationPointY * (float) px, body.rotationPointZ * (float) px);
|
||||||
|
|
||||||
|
if(body.rotateAngleZ != 0.0F) {
|
||||||
|
GL11.glRotatef(body.rotateAngleZ * (180F / (float) Math.PI), 0.0F, 0.0F, 1.0F);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(body.rotateAngleY != 0.0F) {
|
||||||
|
GL11.glRotatef(body.rotateAngleY * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(body.rotateAngleX != 0.0F) {
|
||||||
|
GL11.glRotatef(body.rotateAngleX * (180F / (float) Math.PI), 1.0F, 0.0F, 0.0F);
|
||||||
|
}
|
||||||
|
|
||||||
|
GL11.glTranslated(0, 4.875 * px, 0);
|
||||||
|
GL11.glRotated(-System.currentTimeMillis() / 2 % 360, 0, 0, 1);
|
||||||
|
GL11.glTranslated(0, -4.875 * px, 0);
|
||||||
|
fan.render(par7);
|
||||||
|
GL11.glPopMatrix();
|
||||||
|
/// END FAN ///
|
||||||
|
}
|
||||||
|
if(type == 2) {
|
||||||
|
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.rpa_leg);
|
||||||
|
leftLeg.render(par7);
|
||||||
|
rightLeg.render(par7);
|
||||||
|
}
|
||||||
|
if(type == 3) {
|
||||||
|
Minecraft.getMinecraft().renderEngine.bindTexture(ResourceManager.rpa_leg);
|
||||||
|
leftFoot.render(par7);
|
||||||
|
rightFoot.render(par7);
|
||||||
|
}
|
||||||
|
|
||||||
|
GL11.glShadeModel(GL11.GL_FLAT);
|
||||||
|
GL11.glPopMatrix();
|
||||||
|
}
|
||||||
|
}
|
||||||
4278
src/main/resources/assets/hbm/models/armor/remnant.obj
Normal file
BIN
src/main/resources/assets/hbm/textures/armor/base/rpa_arm.png
Normal file
|
After Width: | Height: | Size: 709 B |
BIN
src/main/resources/assets/hbm/textures/armor/base/rpa_chest.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/main/resources/assets/hbm/textures/armor/base/rpa_helmet.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
src/main/resources/assets/hbm/textures/armor/base/rpa_leg.png
Normal file
|
After Width: | Height: | Size: 706 B |
BIN
src/main/resources/assets/hbm/textures/armor/rpa_chest.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
src/main/resources/assets/hbm/textures/armor/rpa_helmet.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |