Author Topic: music sexp tweak possible?  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

Offline PotzUK

  • 28
    • PyroPort
music sexp tweak possible?
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>

?

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: music sexp tweak possible?
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).
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: music sexp tweak possible?
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.

  

Offline PotzUK

  • 28
    • PyroPort
Re: music sexp tweak possible?
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: