Starbound

Starbound

161 ratings
NPC Shields & Bars[Resource/Addon]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
191.624 KB
Apr 26, 2020 @ 5:10pm
Jul 21, 2023 @ 5:32pm
13 Change Notes ( view )

Subscribe to download
NPC Shields & Bars[Resource/Addon]

In 1 collection by FelmastProMcLane
Monster Core : Collection
8 items
Description
Adds modifiable energy shields and elemental resistances to NPCs and monsters.
Adds:
  • This mod doesn't add shield items or such, just the means for status effects to control the shields.
  • This mod also makes it so that NPCs can have elemental resistances/weakneses, vanilla doesn't do that if you were wondering.
  • Should support most npcs, even modded ones.
  • With Supper's Follwer Healthbars:
    • Adds a healthbar and shieldbar on top of the npcs's head, shield bar represents how much damage their shield can take.
    • Can be used if you want to see npc's health, even friendly ones.
    • Monsters also have health bars when used with Supper's mod and Monster Core

How to use for your mod:
The idea is for shields to be modified by status effects:
  • The resource "damageAbsorption" controls the current amount of shield.
  • The resource "maxDamageAbsorption" controls the max amount of shield, it's already enforced by this mod.
  • NPCs automatically render the bars and absorb the damage.
  • Adds a message for entities, "getDamageAbsorption", returns a table with current Shield and max Shield.
  • Monsters use status.statusProperty("damageAbsorption") and "maxDamageAbsoprtion".
  • NPCs can also use the satus properties if the status property "usePropertyShield" is set to true.

Recommended:

Note:
A version of this is already included in "Borderlands 2 Shields", but only for crew members and pets, this one applies for any NPC or monster.
So if you have it, then I suggest this one too, in order to display npcs that spawn with shields.

Incompatibilities:
  • Borderlands 3 Healthbars(That mod is meant to replace most functionalities of this mod and it's compatibilities, both can be used if you plan on using Shield Augments + Crew Customization)

If you have problems uninstalling use this:
https://steamcommunity.com/sharedfiles/filedetails/?id=2077698052
46 Comments
FelmastProMcLane  [author] Aug 6, 2021 @ 2:56pm 
This doesn't add shields, but some mods can use this to add them.
JerikJR Jul 6, 2021 @ 1:35am 
Does this mod add a shield for EVERY SINGLE enemy?
FelmastProMcLane  [author] May 30, 2021 @ 11:15pm 
I know but, making a Supper's Combat Overhaul patch (for Monster Core mainly) has proven to be quite difficult.
Lain Jan 5, 2021 @ 8:15pm 
Your latest changes work, the bar stays after touching the liquid, thank you.
FelmastProMcLane  [author] Jan 5, 2021 @ 5:30pm 
Hmm, then it's because the entity can be hit, I'll change it and give it like a billion health or something.
Lain Jan 5, 2021 @ 4:24pm 
With latest version of this mod, the "supbar" entity still dies/disappears after touching Centensian Liquid from ElithianRaces.
FelmastProMcLane  [author] Jan 5, 2021 @ 8:11am 
It seems that I forgot to change something for NPCs, as they are different from monsters.
I think I can fix it.

Also, the error in the log is caused by detecting that supbar isn't installed, Starbound likes to put those errors' even tough "Exception Caught" isn't an error.
Lain Jan 4, 2021 @ 10:23pm 
The health/shield bar seems to killable by some damage type, could you patch it or make them respawn? A 1 minute youtube video about this issue.
Also when installed alone without that healthbar mod it causes error in game log. I'm not sure if it's possible to check if supbar exists in game before trying to spawn them in.
Lukiwarble Aug 15, 2020 @ 8:45am 
Aw shit, here we go again!!!
Lukiwarble Aug 15, 2020 @ 8:44am 
NPC with shield, buffed by tier 10 mod and mobageddon, with reconstruction core