Stopping NPCs from earning kill streaks?Solved

NPC's are earning KillStreaks on the server.

Is there a way of blocking them from showing in chat or not allowing NPC's to earn streaks?

I cahnged the code on entity death to:
if (entity is BasePlayer && !(entity is NPCPlayerApex || entity is NPCPlayer || entity is NPCMurderer || entity.name.Contains("/npc/scientist/htn")))
{
ProcessDeath((BasePlayer)entity, hitinfo);
}
else if (entity is BaseHelicopter)
if (activeHelis.Contains((BaseHelicopter)entity)) activeHelis.Remove((BaseHelicopter)entity);

if ((hitinfo.Initiator is BasePlayer && !(hitinfo.Initiator is NPCPlayerApex || hitinfo.Initiator is NPCPlayer || hitinfo.Initiator is NPCMurderer || hitinfo.Initiator.name.Contains("/npc/scientist/htn"))) &&
(entity is BasePlayer || entity is NPCPlayerApex || entity is NPCPlayer || entity is NPCMurderer || entity.name.Contains("/npc/scientist/htn")))
{
ProcessKill((BasePlayer)hitinfo.Initiator, (BasePlayer)entity);
}

That is overkill but seems to work.

Merged post

This is now fixed fred.
Locked automatically