This Mod allows you to play sounds with various pitches denoted by a function called PLAYVARSND.
So for this I updated my dsutil.h and dsutil.cpp with a few new functions. Download the Zip, Search for "__LING_AUDIO" in each of the files and use it as a reference to make your edits. The two main files are dsutil.cpp and dsutil.h. I randomized the sounds but you can set the random ranges to whatever you'd like as well as pass your own logic into how the pitch is effected...
So with the dsutil pair of files you now can search and take any line that is similar to this:
Files:
The gerneral rule is that you can use PLAYVARSND if the original PLAYSND has an ID and Position)
(Some Sound effects are Stereo and maybe not able to be played spatially with PLAYVARSND)
Let me know if you have any questions, and tell me if you get it working on your client! Let me know what you think!
So for this I updated my dsutil.h and dsutil.cpp with a few new functions. Download the Zip, Search for "__LING_AUDIO" in each of the files and use it as a reference to make your edits. The two main files are dsutil.cpp and dsutil.h. I randomized the sounds but you can set the random ranges to whatever you'd like as well as pass your own logic into how the pitch is effected...
So with the dsutil pair of files you now can search and take any line that is similar to this:
Files:
The gerneral rule is that you can use PLAYVARSND if the original PLAYSND has an ID and Position)
(Some Sound effects are Stereo and maybe not able to be played spatially with PLAYVARSND)
Let me know if you have any questions, and tell me if you get it working on your client! Let me know what you think!