Jump to content
The Dark Mod Forums

One song ambience?


Deadlove

Recommended Posts

Is there way to set up a stereo ogg file to just play a song on repeat for the duration of a mission at a certain volume?

 

No other ambient music, just that one song.

 

Not ambient zone to zone, but set the zone for the ambient to be the entire map, so no matter where the player is, it only one song that plays uninterrupted for the entire duration of play time? Is this possible? How would go about to achieve this?

 

 

Link to comment
Share on other sites

Check the location system script. As long as you don't use the location entity you can just create a map script playing the ambient. If you need the location entity, you can also alter its script if needed so the ambient doesn't change if no new ambient is specified.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Check the location system script. As long as you don't use the location entity you can just create a map script playing the ambient. If you need the location entity, you can also alter its script if needed so the ambient doesn't change if no new ambient is specified.

 

Can the map script can be in a separate file from the mission pk4? There might be a desire for a third-party utility that packs an audio file and then launches TDM.

 

I played the Elder Scrolls games with the Thief G/2 and CoSaS soundtracks added to the game.

Link to comment
Share on other sites

If you only want a single ambient that never changes you don't need to mess around with scripts or location systems. Just create a single speaker with the looping ambient, set the volume appropriately and set the s_global spawnarg so that the volume doesn't change based on distance. You'll also need to make sure that the speaker radius is large enough to cover the entire map, since the default radius is fairly small.

  • Like 3
Link to comment
Share on other sites

If you only want a single ambient that never changes you don't need to mess around with scripts or location systems. Just create a single speaker with the looping ambient, set the volume appropriately and set the s_global spawnarg so that the volume doesn't change based on distance. You'll also need to make sure that the speaker radius is large enough to cover the entire map, since the default radius is fairly small.

 

Is it really that easy? I was imagining something of that nature, but never expected it to work on a common sense line of thinking.

Link to comment
Share on other sites

 

Is it really that easy? I was imagining something of that nature, but never expected it to work on a common sense line of thinking.

 

Yes, it is. A single ambient audible from everywhere is literally the easiest possible setup. Multiple speakers with fading distance-based ambients is the second simplest, and this is what was used in Doom 3. The complexity only appears when you want the Thief-style area-based ambients that are popular in Dark Mod missions.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
    • Ansome

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 2 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
×
×
  • Create New...