Merge pull request #5373 from Mailaender/repair-overlay

Added the Dune 2000 repair depot active overlay
This commit is contained in:
Paul Chote
2014-05-22 23:29:53 +12:00
12 changed files with 260 additions and 36 deletions

View File

@@ -341,6 +341,7 @@ HPAD:
Produces: Aircraft
Reservable:
RepairsUnits:
WithRepairAnimation:
RallyPoint:
ProductionQueue:
Type: Aircraft
@@ -423,6 +424,7 @@ FIX:
Reservable:
RepairsUnits:
RallyPoint:
WithRepairAnimation:
EYE:
Inherits: ^BaseBuilding

View File

@@ -578,6 +578,7 @@ WALL:
RallyPoint: 1,3
ProvidesCustomPrerequisite:
Prerequisite: Repair
WithRepairOverlay:
^HIGHTECH:
Inherits: ^Building

View File

@@ -219,17 +219,17 @@ repaira:
Start: 2571
Offset: -48,48
ZOffset: -1c511
# active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Offset: -48,48
# ZOffset: -1c511
# damaged-active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Tick: 60
# Offset: -48,48
# ZOffset: -1c511
active: DATA
Start: 4746
Length: 14
Offset: -48,48
ZOffset: -1c511
damaged-active: DATA
Start: 4746
Length: 14
Tick: 60
Offset: -48,48
ZOffset: -1c511
damaged-idle: DATA
Start: 2572
Offset: -48,48
@@ -252,17 +252,17 @@ repairh:
Start: 2731
Offset: -48,48
ZOffset: -1c511
# active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Offset: -48,48
# ZOffset: -1c511
# damaged-active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Tick: 60
# Offset: -48,48
# ZOffset: -1c511
active: DATA
Start: 4746
Length: 14
Offset: -48,48
ZOffset: -1c511
damaged-active: DATA
Start: 4746
Length: 14
Tick: 60
Offset: -48,48
ZOffset: -1c511
damaged-idle: DATA
Start: 2732
Offset: -48,48
@@ -285,17 +285,17 @@ repairo:
Start: 2891
Offset: -48,48
ZOffset: -1c511
# active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Offset: -48,48
# ZOffset: -1c511
# damaged-active: DATA # TODO: overlay
# Start: 4746
# Length: 14
# Tick: 60
# Offset: -48,48
# ZOffset: -1c511
active: DATA
Start: 4746
Length: 14
Offset: -48,48
ZOffset: -1c511
damaged-active: DATA
Start: 4746
Length: 14
Tick: 60
Offset: -48,48
ZOffset: -1c511
damaged-idle: DATA
Start: 2892
Offset: -48,48

View File

@@ -1197,6 +1197,7 @@ FIX:
IronCurtainable:
RepairsUnits:
Interval: 10
WithRepairAnimation:
FACF:
Inherits: ^Building

View File

@@ -189,6 +189,7 @@
TargetableUnit:
TargetTypes: Ground
Repairable:
RepairBuildings: gadept
Passenger:
CargoType: Vehicle
AttackMove:

View File

@@ -709,6 +709,40 @@ NAHPAD:
WithIdleOverlay@LIGHTS:
Sequence: idle-lights
GADEPT:
Inherits: ^Building
Valued:
Cost: 1200
Tooltip:
Name: Service Depot
Description: Repairs vehicles
Buildable:
BuildPaletteOrder: 80
Prerequisites: factory
Owner: gdi
Queue: Building
Building:
Power: -30
Footprint: _x_ xxx _x_
Dimensions: 3,3
Health:
HP: 1100
RevealsShroud:
Range: 5c0
Reservable:
RepairsUnits:
RallyPoint:
WithIdleOverlay@LIGHT:
Sequence: idle-light
WithIdleOverlay@GROUND:
Sequence: ground
WithRepairOverlay@CIRCUITS:
Sequence: circuits
WithRepairOverlay@CRANE:
Sequence: crane
WithRepairOverlay@PLATFORM:
Sequence: platform
ANYPOWER:
Tooltip:
Name: Power Plant

View File

@@ -645,4 +645,61 @@ proc: # TODO: unused narefn_a, narefn_b
# Start: 0
# Length: *
icon: reficon
Start: 0
gadept:
idle:
Start: 0
ShadowStart: 3
damaged-idle:
Start: 1
ShadowStart: 4
critical-idle:
Start: 2
ShadowStart: 5
ground: gadeptbb
Start: 0
ShadowStart: 3
ZOffset: -1c611
damaged-ground: gadeptbb
Start: 1
ShadowStart: 4
ZOffset: -1c611
critical-ground: gadeptbb
Start: 2
ShadowStart: 5
ZOffset: -1c611
idle-light: gadept_b
Start: 0
Length: 7
Tick: 120
damaged-idle-light: gadept_b
Start: 7
Length: 7
Tick: 120
circuits: gadept_a
Start: 0
Length: 5
ZOffset: -1c511
damaged-circuits: gadept_a
Start: 5
Length: 5
ZOffset: -1c511
crane: gadept_c
Start: 0
Length: 16
platform: gadept_d
Start: 0
Length: 7
ZOffset: -1c511
damaged-platform: gadept_d
Start: 7
Length: 7
ZOffset: -1c511
make: gadeptmk
Start: 0
Length: 10
Tick: 60
ShadowStart: 10
icon: fixicon
Start: 0