inherit units that differ only slightly for each faction

This commit is contained in:
Matthias Mailänder
2012-05-26 20:20:01 +02:00
parent ffbc76919e
commit 2287f1f662
10 changed files with 1975 additions and 1319 deletions

View File

@@ -41,6 +41,7 @@ Rules:
mods/d2k/rules/structures.yaml
mods/d2k/rules/aircraft.yaml
mods/d2k/rules/infantry.yaml
mods/d2k/rules/atreides.yaml
Sequences:
mods/d2k/sequences.yaml

View File

@@ -9,9 +9,8 @@ ENTORDOS: Enter the Ordos
Extension: AUD
FIGHTPWR: Fight for Power
Extension: AUD
# this one crashes the game at startup:
#FREMEN: The Fremen
# Extension: AUD
FREMEN: The Fremen
Extension: AUD
HARK_BAT: Harkonnen Battle
Extension: AUD
LANDSAND: Land of Sand
@@ -24,9 +23,8 @@ RISEHARK: Rise of Harkonnen
Extension: AUD
ROBOTIX: Robotix
Extension: AUD
# this one crashes the game at startup:
#SCORE: Score
# Extension: AUD
SCORE: Score
Extension: AUD
SOLDAPPR: The Soldiers Approach
Extension: AUD
SPICESCT: Spice Scouting

File diff suppressed because it is too large Load Diff

View File

@@ -24,7 +24,6 @@ CARRYALL:
Speed: 15
LandableTerrainTypes: Clear,Rough,Road,Ore,Beach
RenderUnit:
PlayerPalette: d2kplayer
RenderCargo:
WithShadow:
Cargo:
@@ -50,7 +49,6 @@ C17:
Type: Heavy
RenderUnit:
Image: frigate
PlayerPalette: d2kplayer
WithShadow:
Cargo:
MaxWeight: 10
@@ -89,7 +87,6 @@ ORNI:
ROT: 4
Speed: 12
RenderUnit:
PlayerPalette: d2kplayer
WithShadow:
Selectable:
Bounds: 38,32,0,0

View File

@@ -165,6 +165,19 @@
GivesBounty:
^Wall:
Buildable:
Queue: Defense
BuildPaletteOrder: 1000
SoundOnDamageTransition:
DamagedSound:
DestroyedSound:
Valued:
Cost: 100
CustomSellValue:
Value: 0
Tooltip:
Name: Concrete Wall
Description: Stop units and blocks enemy fire.
AppearsOnRadar:
Building:
Dimensions: 1,1
@@ -172,11 +185,12 @@
BuildSounds:
Adjacent: 7
TerrainTypes: Clear,Road
SoundOnDamageTransition:
DamagedSound:
DestroyedSound:
Health:
HP: 500
Armor:
Type: Concrete
Wall:
CrushClasses: wall
CrushClasses: heavywall
LineBuild:
Range: 8
SelectionDecorations:

View File

@@ -10,7 +10,7 @@ RIFLE:
Name: Rifle Infantry
Description: General-purpose infantry.\n Strong vs Infantry\n Weak vs Vehicles
Selectable:
Bounds: 12,17,0,-9
Bounds: 12,17,0,0
Health:
HP: 50
Mobile:
@@ -19,5 +19,4 @@ RIFLE:
PrimaryWeapon: M1Carbine
TakeCover:
-RenderInfantry:
RenderInfantryProne:
PlayerPalette: d2kplayer
RenderInfantryProne:

View File

