mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
burst fire for the UAC pistol
This commit is contained in:
parent
16f710450c
commit
9e2d2dba01
@ -62,7 +62,7 @@ public class Gun45ACPFactory {
|
||||
config.firingMode = GunConfiguration.FIRE_MANUAL;
|
||||
config.reloadDuration = 10;
|
||||
config.firingDuration = 8;
|
||||
config.ammoCap = 16;
|
||||
config.ammoCap = 21;
|
||||
config.durability = 10000;
|
||||
config.reloadType = 1;
|
||||
config.allowsInfinity = true;
|
||||
@ -88,6 +88,27 @@ public class Gun45ACPFactory {
|
||||
.addKeyframe(new BusAnimationKeyframe(15, 0, 0, 10))
|
||||
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 40))));
|
||||
|
||||
//faster version of the main one, so it doesn't cut out much on the bursts
|
||||
config.animations.put(AnimType.ALT_CYCLE, new BusAnimation()
|
||||
.addBus("SLIDE", new BusAnimationSequence()
|
||||
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 5))// Wait for hammer
|
||||
.addKeyframe(new BusAnimationKeyframe(0, 0, -3.5, 20))// Slide back
|
||||
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 20)))// Return
|
||||
.addBus("HAMMER", new BusAnimationSequence()
|
||||
.addKeyframe(new BusAnimationKeyframe(15, 0, 0, 5))
|
||||
.addKeyframe(new BusAnimationKeyframe(0, 0, 0, 20))));
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
public static GunConfiguration getUACPistolBurstConfig() {
|
||||
GunConfiguration config = getUACPistolConfig();
|
||||
config.rateOfFire = 5;
|
||||
config.roundsPerBurst = 3;
|
||||
config.firingDuration = 2;
|
||||
config.gunMode = GunConfiguration.MODE_NORMAL;
|
||||
config.firingMode = GunConfiguration.FIRE_BURST;
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
||||
@ -4229,8 +4229,8 @@ public class ModItems {
|
||||
gun_glass_cannon = new ItemEnergyGunBase(GunPoweredFactory.getGlassCannonConfig()).setFull3D().setUnlocalizedName("gun_glass_cannon").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_darter");
|
||||
gun_m2 = new ItemGunBase(Gun50BMGFactory.getM2Config()).setFull3D().setUnlocalizedName("gun_m2").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":gun_darter");
|
||||
gun_lunatic_marksman = new ItemGunBase(Gun50BMGFactory.getLunaticMarksman()).setFull3D().setUnlocalizedName("gun_lunatic_marksman").setCreativeTab(MainRegistry.weaponTab);
|
||||
gun_uac_pistol = new ItemGunBase(Gun45ACPFactory.getUACPistolConfig()).setFull3D().setUnlocalizedName("gun_uac_pistol").setCreativeTab(MainRegistry.weaponTab);
|
||||
|
||||
gun_uac_pistol = new ItemGunBase(Gun45ACPFactory.getUACPistolConfig(), Gun45ACPFactory.getUACPistolBurstConfig()).setFull3D().setUnlocalizedName("gun_uac_pistol").setCreativeTab(MainRegistry.weaponTab);
|
||||
|
||||
ToolMaterial matCrucible = EnumHelper.addToolMaterial("CRUCIBLE", 10, 3, 50.0F, 100.0F, 0);
|
||||
crucible = new ItemCrucible(5000, 1F, matCrucible).setUnlocalizedName("crucible").setCreativeTab(MainRegistry.weaponTab).setTextureName(RefStrings.MODID + ":crucible");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user