Music Change when Map Changes

  • Thread starter Thread starter SiOps
  • Start date Start date
S

SiOps

Guest
I have recently rented a game server and am running the latest Mani Admin Plugin. I know you can specify cvars like sv_gravity for each map on the server by naming a.cfg file after the specific map and placing it in /cfg/mani_admin_plugin/map_config. With Mani I am able to play a sound file when a user first joins the server, but it plays only that one sound for every map. So, I need to somehow specify a different sound file to play for every map.

Anyone have any ideas?
 
im pretty sure you can only do one sound.

also you realize that they will have to download every sound.
 
I'm fairly sure you could get a custom configuration for each level in Source, which could set a new target path for the sound to be played on connection, in Mani. You would have to add that to the same file you would change the gravity in, for each separate level. However, you would have to remove the entry in the original Mani configuration file, which specifies the target path for the connection sound that will be played, so that it may change for each level.

And what giant384 said. They would need each unique sound downloaded, too.
 
the entry in the original Mani configuration file

What entry would that be?

There is actionlist.txt included with Mani which contains:

Code:
//
// actionsoundlist.txt
//
// Place all your action sounds in this file
//
// This file uses aliases to define 
// the sound name, they must not be altered !!!
// 
// The second part on each line is the location
// and name of the file itself. You can change
// this to be wherever you want.
//
// In the example below I have commented out
// joinserver, roundstart and roundend. If you
// uncomment joinserver a sample I made will
// be played upon connection to a server. You will
// probably get bored with this quickly so replace
// it with your own :)
//
// Samples "joinserver.mp3", "startyourvoting.mp3" and
// "endofvote.mp3" were made by me (Mani) using FruityLoops
// and a nice VST plugin synth. The rest are from the
// core HL2 server installation.
//


"joinserver"		admin_plugin/actions/joinserver.mp3
"votestart"		admin_plugin/actions/startyourvoting.mp3
"voteend"		admin_plugin/actions/endofvote.mp3
//"roundstart"		admin_plugin/actions/roundstart.mp3
//"roundend"		admin_plugin/actions/roundend.mp3
"restrictedweapon"	admin_plugin/actions/restrictedweapon.wav

"joinserver" being the action I want to customize to play a different sound other than admin_plugin/actions/joinserver.mp3 every time.
As far as where the "joinserver" action is pointing/aliased to I don't know.
 
Back
Top