public override void InitializeTasks() { base.InitializeTasks(); QueenInjectTask.Enable(); QueenDefenseTask.Enable(); DefenseTask.Enable(); TimingAttackTask.Enable(); SafeZerglingsFromReapersTask.Enable(); }
public override void InitializeTasks() { base.InitializeTasks(); TimingAttackTask.Enable(); WorkerScoutTask.Enable(); QueenInjectTask.Enable(); QueenDefenseTask.Enable(); ArmyOverseerTask.Enable(); QueenTumorTask.Enable(); DefenseTask.Enable(); WorkerRushDefenseTask.Enable(); SafeZerglingsFromReapersTask.Enable(); }
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); } }