Detect GUI sounds via getsoundplaying console command
I'm looking to port one of my mods (The Bare Necessities) from the vanilla engine to OpenMW, which works through scripts that detect player actions through sounds (player->getsoundplaying). Some of these didn't register properly in the vanilla engine and were fixed through the Code Patch, but I haven't been able to get any to register in OpenMW (tested with stable 0.45 and a nightly from early February 2020) - the relevant ones I tested that weren't recognized were:
- "Drink" which should play when consuming a potion
- "Swallow" for ingredients
- "Item Ingredient Down/Up" for picking up/dropping ingredients respectively
- "Item Potion Down/Up" for picking up/dropping potions
...though I imagine there may be others that don't work as well. Would one of the developers consider implementing these in a future version? They would do a lot to open up mod compatibility between OpenMW and the vanilla engine, since sound detection was one of the few ways to handle events in vanilla.