Let Gunboat autotarget
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user