Merge pull request #3633 from pchote/frozen-polish

Clean up loose ends with fog and lobby options.
This commit is contained in:
Matthias Mailänder
2013-08-04 01:35:48 -07:00
32 changed files with 385 additions and 126 deletions

View File

@@ -26,6 +26,7 @@ namespace OpenRA.FileFormats
public readonly Dictionary<string, string> Packages; public readonly Dictionary<string, string> Packages;
public readonly MiniYaml LoadScreen; public readonly MiniYaml LoadScreen;
public readonly MiniYaml LobbyDefaults;
public readonly Dictionary<string, Pair<string,int>> Fonts; public readonly Dictionary<string, Pair<string,int>> Fonts;
public readonly int TileSize = 24; public readonly int TileSize = 24;
@@ -57,6 +58,7 @@ namespace OpenRA.FileFormats
PackageContents = YamlList(yaml, "PackageContents"); PackageContents = YamlList(yaml, "PackageContents");
LoadScreen = yaml["LoadScreen"]; LoadScreen = yaml["LoadScreen"];
LobbyDefaults = yaml["LobbyDefaults"];
Fonts = yaml["Fonts"].NodesDict.ToDictionary(x => x.Key, Fonts = yaml["Fonts"].NodesDict.ToDictionary(x => x.Key,
x => Pair.New(x.Value.NodesDict["Font"].Value, x => Pair.New(x.Value.NodesDict["Font"].Value,
int.Parse(x.Value.NodesDict["Size"].Value))); int.Parse(x.Value.NodesDict["Size"].Value)));

View File

