Example #1
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Bot.Main.TargetManager.PotentialEnemyStartLocations.Count > 1 || Scouting)
     {
         WorkerScoutTask.Enable();
     }
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     ScoutTask.Enable();
     ArmyObserverTask.Enable();
     if (ObserverScout)
     {
         ObserverScoutTask.Enable();
     }
     if (Bot.Main.EnemyRace == SC2APIProtocol.Race.Zerg || Bot.Main.EnemyRace == SC2APIProtocol.Race.Protoss)
     {
         ForceFieldRampTask.Enable();
     }
     if (DenyScouting)
     {
         DenyScoutTask.Enable();
     }
     WorkerRushDefenseTask.Enable();
 }
Example #2
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();

            DefenseTask.Enable();
            TimingAttackTask.Enable();
            if (Bot.Main.TargetManager.PotentialEnemyStartLocations.Count > 1 || SendScout)
            {
                WorkerScoutTask.Enable();
            }
            if (Bot.Main.BaseManager.Pocket != null)
            {
                ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
            }
            ArmyObserverTask.Enable();
            TimedObserverTask.Enable();
            ObserverScoutTask.Enable();
            SaveWorkersTask.Enable();
            ForceFieldRampTask.Enable();
            if (ProxyPylon)
            {
                ProxyTask.Enable(new List <ProxyBuilding>()
                {
                    new ProxyBuilding()
                    {
                        UnitType = UnitTypes.PYLON
                    }
                });
                ProxyTask.Task.UseEnemyNatural = true;
                ProxyTask.Task.Stopped         = true;
            }
        }
Example #3
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (!BlockExpand)
     {
         WorkerScoutTask.Enable();
     }
     ArmyObserverTask.Enable();
     ObserverScoutTask.Enable();
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     ArchonMergeTask.Enable();
     ForwardProbeTask.Enable();
     ShieldRegenTask.Enable();
     HodorTask.Enable();
     if (BlockExpand)
     {
         BlockExpandTask.Enable();
     }
     if (ProxyPylon)
     {
         ProxyTask.Enable(new List <ProxyBuilding>()
         {
             new ProxyBuilding()
             {
                 UnitType = UnitTypes.PYLON
             }
         });
         ProxyTask.Task.UseEnemyNatural = true;
     }
 }
Example #4
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();
            SiegeTask.Enable();
            TimingAttackTask.Enable();
            //WorkerScoutTask.Enable();
            DefenseTask.Enable();
            BunkerDefendersTask.Enable();
            SupplyDepotTask.Enable();
            ArmyRavenTask.Enable();
            MechDestroyExpandsTask.Enable();
            RepairTask.Enable();
            ReplenishBuildingSCVTask.Enable();
            ClearBlockedExpandsTask.Enable();
            HomeRepairTask.Enable();
            TransformTask.Enable();
            ThorretTask.Enable();
            HideBuildingTask.Enable();
            HideUnitsTask.Enable();
            //AttackTask.Enable();

            AttackTask.Enable();

            if (TankDefenseTasks.Count == 0)
            {
                foreach (Base b in Bot.Main.BaseManager.Bases)
                {
                    if (b == Natural ||
                        b == Main)
                    {
                        continue;
                    }
                    TankDefenseTasks.Add(new DefenseSquadTask(b, UnitTypes.SIEGE_TANK)
                    {
                        MaxDefenders = 2
                    });
                    LiberatorDefenseTasks.Add(new DefenseSquadTask(b, UnitTypes.LIBERATOR)
                    {
                        MaxDefenders = 1
                    });
                    VikingDefenseTasks.Add(new DefenseSquadTask(b, UnitTypes.VIKING_FIGHTER)
                    {
                        MaxDefenders = 1
                    });
                }
            }

            foreach (DefenseSquadTask task in TankDefenseTasks)
            {
                Task.Enable(task);
            }
            foreach (DefenseSquadTask task in LiberatorDefenseTasks)
            {
                Task.Enable(task);
            }
            foreach (DefenseSquadTask task in VikingDefenseTasks)
            {
                Task.Enable(task);
            }
        }
Example #5
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     CannonRushTask.Enable();
     TimingAttackTask.Enable();
 }
Example #6
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();

            if (ReaperDefenseTask == null)
            {
                ReaperDefenseTask = new DefenseSquadTask(Main, UnitTypes.STALKER)
                {
                    MaxDefenders = 2, Priority = 10
                }
            }
            ;
            DefenseSquadTask.Enable(ReaperDefenseTask);

            DefenseTask.Enable();
            TimingAttackTask.Enable();
            if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
            {
                WorkerScoutTask.Enable();
            }
            if (Tyr.Bot.BaseManager.Pocket != null)
            {
                ScoutProxyTask.Enable(Tyr.Bot.BaseManager.Pocket.BaseLocation.Pos);
            }
            ArmyObserverTask.Enable();
            TimedObserverTask.Enable();
            SaveWorkersTask.Enable();
        }
