custom npc's dying in one hit

  • Thread starter Thread starter Kobnar
  • Start date Start date
K

Kobnar

Guest
I'm working on a mod that requires that I have two different types of citizen npc's. I already made a copy of the files "citizen17.cpp" and "citizen17.h" and made all of the adjustments to them so that I have a copy of the citizen in every way. They fight like the citizens, talk like them, act like them, have the same types of classes as them and are complete with their own seperate alegances and models n'stuff...

My problem comes in their hitpoints. They are light as a feather and one puff of air kills them... that sucks.

Does anyoen know where the citizens draw their health from besides the code
Code:
ConVar	sk_underground_health ( sk_underground_health",  "0" );
???

Like, what defines their health? Do I have to go to another file and add one for my custom npc's?
 
You need to define something in skill.cfg for that ConVar you just pointed out to reference.

In that case, it'd be "sk_underground_health" "50" or something.

You can also set a default in the code - see the zero at the end of the ConVar? If there is no external loaded health setting, then it will use whatever's put at the end of that line - or 0 in your mod, which is why they die in one hit.

-Angry Lawyer
 
Back
Top