Duke4.net Forums: About starttrack etc. - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

About starttrack etc.

User is offline   Zaxtor 

#1

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).?
0

User is offline   Helixhorned 

  • EDuke32 Developer

#2

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
  • 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.
1

User is offline   Zaxtor 

#3

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

This post has been edited by Zaxtor: 28 June 2015 - 06:09 AM

0

User is offline   Zaxtor 

#4

PS.
got it to work.
thx
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options