More Ouch Noises For Species

If you liked this item, please rate it up on Steam Workshop page.

Author: Chofranc

Last revision: 26 Apr, 2023 at 03:02 UTC

File size: 23.55 KB

On Steam Workshop

Description:

This is a client-sided mod. Its safe to uninstall mid-game. It should be compatible with anything that doesn’t replace the ouch parameter in "player_primary.lua"

This mod allows vanilla playable races and custom races to have multiple hurt sounds(OuchNoises) per gender. Vanilla playable races already are supported and comes with 3 different hurt sounds. Custom Races needs support from their creators or other modders.

This is a feature that probably Chucklefish scrapped at some point of the development since all the playable races have 3 hurt sounds, except novakids that have 2.


MODDING

This mod have high priority so you don’t need to add it as a dependence since it should always load before any other mods that uses its features. You can add more than 3 hurt sounds, i just used the ones that are in-game.

CUSTOM RACES

For creators of custom races, you simply need to add the following lists in your .species files, this lines are harmless which mean that your mod will continue to function normally even if you don’t have this mod installed. The mod search for those 2 lines, if doesn’t found them, it just uses the standard OuchNoise.

The filepath names and .ogg file names in the following lists are examples, you need to put your owns.

"ouchNoisesFemale" : ["/filepathofyoursound/yoursound1.ogg","/filepathofyoursound/yoursound2.ogg","/filepathofyoursound/yoursound3.ogg",….,,"/filepathofyoursound/yoursoundX.ogg"], "ouchNoisesMale" : ["/filepathofyoursound/yoursound1.ogg","/filepathofyoursound/yoursound2.ogg","/filepathofyoursound/yoursound3.ogg",….,,"/filepathofyoursound/yoursoundX.ogg"],

FOR PATCHING RACES

You need to patch the values mentioned above into the .species file of the race.

Example: Patching the Trink race with more Glitch hurt noises. Make a file in /species/trink.species.patch with the following(I recommend you to copy the whole code into a text editor for better visualization):

[ [//IF THE RACE(FEMALE) ALREADY IS SUPPORTED, INSERT { "op" : "test", "path" : "/ouchNoisesFemale" }, { "op" : "add", "path" : "/ouchNoisesFemale/-", "value" : "/sfx/humanoid/robothurt_female1.ogg"} ,{ "op" : "add", "path" : "/ouchNoisesFemale/-", "value" : "/sfx/humanoid/robothurt_female2.ogg"} ,{ "op" : "add", "path" : "/ouchNoisesFemale/-", "value" : "/sfx/humanoid/robothurt_female3.ogg"} ] ,[//IF THE RACE(FEMALE) DOESN’T HAVE SUPPORT, ADD { "op" : "test", "path" : "/ouchNoisesFemale", "inverse": true }, { "op" : "add", "path" : "/ouchNoisesFemale", "value" : ["/sfx/humanoid/robothurt_female1.ogg","/sfx/humanoid/robothurt_female2.ogg","/sfx/humanoid/robothurt_female3.ogg"]} ] ,[//IF THE RACE(MALE) ALREADY IS SUPPORTED, INSERT { "op" : "test", "path" : "/ouchNoisesMale" }, { "op" : "add", "path" : "/ouchNoisesMale/-", "value" : "/sfx/humanoid/robothurt_male1.ogg"} ,{ "op" : "add", "path" : "/ouchNoisesMale/-", "value" : "/sfx/humanoid/robothurt_male2.ogg"} ,{ "op" : "add", "path" : "/ouchNoisesMale/-", "value" : "/sfx/humanoid/robothurt_male3.ogg"} ] ,[//IF THE RACE(MALE) DOESN’T HAVE SUPPORT, ADD { "op" : "test", "path" : "/ouchNoisesMale", "inverse": true }, { "op" : "add", "path" : "/ouchNoisesMale", "value" : ["/sfx/humanoid/robothurt_male1.ogg","/sfx/humanoid/robothurt_male2.ogg","/sfx/humanoid/robothurt_male3.ogg"]} ] ]

Non-Steam version.[community.playstarbound.com]