proc.nofreeactor was causing harv to not unload properly. Just spawn a normal proc after we've changed the owner of the Allied base.

This commit is contained in:
Scott_NZ
2012-11-24 13:56:41 +13:00
parent d15fb82b08
commit a5141f9908
2 changed files with 6 additions and 24 deletions

View File

@@ -594,23 +594,13 @@ namespace OpenRA.Mods.RA.Missions
foreach (var actor in actors.Where(a => a.Value.Owner == allies))
{
actor.Value.ChangeOwner(allies2);
if (actor.Value.Info.Name == "proc.nofreeactor")
}
world.CreateActor("proc", new TypeDictionary
{
CreateAlliedHarvester(actor.Value.Location);
}
}
new LocationInit(actors["Allies2ProcPoint"].Location),
new OwnerInit(allies2)
});
}
void CreateAlliedHarvester(CPos location)
{
var actor = world.CreateActor("harv", new TypeDictionary
{
new LocationInit(location + new CVec(1, 2)),
new OwnerInit(allies2),
new FacingInit(64)
});
actor.QueueActivity(new FindResources());
}
void PlayMusic()

View File

@@ -1481,7 +1481,7 @@ Actors:
Actor290: apwr
Location: 52,42
Owner: Soviets
Actor924: proc.nofreeactor
Allies2ProcPoint: waypoint
Location: 25,95
Owner: Allies
Actor455: fenc
@@ -2869,14 +2869,6 @@ Rules:
Allies02Script:
MissionObjectivesPanel:
ObjectivesPanel: MISSION_OBJECTIVES
PROC.NoFreeActor:
Inherits: PROC
-FreeActor:
-Buildable:
RenderBuilding:
Image: PROC
ProvidesCustomPrerequisite:
Prerequisite: proc
TRAN.Husk1:
Burns:
Damage: 0