Remove DOME.IGNORE from soviet-05
This commit is contained in:
@@ -219,7 +219,7 @@ Actors:
|
|||||||
Location: 69,49
|
Location: 69,49
|
||||||
Owner: Greece
|
Owner: Greece
|
||||||
Facing: 32
|
Facing: 32
|
||||||
Radar: dome.ignore
|
Radar: dome
|
||||||
Location: 70,45
|
Location: 70,45
|
||||||
Owner: Greece
|
Owner: Greece
|
||||||
Actor57: fact
|
Actor57: fact
|
||||||
|
|||||||
@@ -82,13 +82,11 @@ APC:
|
|||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
|
|
||||||
DOME.IGNORE:
|
DOME:
|
||||||
Inherits: DOME
|
ExternalCondition@lua:
|
||||||
RenderSprites:
|
Condition: captured
|
||||||
Image: DOME
|
|
||||||
AutoTargetIgnore:
|
AutoTargetIgnore:
|
||||||
Buildable:
|
RequiresCondition: !captured
|
||||||
Prerequisites: ~disabled
|
|
||||||
|
|
||||||
powerproxy.paratroopers:
|
powerproxy.paratroopers:
|
||||||
ParatroopersPower:
|
ParatroopersPower:
|
||||||
|
|||||||
@@ -206,14 +206,16 @@ WorldLoaded = function()
|
|||||||
Trigger.OnDamaged(mcvtransport, Expand)
|
Trigger.OnDamaged(mcvtransport, Expand)
|
||||||
|
|
||||||
Trigger.OnKilled(Radar, function()
|
Trigger.OnKilled(Radar, function()
|
||||||
player.MarkFailedObjective(CaptureObjective)
|
if not player.IsObjectiveCompleted(CaptureObjective) then
|
||||||
end)
|
player.MarkFailedObjective(CaptureObjective)
|
||||||
|
|
||||||
Trigger.OnCapture(Radar, function(self, captor)
|
|
||||||
if captor.Owner ~= player then
|
|
||||||
return
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if HoldObjective then
|
||||||
|
player.MarkFailedObjective(HoldObjective)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
Trigger.OnCapture(Radar, function()
|
||||||
HoldObjective = player.AddPrimaryObjective("Defend the Radar Dome.")
|
HoldObjective = player.AddPrimaryObjective("Defend the Radar Dome.")
|
||||||
player.MarkCompletedObjective(CaptureObjective)
|
player.MarkCompletedObjective(CaptureObjective)
|
||||||
|
|
||||||
@@ -222,15 +224,12 @@ WorldLoaded = function()
|
|||||||
ExpansionCheck = true
|
ExpansionCheck = true
|
||||||
end
|
end
|
||||||
|
|
||||||
Reinforcements.Reinforce(Greece, ArmorReinfGreece, AlliedCrossroadsToRadarPath , 0, function(soldier)
|
Reinforcements.Reinforce(Greece, ArmorReinfGreece, AlliedCrossroadsToRadarPath , 0, IdleHunt)
|
||||||
soldier.Hunt()
|
|
||||||
end)
|
|
||||||
|
|
||||||
Trigger.AfterDelay(1, function()
|
Radar.GrantCondition("captured")
|
||||||
local newRadar = Actor.Create("dome", true, { Owner = player, Location = Radar.Location })
|
Trigger.ClearAll(Radar)
|
||||||
newRadar.Health = Radar.Health
|
Trigger.AfterDelay(0, function()
|
||||||
Radar.Destroy()
|
Trigger.OnRemovedFromWorld(Radar, function()
|
||||||
Trigger.OnKilled(newRadar, function()
|
|
||||||
player.MarkFailedObjective(HoldObjective)
|
player.MarkFailedObjective(HoldObjective)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user