From 738321805644df5b10aa44ae5f055bb5e8ce7a17 Mon Sep 17 00:00:00 2001 From: HbmMods Date: Wed, 27 Feb 2019 21:17:51 +0100 Subject: [PATCH] deagle --- assets/hbm/lang/de_DE.lang | 1 + assets/hbm/lang/en_US.lang | 1 + assets/hbm/textures/items/gun_deagle.png | Bin 0 -> 201 bytes com/hbm/handler/BulletConfigSyncingUtil.java | 8 ++ com/hbm/handler/guncfg/Gun50AEFactory.java | 95 +++++++++++++++++++ com/hbm/items/ModItems.java | 4 + com/hbm/main/CraftingManager.java | 1 + 7 files changed, 110 insertions(+) create mode 100644 assets/hbm/textures/items/gun_deagle.png create mode 100644 com/hbm/handler/guncfg/Gun50AEFactory.java diff --git a/assets/hbm/lang/de_DE.lang b/assets/hbm/lang/de_DE.lang index bd952251d..bc0a4e83d 100644 --- a/assets/hbm/lang/de_DE.lang +++ b/assets/hbm/lang/de_DE.lang @@ -1301,6 +1301,7 @@ item.gun_revolver_pip.name=Lil' Pipsqueak item.gun_revolver_nopip.name=Novac item.gun_revolver_blackjack.name=Blackjack Five-Shooter item.gun_revolver_red.name=Roter Schlüssel-Revolver +item.gun_deagle.name=Großes Eisen item.gun_calamity.name=Calamity item.gun_minigun.name=CZ53 Persönliche Minigun item.gun_avenger.name=CZ57 Avenger-Minigun diff --git a/assets/hbm/lang/en_US.lang b/assets/hbm/lang/en_US.lang index f4f836eca..5d36bbb02 100644 --- a/assets/hbm/lang/en_US.lang +++ b/assets/hbm/lang/en_US.lang @@ -1301,6 +1301,7 @@ item.gun_revolver_pip.name=Lil' Pipsqueak item.gun_revolver_nopip.name=Novac item.gun_revolver_blackjack.name=Blackjack Five-Shooter item.gun_revolver_red.name=Red Key Revolver +item.gun_deagle.name=Big Iron item.gun_calamity.name=Calamity item.gun_calamity_dual.name=Saddle Gun item.gun_minigun.name=CZ53 Personal Minigun diff --git a/assets/hbm/textures/items/gun_deagle.png b/assets/hbm/textures/items/gun_deagle.png new file mode 100644 index 0000000000000000000000000000000000000000..93ea0154a1ade51f9816fc2a908d7ddb7253ff14 GIT binary patch literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#Vf!s{`!3row%T7)@p;V-V-}m%7`{al68CbXaCA8EMZY*aY1@IDWo-?iOQ)QjeKW7@ xH_N1Z6(); + config.config.add(BulletConfigSyncingUtil.AE50_NORMAL); + config.config.add(BulletConfigSyncingUtil.AE50_AP); + config.config.add(BulletConfigSyncingUtil.AE50_DU); + + return config; + } + + static float inaccuracy = 0.0005F; + public static BulletConfiguration get50AEConfig() { + + BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig(); + + bullet.ammo = ModItems.ammo_50ae; + bullet.spread *= inaccuracy; + bullet.dmgMin = 15; + bullet.dmgMax = 18; + + return bullet; + } + + public static BulletConfiguration get50APConfig() { + + BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig(); + + bullet.ammo = ModItems.ammo_50ae_ap; + bullet.spread *= inaccuracy; + bullet.dmgMin = 20; + bullet.dmgMax = 22; + bullet.leadChance = 10; + bullet.wear = 15; + + return bullet; + } + + public static BulletConfiguration get50DUConfig() { + + BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig(); + + bullet.ammo = ModItems.ammo_50ae_du; + bullet.spread *= inaccuracy; + bullet.dmgMin = 24; + bullet.dmgMax = 28; + bullet.leadChance = 50; + bullet.wear = 25; + + return bullet; + } + +} diff --git a/com/hbm/items/ModItems.java b/com/hbm/items/ModItems.java index 6e88eab53..f97bc8bf8 100644 --- a/com/hbm/items/ModItems.java +++ b/com/hbm/items/ModItems.java @@ -7,6 +7,7 @@ import com.hbm.handler.guncfg.Gun20GaugeFactory; import com.hbm.handler.guncfg.Gun22LRFactory; import com.hbm.handler.guncfg.Gun357MagnumFactory; import com.hbm.handler.guncfg.Gun44MagnumFactory; +import com.hbm.handler.guncfg.Gun50AEFactory; import com.hbm.handler.guncfg.Gun50BMGFactory; import com.hbm.handler.guncfg.Gun5mmFactory; import com.hbm.handler.guncfg.Gun9mmFactory; @@ -906,6 +907,7 @@ public class ModItems { public static Item gun_revolver_blackjack; public static Item gun_revolver_red; public static Item gun_revolver_nopip_ammo; + public static Item gun_deagle; public static Item gun_calamity; public static Item gun_calamity_dual; public static Item gun_calamity_ammo; @@ -2378,6 +2380,7 @@ public class ModItems { gun_revolver_nopip = new ItemGunBase(Gun44MagnumFactory.getNovacConfig()).setMaxDamage(1000).setUnlocalizedName("gun_revolver_nopip").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_revolver_nopip"); gun_revolver_blackjack = new ItemGunBase(Gun44MagnumFactory.getBlackjackConfig()).setMaxDamage(1000).setUnlocalizedName("gun_revolver_blackjack").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_revolver_blackjack"); gun_revolver_red = new ItemGunBase(Gun44MagnumFactory.getRedConfig()).setMaxDamage(1000).setUnlocalizedName("gun_revolver_red").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_revolver_red"); + gun_deagle = new ItemGunBase(Gun50AEFactory.getDeagleConfig()).setUnlocalizedName("gun_deagle").setFull3D().setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_deagle"); gun_calamity_ammo = new ItemCustomLore().setUnlocalizedName("gun_calamity_ammo").setCreativeTab(null).setTextureName(RefStrings.MODID + ":gun_calamity_ammo"); gun_calamity = new ItemGunBase(Gun50BMGFactory.getCalamityConfig()).setUnlocalizedName("gun_calamity").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_calamity"); gun_calamity_dual = new ItemGunBase(Gun50BMGFactory.getSaddleConfig()).setUnlocalizedName("gun_calamity_dual").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_calamity_dual"); @@ -3976,6 +3979,7 @@ public class ModItems { GameRegistry.registerItem(gun_revolver_nopip, gun_revolver_nopip.getUnlocalizedName()); GameRegistry.registerItem(gun_revolver_blackjack, gun_revolver_blackjack.getUnlocalizedName()); GameRegistry.registerItem(gun_revolver_red, gun_revolver_red.getUnlocalizedName()); + GameRegistry.registerItem(gun_deagle, gun_deagle.getUnlocalizedName()); GameRegistry.registerItem(gun_calamity, gun_calamity.getUnlocalizedName()); GameRegistry.registerItem(gun_calamity_dual, gun_calamity_dual.getUnlocalizedName()); GameRegistry.registerItem(gun_minigun, gun_minigun.getUnlocalizedName()); diff --git a/com/hbm/main/CraftingManager.java b/com/hbm/main/CraftingManager.java index f04076c1d..480be845c 100644 --- a/com/hbm/main/CraftingManager.java +++ b/com/hbm/main/CraftingManager.java @@ -781,6 +781,7 @@ public class CraftingManager { //GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_revolver_lead_ammo, 16), new Object[] { "L", "S", "G", 'L', "paneGlass", 'S', ModItems.nuclear_waste, 'G', Items.gunpowder })); //GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_revolver_lead_ammo, 16), new Object[] { "L", "S", "G", 'L', "paneGlass", 'S', ModItems.trinitite, 'G', Items.gunpowder })); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_revolver_schrabidium, 1), new Object[] { "SSM", " RW", 'S', ModBlocks.block_schrabidium, 'W', "ingotTungsten", 'R', ModItems.wire_schrabidium, 'M', ModItems.mechanism_special })); + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_deagle, 1), new Object[] { "PPM", " BI", 'P', "plateSteel", 'B', ModItems.bolt_tungsten, 'I', "ingotPolymer", 'M', ModItems.mechanism_rifle_1 })); //GameRegistry.addRecipe(new ItemStack(ModItems.gun_revolver_schrabidium_ammo, 16), new Object[] { "L", "N", "S", 'L', ModItems.plate_schrabidium, 'S', Items.gunpowder, 'N', Items.nether_star }); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_revolver_cursed, 1), new Object[] { "TTM", "SRI", 'S', "plateSteel", 'I', "ingotSteel", 'R', ModItems.wire_red_copper, 'T', "plateTitanium", 'M', ModItems.mechanism_revolver_2 })); //GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.gun_revolver_cursed_ammo, 32), new Object[] { "L", "L", 'L', "plateSteel", 'S', Items.gunpowder }));