Music insert
#2
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
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:
/music "path/file_name_without_extension" total_play_time_in_milliseconds command/code_block_to_execute_when_music_is_finished
The music must be in ".ogg" format and somewhere within your AC installation, AFAIK.

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".
Thanks given by:


Messages In This Thread
Music insert - by PuntyMario - 05 Dec 10, 04:14PM
RE: Music insert - by Bukz - 05 Dec 10, 04:41PM
RE: Music insert - by DEKiMA - 10 Dec 10, 01:34AM
RE: Music insert - by Ronald_Reagan - 10 Dec 10, 02:50AM
RE: Music insert - by V-Man - 10 Dec 10, 03:47AM
RE: Music insert - by PuntyMario - 11 Dec 10, 12:06PM