Whoa, that's very helpful. It's working for me. I wanted to ask about your nice checker in code if it's a story npc. The problem is when you tweak AI_WEAPON_DAMAGE it somehow affects melee damage etc. But that's not the problem. I wanted to do the same thing but not with the health like in your mod but with the weapon damage: While Enemy,other npc's damage scaling increases, this value for your allies(story characters) remains the same. How can i express it in the code? Thanks
Edit:
Introducing this value makes everyone immortal including mc
ENTITY::SET_ENTITY_HEALTH(peds[i], ENTITY::GET_ENTITY_MAX_HEALTH(peds[i], 0), 0); <-where does this line lead and what values should i enter here? The last zero should remain zero if i got it right from db