Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: PotzUK on October 16, 2006, 04:39:08 am
-
Would it be possible to add a second variable to the change-soundtrack sexp to be able to specify an alternate track?
For example.
I have a mission where I'm using my own music using the alternative music selection in the mission specs editor. The default is a standard FS2 track in case the player hasn't downloaded my music. In that mission I want to swap to another track that has a more suitable post-battle ambient, and then swap back to the previous.
However, the current change-soundtrack sexp would only work if the user has downloaded the custom music.
So instead of:
change-soundtrack
<mymusic>
could it be:
change-soundtrack
<standard_soundtrack>
<my_soundtrack>
?
-
Wouldn't it make sense to place the (if available) custom soundtrack first, followed by the default?
IE:
change-soundtrack ( "custom_soundtrack" "default_soundtrack" )
With it set to understand that if the first value data file is not found it then plays the secondary? (And assumes default if only one value data file is specified).
-
Yes, it would; but the $Substitute Music sections for briefing and event music have to be this way to work in both retail and SCP. Might as well make the sexp consistent.
-
I realise there's not going to be a great deal of demand for this, but if it could be included in the 'To Do' pile I'd appreciate it :yes: