NPC Shields & Bars[Resource/Addon]

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

Author: FelmastProMcLane

Last revision: 22 Jul, 2023 at 00:32 UTC

File size: 191.62 KB

On Steam Workshop

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