Let Gunboat autotarget

This commit is contained in:
Paul Chote
2010-08-19 23:13:35 +12:00
parent 56b9d1add7
commit b0608936d8
4 changed files with 4 additions and 3 deletions

View File

@@ -102,8 +102,8 @@ namespace OpenRA.Mods.RA
void SetGunboatPath() void SetGunboatPath()
{ {
Actors["Gunboat"].QueueActivity(new Move( Map.Waypoints["gunboatRight"],1));
Actors["Gunboat"].QueueActivity(new Move( Map.Waypoints["gunboatLeft"],1)); Actors["Gunboat"].QueueActivity(new Move( Map.Waypoints["gunboatLeft"],1));
Actors["Gunboat"].QueueActivity(new Move( Map.Waypoints["gunboatRight"],1));
Actors["Gunboat"].QueueActivity(new CallFunc(() => SetGunboatPath())); Actors["Gunboat"].QueueActivity(new CallFunc(() => SetGunboatPath()));
} }

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA
public void Tick(Actor self) public void Tick(Actor self)
{ {
if (!self.IsIdle) return; if (!self.IsIdle && self.Info.Traits.Get<AutoTargetInfo>().AllowMovement) return;
if (--nextScanTime <= 0) if (--nextScanTime <= 0)
{ {

View File

@@ -331,7 +331,7 @@ Actors:
Location: 53,59 Location: 53,59
Owner: GoodGuy Owner: GoodGuy
Health: 1 Health: 1
Facing: 192 Facing: 64
ActorStance: Hunt ActorStance: Hunt
Actor88: e1 Actor88: e1
Location: 56,55 Location: 56,55

View File

@@ -537,6 +537,7 @@ BOAT:
PrimaryLocalOffset: -3,-5,0,3,-5,0,0,-5,0 PrimaryLocalOffset: -3,-5,0,3,-5,0,0,-5,0
RenderGunboat: RenderGunboat:
AutoTarget: AutoTarget:
AllowMovement: false
LST: LST:
Inherits: ^Ship Inherits: ^Ship