Play sounds

whitewolf

2009-02-01 08:14:27

I was curious if anyone could inform me on how to play sounds while in game?

In my head I would like to thing its as simple as putting a sound file in the game directory and binding it to a key , like +voicerecord, but I would assume it would be different since thats for voice activation.

badinfluence

2009-02-01 09:03:27

I think there's really only one way. That would be HLSS. Google it.

Paradox

2009-02-01 09:46:39

Just beware that spamming sounds will get you kicked out of some servers.

keefy

2009-02-01 15:55:09

Not sure if this is what you want but it is possible to play the songs fom HL2 if you have HL2 that is.

Someone called Mink came up with this music config I only added a way to bind the next song to a key.
F9 = show song list
F11 = start playing/ next song
F12 = Stop
Chenage the keys to your liking.

place the 2 files into your cfg directory and type "exec ms_music_aliases" or bind it to a key for easy access.
ms_music.zip
(2.14 KiB) Downloaded 6 times
play buttons/button10.wav I add this to the bottom of my cfg so I know its been executed.

Jelly Fox

2009-02-01 16:17:03

Keeper

2009-02-02 05:05:21

Put the sound/music in your sounds directory, then open your console and type "playgamesound song.mp3" and it will play.

nobody else will hear this song.

dbanimal

2009-02-06 01:35:00

I know about 99% of the DM community hates sounds but I was wondering what the name of that plugin is that plays a sound that everyone can hear just buy saying (text) something. Ex:

"lol" would play a laughing sound that everyone hears. Would this be event scripts or metamod or what, any ideas?

whitewolf

2009-02-06 19:26:34

thanks for the info everyone. im not to interested in playing hl2 music during game, but that's still good advice and I will most likely do it, just to try it. thanks.

I did the hlss thing. I did not like it. Ever since i put in it, my game crashes constantly, even when not trying to use songs. I do not like the idea of 3rd party scripts in my game files I suppose.

Keeper

2009-02-06 19:40:27

dbanimal wrote:I know about 99% of the DM community hates sounds but I was wondering what the name of that plugin is that plays a sound that everyone can hear just buy saying (text) something. Ex:

"lol" would play a laughing sound that everyone hears. Would this be event scripts or metamod or what, any ideas?
There are several ways, but I think most use eventscripts for this.