Remove RenderBuilding
This commit is contained in:
@@ -14,7 +14,7 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Cnc.Traits
|
namespace OpenRA.Mods.Cnc.Traits
|
||||||
{
|
{
|
||||||
[Desc("Building animation to play when ProductionAirdrop is used to deliver units.")]
|
[Desc("Building animation to play when ProductionAirdrop is used to deliver units.")]
|
||||||
public class WithDeliveryAnimationInfo : ITraitInfo, Requires<RenderBuildingInfo>
|
public class WithDeliveryAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||||
{
|
{
|
||||||
public readonly string ActiveSequence = "active";
|
public readonly string ActiveSequence = "active";
|
||||||
|
|
||||||
@@ -26,23 +26,23 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
public class WithDeliveryAnimation : INotifyDelivery
|
public class WithDeliveryAnimation : INotifyDelivery
|
||||||
{
|
{
|
||||||
readonly WithDeliveryAnimationInfo info;
|
readonly WithDeliveryAnimationInfo info;
|
||||||
readonly RenderBuilding building;
|
readonly WithSpriteBody wsb;
|
||||||
|
|
||||||
public WithDeliveryAnimation(Actor self, WithDeliveryAnimationInfo info)
|
public WithDeliveryAnimation(Actor self, WithDeliveryAnimationInfo info)
|
||||||
{
|
{
|
||||||
building = self.Trait<RenderBuilding>();
|
wsb = self.Trait<WithSpriteBody>();
|
||||||
|
|
||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void IncomingDelivery(Actor self)
|
public void IncomingDelivery(Actor self)
|
||||||
{
|
{
|
||||||
building.PlayCustomAnimRepeating(self, info.ActiveSequence);
|
wsb.PlayCustomAnimationRepeating(self, info.ActiveSequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Delivered(Actor self)
|
public void Delivered(Actor self)
|
||||||
{
|
{
|
||||||
building.PlayCustomAnimRepeating(self, info.IdleSequence);
|
wsb.PlayCustomAnimationRepeating(self, info.IdleSequence);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// HACK to check if we are on the helipad/airfield/etc.
|
// HACK to check if we are on the helipad/airfield/etc.
|
||||||
var hostBuilding = self.World.ActorMap.GetUnitsAt(self.Location).FirstOrDefault(a => a.HasTrait<RenderBuilding>());
|
var hostBuilding = self.World.ActorMap.GetUnitsAt(self.Location).FirstOrDefault(a => a.HasTrait<Building>());
|
||||||
|
|
||||||
if (hostBuilding == null || !hostBuilding.IsInWorld)
|
if (hostBuilding == null || !hostBuilding.IsInWorld)
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (!pool.GiveAmmo())
|
if (!pool.GiveAmmo())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
hostBuilding.Trait<RenderBuilding>().PlayCustomAnim(hostBuilding, "active");
|
hostBuilding.Trait<WithSpriteBody>().PlayCustomAnimation(hostBuilding, "active");
|
||||||
|
|
||||||
var sound = pool.Info.RearmSound;
|
var sound = pool.Info.RearmSound;
|
||||||
if (sound != null)
|
if (sound != null)
|
||||||
|
|||||||
@@ -405,7 +405,6 @@
|
|||||||
<Compile Include="Traits\Render\AutoSelectionSize.cs" />
|
<Compile Include="Traits\Render\AutoSelectionSize.cs" />
|
||||||
<Compile Include="Traits\Render\Hovers.cs" />
|
<Compile Include="Traits\Render\Hovers.cs" />
|
||||||
<Compile Include="Traits\Render\LeavesTrails.cs" />
|
<Compile Include="Traits\Render\LeavesTrails.cs" />
|
||||||
<Compile Include="Traits\Render\RenderBuilding.cs" />
|
|
||||||
<Compile Include="Traits\Render\RenderSpritesEditorOnly.cs" />
|
<Compile Include="Traits\Render\RenderSpritesEditorOnly.cs" />
|
||||||
<Compile Include="Traits\Render\WithTurretedSpriteBody.cs" />
|
<Compile Include="Traits\Render\WithTurretedSpriteBody.cs" />
|
||||||
<Compile Include="Traits\Render\RenderNameTag.cs" />
|
<Compile Include="Traits\Render\RenderNameTag.cs" />
|
||||||
|
|||||||
@@ -105,7 +105,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
// Harvester was killed while unloading
|
// Harvester was killed while unloading
|
||||||
if (dockedHarv != null && dockedHarv.IsDead)
|
if (dockedHarv != null && dockedHarv.IsDead)
|
||||||
{
|
{
|
||||||
self.Trait<RenderBuilding>().CancelCustomAnim(self);
|
var wsb = self.Trait<WithSpriteBody>();
|
||||||
|
wsb.PlayCustomAnimation(self, wsb.Info.Sequence);
|
||||||
dockedHarv = null;
|
dockedHarv = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,81 +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 System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using OpenRA.Graphics;
|
|
||||||
using OpenRA.Traits;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
|
||||||
{
|
|
||||||
[Desc("Render trait for stationary objects that can be placed from the build palette.")]
|
|
||||||
public class RenderBuildingInfo : RenderSimpleInfo, Requires<BuildingInfo>
|
|
||||||
{
|
|
||||||
public readonly bool PauseOnLowPower = false;
|
|
||||||
|
|
||||||
public override object Create(ActorInitializer init) { return new RenderBuilding(init, this); }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RenderBuilding : RenderSimple, INotifyDamageStateChanged, INotifyBuildComplete
|
|
||||||
{
|
|
||||||
RenderBuildingInfo info;
|
|
||||||
|
|
||||||
public RenderBuilding(ActorInitializer init, RenderBuildingInfo info)
|
|
||||||
: this(init, info, () => 0) { }
|
|
||||||
|
|
||||||
public RenderBuilding(ActorInitializer init, RenderBuildingInfo info, Func<int> baseFacing)
|
|
||||||
: base(init, info, baseFacing)
|
|
||||||
{
|
|
||||||
var self = init.Self;
|
|
||||||
this.info = info;
|
|
||||||
|
|
||||||
DefaultAnimation.PlayRepeating(NormalizeSequence(self, info.Sequence));
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void BuildingComplete(Actor self)
|
|
||||||
{
|
|
||||||
DefaultAnimation.PlayRepeating(NormalizeSequence(self, info.Sequence));
|
|
||||||
|
|
||||||
if (info.PauseOnLowPower)
|
|
||||||
DefaultAnimation.Paused = () =>
|
|
||||||
self.IsDisabled() && DefaultAnimation.CurrentSequence.Name == NormalizeSequence(self, info.Sequence);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void PlayCustomAnimThen(Actor self, string name, Action a)
|
|
||||||
{
|
|
||||||
DefaultAnimation.PlayThen(NormalizeSequence(self, name),
|
|
||||||
() => { DefaultAnimation.PlayRepeating(NormalizeSequence(self, info.Sequence)); a(); });
|
|
||||||
}
|
|
||||||
|
|
||||||
public void PlayCustomAnimRepeating(Actor self, string name)
|
|
||||||
{
|
|
||||||
DefaultAnimation.PlayThen(NormalizeSequence(self, name),
|
|
||||||
() => PlayCustomAnimRepeating(self, name));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void PlayCustomAnimBackwards(Actor self, string name, Action a)
|
|
||||||
{
|
|
||||||
DefaultAnimation.PlayBackwardsThen(NormalizeSequence(self, name),
|
|
||||||
() => { DefaultAnimation.PlayRepeating(NormalizeSequence(self, info.Sequence)); a(); });
|
|
||||||
}
|
|
||||||
|
|
||||||
public void CancelCustomAnim(Actor self)
|
|
||||||
{
|
|
||||||
DefaultAnimation.PlayRepeating(NormalizeSequence(self, info.Sequence));
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void DamageStateChanged(Actor self, AttackInfo e)
|
|
||||||
{
|
|
||||||
if (DefaultAnimation.CurrentSequence != null)
|
|
||||||
DefaultAnimation.ReplaceAnim(NormalizeSequence(self, DefaultAnimation.CurrentSequence.Name));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -16,7 +16,7 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Replaces the idle animation of a building.")]
|
[Desc("Replaces the idle animation of a building.")]
|
||||||
public class WithActiveAnimationInfo : ITraitInfo, Requires<RenderBuildingInfo>
|
public class WithActiveAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||||
{
|
{
|
||||||
[Desc("Sequence name to use")]
|
[Desc("Sequence name to use")]
|
||||||
[SequenceReference] public readonly string Sequence = "active";
|
[SequenceReference] public readonly string Sequence = "active";
|
||||||
@@ -31,11 +31,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public class WithActiveAnimation : ITick, INotifyBuildComplete, INotifySold
|
public class WithActiveAnimation : ITick, INotifyBuildComplete, INotifySold
|
||||||
{
|
{
|
||||||
readonly WithActiveAnimationInfo info;
|
readonly WithActiveAnimationInfo info;
|
||||||
readonly RenderBuilding renderBuilding;
|
readonly WithSpriteBody wsb;
|
||||||
|
|
||||||
public WithActiveAnimation(Actor self, WithActiveAnimationInfo info)
|
public WithActiveAnimation(Actor self, WithActiveAnimationInfo info)
|
||||||
{
|
{
|
||||||
renderBuilding = self.Trait<RenderBuilding>();
|
wsb = self.Trait<WithSpriteBody>();
|
||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
if (--ticks <= 0)
|
if (--ticks <= 0)
|
||||||
{
|
{
|
||||||
if (!(info.PauseOnLowPower && self.IsDisabled()))
|
if (!(info.PauseOnLowPower && self.IsDisabled()))
|
||||||
renderBuilding.PlayCustomAnim(self, info.Sequence);
|
wsb.PlayCustomAnimation(self, info.Sequence);
|
||||||
ticks = info.Interval;
|
ticks = info.Interval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Changes the animation when the actor constructed a building.")]
|
[Desc("Changes the animation when the actor constructed a building.")]
|
||||||
public class WithBuildingPlacedAnimationInfo : ITraitInfo, Requires<RenderSimpleInfo>
|
public class WithBuildingPlacedAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||||
{
|
{
|
||||||
[Desc("Sequence name to use")]
|
[Desc("Sequence name to use"), SequenceReference]
|
||||||
[SequenceReference] public readonly string Sequence = "build";
|
public readonly string Sequence = "build";
|
||||||
|
|
||||||
public object Create(ActorInitializer init) { return new WithBuildingPlacedAnimation(init.Self, this); }
|
public object Create(ActorInitializer init) { return new WithBuildingPlacedAnimation(init.Self, this); }
|
||||||
}
|
}
|
||||||
@@ -24,13 +24,13 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public class WithBuildingPlacedAnimation : INotifyBuildingPlaced, INotifyBuildComplete
|
public class WithBuildingPlacedAnimation : INotifyBuildingPlaced, INotifyBuildComplete
|
||||||
{
|
{
|
||||||
readonly WithBuildingPlacedAnimationInfo info;
|
readonly WithBuildingPlacedAnimationInfo info;
|
||||||
readonly RenderSimple renderSimple;
|
readonly WithSpriteBody wsb;
|
||||||
bool buildComplete;
|
bool buildComplete;
|
||||||
|
|
||||||
public WithBuildingPlacedAnimation(Actor self, WithBuildingPlacedAnimationInfo info)
|
public WithBuildingPlacedAnimation(Actor self, WithBuildingPlacedAnimationInfo info)
|
||||||
{
|
{
|
||||||
this.info = info;
|
this.info = info;
|
||||||
renderSimple = self.Trait<RenderSimple>();
|
wsb = self.Trait<WithSpriteBody>();
|
||||||
buildComplete = !self.HasTrait<Building>();
|
buildComplete = !self.HasTrait<Building>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public void BuildingPlaced(Actor self)
|
public void BuildingPlaced(Actor self)
|
||||||
{
|
{
|
||||||
if (buildComplete)
|
if (buildComplete)
|
||||||
renderSimple.PlayCustomAnim(self, info.Sequence);
|
wsb.PlayCustomAnimation(self, info.Sequence, () => wsb.CancelCustomAnimation(self));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Replaces the sprite during construction.")]
|
[Desc("Replaces the sprite during construction.")]
|
||||||
public class WithMakeAnimationInfo : ITraitInfo, Requires<BuildingInfo>, Requires<RenderBuildingInfo>
|
public class WithMakeAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||||
{
|
{
|
||||||
[Desc("Sequence name to use")]
|
[Desc("Sequence name to use")]
|
||||||
[SequenceReference] public readonly string Sequence = "make";
|
[SequenceReference] public readonly string Sequence = "make";
|
||||||
@@ -29,18 +29,18 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public class WithMakeAnimation
|
public class WithMakeAnimation
|
||||||
{
|
{
|
||||||
readonly WithMakeAnimationInfo info;
|
readonly WithMakeAnimationInfo info;
|
||||||
readonly RenderBuilding renderBuilding;
|
readonly WithSpriteBody wsb;
|
||||||
|
|
||||||
public WithMakeAnimation(ActorInitializer init, WithMakeAnimationInfo info)
|
public WithMakeAnimation(ActorInitializer init, WithMakeAnimationInfo info)
|
||||||
{
|
{
|
||||||
this.info = info;
|
this.info = info;
|
||||||
var self = init.Self;
|
var self = init.Self;
|
||||||
renderBuilding = self.Trait<RenderBuilding>();
|
wsb = self.Trait<WithSpriteBody>();
|
||||||
|
|
||||||
var building = self.Trait<Building>();
|
var building = self.TraitOrDefault<Building>();
|
||||||
if (!building.SkipMakeAnimation)
|
if (building != null && !building.SkipMakeAnimation)
|
||||||
{
|
{
|
||||||
renderBuilding.PlayCustomAnimThen(self, info.Sequence, () =>
|
wsb.PlayCustomAnimation(self, info.Sequence, () =>
|
||||||
{
|
{
|
||||||
building.NotifyBuildingComplete(self);
|
building.NotifyBuildingComplete(self);
|
||||||
});
|
});
|
||||||
@@ -49,10 +49,10 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void Reverse(Actor self, Activity activity, bool queued = true)
|
public void Reverse(Actor self, Activity activity, bool queued = true)
|
||||||
{
|
{
|
||||||
renderBuilding.PlayCustomAnimBackwards(self, info.Sequence, () =>
|
wsb.PlayCustomAnimationBackwards(self, info.Sequence, () =>
|
||||||
{
|
{
|
||||||
// avoids visual glitches as we wait for the actor to get destroyed
|
// avoids visual glitches as we wait for the actor to get destroyed
|
||||||
renderBuilding.DefaultAnimation.PlayFetchIndex(info.Sequence, () => 0);
|
wsb.DefaultAnimation.PlayFetchIndex(info.Sequence, () => 0);
|
||||||
self.QueueActivity(queued, activity);
|
self.QueueActivity(queued, activity);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Replaces the building animation when it repairs a unit.")]
|
[Desc("Replaces the building animation when it repairs a unit.")]
|
||||||
public class WithRepairAnimationInfo : ITraitInfo, Requires<RenderBuildingInfo>
|
public class WithRepairAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||||
{
|
{
|
||||||
[Desc("Sequence name to use")]
|
[Desc("Sequence name to use")]
|
||||||
[SequenceReference] public readonly string Sequence = "active";
|
[SequenceReference] public readonly string Sequence = "active";
|
||||||
@@ -36,9 +36,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void Repairing(Actor self, Actor host)
|
public void Repairing(Actor self, Actor host)
|
||||||
{
|
{
|
||||||
var building = host.TraitOrDefault<RenderBuilding>();
|
var spriteBody = host.TraitOrDefault<WithSpriteBody>();
|
||||||
if (building != null && !(info.PauseOnLowPower && self.IsDisabled()))
|
if (spriteBody != null && !(info.PauseOnLowPower && self.IsDisabled()))
|
||||||
building.PlayCustomAnim(host, info.Sequence);
|
spriteBody.PlayCustomAnimation(host, info.Sequence);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ using OpenRA.Traits;
|
|||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[Desc("Displays the fill status of PlayerResources with an extra sprite overlay on the actor.")]
|
[Desc("Displays the fill status of PlayerResources with an extra sprite overlay on the actor.")]
|
||||||
class WithResourcesInfo : ITraitInfo, Requires<RenderSimpleInfo>
|
class WithResourcesInfo : ITraitInfo, Requires<WithSpriteBodyInfo>, Requires<RenderSpritesInfo>
|
||||||
{
|
{
|
||||||
[Desc("Sequence name to use")]
|
[Desc("Sequence name to use")]
|
||||||
[SequenceReference] public readonly string Sequence = "resources";
|
[SequenceReference] public readonly string Sequence = "resources";
|
||||||
@@ -26,7 +26,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
readonly WithResourcesInfo info;
|
readonly WithResourcesInfo info;
|
||||||
readonly AnimationWithOffset anim;
|
readonly AnimationWithOffset anim;
|
||||||
readonly RenderSimple rs;
|
readonly RenderSprites rs;
|
||||||
|
readonly WithSpriteBody wsb;
|
||||||
|
|
||||||
PlayerResources playerResources;
|
PlayerResources playerResources;
|
||||||
bool buildComplete;
|
bool buildComplete;
|
||||||
@@ -34,7 +35,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public WithResources(Actor self, WithResourcesInfo info)
|
public WithResources(Actor self, WithResourcesInfo info)
|
||||||
{
|
{
|
||||||
this.info = info;
|
this.info = info;
|
||||||
rs = self.Trait<RenderSimple>();
|
rs = self.Trait<RenderSprites>();
|
||||||
|
wsb = self.Trait<WithSpriteBody>();
|
||||||
playerResources = self.Owner.PlayerActor.Trait<PlayerResources>();
|
playerResources = self.Owner.PlayerActor.Trait<PlayerResources>();
|
||||||
|
|
||||||
var a = new Animation(self.World, rs.GetImage(self));
|
var a = new Animation(self.World, rs.GetImage(self));
|
||||||
@@ -55,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public void DamageStateChanged(Actor self, AttackInfo e)
|
public void DamageStateChanged(Actor self, AttackInfo e)
|
||||||
{
|
{
|
||||||
if (anim.Animation.CurrentSequence != null)
|
if (anim.Animation.CurrentSequence != null)
|
||||||
anim.Animation.ReplaceAnim(rs.NormalizeSequence(self, info.Sequence));
|
anim.Animation.ReplaceAnim(wsb.NormalizeSequence(self, info.Sequence));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
public void OnOwnerChanged(Actor self, Player oldOwner, Player newOwner)
|
||||||
|
|||||||
@@ -19,11 +19,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("Default trait for rendering sprite-based actors.")]
|
[Desc("Default trait for rendering sprite-based actors.")]
|
||||||
public class WithSpriteBodyInfo : UpgradableTraitInfo, IRenderActorPreviewSpritesInfo, Requires<RenderSpritesInfo>
|
public class WithSpriteBodyInfo : UpgradableTraitInfo, IRenderActorPreviewSpritesInfo, Requires<RenderSpritesInfo>
|
||||||
{
|
{
|
||||||
[Desc("Animation to play when the actor is created.")]
|
[Desc("Animation to play when the actor is created."), SequenceReference]
|
||||||
[SequenceReference] public readonly string StartSequence = null;
|
public readonly string StartSequence = null;
|
||||||
|
|
||||||
[Desc("Animation to play when the actor is idle.")]
|
[Desc("Animation to play when the actor is idle."), SequenceReference]
|
||||||
[SequenceReference] public readonly string Sequence = "idle";
|
public readonly string Sequence = "idle";
|
||||||
|
|
||||||
[Desc("Pause animation when actor is disabled.")]
|
[Desc("Pause animation when actor is disabled.")]
|
||||||
public readonly bool PauseAnimationWhenDisabled = false;
|
public readonly bool PauseAnimationWhenDisabled = false;
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
public readonly int Range = 1;
|
public readonly int Range = 1;
|
||||||
public readonly string GrantUpgradeSound = "ironcur9.aud";
|
public readonly string GrantUpgradeSound = "ironcur9.aud";
|
||||||
|
|
||||||
|
[Desc("Sequence to play for granting actor when activated."), SequenceReference]
|
||||||
|
public readonly string GrantUpgradeSequence = "active";
|
||||||
|
|
||||||
public override object Create(ActorInitializer init) { return new GrantUpgradePower(init.Self, this); }
|
public override object Create(ActorInitializer init) { return new GrantUpgradePower(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +56,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
base.Activate(self, order, manager);
|
base.Activate(self, order, manager);
|
||||||
|
|
||||||
self.Trait<RenderBuilding>().PlayCustomAnim(self, "active");
|
self.Trait<WithSpriteBody>().PlayCustomAnimation(self, info.GrantUpgradeSequence);
|
||||||
|
|
||||||
Sound.Play(info.GrantUpgradeSound, self.World.Map.CenterOfCell(order.TargetLocation));
|
Sound.Play(info.GrantUpgradeSound, self.World.Map.CenterOfCell(order.TargetLocation));
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public readonly string FlashType = null;
|
public readonly string FlashType = null;
|
||||||
|
|
||||||
|
[SequenceReference]
|
||||||
|
[Desc("Sequence the launching actor should play when activating this power.")]
|
||||||
|
public readonly string ActivationSequence = "active";
|
||||||
|
|
||||||
public override object Create(ActorInitializer init) { return new NukePower(init.Self, this); }
|
public override object Create(ActorInitializer init) { return new NukePower(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,8 +75,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
else
|
else
|
||||||
Sound.Play(Info.IncomingSound);
|
Sound.Play(Info.IncomingSound);
|
||||||
|
|
||||||
var rb = self.Trait<RenderSimple>();
|
var wsb = self.Trait<WithSpriteBody>();
|
||||||
rb.PlayCustomAnim(self, "active");
|
wsb.PlayCustomAnimation(self, info.ActivationSequence);
|
||||||
|
|
||||||
var targetPosition = self.World.Map.CenterOfCell(order.TargetLocation);
|
var targetPosition = self.World.Map.CenterOfCell(order.TargetLocation);
|
||||||
var missile = new NukeLaunch(self.Owner, info.MissileWeapon,
|
var missile = new NukeLaunch(self.Owner, info.MissileWeapon,
|
||||||
|
|||||||
@@ -1931,6 +1931,40 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (engineVersion < 20150828)
|
||||||
|
{
|
||||||
|
// Replaced RenderBuilding with RenderSprites + WithSpriteBody (+AutoSelectionSize)
|
||||||
|
if (depth == 0)
|
||||||
|
{
|
||||||
|
var childKeysExcludeFromRS = new[] { "Sequence", "PauseOnLowPower" };
|
||||||
|
|
||||||
|
var rb = node.Value.Nodes.FirstOrDefault(n => n.Key.StartsWith("RenderBuilding"));
|
||||||
|
if (rb != null)
|
||||||
|
{
|
||||||
|
rb.Key = "WithSpriteBody";
|
||||||
|
|
||||||
|
var rsNodes = rb.Value.Nodes.Where(n => !childKeysExcludeFromRS.Contains(n.Key)).ToList();
|
||||||
|
|
||||||
|
if (rsNodes.Any())
|
||||||
|
node.Value.Nodes.Add(new MiniYamlNode("RenderSprites", new MiniYaml("", rsNodes)));
|
||||||
|
else
|
||||||
|
node.Value.Nodes.Add(new MiniYamlNode("RenderSprites", ""));
|
||||||
|
|
||||||
|
node.Value.Nodes.Add(new MiniYamlNode("AutoSelectionSize", ""));
|
||||||
|
|
||||||
|
rb.Value.Nodes.RemoveAll(n => rsNodes.Contains(n));
|
||||||
|
}
|
||||||
|
|
||||||
|
var rrb = node.Value.Nodes.FirstOrDefault(n => n.Key.StartsWith("-RenderBuilding"));
|
||||||
|
if (rrb != null)
|
||||||
|
rrb.Key = "-WithSpriteBody";
|
||||||
|
|
||||||
|
if (depth == 2 && node.Key == "PauseOnLowPower" && (parentKey == "WithSpriteBody"
|
||||||
|
|| parentKey == "WithTurretedSpriteBody" || parentKey == "WithWallSpriteBody"))
|
||||||
|
node.Key = "PauseAnimationWhenDisabled";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ namespace OpenRA.Mods.RA.Activities
|
|||||||
|
|
||||||
if (teleporter != null && self != teleporter && !teleporter.Disposed)
|
if (teleporter != null && self != teleporter && !teleporter.Disposed)
|
||||||
{
|
{
|
||||||
var building = teleporter.TraitOrDefault<RenderBuilding>();
|
var building = teleporter.TraitOrDefault<WithSpriteBody>();
|
||||||
if (building != null)
|
if (building != null)
|
||||||
building.PlayCustomAnim(teleporter, "active");
|
building.PlayCustomAnimation(teleporter, "active");
|
||||||
}
|
}
|
||||||
|
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
|
|||||||
@@ -432,7 +432,9 @@
|
|||||||
DamagedSounds: xplos.aud
|
DamagedSounds: xplos.aud
|
||||||
DestroyedSounds: crumble.aud
|
DestroyedSounds: crumble.aud
|
||||||
QuantizeFacingsFromSequence:
|
QuantizeFacingsFromSequence:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
WithBuildingExplosion:
|
WithBuildingExplosion:
|
||||||
Delay: 1
|
Delay: 1
|
||||||
CaptureNotification:
|
CaptureNotification:
|
||||||
@@ -489,7 +491,9 @@
|
|||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
QuantizeFacingsFromSequence:
|
QuantizeFacingsFromSequence:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Civilian Building (Destroyed)
|
Name: Civilian Building (Destroyed)
|
||||||
GenericVisibility: None
|
GenericVisibility: None
|
||||||
@@ -518,8 +522,10 @@
|
|||||||
-WithBuildingExplosion:
|
-WithBuildingExplosion:
|
||||||
-TargetableBuilding:
|
-TargetableBuilding:
|
||||||
-Demolishable:
|
-Demolishable:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terrain
|
Palette: terrain
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
|
|
||||||
^CivFieldHusk:
|
^CivFieldHusk:
|
||||||
AppearsOnRadar:
|
AppearsOnRadar:
|
||||||
@@ -601,8 +607,10 @@
|
|||||||
Name: Blossom Tree
|
Name: Blossom Tree
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: staticterrain
|
Palette: staticterrain
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
Building:
|
Building:
|
||||||
Footprint: x
|
Footprint: x
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ waypoint:
|
|||||||
|
|
||||||
^fact.colorpicker:
|
^fact.colorpicker:
|
||||||
Inherits: FACT
|
Inherits: FACT
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: fact
|
Image: fact
|
||||||
Palette: colorpicker
|
Palette: colorpicker
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ FACT:
|
|||||||
|
|
||||||
FACT.GDI:
|
FACT.GDI:
|
||||||
Inherits: FACT
|
Inherits: FACT
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: fact
|
Image: fact
|
||||||
Buildable:
|
Buildable:
|
||||||
Queue: Building.GDI, Building.Nod
|
Queue: Building.GDI, Building.Nod
|
||||||
@@ -84,7 +84,7 @@ FACT.GDI:
|
|||||||
|
|
||||||
FACT.NOD:
|
FACT.NOD:
|
||||||
Inherits: FACT
|
Inherits: FACT
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: fact
|
Image: fact
|
||||||
Buildable:
|
Buildable:
|
||||||
Queue: Building.GDI, Building.Nod
|
Queue: Building.GDI, Building.Nod
|
||||||
@@ -218,7 +218,6 @@ SILO:
|
|||||||
PipCount: 10
|
PipCount: 10
|
||||||
PipColor: Green
|
PipColor: Green
|
||||||
Capacity: 2000
|
Capacity: 2000
|
||||||
-RenderBuilding:
|
|
||||||
-EmitInfantryOnSell:
|
-EmitInfantryOnSell:
|
||||||
Power:
|
Power:
|
||||||
Amount: -10
|
Amount: -10
|
||||||
@@ -226,7 +225,6 @@ SILO:
|
|||||||
RequiredForShortGame: false
|
RequiredForShortGame: false
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 49,30
|
VisualBounds: 49,30
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
PYLE:
|
PYLE:
|
||||||
Inherits: ^BaseBuilding
|
Inherits: ^BaseBuilding
|
||||||
@@ -463,8 +461,8 @@ HQ:
|
|||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
RenderBuilding:
|
WithSpriteBody:
|
||||||
PauseOnLowPower: yes
|
PauseAnimationWhenDisabled: true
|
||||||
Health:
|
Health:
|
||||||
HP: 700
|
HP: 700
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -549,8 +547,8 @@ EYE:
|
|||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
RenderBuilding:
|
WithSpriteBody:
|
||||||
PauseOnLowPower: yes
|
PauseAnimationWhenDisabled: true
|
||||||
Health:
|
Health:
|
||||||
HP: 1200
|
HP: 1200
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
@@ -654,7 +652,7 @@ GUN:
|
|||||||
Turreted:
|
Turreted:
|
||||||
ROT: 12
|
ROT: 12
|
||||||
InitialFacing: 50
|
InitialFacing: 50
|
||||||
RenderSprites:
|
-WithSpriteBody:
|
||||||
WithTurretedSpriteBody:
|
WithTurretedSpriteBody:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: TurretGun
|
Weapon: TurretGun
|
||||||
@@ -662,13 +660,11 @@ GUN:
|
|||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
WithMuzzleFlash:
|
WithMuzzleFlash:
|
||||||
-RenderBuilding:
|
|
||||||
-WithDeathAnimation:
|
-WithDeathAnimation:
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 3
|
Range: 3
|
||||||
Power:
|
Power:
|
||||||
Amount: -20
|
Amount: -20
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
SAM:
|
SAM:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
@@ -697,7 +693,7 @@ SAM:
|
|||||||
Turreted:
|
Turreted:
|
||||||
ROT: 10
|
ROT: 10
|
||||||
InitialFacing: 0
|
InitialFacing: 0
|
||||||
RenderSprites:
|
-WithSpriteBody:
|
||||||
WithTurretedSpriteBody:
|
WithTurretedSpriteBody:
|
||||||
AutoSelectionSize:
|
AutoSelectionSize:
|
||||||
Armament:
|
Armament:
|
||||||
@@ -705,11 +701,9 @@ SAM:
|
|||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
AttackPopupTurreted:
|
AttackPopupTurreted:
|
||||||
WithMuzzleFlash:
|
WithMuzzleFlash:
|
||||||
-RenderBuilding:
|
|
||||||
-RenderDetectionCircle:
|
-RenderDetectionCircle:
|
||||||
Power:
|
Power:
|
||||||
Amount: -20
|
Amount: -20
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
OBLI:
|
OBLI:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
@@ -739,8 +733,6 @@ OBLI:
|
|||||||
Range: 8c0
|
Range: 8c0
|
||||||
Bib:
|
Bib:
|
||||||
HasMinibib: Yes
|
HasMinibib: Yes
|
||||||
RenderSprites:
|
|
||||||
WithSpriteBody:
|
|
||||||
WithChargeAnimation:
|
WithChargeAnimation:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: Laser
|
Weapon: Laser
|
||||||
@@ -750,13 +742,11 @@ OBLI:
|
|||||||
ChargeAudio: obelpowr.aud
|
ChargeAudio: obelpowr.aud
|
||||||
ReloadTime: 40
|
ReloadTime: 40
|
||||||
InitialChargeDelay: 50
|
InitialChargeDelay: 50
|
||||||
-RenderBuilding:
|
|
||||||
-EmitInfantryOnSell:
|
-EmitInfantryOnSell:
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 5
|
Range: 5
|
||||||
Power:
|
Power:
|
||||||
Amount: -150
|
Amount: -150
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
GTWR:
|
GTWR:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ V19:
|
|||||||
|
|
||||||
V19.Husk:
|
V19.Husk:
|
||||||
Inherits: ^CivBuildingHusk
|
Inherits: ^CivBuildingHusk
|
||||||
-RenderBuilding:
|
|
||||||
AutoSelectionSize:
|
AutoSelectionSize:
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
@@ -88,7 +87,6 @@ BIO.Husk:
|
|||||||
|
|
||||||
MISS:
|
MISS:
|
||||||
Inherits: ^CivBuilding
|
Inherits: ^CivBuilding
|
||||||
RenderBuilding:
|
|
||||||
Building:
|
Building:
|
||||||
Footprint: xxx xxx
|
Footprint: xxx xxx
|
||||||
Dimensions: 3,2
|
Dimensions: 3,2
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ SPLIT2:
|
|||||||
|
|
||||||
SPLIT3:
|
SPLIT3:
|
||||||
Inherits: ^TibTree
|
Inherits: ^TibTree
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: split2
|
Image: split2
|
||||||
SeedsResource:
|
SeedsResource:
|
||||||
ResourceType: Tiberium
|
ResourceType: Tiberium
|
||||||
@@ -16,7 +16,7 @@ SPLIT3:
|
|||||||
|
|
||||||
SPLITBLUE:
|
SPLITBLUE:
|
||||||
Inherits: ^TibTree
|
Inherits: ^TibTree
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: split3
|
Image: split3
|
||||||
SeedsResource:
|
SeedsResource:
|
||||||
ResourceType: BlueTiberium
|
ResourceType: BlueTiberium
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
spicebloom:
|
spicebloom:
|
||||||
HiddenUnderShroud:
|
HiddenUnderShroud:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
Building:
|
Building:
|
||||||
Footprint: x
|
Footprint: x
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
|
|||||||
@@ -275,7 +275,9 @@
|
|||||||
DamagedSounds: EXPLSML1.WAV
|
DamagedSounds: EXPLSML1.WAV
|
||||||
DestroyedSounds: EXPLHG1.WAV
|
DestroyedSounds: EXPLHG1.WAV
|
||||||
QuantizeFacingsFromSequence:
|
QuantizeFacingsFromSequence:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
WithBuildingExplosion:
|
WithBuildingExplosion:
|
||||||
RepairableBuilding:
|
RepairableBuilding:
|
||||||
EmitInfantryOnSell:
|
EmitInfantryOnSell:
|
||||||
@@ -311,7 +313,7 @@
|
|||||||
-GivesBuildableArea:
|
-GivesBuildableArea:
|
||||||
-WithCrumbleOverlay:
|
-WithCrumbleOverlay:
|
||||||
-WithMakeAnimation:
|
-WithMakeAnimation:
|
||||||
-RenderBuilding:
|
-WithSpriteBody:
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
WithWallSpriteBody:
|
WithWallSpriteBody:
|
||||||
AutoSelectionSize:
|
AutoSelectionSize:
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ conyard:
|
|||||||
ProductionBar:
|
ProductionBar:
|
||||||
Power:
|
Power:
|
||||||
Amount: 20
|
Amount: 20
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: conyard.harkonnen
|
Image: conyard.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: conyard.atreides
|
atreides: conyard.atreides
|
||||||
@@ -99,7 +99,7 @@ power:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: power.harkonnen
|
Image: power.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: power.atreides
|
atreides: power.atreides
|
||||||
@@ -160,7 +160,7 @@ barracks:
|
|||||||
Factions: atreides, ordos
|
Factions: atreides, ordos
|
||||||
Power:
|
Power:
|
||||||
Amount: -20
|
Amount: -20
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: barracks.harkonnen
|
Image: barracks.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: barracks.atreides
|
atreides: barracks.atreides
|
||||||
@@ -205,7 +205,7 @@ refinery:
|
|||||||
DeliveryOffset: 2,2
|
DeliveryOffset: 2,2
|
||||||
DeliveringActor: carryall.reinforce
|
DeliveringActor: carryall.reinforce
|
||||||
Facing: 160
|
Facing: 160
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: refinery.harkonnen
|
Image: refinery.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: refinery.atreides
|
atreides: refinery.atreides
|
||||||
@@ -241,7 +241,6 @@ silo:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
-RenderBuilding:
|
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
Image: silo.harkonnen
|
Image: silo.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
@@ -258,7 +257,6 @@ silo:
|
|||||||
Amount: -5
|
Amount: -5
|
||||||
MustBeDestroyed:
|
MustBeDestroyed:
|
||||||
RequiredForShortGame: false
|
RequiredForShortGame: false
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
light:
|
light:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
@@ -283,7 +281,7 @@ light:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: light.harkonnen
|
Image: light.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: light.atreides
|
atreides: light.atreides
|
||||||
@@ -361,7 +359,7 @@ heavy:
|
|||||||
ProvidesPrerequisite@missiletank:
|
ProvidesPrerequisite@missiletank:
|
||||||
Prerequisite: heavy.missiletank
|
Prerequisite: heavy.missiletank
|
||||||
Factions: atreides, harkonnen
|
Factions: atreides, harkonnen
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: heavy.harkonnen
|
Image: heavy.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: heavy.atreides
|
atreides: heavy.atreides
|
||||||
@@ -407,7 +405,7 @@ radar:
|
|||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 6
|
Range: 6
|
||||||
RenderDetectionCircle:
|
RenderDetectionCircle:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: radar.harkonnen
|
Image: radar.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: radar.atreides
|
atreides: radar.atreides
|
||||||
@@ -452,7 +450,7 @@ starport:
|
|||||||
ProductionAirdrop:
|
ProductionAirdrop:
|
||||||
Produces: Starport
|
Produces: Starport
|
||||||
ActorType: frigate
|
ActorType: frigate
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: starport.harkonnen
|
Image: starport.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: starport.atreides
|
atreides: starport.atreides
|
||||||
@@ -642,7 +640,7 @@ repair:
|
|||||||
FinishRepairingNotification: UnitRepaired
|
FinishRepairingNotification: UnitRepaired
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
Offset: 1,3
|
Offset: 1,3
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: repair.harkonnen
|
Image: repair.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: repair.atreides
|
atreides: repair.atreides
|
||||||
@@ -681,7 +679,7 @@ hightech:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: hightech.harkonnen
|
Image: hightech.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: hightech.atreides
|
atreides: hightech.atreides
|
||||||
@@ -742,7 +740,7 @@ research:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: research.harkonnen
|
Image: research.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: research.atreides
|
atreides: research.atreides
|
||||||
@@ -779,7 +777,7 @@ palace:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 8c0
|
Range: 8c0
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: palace.harkonnen
|
Image: palace.harkonnen
|
||||||
FactionImages:
|
FactionImages:
|
||||||
atreides: palace.atreides
|
atreides: palace.atreides
|
||||||
@@ -823,7 +821,7 @@ conyard.atreides:
|
|||||||
BuildPaletteOrder: 1000
|
BuildPaletteOrder: 1000
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
ForceFaction: atreides
|
ForceFaction: atreides
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: conyard.atreides
|
Image: conyard.atreides
|
||||||
-FactionImages:
|
-FactionImages:
|
||||||
|
|
||||||
@@ -834,7 +832,7 @@ conyard.harkonnen:
|
|||||||
BuildPaletteOrder: 1000
|
BuildPaletteOrder: 1000
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
ForceFaction: harkonnen
|
ForceFaction: harkonnen
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: conyard.harkonnen
|
Image: conyard.harkonnen
|
||||||
-FactionImages:
|
-FactionImages:
|
||||||
|
|
||||||
@@ -845,7 +843,7 @@ conyard.ordos:
|
|||||||
BuildPaletteOrder: 1000
|
BuildPaletteOrder: 1000
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
ForceFaction: ordos
|
ForceFaction: ordos
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: conyard.ordos
|
Image: conyard.ordos
|
||||||
-FactionImages:
|
-FactionImages:
|
||||||
|
|
||||||
|
|||||||
@@ -1737,9 +1737,7 @@ Rules:
|
|||||||
LocalOffset: 432,150,-30, 432,-150,-30
|
LocalOffset: 432,150,-30, 432,-150,-30
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
-RenderBuilding:
|
|
||||||
-Selectable:
|
-Selectable:
|
||||||
-WithMakeAnimation:
|
|
||||||
E1.Autotarget:
|
E1.Autotarget:
|
||||||
Inherits: E1
|
Inherits: E1
|
||||||
Buildable:
|
Buildable:
|
||||||
|
|||||||
@@ -877,6 +877,7 @@ Rules:
|
|||||||
EndChargeSound: ironrdy1.aud
|
EndChargeSound: ironrdy1.aud
|
||||||
Range: 1
|
Range: 1
|
||||||
Upgrades: invulnerability
|
Upgrades: invulnerability
|
||||||
|
GrantUpgradeSequence: idle
|
||||||
Power:
|
Power:
|
||||||
Amount: 0
|
Amount: 0
|
||||||
MINVV:
|
MINVV:
|
||||||
@@ -893,9 +894,10 @@ Rules:
|
|||||||
Cost: 30
|
Cost: 30
|
||||||
Health:
|
Health:
|
||||||
HP: 200
|
HP: 200
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: miner
|
Image: miner
|
||||||
HasMakeAnimation: false
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Bomb
|
Name: Bomb
|
||||||
Description: Bomb (Hotkey B)
|
Description: Bomb (Hotkey B)
|
||||||
@@ -943,6 +945,7 @@ Rules:
|
|||||||
EndChargeSound: ironrdy1.aud
|
EndChargeSound: ironrdy1.aud
|
||||||
Range: 1
|
Range: 1
|
||||||
Upgrades: invulnerability
|
Upgrades: invulnerability
|
||||||
|
GrantUpgradeSequence: idle
|
||||||
|
|
||||||
Sequences:
|
Sequences:
|
||||||
miner:
|
miner:
|
||||||
|
|||||||
@@ -891,13 +891,13 @@ Rules:
|
|||||||
Inherits: OILB
|
Inherits: OILB
|
||||||
Health:
|
Health:
|
||||||
HP: 6000
|
HP: 6000
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: OILB
|
Image: OILB
|
||||||
OILB.Weak:
|
OILB.Weak:
|
||||||
Inherits: OILB
|
Inherits: OILB
|
||||||
Health:
|
Health:
|
||||||
HP: 900
|
HP: 900
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: OILB
|
Image: OILB
|
||||||
|
|
||||||
Sequences:
|
Sequences:
|
||||||
|
|||||||
@@ -2238,7 +2238,7 @@ Rules:
|
|||||||
Inherits: DOME
|
Inherits: DOME
|
||||||
Buildable:
|
Buildable:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: DOME
|
Image: DOME
|
||||||
-InfiltrateForExploration:
|
-InfiltrateForExploration:
|
||||||
TargetableBuilding:
|
TargetableBuilding:
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ Rules:
|
|||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
DOME.IGNORE:
|
DOME.IGNORE:
|
||||||
Inherits: DOME
|
Inherits: DOME
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: DOME
|
Image: DOME
|
||||||
AutoTargetIgnore:
|
AutoTargetIgnore:
|
||||||
Buildable:
|
Buildable:
|
||||||
|
|||||||
@@ -1273,7 +1273,7 @@ Rules:
|
|||||||
-ParatroopersPower@paratroopers:
|
-ParatroopersPower@paratroopers:
|
||||||
-AirstrikePower@parabombs:
|
-AirstrikePower@parabombs:
|
||||||
-SupportPowerChargeBar:
|
-SupportPowerChargeBar:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: AFLD
|
Image: AFLD
|
||||||
ATEK.mission:
|
ATEK.mission:
|
||||||
Inherits: ATEK
|
Inherits: ATEK
|
||||||
@@ -1285,7 +1285,7 @@ Rules:
|
|||||||
-TargetableBuilding:
|
-TargetableBuilding:
|
||||||
-GivesBuildableArea:
|
-GivesBuildableArea:
|
||||||
-Huntable:
|
-Huntable:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: ATEK
|
Image: ATEK
|
||||||
GUN:
|
GUN:
|
||||||
Valued:
|
Valued:
|
||||||
|
|||||||
@@ -232,7 +232,6 @@ V19.Husk:
|
|||||||
ExcludeTilesets: DESERT
|
ExcludeTilesets: DESERT
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Husk (Oil Pump)
|
Name: Husk (Oil Pump)
|
||||||
-RenderBuilding:
|
|
||||||
AutoSelectionSize:
|
AutoSelectionSize:
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
@@ -628,7 +627,7 @@ SNOWHUT:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: x x
|
Footprint: x x
|
||||||
Dimensions: 1,2
|
Dimensions: 1,2
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Scale: 0.7
|
Scale: 0.7
|
||||||
|
|
||||||
LHUS:
|
LHUS:
|
||||||
|
|||||||
@@ -396,7 +396,9 @@
|
|||||||
DamagedSounds: kaboom1.aud
|
DamagedSounds: kaboom1.aud
|
||||||
DestroyedSounds: kaboom22.aud
|
DestroyedSounds: kaboom22.aud
|
||||||
QuantizeFacingsFromSequence:
|
QuantizeFacingsFromSequence:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
AutoSelectionSize:
|
||||||
|
WithSpriteBody:
|
||||||
WithBuildingExplosion:
|
WithBuildingExplosion:
|
||||||
CaptureNotification:
|
CaptureNotification:
|
||||||
ShakeOnDeath:
|
ShakeOnDeath:
|
||||||
@@ -521,7 +523,7 @@
|
|||||||
|
|
||||||
^CivBuilding:
|
^CivBuilding:
|
||||||
Inherits: ^TechBuilding
|
Inherits: ^TechBuilding
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terrain
|
Palette: terrain
|
||||||
EditorTilesetFilter:
|
EditorTilesetFilter:
|
||||||
ExcludeTilesets: INTERIOR
|
ExcludeTilesets: INTERIOR
|
||||||
@@ -664,7 +666,7 @@
|
|||||||
|
|
||||||
^DesertCivBuilding:
|
^DesertCivBuilding:
|
||||||
Inherits: ^CivBuilding
|
Inherits: ^CivBuilding
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terrain
|
Palette: terrain
|
||||||
EditorTilesetFilter:
|
EditorTilesetFilter:
|
||||||
RequireTilesets: DESERT
|
RequireTilesets: DESERT
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ FACF:
|
|||||||
Footprint: xxx xxx xxx
|
Footprint: xxx xxx xxx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
Bib:
|
Bib:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: FACT
|
Image: FACT
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 250
|
Cost: 250
|
||||||
@@ -37,7 +37,7 @@ WEAF:
|
|||||||
Footprint: xxx xxx
|
Footprint: xxx xxx
|
||||||
Dimensions: 3,2
|
Dimensions: 3,2
|
||||||
Bib:
|
Bib:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: WEAP
|
Image: WEAP
|
||||||
WithProductionDoorOverlay:
|
WithProductionDoorOverlay:
|
||||||
Sequence: build-top
|
Sequence: build-top
|
||||||
@@ -64,7 +64,7 @@ SYRF:
|
|||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
Adjacent: 8
|
Adjacent: 8
|
||||||
TerrainTypes: Water
|
TerrainTypes: Water
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: SYRD
|
Image: SYRD
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
@@ -91,7 +91,7 @@ SPEF:
|
|||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
Adjacent: 8
|
Adjacent: 8
|
||||||
TerrainTypes: Water
|
TerrainTypes: Water
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: SPEN
|
Image: SPEN
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 100
|
Cost: 100
|
||||||
@@ -115,7 +115,7 @@ DOMF:
|
|||||||
Footprint: xx xx
|
Footprint: xx xx
|
||||||
Dimensions: 2,2
|
Dimensions: 2,2
|
||||||
Bib:
|
Bib:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: DOME
|
Image: DOME
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 180
|
Cost: 180
|
||||||
@@ -139,7 +139,7 @@ ATEF:
|
|||||||
Footprint: xx xx
|
Footprint: xx xx
|
||||||
Dimensions: 2,2
|
Dimensions: 2,2
|
||||||
Bib:
|
Bib:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: ATEK
|
Image: ATEK
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 150
|
Cost: 150
|
||||||
@@ -163,7 +163,7 @@ PDOF:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: xx xx
|
Footprint: xx xx
|
||||||
Dimensions: 2,2
|
Dimensions: 2,2
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: PDOX
|
Image: PDOX
|
||||||
Bib:
|
Bib:
|
||||||
HasMinibib: Yes
|
HasMinibib: Yes
|
||||||
@@ -189,7 +189,7 @@ MSLF:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: xx
|
Footprint: xx
|
||||||
Dimensions: 2,1
|
Dimensions: 2,1
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: MSLO
|
Image: MSLO
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 250
|
Cost: 250
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ waypoint:
|
|||||||
|
|
||||||
^fact.colorpicker:
|
^fact.colorpicker:
|
||||||
Inherits: FACT
|
Inherits: FACT
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: fact
|
Image: fact
|
||||||
Palette: colorpicker
|
Palette: colorpicker
|
||||||
|
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ GAP:
|
|||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
RenderBuilding:
|
WithSpriteBody:
|
||||||
PauseOnLowPower: yes
|
PauseAnimationWhenDisabled: true
|
||||||
Health:
|
Health:
|
||||||
HP: 1000
|
HP: 1000
|
||||||
Armor:
|
Armor:
|
||||||
@@ -401,8 +401,6 @@ TSLA:
|
|||||||
Range: 8c0
|
Range: 8c0
|
||||||
Bib:
|
Bib:
|
||||||
HasMinibib: Yes
|
HasMinibib: Yes
|
||||||
RenderSprites:
|
|
||||||
WithSpriteBody:
|
|
||||||
WithChargeAnimation:
|
WithChargeAnimation:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: TeslaZap
|
Weapon: TeslaZap
|
||||||
@@ -411,13 +409,11 @@ TSLA:
|
|||||||
ChargeAudio: tslachg2.aud
|
ChargeAudio: tslachg2.aud
|
||||||
MaxCharges: 3
|
MaxCharges: 3
|
||||||
ReloadTime: 120
|
ReloadTime: 120
|
||||||
-RenderBuilding:
|
|
||||||
Power:
|
Power:
|
||||||
Amount: -100
|
Amount: -100
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 8
|
Range: 8
|
||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
AGUN:
|
AGUN:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
@@ -451,7 +447,7 @@ AGUN:
|
|||||||
Turreted:
|
Turreted:
|
||||||
ROT: 15
|
ROT: 15
|
||||||
InitialFacing: 224
|
InitialFacing: 224
|
||||||
RenderSprites:
|
-WithSpriteBody:
|
||||||
WithTurretedSpriteBody:
|
WithTurretedSpriteBody:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: ZSU-23
|
Weapon: ZSU-23
|
||||||
@@ -459,14 +455,12 @@ AGUN:
|
|||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
WithMuzzleFlash:
|
WithMuzzleFlash:
|
||||||
-RenderBuilding:
|
|
||||||
RenderRangeCircle:
|
RenderRangeCircle:
|
||||||
RangeCircleType: aa
|
RangeCircleType: aa
|
||||||
Power:
|
Power:
|
||||||
Amount: -50
|
Amount: -50
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 6
|
Range: 6
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
DOME:
|
DOME:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
@@ -612,7 +606,7 @@ GUN:
|
|||||||
Turreted:
|
Turreted:
|
||||||
ROT: 12
|
ROT: 12
|
||||||
InitialFacing: 50
|
InitialFacing: 50
|
||||||
RenderSprites:
|
-WithSpriteBody:
|
||||||
WithTurretedSpriteBody:
|
WithTurretedSpriteBody:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: TurretGun
|
Weapon: TurretGun
|
||||||
@@ -620,12 +614,10 @@ GUN:
|
|||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
WithMuzzleFlash:
|
WithMuzzleFlash:
|
||||||
-RenderBuilding:
|
|
||||||
Power:
|
Power:
|
||||||
Amount: -40
|
Amount: -40
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 7
|
Range: 7
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
FTUR:
|
FTUR:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
@@ -690,21 +682,19 @@ SAM:
|
|||||||
Turreted:
|
Turreted:
|
||||||
ROT: 30
|
ROT: 30
|
||||||
InitialFacing: 0
|
InitialFacing: 0
|
||||||
RenderSprites:
|
-WithSpriteBody:
|
||||||
WithTurretedSpriteBody:
|
WithTurretedSpriteBody:
|
||||||
Armament:
|
Armament:
|
||||||
Weapon: Nike
|
Weapon: Nike
|
||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
AttackTurreted:
|
AttackTurreted:
|
||||||
WithMuzzleFlash:
|
WithMuzzleFlash:
|
||||||
-RenderBuilding:
|
|
||||||
RenderRangeCircle:
|
RenderRangeCircle:
|
||||||
RangeCircleType: aa
|
RangeCircleType: aa
|
||||||
Power:
|
Power:
|
||||||
Amount: -40
|
Amount: -40
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
Range: 5
|
Range: 5
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
ATEK:
|
ATEK:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
@@ -988,17 +978,13 @@ SILO:
|
|||||||
Range: 4c0
|
Range: 4c0
|
||||||
Bib:
|
Bib:
|
||||||
HasMinibib: Yes
|
HasMinibib: Yes
|
||||||
RenderSprites:
|
|
||||||
WithSpriteBody:
|
|
||||||
WithSiloAnimation:
|
WithSiloAnimation:
|
||||||
StoresResources:
|
StoresResources:
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
Capacity: 1500
|
Capacity: 1500
|
||||||
-RenderBuilding:
|
|
||||||
-EmitInfantryOnSell:
|
-EmitInfantryOnSell:
|
||||||
Power:
|
Power:
|
||||||
Amount: -10
|
Amount: -10
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
HPAD:
|
HPAD:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ AMMOCRAT:
|
|||||||
Type: none
|
Type: none
|
||||||
Health:
|
Health:
|
||||||
HP: 1
|
HP: 1
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
BBOARD01:
|
BBOARD01:
|
||||||
@@ -625,7 +625,7 @@ CAARAY:
|
|||||||
Type: concrete
|
Type: concrete
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
CAARMR:
|
CAARMR:
|
||||||
@@ -639,7 +639,7 @@ CAARMR:
|
|||||||
Type: concrete
|
Type: concrete
|
||||||
Health:
|
Health:
|
||||||
HP: 800
|
HP: 800
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
ProvidesPrerequisite:
|
ProvidesPrerequisite:
|
||||||
Prerequisite: barracks.upgraded
|
Prerequisite: barracks.upgraded
|
||||||
@@ -655,7 +655,7 @@ CABHUT:
|
|||||||
Dimensions: 1, 1
|
Dimensions: 1, 1
|
||||||
Health:
|
Health:
|
||||||
HP: 2000
|
HP: 2000
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
CACRSH01:
|
CACRSH01:
|
||||||
@@ -729,7 +729,7 @@ CAHOSP:
|
|||||||
Type: concrete
|
Type: concrete
|
||||||
Health:
|
Health:
|
||||||
HP: 800
|
HP: 800
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
CAPYR01:
|
CAPYR01:
|
||||||
@@ -1126,7 +1126,7 @@ GAKODK:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 1500
|
HP: 1500
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC1:
|
GAOLDCC1:
|
||||||
@@ -1140,7 +1140,7 @@ GAOLDCC1:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC2:
|
GAOLDCC2:
|
||||||
@@ -1154,7 +1154,7 @@ GAOLDCC2:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC3:
|
GAOLDCC3:
|
||||||
@@ -1168,7 +1168,7 @@ GAOLDCC3:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC4:
|
GAOLDCC4:
|
||||||
@@ -1182,7 +1182,7 @@ GAOLDCC4:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC5:
|
GAOLDCC5:
|
||||||
@@ -1196,7 +1196,7 @@ GAOLDCC5:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GAOLDCC6:
|
GAOLDCC6:
|
||||||
@@ -1210,7 +1210,7 @@ GAOLDCC6:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 400
|
HP: 400
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
GASAND:
|
GASAND:
|
||||||
@@ -1273,7 +1273,7 @@ GALITE:
|
|||||||
Cost: 200
|
Cost: 200
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Light Post
|
Name: Light Post
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terraindecoration
|
Palette: terraindecoration
|
||||||
-WithMakeAnimation:
|
-WithMakeAnimation:
|
||||||
-WithDeathAnimation:
|
-WithDeathAnimation:
|
||||||
@@ -1330,7 +1330,7 @@ NAMNTK:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 1500
|
HP: 1500
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
NTPYRA:
|
NTPYRA:
|
||||||
@@ -1346,7 +1346,7 @@ NTPYRA:
|
|||||||
Type: heavy
|
Type: heavy
|
||||||
Health:
|
Health:
|
||||||
HP: 1500
|
HP: 1500
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
|
||||||
UFO:
|
UFO:
|
||||||
@@ -1354,7 +1354,7 @@ UFO:
|
|||||||
Building:
|
Building:
|
||||||
Dimensions: 6, 4
|
Dimensions: 6, 4
|
||||||
Footprint: xxxxxx xxxxxx xxxxxx xxxxxx
|
Footprint: xxxxxx xxxxxx xxxxxx xxxxxx
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terraindecoration
|
Palette: terraindecoration
|
||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 144, 72, 0, 0
|
Bounds: 144, 72, 0, 0
|
||||||
|
|||||||
@@ -63,7 +63,9 @@
|
|||||||
DamagedSounds: expnew01.aud
|
DamagedSounds: expnew01.aud
|
||||||
DestroyedSounds: crmble2.aud
|
DestroyedSounds: crmble2.aud
|
||||||
QuantizeFacingsFromSequence:
|
QuantizeFacingsFromSequence:
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
WithBuildingExplosion:
|
WithBuildingExplosion:
|
||||||
Sequences: building, large_bang, large_brnl, verylarge_clsn, large_tumu
|
Sequences: building, large_bang, large_brnl, verylarge_clsn, large_tumu
|
||||||
EngineerRepairable:
|
EngineerRepairable:
|
||||||
@@ -115,7 +117,7 @@
|
|||||||
Range: 4c0
|
Range: 4c0
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Description: Civilian Building
|
Description: Civilian Building
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: terraindecoration
|
Palette: terraindecoration
|
||||||
|
|
||||||
^CivBillboard:
|
^CivBillboard:
|
||||||
@@ -530,8 +532,10 @@
|
|||||||
^BlossomTree:
|
^BlossomTree:
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Blossom Tree
|
Name: Blossom Tree
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: player
|
Palette: player
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
Building:
|
Building:
|
||||||
Footprint: x
|
Footprint: x
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
@@ -636,7 +640,9 @@
|
|||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
TerrainTypes: Clear, Road, DirtRoad, Rough
|
TerrainTypes: Clear, Road, DirtRoad, Rough
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
|
WithSpriteBody:
|
||||||
|
AutoSelectionSize:
|
||||||
WithMakeAnimation:
|
WithMakeAnimation:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
Palette: pips
|
Palette: pips
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ GADEPT:
|
|||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 98, 68, -6, -6
|
VisualBounds: 98, 68, -6, -6
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: gadept.gdi
|
Image: gadept.gdi
|
||||||
FactionImages:
|
FactionImages:
|
||||||
gdi: gadept.gdi
|
gdi: gadept.gdi
|
||||||
@@ -348,7 +348,6 @@ GAPLUG:
|
|||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
IndicatorPalette: mouse
|
IndicatorPalette: mouse
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
RenderBuilding:
|
|
||||||
WithIdleOverlay@DISH:
|
WithIdleOverlay@DISH:
|
||||||
Sequence: idle-dish
|
Sequence: idle-dish
|
||||||
WithIdleOverlay@LIGHTS:
|
WithIdleOverlay@LIGHTS:
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ GAWALL:
|
|||||||
|
|
||||||
GACTWR:
|
GACTWR:
|
||||||
Inherits: ^Defense
|
Inherits: ^Defense
|
||||||
|
-WithSpriteBody:
|
||||||
|
WithWallSpriteBody:
|
||||||
|
Type: wall
|
||||||
Valued:
|
Valued:
|
||||||
Cost: 600
|
Cost: 600
|
||||||
Tooltip:
|
Tooltip:
|
||||||
@@ -102,10 +105,6 @@ GACTWR:
|
|||||||
Sequence: idle-lights
|
Sequence: idle-lights
|
||||||
LineBuildNode:
|
LineBuildNode:
|
||||||
Types: turret
|
Types: turret
|
||||||
-RenderBuilding:
|
|
||||||
RenderSprites:
|
|
||||||
WithWallSpriteBody:
|
|
||||||
Type: wall
|
|
||||||
Power@base:
|
Power@base:
|
||||||
Amount: -10
|
Amount: -10
|
||||||
Power@turrets:
|
Power@turrets:
|
||||||
@@ -124,7 +123,6 @@ GACTWR:
|
|||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 48, 48, 0, -12
|
VisualBounds: 48, 48, 0, -12
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
GAVULC:
|
GAVULC:
|
||||||
Inherits: ^BuildingPlug
|
Inherits: ^BuildingPlug
|
||||||
|
|||||||
@@ -206,7 +206,6 @@ GAARTY:
|
|||||||
MuzzleSequence: muzzle
|
MuzzleSequence: muzzle
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
QuantizedFacings: 32
|
QuantizedFacings: 32
|
||||||
RenderBuilding:
|
|
||||||
RenderVoxels:
|
RenderVoxels:
|
||||||
LightAmbientColor: 0.4, 0.4, 0.4
|
LightAmbientColor: 0.4, 0.4, 0.4
|
||||||
WithVoxelBarrel:
|
WithVoxelBarrel:
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ PROC:
|
|||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 134, 122, 0, -18
|
VisualBounds: 134, 122, 0, -18
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: proc.gdi
|
Image: proc.gdi
|
||||||
FactionImages:
|
FactionImages:
|
||||||
gdi: proc.gdi
|
gdi: proc.gdi
|
||||||
@@ -126,7 +126,6 @@ GASILO:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4c0
|
Range: 4c0
|
||||||
-RenderBuilding:
|
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
Image: gasilo.gdi
|
Image: gasilo.gdi
|
||||||
FactionImages:
|
FactionImages:
|
||||||
@@ -145,7 +144,6 @@ GASILO:
|
|||||||
Amount: -10
|
Amount: -10
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 80, 48, -5, 0
|
VisualBounds: 80, 48, -5, 0
|
||||||
-WithMakeAnimation:
|
|
||||||
|
|
||||||
ANYPOWER:
|
ANYPOWER:
|
||||||
AlwaysVisible:
|
AlwaysVisible:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ NAPULS:
|
|||||||
Amount: -150
|
Amount: -150
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 78, 54, 0, -12
|
VisualBounds: 78, 54, 0, -12
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Image: napuls.gdi
|
Image: napuls.gdi
|
||||||
FactionImages:
|
FactionImages:
|
||||||
gdi: napuls.gdi
|
gdi: napuls.gdi
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ BIGBLUE:
|
|||||||
Inherits: ^BlossomTree
|
Inherits: ^BlossomTree
|
||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Large Blue Tiberium Crystal
|
Name: Large Blue Tiberium Crystal
|
||||||
RenderBuilding:
|
RenderSprites:
|
||||||
Palette: bluetiberium
|
Palette: bluetiberium
|
||||||
RadarColorFromTerrain:
|
RadarColorFromTerrain:
|
||||||
Terrain: BlueTiberium
|
Terrain: BlueTiberium
|
||||||
|
|||||||
Reference in New Issue
Block a user