Howdy. I am very new to modding but I was just wondering if it is possible of adding custom sound effects for weapons etc in enemy? I occasionally design sound as a hobby and wanted to add my own sound effects to a few guns just to test it out for fun. I made my own sound effect for lazer2.wav and replaced the wav in the folder. Is there any other file that I need to replace/rename/edit to make it work as I couldn't find any appropriate files.
Hi ZedisDedBaby! Just replacing the file should work just fine. One thing that could be causing problems is that the audio system is very particular about the format of the files it plays: for sound effects, it wants one channel (mono), 44100 samples per second, 16 bits per sample; and for streaming music and wind, the same but stereo. It may just not play the sound if they don't match that.
If you wanted to add new sounds, you may need to modify or add some entries in Enemy/items/base.xml or Enemy/media/sound/global_sounds.xml or Enemy/media/sound/default_character_sounds.xml depending on what kind of sound you would like to change.
I hope that helps! If you keep having problems, let me know. I'm happy to help.