Merge pull request #9981 from teees/gates-trait
Added gates to Tiberian Sun
This commit is contained in:
@@ -373,6 +373,28 @@ namespace OpenRA
|
|||||||
|
|
||||||
return InvalidValueAction(value, fieldType, fieldName);
|
return InvalidValueAction(value, fieldType, fieldName);
|
||||||
}
|
}
|
||||||
|
else if (fieldType == typeof(CVec[]))
|
||||||
|
{
|
||||||
|
if (value != null)
|
||||||
|
{
|
||||||
|
var parts = value.Split(',');
|
||||||
|
|
||||||
|
if (parts.Length % 2 != 0)
|
||||||
|
return InvalidValueAction(value, fieldType, fieldName);
|
||||||
|
|
||||||
|
var vecs = new CVec[parts.Length / 2];
|
||||||
|
for (var i = 0; i < vecs.Length; i++)
|
||||||
|
{
|
||||||
|
int rx, ry;
|
||||||
|
if (int.TryParse(parts[2 * i], out rx) && int.TryParse(parts[2 * i + 1], out ry))
|
||||||
|
vecs[i] = new CVec(rx, ry);
|
||||||
|
}
|
||||||
|
|
||||||
|
return vecs;
|
||||||
|
}
|
||||||
|
|
||||||
|
return InvalidValueAction(value, fieldType, fieldName);
|
||||||
|
}
|
||||||
else if (fieldType.IsEnum)
|
else if (fieldType.IsEnum)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -284,6 +284,13 @@ namespace OpenRA.Traits
|
|||||||
bool CanEnterTargetNow(Actor self, Target target);
|
bool CanEnterTargetNow(Actor self, Target target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[RequireExplicitImplementation]
|
||||||
|
public interface ITemporaryBlocker
|
||||||
|
{
|
||||||
|
bool CanRemoveBlockage(Actor self, Actor blocking);
|
||||||
|
bool IsBlocking(Actor self, CPos cell);
|
||||||
|
}
|
||||||
|
|
||||||
public interface INotifyBlockingMove { void OnNotifyBlockingMove(Actor self, Actor blocking); }
|
public interface INotifyBlockingMove { void OnNotifyBlockingMove(Actor self, Actor blocking); }
|
||||||
|
|
||||||
public interface IFacing
|
public interface IFacing
|
||||||
|
|||||||
@@ -37,6 +37,23 @@ namespace OpenRA
|
|||||||
a => (a.CenterPosition - origin).HorizontalLengthSquared <= r.LengthSquared);
|
a => (a.CenterPosition - origin).HorizontalLengthSquared <= r.LengthSquared);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool ContainsTemporaryBlocker(this World world, CPos cell, Actor ignoreActor = null)
|
||||||
|
{
|
||||||
|
var temporaryBlockers = world.ActorMap.GetActorsAt(cell);
|
||||||
|
foreach (var temporaryBlocker in temporaryBlockers)
|
||||||
|
{
|
||||||
|
if (temporaryBlocker == ignoreActor)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
var temporaryBlockerTraits = temporaryBlocker.TraitsImplementing<ITemporaryBlocker>();
|
||||||
|
foreach (var temporaryBlockerTrait in temporaryBlockerTraits)
|
||||||
|
if (temporaryBlockerTrait.IsBlocking(temporaryBlocker, cell))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public static void DoTimed<T>(this IEnumerable<T> e, Action<T> a, string text)
|
public static void DoTimed<T>(this IEnumerable<T> e, Action<T> a, string text)
|
||||||
{
|
{
|
||||||
// PERF: This is a hot path and must run with minimal added overhead.
|
// PERF: This is a hot path and must run with minimal added overhead.
|
||||||
|
|||||||
@@ -220,12 +220,14 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
var nextCell = path[path.Count - 1];
|
var nextCell = path[path.Count - 1];
|
||||||
|
|
||||||
|
var containsTemporaryBlocker = WorldUtils.ContainsTemporaryBlocker(self.World, nextCell, self);
|
||||||
|
|
||||||
// Next cell in the move is blocked by another actor
|
// Next cell in the move is blocked by another actor
|
||||||
if (!mobile.CanMoveFreelyInto(nextCell, ignoredActor, true))
|
if (containsTemporaryBlocker || !mobile.CanMoveFreelyInto(nextCell, ignoredActor, true))
|
||||||
{
|
{
|
||||||
// Are we close enough?
|
// Are we close enough?
|
||||||
var cellRange = nearEnough.Length / 1024;
|
var cellRange = nearEnough.Length / 1024;
|
||||||
if ((mobile.ToCell - destination.Value).LengthSquared <= cellRange * cellRange)
|
if (!containsTemporaryBlocker && (mobile.ToCell - destination.Value).LengthSquared <= cellRange * cellRange)
|
||||||
{
|
{
|
||||||
path.Clear();
|
path.Clear();
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -289,6 +289,7 @@
|
|||||||
<Compile Include="Traits\Buildings\Exit.cs" />
|
<Compile Include="Traits\Buildings\Exit.cs" />
|
||||||
<Compile Include="Traits\Buildings\FootprintUtils.cs" />
|
<Compile Include="Traits\Buildings\FootprintUtils.cs" />
|
||||||
<Compile Include="Traits\Buildings\FreeActor.cs" />
|
<Compile Include="Traits\Buildings\FreeActor.cs" />
|
||||||
|
<Compile Include="Traits\Buildings\Gate.cs" />
|
||||||
<Compile Include="Traits\Buildings\LineBuild.cs" />
|
<Compile Include="Traits\Buildings\LineBuild.cs" />
|
||||||
<Compile Include="Traits\Buildings\LineBuildNode.cs" />
|
<Compile Include="Traits\Buildings\LineBuildNode.cs" />
|
||||||
<Compile Include="Traits\Buildings\PrimaryBuilding.cs" />
|
<Compile Include="Traits\Buildings\PrimaryBuilding.cs" />
|
||||||
@@ -731,6 +732,7 @@
|
|||||||
<Compile Include="UtilityCommands\CheckExplicitInterfacesCommand.cs" />
|
<Compile Include="UtilityCommands\CheckExplicitInterfacesCommand.cs" />
|
||||||
<Compile Include="FileFormats\LZOCompression.cs" />
|
<Compile Include="FileFormats\LZOCompression.cs" />
|
||||||
<Compile Include="Util.cs" />
|
<Compile Include="Util.cs" />
|
||||||
|
<Compile Include="Traits\Render\WithGateSpriteBody.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -9,9 +9,16 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
|
[RequireExplicitImplementation]
|
||||||
|
public interface IBlocksProjectiles
|
||||||
|
{
|
||||||
|
WDist BlockingHeight { get; }
|
||||||
|
}
|
||||||
|
|
||||||
[Desc("This actor blocks bullets and missiles with 'Blockable' property.")]
|
[Desc("This actor blocks bullets and missiles with 'Blockable' property.")]
|
||||||
public class BlocksProjectilesInfo : UpgradableTraitInfo
|
public class BlocksProjectilesInfo : UpgradableTraitInfo
|
||||||
{
|
{
|
||||||
@@ -20,17 +27,20 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public override object Create(ActorInitializer init) { return new BlocksProjectiles(init.Self, this); }
|
public override object Create(ActorInitializer init) { return new BlocksProjectiles(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BlocksProjectiles : UpgradableTrait<BlocksProjectilesInfo>
|
public class BlocksProjectiles : UpgradableTrait<BlocksProjectilesInfo>, IBlocksProjectiles
|
||||||
{
|
{
|
||||||
public BlocksProjectiles(Actor self, BlocksProjectilesInfo info)
|
public BlocksProjectiles(Actor self, BlocksProjectilesInfo info)
|
||||||
: base(info) { }
|
: base(info) { }
|
||||||
|
|
||||||
|
WDist IBlocksProjectiles.BlockingHeight { get { return Info.Height; } }
|
||||||
|
|
||||||
public static bool AnyBlockingActorAt(World world, WPos pos)
|
public static bool AnyBlockingActorAt(World world, WPos pos)
|
||||||
{
|
{
|
||||||
var dat = world.Map.DistanceAboveTerrain(pos);
|
var dat = world.Map.DistanceAboveTerrain(pos);
|
||||||
|
|
||||||
return world.ActorMap.GetActorsAt(world.Map.CellContaining(pos))
|
return world.ActorMap.GetActorsAt(world.Map.CellContaining(pos))
|
||||||
.Any(a => a.TraitsImplementing<BlocksProjectiles>()
|
.Any(a => a.TraitsImplementing<IBlocksProjectiles>()
|
||||||
.Where(t => t.Info.Height.Length >= dat.Length)
|
.Where(t => t.BlockingHeight > dat)
|
||||||
.Any(Exts.IsTraitEnabled));
|
.Any(Exts.IsTraitEnabled));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +51,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
foreach (var a in actors)
|
foreach (var a in actors)
|
||||||
{
|
{
|
||||||
var blockers = a.TraitsImplementing<BlocksProjectiles>()
|
var blockers = a.TraitsImplementing<IBlocksProjectiles>()
|
||||||
.Where(Exts.IsTraitEnabled).ToList();
|
.Where(Exts.IsTraitEnabled).ToList();
|
||||||
|
|
||||||
if (!blockers.Any())
|
if (!blockers.Any())
|
||||||
@@ -49,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
var hitPos = WorldExtensions.MinimumPointLineProjection(start, end, a.CenterPosition);
|
var hitPos = WorldExtensions.MinimumPointLineProjection(start, end, a.CenterPosition);
|
||||||
var dat = world.Map.DistanceAboveTerrain(hitPos);
|
var dat = world.Map.DistanceAboveTerrain(hitPos);
|
||||||
if ((hitPos - start).Length < length && blockers.Any(t => t.Info.Height.Length >= dat.Length))
|
if ((hitPos - start).Length < length && blockers.Any(t => t.BlockingHeight > dat))
|
||||||
{
|
{
|
||||||
hit = hitPos;
|
hit = hitPos;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public readonly string[] BuildSounds = { "placbldg.aud", "build5.aud" };
|
public readonly string[] BuildSounds = { "placbldg.aud", "build5.aud" };
|
||||||
public readonly string[] UndeploySounds = { "cashturn.aud" };
|
public readonly string[] UndeploySounds = { "cashturn.aud" };
|
||||||
|
|
||||||
public object Create(ActorInitializer init) { return new Building(init, this); }
|
public virtual object Create(ActorInitializer init) { return new Building(init, this); }
|
||||||
|
|
||||||
public Actor FindBaseProvider(World world, Player p, CPos topLeft)
|
public Actor FindBaseProvider(World world, Player p, CPos topLeft)
|
||||||
{
|
{
|
||||||
@@ -179,7 +179,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
NotifyBuildingComplete(self);
|
NotifyBuildingComplete(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddedToWorld(Actor self)
|
public virtual void AddedToWorld(Actor self)
|
||||||
{
|
{
|
||||||
self.World.ActorMap.AddInfluence(self, this);
|
self.World.ActorMap.AddInfluence(self, this);
|
||||||
self.World.ActorMap.AddPosition(self, this);
|
self.World.ActorMap.AddPosition(self, this);
|
||||||
|
|||||||
@@ -71,12 +71,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
continue; // Cell is empty; continue search
|
continue; // Cell is empty; continue search
|
||||||
|
|
||||||
// Cell contains an actor. Is it the type we want?
|
// Cell contains an actor. Is it the type we want?
|
||||||
if (world.ActorsHavingTrait<LineBuildNode>()
|
var hasConnector = world.ActorMap.GetActorsAt(cell)
|
||||||
.Any(a => a.Location == cell
|
.Any(a => a.Info.TraitInfos<LineBuildNodeInfo>()
|
||||||
&& a.Info.TraitInfo<LineBuildNodeInfo>().Types.Overlaps(lbi.NodeTypes)))
|
.Any(info => info.Types.Overlaps(lbi.NodeTypes) && info.Connections.Contains(vecs[d])));
|
||||||
dirs[d] = i; // Cell contains actor of correct type
|
|
||||||
else
|
dirs[d] = hasConnector ? i : -1;
|
||||||
dirs[d] = -1; // Cell is blocked by another actor type
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Place intermediate-line sections
|
// Place intermediate-line sections
|
||||||
|
|||||||
135
OpenRA.Mods.Common/Traits/Buildings/Gate.cs
Normal file
135
OpenRA.Mods.Common/Traits/Buildings/Gate.cs
Normal file
@@ -0,0 +1,135 @@
|
|||||||
|
#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 System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
|
namespace OpenRA.Mods.Common.Traits
|
||||||
|
{
|
||||||
|
[Desc("Will open and be passable for actors that appear friendly when there are no enemies in range.")]
|
||||||
|
public class GateInfo : BuildingInfo
|
||||||
|
{
|
||||||
|
public readonly string OpeningSound = null;
|
||||||
|
public readonly string ClosingSound = null;
|
||||||
|
|
||||||
|
[Desc("Ticks until the gate closes.")]
|
||||||
|
public readonly int CloseDelay = 150;
|
||||||
|
|
||||||
|
[Desc("Ticks until the gate is considered open.")]
|
||||||
|
public readonly int TransitionDelay = 33;
|
||||||
|
|
||||||
|
[Desc("Blocks bullets scaled to open value.")]
|
||||||
|
public readonly int BlocksProjectilesHeight = 640;
|
||||||
|
|
||||||
|
public override object Create(ActorInitializer init) { return new Gate(init, this); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Gate : Building, ITick, ITemporaryBlocker, IBlocksProjectiles, INotifyBlockingMove, ISync
|
||||||
|
{
|
||||||
|
readonly GateInfo info;
|
||||||
|
readonly Actor self;
|
||||||
|
IEnumerable<CPos> blockedPositions;
|
||||||
|
|
||||||
|
public readonly int OpenPosition;
|
||||||
|
[Sync] public int Position { get; private set; }
|
||||||
|
int desiredPosition;
|
||||||
|
int remainingOpenTime;
|
||||||
|
|
||||||
|
public Gate(ActorInitializer init, GateInfo info)
|
||||||
|
: base(init, info)
|
||||||
|
{
|
||||||
|
this.info = info;
|
||||||
|
self = init.Self;
|
||||||
|
OpenPosition = info.TransitionDelay;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ITick.Tick(Actor self)
|
||||||
|
{
|
||||||
|
if (self.IsDisabled() || Locked || !BuildComplete)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (desiredPosition < Position)
|
||||||
|
{
|
||||||
|
// Gate was fully open
|
||||||
|
if (Position == OpenPosition)
|
||||||
|
{
|
||||||
|
Game.Sound.Play(info.ClosingSound, self.CenterPosition);
|
||||||
|
self.World.ActorMap.AddInfluence(self, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
Position--;
|
||||||
|
}
|
||||||
|
else if (desiredPosition > Position)
|
||||||
|
{
|
||||||
|
// Gate was fully closed
|
||||||
|
if (Position == 0)
|
||||||
|
Game.Sound.Play(info.OpeningSound, self.CenterPosition);
|
||||||
|
|
||||||
|
Position++;
|
||||||
|
|
||||||
|
// Gate is now fully open
|
||||||
|
if (Position == OpenPosition)
|
||||||
|
{
|
||||||
|
self.World.ActorMap.RemoveInfluence(self, this);
|
||||||
|
remainingOpenTime = info.CloseDelay;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Position == OpenPosition)
|
||||||
|
{
|
||||||
|
if (IsBlocked())
|
||||||
|
remainingOpenTime = info.CloseDelay;
|
||||||
|
else if (--remainingOpenTime <= 0)
|
||||||
|
desiredPosition = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ITemporaryBlocker.IsBlocking(Actor self, CPos cell)
|
||||||
|
{
|
||||||
|
return Position != OpenPosition && blockedPositions.Contains(cell);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ITemporaryBlocker.CanRemoveBlockage(Actor self, Actor blocking)
|
||||||
|
{
|
||||||
|
return CanRemoveBlockage(self, blocking);
|
||||||
|
}
|
||||||
|
|
||||||
|
void INotifyBlockingMove.OnNotifyBlockingMove(Actor self, Actor blocking)
|
||||||
|
{
|
||||||
|
if (Position != OpenPosition && CanRemoveBlockage(self, blocking))
|
||||||
|
desiredPosition = OpenPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CanRemoveBlockage(Actor self, Actor blocking)
|
||||||
|
{
|
||||||
|
return !self.IsDisabled() && BuildComplete && blocking.AppearsFriendlyTo(self);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void AddedToWorld(Actor self)
|
||||||
|
{
|
||||||
|
base.AddedToWorld(self);
|
||||||
|
blockedPositions = FootprintUtils.Tiles(self);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsBlocked()
|
||||||
|
{
|
||||||
|
return blockedPositions.Any(loc => self.World.ActorMap.GetActorsAt(loc).Any(a => a != self));
|
||||||
|
}
|
||||||
|
|
||||||
|
WDist IBlocksProjectiles.BlockingHeight
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return new WDist(info.BlocksProjectilesHeight * (OpenPosition - Position) / OpenPosition);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -18,6 +18,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
[Desc("This actor is of LineBuild 'NodeType'...")]
|
[Desc("This actor is of LineBuild 'NodeType'...")]
|
||||||
public readonly HashSet<string> Types = new HashSet<string> { "wall" };
|
public readonly HashSet<string> Types = new HashSet<string> { "wall" };
|
||||||
|
|
||||||
|
[Desc("Cells (outside the footprint) that contain cells that can connect to this actor.")]
|
||||||
|
public readonly CVec[] Connections = new[] { new CVec(1, 0), new CVec(0, 1), new CVec(-1, 0), new CVec(0, -1) };
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LineBuildNode { }
|
public class LineBuildNode { }
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.Common.Effects;
|
using OpenRA.Mods.Common.Effects;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
@@ -22,19 +24,18 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public object Create(ActorInitializer init) { return new CombatDebugOverlay(init.Self); }
|
public object Create(ActorInitializer init) { return new CombatDebugOverlay(init.Self); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CombatDebugOverlay : IPostRender, INotifyDamage
|
public class CombatDebugOverlay : IPostRender, INotifyDamage, INotifyCreated
|
||||||
{
|
{
|
||||||
readonly DeveloperMode devMode;
|
readonly DeveloperMode devMode;
|
||||||
|
|
||||||
readonly HealthInfo healthInfo;
|
readonly HealthInfo healthInfo;
|
||||||
readonly BlocksProjectilesInfo blockInfo;
|
IBlocksProjectiles[] allBlockers;
|
||||||
Lazy<AttackBase> attack;
|
Lazy<AttackBase> attack;
|
||||||
Lazy<BodyOrientation> coords;
|
Lazy<BodyOrientation> coords;
|
||||||
|
|
||||||
public CombatDebugOverlay(Actor self)
|
public CombatDebugOverlay(Actor self)
|
||||||
{
|
{
|
||||||
healthInfo = self.Info.TraitInfoOrDefault<HealthInfo>();
|
healthInfo = self.Info.TraitInfoOrDefault<HealthInfo>();
|
||||||
blockInfo = self.Info.TraitInfoOrDefault<BlocksProjectilesInfo>();
|
|
||||||
attack = Exts.Lazy(() => self.TraitOrDefault<AttackBase>());
|
attack = Exts.Lazy(() => self.TraitOrDefault<AttackBase>());
|
||||||
coords = Exts.Lazy(() => self.Trait<BodyOrientation>());
|
coords = Exts.Lazy(() => self.Trait<BodyOrientation>());
|
||||||
|
|
||||||
@@ -42,6 +43,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
devMode = localPlayer != null ? localPlayer.PlayerActor.Trait<DeveloperMode>() : null;
|
devMode = localPlayer != null ? localPlayer.PlayerActor.Trait<DeveloperMode>() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Created(Actor self)
|
||||||
|
{
|
||||||
|
allBlockers = self.TraitsImplementing<IBlocksProjectiles>().ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
public void RenderAfterWorld(WorldRenderer wr, Actor self)
|
public void RenderAfterWorld(WorldRenderer wr, Actor self)
|
||||||
{
|
{
|
||||||
if (devMode == null || !devMode.ShowCombatGeometry)
|
if (devMode == null || !devMode.ShowCombatGeometry)
|
||||||
@@ -53,10 +59,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (healthInfo != null)
|
if (healthInfo != null)
|
||||||
healthInfo.Shape.DrawCombatOverlay(wr, wcr, self);
|
healthInfo.Shape.DrawCombatOverlay(wr, wcr, self);
|
||||||
|
|
||||||
if (blockInfo != null)
|
var blockers = allBlockers.Where(Exts.IsTraitEnabled).ToList();
|
||||||
|
if (blockers.Count > 0)
|
||||||
{
|
{
|
||||||
var hc = Color.Orange;
|
var hc = Color.Orange;
|
||||||
var height = new WVec(0, 0, blockInfo.Height.Length);
|
var height = new WVec(0, 0, blockers.Max(b => b.BlockingHeight.Length));
|
||||||
var ha = wr.ScreenPosition(self.CenterPosition);
|
var ha = wr.ScreenPosition(self.CenterPosition);
|
||||||
var hb = wr.ScreenPosition(self.CenterPosition + height);
|
var hb = wr.ScreenPosition(self.CenterPosition + height);
|
||||||
wcr.DrawLine(ha, hb, iz, hc);
|
wcr.DrawLine(ha, hb, iz, hc);
|
||||||
|
|||||||
@@ -240,6 +240,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
IsMovingInMyDirection(self, otherActor))
|
IsMovingInMyDirection(self, otherActor))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// If there is a temporary blocker in our path, but we can remove it, we are not blocked.
|
||||||
|
var temporaryBlocker = otherActor.TraitOrDefault<ITemporaryBlocker>();
|
||||||
|
if (temporaryBlocker != null && temporaryBlocker.CanRemoveBlockage(otherActor, self))
|
||||||
|
return false;
|
||||||
|
|
||||||
// If we cannot crush the other actor in our way, we are blocked.
|
// If we cannot crush the other actor in our way, we are blocked.
|
||||||
if (self == null || Crushes == null || Crushes.Count == 0)
|
if (self == null || Crushes == null || Crushes.Count == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
98
OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs
Normal file
98
OpenRA.Mods.Common/Traits/Render/WithGateSpriteBody.cs
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
#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 System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using OpenRA.Graphics;
|
||||||
|
using OpenRA.Mods.Common.Graphics;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
|
namespace OpenRA.Mods.Common.Traits
|
||||||
|
{
|
||||||
|
class WithGateSpriteBodyInfo : WithSpriteBodyInfo, IWallConnectorInfo, Requires<GateInfo>
|
||||||
|
{
|
||||||
|
[Desc("Cells (outside the gate footprint) that contain wall cells that can connect to the gate")]
|
||||||
|
public readonly CVec[] WallConnections = { };
|
||||||
|
|
||||||
|
[Desc("Wall type for connections")]
|
||||||
|
public readonly string Type = "wall";
|
||||||
|
|
||||||
|
public override object Create(ActorInitializer init) { return new WithGateSpriteBody(init, this); }
|
||||||
|
|
||||||
|
public override IEnumerable<IActorPreview> RenderPreviewSprites(ActorPreviewInitializer init, RenderSpritesInfo rs, string image, int facings, PaletteReference p)
|
||||||
|
{
|
||||||
|
var anim = new Animation(init.World, image);
|
||||||
|
anim.PlayFetchIndex(RenderSprites.NormalizeSequence(anim, init.GetDamageState(), Sequence), () => 0);
|
||||||
|
|
||||||
|
yield return new SpriteActorPreview(anim, WVec.Zero, 0, p, rs.Scale);
|
||||||
|
}
|
||||||
|
|
||||||
|
string IWallConnectorInfo.GetWallConnectionType()
|
||||||
|
{
|
||||||
|
return Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class WithGateSpriteBody : WithSpriteBody, INotifyRemovedFromWorld, INotifyBuildComplete, IWallConnector
|
||||||
|
{
|
||||||
|
readonly WithGateSpriteBodyInfo gateInfo;
|
||||||
|
readonly Gate gate;
|
||||||
|
|
||||||
|
public WithGateSpriteBody(ActorInitializer init, WithGateSpriteBodyInfo info)
|
||||||
|
: base(init, info, () => 0)
|
||||||
|
{
|
||||||
|
gateInfo = info;
|
||||||
|
gate = init.Self.Trait<Gate>();
|
||||||
|
}
|
||||||
|
|
||||||
|
int GetGateFrame()
|
||||||
|
{
|
||||||
|
return int2.Lerp(0, DefaultAnimation.CurrentSequence.Length - 1, gate.Position, gate.OpenPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DamageStateChanged(Actor self, AttackInfo e)
|
||||||
|
{
|
||||||
|
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), GetGateFrame);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void BuildingComplete(Actor self)
|
||||||
|
{
|
||||||
|
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), GetGateFrame);
|
||||||
|
UpdateNeighbours(self);
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateNeighbours(Actor self)
|
||||||
|
{
|
||||||
|
var footprint = FootprintUtils.Tiles(self).ToArray();
|
||||||
|
var adjacent = Util.ExpandFootprint(footprint, true).Except(footprint)
|
||||||
|
.Where(self.World.Map.Contains).ToList();
|
||||||
|
|
||||||
|
var adjacentActorTraits = adjacent.SelectMany(self.World.ActorMap.GetActorsAt)
|
||||||
|
.SelectMany(a => a.TraitsImplementing<IWallConnector>());
|
||||||
|
|
||||||
|
foreach (var rb in adjacentActorTraits)
|
||||||
|
rb.SetDirty();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RemovedFromWorld(Actor self)
|
||||||
|
{
|
||||||
|
UpdateNeighbours(self);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IWallConnector.AdjacentWallCanConnect(Actor self, CPos wallLocation, string wallType, out CVec facing)
|
||||||
|
{
|
||||||
|
facing = wallLocation - self.Location;
|
||||||
|
return wallType == gateInfo.Type && gateInfo.WallConnections.Contains(facing);
|
||||||
|
}
|
||||||
|
|
||||||
|
void IWallConnector.SetDirty() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
@@ -16,8 +17,14 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
|
[RequireExplicitImplementation]
|
||||||
|
interface IWallConnectorInfo : ITraitInfoInterface
|
||||||
|
{
|
||||||
|
string GetWallConnectionType();
|
||||||
|
}
|
||||||
|
|
||||||
[Desc("Render trait for actors that change sprites if neighbors with the same trait are present.")]
|
[Desc("Render trait for actors that change sprites if neighbors with the same trait are present.")]
|
||||||
class WithWallSpriteBodyInfo : WithSpriteBodyInfo, Requires<BuildingInfo>
|
class WithWallSpriteBodyInfo : WithSpriteBodyInfo, IWallConnectorInfo, Requires<BuildingInfo>
|
||||||
{
|
{
|
||||||
public readonly string Type = "wall";
|
public readonly string Type = "wall";
|
||||||
|
|
||||||
@@ -39,8 +46,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
var haveNeighbour = false;
|
var haveNeighbour = false;
|
||||||
foreach (var n in kv.Value)
|
foreach (var n in kv.Value)
|
||||||
{
|
{
|
||||||
var rb = init.World.Map.Rules.Actors[n].TraitInfoOrDefault<WithWallSpriteBodyInfo>();
|
var rb = init.World.Map.Rules.Actors[n].TraitInfos<IWallConnectorInfo>().FirstOrDefault(Exts.IsTraitEnabled);
|
||||||
if (rb != null && rb.Type == Type)
|
if (rb != null && rb.GetWallConnectionType() == Type)
|
||||||
{
|
{
|
||||||
haveNeighbour = true;
|
haveNeighbour = true;
|
||||||
break;
|
break;
|
||||||
@@ -66,14 +73,27 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
yield return new SpriteActorPreview(anim, WVec.Zero, 0, p, rs.Scale);
|
yield return new SpriteActorPreview(anim, WVec.Zero, 0, p, rs.Scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string IWallConnectorInfo.GetWallConnectionType()
|
||||||
|
{
|
||||||
|
return Type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class WithWallSpriteBody : WithSpriteBody, INotifyRemovedFromWorld, ITick
|
class WithWallSpriteBody : WithSpriteBody, INotifyRemovedFromWorld, IWallConnector, ITick
|
||||||
{
|
{
|
||||||
readonly WithWallSpriteBodyInfo wallInfo;
|
readonly WithWallSpriteBodyInfo wallInfo;
|
||||||
int adjacent = 0;
|
int adjacent = 0;
|
||||||
bool dirty = true;
|
bool dirty = true;
|
||||||
|
|
||||||
|
bool IWallConnector.AdjacentWallCanConnect(Actor self, CPos wallLocation, string wallType, out CVec facing)
|
||||||
|
{
|
||||||
|
facing = wallLocation - self.Location;
|
||||||
|
return wallInfo.Type == wallType && Math.Abs(facing.X) + Math.Abs(facing.Y) == 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void IWallConnector.SetDirty() { dirty = true; }
|
||||||
|
|
||||||
public WithWallSpriteBody(ActorInitializer init, WithWallSpriteBodyInfo info)
|
public WithWallSpriteBody(ActorInitializer init, WithWallSpriteBodyInfo info)
|
||||||
: base(init, info, () => 0)
|
: base(init, info, () => 0)
|
||||||
{
|
{
|
||||||
@@ -97,20 +117,18 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
adjacent = 0;
|
adjacent = 0;
|
||||||
foreach (var a in adjacentActors)
|
foreach (var a in adjacentActors)
|
||||||
{
|
{
|
||||||
var rb = a.TraitOrDefault<WithWallSpriteBody>();
|
CVec facing;
|
||||||
if (rb == null || rb.wallInfo.Type != wallInfo.Type)
|
var wc = a.TraitsImplementing<IWallConnector>().FirstOrDefault(Exts.IsTraitEnabled);
|
||||||
|
if (wc == null || !wc.AdjacentWallCanConnect(a, self.Location, wallInfo.Type, out facing))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var location = self.Location;
|
if (facing.Y > 0)
|
||||||
var otherLocation = a.Location;
|
|
||||||
|
|
||||||
if (otherLocation == location + new CVec(0, -1))
|
|
||||||
adjacent |= 1;
|
adjacent |= 1;
|
||||||
else if (otherLocation == location + new CVec(+1, 0))
|
else if (facing.X < 0)
|
||||||
adjacent |= 2;
|
adjacent |= 2;
|
||||||
else if (otherLocation == location + new CVec(0, +1))
|
else if (facing.Y < 0)
|
||||||
adjacent |= 4;
|
adjacent |= 4;
|
||||||
else if (otherLocation == location + new CVec(-1, 0))
|
else if (facing.X > 0)
|
||||||
adjacent |= 8;
|
adjacent |= 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -125,13 +143,12 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
static void UpdateNeighbours(Actor self)
|
static void UpdateNeighbours(Actor self)
|
||||||
{
|
{
|
||||||
var adjacentActors = CVec.Directions.SelectMany(dir =>
|
var adjacentActorTraits = CVec.Directions.SelectMany(dir =>
|
||||||
self.World.ActorMap.GetActorsAt(self.Location + dir))
|
self.World.ActorMap.GetActorsAt(self.Location + dir))
|
||||||
.Select(a => a.TraitOrDefault<WithWallSpriteBody>())
|
.SelectMany(a => a.TraitsImplementing<IWallConnector>());
|
||||||
.Where(a => a != null);
|
|
||||||
|
|
||||||
foreach (var rb in adjacentActors)
|
foreach (var aat in adjacentActorTraits)
|
||||||
rb.dirty = true;
|
aat.SetDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RemovedFromWorld(Actor self)
|
public void RemovedFromWorld(Actor self)
|
||||||
|
|||||||
@@ -116,4 +116,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
bool PreventsAutoTarget(Actor self, Actor attacker);
|
bool PreventsAutoTarget(Actor self, Actor attacker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[RequireExplicitImplementation]
|
||||||
|
interface IWallConnector
|
||||||
|
{
|
||||||
|
bool AdjacentWallCanConnect(Actor self, CPos wallLocation, string wallType, out CVec facing);
|
||||||
|
void SetDirty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -750,3 +750,52 @@
|
|||||||
Inherits: ^TerrainOverlay
|
Inherits: ^TerrainOverlay
|
||||||
CustomSelectionSize:
|
CustomSelectionSize:
|
||||||
CustomBounds: 220,220
|
CustomBounds: 220,220
|
||||||
|
|
||||||
|
^Gate:
|
||||||
|
Inherits: ^Building
|
||||||
|
Valued:
|
||||||
|
Cost: 250
|
||||||
|
Health:
|
||||||
|
HP: 350
|
||||||
|
Armor:
|
||||||
|
Type: Heavy
|
||||||
|
LineBuildNode:
|
||||||
|
Types: wall, gate
|
||||||
|
-Building:
|
||||||
|
-Capturable:
|
||||||
|
-GivesBuildableArea:
|
||||||
|
-MustBeDestroyed:
|
||||||
|
-WithSpriteBody:
|
||||||
|
WithGateSpriteBody:
|
||||||
|
Power:
|
||||||
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
|
Tooltip:
|
||||||
|
Description: Automated barrier that opens for allied units.
|
||||||
|
Gate:
|
||||||
|
Adjacent: 4
|
||||||
|
BuildSounds: place2.aud
|
||||||
|
OpeningSound: gateup1.aud
|
||||||
|
ClosingSound: gatedwn1.aud
|
||||||
|
TerrainTypes: Clear, Rough, Road, DirtRoad, Green, Sand, Pavement
|
||||||
|
BlocksProjectilesHeight: 640
|
||||||
|
|
||||||
|
^Gate_A:
|
||||||
|
Inherits: ^Gate
|
||||||
|
Gate:
|
||||||
|
Dimensions: 3,1
|
||||||
|
Footprint: xxx
|
||||||
|
WithGateSpriteBody:
|
||||||
|
WallConnections: -1,0, 3,0
|
||||||
|
LineBuildNode:
|
||||||
|
Connections: -1,0, 1,0
|
||||||
|
|
||||||
|
^Gate_B:
|
||||||
|
Inherits: ^Gate
|
||||||
|
Gate:
|
||||||
|
Dimensions: 1,3
|
||||||
|
Footprint: x x x
|
||||||
|
WithGateSpriteBody:
|
||||||
|
WallConnections: 0,-1, 0,3
|
||||||
|
LineBuildNode:
|
||||||
|
Connections: 0,-1, 0,1
|
||||||
|
|||||||
@@ -25,6 +25,24 @@ GAWALL:
|
|||||||
LineBuild:
|
LineBuild:
|
||||||
NodeTypes: wall, turret
|
NodeTypes: wall, turret
|
||||||
|
|
||||||
|
GAGATE_A:
|
||||||
|
Inherits: ^Gate_A
|
||||||
|
Buildable:
|
||||||
|
Queue: Defense
|
||||||
|
BuildPaletteOrder: 100
|
||||||
|
Prerequisites: gapile, ~structures.gdi
|
||||||
|
Tooltip:
|
||||||
|
Name: GDI Gate
|
||||||
|
|
||||||
|
GAGATE_B:
|
||||||
|
Inherits: ^Gate_B
|
||||||
|
Buildable:
|
||||||
|
Queue: Defense
|
||||||
|
BuildPaletteOrder: 100
|
||||||
|
Prerequisites: gapile, ~structures.gdi
|
||||||
|
Tooltip:
|
||||||
|
Name: GDI Gate
|
||||||
|
|
||||||
GACTWR:
|
GACTWR:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
-WithSpriteBody:
|
-WithSpriteBody:
|
||||||
|
|||||||
@@ -25,6 +25,24 @@ NAWALL:
|
|||||||
LineBuild:
|
LineBuild:
|
||||||
NodeTypes: wall, turret
|
NodeTypes: wall, turret
|
||||||
|
|
||||||
|
NAGATE_A:
|
||||||
|
Inherits: ^Gate_A
|
||||||
|
Buildable:
|
||||||
|
Queue: Defense
|
||||||
|
BuildPaletteOrder: 100
|
||||||
|
Prerequisites: nahand, ~structures.nod
|
||||||
|
Tooltip:
|
||||||
|
Name: Nod Gate
|
||||||
|
|
||||||
|
NAGATE_B:
|
||||||
|
Inherits: ^Gate_B
|
||||||
|
Buildable:
|
||||||
|
Queue: Defense
|
||||||
|
BuildPaletteOrder: 100
|
||||||
|
Prerequisites: nahand, ~structures.nod
|
||||||
|
Tooltip:
|
||||||
|
Name: Nod Gate
|
||||||
|
|
||||||
NALASR:
|
NALASR:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
Valued:
|
Valued:
|
||||||
|
|||||||
@@ -602,6 +602,120 @@ gawall:
|
|||||||
Offset: 0, 0
|
Offset: 0, 0
|
||||||
UseTilesetCode: false
|
UseTilesetCode: false
|
||||||
|
|
||||||
|
gagate_a:
|
||||||
|
Defaults:
|
||||||
|
Offset: -24, -24
|
||||||
|
UseTilesetCode: true
|
||||||
|
idle:
|
||||||
|
Length: 10
|
||||||
|
ShadowStart: 21
|
||||||
|
damaged-idle:
|
||||||
|
Start: 10
|
||||||
|
Length: 10
|
||||||
|
ShadowStart: 31
|
||||||
|
dead:
|
||||||
|
Start: 20
|
||||||
|
Tick: 400
|
||||||
|
ShadowStart: 41
|
||||||
|
make:
|
||||||
|
Frames: 9, 8, 7, 6, 5, 4, 3, 2, 1
|
||||||
|
Length: 9
|
||||||
|
emp-overlay: emp_fx01
|
||||||
|
Length: *
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
ZOffset: 512
|
||||||
|
BlendMode: Additive
|
||||||
|
icon: gateicon
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
|
||||||
|
gagate_b:
|
||||||
|
Defaults:
|
||||||
|
Offset: 24, -24
|
||||||
|
UseTilesetCode: true
|
||||||
|
idle:
|
||||||
|
Length: 10
|
||||||
|
ShadowStart: 21
|
||||||
|
damaged-idle:
|
||||||
|
Start: 10
|
||||||
|
Length: 10
|
||||||
|
ShadowStart: 31
|
||||||
|
dead:
|
||||||
|
Start: 20
|
||||||
|
Tick: 400
|
||||||
|
ShadowStart: 41
|
||||||
|
make:
|
||||||
|
Frames: 9, 8, 7, 6, 5, 4, 3, 2, 1
|
||||||
|
Length: 9
|
||||||
|
emp-overlay: emp_fx01
|
||||||
|
Length: *
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
ZOffset: 512
|
||||||
|
BlendMode: Additive
|
||||||
|
icon: gat2icon
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
|
||||||
|
nagate_a:
|
||||||
|
Defaults:
|
||||||
|
Offset: -24, -24
|
||||||
|
UseTilesetCode: true
|
||||||
|
Tick: 80
|
||||||
|
idle:
|
||||||
|
Length: 7
|
||||||
|
ShadowStart: 15
|
||||||
|
damaged-idle:
|
||||||
|
Start: 7
|
||||||
|
Length: 7
|
||||||
|
ShadowStart: 22
|
||||||
|
dead:
|
||||||
|
Start: 14
|
||||||
|
Tick: 400
|
||||||
|
ShadowStart: 29
|
||||||
|
make:
|
||||||
|
Frames: 6, 5, 4, 3, 2, 1
|
||||||
|
Length: 6
|
||||||
|
emp-overlay: emp_fx01
|
||||||
|
Length: *
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
ZOffset: 512
|
||||||
|
BlendMode: Additive
|
||||||
|
icon: ngaticon
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
|
||||||
|
nagate_b:
|
||||||
|
Defaults:
|
||||||
|
Offset: 24, -24
|
||||||
|
UseTilesetCode: true
|
||||||
|
Tick: 80
|
||||||
|
idle:
|
||||||
|
Length: 7
|
||||||
|
ShadowStart: 15
|
||||||
|
damaged-idle:
|
||||||
|
Start: 7
|
||||||
|
Length: 7
|
||||||
|
ShadowStart: 22
|
||||||
|
dead:
|
||||||
|
Start: 14
|
||||||
|
Tick: 400
|
||||||
|
ShadowStart: 29
|
||||||
|
make:
|
||||||
|
Frames: 6, 5, 4, 3, 2, 1
|
||||||
|
Length: 6
|
||||||
|
emp-overlay: emp_fx01
|
||||||
|
Length: *
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
ZOffset: 512
|
||||||
|
BlendMode: Additive
|
||||||
|
icon: nga2icon
|
||||||
|
Offset: 0, 0
|
||||||
|
UseTilesetCode: false
|
||||||
|
|
||||||
nawall:
|
nawall:
|
||||||
Defaults:
|
Defaults:
|
||||||
Offset: 0, -12
|
Offset: 0, -12
|
||||||
|
|||||||
Reference in New Issue
Block a user