NPC Shield wont go under 10%
-
Hi boys, I am posting this question even here as I am really desperate.
In my own mod, Cosmo is bugged for some reason - his shield won’t go under 10%. No matter what loadout he has, no matter what weapon I fire, it always stops being damaged at 10% of max shield capacity, then it regens back.
I tried different load-outs for him, but nothing helped, and only Cosmo is bugged, other NPCs having the same loadout are fine.
I did not touch any story mission .ini files so I do not understand how the only one NPC may have this issue.Please I beg you give me some tips because I am losing my hair as there is no reasonable explanation for this.
-
Didn’t you say something about putting player shields on NPC’s a while ago, and I said at the time things can get complicated if you’re making a single player mod. NPC’s shields don’t regen, so it would suggest you might have somehow changed his shield type.
Missions/mission02/npcships.ini
[NPCShipArch]
nickname = MSN02_Cosmo
loadout = MSN02_CosmoShips/loadouts.ini
[Loadout]
nickname = MSN02_Cosmo
equip = npc_shield01_mark03, HpShield01That would be the first thing to check, if that’s good then have you edited the values of npc shields to regen?
-
In equipment/st_equip.ini
NPC shield
[ShieldGenerator]
nickname = npc_shield01_mark03
regeneration_rate = 1
max_capacity = 1124Player shield
[ShieldGenerator]
nickname = shield01_mark03_lf
regeneration_rate = 25
max_capacity = 1124Cosmo is not supposed to die is he from memory, It’s messing up the triggers and fuses somehow, it’s supposed to light a burning fuse, and he whines a lot. If you kill him it fails.
-
Yes. And I am 100% sure it’s not about load-outs or shields. As I stated, only Cosmo is bugged, every other NPC that has the same shield is running fine + even when I gave him a custom cosmo_shield, just for him, with 1000 capacity and 0 regen, 0 threshold etc, the bug was still there. My friend and I tried 20 combinations of load-outs and nothing changed the outcome. I even copypasted the original M02 folder to my mod, hoping that maybe some bit got lost somewhere but still nothing, that stupid smuggler just doesnt want to lose his shield.
And you are right Cosmo is not supposed to die, you are supposed to take his HP below 50%, and then the animation plays. Unfortunately there is nothing related to shield within triggers which is even worse because there is no logic reason why this bug is happening
-
But you said his shield regenerates…
-
Okay, so the npc shield does regen very slowly anyway, even though it only has a value of 1. When I try it his shield goes to 0, hull takes damage, he gives up and it restores a very small amount of shield which then regens slowly.
Have you tried starting a new game with a new save file in case the save is broken?
-
First, he had a normal shield (there are no NPC or player shields, there are just shields at my mod) - it didn’t work. Then I changed the values of that shield to have 0 regen, but he was still bugged. So I created a completely new shield just for him, and it didn’t help either.
Yes, We tried (on 2 different PCs) completely new fresh installs, new save, everything - absolutely nothing helped. I would bet 100 bucks that nobody on Starport would be able to figure it out That’s how much I am sure I did nothing wrong.
In the end, I created a new shield for him and put there some lore-friendly explanation that the shield burned out so it’s not working. Its cheesy but I don’t have a year to fix random bug)
-
Upload the file somewhere and I’ll have a look at it if you like. You broke something, you’ve just given up looking for what it is. I personally think it’s always best to bury dead bodies rather than leave them rotting in the street, causes disease later on and more dead bodies.