Jump to content


Photo

One song ambience?


6 replies to this topic

#1 Deadlove

Deadlove

    Advanced Member

  • Member
  • PipPipPip
  • 978 posts

Posted 08 December 2015 - 03:19 PM

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?

 

 


Plastik Musik - Andrew Nathan Kite, Owner

plastikmusik33@gmail.com

http://www.facebook.com/plastikmusik /

http://www.youtube.com/plastikmusik

http://www.plastikmusik.bandcamp.com

 

 


#2 VanishedOne

VanishedOne

    Advanced Member

  • Member
  • PipPipPip
  • 735 posts

Posted 08 December 2015 - 04:52 PM

Probably a speaker with s_looping, s_global, s_music, s_omni; but you could also see whether the "music" spawnarg on worldspawn still works.


Some things I'm repeatedly thinking about...

- louder scream when you're dying


#3 Obsttorte

Obsttorte

    Scripting guru, Mapper

  • Active Developer
  • PipPipPipPipPip
  • 5244 posts

Posted 08 December 2015 - 04:56 PM

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
WIP's: Several. Although after playing Thief 4 I really wanna make a city mission.
Mapping and Scripting: Apples and Peaches
Sculptris Models and Tutorials: Obsttortes Models
My wiki articles: Obstipedia
Let's Map TDM YouTube playlist: ObstlerTube
Texture Blending in DR: DR ASE Blend Exporter

End of shameless self promotion.

#4 jaxa

jaxa

    Advanced Member

  • Member
  • PipPipPip
  • 1242 posts

Posted 09 December 2015 - 04:26 AM

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.



#5 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7409 posts

Posted 09 December 2015 - 05:32 AM

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.


  • Anderson, Deadlove and teh_saccade like this

#6 Deadlove

Deadlove

    Advanced Member

  • Member
  • PipPipPip
  • 978 posts

Posted 09 December 2015 - 07:14 AM

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.


Plastik Musik - Andrew Nathan Kite, Owner

plastikmusik33@gmail.com

http://www.facebook.com/plastikmusik /

http://www.youtube.com/plastikmusik

http://www.plastikmusik.bandcamp.com

 

 


#7 OrbWeaver

OrbWeaver

    Mod hero

  • Active Developer
  • PipPipPipPipPip
  • 7409 posts

Posted 09 December 2015 - 08:08 AM

 

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.


  • Anderson and Deadlove like this



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users