if c17 gets confused, just fly away
This commit is contained in:
@@ -12,9 +12,9 @@ using System.Linq;
|
|||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.Mods.RA;
|
using OpenRA.Mods.RA;
|
||||||
using OpenRA.Mods.RA.Activities;
|
using OpenRA.Mods.RA.Activities;
|
||||||
|
using OpenRA.Mods.RA.Render;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
using OpenRA.Traits.Activities;
|
using OpenRA.Traits.Activities;
|
||||||
using OpenRA.Mods.RA.Render;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.Cnc
|
namespace OpenRA.Mods.Cnc
|
||||||
{
|
{
|
||||||
@@ -33,8 +33,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
|
|
||||||
// Start and end beyond the edge of the map, to give a finite delay, and ability to land when AFLD is on map edge
|
// Start and end beyond the edge of the map, to give a finite delay, and ability to land when AFLD is on map edge
|
||||||
var startPos = new int2(owner.World.Map.XOffset + owner.World.Map.Width+5, self.Location.Y);
|
var startPos = new int2(owner.World.Map.XOffset + owner.World.Map.Width+5, self.Location.Y);
|
||||||
var endPos = new int2(owner.World.Map.XOffset-5, self.Location.Y);
|
var endPos = new int2(owner.World.Map.XOffset-5, self.Location.Y);
|
||||||
|
|
||||||
|
|
||||||
// Assume a single exit point for simplicity
|
// Assume a single exit point for simplicity
|
||||||
var exit = self.Info.Traits.WithInterface<ExitInfo>().First();
|
var exit = self.Info.Traits.WithInterface<ExitInfo>().First();
|
||||||
|
|||||||
@@ -37,4 +37,14 @@ namespace OpenRA.Mods.RA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class FlyAwayOnIdleInfo : TraitInfo<FlyAwayOnIdle> { }
|
||||||
|
|
||||||
|
class FlyAwayOnIdle : INotifyIdle
|
||||||
|
{
|
||||||
|
public void Idle(Actor self)
|
||||||
|
{
|
||||||
|
self.QueueActivity(new FlyOffMap());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -562,6 +562,7 @@ C17:
|
|||||||
-Selectable:
|
-Selectable:
|
||||||
-Targetable:
|
-Targetable:
|
||||||
-GainsExperience:
|
-GainsExperience:
|
||||||
|
FlyAwayOnIdle:
|
||||||
|
|
||||||
A10:
|
A10:
|
||||||
Inherits: ^Plane
|
Inherits: ^Plane
|
||||||
@@ -584,6 +585,7 @@ A10:
|
|||||||
Range: 3
|
Range: 3
|
||||||
-Selectable:
|
-Selectable:
|
||||||
-GainsExperience:
|
-GainsExperience:
|
||||||
|
FlyAwayOnIdle:
|
||||||
|
|
||||||
BOAT:
|
BOAT:
|
||||||
Inherits: ^Ship
|
Inherits: ^Ship
|
||||||
|
|||||||
Reference in New Issue
Block a user