05 Dec 10, 04:14PM
hey guys. wondering if theres anyway to insert spawn music and background music while playing. ive always wanted to set it up like call of duty and such. it would make the game that much more entertaining for me
Music insert
|
05 Dec 10, 04:14PM
hey guys. wondering if theres anyway to insert spawn music and background music while playing. ive always wanted to set it up like call of duty and such. it would make the game that much more entertaining for me
Use the music command. If you want it to always be playing while you play (don't see why since without a script randomizing which song is played, I think it would get too repetitive and annoying) you can add it to alias mapstartalways so everytime a map is loaded the music starts to play.
ie [SELECT ALL] Code: if (strstr $mapstartalways music) [] [add2alias mapstartalways [music blahblahblahb...] The command uses 3 arguments, the first one being the only required one. They are as follows: [SELECT ALL] Code: /music "path/file_name_without_extension" total_play_time_in_milliseconds command/code_block_to_execute_when_music_is_finished As an example, take a look at the latest revision of tutorial.cfg, where the script loops the default flag grab music 5 times while the demo is playing via alias mapstartonce. (See line 5.) HTH! :) Edit: An easier alternative would be, use a media player in the background! :P Also, turns out you'll have to use the registermusic command first to register it before you can play it via the music command! See /config/sounds.cfg for example use of "registermusic".
10 Dec 10, 01:34AM
Is it possible to open a playlist this way?
10 Dec 10, 02:50AM
No, though if you look on akimbo you will find a "playlist" like script. I'll let V-Man give us a link.
10 Dec 10, 03:47AM
Assault Your Ears
Assault Your Ears (barebones, script only) It's rather complicated in terms of adding your own music, but it is a method for making a playlist indeed.
11 Dec 10, 12:06PM
thanks everyone for their info. ill see if i can put something together
|
« Next Oldest | Next Newest »
|