"disc Changer" Script...?
l0tus
Join Date: 2004-09-07 Member: 31492Members
<div class="IPBDescription">i.e. switching through MP3 directories</div> would it be possible to get a script that switches between at least two different MP3 directories (i.e. between marine/alien-themed directories) in·game? if so, could you follow the switch with a 'nexttrack' so that it starts up a song from that directory, and a 'developer/echo' combo stating which directory you're in?
Comments
If the former is true, then it would look something like this:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->//Toggle
alias mp3.1 "cl_musicsomethingorother /mp3/alien; nexttrack; alias mp3.t mp3.2"
alias mp3.2 "cl_musicsomethingorother /mp3/marine; nexttrack; alias mp3.t mp3.1"
alias mp3.t "mp3.1"
mp3.1
bind "F11" "mp3.t"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Obviously replacing the cl_musicsomethingorother with the real command, which I don't know off the top of my head.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->//Music Toggle
alias mp3.1 "cl_musicdirectory /mp3/alien; nexttrack; alias mp3.t mp3.2"
alias mp3.2 "cl_musicdirectory /mp3/marine; nexttrack; alias mp3.t mp3.1"
alias mp3.t "mp3.1"
mp3.1
bind "F11" "mp3.t"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Try that in userconfig.cfg. It will either work immediately or on mapchange. If it's on mapchange, I'm afraid that's the best you can do.