@@ -15,8 +15,8 @@ namespace OpenRA.Graphics
{ {
public class ShroudRenderer public class ShroudRenderer
{ {
World world;
Map map; Map map;
ShroudInfo shroudInfo;
Sprite[] shadowBits = Game.modData.SpriteLoader.LoadAllSprites("shadow"); Sprite[] shadowBits = Game.modData.SpriteLoader.LoadAllSprites("shadow");
Sprite[,] sprites, fogSprites; Sprite[,] sprites, fogSprites;
int shroudHash; int shroudHash;
@@ -46,8 +46,8 @@ namespace OpenRA.Graphics
public ShroudRenderer(World world) public ShroudRenderer(World world)
{ {
this.world = world;
this.map = world.Map; this.map = world.Map;
shroudInfo = Rules.Info["player"].Traits.Get<ShroudInfo>();
sprites = new Sprite[map.MapSize.X, map.MapSize.Y]; sprites = new Sprite[map.MapSize.X, map.MapSize.Y];
fogSprites = new Sprite[map.MapSize.X, map.MapSize.Y]; fogSprites = new Sprite[map.MapSize.X, map.MapSize.Y];
@@ -152,9 +152,10 @@ namespace OpenRA.Graphics
{ {
if (initializePalettes) if (initializePalettes)
{ {
if (shroudInfo.Fog) if (world.LobbyInfo.GlobalSettings.Fog)
fogPalette = wr.Palette("fog"); fogPalette = wr.Palette("fog");
shroudPalette = wr.Palette("shroud");
shroudPalette = world.LobbyInfo.GlobalSettings.Fog ? wr.Palette("shroud") : wr.Palette("shroudfog");
initializePalettes = false; initializePalettes = false;
} }
@@ -165,7 +166,7 @@ namespace OpenRA.Graphics
// We draw the shroud when disabled to hide the sharp map edges // We draw the shroud when disabled to hide the sharp map edges
DrawShroud(wr, clipRect, sprites, shroudPalette); DrawShroud(wr, clipRect, sprites, shroudPalette);
if (shroudInfo.Fog) if (world.LobbyInfo.GlobalSettings.Fog)
DrawShroud(wr, clipRect, fogSprites, fogPalette); DrawShroud(wr, clipRect, fogSprites, fogPalette);
} }

View File

@@ -92,7 +92,9 @@ namespace OpenRA.Network
public bool Dedicated; public bool Dedicated;
public string Difficulty; public string Difficulty;
public bool Crates = true; public bool Crates = true;
public string StartingUnitsClass = "default"; public bool Shroud = true;
public bool Fog = true;
public string StartingUnitsClass = "none";
public bool AllowVersionMismatch; public bool AllowVersionMismatch;
} }

View File

@@ -106,6 +106,7 @@ namespace OpenRA.Server
lobbyInfo.GlobalSettings.Map = settings.Map; lobbyInfo.GlobalSettings.Map = settings.Map;
lobbyInfo.GlobalSettings.ServerName = settings.Name; lobbyInfo.GlobalSettings.ServerName = settings.Name;
lobbyInfo.GlobalSettings.Dedicated = settings.Dedicated; lobbyInfo.GlobalSettings.Dedicated = settings.Dedicated;
FieldLoader.Load(lobbyInfo.GlobalSettings, modData.Manifest.LobbyDefaults);
foreach (var t in ServerTraits.WithInterface<INotifyServerStart>()) foreach (var t in ServerTraits.WithInterface<INotifyServerStart>())
t.ServerStarted(this); t.ServerStarted(this);
@@ -526,7 +527,10 @@ namespace OpenRA.Server
DispatchOrders(toDrop, toDrop.MostRecentFrame, new byte[] {0xbf}); DispatchOrders(toDrop, toDrop.MostRecentFrame, new byte[] {0xbf});
if (!conns.Any()) if (!conns.Any())
{
FieldLoader.Load(lobbyInfo.GlobalSettings, ModData.Manifest.LobbyDefaults);
TempBans.Clear(); TempBans.Clear();
}
if (conns.Any() || lobbyInfo.GlobalSettings.Dedicated) if (conns.Any() || lobbyInfo.GlobalSettings.Dedicated)
SyncLobbyInfo(); SyncLobbyInfo();

View File

@@ -64,6 +64,8 @@ namespace OpenRA.Traits
public interface IValidateOrder { bool OrderValidation(OrderManager orderManager, World world, int clientId, Order order); } public interface IValidateOrder { bool OrderValidation(OrderManager orderManager, World world, int clientId, Order order); }
public interface IOrderVoice { string VoicePhraseForOrder(Actor self, Order order); } public interface IOrderVoice { string VoicePhraseForOrder(Actor self, Order order); }
public interface INotify { void Play(Player p, string notification); } public interface INotify { void Play(Player p, string notification); }
public interface INotifyAddedToWorld { void AddedToWorld(Actor self); }
public interface INotifyRemovedFromWorld { void RemovedFromWorld(Actor self); }
public interface INotifySold { void Selling(Actor self); void Sold(Actor self); } public interface INotifySold { void Selling(Actor self); void Sold(Actor self); }
public interface INotifyDamage { void Damaged(Actor self, AttackInfo e); } public interface INotifyDamage { void Damaged(Actor self, AttackInfo e); }
public interface INotifyDamageStateChanged { void DamageStateChanged(Actor self, AttackInfo e); } public interface INotifyDamageStateChanged { void DamageStateChanged(Actor self, AttackInfo e); }

View File

@@ -18,14 +18,11 @@ namespace OpenRA.Traits
{ {
public class ShroudInfo : ITraitInfo public class ShroudInfo : ITraitInfo
{ {
public readonly bool Shroud = true; public object Create(ActorInitializer init) { return new Shroud(init.self); }
public readonly bool Fog = true;
public object Create(ActorInitializer init) { return new Shroud(init.self, this); }
} }
public class Shroud public class Shroud
{ {
public ShroudInfo Info;
Actor self; Actor self;
Map map; Map map;
@@ -42,9 +39,8 @@ namespace OpenRA.Traits
public int Hash { get; private set; } public int Hash { get; private set; }
public Shroud(Actor self, ShroudInfo info) public Shroud(Actor self)
{ {
Info = info;
this.self = self; this.self = self;
map = self.World.Map; map = self.World.Map;
@@ -58,7 +54,7 @@ namespace OpenRA.Traits
self.World.ActorAdded += AddShroudGeneration; self.World.ActorAdded += AddShroudGeneration;
self.World.ActorRemoved += RemoveShroudGeneration; self.World.ActorRemoved += RemoveShroudGeneration;
if (!info.Shroud) if (!self.World.LobbyInfo.GlobalSettings.Shroud)
ExploredBounds = map.Bounds; ExploredBounds = map.Bounds;
} }
@@ -252,7 +248,7 @@ namespace OpenRA.Traits
if (!map.IsInMap(x, y)) if (!map.IsInMap(x, y))
return false; return false;
if (!Info.Shroud) if (!self.World.LobbyInfo.GlobalSettings.Shroud)
return true; return true;
return explored[x, y] && (generatedShroudCount[x, y] == 0 || visibleCount[x, y] > 0); return explored[x, y] && (generatedShroudCount[x, y] == 0 || visibleCount[x, y] > 0);
@@ -271,7 +267,7 @@ namespace OpenRA.Traits
if (x < 0 || x >= map.MapSize.X || y < 0 || y >= map.MapSize.Y) if (x < 0 || x >= map.MapSize.X || y < 0 || y >= map.MapSize.Y)
return false; return false;
if (!Info.Fog) if (!self.World.LobbyInfo.GlobalSettings.Fog)
return true; return true;
return visibleCount[x, y] > 0; return visibleCount[x, y] > 0;

View File

@@ -159,6 +159,9 @@ namespace OpenRA
a.IsInWorld = true; a.IsInWorld = true;
actors.Add(a); actors.Add(a);
ActorAdded(a); ActorAdded(a);
foreach (var t in a.TraitsImplementing<INotifyAddedToWorld>())
t.AddedToWorld(a);
} }
public void Remove(Actor a) public void Remove(Actor a)
@@ -166,7 +169,9 @@ namespace OpenRA
a.IsInWorld = false; a.IsInWorld = false;
actors.Remove(a); actors.Remove(a);
ActorRemoved(a); ActorRemoved(a);
foreach (var t in a.TraitsImplementing<INotifyRemovedFromWorld>())
t.RemovedFromWorld(a);
} }
public void Add(IEffect b) { effects.Add(b); } public void Add(IEffect b) { effects.Add(b); }

View File

@@ -20,72 +20,40 @@ namespace OpenRA.Mods.RA.Buildings
{ {
class BibLayerInfo : ITraitInfo class BibLayerInfo : ITraitInfo
{ {
public readonly string[] BibTypes = { "bib3", "bib2", "bib1" }; public object Create(ActorInitializer init) { return new BibLayer(init.self); }
public readonly int[] BibWidths = { 2, 3, 4 };
public readonly bool FrozenUnderFog = false;
public object Create(ActorInitializer init) { return new BibLayer(init.self, this); }
} }
struct CachedBib struct CachedBib
{ {
public Dictionary<CPos, TileReference<byte, byte>> Tiles; public Dictionary<CPos, Sprite> Tiles;
public IEnumerable<CPos> Footprint; public IEnumerable<CPos> Footprint;
public bool Visible; public bool Visible;
public bool Immediate;
} }
class BibLayer : IRenderOverlay, IWorldLoaded, ITickRender class BibLayer : IRenderOverlay, ITickRender
{ {
World world; World world;
BibLayerInfo info;
Dictionary<Actor, CachedBib> visible; Dictionary<Actor, CachedBib> visible;
Dictionary<Actor, CachedBib> dirty; Dictionary<Actor, CachedBib> dirty;
Sprite[][] bibSprites; Cache<string, Sprite[]> sprites;
public BibLayer(Actor self, BibLayerInfo info) public BibLayer(Actor self)
{ {
this.info = info; world = self.World;
bibSprites = info.BibTypes.Select(x => Game.modData.SpriteLoader.LoadAllSprites(x)).ToArray();
self.World.ActorAdded += a => DoBib(a, true);
self.World.ActorRemoved += a => DoBib(a, false);
}
public void WorldLoaded(World w)
{
world = w;
visible = new Dictionary<Actor, CachedBib>(); visible = new Dictionary<Actor, CachedBib>();
dirty = new Dictionary<Actor, CachedBib>(); dirty = new Dictionary<Actor, CachedBib>();
sprites = new Cache<string, Sprite[]>(x => Game.modData.SpriteLoader.LoadAllSprites(x));
} }
public void DoBib(Actor b, bool isAdd) public void Update(Actor a, CachedBib bib)
{ {
if (!b.HasTrait<Bib>()) dirty[a] = bib;
return; }
var buildingInfo = b.Info.Traits.Get<BuildingInfo>(); public Sprite[] LoadSprites(string bibType)
var size = buildingInfo.Dimensions.X; {
var bibOffset = buildingInfo.Dimensions.Y - 1; return sprites[bibType];
var bib = Array.IndexOf(info.BibWidths, size);
if (bib < 0)
{
Log.Write("debug", "Cannot bib {0}-wide building {1}", size, b.Info.Name);
return;
}
dirty[b] = new CachedBib()
{
Footprint = FootprintUtils.Tiles(b),
Tiles = new Dictionary<CPos, TileReference<byte, byte>>(),
Visible = isAdd
};
for (var i = 0; i < 2 * size; i++)
{
var cell = b.Location + new CVec(i % size, i / size + bibOffset);
var tile = new TileReference<byte, byte>((byte)(bib + 1), (byte) i);
dirty[b].Tiles.Add(cell, tile);
}
} }
public void TickRender(WorldRenderer wr, Actor self) public void TickRender(WorldRenderer wr, Actor self)
@@ -93,7 +61,7 @@ namespace OpenRA.Mods.RA.Buildings
var remove = new List<Actor>(); var remove = new List<Actor>();
foreach (var kv in dirty) foreach (var kv in dirty)
{ {
if (!info.FrozenUnderFog || kv.Value.Footprint.Any(c => !self.World.FogObscures(c))) if (kv.Value.Immediate || kv.Value.Footprint.Any(c => !self.World.FogObscures(c)))
{ {
if (kv.Value.Visible) if (kv.Value.Visible)
visible[kv.Key] = kv.Value; visible[kv.Key] = kv.Value;
@@ -119,16 +87,68 @@ namespace OpenRA.Mods.RA.Buildings
{ {
if (!cliprect.Contains(kv.Key.X, kv.Key.Y)) if (!cliprect.Contains(kv.Key.X, kv.Key.Y))
continue; continue;
if (world.ShroudObscures(kv.Key)) if (world.ShroudObscures(kv.Key))
continue; continue;
var tile = bibSprites[kv.Value.type - 1][kv.Value.index]; kv.Value.DrawAt(wr.ScreenPxPosition(kv.Key.CenterPosition) - 0.5f * kv.Value.size, pal);
tile.DrawAt(wr.ScreenPxPosition(kv.Key.CenterPosition) - 0.5f * tile.size, pal);
} }
} }
} }
} }
public class BibInfo : TraitInfo<Bib>, Requires<BuildingInfo> { } public class BibInfo : ITraitInfo, Requires<BuildingInfo>
public class Bib { } {
public readonly string Sprite = "bib3";
public object Create(ActorInitializer init) { return new Bib(init.self, this); }
}
public class Bib : INotifyAddedToWorld, INotifyRemovedFromWorld
{
readonly BibInfo info;
readonly BibLayer bibLayer;
bool firstAdd;
public Bib(Actor self, BibInfo info)
{
this.info = info;
bibLayer = self.World.WorldActor.Trait<BibLayer>();
firstAdd = true;
}
void DoBib(Actor self, bool add)
{
var buildingInfo = self.Info.Traits.Get<BuildingInfo>();
var size = buildingInfo.Dimensions.X;
var bibOffset = buildingInfo.Dimensions.Y - 1;
var sprites = bibLayer.LoadSprites(info.Sprite);
if (sprites.Length != 2*size)
throw new InvalidOperationException("{0} is an invalid bib for a {1}-wide building".F(info.Sprite, size));
var immediate = !self.HasTrait<FrozenUnderFog>() ||
(firstAdd && self.Info.Traits.GetOrDefault<FrozenUnderFogInfo>().StartsRevealed);
var dirty = new CachedBib()
{
Footprint = FootprintUtils.Tiles(self),
Tiles = new Dictionary<CPos, Sprite>(),
Visible = add,
Immediate = immediate
};
for (var i = 0; i < 2 * size; i++)
{
var cell = self.Location + new CVec(i % size, i / size + bibOffset);
dirty.Tiles.Add(cell, sprites[i]);
}
firstAdd = false;
bibLayer.Update(self, dirty);
}
public void AddedToWorld(Actor self) { DoBib(self, true); }
public void RemovedFromWorld(Actor self) { DoBib(self, false); }
}
} }

View File

@@ -36,6 +36,7 @@ namespace OpenRA.Mods.RA
{ {
var td = new TypeDictionary var td = new TypeDictionary
{ {
new ParentActorInit(self),
new LocationInit(self.Location), new LocationInit(self.Location),
new CenterLocationInit(self.CenterLocation), new CenterLocationInit(self.CenterLocation),
new OwnerInit(self.Owner), new OwnerInit(self.Owner),

View File

@@ -15,7 +15,7 @@ namespace OpenRA.Mods.RA
{ {
public class MPStartUnitsInfo : TraitInfo<MPStartUnits> public class MPStartUnitsInfo : TraitInfo<MPStartUnits>
{ {
public readonly string Class = "default"; public readonly string Class = "none";
public readonly string[] Races = { }; public readonly string[] Races = { };
public readonly string BaseActor = null; public readonly string BaseActor = null;

View File

@@ -19,20 +19,25 @@ namespace OpenRA.Mods.RA
{ {
public class FrozenUnderFogInfo : ITraitInfo, Requires<BuildingInfo>, Requires<RenderSpritesInfo> public class FrozenUnderFogInfo : ITraitInfo, Requires<BuildingInfo>, Requires<RenderSpritesInfo>
{ {
public object Create(ActorInitializer init) { return new FrozenUnderFog(init.self); } public readonly bool StartsRevealed = false;
public object Create(ActorInitializer init) { return new FrozenUnderFog(init, this); }
} }
public class FrozenUnderFog : IRenderModifier, IVisibilityModifier, ITickRender public class FrozenUnderFog : IRenderModifier, IVisibilityModifier, ITickRender
{ {
FrozenActorProxy proxy; FrozenActorProxy proxy;
IEnumerable<CPos> footprint; IEnumerable<CPos> footprint;
bool visible; bool visible, cacheFirstFrame;
public FrozenUnderFog(Actor self) public FrozenUnderFog(ActorInitializer init, FrozenUnderFogInfo info)
{ {
footprint = FootprintUtils.Tiles(self); footprint = FootprintUtils.Tiles(init.self);
proxy = new FrozenActorProxy(self, footprint); proxy = new FrozenActorProxy(init.self, footprint);
self.World.AddFrameEndTask(w => w.Add(proxy)); init.world.AddFrameEndTask(w => w.Add(proxy));
// Spawned actors (e.g. building husks) shouldn't be revealed
cacheFirstFrame = info.StartsRevealed && !init.Contains<ParentActorInit>();
} }
public bool IsVisible(Actor self, Player byPlayer) public bool IsVisible(Actor self, Player byPlayer)
@@ -46,6 +51,13 @@ namespace OpenRA.Mods.RA
return; return;
visible = IsVisible(self, self.World.RenderPlayer); visible = IsVisible(self, self.World.RenderPlayer);
if (cacheFirstFrame)
{
visible = true;
cacheFirstFrame = false;
}
if (visible) if (visible)
proxy.SetRenderables(self.Render(wr)); proxy.SetRenderables(self.Render(wr));
} }

View File

@@ -326,6 +326,32 @@ namespace OpenRA.Mods.RA.Server
server.SyncLobbyInfo(); server.SyncLobbyInfo();
return true; return true;
}}, }},
{ "shroud",
s =>
{
if (!client.IsAdmin)
{
server.SendOrderTo(conn, "Message", "Only the host can set that option");
return true;
}
bool.TryParse(s, out server.lobbyInfo.GlobalSettings.Shroud);
server.SyncLobbyInfo();
return true;
}},
{ "fog",
s =>
{
if (!client.IsAdmin)
{
server.SendOrderTo(conn, "Message", "Only the host can set that option");
return true;
}
bool.TryParse(s, out server.lobbyInfo.GlobalSettings.Fog);
server.SyncLobbyInfo();
return true;
}},
{ "assignteams", { "assignteams",
s => s =>
{ {

View File

@@ -327,7 +327,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var classNames = new Dictionary<string,string>() var classNames = new Dictionary<string,string>()
{ {
{"none", "MCV Only"}, {"none", "MCV Only"},
{"default", "Light Support"}, {"light", "Light Support"},
{"heavy", "Heavy Support"}, {"heavy", "Heavy Support"},
}; };
@@ -360,6 +360,24 @@ namespace OpenRA.Mods.RA.Widgets.Logic
optionsBin.Get<LabelWidget>("STARTINGUNITS_DESC").IsVisible = startingUnits.IsVisible; optionsBin.Get<LabelWidget>("STARTINGUNITS_DESC").IsVisible = startingUnits.IsVisible;
} }
var enableShroud = optionsBin.GetOrNull<CheckboxWidget>("SHROUD_CHECKBOX");
if (enableShroud != null)
{
enableShroud.IsChecked = () => orderManager.LobbyInfo.GlobalSettings.Shroud;
enableShroud.IsDisabled = configurationDisabled;
enableShroud.OnClick = () => orderManager.IssueOrder(Order.Command(
"shroud {0}".F(!orderManager.LobbyInfo.GlobalSettings.Shroud)));
};
var enableFog = optionsBin.GetOrNull<CheckboxWidget>("FOG_CHECKBOX");
if (enableFog != null)
{
enableFog.IsChecked = () => orderManager.LobbyInfo.GlobalSettings.Fog;
enableFog.IsDisabled = configurationDisabled;
enableFog.OnClick = () => orderManager.IssueOrder(Order.Command(
"fog {0}".F(!orderManager.LobbyInfo.GlobalSettings.Fog)));
};
var disconnectButton = lobby.Get<ButtonWidget>("DISCONNECT_BUTTON"); var disconnectButton = lobby.Get<ButtonWidget>("DISCONNECT_BUTTON");
disconnectButton.OnClick = () => { CloseWindow(); onExit(); }; disconnectButton.OnClick = () => { CloseWindow(); onExit(); };

View File

@@ -206,45 +206,57 @@ Background@LOBBY_OPTIONS_BIN:
Children: Children:
Label@TITLE: Label@TITLE:
X:0 X:0
Y:50 Y:40
Width:PARENT_RIGHT Width:PARENT_RIGHT
Height:25 Height:25
Font:Bold Font:Bold
Align:Center Align:Center
Text: Map Options Text: Map Options
Checkbox@ALLOWCHEATS_CHECKBOX: Checkbox@ALLOWCHEATS_CHECKBOX:
X:150 X:80
Y:80 Y:75
Width:230 Width:230
Height:20 Height:20
Text:Enable Cheats / Debug Menu Text:Cheats / Debug Menu
Checkbox@CRATES_CHECKBOX: Checkbox@CRATES_CHECKBOX:
X:150 X:80
Y:110 Y:110
Width:230 Width:230
Height:20 Height:20
Text:Enable Crates Text:Crates
Checkbox@SHROUD_CHECKBOX:
X:310
Y:75
Width:230
Height:20
Text:Shroud
Checkbox@FOG_CHECKBOX:
X:310
Y:110
Width:230
Height:20
Text:Fog of War
Label@STARTINGUNITS_DESC: Label@STARTINGUNITS_DESC:
X:150 X:135
Y:140 Y:142
Width:120 Width:120
Height:25 Height:25
Text:Starting Units: Text:Starting Units:
DropDownButton@STARTINGUNITS_DROPDOWNBUTTON: DropDownButton@STARTINGUNITS_DROPDOWNBUTTON:
X:245 X:230
Y:140 Y:142
Width:140 Width:140
Height:25 Height:25
Font:Bold Font:Bold
Label@DIFFICULTY_DESC: Label@DIFFICULTY_DESC:
X:150 X:125
Y:170 Y:177
Width:120 Width:120
Height:25 Height:25
Text:Mission Difficulty: Text:Mission Difficulty:
DropDownButton@DIFFICULTY_DROPDOWNBUTTON: DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X:265 X:230
Y:170 Y:177
Width:100 Width:100
Height:25 Height:25
Font:Bold Font:Bold

View File

@@ -52,6 +52,7 @@ Sequences:
mods/cnc/sequences/funpark.yaml mods/cnc/sequences/funpark.yaml
mods/cnc/sequences/civilian.yaml mods/cnc/sequences/civilian.yaml
mods/cnc/sequences/campaign.yaml mods/cnc/sequences/campaign.yaml
Cursors: Cursors:
mods/cnc/cursors.yaml mods/cnc/cursors.yaml
@@ -117,6 +118,14 @@ ServerTraits:
PlayerPinger PlayerPinger
MasterServerPinger MasterServerPinger
LobbyDefaults:
AllowCheats: false
Crates: true
StartingUnitsClass: light
FragileAlliances: false
Shroud: true
Fog: true
ChromeMetrics: ChromeMetrics:
mods/cnc/metrics.yaml mods/cnc/metrics.yaml

View File

@@ -324,7 +324,6 @@
-DeadBuildingState: -DeadBuildingState:
-Buildable: -Buildable:
-GivesBuildableArea: -GivesBuildableArea:
-FrozenUnderFog:
Health: Health:
HP: 400 HP: 400
Armor: Armor:
@@ -337,6 +336,8 @@
-Sellable: -Sellable:
Tooltip: Tooltip:
Name: Civilian Building Name: Civilian Building
FrozenUnderFog:
StartsRevealed: true
^CivBuildingHusk: ^CivBuildingHusk:
AppearsOnRadar: AppearsOnRadar:
@@ -349,6 +350,8 @@
Tooltip: Tooltip:
Name: Civilian Building (Destroyed) Name: Civilian Building (Destroyed)
BodyOrientation: BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
^TechBuilding: ^TechBuilding:
Inherits: ^CivBuilding Inherits: ^CivBuilding
@@ -379,6 +382,10 @@
Name: Field (Destroyed) Name: Field (Destroyed)
BelowUnits: BelowUnits:
BodyOrientation: BodyOrientation:
RenderBuilding:
Palette: terrain
FrozenUnderFog:
StartsRevealed: true
^Wall: ^Wall:
AppearsOnRadar: AppearsOnRadar:
@@ -408,6 +415,7 @@
Sellable: Sellable:
Guardable: Guardable:
BodyOrientation: BodyOrientation:
FrozenUnderFog:
^Tree: ^Tree:
Tooltip: Tooltip:
@@ -429,6 +437,8 @@
Type: Wood Type: Wood
AutoTargetIgnore: AutoTargetIgnore:
BodyOrientation: BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
^Rock: ^Rock:
Tooltip: Tooltip:
@@ -444,6 +454,8 @@
EditorAppearance: EditorAppearance:
RelativeToTopLeft: yes RelativeToTopLeft: yes
BodyOrientation: BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
^Husk: ^Husk:
Health: Health:

View File

@@ -23,6 +23,7 @@ FACT:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib2
Production: Production:
Produces: Building,Defense Produces: Building,Defense
Transforms: Transforms:
@@ -72,6 +73,7 @@ NUKE:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib3
NUK2: NUK2:
Inherits: ^Building Inherits: ^Building
@@ -96,6 +98,7 @@ NUK2:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib3
PROC: PROC:
Inherits: ^Building Inherits: ^Building
@@ -118,6 +121,7 @@ PROC:
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
Bib: Bib:
Sprite: bib2
TiberiumRefinery: TiberiumRefinery:
DockOffset: 0,2 DockOffset: 0,2
TickRate: 15 TickRate: 15
@@ -191,6 +195,7 @@ PYLE:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib3
RallyPoint: RallyPoint:
Exit@1: Exit@1:
SpawnOffset: -10,2 SpawnOffset: -10,2
@@ -230,6 +235,7 @@ HAND:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib3
RallyPoint: RallyPoint:
Exit@1: Exit@1:
SpawnOffset: 12,24 SpawnOffset: 12,24
@@ -266,6 +272,7 @@ AFLD:
RevealsShroud: RevealsShroud:
Range: 7 Range: 7
Bib: Bib:
Sprite: bib1
RallyPoint: RallyPoint:
RallyPoint: 4,2 RallyPoint: 4,2
BelowUnits: BelowUnits:
@@ -305,6 +312,7 @@ WEAP:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
-RenderBuilding: -RenderBuilding:
RenderBuildingWarFactory: RenderBuildingWarFactory:
RallyPoint: RallyPoint:
@@ -381,6 +389,7 @@ HQ:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib3
ProvidesRadar: ProvidesRadar:
RenderDetectionCircle: RenderDetectionCircle:
DetectCloaked: DetectCloaked:
@@ -445,6 +454,7 @@ EYE:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib3
ProvidesRadar: ProvidesRadar:
RenderDetectionCircle: RenderDetectionCircle:
DetectCloaked: DetectCloaked:
@@ -485,6 +495,7 @@ TMPL:
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
Bib: Bib:
Sprite: bib2
NukePower: NukePower:
Image: atomicnh Image: atomicnh
ChargeTime: 300 ChargeTime: 300

View File

@@ -264,6 +264,9 @@ World:
ShroudPalette@fog: ShroudPalette@fog:
Name: fog Name: fog
Type: Fog Type: Fog
ShroudPalette@combined:
Name: shroudfog
Type: Combined
Country@gdi: Country@gdi:
Name: GDI Name: GDI
Race: gdi Race: gdi
@@ -273,7 +276,6 @@ World:
ProductionQueueFromSelection: ProductionQueueFromSelection:
ProductionTabsWidget: PRODUCTION_TABS ProductionTabsWidget: PRODUCTION_TABS
BibLayer: BibLayer:
FrozenUnderFog: true
DomainIndex: DomainIndex:
ResourceLayer: ResourceLayer:
ResourceClaimLayer: ResourceClaimLayer:
@@ -315,22 +317,27 @@ World:
Races: gdi, nod Races: gdi, nod
BaseActor: mcv BaseActor: mcv
MPStartUnits@defaultgdia: MPStartUnits@defaultgdia:
Class: light
Races: gdi Races: gdi
BaseActor: mcv BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e3,e3,jeep SupportActors: e1,e1,e1,e1,e1,e3,e3,jeep
MPStartUnits@defaultgdib: MPStartUnits@defaultgdib:
Class: light
Races: gdi Races: gdi
BaseActor: mcv BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e1,e3,apc SupportActors: e1,e1,e1,e1,e1,e1,e3,apc
MPStartUnits@defaultnoda: MPStartUnits@defaultnoda:
Class: light
Races: nod Races: nod
BaseActor: mcv BaseActor: mcv
SupportActors: e1,e1,e1,e1,e3,bggy,bike SupportActors: e1,e1,e1,e1,e3,bggy,bike
MPStartUnits@defaultnodb: MPStartUnits@defaultnodb:
Class: light
Races: nod Races: nod
BaseActor: mcv BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,e3,bggy SupportActors: e1,e1,e1,e3,e3,e3,bggy
MPStartUnits@defaultnodc: MPStartUnits@defaultnodc:
Class: light
Races: nod Races: nod
BaseActor: mcv BaseActor: mcv
SupportActors: e1,e1,e1,e1,e1,e1,e1,e3,bike SupportActors: e1,e1,e1,e1,e1,e1,e1,e3,bike

View File

@@ -104,6 +104,14 @@ ServerTraits:
PlayerPinger PlayerPinger
MasterServerPinger MasterServerPinger
LobbyDefaults:
AllowCheats: false
Crates: true
StartingUnitsClass: none
FragileAlliances: false
Shroud: false
Fog: true
ChromeMetrics: ChromeMetrics:
mods/d2k/metrics.yaml mods/d2k/metrics.yaml

View File

@@ -230,7 +230,6 @@
Sellable: Sellable:
GivesBounty: GivesBounty:
DebugMuzzlePositions: DebugMuzzlePositions:
Bib:
Guardable: Guardable:
Range: 3 Range: 3
BodyOrientation: BodyOrientation:

View File

@@ -5,6 +5,8 @@
Footprint: xxx xxx Footprint: xxx xxx
Dimensions: 3,2 Dimensions: 3,2
Adjacent: 4 Adjacent: 4
Bib:
Sprite: bib3x
Buildable: Buildable:
Queue: Building Queue: Building
BuildPaletteOrder: 1000 BuildPaletteOrder: 1000
@@ -51,6 +53,8 @@
Power: 100 Power: 100
Footprint: xx xx Footprint: xx xx
Dimensions: 2,2 Dimensions: 2,2
Bib:
Sprite: bib2x
Health: Health:
HP: 400 HP: 400
Armor: Armor:
@@ -78,6 +82,8 @@
Power: -20 Power: -20
Footprint: =x xx Footprint: =x xx
Dimensions: 2,2 Dimensions: 2,2
Bib:
Sprite: bib2x
Health: Health:
HP: 800 HP: 800
Armor: Armor:
@@ -119,6 +125,8 @@
Power: -30 Power: -30
Footprint: xxx x== Footprint: xxx x==
Dimensions: 3,2 Dimensions: 3,2
Bib:
Sprite: bib3x
Health: Health:
HP: 900 HP: 900
Armor: Armor:
@@ -173,7 +181,6 @@
PipCount: 5 PipCount: 5
Capacity: 2000 Capacity: 2000
-EmitInfantryOnSell: -EmitInfantryOnSell:
-Bib:
^LIGHT: ^LIGHT:
Inherits: ^Building Inherits: ^Building
@@ -193,6 +200,8 @@
Power: -20 Power: -20
Footprint: xxx xx= Footprint: xxx xx=
Dimensions: 3,2 Dimensions: 3,2
Bib:
Sprite: bib3x
Health: Health:
HP: 750 HP: 750
Armor: Armor:
@@ -230,6 +239,8 @@
Power: -30 Power: -30
Footprint: _x_ xxx =xx Footprint: _x_ xxx =xx
Dimensions: 3,3 Dimensions: 3,3
Bib:
Sprite: bib3x
Health: Health:
HP: 1500 HP: 1500
Armor: Armor:
@@ -269,6 +280,8 @@
Power: -40 Power: -40
Footprint: xxx xxx Footprint: xxx xxx
Dimensions: 3,2 Dimensions: 3,2
Bib:
Sprite: bib3x
Health: Health:
HP: 1000 HP: 1000
Armor: Armor:
@@ -298,6 +311,8 @@
Power: -40 Power: -40
Footprint: xxx x=x =x= Footprint: xxx x=x =x=
Dimensions: 3,3 Dimensions: 3,3
Bib:
Sprite: bib3x
Health: Health:
HP: 1000 HP: 1000
Armor: Armor:
@@ -420,7 +435,6 @@ GUNTOWER:
RenderDetectionCircle: RenderDetectionCircle:
DetectCloaked: DetectCloaked:
Range: 5 Range: 5
-Bib:
GUNTOWER.Husk: GUNTOWER.Husk:
Inherits: ^TowerHusk Inherits: ^TowerHusk
@@ -479,7 +493,6 @@ ROCKETTOWER:
RenderDetectionCircle: RenderDetectionCircle:
DetectCloaked: DetectCloaked:
Range: 6 Range: 6
-Bib:
ROCKETTOWER.Husk: ROCKETTOWER.Husk:
Inherits: ^TowerHusk Inherits: ^TowerHusk
@@ -520,7 +533,6 @@ REPAIR:
ValuePercentage: 50 ValuePercentage: 50
RallyPoint: RallyPoint:
RallyPoint: 1,3 RallyPoint: 1,3
-Bib:
^HIGHTECH: ^HIGHTECH:
Inherits: ^Building Inherits: ^Building
@@ -540,6 +552,8 @@ REPAIR:
Power: -40 Power: -40
Footprint: _x_ xxx xxx Footprint: _x_ xxx xxx
Dimensions: 3,3 Dimensions: 3,3
Bib:
Sprite: bib3x
Health: Health:
HP: 1500 HP: 1500
Armor: Armor:
@@ -580,6 +594,8 @@ RESEARCH:
Power: -40 Power: -40
Footprint: xxx xxx Footprint: xxx xxx
Dimensions: 3,2 Dimensions: 3,2
Bib:
Sprite: bib3x
Health: Health:
HP: 1000 HP: 1000
Armor: Armor:
@@ -607,6 +623,8 @@ RESEARCH:
Power: -50 Power: -50
Footprint: _x_ xxx =xx Footprint: _x_ xxx =xx
Dimensions: 3,3 Dimensions: 3,3
Bib:
Sprite: bib3x
Health: Health:
HP: 2000 HP: 2000
Armor: Armor:
@@ -628,6 +646,8 @@ SIETCH:
Footprint: xx xx Footprint: xx xx
Dimensions: 2,2 Dimensions: 2,2
TerrainTypes: Cliff TerrainTypes: Cliff
Bib:
Sprite: bib2x
Health: Health:
HP: 400 HP: 400
Armor: Armor:
@@ -652,6 +672,8 @@ PALACEC:
Building: Building:
Footprint: xxx xxx Footprint: xxx xxx
Dimensions: 3,2 Dimensions: 3,2
Bib:
Sprite: bib3x
RenderBuilding: RenderBuilding:
HasMakeAnimation: false HasMakeAnimation: false

View File

@@ -342,6 +342,9 @@ World:
ShroudPalette@fog: ShroudPalette@fog:
Name: fog Name: fog
Type: Fog Type: Fog
ShroudPalette@combined:
Name: shroudfog
Type: Combined
Country@Atreides: Country@Atreides:
Name: Atreides Name: Atreides
Race: atreides Race: atreides
@@ -352,9 +355,6 @@ World:
Name: Ordos Name: Ordos
Race: ordos Race: ordos
BibLayer: BibLayer:
BibTypes: bib3x, bib2x
BibWidths: 3, 2
FrozenUnderFog: true
DomainIndex: DomainIndex:
ResourceLayer: ResourceLayer:
ResourceClaimLayer: ResourceClaimLayer:

View File

@@ -59,39 +59,63 @@ Background@LOBBY_OPTIONS_BIN:
Children: Children:
Label@TITLE: Label@TITLE:
X:0 X:0
Y:50 Y:40
Width:PARENT_RIGHT Width:PARENT_RIGHT
Height:25 Height:25
Font:Bold Font:Bold
Align:Center Align:Center
Text: Map Options Text: Map Options
Checkbox@ALLOWCHEATS_CHECKBOX: Checkbox@ALLOWCHEATS_CHECKBOX:
X:150 X:80
Y:80 Y:75
Width:220 Width:230
Height:20 Height:20
Text:Enable Cheats / Debug Menu Text:Cheats / Debug Menu
Checkbox@CRATES_CHECKBOX: Checkbox@FRAGILEALLIANCES_CHECKBOX:
X:150 X:80
Y:110 Y:110
Width:220 Width:220
Height:20 Height:20
Text:Enable Crates
Checkbox@FRAGILEALLIANCES_CHECKBOX:
X:150
Y:140
Width:220
Height:20
Text:Allow Team Changes Text:Allow Team Changes
Checkbox@CRATES_CHECKBOX:
X:80
Y:145
Width:230
Height:20
Text:Crates
Checkbox@SHROUD_CHECKBOX:
X:310
Y:75
Width:230
Height:20
Text:Shroud
Checkbox@FOG_CHECKBOX:
X:310
Y:110
Width:230
Height:20
Text:Fog of War
Label@STARTINGUNITS_DESC:
X:215
Y:142
Width:120
Height:25
Text:Starting Units:
DropDownButton@STARTINGUNITS_DROPDOWNBUTTON:
X:310
Y:142
Width:140
Height:25
Font:Bold
Label@DIFFICULTY_DESC: Label@DIFFICULTY_DESC:
X:150 X:195
Y:170 Y:177
Width:120 Width:120
Height:25 Height:25
Text:Mission Difficulty: Text:Mission Difficulty:
DropDownButton@DIFFICULTY_DROPDOWNBUTTON: DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X:265 X:310
Y:170 Y:177
Width:100 Width:100
Height:25 Height:25
Font:Bold Font:Bold

View File

@@ -521,6 +521,7 @@ Rules:
Armor: Armor:
Type: Wood Type: Wood
Bib: Bib:
Sprite: bib3
RevealsShroud: RevealsShroud:
Range: 3 Range: 3
Capturable: Capturable:

View File

@@ -120,6 +120,14 @@ ServerTraits:
PlayerPinger PlayerPinger
MasterServerPinger MasterServerPinger
LobbyDefaults:
AllowCheats: false
Crates: true
StartingUnitsClass: none
FragileAlliances: false
Shroud: true
Fog: true
ChromeMetrics: ChromeMetrics:
mods/ra/metrics.yaml mods/ra/metrics.yaml

View File

@@ -69,6 +69,7 @@ FCOM:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib3
HOSP: HOSP:
Inherits: ^TechBuilding Inherits: ^TechBuilding
@@ -300,6 +301,7 @@ MISS:
Tooltip: Tooltip:
Name: Technology Center Name: Technology Center
Bib: Bib:
Sprite: bib2
BIO: BIO:
Inherits: ^TechBuilding Inherits: ^TechBuilding
@@ -319,6 +321,7 @@ OILB:
Health: Health:
HP: 1000 HP: 1000
Bib: Bib:
Sprite: bib3
RevealsShroud: RevealsShroud:
Range: 3 Range: 3
Capturable: Capturable:

View File

@@ -272,6 +272,7 @@
UpdatesPlayerStatistics: UpdatesPlayerStatistics:
Guardable: Guardable:
BodyOrientation: BodyOrientation:
FrozenUnderFog:
^TechBuilding: ^TechBuilding:
Inherits: ^Building Inherits: ^Building
@@ -290,6 +291,8 @@
-Sellable: -Sellable:
-Capturable: -Capturable:
-CapturableBar: -CapturableBar:
FrozenUnderFog:
StartsRevealed: true
^AmmoBox: ^AmmoBox:
Inherits: ^TechBuilding Inherits: ^TechBuilding
@@ -370,6 +373,8 @@
Type: Wood Type: Wood
AutoTargetIgnore: AutoTargetIgnore:
BodyOrientation: BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
^Husk: ^Husk:
Husk: Husk:
@@ -489,6 +494,8 @@
ProximityCaptor: ProximityCaptor:
Types:Tree Types:Tree
BodyOrientation: BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
^DesertCivBuilding: ^DesertCivBuilding:
Inherits: ^CivBuilding Inherits: ^CivBuilding

View File

@@ -372,6 +372,7 @@ DOME:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib3
ProvidesRadar: ProvidesRadar:
IronCurtainable: IronCurtainable:
Infiltratable: Infiltratable:
@@ -844,6 +845,7 @@ ATEK:
RevealsShroud: RevealsShroud:
Range: 10 Range: 10
Bib: Bib:
Sprite: bib3
IronCurtainable: IronCurtainable:
GpsPower: GpsPower:
Image: gpssicon Image: gpssicon
@@ -880,6 +882,7 @@ WEAP:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
-RenderBuilding: -RenderBuilding:
RenderBuildingWarFactory: RenderBuildingWarFactory:
RallyPoint: RallyPoint:
@@ -909,6 +912,7 @@ FACT:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib2
Production: Production:
Produces: Building,Defense Produces: Building,Defense
IronCurtainable: IronCurtainable:
@@ -952,6 +956,7 @@ PROC:
RevealsShroud: RevealsShroud:
Range: 6 Range: 6
Bib: Bib:
Sprite: bib2
OreRefinery: OreRefinery:
StoresOre: StoresOre:
PipCount: 17 PipCount: 17
@@ -1027,6 +1032,7 @@ HPAD:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib3
Exit@1: Exit@1:
SpawnOffset: 0,-6 SpawnOffset: 0,-6
ExitCell: 0,0 ExitCell: 0,0
@@ -1114,6 +1120,7 @@ POWR:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib3
IronCurtainable: IronCurtainable:
DeadBuildingState: DeadBuildingState:
@@ -1143,6 +1150,7 @@ APWR:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
IronCurtainable: IronCurtainable:
DeadBuildingState: DeadBuildingState:
@@ -1172,6 +1180,7 @@ STEK:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
IronCurtainable: IronCurtainable:
BARR: BARR:
@@ -1198,6 +1207,7 @@ BARR:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib3
RallyPoint: RallyPoint:
Exit@1: Exit@1:
SpawnOffset: -4,19 SpawnOffset: -4,19
@@ -1235,6 +1245,7 @@ TENT:
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib: Bib:
Sprite: bib3
RallyPoint: RallyPoint:
Exit@1: Exit@1:
SpawnOffset: -1,19 SpawnOffset: -1,19
@@ -1317,6 +1328,7 @@ FACF:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
RenderBuilding: RenderBuilding:
Image: FACT Image: FACT
Fake: Fake:
@@ -1346,6 +1358,7 @@ WEAF:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib2
-RenderBuilding: -RenderBuilding:
RenderBuildingWarFactory: RenderBuildingWarFactory:
Image: WEAP Image: WEAP
@@ -1438,6 +1451,7 @@ DOMF:
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib: Bib:
Sprite: bib3
RenderBuilding: RenderBuilding:
Image: DOME Image: DOME
Fake: Fake:

View File

@@ -601,6 +601,9 @@ World:
ShroudPalette@fog: ShroudPalette@fog:
Name: fog Name: fog
Type: Fog Type: Fog
ShroudPalette@combined:
Name: shroudfog
Type: Combined
Country@0: Country@0:
Name: Allies Name: Allies
Race: allies Race: allies
@@ -608,7 +611,6 @@ World:
Name: Soviet Name: Soviet
Race: soviet Race: soviet
BibLayer: BibLayer:
FrozenUnderFog: true
DomainIndex: DomainIndex:
ResourceLayer: ResourceLayer:
ResourceClaimLayer: ResourceClaimLayer:
@@ -644,9 +646,38 @@ World:
DebugOverlay: DebugOverlay:
SpawnMapActors: SpawnMapActors:
CreateMPPlayers: CreateMPPlayers:
MPStartUnits: MPStartUnits@mcvonly:
Class: none
Races: soviet, allies Races: soviet, allies
BaseActor: mcv BaseActor: mcv
MPStartUnits@lightallies:
Class: light
Races: allies
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,jeep,1tnk
InnerSupportRadius: 3
OuterSupportRadius: 5
MPStartUnits@lightsoviet:
Class: light
Races: soviet
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,apc,ftrk
InnerSupportRadius: 3
OuterSupportRadius: 5
MPStartUnits@heavyallies:
Class: heavy
Races: allies
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,jeep,1tnk,2tnk,2tnk,2tnk
InnerSupportRadius: 3
OuterSupportRadius: 5
MPStartUnits@heavysoviet:
Class: heavy
Races: soviet
BaseActor: mcv
SupportActors: e1,e1,e1,e3,e3,apc,ftrk,3tnk,3tnk
InnerSupportRadius: 3
OuterSupportRadius: 5
MPStartLocations: MPStartLocations:
SpawnMPUnits: SpawnMPUnits:
SpatialBins: SpatialBins:

View File

@@ -143,6 +143,14 @@ ServerTraits:
PlayerPinger PlayerPinger
MasterServerPinger MasterServerPinger
LobbyDefaults:
AllowCheats: false
Crates: true
StartingUnitsClass: none
FragileAlliances: false
Shroud: true
Fog: true
ChromeMetrics: ChromeMetrics:
mods/ra/metrics.yaml mods/ra/metrics.yaml

View File

@@ -14,7 +14,6 @@ GACNST:
Type: Wood Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib:
Production: Production:
Produces: Building,Defense Produces: Building,Defense
Valued: Valued:
@@ -58,7 +57,6 @@ GAPOWR:
Type: Wood Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib:
GAPILE: GAPILE:
Inherits: ^Building Inherits: ^Building
@@ -84,7 +82,6 @@ GAPILE:
Type: Wood Type: Wood
RevealsShroud: RevealsShroud:
Range: 5 Range: 5
Bib:
# RallyPoint: #TODO: setup sequences # RallyPoint: #TODO: setup sequences
Exit@1: Exit@1:
SpawnOffset: -64,64,0 SpawnOffset: -64,64,0
@@ -117,7 +114,6 @@ GAWEAP:
HP: 1000 HP: 1000
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib:
-RenderBuilding: -RenderBuilding:
RenderBuildingWarFactory: RenderBuildingWarFactory:
# RallyPoint: # TODO: setup sequences # RallyPoint: # TODO: setup sequences
@@ -302,7 +298,6 @@ GASPOT: # TODO: has moving spotlights
Type: Wood Type: Wood
RevealsShroud: RevealsShroud:
Range: 4 Range: 4
Bib:
RenderDetectionCircle: RenderDetectionCircle:
DetectCloaked: DetectCloaked:
Range: 3 Range: 3

View File

@@ -111,7 +111,6 @@ World:
Race: nod Race: nod
ResourceLayer: ResourceLayer:
ResourceClaimLayer: ResourceClaimLayer:
# BibLayer: # TODO: file not found: bib3
DebugOverlay: DebugOverlay:
SpawnMapActors: SpawnMapActors:
CreateMPPlayers: CreateMPPlayers: