Right now if I want to mute (never play any sounds for any reason) a monster from mod code, I have to do some combination of set its SeeSound DeathSound etc, override any functions eg special melee or attack functions that call something like A_PlaySound, or blank out any SNDINFO definitions for sounds they make (which renders those sounds silent for all contexts, not just the one actor).
It would be useful to be able to flag any specific actor as "muted", eg bMuted in ZScript, such that any sound they try to play, doesn't.
I'm not super familiar with the code path for actors playing sounds but the A_PlaySound definition in p_actionfunctions.cpp seems like the logical place to add the check for this new flag.
"Muted" actor flag
Remember, just because you request it, that doesn't mean you'll get it.
Moderator: GZDoom Developers
1 post
• Page 1 of 1
1 post
• Page 1 of 1
Return to “Feature Suggestions [GZDoom]”
Jump to
- Important Threads
- ↳ HELP! "Account is inactive!"
- ↳ Official ZDoom Community Rules
- ↳ Mod Download Broken? Request Reuploads Here
- ↳ Don't see your first post(s) here? DON'T PANIC
- ↳ Errors? Can't run that new mod? Your GZDoom or ZDoom may be too old!
- ↳ Official Discord Server
- ↳ New Password Requirements and Password Reset
- ↳ A quick notice about privacy (Re: Our efforts to combat spam)
- Official
- ↳ ZDoom (and related) News
- ↳ The Spotlight
- ↳ Developer Blog
- ↳ Rules and Forum Announcements
- Technical Issues
- ↳ Technical Issues
- ↳ Helpful Stickies
- GZDoom Development
- ↳ Bugs [GZDoom]
- ↳ Important Threads
- ↳ Please check the latest version (or dev builds) before reporting!
- ↳ Classic ("Carmack") Software Renderer Bugs
- ↳ OpenGL Renderer Bugs
- ↳ OpenGLES Renderer Bugs
- ↳ Vulkan Renderer Bugs
- ↳ Audio/Music Bugs
- ↳ LZDoom Bugs
- ↳ ZDoom.org Bugs
- ↳ On Hold Bugs
- ↳ On-Hold Softpoly Bugs
- ↳ Closed Bugs [GZDoom]
- ↳ Vintage Build Bugs
- ↳ SoftPoly2 Bugs
- ↳ Feature Suggestions [GZDoom]
- ↳ ZDoom.org Suggestions
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [GZDoom]
- Raze-Specific Stuff
- ↳ Raze
- ↳ News
- ↳ Raze (and ZDoom-related) News
- ↳ Technical Issues
- ↳ Technical Issues
- ↳ Raze Development
- ↳ Bugs [Raze]
- ↳ On Hold Bugs
- ↳ Closed Bugs [Raze]
- ↳ Feature Suggestions [Raze]
- ↳ Code Submissions
- ↳ On Hold Suggestions
- ↳ Closed Feature Suggestions [Raze]
- ↳ Discussion
- ↳ General
- ↳ Editing Help
- ↳ Scripting (Build)
- ↳ Mapping (Build)
- ↳ Tutorials (Build)
- ↳ Projects
- ↳ Projects
- ↳ Abandoned Projects
- Doom Editing Help
- ↳ Scripting
- ↳ Mapping
- ↳ Assets (and other stuff)
- ↳ Tutorials
- ↳ Programming and Compiling
- Discussion
- ↳ General
- ↳ Networking
- ↳ Legacy Discussion
- ↳ Off-Topic
- Projects
- ↳ Levels
- ↳ Gameplay Mods
- ↳ TCs, Full Games, and Other Projects
- ↳ Resources
- ↳ Requests
- ↳ Script Library
- ↳ Graphic/Audio Patches
- ↳ Shaders
- Software and Ports
- ↳ Launchers
- ↳ Game Engines
- ↳ Creation, Conversion, and Editing
- ↳ Miscellaneous
- Archives
- ↳ The Halls of the Dead
- ↳ Abandoned/Dead Projects
- ↳ Editing (Archive)