@@ -1,4 +1,4 @@
CONYARDA:
^CONYARD:
Inherits: ^Building
Building:
Power: 0
@@ -13,11 +13,10 @@ CONYARDA:
Bib:
Production:
Produces: Building,Defense
IronCurtainable:
Valued:
Cost: 2500
Tooltip:
Name: Atreides Construction Yard
Name: Construction Yard
CustomSellValue:
Value: 2500
BaseBuilding:
@@ -26,21 +25,18 @@ CONYARDA:
Offset:1,1
Facing: 270
ProductionBar:
RenderBuilding:
PlayerPalette: d2kplayer
PWRA:
^POWER:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 0
Owner: atreides
# Hotkey: p
Hotkey: w
Valued:
Cost: 300
Tooltip:
Name: Atreides Windtrap
Description: Provides power for other Atreides structures
Name: Windtrap
Description: Provides power for other structures
ProvidesCustomPrerequisite:
Prerequisite: anypower
Building:
@@ -54,21 +50,18 @@ PWRA:
RevealsShroud:
Range: 4
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
BARRA:
^BARRACKS:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 30
Prerequisites: anypower
Owner: atreides
# Hotkey: b
Hotkey: b
Valued:
Cost: 400
Tooltip:
Name: Atreides Barracks
Name: Barracks
Description: Trains infantry
Building:
Power: -20
@@ -81,8 +74,6 @@ BARRA:
RevealsShroud:
Range: 5
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
RallyPoint:
Exit@1:
SpawnOffset: -1,19
@@ -95,18 +86,16 @@ BARRA:
PrimaryBuilding:
ProductionBar:
HIGHTECHA:
^HIGHTECH:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 50
Prerequisites: refa
Owner: atreides
Valued:
Cost: 2000
Tooltip:
Name: High Tech Factory
Description: Produces carryalls
Description: Produces Carryalls
ProvidesCustomPrerequisite:
Prerequisite: anyhightech
Building:
@@ -120,8 +109,6 @@ HIGHTECHA:
RevealsShroud:
Range: 4
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
RallyPoint:
Exit@1:
SpawnOffset: 5,0
@@ -131,13 +118,11 @@ HIGHTECHA:
PrimaryBuilding:
ProductionBar:
RESEARCHA:
^RESEARCH:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 50
Prerequisites: heavya,radara
Owner: atreides
Valued:
Cost: 2000
Tooltip:
@@ -154,20 +139,16 @@ RESEARCHA:
RevealsShroud:
Range: 4
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
PALACEA:
^PALACE:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 50
Prerequisites: researcha
Owner: atreides
Valued:
Cost: 2000
Tooltip:
Name: Atreides Palace
Name: Palace
Description: Provides advanced technology
Building:
Power: -30
@@ -180,17 +161,16 @@ PALACEA:
RevealsShroud:
Range: 4
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
REFA:
^REFINERY:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 10
Prerequisites: anypower
Owner: atreides
ProvidesCustomPrerequisite:
Prerequisite: anyref
Valued:
Cost: 1400
Tooltip:
@@ -208,9 +188,6 @@ REFA:
Range: 6
Bib:
-RenderBuilding:
RenderBuildingWarFactory:
Image: REFA
PlayerPalette: d2kplayer
OreRefinery:
StoresOre:
PipCount: 17
@@ -223,13 +200,11 @@ REFA:
SpawnOffset: 1,2
Facing: 64
SILOA:
^SILO:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 40
Prerequisites: refa
Owner: atreides
Valued:
Cost: 150
Tooltip:
@@ -244,21 +219,20 @@ SILOA:
Type: Wood
RevealsShroud:
Range: 4
-RenderBuilding:
RenderBuildingSilo:
PlayerPalette: d2kplayer
StoresOre:
PipCount: 5
Capacity: 1500
-RenderBuilding:
-EmitInfantryOnSell:
LIGHTA:
^LIGHT:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 50
Prerequisites: refa
Owner: atreides
ProvidesCustomPrerequisite:
Prerequisite: anylight
Valued:
Cost: 1000
Tooltip:
@@ -276,9 +250,6 @@ LIGHTA:
Range: 4
Bib:
-RenderBuilding:
RenderBuildingWarFactory:
Image: LIGHTA
PlayerPalette: d2kplayer
RallyPoint:
Exit@1:
SpawnOffset: 10,0
@@ -288,13 +259,13 @@ LIGHTA:
PrimaryBuilding:
ProductionBar:
HEAVYA:
^HEAVY:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 50
Prerequisites: lighta
Owner: atreides
ProvidesCustomPrerequisite:
Prerequisite: anyheavy
Valued:
Cost: 2000
Tooltip:
@@ -312,9 +283,6 @@ HEAVYA:
Range: 4
Bib:
-RenderBuilding:
RenderBuildingWarFactory:
Image: HEAVYA
PlayerPalette: d2kplayer
RallyPoint:
Exit@1:
SpawnOffset: 10,0
@@ -324,15 +292,15 @@ HEAVYA:
PrimaryBuilding:
ProductionBar:
RADARA:
^RADAR:
RequiresPower:
CanPowerDown:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 60
Prerequisites: barra
Owner: atreides
ProvidesCustomPrerequisite:
Prerequisite: anyradar
Valued:
Cost: 1400
Tooltip:
@@ -349,11 +317,9 @@ RADARA:
RevealsShroud:
Range: 10
Bib:
RenderBuilding:
PlayerPalette: d2kplayer
ProvidesRadar:
STARPORTA:
^STARPORT:
Inherits: ^Building
Valued:
Cost: 2000
@@ -365,8 +331,6 @@ STARPORTA:
Buildable:
Queue: Building
BuildPaletteOrder: 60
Prerequisites: radara
Owner: atreides
Building:
Power: -30
Footprint: xxx xxx xxx
@@ -375,8 +339,6 @@ STARPORTA:
HP: 1000
RevealsShroud:
Range: 7
RenderBuilding:
PlayerPalette: d2kplayer
Bib:
RallyPoint:
RallyPoint: 4,2
@@ -391,45 +353,13 @@ STARPORTA:
Group: Vehicle
BuildSpeed: .4
LowPowerSlowdown: 3
QueuedAudio:
ReadyAudio:
OnHoldAudio:
CancelledAudio:
ProductionBar:
WALLA:
Inherits: ^Wall
Buildable:
Queue: Defense
BuildPaletteOrder: 1000
Prerequisites: conyarda
Owner: atreides
Valued:
Cost: 100
CustomSellValue:
Value: 0
Tooltip:
Name: Concrete Wall
Description: Stop units and blocks enemy fire.
SoundOnDamageTransition:
DamagedSound: crmble2.aud
DestroyedSound: kaboom30.aud
Health:
HP: 500
Armor:
Type: Concrete
Wall:
CrushClasses: heavywall
RenderBuildingWall:
Palette: d2k
GUNTOWERA:
^GUNTOWER:
Inherits: ^Building
Buildable:
Queue: Defense
BuildPaletteOrder: 40
Prerequisites: barra
Owner: atreides
Valued:
Cost: 600
Tooltip:
@@ -445,29 +375,27 @@ GUNTOWERA:
Type: Heavy
RevealsShroud:
Range: 7
RenderRangeCircle:
-RenderBuilding:
RenderBuildingTurreted:
Palette: d2k
Turreted:
ROT: 12
InitialFacing: 50
RenderBuildingTurreted:
Palette: d2k
AttackTurreted:
PrimaryWeapon: TurretGun
AutoTarget:
-RenderBuilding:
RenderRangeCircle:
REPAIRA:
^REPAIR:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 30
Prerequisites: heavya
Owner: atreides
Valued:
Cost: 1000
Tooltip:
Name: Repair Pad
Description: Repairs vehicles, and allows\n the construction of additional bases.
Description: Repairs vehicles and allows\n the construction of additional bases.
Building:
Power: -30
Footprint: xxx xxx xxx
@@ -478,9 +406,8 @@ REPAIRA:
Type: Wood
RevealsShroud:
Range: 5
RenderBuilding:
PlayerPalette: d2kplayer
BelowUnits:
Reservable:
RepairsUnits:
Interval: 10
RallyPoint:

