Would be nice as an option that if we select zombies/murderers as the NPCs to spawn to have an option to allow instant kills
and example to add the code below and of course there would need to be a bool in the settings.
private void OnEntityTakeDamage(BaseCombatEntity baseCombatEntity, HitInfo hitInfo)
{
if (hitInfo != null)
{
NPCPlayerApex zombieMember;
if (hitInfo.InitiatorPlayer != null)
{
zombieMember = hitInfo.InitiatorPlayer.GetComponent<NPCPlayerApex>();
if (zombieMember != null)
{
if (zombieMember.damageScale != 1f)
hitInfo.damageTypes.ScaleAll(zombieMember.damageScale);
return;
}
}
zombieMember = baseCombatEntity.GetComponent<NPCPlayerApex>();
if (zombieMember != null)
{
if (_config.NPC.HeadshotKills && hitInfo.isHeadshot)
hitInfo.damageTypes.ScaleAll(1000);
}
}
}