Replies: 1 comment 4 replies
-
Can I offer another alternative, which is implement it on C++ side, but still using Net Messages? That way the Native API method for it is fairly straightforward, and the C# side can be more naive |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With #808 we implemented EmitSound function to counterstrikesharp, which rely on a game function
EmitSoundFilter
.But from my research, this function is no longer maintained and volume and pitch parameter is not working. (volume needs another plugin to fix, and pitch is currently not working and likely can't get a fix with the same method as volume).
With more research, we can know that the soundevent and its param is completely based on netmessage, which are completely able to controlled in managed side (ideally), and we are able to set more soundevent param theoretically (position, pitch, etc)
I'm posting this discussion because we have various ways to implement this rework:
SetSoundEventParam
function (fix volume and pitch, but need another signature, and its hard to support more soundevent param)NetMessage
method (fix volume and pitch, support more params, but needPbSetBytes
method to write bytes to netmessage, which we can't do right now)anyways this rework won’t affect current API usage so no need to worry about compatibility
Beta Was this translation helpful? Give feedback.
All reactions