Example #7
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();
            DefenseTask.Enable();
            TimingAttackTask.Enable();
            if (Bot.Main.TargetManager.PotentialEnemyStartLocations.Count > 1)
            {
                WorkerScoutTask.Enable();
            }
            if (Bot.Main.BaseManager.Pocket != null)
            {
                ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
            }
            if (ProxyPylon && !PylonPlaced)
            {
                PlacePylonTask.Enable();
            }
            ScoutTask.Enable();
            if (HuntProxy)
            {
                HuntProxyTask.Enable();
            }

            HuntProxyTask.Task.CloseBasesFirst = true;
            HuntProxyTask.Task.AddMidwayPoint  = false;
            HuntProxyTask.Task.StartFrame      = (int)(22.4 * 15);
        }
Example #8
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     WarpPrismTask.Enable();
     ArmyObserverTask.Enable();
 }
Example #9
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     DefenseTask.Enable();
     SupplyDepotTask.Enable();
 }
Example #10
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     QueenInjectTask.Enable();
     QueenDefenseTask.Enable();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     SafeZerglingsFromReapersTask.Enable();
 }
Example #11
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     WorkerRushTask = new WorkerRushTask()
     {
         TakeWorkers = 0
     };
     TimingAttackTask.Enable();
     Bot.Main.TaskManager.Add(WorkerRushTask);
 }
Example #12
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     ForwardProbeTask.Enable();
 }
Example #13
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     QueenInjectTask.Enable();
     QueenDefenseTask.Enable();
     ArmyOverseerTask.Enable();
     QueenTumorTask.Enable();
     DefenseTask.Enable();
 }
Example #14
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     DefenseTask.Enable();
     SupplyDepotTask.Enable();
     RepairTask.Enable();
     ReplenishBuildingSCVTask.Enable();
     ClearBlockedExpandsTask.Enable();
     HomeRepairTask.Enable();
 }
Example #15
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     WorkerRushDefenseTask.Enable();
     DefenseTask.Enable();
     SupplyDepotTask.Enable();
     RepairTask.Enable();
     ReplenishBuildingSCVTask.Enable();
 }
Example #16
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Bot.Main.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     WorkerRushDefenseTask.Enable();
     ArmyObserverTask.Enable();
 }
Example #17
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     QueenInjectTask.Enable();
     QueenDefenseTask.Enable();
     ArmyOverseerTask.Enable();
     QueenTumorTask.Enable();
     DefenseTask.Enable();
     DefenseSquadTask.Enable(true, UnitTypes.HYDRALISK);
 }
Example #18
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     StalkerBlinkInMainTask.Enable();
     WorkerScoutTask.Enable();
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     ForceFieldRampTask.Enable();
 }
Example #19
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     if (Tyr.Bot.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Tyr.Bot.BaseManager.Pocket.BaseLocation.Pos);
     }
 }
Example #20
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     HideUnitsTask.Enable();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     OracleHarassBasesTask.Enable();
     WorkerScoutTask.Enable();
     ArmyObserverTask.Enable();
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
 }
Example #21
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     WorkerRushTask = CounterJensiii ? new WorkerRushJensiiTask() : new WorkerRushTask();
     Bot.Main.TaskManager.Add(WorkerRushTask);
     Bot.Main.TaskManager.Add(new FlyerAttackTask()
     {
         RequiredSize = 3
     });
     Bot.Main.TaskManager.Add(new ElevatorChaserTask());
     TimingAttackTask.Enable();
     RecallTask.Enable();
     DefenseTask.Enable();
 }
Example #22
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     WorkerRushDefenseTask.Enable();
     DefenseTask.Enable();
     SupplyDepotTask.Enable();
     RepairTask.Enable();
     ReplenishBuildingSCVTask.Enable();
     BunkerRushTask.Enable();
     BunkerRushTask.Task.Stopped = true;
     BunkerDefendersTask.Enable();
     ArmyRavenTask.Enable();
 }
Example #23
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     if (Tyr.Bot.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Tyr.Bot.BaseManager.Pocket.BaseLocation.Pos);
     }
     if (ProxyPylon && !PylonPlaced)
     {
         PlacePylonTask.Enable();
     }
 }
