Incorrect Shield Value on HUD
-
Hi Guys, can you help me with the issue with my shields?
I am modding the game and I tweaked all shields and ships etc. Everything was okay until I realized that when I selected any NPC ship, the shield value on its right was not the value that its shield actually had.For example, the default LVL1 shield NPCs have a shield capacity set to 1000, but in-game I see the value 850.
Is there something like “armor” that scales down NPC shields?
-
Hi there, welcome to the Starport! All
[ShieldGenerator]
entries have their maximum capacity reduced by a percentage that’s defined in theoffline_threshold
key. By default in vanilla this is0.15
, which would account for your 850 shield value. I think this was probably going to be part of some other feature that got cut and was left in, as there doesn’t seem to be any reason for it in vanilla.You can set this value to 0 to simply give shields the value they have in the inis ingame.
-
It does in fact serve a purpose, albeit a minor one. The final hit can eat into that offline threshold, and if so, causes your shield to reboot at a lower level.
In your example, if your shield would normally regen at 50%, meaning that it recharged 425 energy points, and was instead hit by a blast for full 1000 damage, it would recharge those 425 shield points, 150 of which would be ‘wasted’ on recharging the offline threshold. This would result in your shield coming back online at 425 - 150 = 275 shield points
-
Wow, could I miss something like this?
Thank you both for your quick response!