[Not a bug] Player sounds played by non-players use default sound class

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Player sounds played by non-players use default sound class

Postby Player701 » Fri Aug 27, 2021 10:52 am

Not sure if bug or feature suggestion - depends on whether the current behavior is intentional or not.

It seems that whenever the engine attempts to play a player sound originating from something other than a PlayerPawn (e.g. monsters, console commands), it will always use the first defined sound class ("player" in Doom and "fighter" in Hexen) when selecting which sound to play. It would probably make more sense to use the sound class of the console player instead, which would make things like this possible without gross hacks (not sure if that can even be done at all right now, probably only by rewriting the intermission screen code).

This can be easily reproduced in Hexen by selecting a player class other than fighter and typing a console command to play a player sound (e.g. playsound *death).

Tested in GZDoom 4.6.1.
User avatar
Player701
 
 
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Player sounds played by non-players use default sound cl

Postby Graf Zahl » Fri Aug 27, 2021 10:59 am

This is intended behavior and won't be changed. Who knows how many old mods this might break?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Player sounds played by non-players use default sound cl

Postby Player701 » Fri Aug 27, 2021 11:05 am

I don't know... The engine does seem to fall back to the default sound class if there is no sound definition for the current one, so the worst that could happen is that a few sounds would change.
User avatar
Player701
 
 
 
Joined: 13 May 2009
Location: Russia
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Player sounds played by non-players use default sound cl

Postby Graf Zahl » Fri Aug 27, 2021 12:39 pm

Changing things that have had defined behavior for 20 years is not a good idea.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 2 guests