Town guards are generated through the AddGameCharacter function in PROGRAM\Characters\characters_init.c .
Soldier reinforcements and many other characters are generated through the LAi_CreateFantomCharacterEx function in PROGRAM\Loc_ai\LAi_utils.c .
That first function contains this:
And makes the soldiers a force to be reckoned with.
However, that second function apparently does not so it creates characters who are substantially weaker than those normal soldiers.
This might admittedly be because my player character is rank 1 at that time,
but I don't remember the "soldier reinforcements" being such push-overs before? Is this new?
Soldier reinforcements and many other characters are generated through the LAi_CreateFantomCharacterEx function in PROGRAM\Loc_ai\LAi_utils.c .
That first function contains this:
Code:
if (isSoldier(chr) != UNKNOWN_NATION) {
chr.model.uniform = chr.model;
iNation = sti(chr.nation);
model = "m" + sti(chr.model);
if (iNation >= 0 && iNation < NATIONS_QUANTITY) model = Nations[iNation].fantomModel.(model);
if (iNation == PERSONAL_NATION) model = characters[GetMainCharacterIndex()].Soldier.(model);
SetModel(chr, model, chr.sex, chr.sex, 0.0, false);
GiveSoldierWeapon(chr, iNation); // ARF: Update Soldier Weapons
// Baste: Strong Soldiers -->
chr.rank = 11+GetDifficulty()*3+rand(6*GetDifficulty()); // Apprentice: between 14 and 20 - Swashbuckler: between 23 and 47
//chr.skill.Fencing = 4+rand(GetDifficulty()); // Apprentice: between 4 and 5 - Swashbuckler: between 4 and 8
chr.perks.list.BasicDefence = true;
chr.perks.list.AdvancedDefence = true;
chr.perks.list.CriticalHit = true;
chr.perks.list.SwordplayProfessional = true;
chr.perks.list.Gunman = true;
chr.perks.list.GunProfessional = true;
if(rand(10) > GetDifficulty()) chr.perks.list.Rush = true;
if(rand(20) > GetDifficulty()) chr.perks.list.Toughness = true;
// Baste: Strong Soldiers <--
}
However, that second function apparently does not so it creates characters who are substantially weaker than those normal soldiers.
This might admittedly be because my player character is rank 1 at that time,
but I don't remember the "soldier reinforcements" being such push-overs before? Is this new?