Starbound

Starbound

34 ratings
NPC Hurt Sounds
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
89.534 KB
18 Aug @ 9:02am
21 Aug @ 7:58pm
2 Change Notes ( view )

Subscribe to download
NPC Hurt Sounds

Description
NPCs will have vocal hurt sounds as players do when hit.

This mod utilizes Lua hooks and replaces no files, thus should theoretically be compatible with just about any other mod. It will take advantage of the additional hurt sounds enabled by More Ouch Noises For Species if installed as well. Includes support for adding NPC type specific hurt sounds using the same syntax as chat sounds.

Example Patch
[ {"op":"add","path":"/ouchNoises","value":{ "novakid":{ "male":[ "/sfx/humanoid/humanhurt_male1.ogg", "/sfx/humanoid/humanhurt_male2.ogg", "/sfx/humanoid/humanhurt_male3.ogg" ] }, "default":{ "male":[ "/sfx/humanoid/robothurt_male1.ogg", "/sfx/humanoid/robothurt_male2.ogg", "/sfx/humanoid/robothurt_male3.ogg" ], "female":[ "/sfx/humanoid/robothurt_female1.ogg", "/sfx/humanoid/robothurt_female2.ogg", "/sfx/humanoid/robothurt_female3.ogg" ] } }} ]

The above JSON patch example would make male Novakids of the target NPC type sound like Humans, and anyone else of the target NPC type sound like Glitch. This feature takes advantage of recursion as well to account for any sounds that may have been applied to an NPC type's base type, that base type's base type, and so on and so forth. If "default" were omitted, only male Novakid would be affected and anyone else would default to the hurt sounds of the NPC type's base type, if applicable, or as a last resort their species' hurt sounds.

Uninstallation Warning
It is highly unrecommended to uninstall this mod after having played with it. To achieve sound playback for NPCs I had to create a new status effect to run the necessary code. NPCs with missing status effects will, at best, produce significant spam in the game's log file that will continue to build up over the course of a session until the offending NPCs are removed. For this reason, if you insist on uninstalling the mod mid-playthrough I would recommend keeping the mod installed at first and entering any planets you have entered with NPCs since installing the mod. Then, being sure to have not had any NPCs be attacked within the span of time spent on the given planets, exit the game and uninstall the mod. With any luck, the mod's status effect was removed on NPC initialization and no spam should appear in the log file for the next session. If spam persists reinstall the mod and try again.

It is much easier to just delete the universe folder in the game's storage directory and start a new universe though, to be honest. Alternatively, if you play with OpenStarbound[github.com] it should sidestep this whole issue with missing status effects entirely.

Addendum
I am not offering any active assistance with issues encountered using my Starbound mods due to the often staggering number of mods run by its player base. If the mod does not work with your mod list then it is entirely on you to sort out the conflict. Use at your own risk.
9 Comments
Gear`O`Derm 27 Aug @ 11:27pm 
Can they say other languages?
Grumpy Old Bastard 24 Aug @ 1:46pm 
Lienom Zekon Aug 21 @ 6:00am
I thought the been had hurt sounds.

Did you mean:
I thought there had been hurt sounds?
Aiming Is Optional 24 Aug @ 12:42pm 
Oof, ow, my bones!
Silver Sokolova 22 Aug @ 8:43pm 
OWWWWWWW! AHH! EURGHE! OUGHE! AAAAAAAAA
TheTwilightDancer 22 Aug @ 5:27pm 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2692089627 Just like this one! It's nice to see alternatives now, NPC ouch sounds is something that should've been included in the base game regardless. Thank goodness for fellow modders though! :steamthumbsup:
Lienom Zekon 21 Aug @ 6:00am 
I thought the been had hurt sounds.
FUS 19 Aug @ 11:29am 
Ok we're cookin' we're cookin'
SuperMario20 19 Aug @ 10:57am 
omg you're so goated for this!!!
Evenstaar 18 Aug @ 1:19pm 
yay, murder :3