Blanking out default player sounds

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Blanking out default player sounds

Post by Ed the Bat »

This one has been a mild inconvenience for me for a long time... I know that a custom player can be given a soundclass, which I define in SNDINFO. However, even when I do this, sounds will still trickle in from the default soundclass ("fighter" in Hexen, "player" in all other games) whether I want them to or not.

Redefining them in the new soundclass will stop that from happening, but only if there's actually a soundbyte to use. If I don't have one (the custom character is meant to stay silent when trying to "use" a wall, for instance), then I have a problem. The default sound will sneak through, even if I try to define the given sound (for the custom character) with DSEMPTY, or with a soundbyte that doesn't actually exist (something like "null" when I have no such soundbyte in here). I could define it with a soundbyte that's silent, but that would cut off other sounds since only one sound can play on any given channel at once, regardless of if I hear it or not.

The only way I found to truly blank out these default sounds is to redefine them for "player" or "fighter", and that MOSTLY works for me, unless the game has a map or an actor that uses those sounds for something else -- those will become mute.

Is there another option I haven't explored?
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Blanking out default player sounds

Post by Ed the Bat »

I haven't made any major breakthroughs on this yet, but I've been somewhat suspicious all along that the way the skin code is implemented may be getting in my way. Of course, I also understand that the code for skins is something of a nightmarish mess, and it's beyond my capacities to lend a hand with fixing it... though I will say that I will fully support any endeavors to clean it up, if that becomes possible. :)
Locked

Return to “Editing (Archive)”