Jump to content
The Dark Mod Forums

"Silent" button available?


cvlw

Recommended Posts

Hello DR editing crew.

I have an editing situation where I would like a silent button such as atdm_mover_button without the click sound.

Might anyone know of a silent button or equivalent that already exists?  Is it possible to remove or disable the sound from an existing button?

I haven't figured out the trick to making this happen, yet.

Very much appreciated.

Clint

 

Link to comment
Share on other sites

I might have had success doing this:

 - Create the atdm_mover_button

 - Examine the entity

 - Select "Show Inherited Properties" checkbox

 - Change the arg snd_open to "nosound" (this creates a seemingly non-inherited snd_open arg.  Does this, then, override the inherited snd_open arg which doesn't change in DR?)

 

Thanks again.

Clint

Link to comment
Share on other sites

Hello! yeah you can use the following spawnargs:

"snd_open" "nosound" = when button is activated
"snd_close" "nosound" = when button reaches its destination (probably nosound by default)
"snd_move" "nosound  = when button is moving (usually a looping sound, probably nosound by default)

Just for future reference: "nosound" does not work for ambient tracks. Use "silence" instead. 

Link to comment
Share on other sites

20 hours ago, kingsal said:

Just for future reference: "nosound" does not work for ambient tracks. Use "silence" instead. 

Wouldn't it be better if only one "word" would be used for both? So "nosound" also for ambiant tracks?

 

33 minutes ago, cvlw said:

One of the things I really need to understand about myself is that, at the moment I desire to ask the forums about something, I am really only an hour away from solving it for myself.

Hopefully it helps someone else, but usually people ask these kind of questions in

 

  • Thanks 1
Link to comment
Share on other sites

17 hours ago, datiswous said:

Wouldn't it be better if only one "word" would be used for both? So "nosound" also for ambiant tracks?

It would, but they require different properties in the sound shader and therefore need unique names. The ambient tracks need a silent "buffer" sound  played when the player transitions from one location to the next. This prevents audio popping. 

  • Thanks 1
Link to comment
Share on other sites

To be technical about it, "nosound" is a script function to stop a speaker. "Silence" is an actual sound .wav file that plays nothing, so you can still have the speaker "play" an arbitrary .wav file, e.g., for the ambient system, then use that to easily not get a sound, as you might do in the popping case as mentioned... Or that was the theory. (The popping problem was fixed after I added that, but I was never 100% sure that was the fix that did it.)

But the issue in any event now is that now countless maps already use "silence" references in their location_settings spawnargs, and it's dicey changing things that mappers add themselves because they won't update with TDM changes, e.g, as opposed to using stock resources that automatically carry TDM changes with them into new versions.

  • Thanks 1

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

2 hours ago, demagogue said:

To be technical about it, "nosound" is a script function to stop a speaker. "Silence" is an actual sound .wav file that plays nothing, so you can still have the speaker "play" an arbitrary .wav file, e.g., for the ambient system, then use that to easily not get a sound, as you might do in the popping case as mentioned... Or that was the theory. (The popping problem was fixed after I added that, but I was never 100% sure that was the fix that did it.)

Oh interesting, I assumed nosound was an actual shader because it shows up as one in DR- I guess that's just a placeholder for the script. 

I know that using silence.ogg instead of silence_stereo.ogg for stereo ambient tracks used to mess up the bit rates.  I haven't tried removing the silence line all together to see if the popping effect still persists in 2.10. Good to know!

Link to comment
Share on other sites

21 hours ago, datiswous said:

Hopefully it helps someone else, but usually people ask these kind of questions in

 

Thanks for the direction.  I looked and then discovered how to search a specific topic in the forums, something I hadn't known prior to this.

Link to comment
Share on other sites

  

17 hours ago, kingsal said:

Oh interesting, I assumed nosound was an actual shader because it shows up as one in DR- I guess that's just a placeholder for the script. 

I know that using silence.ogg instead of silence_stereo.ogg for stereo ambient tracks used to mess up the bit rates.  I haven't tried removing the silence line all together to see if the popping effect still persists in 2.10. Good to know!

 

Oh nosound may be a sound shader too. I was working with "silence" the sound file & associated sound shader for my own project, and the function nosound in the code itself (where it means what I said). But if you saw nosound as a soundshader, then I'm sure you were right in what you saw, and if you want to know the difference, you could open up the soundshaders and see.

Also note that I worked on this stuff ages ago, so you don't have to trust everything I'm saying too much. 😝 I just get a kick when people talk about code I worked on and I want to talk about it.

Yeah the stereo issue came up later, and I'm glad somebody took care of it!

What do you see when you turn out the light? I can't tell you but I know that it's mine.

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

    • 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
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...