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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...