IPB

Welcome Guest ( Log In | Register )

> Custom music in a N-S game ?
Lyran
post Dec 15 2004, 04:58 AM
Post #1


Advanced Member
***

Group: Members
Posts: 60
Joined: 27-April 04
Member No.: 295



What's up guys.

I played a good number of Natural-Selection games where a few players would sometimes play a custom music, but it usually never lasts long.

For example, the icon that shows they're talking...well, it shows up, but it's a song playing, not the player talking. Some of you here surely saw that.

Some with poor quality, others with great quality. It's never the same,

I'd like to know...

How is it possible to "play" either a part of a track or the whole length, while playing a game ?

Do I need to be the host of my own server (dedicated or not) ?

I'm not sure, but I think some of the cases when I saw that were just unknown players, playing for fun of course, and they were not hosts or anything important to the server. Just a normal player. And I've seen cases where the host would play (with usually very good quality) many songs in a row.

There's even one time where a random guy in the Marines team started to play The Imperial March (the famous Darth Vader theme from Star Wars) during the assault on a last Hive...and the Aliens could also hear it ! laugh.gif

Everyone liked it, it created some kind of a adrenaline rush for us (Marines), and they didn't last longer than expected.

I would like to play some decent songs, or just some funny ones.

Like, the infamous Banana Phone ! laugh.gif

But I don't know how.

Would I need to change the format to something specific ? Do I need to put it/them (the track(s)) in a specific folder ? Etc...

I would like to know.

Thanks guys.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
LordSkitch
post Dec 16 2004, 10:38 PM
Post #2


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



It's not really designed for a listen server, I dunno what kinda consequences it'd take on that, but what can cause hangs is if you're telling the cache thing to send the wrong file, I had my upload file formatted wrong and it made it so nobody could join.

Anyhow, the SMA files are the source code for the AMX thing, if you drop them in the \amx\examples folder, you can run compile.bat to compile them all...

My sounds.cfg, minus a few, looks like this

CODE
pd_sound "jesus" "sound/jesuschrist.wav"
pd_sound "fun"  "sound/fun2.wav"
pd_sound "meow"  "sound/cat.wav"
pd_sound "hiss"  "sound/co_kestrel/catticked.wav"
pd_sound "laser" "sound/laser3.wav"
pd_sound "lazer" "sound/laser3.wav"
pd_sound "banana" "sound/banana.wav"
pd_sound "stick it" "sound/betcha2.wav"


and the

\config\master_sound_dl_list.cfg looks like this
CODE
#ALL
jesuschrist.wav
fun2.wav
cat.wav
laser3.wav
banana.wav
betcha2.wav



heres my modules.ini
CODE
; AMX Modules
; You can specify both linux & win32 modules here

; CS Stats
;addons/amx/dlls/csstats_mm.dll
;addons/amx/dlls/csstats_mm_i386.so

; More functions for modifications in HL
addons/amx/dlls/fun_mm.dll
;addons/amx/dlls/fun_mm_i386.so

; MySQL access
;addons/amx/dlls/mysql.dll
;addons/amx/dlls/mysql_i386.so

; NS2AMX access
addons/amx/dlls/mm_ns2amx.dll


and my plugins.ini
CODE
; AMX Mod plugins

admin.amx; admin base (required for any admin-related)
admincmd.amx; basic admin console commands
adminhelp.amx; help command for admin console commands
ps.amx; ps plugin
lerk2.amx  : re-enable spikes for lerks
teamres.amx  : show res for teammates
nscomandos.amx  : CS-like commands for ns
rate_manager.amx : rate manager for HL
psychosounds.amx : sound manager for HL
cache.amx  : file cacher for HL
rules.amx  : rules for NS


I pulled out the commented ones for brevity's sake



HLSS (if I remember correctly, which is pretty unlikely) drives sound through the in-game audio system. Most server administrators worth their salt use the speex audio codec now, because even at the highest bitrate its still like 1/2 of the miles codec. But the codec is very specifically designed for human speech frequencies, so when you try to pipe music in through it, it's gonna sound like a transformer singing with his head up his butt.

Anyone whos wanting to know how to enable speex rather than miles, put this in your server.cfg

sv_voicecodec voice_speex
sv_voicequality 5

For a chart for people who dont believe me..

