NPC and Monster Fall Damage
This mod is also available on the Starbound Forums[community.playstarbound.com]
Note: this mod is now part of Frackin’ Universe, so you don’t need this mod if you use that.
What does it do?
This mod causes npcs and monsters to take fall damage. By default, all monsters take fall damage. In addition, all hostile npcs take fall damage. Friendly npcs will not take fall damage, because that would be very annoying, and there would probably be a lot of dead avians.
This is configurable. This mod provides a JSON file to allow you to configure which types of npcs and monsters take fall damage.
Fall damage is proportional to the maximum health of a creature, in comparison with the amount of damage a player would have taken in the same cirumstance. As such, a small fall that takes 20 health from a player without any health boosters will not kill a 20 health creature that spawned on a T1 planet. It will instead lose 20% of its health, just as a player would.
Compatibility
This mod should be compatible with most other mods, but it will have issues if you use any other mods that modify monster_primary.lua or npc_primary.lua in the stats folder. I currently do not know of any mods that do this.
Configuration
If you wish to configure this mod, please download this[drive.google.com] and put the NpcAndMonsterFallDamageSettings folder in your Starbound mod directory. This will most likely be located at C:Program Files (x86)SteamsteamappscommonStarboundmods
Then you can open kit_falldamagesettings.config with any text editor, such as Notepad, and edit the settings in there. The available options are in there, and they describes what to do.
As of right now, you can configure for monsters and npcs whether you want all of that type to take fall damage, only hostiles to take fall damage, or none to take it.
Credits
Thanks to Xaliber for the 1.4 compatibility patch.
Revisions:
Old revisions of this mod are available below. Click the link to download.