public static bool Evaluate(NPCHumanContext c, NPCPlayerApex.EnemyRangeEnum range)
        {
            if (c == null || Object.op_Equality((Object)c.Human.AttackTarget, (Object)null))
            {
                return(false);
            }
            Memory.SeenInfo info = c.Memory.GetInfo(c.Human.AttackTarget);
            if (Object.op_Equality((Object)info.Entity, (Object)null))
            {
                return(false);
            }
            Vector3 vector3      = Vector3.op_Subtraction(info.Position, c.Human.SpawnPosition);
            float   sqrMagnitude = ((Vector3) ref vector3).get_sqrMagnitude();

            NPCPlayerApex.EnemyRangeEnum enemyRangeEnum = c.Human.ToEnemyRangeEnum(sqrMagnitude);
            return(enemyRangeEnum == range || enemyRangeEnum < range);
        }
        public static bool Evaluate(NPCHumanContext c, NPCPlayerApex.EnemyRangeEnum range)
        {
            if (c == null || c.Human.AttackTarget == null)
            {
                return(false);
            }
            Memory.SeenInfo info = c.Memory.GetInfo(c.Human.AttackTarget);
            if (info.Entity == null)
            {
                return(false);
            }
            float position = (info.Position - c.Human.SpawnPosition).sqrMagnitude;

            NPCPlayerApex.EnemyRangeEnum enemyRangeEnum = c.Human.ToEnemyRangeEnum(position);
            if (enemyRangeEnum == range)
            {
                return(true);
            }
            if (enemyRangeEnum < range)
            {
                return(true);
            }
            return(false);
        }