Merge pull request #3111 from Mailaender/ra-building-artwork
Red Alert building artwork polishing
This commit is contained in:
@@ -30,9 +30,10 @@ namespace OpenRA.Mods.RA.Render
|
|||||||
Info = info;
|
Info = info;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void BuildingComplete( Actor self )
|
public void BuildingComplete(Actor self)
|
||||||
{
|
{
|
||||||
anim.PlayFetchIndex("idle",
|
var animation = (self.GetDamageState() >= DamageState.Heavy) ? "damaged-idle" : "idle";
|
||||||
|
anim.PlayFetchIndex(animation,
|
||||||
() => playerResources.OreCapacity != 0
|
() => playerResources.OreCapacity != 0
|
||||||
? (Info.FillSteps * playerResources.Ore) / (10 * playerResources.OreCapacity)
|
? (Info.FillSteps * playerResources.Ore) / (10 * playerResources.OreCapacity)
|
||||||
: 0);
|
: 0);
|
||||||
|
|||||||
BIN
mods/ra/bits/apwrdead.shp
Normal file
BIN
mods/ra/bits/apwrdead.shp
Normal file
Binary file not shown.
BIN
mods/ra/bits/factdead.shp
Normal file
BIN
mods/ra/bits/factdead.shp
Normal file
Binary file not shown.
Binary file not shown.
BIN
mods/ra/bits/powrdead.shp
Normal file
BIN
mods/ra/bits/powrdead.shp
Normal file
Binary file not shown.
BIN
mods/ra/bits/procdead.shp
Normal file
BIN
mods/ra/bits/procdead.shp
Normal file
Binary file not shown.
BIN
mods/ra/bits/silo2.shp
Normal file
BIN
mods/ra/bits/silo2.shp
Normal file
Binary file not shown.
BIN
mods/ra/bits/weap3.shp
Normal file
BIN
mods/ra/bits/weap3.shp
Normal file
Binary file not shown.
@@ -948,7 +948,8 @@ FACT:
|
|||||||
Facing: 96
|
Facing: 96
|
||||||
ProductionBar:
|
ProductionBar:
|
||||||
-Sellable:
|
-Sellable:
|
||||||
|
DeadBuildingState:
|
||||||
|
|
||||||
PROC:
|
PROC:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
Buildable:
|
Buildable:
|
||||||
@@ -990,6 +991,7 @@ PROC:
|
|||||||
Percentage: 50
|
Percentage: 50
|
||||||
Minimum: 500
|
Minimum: 500
|
||||||
SoundToVictim: credit1.aud
|
SoundToVictim: credit1.aud
|
||||||
|
DeadBuildingState:
|
||||||
|
|
||||||
SILO:
|
SILO:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
@@ -1014,6 +1016,7 @@ SILO:
|
|||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 4
|
Range: 4
|
||||||
RenderBuildingSilo:
|
RenderBuildingSilo:
|
||||||
|
FillSteps: 89
|
||||||
StoresOre:
|
StoresOre:
|
||||||
PipCount: 5
|
PipCount: 5
|
||||||
Capacity: 1500
|
Capacity: 1500
|
||||||
@@ -1133,6 +1136,7 @@ POWR:
|
|||||||
Range: 4
|
Range: 4
|
||||||
Bib:
|
Bib:
|
||||||
IronCurtainable:
|
IronCurtainable:
|
||||||
|
DeadBuildingState:
|
||||||
|
|
||||||
APWR:
|
APWR:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
@@ -1161,6 +1165,7 @@ APWR:
|
|||||||
Range: 4
|
Range: 4
|
||||||
Bib:
|
Bib:
|
||||||
IronCurtainable:
|
IronCurtainable:
|
||||||
|
DeadBuildingState:
|
||||||
|
|
||||||
STEK:
|
STEK:
|
||||||
Inherits: ^Building
|
Inherits: ^Building
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ fact:
|
|||||||
damaged-build:
|
damaged-build:
|
||||||
Start: 27
|
Start: 27
|
||||||
Length: 25
|
Length: 25
|
||||||
|
dead: factdead
|
||||||
|
Start: 0
|
||||||
|
|
||||||
proc:
|
proc:
|
||||||
idle:
|
idle:
|
||||||
@@ -59,14 +61,16 @@ proc:
|
|||||||
make: procmake
|
make: procmake
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
|
dead: procdead
|
||||||
|
Start: 0
|
||||||
|
|
||||||
silo:
|
silo:
|
||||||
idle:
|
idle: silo2
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: 5
|
Length: 9
|
||||||
damaged-idle:
|
damaged-idle: silo2
|
||||||
Start: 5
|
Start: 9
|
||||||
Length: 5
|
Length: 9
|
||||||
make: silomake
|
make: silomake
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
@@ -79,6 +83,8 @@ powr:
|
|||||||
make: powrmake
|
make: powrmake
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
|
dead: powrdead
|
||||||
|
Start: 0
|
||||||
|
|
||||||
apwr:
|
apwr:
|
||||||
idle:
|
idle:
|
||||||
@@ -88,6 +94,8 @@ apwr:
|
|||||||
make: apwrmake
|
make: apwrmake
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
|
dead: apwrdead
|
||||||
|
Start: 0
|
||||||
|
|
||||||
barr:
|
barr:
|
||||||
idle:
|
idle:
|
||||||
@@ -158,9 +166,9 @@ weap:
|
|||||||
make: weapmake
|
make: weapmake
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
build-top: weap2
|
build-top: weap3
|
||||||
Start: 0
|
Start: 0
|
||||||
Length: 4
|
Length: 10
|
||||||
damaged-build-top: weap2
|
damaged-build-top: weap2
|
||||||
Start: 4
|
Start: 4
|
||||||
Length: 4
|
Length: 4
|
||||||
|
|||||||
Reference in New Issue
Block a user