View File

@@ -38,10 +38,6 @@ Player:
PlayerColorPalette:
BasePalette: d2k
PaletteFormat: d2k
PlayerColorPalette@d2kplayer:
BasePalette: d2k
BaseName: d2kplayer
PaletteFormat: d2k
DebugResourceCash:
DebugResourceOre:
DebugResourceOreCapacity:

View File

@@ -1,10 +1,8 @@
MCV:
^MCV:
Inherits: ^Vehicle
Buildable:
Queue: Vehicle
BuildPaletteOrder: 110
Prerequisites: heavya,repaira
Owner: atreides
Valued:
Cost: 2000
Tooltip:
@@ -22,15 +20,7 @@ MCV:
Crushes: crate, infantry
RevealsShroud:
Range: 4
Transforms:
Facing: 10
IntoActor: conyarda
Offset:-1,-1
TransformSounds: placbldg.aud, build5.aud
NoTransformSounds: AI_DPLOY.AUD
RenderUnit:
Image: MCV
PlayerPalette: d2kplayer
MustBeDestroyed:
BaseBuilding:
-AttackMove:
@@ -40,7 +30,7 @@ HARVESTER:
Buildable:
Queue: Vehicle
BuildPaletteOrder: 10
Prerequisites: refa,heavya
Prerequisites: anyref,anyheavy
Owner: atreides
Valued:
Cost: 1100
@@ -52,7 +42,7 @@ HARVESTER:
Bounds: 42,42
Harvester:
Capacity: 20
Resources: Ore,Gems
Resources: Spice
UnloadTicksPerBale: 1
Health:
HP: 600
@@ -60,11 +50,10 @@ HARVESTER:
Type: Heavy
Mobile:
Speed: 6
Crushes: wall, atmine, crate, infantry
Crushes: crate, infantry
RenderUnit:
RevealsShroud:
Range: 4
RenderUnit::
PlayerPalette: d2kplayer
-AttackMove:
TRIKE:
@@ -72,7 +61,7 @@ TRIKE:
Buildable:
Queue: Vehicle
BuildPaletteOrder: 15
Prerequisites: lighta
Prerequisites: anylight
Owner: atreides
Valued:
Cost: 200
@@ -91,7 +80,6 @@ TRIKE:
RevealsShroud:
Range: 8
RenderUnit:
PlayerPalette: d2kplayer
AttackFrontal:
PrimaryWeapon: M60mg
PrimaryOffset: 0,0,0,-4
@@ -102,7 +90,7 @@ QUAD:
Buildable:
Queue: Vehicle
BuildPaletteOrder: 30
Prerequisites: lighta
Prerequisites: anylight
Owner: atreides
Valued:
Cost: 400
@@ -119,25 +107,22 @@ QUAD:
RevealsShroud:
Range: 7
RenderUnit:
PlayerPalette: d2kplayer
AttackFrontal:
PrimaryWeapon: QuadRockets
PrimaryOffset: 0,0,0,-2
PrimaryLocalOffset: -4,0,0,0,25, 4,0,0,0,-25
AutoTarget:
COMBATA:
^COMBAT:
Inherits: ^Tank
Buildable:
Queue: Vehicle
BuildPaletteOrder: 60
Prerequisites: heavya
Owner: atreides
Valued:
Cost: 850
Tooltip:
Name: Combat Tank
Description: Atreides Main Battle Tank.\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft
Description: Main Battle Tank.\n Strong vs Tanks, Light Vehicles\n Weak vs Infantry, Aircraft
Health:
HP: 450
Armor:
@@ -154,7 +139,6 @@ COMBATA:
PrimaryRecoil: 3
PrimaryRecoilRecovery: 0.9
RenderUnitTurreted:
PlayerPalette: d2kplayer
AutoTarget:
Explodes:
Weapon: UnitExplodeSmall
@@ -167,7 +151,7 @@ SIEGE:
Buildable:
Queue: Vehicle
BuildPaletteOrder: 80
Prerequisites: radara
Prerequisites: anyradar
Owner: atreides
Valued:
Cost: 600
@@ -190,7 +174,6 @@ SIEGE:
PrimaryRecoil: 3
PrimaryRecoilRecovery: 0.9
RenderUnitTurreted:
PlayerPalette: d2kplayer
Explodes:
Weapon: UnitExplode
Chance: 75
@@ -206,7 +189,7 @@ Missile:
Buildable:
Queue: Vehicle
BuildPaletteOrder: 50
Prerequisites: heavya
Prerequisites: anyheavy
Owner: atreides
Mobile:
Speed: 6
@@ -216,39 +199,9 @@ Missile:
Type: Light
RevealsShroud:
Range: 6
RenderUnit:
AttackFrontal:
PrimaryWeapon: 227mm
PrimaryOffset: 0,6,0,-3
PrimaryLocalOffset: 3,-5,0,0,0, -3,-5,0,0,0
RenderUnit:
PlayerPalette: d2kplayer
AutoTarget:
SONIC:
Inherits: ^Vehicle
Buildable:
Queue: Vehicle
BuildPaletteOrder: 15
Prerequisites: heavya,researcha
Owner: atreides
Valued:
Cost: 1500
Tooltip:
Name: Sonic Tank
Description: Fires a sound wave\n Strong vs Infantry.\n Weak vs Tanks
Selectable:
Bounds: 24,24
Health:
HP: 150
Armor:
Type: Light
Mobile:
Speed: 8
RevealsShroud:
Range: 7
RenderUnit:
PlayerPalette: d2kplayer
AttackFrontal:
PrimaryWeapon: TTankZap
PrimaryOffset: 0,0,0,-5
AutoTarget:

View File

@@ -167,12 +167,12 @@ mono OpenRA.Utility.exe --shp saboteuricon.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4035 4035 "deathhandicon"
mono OpenRA.Utility.exe --shp deathhandicon.png 60
# 4036..4045 = repetitions
mono OpenRA.Utility.exe --r8 $R8 $PAL 4046 4046 "conyardicona" # = 4049
mono OpenRA.Utility.exe --shp conyardicona.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4047 4047 "conyardiconh"
mono OpenRA.Utility.exe --shp conyardiconh.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4048 4048 "conyardicono"
mono OpenRA.Utility.exe --shp conyardicono.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4046 4046 "conyardaicon" # = 4049
mono OpenRA.Utility.exe --shp conyardaicon.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4047 4047 "conyardhicon"
mono OpenRA.Utility.exe --shp conyardhicon.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4048 4048 "conyardaicon"
mono OpenRA.Utility.exe --shp conyardoicon.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4050 4050 "4plateicon" # = 4051..4052
mono OpenRA.Utility.exe --shp 4plateicon.png 60
mono OpenRA.Utility.exe --r8 $R8 $PAL 4053 4053 "6plateicon" # = 4054..4055