Here’s version 2 of my Dynamic Music thingy majig. Basically, it adds situation dependant background music to Quake. It doesn’t change how the game plays in any way.
When you fire or get hit, the music changes from ‘idle’ to ‘fight’. If you don’t fire or get hit for 30 seconds, the music returns to ‘idle’. If you die, the music changes to ‘dead’.
Simple, no? Well, no…to code, it was a lot harder than it sounds. Anywho, it’s working now. This isn’t a global thing – every player in the game can have his or her own music playing depending on the situation they are in. This can be played in Singleplayer or Multiplayer.
Full source is included – the files modified, that is. All additions are commented in some way. To find them, search for ‘music’. Only a coder would really be looking through this code (I’m guessing), so to them it will be fairly straight forward, I guess. To non-coders, however, it might be a little confusing…it confuses the heck out of me!
I am fairly sure this could be expanded fairly easily. You could add new music states without too many problems, and you can easily change the conditions for the music to change. If you wanted to, I dare say it would be incredibly easy to make map triggers that do it.
Download: Beyond the Darkness (0 downloads)