Hello everyone, this is my first post here and I hope I'm following all guidelines regarding how to ask questions on the forum.
I'm a Machine Learning Researcher and currently using ViZDoom as a platform for experiments with intelligent agents. I have this scenario called Health Gathering Supreme and I want to disable the sound that the player constantly emits because it is taking damage. I need this because I set other Things on the map to play sounds, and the task here is to find these objects by using the sound. However, since the player is always taking damage the noises get mixed up making the task of finding the correct sources harder than it should be.
I'm pretty new to Doom Editing, but I managed to place the new objects that I want on the map and also managed to make them emit different sounds. So as a player, I can hear them but also listen to myself "in pain" all the time.
On this topic, someone tried disabling another kind of sound, and the suggestion was to replace the "misc/secret" sound in the SNDINFO file with just an empty set of ". I tried the same, but I don't know exactly what is the equivalent of "misc/secret" that I have to disable.
Any suggestions or guidance will be much appreciated.
Thanks
How to disable specific sounds in some scenarios?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 2
- Joined: Mon May 29, 2023 3:45 pm
- Preferred Pronouns: He/Him
-
-
- Posts: 1805
- Joined: Sun Jul 21, 2019 8:54 am
Re: How to disable specific sounds in some scenarios?
You are looking for player sounds:
You can also use dsempty if you want no sound.
Code: Select all
$playersound player male *pain100 dsempty
$playersounddup player male *pain75 *pain100
$playersounddup player male *pain50 *pain100
$playersounddup player male *pain25 *pain100
-
- Posts: 2
- Joined: Mon May 29, 2023 3:45 pm
- Preferred Pronouns: He/Him
Re: How to disable specific sounds in some scenarios?
Jarewill wrote: ↑Mon May 29, 2023 4:10 pm You are looking for player sounds:You can also use dsempty if you want no sound.Code: Select all
$playersound player male *pain100 dsempty $playersounddup player male *pain75 *pain100 $playersounddup player male *pain50 *pain100 $playersounddup player male *pain25 *pain100
Hey, thanks for such a quick response! I tried including these in the SNDINFO file, but when I launch the wad I'm getting this error:
However, I noticed that there's also aExecution could not continue.
Script error, "health_gathering_supreme.wad:SNDINFO" line 2:
dsempty is not a player sound
Code: Select all
$volume soundname <volume>
-
-
- Posts: 1805
- Joined: Sun Jul 21, 2019 8:54 am
Re: How to disable specific sounds in some scenarios?
Did you also replace the *pain100 with dsempty?
$playersounddup works differently in that it doesn't take a pointer to the sound file, but instead it takes a pointer to another player sound.
It's used to keep two sounds the same without having to specify a path to the sound again.
$playersounddup works differently in that it doesn't take a pointer to the sound file, but instead it takes a pointer to another player sound.
It's used to keep two sounds the same without having to specify a path to the sound again.