Q4 MP music

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
dnky
Posts: 188
Joined: Thu Nov 24, 2005 3:49 pm

Q4 MP music

Post by dnky »

For the project I am working on atm I could really do with adding global music to the level. Spooky organ music would underpin the atmosphere nicely. Adding the usual q3 key to world spawn doesnt seem to work, but then again there might be something wrong with my ogg file.
I can play my .ogg from inside the editor so I am guessing it's ok, but I really dont know much about this aspect of design.
Any ideas on how to do this?
Whatever....
dnky
Posts: 188
Joined: Thu Nov 24, 2005 3:49 pm

Post by dnky »

On reading sdk info, I'm guessing its a problem with the sound shader...not that that helps me much.
Whatever....
dnky
Posts: 188
Joined: Thu Nov 24, 2005 3:49 pm

Post by dnky »

Never mind solved my issues, thank you Kat.
Whatever....
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Post by obsidian »

Mind posting the solution for future reference?
dnky
Posts: 188
Joined: Thu Nov 24, 2005 3:49 pm

Post by dnky »

Sure.....
I found my music (under free licence) in mp3 format, used oggdrop to convert it to ogg vorbis format.
Placed the music in a 'sound' folder under the baseq4 folder.
Initially I tried creating a sound shader but for some reason Q4 wouldn't find the file properly, so on Kat's advice I referenced the sound file directly via the entity window.
In the editor I placed a speaker ent then added the following keys and values:
s_shader: sound/amiens.ogg
s_looping:1
s_global: 1
s_volume: 50

The ':' separates the key from the value and is not required.
Volume took a while to work out, even at 50 the music is a little quiet but suits the feel of my level. For effects sounds 50 would be way way too high.
Thats about it :)
Whatever....
Post Reply