You know 'starttrack xx' changes the music within the level etc to any music you desire.
But is it possible to make it "perma" changed until you quit the level etc.
Like if you save / reload the point you saved the track will be back to the default track of that level.
But is it possible to make it "not restore to default" track from loading last saved game if it was set before you saved.
Like a 'setvar varname xx' doesn't reset to default when you load saved game if it was set before you saved.
Can we do the same behavior with music (starttrack).?
Page 1 of 1
About starttrack etc.
#1 Posted 25 June 2015 - 04:57 PM
#2 Posted 28 June 2015 - 01:08 AM
Actually, music already persists across map/EDuke32 restarts for user maps, which was introduced in r4589. We could have that for all maps, I guess, but I'm not sure. For usermaps, you have the situation that either
For "vanilla" maps or those that are part of an episode, it's a bit different: usually, you'd have custom music that sets the mood for a given level, and restoring a player-set one on load may be undesirable. Of course, if it's scripting code that issued the request, it's another matter. But in this case, you could just keep that state yourself and call starttrackvar at a location that's reached shortly after a savegame load.
- no custom music is provided and you as a player change it to something better than DETHTOLL, or
- you don't like the music packaged with the usermap.
For "vanilla" maps or those that are part of an episode, it's a bit different: usually, you'd have custom music that sets the mood for a given level, and restoring a player-set one on load may be undesirable. Of course, if it's scripting code that issued the request, it's another matter. But in this case, you could just keep that state yourself and call starttrackvar at a location that's reached shortly after a savegame load.
#3 Posted 28 June 2015 - 06:09 AM
The map is E4L11 and it has its own "Default" music not deathtoll song.
its music is defined in user.con (random track)
And then in duke3d.def
its music is defined in user.con (random track)
And then in duke3d.def
This post has been edited by Zaxtor: 28 June 2015 - 06:09 AM
Share this topic:
Page 1 of 1