Banner
Random Dodge SFX
Thumbnail
Downloads356
Views2,611
Publish Date4 years ago
Last Updated4 years ago
Version1.0
Tags
Members
Avatar

How is this different from my code, which achieves the same goal?

(At work right now, so can't look at it)

Avatar

(At work right now, so can't look at it)

https://pastebin.com/YpBSG5cg

Avatar
(Owner)4 years ago(Edited)

Hey, thanks for coming around! I appreciate your work :D

I guess your mod is more intended to use different sound volumes and directions; my "modded mod" just looks through a directory and plays it randomly, and while it's a simple drag and drop when it comes to adding sounds, it doesn't scan any further if there's any other directories. I noticed as well your mod doesn't scan for a directory, it only uses a file path, which in my case may be a disadvantage for Linux users (since my script uses the "dir" command instead of "ls")... I might look into that.

Also, I'm not sure if mine will break after having a certain amout of audio files, so that's why I kinda need some feedback.

Avatar

@n0tEll10T Very cool! I mean, yours is certainly cleaner to look at, as rudimentary as mine is. I am curious to try your implementation with my audio files and see the result.

Avatar

@△urelius Me too.

Avatar

@Awooo Ok, tested out. It works identically in functionality, but the added sound effects are a little too loud. This goes for my other mods too (Immersive Jump Sounds, Gun ASMR, etc.). Good work though, it is always fun to see different approaches.

Avatar
(Owner)4 years ago(Edited)

Pretty sure it's because of the value here:
XAudio.UnitSource:new(XAudio.PLAYER, XAudio.Buffer:new(ThisOGGPath)):set_volume(1)
______________________________________________________________________________________________________________^

Either way it could just be the audio files themselves, I only know one that's not as loud.

Avatar

@n0tEll10T I messed around with this functionality in Newbie's base mod, but all it seems to do is tweak the volume of the world (everything but the added sound effects) to compensate.

This works, but it is not ideal. And manually configuring every audio file is out of the question, lol. If you figure out a workaround, let me know.

Avatar
(Owner)4 years ago(Edited)

You got it, chief.

42 1360