Let Gunboat autotarget
This commit is contained in:
@@ -102,8 +102,8 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
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["gunboatRight"],1));
|
||||
Actors["Gunboat"].QueueActivity(new CallFunc(() => SetGunboatPath()));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public void Tick(Actor self)
|
||||
{
|
||||
if (!self.IsIdle) return;
|
||||
if (!self.IsIdle && self.Info.Traits.Get<AutoTargetInfo>().AllowMovement) return;
|
||||
|
||||
if (--nextScanTime <= 0)
|
||||
{
|
||||
|
||||
@@ -331,7 +331,7 @@ Actors:
|
||||
Location: 53,59
|
||||
Owner: GoodGuy
|
||||
Health: 1
|
||||
Facing: 192
|
||||
Facing: 64
|
||||
ActorStance: Hunt
|
||||
Actor88: e1
|
||||
Location: 56,55
|
||||
|
||||
@@ -537,6 +537,7 @@ BOAT:
|
||||
PrimaryLocalOffset: -3,-5,0,3,-5,0,0,-5,0
|
||||
RenderGunboat:
|
||||
AutoTarget:
|
||||
AllowMovement: false
|
||||
|
||||
LST:
|
||||
Inherits: ^Ship
|
||||
|
||||
Reference in New Issue
Block a user