Merge pull request #11636 from abcdefg30/noGuard

Don't allow tanya to automatically target, but allow her to move within a attack-moving/guarding group
This commit is contained in:
Oliver Brakmann
2016-09-04 13:44:46 +02:00
committed by GitHub
6 changed files with 9 additions and 19 deletions

View File

@@ -5,10 +5,8 @@ DeathThreshold =
}
TanyaType = "e7"
TanyaStance = "AttackAnything"
if Map.LobbyOption("difficulty") ~= "easy" then
TanyaType = "e7.noautotarget"
TanyaStance = "HoldFire"
end
RepairTriggerThreshold =
@@ -25,7 +23,7 @@ TownUnits =
TownUnit08, TownUnit09, TownUnit10, TownUnit11, TownUnit12, TownUnit13, TownUnit14,
}
ParabombDelay = DateTime.Seconds(30)
ParabombDelay = DateTime.Seconds(30)
ParatroopersDelay = DateTime.Minutes(5)
Paratroopers =
{
@@ -281,7 +279,6 @@ end
SpawnTanya = function()
Tanya = Actor.Create(TanyaType, true, { Owner = allies1, Location = TanyaLocation.Location })
Tanya.Stance = TanyaStance
if Map.LobbyOption("difficulty") ~= "easy" and allies1.IsLocalPlayer then
Trigger.AfterDelay(DateTime.Seconds(2), function()
@@ -360,4 +357,4 @@ WorldLoaded = function()
SetupTriggers()
SetupSoviets()
end
end