better vault sounds, lööps

This commit is contained in:
HbmMods 2018-09-09 21:11:06 +02:00
parent cf2bf0dc56
commit c4a9c47fb9
22 changed files with 183 additions and 37 deletions

View File

@ -1091,6 +1091,8 @@ item.tem_flakes.name=Tem Flakes
item.glowing_stew.name=Leuchtende Pilzsuppe
item.lemon.name="Zitrone"
item.definitelyfood.name=GarantiertKeinDreck-Marken Feldration
item.loops.name=Lüüps
item.loop_stew.name=Informatiker-Frühstück
tile.frozen_grass.name=Gefrorenes Gras
tile.frozen_dirt.name=Gefrorene Erde

View File

@ -1091,6 +1091,8 @@ item.tem_flakes.name=Tem Flakes
item.glowing_stew.name=Glowing Mushroom Stew
item.lemon.name="Lemon"
item.definitelyfood.name=TotallyNotDirt-Brand MRE
item.loops.name=Lööps
item.loop_stew.name=IT Breakfast
tile.frozen_grass.name=Frozen Grass
tile.frozen_dirt.name=Frozen Dirt

View File

@ -21,6 +21,8 @@
"block.reactorStop": {"category": "block", "sounds": [{"name": "block/reactorStop", "stream": false}]},
"block.vaultScrape": {"category": "block", "sounds": [{"name": "block/vaultScrape", "stream": false}]},
"block.vaultThud": {"category": "block", "sounds": [{"name": "block/vaultThud", "stream": false}]},
"block.vaultScrapeNew": {"category": "block", "sounds": [{"name": "block/vaultScrapeNew", "stream": false}]},
"block.vaultThudNew": {"category": "block", "sounds": [{"name": "block/vaultThudNew", "stream": false}]},
"item.techBleep": {"category": "player", "sounds": [{"name": "tool/techBleep", "stream": false}]},
"item.techBoop": {"category": "player", "sounds": [{"name": "tool/techBoop", "stream": false}]},

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

View File

@ -835,6 +835,8 @@ public class ModItems {
public static Item glowing_stew;
public static Item lemon;
public static Item definitelyfood;
public static Item loops;
public static Item loop_stew;
public static Item med_ipecac;
public static Item med_ptsd;
@ -2073,6 +2075,8 @@ public class ModItems {
med_ipecac = new ItemLemon(0, 0, false).setUnlocalizedName("med_ipecac").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":med_ipecac_new");
med_ptsd = new ItemLemon(0, 0, false).setUnlocalizedName("med_ptsd").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":med_ptsd_new");
med_schizophrenia = new ItemLemon(0, 0, false).setUnlocalizedName("med_schizophrenia").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":med_schizophrenia_new");
loops = new ItemLemon(4, 5, false).setUnlocalizedName("loops").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":loops");
loop_stew = new ItemLemon(10, 10, false).setUnlocalizedName("loop_stew").setCreativeTab(MainRegistry.consumableTab).setTextureName(RefStrings.MODID + ":loop_stew");
defuser = new Item().setUnlocalizedName("defuser").setMaxStackSize(1).setFull3D().setCreativeTab(MainRegistry.nukeTab).setTextureName(RefStrings.MODID + ":defuser");
@ -3610,6 +3614,8 @@ public class ModItems {
GameRegistry.registerItem(glowing_stew, glowing_stew.getUnlocalizedName());
GameRegistry.registerItem(lemon, lemon.getUnlocalizedName());
GameRegistry.registerItem(definitelyfood, definitelyfood.getUnlocalizedName());
GameRegistry.registerItem(loops, loops.getUnlocalizedName());
GameRegistry.registerItem(loop_stew, loop_stew.getUnlocalizedName());
GameRegistry.registerItem(med_ipecac, med_ipecac.getUnlocalizedName());
GameRegistry.registerItem(med_ptsd, med_ptsd.getUnlocalizedName());
//GameRegistry.registerItem(med_schizophrenia, med_schizophrenia.getUnlocalizedName());

View File

@ -5,6 +5,7 @@ import java.util.List;
import com.hbm.items.ModItems;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
@ -49,6 +50,21 @@ public class ItemLemon extends ItemFood {
list.add("...");
list.add("Better not take it.");
}
if(this == ModItems.med_schizophrenia) {
list.add("Makes the voices go away. Just for a while.");
list.add("");
list.add("...");
list.add("Better not take it.");
}
if(this == ModItems.loops) {
list.add("Brøther, may I have some lööps?");
}
if(this == ModItems.loop_stew) {
list.add("A very, very healthy breakfast.");
}
}
@ -64,6 +80,24 @@ public class ItemLemon extends ItemFood {
int z = 5 / o;
}
if(this == ModItems.loop_stew) {
player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 20 * 20, 1));
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 60 * 20, 2));
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 60 * 20, 1));
player.addPotionEffect(new PotionEffect(Potion.damageBoost.id, 20 * 20, 2));
}
}
public ItemStack onEaten(ItemStack p_77654_1_, World p_77654_2_, EntityPlayer p_77654_3_)
{
ItemStack sta = super.onEaten(p_77654_1_, p_77654_2_, p_77654_3_);
if(this == ModItems.loop_stew)
return new ItemStack(Items.bowl);
return sta;
}
}

