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:
@@ -594,25 +594,15 @@ 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")
|
||||
{
|
||||
CreateAlliedHarvester(actor.Value.Location);
|
||||
}
|
||||
}
|
||||
world.CreateActor("proc", new TypeDictionary
|
||||
{
|
||||
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()
|
||||
{
|
||||
if (!Rules.InstalledMusic.Any())
|
||||
|
||||
Reference in New Issue
Block a user