Exemple #1
0
 public static void SkillShotText(string Text, Vector3 Location, float Duration, GlobalClasses.SkillShotClass item)
 {
     if (Utils.SleepCheck(Text + "one")) // if not asleep
     {
         Utils.Sleep((double)Duration + 1000, Text + "one"); //make it sleep
         Utils.Sleep(Duration, Text); //set delay
     }
     else //if in original sleep
     {
         Vector2 location2D = Drawing.WorldToScreen(Location);
         location2D.X -= (6 * Text.ToCharArray().Length) / 2;
         Drawing.DrawText(Text, location2D, Color.Cyan, FontFlags.AntiAlias | FontFlags.Outline);
     }
     if (Utils.SleepCheck(Text)) //delay complete
         Variables.DrawTheseSkillshots.Remove(item);
 }
Exemple #2
0
 public static void LastKnownPosition(Hero enemy, int enemyIndex)
 {
     try
     { if (enemy.IsAlive)
       {
           var     Angle       = enemy.FindAngleR();
           Vector2 StraightDis = Drawing.WorldToScreen(enemy.Position);   //Facing position line
           StraightDis.X += (float)Math.Cos(Angle) * 500;
           StraightDis.Y += (float)Math.Sin(Angle) * 500;
           if (Drawing.WorldToScreen(Variables.EnemyTracker[enemyIndex].EnemyTracker.Position).Y > 15)
           {
               Drawing.DrawLine(Drawing.WorldToScreen(Variables.EnemyTracker[enemyIndex].EnemyTracker.Position), StraightDis, Color.Red);
               Drawing.DrawText(string.Format("{0} {1}", GlobalClasses.GetHeroNameFromLongHeroName(enemy.Name), GlobalClasses.GetTimeDifference(Variables.EnemyTracker[enemyIndex].RelativeGameTime)), Drawing.WorldToScreen(Variables.EnemyTracker[enemyIndex].EnemyTracker.Position), Color.Cyan, FontFlags.AntiAlias | FontFlags.Outline);
           }
       }
     }
     catch (Exception ex)
     { }
 }