Introduce a Targetable trait; Subs can attack bridges; May introduce subtle bugs due to previous stupid assumption that !selectable == !attackable.
This commit is contained in:
@@ -119,8 +119,8 @@ namespace OpenRA
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
var underCursor = World.FindUnitsAtMouse(mi.Location)
|
var underCursor = World.FindUnitsAtMouse(mi.Location)
|
||||||
.Where(a => a.Info.Traits.Contains<SelectableInfo>())
|
//.Where(a => a.Info.Traits.Contains<SelectableInfo>())
|
||||||
.OrderByDescending(a => a.Info.Traits.Get<SelectableInfo>().Priority)
|
.OrderByDescending(a => a.Info.Traits.Contains<SelectableInfo>() ? a.Info.Traits.Get<SelectableInfo>().Priority : int.MinValue)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
||||||
return traits.WithInterface<IIssueOrder>()
|
return traits.WithInterface<IIssueOrder>()
|
||||||
|
|||||||
@@ -228,6 +228,7 @@
|
|||||||
<Compile Include="Widgets\ViewportScrollControllerWidget.cs" />
|
<Compile Include="Widgets\ViewportScrollControllerWidget.cs" />
|
||||||
<Compile Include="Traits\Player\DeveloperMode.cs" />
|
<Compile Include="Traits\Player\DeveloperMode.cs" />
|
||||||
<Compile Include="Traits\RevealsShroud.cs" />
|
<Compile Include="Traits\RevealsShroud.cs" />
|
||||||
|
<Compile Include="Traits\Targetable.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ namespace OpenRA.Traits
|
|||||||
{
|
{
|
||||||
public readonly int HP = 0;
|
public readonly int HP = 0;
|
||||||
public readonly ArmorType Armor = ArmorType.none;
|
public readonly ArmorType Armor = ArmorType.none;
|
||||||
public readonly string[] TargetType = {"Ground"};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BuildingInfo : OwnedActorInfo, ITraitInfo
|
public class BuildingInfo : OwnedActorInfo, ITraitInfo
|
||||||
|
|||||||
26
OpenRA.Game/Traits/Targetable.cs
Normal file
26
OpenRA.Game/Traits/Targetable.cs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#region Copyright & License Information
|
||||||
|
/*
|
||||||
|
* Copyright 2007-2010 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 LICENSE.
|
||||||
|
*/
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
using System.Drawing;
|
||||||
|
using OpenRA.Graphics;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace OpenRA.Traits
|
||||||
|
{
|
||||||
|
public class TargetableInfo : TraitInfo<Targetable>
|
||||||
|
{
|
||||||
|
public readonly string[] TargetTypes = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Targetable
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@ using System.Linq;
|
|||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.Orders;
|
using OpenRA.Orders;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace OpenRA.Widgets
|
namespace OpenRA.Widgets
|
||||||
{
|
{
|
||||||
@@ -36,7 +37,7 @@ namespace OpenRA.Widgets
|
|||||||
Game.Renderer.LineRenderer.DrawLine(a + b + c, a + c, Color.White, Color.White);
|
Game.Renderer.LineRenderer.DrawLine(a + b + c, a + c, Color.White, Color.White);
|
||||||
Game.Renderer.LineRenderer.DrawLine(a, a + c, Color.White, Color.White);
|
Game.Renderer.LineRenderer.DrawLine(a, a + c, Color.White, Color.White);
|
||||||
|
|
||||||
foreach (var u in world.SelectActorsInBox(selbox.Value.First, selbox.Value.Second))
|
foreach (var u in SelectActorsInBox(world, selbox.Value.First, selbox.Value.Second))
|
||||||
world.WorldRenderer.DrawSelectionBox(u, Color.Yellow);
|
world.WorldRenderer.DrawSelectionBox(u, Color.Yellow);
|
||||||
|
|
||||||
Game.Renderer.LineRenderer.Flush();
|
Game.Renderer.LineRenderer.Flush();
|
||||||
@@ -60,7 +61,7 @@ namespace OpenRA.Widgets
|
|||||||
{
|
{
|
||||||
if (world.OrderGenerator is UnitOrderGenerator)
|
if (world.OrderGenerator is UnitOrderGenerator)
|
||||||
{
|
{
|
||||||
var newSelection = Game.world.SelectActorsInBox(Game.CellSize * dragStart, Game.CellSize * xy);
|
var newSelection = SelectActorsInBox(world, Game.CellSize * dragStart, Game.CellSize * xy);
|
||||||
world.Selection.Combine(world, newSelection, mi.Modifiers.HasModifier(Modifiers.Shift), dragStart == xy);
|
world.Selection.Combine(world, newSelection, mi.Modifiers.HasModifier(Modifiers.Shift), dragStart == xy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,6 +171,17 @@ namespace OpenRA.Widgets
|
|||||||
Game.viewport.Center(world.Selection.Actors);
|
Game.viewport.Center(world.Selection.Actors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IEnumerable<Actor> SelectActorsInBox(World world, float2 a, float2 b)
|
||||||
|
{
|
||||||
|
return world.FindUnits(a, b)
|
||||||
|
.Where( x => x.traits.Contains<Selectable>() && x.IsVisible() )
|
||||||
|
.GroupBy(x => (x.Owner == world.LocalPlayer) ? x.Info.Traits.Get<SelectableInfo>().Priority : 0)
|
||||||
|
.OrderByDescending(g => g.Key)
|
||||||
|
.Select( g => g.AsEnumerable() )
|
||||||
|
.DefaultIfEmpty( new Actor[] {} )
|
||||||
|
.FirstOrDefault();
|
||||||
|
}
|
||||||
|
|
||||||
public override Widget Clone() { return new WorldInteractionControllerWidget(this); }
|
public override Widget Clone() { return new WorldInteractionControllerWidget(this); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,17 +81,6 @@ namespace OpenRA
|
|||||||
if (r * r >= (new int2(i, j) - a).LengthSquared)
|
if (r * r >= (new int2(i, j) - a).LengthSquared)
|
||||||
yield return new int2(i, j);
|
yield return new int2(i, j);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IEnumerable<Actor> SelectActorsInBox(this World world, float2 a, float2 b)
|
|
||||||
{
|
|
||||||
return world.FindUnits(a, b)
|
|
||||||
.Where( x => x.traits.Contains<Selectable>() && x.IsVisible() )
|
|
||||||
.GroupBy(x => (x.Owner == world.LocalPlayer) ? x.Info.Traits.Get<SelectableInfo>().Priority : 0)
|
|
||||||
.OrderByDescending(g => g.Key)
|
|
||||||
.Select( g => g.AsEnumerable() )
|
|
||||||
.DefaultIfEmpty( new Actor[] {} )
|
|
||||||
.FirstOrDefault();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetTerrainType(this World world, int2 cell)
|
public static string GetTerrainType(this World world, int2 cell)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ namespace OpenRA.Mods.RA
|
|||||||
if (!WeaponValidForTarget(args.weapon, Target.FromActor(target))) return 0f;
|
if (!WeaponValidForTarget(args.weapon, Target.FromActor(target))) return 0f;
|
||||||
|
|
||||||
var selectable = target.Info.Traits.GetOrDefault<SelectableInfo>();
|
var selectable = target.Info.Traits.GetOrDefault<SelectableInfo>();
|
||||||
var radius = selectable != null ? selectable.Radius : 0;
|
var radius = selectable != null ? selectable.Radius : 0;
|
||||||
var distance = (int)Math.Max(0, (target.CenterLocation - args.dest).Length - radius);
|
var distance = (int)Math.Max(0, (target.CenterLocation - args.dest).Length - radius);
|
||||||
var falloff = (float)GetDamageFalloff(distance / warhead.Spread);
|
var falloff = (float)GetDamageFalloff(distance / warhead.Spread);
|
||||||
var rawDamage = (float)(warhead.Damage * modifier * falloff);
|
var rawDamage = (float)(warhead.Damage * modifier * falloff);
|
||||||
@@ -167,13 +167,11 @@ namespace OpenRA.Mods.RA
|
|||||||
|| (weapon.ValidTargets.Contains("Water") &&
|
|| (weapon.ValidTargets.Contains("Water") &&
|
||||||
Game.world.GetTerrainType(Util.CellContaining(target.CenterLocation)) == "Water"); // even bigger hack!
|
Game.world.GetTerrainType(Util.CellContaining(target.CenterLocation)) == "Water"); // even bigger hack!
|
||||||
|
|
||||||
var ownedInfo = target.Actor.Info.Traits.GetOrDefault<OwnedActorInfo>();
|
var targetable = target.Actor.Info.Traits.GetOrDefault<TargetableInfo>();
|
||||||
|
if (targetable == null || !weapon.ValidTargets.Intersect(targetable.TargetTypes).Any())
|
||||||
|
|
||||||
|
|
||||||
if (!weapon.ValidTargets.Intersect(ownedInfo.TargetType).Any())
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
var ownedInfo = target.Actor.Info.Traits.GetOrDefault<OwnedActorInfo>();
|
||||||
if (weapon.Warheads.All( w => w.EffectivenessAgainst(ownedInfo.Armor) <= 0))
|
if (weapon.Warheads.All( w => w.EffectivenessAgainst(ownedInfo.Armor) <= 0))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
@@ -104,9 +104,9 @@ namespace OpenRA.Mods.RA
|
|||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
var underCursor = world.FindUnitsAtMouse(mi.Location)
|
var underCursor = world.FindUnitsAtMouse(mi.Location)
|
||||||
.Where(a => a.Info.Traits.Contains<SelectableInfo>())
|
//.Where(a => a.Info.Traits.Contains<SelectableInfo>())
|
||||||
.OrderByDescending(a => a.Info.Traits.Get<SelectableInfo>().Priority)
|
.OrderByDescending(a => a.Info.Traits.Contains<SelectableInfo>() ? a.Info.Traits.Get<SelectableInfo>().Priority : int.MinValue)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
||||||
if (mi.Button == MouseButton.Right && underCursor == null)
|
if (mi.Button == MouseButton.Right && underCursor == null)
|
||||||
|
|||||||
@@ -165,8 +165,6 @@ BRIDGE1:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: ____ ____ ____ ____
|
Footprint: ____ ____ ____ ____
|
||||||
Dimensions: 4,4
|
Dimensions: 4,4
|
||||||
# Selectable:
|
|
||||||
# Bounds: 96,96
|
|
||||||
|
|
||||||
BRIDGE2:
|
BRIDGE2:
|
||||||
Inherits: ^Bridge
|
Inherits: ^Bridge
|
||||||
@@ -176,8 +174,6 @@ BRIDGE2:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: _____ _____ _____ _____ _____
|
Footprint: _____ _____ _____ _____ _____
|
||||||
Dimensions: 5,5
|
Dimensions: 5,5
|
||||||
# Selectable:
|
|
||||||
# Bounds: 120,120
|
|
||||||
|
|
||||||
BRIDGE3:
|
BRIDGE3:
|
||||||
Inherits: ^Bridge
|
Inherits: ^Bridge
|
||||||
@@ -187,8 +183,6 @@ BRIDGE3:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: ______ ______ ______ ______ ______
|
Footprint: ______ ______ ______ ______ ______
|
||||||
Dimensions: 6,5
|
Dimensions: 6,5
|
||||||
# Selectable:
|
|
||||||
# Bounds: 144,120
|
|
||||||
|
|
||||||
BRIDGE4:
|
BRIDGE4:
|
||||||
Inherits: ^Bridge
|
Inherits: ^Bridge
|
||||||
@@ -198,5 +192,3 @@ BRIDGE4:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: ______ ______ ______ ______
|
Footprint: ______ ______ ______ ______
|
||||||
Dimensions: 6,4
|
Dimensions: 6,4
|
||||||
# Selectable:
|
|
||||||
# Bounds: 144,96
|
|
||||||
@@ -7,6 +7,8 @@
|
|||||||
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 50%, 40%, 0%
|
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 50%, 40%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: VehicleVoice
|
Voice: VehicleVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Repairable:
|
Repairable:
|
||||||
Chronoshiftable:
|
Chronoshiftable:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -26,6 +28,8 @@
|
|||||||
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 70%, 70%, 0%
|
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 70%, 70%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: VehicleVoice
|
Voice: VehicleVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Repairable:
|
Repairable:
|
||||||
Chronoshiftable:
|
Chronoshiftable:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -38,7 +42,8 @@
|
|||||||
^Helicopter:
|
^Helicopter:
|
||||||
Category: Plane
|
Category: Plane
|
||||||
Unit:
|
Unit:
|
||||||
TargetType: Air
|
Targetable:
|
||||||
|
TargetTypes: Air
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: VehicleVoice
|
Voice: VehicleVoice
|
||||||
HiddenUnderFog:
|
HiddenUnderFog:
|
||||||
@@ -60,6 +65,8 @@
|
|||||||
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 90%, 80%, 0%
|
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 90%, 80%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: GenericVoice
|
Voice: GenericVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
RenderInfantry:
|
RenderInfantry:
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -73,9 +80,10 @@
|
|||||||
^Plane:
|
^Plane:
|
||||||
Category: Plane
|
Category: Plane
|
||||||
Unit:
|
Unit:
|
||||||
TargetType: Air
|
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: GenericVoice
|
Voice: GenericVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Air
|
||||||
HiddenUnderFog:
|
HiddenUnderFog:
|
||||||
GainsExperience:
|
GainsExperience:
|
||||||
GivesExperience:
|
GivesExperience:
|
||||||
@@ -85,6 +93,8 @@
|
|||||||
Category: Building
|
Category: Building
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 3
|
Priority: 3
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Building:
|
Building:
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
@@ -186,11 +196,10 @@
|
|||||||
Category: Building
|
Category: Building
|
||||||
Valued:
|
Valued:
|
||||||
Description: Bridge
|
Description: Bridge
|
||||||
Selectable:
|
Targetable:
|
||||||
Bounds: 96,96
|
TargetTypes: Ground, Water
|
||||||
BelowUnits:
|
BelowUnits:
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
DamagedSound: xplos.aud
|
DamagedSound: xplos.aud
|
||||||
DestroyedSound: xplobig4.aud
|
DestroyedSound: xplobig4.aud
|
||||||
Footprint: ______ ______ ______ ______
|
Footprint: ______ ______ ______ ______
|
||||||
|
|||||||
@@ -463,7 +463,6 @@ C17:
|
|||||||
LZRange: 1
|
LZRange: 1
|
||||||
Inherits: ^Plane
|
Inherits: ^Plane
|
||||||
Unit:
|
Unit:
|
||||||
TargetType: Special
|
|
||||||
HP: 25
|
HP: 25
|
||||||
Armor: light
|
Armor: light
|
||||||
ROT: 5
|
ROT: 5
|
||||||
@@ -475,6 +474,7 @@ C17:
|
|||||||
Passengers: 10
|
Passengers: 10
|
||||||
Invulnerable:
|
Invulnerable:
|
||||||
-Selectable:
|
-Selectable:
|
||||||
|
-Targetable:
|
||||||
-GainsExperience:
|
-GainsExperience:
|
||||||
|
|
||||||
A10:
|
A10:
|
||||||
|
|||||||
@@ -164,8 +164,7 @@ BRIDGE1:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: _____ _____ _____
|
Footprint: _____ _____ _____
|
||||||
Dimensions: 5,3
|
Dimensions: 5,3
|
||||||
# Selectable:
|
|
||||||
# Bounds: 120,48
|
|
||||||
BRIDGE2:
|
BRIDGE2:
|
||||||
Inherits: ^Bridge
|
Inherits: ^Bridge
|
||||||
Bridge:
|
Bridge:
|
||||||
@@ -175,5 +174,3 @@ BRIDGE2:
|
|||||||
Building:
|
Building:
|
||||||
Footprint: _____ _____
|
Footprint: _____ _____
|
||||||
Dimensions: 5,2
|
Dimensions: 5,2
|
||||||
# Selectable:
|
|
||||||
# Bounds: 120,48
|
|
||||||
@@ -8,6 +8,8 @@
|
|||||||
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 90%, 40%, 0%
|
TerrainSpeeds: 60%, 40%, 100%, 0%, 0%, 0%, 0%, 90%, 40%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: VehicleVoice
|
Voice: VehicleVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Repairable:
|
Repairable:
|
||||||
Chronoshiftable:
|
Chronoshiftable:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -27,6 +29,8 @@
|
|||||||
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 90%, 70%, 0%
|
TerrainSpeeds: 80%, 70%, 100%, 0%, 0%, 0%, 0%, 90%, 70%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: VehicleVoice
|
Voice: VehicleVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Repairable:
|
Repairable:
|
||||||
Chronoshiftable:
|
Chronoshiftable:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -48,6 +52,8 @@
|
|||||||
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 100%, 80%, 0%
|
TerrainSpeeds: 90%, 80%, 100%, 0%, 0%, 0%, 0%, 100%, 80%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: GenericVoice
|
Voice: GenericVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
RenderInfantry:
|
RenderInfantry:
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
Passenger:
|
Passenger:
|
||||||
@@ -60,12 +66,13 @@
|
|||||||
^Ship:
|
^Ship:
|
||||||
Category: Ship
|
Category: Ship
|
||||||
Unit:
|
Unit:
|
||||||
TargetType: Ground, Water
|
|
||||||
Mobile:
|
Mobile:
|
||||||
TerrainTypes: Clear, Rough, Road, Tree, Water, Rock, Wall, Ore, Beach, River
|
TerrainTypes: Clear, Rough, Road, Tree, Water, Rock, Wall, Ore, Beach, River
|
||||||
TerrainSpeeds: 0%, 0%, 0%, 0%, 100%, 0%, 0%, 0%, 0%, 0%
|
TerrainSpeeds: 0%, 0%, 0%, 0%, 100%, 0%, 0%, 0%, 0%, 0%
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: ShipVoice
|
Voice: ShipVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
HiddenUnderFog:
|
HiddenUnderFog:
|
||||||
GainsExperience:
|
GainsExperience:
|
||||||
GivesExperience:
|
GivesExperience:
|
||||||
@@ -74,9 +81,10 @@
|
|||||||
^Plane:
|
^Plane:
|
||||||
Category: Plane
|
Category: Plane
|
||||||
Unit:
|
Unit:
|
||||||
TargetType: Air
|
|
||||||
Selectable:
|
Selectable:
|
||||||
Voice: GenericVoice
|
Voice: GenericVoice
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Air
|
||||||
HiddenUnderFog:
|
HiddenUnderFog:
|
||||||
GainsExperience:
|
GainsExperience:
|
||||||
GivesExperience:
|
GivesExperience:
|
||||||
@@ -86,6 +94,8 @@
|
|||||||
Category: Building
|
Category: Building
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 3
|
Priority: 3
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
Building:
|
Building:
|
||||||
Dimensions: 1,1
|
Dimensions: 1,1
|
||||||
Footprint: x
|
Footprint: x
|
||||||
@@ -114,6 +124,8 @@
|
|||||||
Range: 8
|
Range: 8
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: 1
|
Priority: 1
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground
|
||||||
RenderBuildingWall:
|
RenderBuildingWall:
|
||||||
HasMakeAnimation: false
|
HasMakeAnimation: false
|
||||||
Palette: terrain
|
Palette: terrain
|
||||||
@@ -154,7 +166,6 @@
|
|||||||
Speed: 0
|
Speed: 0
|
||||||
HP: 140
|
HP: 140
|
||||||
Armor: Heavy
|
Armor: Heavy
|
||||||
TargetType: Special
|
|
||||||
Husk:
|
Husk:
|
||||||
Selectable:
|
Selectable:
|
||||||
Priority: -1
|
Priority: -1
|
||||||
@@ -165,11 +176,10 @@
|
|||||||
Category: Building
|
Category: Building
|
||||||
Valued:
|
Valued:
|
||||||
Description: Bridge
|
Description: Bridge
|
||||||
# Selectable:
|
|
||||||
# Bounds: 96,48
|
|
||||||
BelowUnits:
|
BelowUnits:
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
Footprint: ____ ____
|
Footprint: ____ ____
|
||||||
Dimensions: 4,2
|
Dimensions: 4,2
|
||||||
HP: 1000
|
HP: 1000
|
||||||
|
|||||||
@@ -59,8 +59,9 @@ SPEN:
|
|||||||
Description: Sub Pen
|
Description: Sub Pen
|
||||||
LongDesc: Produces and repairs submarines and \ntransports
|
LongDesc: Produces and repairs submarines and \ntransports
|
||||||
Hotkey: s
|
Hotkey: s
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
Power: -30
|
Power: -30
|
||||||
Footprint: xxx xxx xxx
|
Footprint: xxx xxx xxx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
@@ -89,8 +90,9 @@ SYRD:
|
|||||||
Description: Shipyard
|
Description: Shipyard
|
||||||
LongDesc: Produces and repairs ships
|
LongDesc: Produces and repairs ships
|
||||||
Hotkey: s
|
Hotkey: s
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
Power: -30
|
Power: -30
|
||||||
Footprint: xxx xxx xxx
|
Footprint: xxx xxx xxx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
@@ -794,8 +796,9 @@ SYRF:
|
|||||||
# Description: Fake Shipyard
|
# Description: Fake Shipyard
|
||||||
# LongDesc: Looks like a Shipyard
|
# LongDesc: Looks like a Shipyard
|
||||||
# Hotkey: z
|
# Hotkey: z
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
Power: -2
|
Power: -2
|
||||||
Footprint: xxx xxx xxx
|
Footprint: xxx xxx xxx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
@@ -813,8 +816,9 @@ SYRF:
|
|||||||
|
|
||||||
SPEF:
|
SPEF:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
|
Targetable:
|
||||||
|
TargetTypes: Ground, Water
|
||||||
Building:
|
Building:
|
||||||
TargetType: Ground, Water
|
|
||||||
Power: -2
|
Power: -2
|
||||||
Footprint: xxx xxx xxx
|
Footprint: xxx xxx xxx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
|
|||||||
@@ -185,7 +185,6 @@ MINP:
|
|||||||
AvoidFriendly: yes
|
AvoidFriendly: yes
|
||||||
Unit:
|
Unit:
|
||||||
HP: 1
|
HP: 1
|
||||||
TargetType: special
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
BelowUnits:
|
BelowUnits:
|
||||||
InvisibleToOthers:
|
InvisibleToOthers:
|
||||||
@@ -198,7 +197,6 @@ MINV:
|
|||||||
AvoidFriendly: yes
|
AvoidFriendly: yes
|
||||||
Unit:
|
Unit:
|
||||||
HP: 1
|
HP: 1
|
||||||
TargetType: special
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
BelowUnits:
|
BelowUnits:
|
||||||
InvisibleToOthers:
|
InvisibleToOthers:
|
||||||
@@ -252,14 +250,12 @@ CAMERA:
|
|||||||
Aircraft:
|
Aircraft:
|
||||||
Unit:
|
Unit:
|
||||||
HP:1000
|
HP:1000
|
||||||
TargetType: special
|
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 10
|
Range: 10
|
||||||
|
|
||||||
FLARE:
|
FLARE:
|
||||||
Unit:
|
Unit:
|
||||||
HP:1000
|
HP:1000
|
||||||
TargetType: special
|
|
||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 3
|
Range: 3
|
||||||
RenderFlare:
|
RenderFlare:
|
||||||
|
|||||||
Reference in New Issue
Block a user