Starbound

Starbound

Not enough ratings
Custom Death Sound System
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
141.239 KB
Mar 26, 2019 @ 10:04pm
Mar 28, 2019 @ 6:49am
3 Change Notes ( view )

Subscribe to download
Custom Death Sound System

Description
Custom Death Sound System
Enables modders to specify custom death sounds for their species. This also allows clients to play said custom death sounds.
https://github.com/XanTheDragon/SBCustomDeathSounds

Are you a modder who wants to use this? Have a read
Implementing this into your species is easy!

In your species file, specify a `deathNoises` key in the json. This list is similar to `ouchNoises` in that it's a list of sounds. Here's an example implementation featured in my Spirit Guardian mod.
"ouchNoises" : [ "/sfx/humanoid/seinBadlyHurtRegularA.ogg", "/sfx/humanoid/seinBadlyHurtRegularB.ogg", "/sfx/humanoid/seinBadlyHurtRegularC.ogg", "/sfx/humanoid/seinBadlyHurtRegularD.ogg", "/sfx/humanoid/seinBadlyHurtRegularE.ogg" ], "deathNoises" : [ "/sfx/humanoid/seinDeathRegularA.ogg", "/sfx/humanoid/seinDeathRegularB.ogg", "/sfx/humanoid/seinDeathRegularC.ogg", "/sfx/humanoid/seinDeathRegularD.ogg", "/sfx/humanoid/seinDeathRegularE.ogg" ],

This is limited in its capabilities!
This does **NOT** work on NPCs yet! I may add this in the future depending on how high demand is.
15 Comments
Nx Feb 26, 2022 @ 9:50am 
Yea alright, that sounds like a probably good idea.
Though that could further unlock a few more doors, if it breaks then I'm not gonna blame you

This mod's version would suffice for most.
Thank you for the answers!
Xan  [author] Feb 26, 2022 @ 9:46am 
Hit sounds comes with starbound as it is, I only added death noises as an extension to it. I am not sure how Starbound implemented hit sounds, but I can say with 100% certainty that death sounds are randomly selected.

I could do an update where its possible to define two subtables there, for male and female deaths respectively, but as far as damage goes I am not sure.
Nx Feb 26, 2022 @ 9:42am 
Ah- then that might complicate matters.
I went ahead to test the death noises (I added 2), which seems to pick at random regardless of gender, which also proves further that we could only have one death noise for player characters to avoid odd outcome (Don't get me wrong, but having the male player roll the female's death sound is rather funny but unintended).

And as for the hit noises, does it work in a 1:1 ratio? (E.g. 3 hit sounds for male and 3 hit sounds for female)

Or I'm still taking it wrong because it wasn't answered if it was only applicable for NPC creatures
Xan  [author] Feb 26, 2022 @ 9:27am 
Yeah its random hit sounds, selects out of the list
Nx Feb 26, 2022 @ 9:25am 
Alright!

Also one thing: I took a peek at the Github page and I noticed there are more than two ouchNoises in the example. Does that mean it's possible to have random hit sounds (Since there's only one for each gender)

Or I took that wrong and that's only available for other creatures
Xan  [author] Feb 25, 2022 @ 6:33am 
You can include the json key in your mod, but to actually hear the sounds, you will need to have the mod installed. Thankfully this setup does make it an optional addon.
Nx Feb 25, 2022 @ 1:12am 
Do we need to sub to this mod in order for it to work or just by adding the json key in the .player file?
Xan  [author] Aug 7, 2021 @ 1:00am 
May not be this mod. SB mods are a hellhole so it could be this or it could be something else.

This mod is strictly a framework anyway, so it doesn't add new content on its own, just an event handler.
O-Jay Aug 6, 2021 @ 3:46pm 
Does this mod conflict with other mods? Just tried this one out for myself and the game froze/returned to menu screen with an error message when I died. The error read, "(JsonException) Improper conversion to JsonArray from object."
TheHopelessThrumbo Sep 23, 2020 @ 6:16am 
This thing definitely need some love, noone seems to be aware of its presence atm :|