From 34af1369ec914cc114f59a5d7b09c5e8d0c401a0 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:47:50 -0500 Subject: [PATCH] Add force radio stream and demo derby sound cmds --- scripts/server/developer.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/scripts/server/developer.js b/scripts/server/developer.js index 4fc7b72b..20c72031 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -483,4 +483,33 @@ function createAccountDataForNewServer(serverId) { } } +// =========================================================================== + +function streamAudioURLToAllPlayersCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let splitParams = params.split(" "); + let url = splitParams[0]; + let volume = splitParams[1]; + + playRadioStreamForPlayer(null, url, false, volume); + //https://www.dropbox.com/s/xw4m0y0guyzrwkk/lets-get-ready-to-rumble.ogg?dl=0 +} + +// =========================================================================== + +function streamEventStartToAllPlayersCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let volume = toInteger(params); + + playRadioStreamForPlayer(null, "https://dl.dropboxusercontent.com/s/xw4m0y0guyzrwkk/lets-get-ready-to-rumble.ogg", false, volume); +} + // =========================================================================== \ No newline at end of file