View File

@ -1,15 +1,24 @@
package com.hbm.items.tool;
import java.util.List;
import java.util.Random;
import org.lwjgl.input.Keyboard;
import com.hbm.handler.FluidTypeHandler.FluidType;
import com.hbm.inventory.MachineRecipes;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
public class ItemAssemblyTemplate extends Item {
@ -899,6 +908,90 @@ public class ItemAssemblyTemplate extends Item {
list.add("0x334077-0x6A298F-0xDF3795-0x334077");
}
}
/*@Override
@SideOnly(Side.CLIENT)
public boolean requiresMultipleRenderPasses()
{
return true;
}
public int getRenderPasses(int metadata)
{
return 8;
}
IIcon[] overlays;
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister p_94581_1_)
{
super.registerIcons(p_94581_1_);
this.overlays = new IIcon[7];
for(int i = 0; i < 7; i++)
overlays[i] = p_94581_1_.registerIcon("hbm:assembly_template_" + i);
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIconFromDamageForRenderPass(int a, int b)
{
return b < 7 ? overlays[b] : super.getIconFromDamageForRenderPass(a, b);
}
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int layer)
{
if (layer == 7)
{
return 0xFFFFFF;
}
else if(layer < 7)
{
int j = colorFromSeed(getSeedFromMeta(stack.getItemDamage(), layer));
if (j < 0)
{
j = 0xFFFFFF;
}
return j;
}
return 0;
}
private int getSeedFromMeta(int i, int count) {
Random rand = new Random(i);
int cap = 11;
for(int j = 0; j < count - 1; j++)
rand.nextInt(cap);
return rand.nextInt(cap);
}
private int colorFromSeed(int i) {
switch(i) {
case 0: return 0x334077;
case 1: return 0x6A298F;
case 2: return 0xDF3795;
case 3: return 0xFF0000;
case 4: return 0x00FF00;
case 5: return 0x0000FF;
case 6: return 0xFFFF00;
case 7: return 0x00FFFF;
case 8: return 0x888888;
case 9: return 0xFFFFFF;
case 10: return 0x000000;
default: return 0xFFFFFF;
}
}*/
/*public Motif getColorMotifFromTemplate(EnumAssemblyTemplate temp) {

View File

@ -1,5 +1,6 @@
package com.hbm.items.tool;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.ArrayUtils;
@ -14,7 +15,6 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChatComponentText;
import net.minecraft.world.World;
import scala.actors.threadpool.Arrays;
public class ItemTurretChip extends ItemTurretBiometry {

View File

@ -1255,6 +1255,8 @@ public class CraftingManager {
GameRegistry.addRecipe(new ItemStack(ModBlocks.mine_fat, 1), new Object[] { "CDN", 'C', ModItems.circuit_targeting_tier2, 'D', ModItems.ducttape, 'N', ModItems.gun_fatman_ammo });
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.defuser, 1), new Object[] { " PS", "P P", " P ", 'P', "ingotPolymer", 'S', "plateSteel" }));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.syringe_taint), new Object[] { ModItems.bottle2_empty, ModItems.syringe_metal_empty, ModItems.ducttape, ModItems.powder_magic, "nuggetSchrabidium", Items.potionitem }));
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.loops), new Object[] { ModItems.flame_pony, Items.wheat, Items.sugar });
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.loop_stew), new Object[] { ModItems.loops, ModItems.can_smart, Items.bowl });
GameRegistry.addShapelessRecipe(new ItemStack(Items.paper, 1), new Object[] { new ItemStack(ModItems.assembly_template, 1, OreDictionary.WILDCARD_VALUE) });
GameRegistry.addShapelessRecipe(new ItemStack(Items.paper, 1), new Object[] { new ItemStack(ModItems.chemistry_template, 1, OreDictionary.WILDCARD_VALUE) });

View File

@ -20,6 +20,9 @@ public class RenderBomber extends Render {
GL11.glRotatef(p_76986_1_.prevRotationYaw + (p_76986_1_.rotationYaw - p_76986_1_.prevRotationYaw) * p_76986_9_ - 90.0F, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(90, 0F, 0F, 1F);
GL11.glRotatef(p_76986_1_.prevRotationPitch + (p_76986_1_.rotationPitch - p_76986_1_.prevRotationPitch) * p_76986_9_, 0.0F, 0.0F, 1.0F);
//ayy lmao
//GL11.glRotatef(System.currentTimeMillis() / 5 % 360, 1F, 0F, 0F);
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glDisable(GL11.GL_CULL_FACE);

View File

@ -53,11 +53,11 @@ public class RenderVaultDoor extends TileEntitySpecialRenderer {
if(tileEntity.state == 0)
timer = new double[] { 0, 0, 0, 0, 0 };
else if(tileEntity.state == 2)
timer = getAnimationFromSysTime(12500);
timer = getAnimationFromSysTime((2000 + 800 * 5));
else if(tileEntity.isOpening)
timer = getAnimationFromSysTime(System.currentTimeMillis() - tileEntity.sysTime);
else
timer = getAnimationFromSysTime(tileEntity.sysTime + 12500 - System.currentTimeMillis());
timer = getAnimationFromSysTime(tileEntity.sysTime + (2000 + 800 * 5) - System.currentTimeMillis());
GL11.glTranslated(-timer[0], 0, timer[1]);
@ -92,8 +92,10 @@ public class RenderVaultDoor extends TileEntitySpecialRenderer {
//x, z, roll
private static double[] getAnimationFromSysTime(long time) {
double pullOutDuration = 5000D;
double slideDuration = 1500D;
double pullOutDuration = 2000D;
double slideDuration = 800D;
//dura total = pullout + slide * 5
double diameter = 4.5D;
double circumference = diameter * Math.PI;

View File

@ -42,45 +42,45 @@ public class TileEntityVaultDoor extends TileEntity {
if(isOpening && state == 1) {
if(timer == 0)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultScrape", 1.0F, 1.0F);
if(timer == 110)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 130)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 150)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 170)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 190)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 210)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 230)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 249)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultScrapeNew", 1.0F, 1.0F);
if(timer == 45)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 55)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 65)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 75)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 85)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 95)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 105)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 115)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
}
if(!isOpening && state == 1) {
if(timer == 0)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 10)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 20)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 30)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 40)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 50)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 60)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 80)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 100)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 120)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
if(timer == 140)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThud", 1.0F, 1.0F);
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 70)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultThudNew", 1.0F, 1.0F);
if(timer == 150)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultScrape", 1.0F, 1.0F);
if(timer == 80)
this.worldObj.playSoundEffect(this.xCoord, this.yCoord, this.zCoord, "hbm:block.vaultScrapeNew", 1.0F, 1.0F);
}
if(state != 1) {
@ -88,7 +88,7 @@ public class TileEntityVaultDoor extends TileEntity {
} else {
timer++;
if(timer >= 250) {
if(timer >= 120) {
if(isOpening)
finishOpen();