Fix for OnNpcTarget hook being called too oftenSolved
Please could you do some magic and give us an update to cheer up our week pulling our hair out, i'm almost bald!

Thanks bud!

Thanks for the note. Looks like it was moved by mistake when making the changes between OnNpcPlayerTarget and OnNpcTarget. Will be fixed for the next build.
code gods
The latest build has this and other fixes. Thanks for the report, and I appologize for the inconvenience!
Its interesting, but same thing with
object OnTurretTarget(AutoTurret turret, BaseCombatEntity entity)
{
    Puts("OnTurretTarget works!");
    return null;
}​
When it losing player sight, it sets target to null (so entity became null). Are you sure its a bug?

AutoTurret class
public void TargetTick()
  {
    ... code here ...
    this.SetTarget((BaseCombatEntity) null);
  }

public void SetTarget(BaseCombatEntity targ)
  {
    if (Interface.CallHook("OnTurretTarget", (object) this, (object) targ) != null) // here it calles
      return;
    ... code here ...
  }​
thanks wulf, legend! 
Locked automatically