Add Guard support to Aircraft.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
NEW:
|
||||
All Mods:
|
||||
An error dialog is now displayed when server connections are lost.
|
||||
Added AttackMove and Guard abilities to Aircraft and Helicopters.
|
||||
Unified the main menu navigation between TD and other mods:
|
||||
Moved Create Game and Direct Connect facilities to the server browser.
|
||||
Added skirmish mode to RA and D2k to complement TD's skirmish mode.
|
||||
@@ -18,7 +19,6 @@ NEW:
|
||||
Fixed transparency glitches in the sniper icon.
|
||||
Tiberian Dawn:
|
||||
Commando can now plant C4 on bridges.
|
||||
Helicopters can now AttackMove.
|
||||
Engine:
|
||||
Converted Aircraft CruiseAltitude to world coordinates.
|
||||
Converted Health Radius to world coordinates.
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
public class Follow : Activity
|
||||
{
|
||||
Target target;
|
||||
Mobile mobile;
|
||||
IMove move;
|
||||
WRange range;
|
||||
int nextPathTime;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
public Follow(Actor self, Target target, WRange range)
|
||||
{
|
||||
this.target = target;
|
||||
mobile = self.Trait<Mobile>();
|
||||
move = self.Trait<IMove>();
|
||||
this.range = range;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.RA.Activities
|
||||
nextPathTime = self.World.SharedRandom.Next(delayBetweenPathingAttempts - delaySpread,
|
||||
delayBetweenPathingAttempts + delaySpread);
|
||||
|
||||
return Util.SequenceActivities(mobile.MoveWithinRange(target, range), this);
|
||||
return Util.SequenceActivities(move.MoveWithinRange(target, range), this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA
|
||||
{
|
||||
class GuardInfo : TraitInfo<Guard>, Requires<MobileInfo> { }
|
||||
class GuardInfo : TraitInfo<Guard> { }
|
||||
|
||||
class Guard : IResolveOrder, IOrderVoice
|
||||
{
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
EmptyWeapon: HeliExplode
|
||||
CombatDebugOverlay:
|
||||
AttackMove:
|
||||
Guard:
|
||||
BodyOrientation:
|
||||
UpdatesPlayerStatistics:
|
||||
Huntable:
|
||||
|
||||
@@ -197,6 +197,7 @@
|
||||
GroundedTargetTypes: Ground
|
||||
HiddenUnderFog:
|
||||
AttackMove:
|
||||
Guard:
|
||||
GainsExperience:
|
||||
GivesExperience:
|
||||
DrawLineToTarget:
|
||||
|
||||
Reference in New Issue
Block a user