sv_voicequality 1 - 2.4kbps - 7.5% of Miles
sv_voicequality 2 - 6.0kbps - 18.75% of Miles
sv_voicequality 3 - 8.0kbps - 25% of Miles
sv_voicequality 4 - 11.2kbps - 35% of Miles
sv_voicequality 5 - 15.2kbps - 47.5% of Miles

I'd only suggest using 4 or 5 for the voice quality, anything lower than that can get pretty funky.. But even on very low powered CPUs (500mhz), the conversion cost in CPU cycles is so negligable it's pretty much unnoticable.

And before you go try, sv_voicequality is a setting for speex, not miles, so they don't work under miles.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Lyran   Custom music in a N-S game ?   Dec 15 2004, 04:58 AM
LordSkitch   At www.amxmod.net you can get a couple plugins, th...   Dec 15 2004, 08:59 AM
link2002   it was HLSS (Half-Life Sound Selector) http://www...   Dec 15 2004, 09:10 AM
Lyran   Thanks Lord and link. I'll start with AMX and...   Dec 15 2004, 11:12 PM
Lyran   :o I got a problem guys. If I create a server wi...   Dec 16 2004, 01:56 AM
link2002   see your modules.ini from amx, it is loading any m...   Dec 16 2004, 09:17 AM
Sandman[SA]   WOW! This is a pretty tall order Lyran. Wher...   Dec 16 2004, 01:01 PM
Lyran   Hey thanks SandmanSA ! :D It works now :) ...   Dec 16 2004, 09:52 PM
link2002   To remove the pause thing only write "pausabl...   Dec 16 2004, 10:22 PM
LordSkitch   It's not really designed for a listen server, ...   Dec 16 2004, 10:38 PM
Lyran   Wow thanks again guys. Thanks link and Lord :D ...   Dec 16 2004, 11:32 PM
Sandman[SA]   In a listenserver, (LAN) when you open your consol...   Dec 16 2004, 11:45 PM
LordSkitch   With Psychosounds theres no real limitation on the...   Dec 16 2004, 11:52 PM
Lyran   :o Didn't know a Listen server always paused...   Dec 17 2004, 12:08 AM
LordSkitch   LOL well when you do that, anyone who joins the se...   Dec 17 2004, 12:19 AM
Lyran   Yes, yes I'm back. Ok...I've just tested...   Dec 17 2004, 01:04 AM
link2002   yes, it can be prevented :P you only need to cha...   Dec 17 2004, 01:17 AM
Lyran   :o I'm going to try that after posting thi...   Dec 17 2004, 01:44 AM
link2002   i already know my english is bad =(   Dec 17 2004, 01:46 AM
LordSkitch   :lol: Most of that is completely left-field stuff....   Dec 17 2004, 05:38 AM
Lyran   Ok ok. Everything is more clear now. Thanks LordS...   Dec 17 2004, 09:51 AM
Sandman[SA]   Ok Lyran. You said that you have the bananaphone ...   Dec 17 2004, 08:47 PM
Gruuunt   I think you would be better with the AMX ready roo...   Dec 18 2004, 06:07 PM
Sandman[SA]   I agree. I run this plugin on my server. It...   Dec 18 2004, 06:31 PM
LordSkitch   I threw that plugin on my server, but like every 1...   Dec 18 2004, 07:19 PM
Lyran   Cool. Hey I didn't take a look at my thread f...   Dec 18 2004, 07:29 PM
Sandman[SA]   Now let me get this strait, you installed rrmusi...   Dec 19 2004, 07:41 PM
LordSkitch   More often than not I type the orders, I type like...   Dec 19 2004, 08:46 PM
Sandman[SA]   140 wpm? Damn, that's pretty fast. I guess I...   Dec 20 2004, 03:13 AM
LordSkitch   I have my NS volume up high as hell, so the music ...   Dec 20 2004, 09:22 AM
Lyran   Hey what's up guys :D I just downloaded the...   Dec 24 2004, 02:26 AM
Sandman[SA]   You can open the .sma files with notepad.exe so yo...   Dec 24 2004, 04:51 AM
Gruuunt   Sandy you are a pro' Mate! ;)   Dec 24 2004, 04:32 PM
Lyran   Hell yeah he really is ! :lol: Dude, it wor...   Dec 24 2004, 07:38 PM
LordSkitch   Here ya go, its the one I use..   Dec 24 2004, 11:52 PM
Sandman[SA]   hehe, thx. I have been running and maintaining ...   Dec 25 2004, 06:06 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th July 2025 - 02:02 PM