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