Remove OLDLST campaign overrides.

This commit is contained in:
Paul Chote
2021-02-13 15:23:14 +00:00
committed by Matthias Mailänder
parent 717b9ba1e6
commit f661d1ba48
25 changed files with 9 additions and 160 deletions

View File

@@ -1,37 +0,0 @@
#region Copyright & License Information
/*
* Copyright 2007-2020 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, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using OpenRA.Graphics;
using OpenRA.Mods.Common.Traits.Render;
using OpenRA.Traits;
namespace OpenRA.Mods.Cnc.Traits.Render
{
[Desc("Provides an overlay for the Tiberian Dawn hover craft.")]
public class WithRoofInfo : TraitInfo, Requires<RenderSpritesInfo>
{
[SequenceReference]
public readonly string Sequence = "roof";
public override object Create(ActorInitializer init) { return new WithRoof(init.Self, this); }
}
public class WithRoof
{
public WithRoof(Actor self, WithRoofInfo info)
{
var rs = self.Trait<RenderSprites>();
var roof = new Animation(self.World, rs.GetImage(self), RenderSprites.MakeFacingFunc(self));
roof.Play(info.Sequence);
rs.Add(new AnimationWithOffset(roof, null, null, 1024));
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -40,7 +40,7 @@ InitObjectives = function(player)
end end
ReinforceWithLandingCraft = function(player, units, transportStart, transportUnload, rallypoint) ReinforceWithLandingCraft = function(player, units, transportStart, transportUnload, rallypoint)
local transport = Actor.Create("oldlst", true, { Owner = player, Facing = Angle.North, Location = transportStart }) local transport = Actor.Create("lst", true, { Owner = player, Facing = Angle.North, Location = transportStart })
local subcell = 0 local subcell = 0
Utils.Do(units, function(a) Utils.Do(units, function(a)
transport.LoadPassenger(Actor.Create(a, false, { Owner = transport.Owner, Facing = transport.Facing, Location = transportUnload, SubCell = subcell })) transport.LoadPassenger(Actor.Create(a, false, { Owner = transport.Owner, Facing = transport.Facing, Location = transportUnload, SubCell = subcell }))

View File

@@ -714,5 +714,3 @@ Actors:
Location: 26,14 Location: 26,14
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml

View File

@@ -36,12 +36,3 @@ TRAN:
RMBO: RMBO:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -412,6 +412,4 @@ Actors:
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml
Weapons: weapons.yaml Weapons: weapons.yaml

View File

@@ -38,15 +38,6 @@ Player:
^CivBuilding: ^CivBuilding:
AnnounceOnSeen: AnnounceOnSeen:
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:
TREX: TREX:
Health: Health:
HP: 75000 HP: 75000

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -235,6 +235,4 @@ Actors:
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml
Weapons: weapons.yaml Weapons: weapons.yaml

View File

@@ -109,12 +109,3 @@ BOAT:
InitialStance: AttackAnything InitialStance: AttackAnything
RejectsOrders: RejectsOrders:
Except: Attack Except: Attack
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -625,5 +625,3 @@ Actors:
Owner: Neutral Owner: Neutral
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml

View File

@@ -111,12 +111,3 @@ OBLI:
SAM: SAM:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -1019,6 +1019,4 @@ Actors:
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml
Music: music.yaml Music: music.yaml

View File

@@ -57,15 +57,6 @@ FLARE:
RevealsShroud: RevealsShroud:
Range: 5c0 Range: 5c0
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:
SAM: SAM:
SpawnActorOnDeath: SpawnActorOnDeath:
Actor: e1 Actor: e1

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -1028,5 +1028,3 @@ Actors:
Location: 14,46 Location: 14,46
Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml Rules: cnc|rules/campaign-maprules.yaml, cnc|rules/campaign-tooltips.yaml, cnc|rules/campaign-palettes.yaml, rules.yaml
Sequences: sequences.yaml

View File

@@ -108,15 +108,6 @@ MLRS:
Buildable: Buildable:
Prerequisites: ~disabled Prerequisites: ~disabled
OLDLST:
Inherits: LST
-WithRoof:
-Selectable:
RejectsOrders:
Cargo:
Types: disabled
Interactable:
HQ: HQ:
Tooltip: Tooltip:
-AirstrikePower: -AirstrikePower:

View File

@@ -1,7 +0,0 @@
oldlst:
idle: lst
Start: 0
Facings: 1
ZOffset: -1024
icon: lsticnh.tem
AddExtension: False

View File

@@ -636,7 +636,6 @@
^Ship: ^Ship:
Inherits@1: ^ExistsInWorld Inherits@1: ^ExistsInWorld
Inherits@3: ^SpriteActor Inherits@3: ^SpriteActor
Inherits@selection: ^SelectableCombatUnit
Inherits@handicaps: ^PlayerHandicaps Inherits@handicaps: ^PlayerHandicaps
Huntable: Huntable:
OwnerLostAction: OwnerLostAction:

View File

@@ -1,5 +1,6 @@
BOAT: BOAT:
Inherits: ^Ship Inherits: ^Ship
Inherits@SELECTABLE: ^SelectableCombatUnit
Inherits@EXPERIENCE: ^GainsExperience Inherits@EXPERIENCE: ^GainsExperience
Inherits@AUTOTARGET: ^AutoTargetAll Inherits@AUTOTARGET: ^AutoTargetAll
Valued: Valued:
@@ -55,10 +56,6 @@ LST:
Cost: 300 Cost: 300
Tooltip: Tooltip:
Name: Landing Craft Name: Landing Craft
Buildable:
Queue: Vehicle.GDI
BuildPaletteOrder: 1000
Prerequisites: ~disabled
Mobile: Mobile:
Locomotor: lcraft Locomotor: lcraft
InitialFacing: 0 InitialFacing: 0
@@ -74,14 +71,14 @@ LST:
-BodyOrientation: -BodyOrientation:
ClassicFacingBodyOrientation: ClassicFacingBodyOrientation:
WithFacingSpriteBody: WithFacingSpriteBody:
Selectable: Interactable:
Bounds: 48,48 Bounds: 48,48
WithRoof:
WithCargo: WithCargo:
DisplayTypes: Infantry, Vehicle DisplayTypes: Infantry, Vehicle
LocalOffset: 390,-256,0, 390,256,0, 0,0,0, -390,-256,0, -390,256,0 LocalOffset: 390,-256,0, 390,256,0, 0,0,0, -390,-256,0, -390,256,0
Cargo: Cargo:
Types: Infantry, Vehicle Types: disabled
MaxWeight: 5 MaxWeight: 5
PassengerFacing: 0 PassengerFacing: 0
LoadingCondition: notmobile LoadingCondition: notmobile
RejectsOrders:

View File

@@ -1,10 +1,8 @@
lst: lst:
idle: lstnew idle: lst
UseClassicFacings: True Start: 0
Facings: 32 Facings: 1
roof: lstnew2 ZOffset: -1024
UseClassicFacings: True
Facings: 32
icon: lsticnh.tem icon: lsticnh.tem
AddExtension: False AddExtension: False