no00ob / LCSoundTool

Simple Lethal Company sound tool and debugger.
MIT License
11 stars 5 forks source link

Braken's "Angered" sound file is not always replaced #12

Open Wolfmyths opened 7 months ago

Wolfmyths commented 7 months ago

Here is my code that replaces the "Angered" sound

This code takes place in start() on the main file plugin.cs

SoundTool.ReplaceAudioClip("Angered", Miku_Angry, 0.5f);
SoundTool.ReplaceAudioClip("Angered", Miku_Angry1, 0.5f);

I tried specifying the AudioSource too which was "AngerVoiceAudio" (That I found from the logs) which brought a null reference exception on loading into a game.

This only seems to happen if you try to make it angry again shortly after he's done chasing you

I'm unsure if this is a sound length issue on my end, as I've noticed that the replaced audios are shorter than the vanilla one.

danilio8 commented 7 months ago

Hi, I have the exact same problem, but with the berserk audio when a turret enters berserk mode. Also specified the AudioSource, but that did not work.

BoredBean commented 4 months ago

So as the chitter voices for the HoarderBugs. I'm not sure if it's because my PC lacking memory sometimes. It works well at the first time, and then enter a random mode.

BTW I didn't get any null pointer. I have to remove the dependency of this Mod and change the AudioClips manually at last.