mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
the sludge
This commit is contained in:
parent
7916d76aca
commit
4a4606e6ed
@ -186,6 +186,24 @@ public class TileEntityMachineAssemblyFactory extends TileEntityMachineBase impl
|
||||
this.networkPackNT(100);
|
||||
} else {
|
||||
|
||||
if(MainRegistry.proxy.me().getDistance(xCoord , yCoord, zCoord) < 50) {
|
||||
if(audio == null) {
|
||||
audio = createAudioLoop();
|
||||
audio.startSound();
|
||||
} else if(!audio.isPlaying()) {
|
||||
audio = rebootAudio(audio);
|
||||
}
|
||||
audio.keepAlive();
|
||||
audio.updatePitch(0.75F);
|
||||
audio.updateVolume(this.getVolume(0.5F));
|
||||
|
||||
} else {
|
||||
if(audio != null) {
|
||||
audio.stopSound();
|
||||
audio = null;
|
||||
}
|
||||
}
|
||||
|
||||
for(TragicYuri animation : animations) animation.update(true || didProcess[0] ||didProcess[1] ||didProcess[2] ||didProcess[3]);
|
||||
|
||||
if(worldObj.getTotalWorldTime() % 20 == 0) {
|
||||
@ -546,6 +564,7 @@ public class TileEntityMachineAssemblyFactory extends TileEntityMachineBase impl
|
||||
if(saw) {
|
||||
state = ArmState.CUT;
|
||||
targetAngles[2] = -targetAngles[2];
|
||||
if(!muffled) MainRegistry.proxy.playSoundClient(xCoord, yCoord, zCoord, "hbm:block.assemblerCut", getVolume(0.5F), 1F + rand.nextFloat() * 0.25F);
|
||||
} else {
|
||||
state = ArmState.RETRACT;
|
||||
targetAngles[3] = 0D;
|
||||
|
||||
@ -72,6 +72,7 @@
|
||||
"block.assemblerStrike": {"category": "block", "sounds": ["block/assemblerStrike1", "block/assemblerStrike2"]},
|
||||
"block.assemblerStart": {"category": "block", "sounds": [{"name": "block/assemblerStart", "stream": false}]},
|
||||
"block.assemblerStop": {"category": "block", "sounds": [{"name": "block/assemblerStop", "stream": false}]},
|
||||
"block.assemblerCut": {"category": "block", "sounds": [{"name": "block/assemblerCut", "stream": false}]},
|
||||
|
||||
"door.TransitionSealOpen": {"category": "block", "sounds": [{"name": "block/door/transition_seal_open", "stream": true}]},
|
||||
"door.wghStart": {"category": "block", "sounds": [{"name": "block/door/wgh_start", "stream": true}]},
|
||||
|
||||
BIN
src/main/resources/assets/hbm/sounds/block/assemblerCut.ogg
Normal file
BIN
src/main/resources/assets/hbm/sounds/block/assemblerCut.ogg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user