Replace IDisableMove with upgradability
This commit is contained in:
@@ -127,7 +127,6 @@ namespace OpenRA.Traits
|
|||||||
public interface INotifyCapture { void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner); }
|
public interface INotifyCapture { void OnCapture(Actor self, Actor captor, Player oldOwner, Player newOwner); }
|
||||||
public interface INotifyInfiltrated { void Infiltrated(Actor self, Actor infiltrator); }
|
public interface INotifyInfiltrated { void Infiltrated(Actor self, Actor infiltrator); }
|
||||||
public interface INotifyDiscovered { void OnDiscovered(Actor self, Player discoverer, bool playNotification); }
|
public interface INotifyDiscovered { void OnDiscovered(Actor self, Player discoverer, bool playNotification); }
|
||||||
public interface IDisableMove { bool MoveDisabled(Actor self); }
|
|
||||||
|
|
||||||
public interface ISeedableResource { void Seed(Actor self); }
|
public interface ISeedableResource { void Seed(Actor self); }
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
{
|
{
|
||||||
readonly IPositionable positionable;
|
readonly IPositionable positionable;
|
||||||
readonly IMove movement;
|
readonly IMove movement;
|
||||||
readonly IDisableMove[] moveDisablers;
|
readonly IDisabledTrait disableable;
|
||||||
WPos start, end;
|
WPos start, end;
|
||||||
int length;
|
int length;
|
||||||
int ticks = 0;
|
int ticks = 0;
|
||||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
{
|
{
|
||||||
positionable = self.Trait<IPositionable>();
|
positionable = self.Trait<IPositionable>();
|
||||||
movement = self.TraitOrDefault<IMove>();
|
movement = self.TraitOrDefault<IMove>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
disableable = movement as IDisabledTrait;
|
||||||
this.start = start;
|
this.start = start;
|
||||||
this.end = end;
|
this.end = end;
|
||||||
this.length = length;
|
this.length = length;
|
||||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
public override Activity Tick(Actor self)
|
public override Activity Tick(Actor self)
|
||||||
{
|
{
|
||||||
if (moveDisablers.Any(d => d.MoveDisabled(self)))
|
if (disableable != null && disableable.IsTraitDisabled)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
var pos = length > 1
|
var pos = length > 1
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
static readonly List<CPos> NoPath = new List<CPos>();
|
static readonly List<CPos> NoPath = new List<CPos>();
|
||||||
|
|
||||||
readonly Mobile mobile;
|
readonly Mobile mobile;
|
||||||
readonly IDisableMove[] moveDisablers;
|
|
||||||
readonly WDist nearEnough;
|
readonly WDist nearEnough;
|
||||||
readonly Func<List<CPos>> getPath;
|
readonly Func<List<CPos>> getPath;
|
||||||
readonly Actor ignoredActor;
|
readonly Actor ignoredActor;
|
||||||
@@ -43,7 +42,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, CPos destination)
|
public Move(Actor self, CPos destination)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
getPath = () =>
|
getPath = () =>
|
||||||
{
|
{
|
||||||
@@ -65,7 +63,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, CPos destination, WDist nearEnough)
|
public Move(Actor self, CPos destination, WDist nearEnough)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
getPath = () => self.World.WorldActor.Trait<IPathFinder>()
|
getPath = () => self.World.WorldActor.Trait<IPathFinder>()
|
||||||
.FindUnitPath(mobile.ToCell, destination, self);
|
.FindUnitPath(mobile.ToCell, destination, self);
|
||||||
@@ -76,7 +73,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, CPos destination, SubCell subCell, WDist nearEnough)
|
public Move(Actor self, CPos destination, SubCell subCell, WDist nearEnough)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
getPath = () => self.World.WorldActor.Trait<IPathFinder>()
|
getPath = () => self.World.WorldActor.Trait<IPathFinder>()
|
||||||
.FindUnitPathToRange(mobile.FromCell, subCell, self.World.Map.CenterOfSubCell(destination, subCell), nearEnough, self);
|
.FindUnitPathToRange(mobile.FromCell, subCell, self.World.Map.CenterOfSubCell(destination, subCell), nearEnough, self);
|
||||||
@@ -87,7 +83,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, CPos destination, Actor ignoredActor)
|
public Move(Actor self, CPos destination, Actor ignoredActor)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
getPath = () =>
|
getPath = () =>
|
||||||
{
|
{
|
||||||
@@ -107,7 +102,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, Target target, WDist range)
|
public Move(Actor self, Target target, WDist range)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
getPath = () =>
|
getPath = () =>
|
||||||
{
|
{
|
||||||
@@ -125,7 +119,6 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
public Move(Actor self, Func<List<CPos>> getPath)
|
public Move(Actor self, Func<List<CPos>> getPath)
|
||||||
{
|
{
|
||||||
mobile = self.Trait<Mobile>();
|
mobile = self.Trait<Mobile>();
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
|
|
||||||
this.getPath = getPath;
|
this.getPath = getPath;
|
||||||
|
|
||||||
@@ -155,7 +148,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (IsCanceled)
|
if (IsCanceled)
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
|
|
||||||
if (mobile.IsTraitDisabled || moveDisablers.Any(d => d.MoveDisabled(self)))
|
if (mobile.IsTraitDisabled)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
if (destination == mobile.ToCell)
|
if (destination == mobile.ToCell)
|
||||||
|
|||||||
@@ -11,18 +11,19 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Activities;
|
using OpenRA.Activities;
|
||||||
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.Activities
|
namespace OpenRA.Mods.Common.Activities
|
||||||
{
|
{
|
||||||
public class Turn : Activity
|
public class Turn : Activity
|
||||||
{
|
{
|
||||||
readonly IDisableMove[] moveDisablers;
|
readonly IDisabledTrait disablable;
|
||||||
readonly int desiredFacing;
|
readonly int desiredFacing;
|
||||||
|
|
||||||
public Turn(Actor self, int desiredFacing)
|
public Turn(Actor self, int desiredFacing)
|
||||||
{
|
{
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
disablable = self.TraitOrDefault<IMove>() as IDisabledTrait;
|
||||||
this.desiredFacing = desiredFacing;
|
this.desiredFacing = desiredFacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
{
|
{
|
||||||
if (IsCanceled)
|
if (IsCanceled)
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
if (moveDisablers.Any(d => d.MoveDisabled(self)))
|
if (disablable != null && disablable.IsTraitDisabled)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
var facing = self.Trait<IFacing>();
|
var facing = self.Trait<IFacing>();
|
||||||
|
|||||||
@@ -483,7 +483,6 @@
|
|||||||
<Compile Include="Traits\ProducibleWithLevel.cs" />
|
<Compile Include="Traits\ProducibleWithLevel.cs" />
|
||||||
<Compile Include="Traits\Upgrades\DeployToUpgrade.cs" />
|
<Compile Include="Traits\Upgrades\DeployToUpgrade.cs" />
|
||||||
<Compile Include="Traits\Upgrades\DisableOnUpgrade.cs" />
|
<Compile Include="Traits\Upgrades\DisableOnUpgrade.cs" />
|
||||||
<Compile Include="Traits\Upgrades\DisableMovementOnUpgrade.cs" />
|
|
||||||
<Compile Include="Traits\Upgrades\UpgradableTrait.cs" />
|
<Compile Include="Traits\Upgrades\UpgradableTrait.cs" />
|
||||||
<Compile Include="Traits\Upgrades\UpgradeActorsNear.cs" />
|
<Compile Include="Traits\Upgrades\UpgradeActorsNear.cs" />
|
||||||
<Compile Include="Traits\Upgrades\UpgradeManager.cs" />
|
<Compile Include="Traits\Upgrades\UpgradeManager.cs" />
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class Cargo : IPips, IIssueOrder, IResolveOrder, IOrderVoice, INotifyCreated, INotifyKilled,
|
public class Cargo : IPips, IIssueOrder, IResolveOrder, IOrderVoice, INotifyCreated, INotifyKilled,
|
||||||
INotifyOwnerChanged, INotifyAddedToWorld, ITick, INotifySold, IDisableMove, INotifyActorDisposing
|
INotifyOwnerChanged, INotifyAddedToWorld, ITick, INotifySold, INotifyActorDisposing
|
||||||
{
|
{
|
||||||
public readonly CargoInfo Info;
|
public readonly CargoInfo Info;
|
||||||
readonly Actor self;
|
readonly Actor self;
|
||||||
@@ -228,7 +228,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return Info.UnloadVoice;
|
return Info.UnloadVoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool MoveDisabled(Actor self) { return reserves.Any(); }
|
|
||||||
public bool HasSpace(int weight) { return totalWeight + reservedWeight + weight <= Info.MaxWeight; }
|
public bool HasSpace(int weight) { return totalWeight + reservedWeight + weight <= Info.MaxWeight; }
|
||||||
public bool IsEmpty(Actor self) { return cargo.Count == 0; }
|
public bool IsEmpty(Actor self) { return cargo.Count == 0; }
|
||||||
|
|
||||||
|
|||||||
@@ -695,14 +695,12 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
readonly Mobile mobile;
|
readonly Mobile mobile;
|
||||||
readonly bool rejectMove;
|
readonly bool rejectMove;
|
||||||
readonly IDisableMove[] moveDisablers;
|
|
||||||
public bool OverrideSelection { get { return false; } }
|
public bool OverrideSelection { get { return false; } }
|
||||||
|
|
||||||
public MoveOrderTargeter(Actor self, Mobile unit)
|
public MoveOrderTargeter(Actor self, Mobile unit)
|
||||||
{
|
{
|
||||||
this.mobile = unit;
|
this.mobile = unit;
|
||||||
rejectMove = !self.AcceptsOrder("Move");
|
rejectMove = !self.AcceptsOrder("Move");
|
||||||
moveDisablers = self.TraitsImplementing<IDisableMove>().ToArray();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string OrderID { get { return "Move"; } }
|
public string OrderID { get { return "Move"; } }
|
||||||
@@ -723,8 +721,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
if (mobile.IsTraitDisabled
|
if (mobile.IsTraitDisabled
|
||||||
|| (!explored && !mobile.Info.MoveIntoShroud)
|
|| (!explored && !mobile.Info.MoveIntoShroud)
|
||||||
|| (explored && mobile.Info.MovementCostForCell(self.World, location) == int.MaxValue)
|
|| (explored && mobile.Info.MovementCostForCell(self.World, location) == int.MaxValue))
|
||||||
|| moveDisablers.Any(d => d.MoveDisabled(self)))
|
|
||||||
cursor = mobile.Info.BlockedCursor;
|
cursor = mobile.Info.BlockedCursor;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
#region Copyright & License Information
|
|
||||||
/*
|
|
||||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
|
||||||
* available to you under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation. For more information,
|
|
||||||
* see COPYING.
|
|
||||||
*/
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
using OpenRA.Traits;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
|
||||||
{
|
|
||||||
[Desc("Disable the ability to move and turn of the actor when this trait is enabled by an upgrade.")]
|
|
||||||
public class DisableMovementInfo : UpgradableTraitInfo
|
|
||||||
{
|
|
||||||
public override object Create(ActorInitializer init) { return new DisableMovementOnUpgrade(this); }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class DisableMovementOnUpgrade : UpgradableTrait<DisableMovementInfo>, IDisableMove
|
|
||||||
{
|
|
||||||
public DisableMovementOnUpgrade(DisableMovementInfo info)
|
|
||||||
: base(info) { }
|
|
||||||
|
|
||||||
public bool MoveDisabled(Actor self) { return !IsTraitDisabled; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -18,12 +18,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public override object Create(ActorInitializer init) { return new DisableOnUpgrade(this); }
|
public override object Create(ActorInitializer init) { return new DisableOnUpgrade(this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DisableOnUpgrade : UpgradableTrait<DisableOnUpgradeInfo>, IDisable, IDisableMove
|
public class DisableOnUpgrade : UpgradableTrait<DisableOnUpgradeInfo>, IDisable
|
||||||
{
|
{
|
||||||
public DisableOnUpgrade(DisableOnUpgradeInfo info)
|
public DisableOnUpgrade(DisableOnUpgradeInfo info)
|
||||||
: base(info) { }
|
: base(info) { }
|
||||||
|
|
||||||
public bool Disabled { get { return !IsTraitDisabled; } }
|
public bool Disabled { get { return !IsTraitDisabled; } }
|
||||||
public bool MoveDisabled(Actor self) { return !IsTraitDisabled; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2510,6 +2510,32 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify how to restore blocking movement of Mobile actors with Carryable and/or Cargo
|
||||||
|
if (engineVersion < 20151204 && depth == 2)
|
||||||
|
{
|
||||||
|
if (node.Key == "Carryable")
|
||||||
|
{
|
||||||
|
Console.WriteLine("Use CarryableUpgrades of Carryable to disable Mobile while " + parent.Key + " is waiting or being carried.");
|
||||||
|
}
|
||||||
|
else if (node.Key == "Cargo")
|
||||||
|
{
|
||||||
|
Console.WriteLine("Use LoadingUpgrades of Cargo to disable Mobile while " + parent.Key + " is loading cargo.");
|
||||||
|
}
|
||||||
|
else if (node.Key == "DeployToUpgrade")
|
||||||
|
{
|
||||||
|
Console.WriteLine("Use Upgrades of DeployToUpgrade to disable Mobile while " + parent.Key + " is deployed (instead of DisableUpgrade).");
|
||||||
|
}
|
||||||
|
else if (node.Key == "DisableUpgrade")
|
||||||
|
{
|
||||||
|
Console.WriteLine("DisableUpgrade no longer disables Mobile. Use Mobile upgradablility instead for " + parent.Key + ".");
|
||||||
|
}
|
||||||
|
else if (node.Key == "DisableMovementOnUpgrade")
|
||||||
|
{
|
||||||
|
parent.Value.Nodes.Remove(node);
|
||||||
|
Console.WriteLine("DisableMovementOnUpgrade is removed. Use Mobile upgradablility instead for " + parent.Key + ".");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
public object Create(ActorInitializer init) { return new Carryable(init.Self, this); }
|
public object Create(ActorInitializer init) { return new Carryable(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Carryable : IDisableMove, INotifyHarvesterAction, ICallForTransport
|
public class Carryable : INotifyHarvesterAction, ICallForTransport
|
||||||
{
|
{
|
||||||
readonly CarryableInfo info;
|
readonly CarryableInfo info;
|
||||||
readonly Actor self;
|
readonly Actor self;
|
||||||
@@ -196,12 +196,5 @@ namespace OpenRA.Mods.D2k.Traits
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// IMoveDisabled
|
|
||||||
public bool MoveDisabled(Actor self)
|
|
||||||
{
|
|
||||||
// We do not want to move while being locked. The carrier will try to pick us up.
|
|
||||||
return locked;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ LST:
|
|||||||
BuildPaletteOrder: 1000
|
BuildPaletteOrder: 1000
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
Mobile:
|
Mobile:
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
Crushes: crate
|
Crushes: crate
|
||||||
TerrainSpeeds:
|
TerrainSpeeds:
|
||||||
Clear: 100
|
Clear: 100
|
||||||
@@ -76,4 +78,5 @@ LST:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
PassengerFacing: 0
|
PassengerFacing: 0
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ APC:
|
|||||||
Prerequisites: pyle
|
Prerequisites: pyle
|
||||||
Queue: Vehicle.GDI
|
Queue: Vehicle.GDI
|
||||||
Mobile:
|
Mobile:
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
ROT: 8
|
ROT: 8
|
||||||
Speed: 128
|
Speed: 128
|
||||||
Health:
|
Health:
|
||||||
@@ -120,6 +122,7 @@ APC:
|
|||||||
Types: Infantry
|
Types: Infantry
|
||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
SpawnActorOnDeath:
|
SpawnActorOnDeath:
|
||||||
Actor: APC.Husk
|
Actor: APC.Husk
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,8 @@
|
|||||||
Inherits@2: ^GainsExperience
|
Inherits@2: ^GainsExperience
|
||||||
Inherits@3: ^SpriteActor
|
Inherits@3: ^SpriteActor
|
||||||
Mobile:
|
Mobile:
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
Crushes: crate, spicebloom
|
Crushes: crate, spicebloom
|
||||||
TerrainSpeeds:
|
TerrainSpeeds:
|
||||||
Sand: 100
|
Sand: 100
|
||||||
@@ -92,6 +94,7 @@
|
|||||||
Voiced:
|
Voiced:
|
||||||
VoiceSet: VehicleVoice
|
VoiceSet: VehicleVoice
|
||||||
Carryable:
|
Carryable:
|
||||||
|
CarryableUpgrades: notmobile
|
||||||
WithDecorationCarryable:
|
WithDecorationCarryable:
|
||||||
Image: pips
|
Image: pips
|
||||||
Sequence: pickup-indicator
|
Sequence: pickup-indicator
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ thumper:
|
|||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 2c768
|
Range: 2c768
|
||||||
Mobile:
|
Mobile:
|
||||||
|
UpgradeTypes: deployed
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
Speed: 43
|
Speed: 43
|
||||||
DeployToUpgrade:
|
DeployToUpgrade:
|
||||||
DeployedUpgrades: deployed
|
DeployedUpgrades: deployed
|
||||||
@@ -119,9 +121,6 @@ thumper:
|
|||||||
Falloff: 0, 0, 0, 100, 100, 100, 25, 11, 6, 4, 3, 2, 1, 0
|
Falloff: 0, 0, 0, 100, 100, 100, 25, 11, 6, 4, 3, 2, 1, 0
|
||||||
UpgradeTypes: deployed
|
UpgradeTypes: deployed
|
||||||
UpgradeMinEnabledLevel: 1
|
UpgradeMinEnabledLevel: 1
|
||||||
DisableOnUpgrade:
|
|
||||||
UpgradeTypes: deployed
|
|
||||||
UpgradeMinEnabledLevel: 1
|
|
||||||
Passenger:
|
Passenger:
|
||||||
PipType: Blue
|
PipType: Blue
|
||||||
Voiced:
|
Voiced:
|
||||||
|
|||||||
@@ -226,6 +226,8 @@ LST:
|
|||||||
Armor:
|
Armor:
|
||||||
Type: Heavy
|
Type: Heavy
|
||||||
Mobile:
|
Mobile:
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
ROT: 10
|
ROT: 10
|
||||||
Speed: 113
|
Speed: 113
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -239,6 +241,7 @@ LST:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
PassengerFacing: 0
|
PassengerFacing: 0
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
-Chronoshiftable:
|
-Chronoshiftable:
|
||||||
|
|
||||||
PT:
|
PT:
|
||||||
|
|||||||
@@ -334,6 +334,8 @@ JEEP:
|
|||||||
Mobile:
|
Mobile:
|
||||||
ROT: 10
|
ROT: 10
|
||||||
Speed: 170
|
Speed: 170
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 8c0
|
Range: 8c0
|
||||||
Turreted:
|
Turreted:
|
||||||
@@ -350,6 +352,7 @@ JEEP:
|
|||||||
Types: Infantry
|
Types: Infantry
|
||||||
MaxWeight: 1
|
MaxWeight: 1
|
||||||
PipCount: 1
|
PipCount: 1
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
ProducibleWithLevel:
|
ProducibleWithLevel:
|
||||||
Prerequisites: vehicles.upgraded
|
Prerequisites: vehicles.upgraded
|
||||||
|
|
||||||
@@ -371,6 +374,8 @@ APC:
|
|||||||
Mobile:
|
Mobile:
|
||||||
Speed: 142
|
Speed: 142
|
||||||
Crushes: wall, mine, crate, infantry
|
Crushes: wall, mine, crate, infantry
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 5c0
|
Range: 5c0
|
||||||
Armament:
|
Armament:
|
||||||
@@ -384,6 +389,7 @@ APC:
|
|||||||
Types: Infantry
|
Types: Infantry
|
||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
ProducibleWithLevel:
|
ProducibleWithLevel:
|
||||||
Prerequisites: vehicles.upgraded
|
Prerequisites: vehicles.upgraded
|
||||||
|
|
||||||
@@ -727,6 +733,8 @@ STNK:
|
|||||||
Mobile:
|
Mobile:
|
||||||
Speed: 142
|
Speed: 142
|
||||||
Crushes: wall, mine, crate, infantry
|
Crushes: wall, mine, crate, infantry
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 7c0
|
Range: 7c0
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
@@ -743,6 +751,7 @@ STNK:
|
|||||||
Types: Infantry
|
Types: Infantry
|
||||||
MaxWeight: 4
|
MaxWeight: 4
|
||||||
PipCount: 4
|
PipCount: 4
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
Cloak:
|
Cloak:
|
||||||
InitialDelay: 125
|
InitialDelay: 125
|
||||||
CloakDelay: 250
|
CloakDelay: 250
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ BUS:
|
|||||||
MaxWeight: 20
|
MaxWeight: 20
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
PICK:
|
PICK:
|
||||||
Inherits: ^CivilianVoxelVehicle
|
Inherits: ^CivilianVoxelVehicle
|
||||||
@@ -119,6 +120,7 @@ PICK:
|
|||||||
MaxWeight: 2
|
MaxWeight: 2
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
CAR:
|
CAR:
|
||||||
Inherits: ^CivilianVoxelVehicle
|
Inherits: ^CivilianVoxelVehicle
|
||||||
@@ -140,6 +142,7 @@ CAR:
|
|||||||
MaxWeight: 4
|
MaxWeight: 4
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
WINI:
|
WINI:
|
||||||
Inherits: ^CivilianVoxelVehicle
|
Inherits: ^CivilianVoxelVehicle
|
||||||
@@ -161,6 +164,7 @@ WINI:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
LOCOMOTIVE:
|
LOCOMOTIVE:
|
||||||
Inherits: ^Train
|
Inherits: ^Train
|
||||||
@@ -169,10 +173,8 @@ LOCOMOTIVE:
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Train Locomotive
|
Name: Train Locomotive
|
||||||
Cargo:
|
Cargo:
|
||||||
Types: Infantry
|
|
||||||
MaxWeight: 2
|
MaxWeight: 2
|
||||||
PipCount: 2
|
PipCount: 2
|
||||||
UnloadVoice: Unload
|
|
||||||
|
|
||||||
TRAINCAR:
|
TRAINCAR:
|
||||||
Inherits: ^Train
|
Inherits: ^Train
|
||||||
@@ -181,10 +183,8 @@ TRAINCAR:
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Passenger Car
|
Name: Passenger Car
|
||||||
Cargo:
|
Cargo:
|
||||||
Types: Infantry
|
|
||||||
MaxWeight: 10
|
MaxWeight: 10
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
|
||||||
|
|
||||||
CARGOCAR:
|
CARGOCAR:
|
||||||
Inherits: ^Train
|
Inherits: ^Train
|
||||||
@@ -193,8 +193,6 @@ CARGOCAR:
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Cargo Car
|
Name: Cargo Car
|
||||||
Cargo:
|
Cargo:
|
||||||
Types: Infantry
|
|
||||||
MaxWeight: 10
|
MaxWeight: 10
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,12 @@
|
|||||||
UpgradeTypes: empdisable
|
UpgradeTypes: empdisable
|
||||||
Modifier: 0
|
Modifier: 0
|
||||||
|
|
||||||
|
^EmpDisableMobile:
|
||||||
|
Inherits: ^EmpDisable
|
||||||
|
Mobile:
|
||||||
|
UpgradeTypes: notmobile
|
||||||
|
UpgradeMaxEnabledLevel: 0
|
||||||
|
|
||||||
^BasicBuilding:
|
^BasicBuilding:
|
||||||
Inherits@1: ^ExistsInWorld
|
Inherits@1: ^ExistsInWorld
|
||||||
Inherits@2: ^SpriteActor
|
Inherits@2: ^SpriteActor
|
||||||
@@ -334,7 +340,7 @@
|
|||||||
|
|
||||||
^Cyborg:
|
^Cyborg:
|
||||||
Inherits@1: ^Infantry
|
Inherits@1: ^Infantry
|
||||||
Inherits@2: ^EmpDisable
|
Inherits@2: ^EmpDisableMobile
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
MustBeDestroyed:
|
MustBeDestroyed:
|
||||||
@@ -361,7 +367,7 @@
|
|||||||
^Vehicle:
|
^Vehicle:
|
||||||
Inherits@1: ^GainsExperience
|
Inherits@1: ^GainsExperience
|
||||||
Inherits@2: ^ExistsInWorld
|
Inherits@2: ^ExistsInWorld
|
||||||
Inherits@3: ^EmpDisable
|
Inherits@3: ^EmpDisableMobile
|
||||||
DrawLineToTarget:
|
DrawLineToTarget:
|
||||||
Mobile:
|
Mobile:
|
||||||
Crushes: crate
|
Crushes: crate
|
||||||
@@ -656,7 +662,7 @@
|
|||||||
ActorLostNotification:
|
ActorLostNotification:
|
||||||
|
|
||||||
^Train:
|
^Train:
|
||||||
Inherits@1: ^EmpDisable
|
Inherits@1: ^EmpDisableMobile
|
||||||
Inherits@2: ^ExistsInWorld
|
Inherits@2: ^ExistsInWorld
|
||||||
RenderVoxels:
|
RenderVoxels:
|
||||||
WithVoxelBody:
|
WithVoxelBody:
|
||||||
@@ -667,6 +673,10 @@
|
|||||||
ROT: 5
|
ROT: 5
|
||||||
Voice: Move
|
Voice: Move
|
||||||
Speed: 113
|
Speed: 113
|
||||||
|
Cargo:
|
||||||
|
Types: Infantry
|
||||||
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
Health:
|
Health:
|
||||||
HP: 100
|
HP: 100
|
||||||
Armor:
|
Armor:
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ APC:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
-WithVoxelBody:
|
-WithVoxelBody:
|
||||||
WithVoxelWaterBody:
|
WithVoxelWaterBody:
|
||||||
LeavesTrails:
|
LeavesTrails:
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ SAPC:
|
|||||||
MaxWeight: 5
|
MaxWeight: 5
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
UnloadVoice: Unload
|
UnloadVoice: Unload
|
||||||
|
LoadingUpgrades: notmobile
|
||||||
|
|
||||||
SUBTANK:
|
SUBTANK:
|
||||||
Inherits: ^VoxelTank
|
Inherits: ^VoxelTank
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ LPST:
|
|||||||
gdi: lpst.gdi
|
gdi: lpst.gdi
|
||||||
nod: lpst.nod
|
nod: lpst.nod
|
||||||
DeployToUpgrade:
|
DeployToUpgrade:
|
||||||
DeployedUpgrades: deployed
|
DeployedUpgrades: deployed, notmobile
|
||||||
UndeployedUpgrades: undeployed
|
UndeployedUpgrades: undeployed
|
||||||
DeployAnimation: make
|
DeployAnimation: make
|
||||||
Facing: 160
|
Facing: 160
|
||||||
@@ -141,9 +141,6 @@ LPST:
|
|||||||
WithSpriteBody@deployed:
|
WithSpriteBody@deployed:
|
||||||
UpgradeTypes: undeployed
|
UpgradeTypes: undeployed
|
||||||
UpgradeMaxEnabledLevel: 0
|
UpgradeMaxEnabledLevel: 0
|
||||||
DisableOnUpgrade:
|
|
||||||
UpgradeTypes: undeployed
|
|
||||||
UpgradeMaxEnabledLevel: 0
|
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
UpgradeTypes: deployed
|
UpgradeTypes: deployed
|
||||||
UpgradeMinEnabledLevel: 1
|
UpgradeMinEnabledLevel: 1
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ EMPulseCannon:
|
|||||||
Warhead@emp: GrantUpgrade
|
Warhead@emp: GrantUpgrade
|
||||||
Range: 3c0
|
Range: 3c0
|
||||||
Duration: 250
|
Duration: 250
|
||||||
Upgrades: empdisable
|
Upgrades: empdisable, notmobile
|
||||||
|
|
||||||
ClusterMissile:
|
ClusterMissile:
|
||||||
ValidTargets: Ground, Water, Air
|
ValidTargets: Ground, Water, Air
|
||||||
|
|||||||
Reference in New Issue
Block a user