mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
nothing productive for today
This commit is contained in:
parent
f2b64a82fe
commit
66711f963e
@ -341,9 +341,7 @@ public class Orchestras {
|
|||||||
if(timer == 0) player.worldObj.playSoundAtEntity(player, "hbm:weapon.reload.revolverCock", 1F, 0.75F);
|
if(timer == 0) player.worldObj.playSoundAtEntity(player, "hbm:weapon.reload.revolverCock", 1F, 0.75F);
|
||||||
if(timer == 4) {
|
if(timer == 4) {
|
||||||
IMagazine mag = ctx.config.getReceivers(stack)[0].getMagazine(stack);
|
IMagazine mag = ctx.config.getReceivers(stack)[0].getMagazine(stack);
|
||||||
int ammo = mag.getAmount(stack);
|
int toEject = mag.getAmountAfterReload(stack) - mag.getAmount(stack);
|
||||||
int prev = mag.getAmountAfterReload(stack);
|
|
||||||
int toEject = prev - ammo;
|
|
||||||
SpentCasing casing = mag.getCasing(stack);
|
SpentCasing casing = mag.getCasing(stack);
|
||||||
for(int i = 0; i < toEject; i++) CasingCreator.composeEffect(player.worldObj, player, 0.625, -0.1875, -0.375D, -0.12, 0.18, 0, 0.01, casing.getName(), true, 60, 0.5D, 20);
|
for(int i = 0; i < toEject; i++) CasingCreator.composeEffect(player.worldObj, player, 0.625, -0.1875, -0.375D, -0.12, 0.18, 0, 0.01, casing.getName(), true, 60, 0.5D, 20);
|
||||||
}
|
}
|
||||||
@ -366,9 +364,7 @@ public class Orchestras {
|
|||||||
if(type == AnimType.INSPECT) {
|
if(type == AnimType.INSPECT) {
|
||||||
if(timer == 0) player.worldObj.playSoundAtEntity(player, "hbm:weapon.reload.revolverCock", 1F, 0.75F);
|
if(timer == 0) player.worldObj.playSoundAtEntity(player, "hbm:weapon.reload.revolverCock", 1F, 0.75F);
|
||||||
IMagazine mag = ctx.config.getReceivers(stack)[0].getMagazine(stack);
|
IMagazine mag = ctx.config.getReceivers(stack)[0].getMagazine(stack);
|
||||||
int ammo = mag.getAmount(stack);
|
int toEject = mag.getAmountAfterReload(stack) - mag.getAmount(stack);
|
||||||
int prev = mag.getAmountAfterReload(stack);
|
|
||||||
int toEject = prev - ammo;
|
|
||||||
if(timer == 4 && toEject <= 0) {
|
if(timer == 4 && toEject <= 0) {
|
||||||
SpentCasing casing = mag.getCasing(stack);
|
SpentCasing casing = mag.getCasing(stack);
|
||||||
for(int i = 0; i < toEject; i++) CasingCreator.composeEffect(player.worldObj, player, 0.625, -0.1875, -0.375D, -0.12, 0.18, 0, 0.01, casing.getName(), true, 60, 0.5D, 20);
|
for(int i = 0; i < toEject; i++) CasingCreator.composeEffect(player.worldObj, player, 0.625, -0.1875, -0.375D, -0.12, 0.18, 0, 0.01, casing.getName(), true, 60, 0.5D, 20);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user