do not have the appropriate entries in the skills.cfg file for their health and attack damage
Thanks, made a skills file that was missing. Took the stock HL one and added the couple lines from the OP4 one.
add the skill cvars and code to sync the cvars to the variables in gSkillData
This is where I think most of my problems are stemming from. A lot of this wasn't in the respective files. Getting closer I think - but still not working. I'll focus on one ripped NPC and copy any fixes over to the others. Here's what I've added tonight, not sure what I'm still missing:
skill.h (Had this prior)float zombieBarneyHealth;
float zombieBarneyDmgOneSlash;
float zombieBarneyDmgBothSlash;
game.cpp:// Zombie Barney
cvar_t sk_zombie_barney_health1 = { "sk_zombie_barney_health1","0" };
cvar_t sk_zombie_barney_health2 = { "sk_zombie_barney_health2","0" };
cvar_t sk_zombie_barney_health3 = { "sk_zombie_barney_health3","0" };
cvar_t sk_zombie_barney_dmg_one_slash1 = { "sk_zombie_barney_dmg_one_slash1","0" };
cvar_t sk_zombie_barney_dmg_one_slash2 = { "sk_zombie_barney_dmg_one_slash2","0" };
cvar_t sk_zombie_barney_dmg_one_slash3 = { "sk_zombie_barney_dmg_one_slash3","0" };
cvar_t sk_zombie_barney_dmg_both_slash1 = { "sk_zombie_barney_dmg_both_slash1","0" };
cvar_t sk_zombie_barney_dmg_both_slash2 = { "sk_zombie_barney_dmg_both_slash2","0" };
cvar_t sk_zombie_barney_dmg_both_slash3 = { "sk_zombie_barney_dmg_both_slash3","0" };
gamerules.cpp:// ZombieBarney
gSkillData.zombieBarneyHealth = GetSkillCvar("sk_zombie_barney_health");
gSkillData.zombieBarneyDmgOneSlash = GetSkillCvar("sk_zombie_barney_dmg_one_slash");
gSkillData.zombieBarneyDmgBothSlash = GetSkillCvar("sk_zombie_barney_dmg_both_slash");
And then the external skills.cfg file:// ZombieBarney
sk_zombie_barney_health1 "50"
sk_zombie_barney_health2 "50"
sk_zombie_barney_health3 "100"
sk_zombie_barney_dmg_one_slash1 "10"
sk_zombie_barney_dmg_one_slash2 "20"
sk_zombie_barney_dmg_one_slash3 "20"
sk_zombie_barney_dmg_both_slash1 "25"
sk_zombie_barney_dmg_both_slash2 "40"
sk_zombie_barney_dmg_both_slash3 "40"