Mod Support: Support custom sound events #7299
Labels
enhancement
Provides an enhancement to the game.
meta-discussion
Discussion about the project itself, direction, (code) design, etc
network
Network related.
Feature request: support a netmsg to play a custom sound (e.g. embedded into the map or downloaded via #7296).
We'd want to play a sound at a certain position (like
NETEVENTTYPE_SOUNDWORLD
does) or globally, like it doesNETEVENTTYPE_SOUNDGLOBAL
.Right now most of the mods have to use flag captured/drop/returned global sounds to announce important events, and re-use default sounds for our custom events. The biggest issue is that there is no sound which would fit certain use-cases. E.g. I need a short alarm/warning sound to warn the player about a building destruction (similar to a bomb timer 'beep' sound). I'd also like to use custom sounds for the many custom weapons/objects.
I think this does not strictly require #7296 as we can use the map embedded sounds for now. I'm yet to come with a detailed plan (can take days), feel free to suggest it.
Would it make sense to reference the sounds by SHA256 or we'd prefer short string names or something else?
The server can send an indexed list of custom sounds and use those indices instead of sha/names. Another benefit is that (later) the client can use the list to download the missing assets (#7296).
The text was updated successfully, but these errors were encountered: