private void Game_OnTick(EventArgs args) { var position = hero.Position; if (teleportInfo.isTeleporting && teleportInfo.position != Vector3.Zero) { position = teleportInfo.position; } else if (!hero.IsHPBarRendered) { pathPosition = WaypointTracker.GetHeroCurrentPosition(hero); if (pathPosition != Vector2.Zero) { position = pathPosition.To3D().SetZ(hero.ServerPosition.Z); } else { position = hero.ServerPosition; } } var posInfo = ExtendedAwareness.GetScreenPosition(position); if (posInfo != null) { lastPosInfo = posInfo; } /*if (!hero.IsVisible && hero.ServerPosition.To2D().Distance(leaveVisiblityPosition) > 5) * { * renderFOWTime = HelperUtils.TickCount + 1000; * leaveVisiblityPosition = hero.ServerPosition.To2D(); * }*/ }
static void Main(string[] args) { extendedAwareness = new ExtendedAwareness(); }
public static void Main() { extendedAwareness = new ExtendedAwareness(); }