Downloaded latest version and am getting this error...
20:32 [Error] Error while compiling: AdminRadar.cs(2008,32): error CS1061: Type `HumanNPC' does not contain a definition for `currentTarget' and no extension method `currentTarget' of type `HumanNPC' could be found. Are you missing an assembly reference?
Commented out the code so it just returns NULL and it started working again.
private BasePlayer GetVictim(BaseEntity entity)
{
/*if (entity is global::HumanNPC)
{
var npc = entity as global::HumanNPC;
return npc.GetBestTarget() as BasePlayer;
}*/
/*else if (entity is BaseAnimalNPC) // brain must be exposed
{
var npc = entity as BaseAnimalNPC;
foreach (var target in npc.brain.Senses.Players)
{
return target as BasePlayer;
}
}*/
return null;
}