Raised This Month: $12 Target: $400
 3% 

Help! Placing custom sounds to my server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dreadnaught
Junior Member
Join Date: Jun 2013
Old 06-09-2013 , 17:06   Help! Placing custom sounds to my server
Reply With Quote #1



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!
Dreadnaught is offline
Ade
I love purple
Join Date: May 2010
Old 06-10-2013 , 03:20   Re: Help! Placing custom sounds to my server
Reply With Quote #2

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?
__________________
Ade is offline
Dreadnaught
Junior Member
Join Date: Jun 2013
Old 06-11-2013 , 17:41   Re: Help! Placing custom sounds to my server
Reply With Quote #3

Quote:
Originally Posted by Ade View Post
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 ...
Dreadnaught is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 06-11-2013 , 19:11   Re: Help! Placing custom sounds to my server
Reply With Quote #4

Hey good people, i know nothing about sourcemod!
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-12-2013 , 03:17   Re: Help! Placing custom sounds to my server
Reply With Quote #5

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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-12-2013 at 03:23.
Powerlord is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 06-12-2013 , 20:34   Re: Help! Placing custom sounds to my server
Reply With Quote #6

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.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-12-2013 , 20:49   Re: Help! Placing custom sounds to my server
Reply With Quote #7

Quote:
Originally Posted by vman315 View Post
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.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Dreadnaught
Junior Member
Join Date: Jun 2013
Old 06-12-2013 , 20:56   Re: Help! Placing custom sounds to my server
Reply With Quote #8

Quote:
Originally Posted by Powerlord View Post
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?
Dreadnaught is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 06-12-2013 , 21:08   Re: Help! Placing custom sounds to my server
Reply With Quote #9

Quote:
Originally Posted by Powerlord View Post
The client sounds are now in a VPK file, so you can't overwrite them.
Good to know.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-12-2013 , 22:02   Re: Help! Placing custom sounds to my server
Reply With Quote #10

Quote:
Originally Posted by Dreadnaught View Post
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.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode