Player Death and Level Up Sounds, Cutscene Support (#383)

* Added Player death Sound
Added a ton of Level Up Sounds (Some I do not know)

* Added command to play "quicksongs"

* adjusted chat message to properly name the command

* Added Camera functionality for cutscenes
Added Camera shake functionality for cutscenes/barrows/anything else
Added Camera reset functionality to return the player to the normal player view
Added some details on what each added method does
Refactored some of the method names for uniformity

* Added some commands to test the cutscene/camera features that were added in PlayerAssistant.java

Co-authored-by: Qweqker <qweqker@mail.com>
Co-authored-by: Daniel Ginovker <dcress01@uoguelph.ca>
This commit is contained in:
authored and GitHub committed 2020-03-06 18:53:53 -05:00
1 parent e5799200d7
commit db58bc868b
3 files changed
+117 -1

No files matched your search

@@ -748,6 +748,27 @@ public class Commands implements PacketType {
public static void developerCommands(Player player, String playerCommand, String[] arguments) {
switch (playerCommand.toLowerCase()) {
case "quicksong":
try{
if (arguments.length == 0) {
player.getPacketSender().sendMessage("You must specify a quick song id: ::quicksong id");
return;
}
int song = Integer.parseInt(arguments[0]);
player.getPacketSender().sendQuickSong(song, 2); //delay of 2 to repeat at least once before returning to regular music
}catch(Exception e) {
player.getPacketSender().sendMessage("Sound could not be sent.");
}
break;
case"cameracutscene":
player.getPlayerAssistant().sendCameraCutscene(player.getX(), player.getY(),10,10, 10); //Test numbers
break;
case"camerashake":
player.getPlayerAssistant().sendCameraShake(1,9,1,9); //these are just test numbers
break;
case "camerareset":
player.getPlayerAssistant().sendCameraReset(); //Resets the camera to the normal player view
break;
case "clicktotele":
case "ctt": // alias
player.clickToTele = !player.clickToTele;