Example #24
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     ArmyObserverTask.Enable();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     DefendRegionTask.Enable();
     if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     if (Tyr.Bot.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Tyr.Bot.BaseManager.Pocket.BaseLocation.Pos);
     }
     ProxyTask.Enable(new List <ProxyBuilding>()
     {
         new ProxyBuilding()
         {
             UnitType = UnitTypes.PYLON
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.STARGATE, Number = 1, Test = () => Count(UnitTypes.CYBERNETICS_CORE) > 0
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.PHOTON_CANNON, Number = 1, Test = () => CollectionUtil.Get(ProxyTask.Task.UnitCounts, UnitTypes.STARGATE) > 0
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.STARGATE, Number = 2, Test = () => Count(UnitTypes.FLEET_BEACON) > 0
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.PHOTON_CANNON, Number = 3, Test = () => Minerals() >= 150 && Count(UnitTypes.FLEET_BEACON) > 0 && (Count(UnitTypes.TEMPEST) > 0 || Minerals() >= 600)
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.PYLON, Number = 2, Test = () => Minerals() >= 400 && Count(UnitTypes.PHOTON_CANNON) >= 3
         },
         new ProxyBuilding()
         {
             UnitType = UnitTypes.SHIELD_BATTERY, Number = 3, Test = () => Minerals() >= 400 && Count(UnitTypes.TEMPEST) > 0
         },
         //new ProxyBuilding() { UnitType = UnitTypes.STARGATE, Number = 1, Test = () => Count(UnitTypes.TEMPEST) >= 2 }
     }, true);
 }
Example #25
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     WorkerScoutTask.Enable();
     ShieldRegenTask.Enable();
     ArmyObserverTask.Enable();
     ObserverScoutTask.Enable();
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     ArchonMergeTask.Enable();
     ForceFieldRampTask.Enable();
 }
Example #26
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     if (ProxyPylon)
     {
         PlacePylonTask.Enable();
     }
     WorkerRushTask.Enable();
     WorkerRushTask.Task.TakeWorkers = RushWorkers;
 }
Example #27
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     ArmyObserverTask.Enable();
     if (Bot.Main.EnemyRace == SC2APIProtocol.Race.Zerg || Bot.Main.EnemyRace == SC2APIProtocol.Race.Protoss)
     {
         ForceFieldRampTask.Enable();
     }
     WorkerRushDefenseTask.Enable();
 }
Example #28
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();
            TimingAttackTask.Enable();
            WorkerScoutTask.Enable();
            QueenInjectTask.Enable();
            QueenDefenseTask.Enable();
            ArmyOverseerTask.Enable();
            QueenTumorTask.Enable();
            DefenseTask.Enable();
            WorkerRushDefenseTask.Enable();
            OverlordSuicideTask.Enable();
            SafeZerglingsFromReapersTask.Enable();

            BaseLocation enemyNatural = Tyr.Bot.MapAnalyzer.GetEnemyNatural();

            if (enemyNatural != null)
            {
                Base enemyNaturalBase = null;
                foreach (Base b in Tyr.Bot.BaseManager.Bases)
                {
                    if (SC2Util.DistanceSq(b.BaseLocation.Pos, enemyNatural.Pos) <= 2 * 2)
                    {
                        enemyNaturalBase = b;
                        break;
                    }
                }
                DefendEnemyNaturalTask = new DefenseSquadTask(enemyNaturalBase, UnitTypes.ZERGLING);
                DefendEnemyNaturalTask.MaxDefenders       = 100;
                DefendEnemyNaturalTask.AlwaysNeeded       = true;
                DefendEnemyNaturalTask.DraftFromFarAway   = true;
                DefendEnemyNaturalTask.DefendRange        = 12;
                DefendEnemyNaturalTask.RetreatMoveCommand = true;

                PotentialHelper potential = new PotentialHelper(enemyNatural.Pos);
                potential.Magnitude = 10;
                potential.From(Tyr.Bot.MapAnalyzer.GetEnemyRamp());
                DefendEnemyNaturalTask.OverrideIdleLocation = potential.Get();

                potential           = new PotentialHelper(enemyNatural.Pos);
                potential.Magnitude = 5;
                potential.From(Tyr.Bot.MapAnalyzer.GetEnemyRamp());
                DefendEnemyNaturalTask.OverrideDefenseLocation = potential.Get();
                DefenseSquadTask.Enable(DefendEnemyNaturalTask);
            }
        }
Example #29
0
 public override void InitializeTasks()
 {
     base.InitializeTasks();
     DefenseTask.Enable();
     TimingAttackTask.Enable();
     if (Bot.Main.TargetManager.PotentialEnemyStartLocations.Count > 1)
     {
         WorkerScoutTask.Enable();
     }
     if (Bot.Main.BaseManager.Pocket != null)
     {
         ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
     }
     HallucinationAttackTask.Enable();
     WorkerRushDefenseTask.Enable();
     ForceFieldRampTask.Enable();
 }
Example #30
0
        public override void InitializeTasks()
        {
            base.InitializeTasks();

            DefenseTask.Enable();
            TimingAttackTask.Enable();
            //if (Tyr.Bot.TargetManager.PotentialEnemyStartLocations.Count > 1)
            WorkerScoutTask.Enable();
            if (Bot.Main.BaseManager.Pocket != null)
            {
                ScoutProxyTask.Enable(Bot.Main.BaseManager.Pocket.BaseLocation.Pos);
            }
            ArmyObserverTask.Enable();
            ArmyOracleTask.Enable();
            TimedObserverTask.Enable();
            SaveWorkersTask.Enable();
        }