Barotrauma

Barotrauma

Not enough ratings
The Custom Voiceline/Sounds/Musics Template for Barotrauma (Make YOUR submarine talk!)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.226 MB
28 Aug, 2023 @ 9:25am
29 Aug, 2023 @ 1:59am
2 Change Notes ( view )

Subscribe to download
The Custom Voiceline/Sounds/Musics Template for Barotrauma (Make YOUR submarine talk!)

Description
You want your sub talking (like my Unoculus)? Try this.
Some asked, and basically, I didn't plan to make a template or a public version or whatever, but here it goes.

The Custom Voiceline/Sounds/Musics Template for Barotrauma.

First, this workshop contains only template and item assemblies to do YOURSELF voicelines/sounds/musics.
There's some for the examples, but this workshop DOES NOT contain voicelines.

All instructions are in .XML files and in Barotrauma (item assemblies).

Some infos:
It's recommended to keep a copy of the template before editing them.
There's some item assemblies if you don't know how to use this. (See the video)
For the sound, it use a LightComponent, but it doesn't act like a light. It will count as a light tho but it's not a light.

How to:
First find/create all your voicelines/sounds and convert them in .ogg.

- Create a new mod with a copy of the template in (don't forget to include it in your "filelist.xml".
- Put your voicelines/sounds in.
- Copy an item as much as you have voicelines/sounds.
- You'll need to change the identifier and the name if you want.
- Put your sound location in the "sound" xml tag.
- Change the range depending on the size of your sub and the volume if it's too loud or too weak.
- Implement them in your sub, use the item assemblies provied if you need.

For a music it's a bit different.
It use a turret and you'll need a start, a loop and a end. So cut your music with a intro, a loop and an ending.
Put these in your mod folder and change the location of sounds (MoveSound, StartMoveSound and EndMoveSound).

You don't need to credit if you use it but it's still appreciated.
23 Comments
- ̗̀ Milix ̖́-  [author] 30 Apr @ 1:27pm 
Assemblies are just examples. You need to make custom objects with the template and replace the sound of the assembly by the new one you created.
TheDancingSphee 30 Apr @ 12:57pm 
How do the assemblies know which sound file to use? (Im sorry if this was already explained)
Wodginite 6 Aug, 2024 @ 4:27pm 
Yeah Okay. Indeed I was using buttons and not switch, but also your advice for the cooldown of water is really helpful, thank you. :steamthumbsup: :captainsmooth:
- ̗̀ Milix ̖́-  [author] 5 Aug, 2024 @ 5:39am 
Be sure to use the item assembly for a button or a switch because they're not the same. For the flood example you shall use the switch example, not the button one. Also, for the switch one, your entry needs to send 0 when not triggered.
Wodginite 5 Aug, 2024 @ 3:57am 
Ok, so I've encountered another problem with something else lol :BountySilver:

So I'm trying to connect another component to the item assembly (like changing buttons to something else), but it is not working when it is not with the button. Even if I'm sending "1" as output.
Wodginite 4 Aug, 2024 @ 11:58am 
Yes, thanks. The cooldown might be helpful indeed, because it keep repeating the voiceline. I will try this. thank you :steamthumbsup:
- ̗̀ Milix ̖́-  [author] 4 Aug, 2024 @ 11:37am 
You normally have every item assembly you need to achieve that. For the flood case, however, it can spam it because the flood is never really consistent and never fill a room progressively (it's more like step to step). What you should do is when the flood is trigger, it needs a cooldown for like 5 seconds where it can't be activated anymore. Is that what you wanted to know?
Wodginite 4 Aug, 2024 @ 7:41am 
I might ask your help one more time, today I've been trying to figure something out but I don't know what I am doing wrong. I want to trigger my voicelines only once (like an announcement), like if the sub detect flood it will play (only one time) the selected sound, but I don't know how to do it. I did some research and even tried for 2 hours but I'm not successful.
- ̗̀ Milix ̖́-  [author] 22 Jul, 2024 @ 2:01pm 
You're very welcome
Wodginite 22 Jul, 2024 @ 8:02am 
It is working well, jthanks.