AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Help! Placing custom sounds to my server (https://forums.alliedmods.net/showthread.php?t=217978)

Dreadnaught 06-09-2013 17:06

Help! Placing custom sounds to my server
 
:3

Well, hello! It is the first time I create a new topic in this forum. My problem is this: I am trying to put different sounds to my server and does not work. Well, I've tried the dropbox and does not work, only the maps work. I tried using the sm_downloader and neither worked.

Anything, these are sounds that are modified, but I want them on my server:


sound/music/mvm_end_last_wave.wav
sound/music/mvm_end_mid_wave.wav
sound/music/mvm_end_tank_wave.wav
sound/music/mvm_end_wave.wav
sound/music/mvm_lost_wave.wav
sound/music/mvm_start_last_wave.wav
sound/music/mvm_start_mid_wave.wav
sound/music/mvm_start_tank_wave.wav
sound/music/mvm_start_wave.wav
sound/mvm/mvm_bomb_warning.wav
sound/mvm/mvm_player_died.wav
sound/mvm/mvm_tank_start.wav

If anyone could help me and teach, I will be very happy xD!

Ade 06-10-2013 03:20

Re: Help! Placing custom sounds to my server
 
from what i heard, u prolly need a plugin and/or file to force client to dl
how do u intend to play those sounds, kill events, say sounds?

Dreadnaught 06-11-2013 17:41

Re: Help! Placing custom sounds to my server
 
Quote:

Originally Posted by Ade (Post 1967975)
from what i heard, u prolly need a plugin and/or file to force client to dl
how do u intend to play those sounds, kill events, say sounds?


simply i just want to change the songs from mvm, a different song when a wave begins or when it ends ...

quark 06-11-2013 19:11

Re: Help! Placing custom sounds to my server
 
Hey good people, i know nothing about sourcemod! :)

Powerlord 06-12-2013 03:17

Re: Help! Placing custom sounds to my server
 
The problem is that clients already think they have those sounds.

I haven't tested it, but I suspect it uses the teamplay_broadcast_audio event. You can intercept this event, read its "sound" value, and broadcast a new sound manually (using SourceMod's EmitSoundToAll). Note that these sounds should have different names than the sounds they're replacing. Or be in a different directory.

The "sound" values for MvM things you've mentioned are:

"music.mvm_end_last_wave"
"music.mvm_end_mid_wave"
"music.mvm_end_tank_wave"
"music.mvm_end_wave"
"music.mvm_lost_wave"
"music.mvm_start_last_wave"
"music.mvm_start_mid_wave"
"music.mvm_start_tank_wave"
"music.mvm_start_wave"
"MVM.BombWarning"
"MVM.PlayerDied"
"MVM.TankStart"

These names are keys from the various game_sound files inside tf2_misc_dir.vpk. Specifically, from scripts/game_sounds_music.txt and scripts/game_sounds_mvm.txt. Valve uses these to store which channel, volume, pitch, soundlevel, and wave file to play in a single location. Only sounds broadcast to all players on a team are sent via teamplay_broadcast_audio... examples include the non-MvM lose and win sounds.

captaindeterprimary 06-12-2013 20:34

Re: Help! Placing custom sounds to my server
 
Change the name of the sound as well if they already exist, it will overwrite the clients sounds, and that's not a good thing to do.

Powerlord 06-12-2013 20:49

Re: Help! Placing custom sounds to my server
 
Quote:

Originally Posted by vman315 (Post 1969385)
Change the name of the sound as well if they already exist, it will overwrite the clients sounds, and that's not a good thing to do.

The client sounds are now in a VPK file, so you can't overwrite them.

Dreadnaught 06-12-2013 20:56

Re: Help! Placing custom sounds to my server
 
Quote:

Originally Posted by Powerlord (Post 1969052)
The problem is that clients already think they have those sounds.

I haven't tested it, but I suspect it uses the teamplay_broadcast_audio event. You can intercept this event, read its "sound" value, and broadcast a new sound manually (using SourceMod's EmitSoundToAll). Note that these sounds should have different names than the sounds they're replacing. Or be in a different directory.

The "sound" values for MvM things you've mentioned are:

"music.mvm_end_last_wave"
"music.mvm_end_mid_wave"
"music.mvm_end_tank_wave"
"music.mvm_end_wave"
"music.mvm_lost_wave"
"music.mvm_start_last_wave"
"music.mvm_start_mid_wave"
"music.mvm_start_tank_wave"
"music.mvm_start_wave"
"MVM.BombWarning"
"MVM.PlayerDied"
"MVM.TankStart"

These names are keys from the various game_sound files inside tf2_misc_dir.vpk. Specifically, from scripts/game_sounds_music.txt and scripts/game_sounds_mvm.txt. Valve uses these to store which channel, volume, pitch, soundlevel, and wave file to play in a single location. Only sounds broadcast to all players on a team are sent via teamplay_broadcast_audio... examples include the non-MvM lose and win sounds.

Looks like I got it. Well, if I change the name of these sounds, and put those names changed in game_sounds_mvm.txt, other players will download the music changed?

captaindeterprimary 06-12-2013 21:08

Re: Help! Placing custom sounds to my server
 
Quote:

Originally Posted by Powerlord (Post 1969391)
The client sounds are now in a VPK file, so you can't overwrite them.

Good to know.

Powerlord 06-12-2013 22:02

Re: Help! Placing custom sounds to my server
 
Quote:

Originally Posted by Dreadnaught (Post 1969394)
Looks like I got it. Well, if I change the name of these sounds, and put those names changed in game_sounds_mvm.txt, other players will download the music changed?

Nope, because other players will continue using their local copy. What you need to do is EmitSoundToAll your own sound when one of those would be broadcast.


All times are GMT -4. The time now is 09:14.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.