示例#1
0
 private void method_1()
 {
     float num = GClass0.smethod_0().method_12() - 10f;
     if (num > 0f)
     {
         num *= num;
         Vector3 position = Framework.Hero.Position;
         using (List<D3Actor>.Enumerator enumerator = Framework.Actors.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 D3Actor current = enumerator.Current;
                 if (this.method_2(current))
                 {
                     float num2 = (current.Position - position).LengthSquared();
                     if (num2 <= num)
                     {
                         List<Vector3> path = Framework.Navigator.GetPath(position, current.Position, 10f, 20f);
                         for (int i = 0; i < path.Count; i++)
                         {
                             if ((path[i] - position).LengthSquared() <= num)
                             {
                             }
                         }
                         bool flag = Framework.Navigator.TraceRay_Projectile_CanPass(position, current.Position);
                         int num3 = (int)(100f - num2);
                         Class39 item = new Class39(current, num2, flag, num3);
                         if (flag)
                         {
                             this.list_1.Add(item);
                         }
                         else
                         {
                             this.list_2.Add(item);
                         }
                     }
                 }
             }
             return;
         }
     }
     if (Environment.TickCount - this.int_4 > 600)
     {
         this.int_4 = Environment.TickCount;
         GClass0.smethod_0().method_5("AggroRange is 0, skipping combat");
     }
 }
示例#2
0
 private bool method_7(Class39 class39_0)
 {
     return class39_0.Actor.DistanceToHero() < (float)this.int_3;
 }
示例#3
0
 private static float smethod_2(Class39 class39_0)
 {
     return (class39_0.Actor.GetFloat((D3Attribute)4294963302u) + class39_0.Actor.GetFloat((D3Attribute)4294963311u)) * 0.5f;
 }
示例#4
0
 private static float smethod_6(Class39 class39_0)
 {
     return class39_0.DistanceSquared;
 }
示例#5
0
 private static float smethod_1(Class39 class39_0)
 {
     return class39_0.Actor.DistanceToHero();
 }
示例#6
0
 public float method_0(Class39 class39_0)
 {
     return Vector3.DistanceSquared(class39_0.Actor.Position, this.vector3_0);
 }
示例#7
0
 private bool method_0(Class39 class39_0)
 {
     return class39_0.DistanceSquared < this.float_0;
 }
示例#8
0
 private static bool smethod_0(Class39 class39_0)
 {
     return class39_0.DistanceSquared < 400f;
 }
示例#9
0
 public bool method_0(Class39 class39_0)
 {
     return class39_0.DistanceSquared < this.class115_0.RangeSq;
 }