Jump to content
  • 0

Suppress switch sound on push line activation type


smeghammer

Question

As the title says, I have a section of wall that has a PR activation type, that triggers a script. The script is activated fine (it raises the sector behind the line and plays a sound). I also get the default switch sound... I am using SW2SATYR, so I assume this is because I am using a switch texture. On testing with a non-switch texture, I don't get the switch sound.

 

Is there any way to disable the switch sound on pushing a SRnn (or S1nn I guess) textured line? (And should a push action make a switch sound at all?)

 

I'm using DIHF, and GZDoom 4.4.

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 1
13 minutes ago, smeghammer said:

Is there any way to disable the switch sound on pushing a SRnn (or S1nn I guess) textured line?

One way I can think of disabling the sound is by using 84:ACS_ExecuteWithResult and then at the beginning of the script, doing SetResultValue(FALSE), which will prevent the switch from animating and making a sound. (Note that ACS_ExecuteWithResult works similarly to ACS_ExecuteAlways, in that it allows multiple instances of a script to run simultaneously.)

 

20 minutes ago, smeghammer said:

(And should a push action make a switch sound at all?) 

Good question, in older versions of ZDoom push actions did not trigger the animation or sound. I don't know whether the current or the old behavior is correct.

 

Share this post


Link to post

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...