Hunter sound improvements

Implemented setup, dismantle, and catching sound for bird snares
Implemented setup, dismantle, and catching sound for box traps
Implemented setup, dismantle, and catching sound for net traps
Implemented setup, dismantle, and catching sound for dead falls
Implemented setup and dismantle sound for rabbit snares
Implemented butterfly net swing sound
Implemented falconry fly and catch sound
Implemented noose sound when catching kebbits
Implemented setup, dismantle, catching, teasing, jumping over, and npc jumping over pitfall sound to pitfalls
Implemented appropriate player lock time to setting up net traps and deadfalls to avoid players from interrupting the action
Implemented appropriate player lock time to dismantling bird snares, box traps, net traps, rabbit snares and deadfalls to avoid players from interrupting the action
Implemented a new function to play sound at a location
This commit is contained in:
Zerken
2023-06-16 06:28:40 +00:00
committed by Ryan
parent 22776e7bb3
commit d04302c99f
8 changed files with 92 additions and 0 deletions
@@ -65,6 +65,18 @@ public class AudioManager {
send(new Audio(audioId, volume, delay), false);
}
/**
* Sends an audio packet.
* @param audioId the audio id.
* @param volume the volume.
* @param delay the delay.
* @param radius the distance the sound can be heard.
* @param loc the location.
*/
public void send(int audioId, int volume, int delay, int radius, Location loc) {
send(new Audio(audioId, volume, delay, radius), false, loc);
}
/**
* Sends an audio packet.
* @param audio the audio.