#2038 fixed - add shadow to crates on the ground
This commit is contained in:
@@ -115,7 +115,7 @@ namespace OpenRA.Mods.RA
|
|||||||
Location = cell;
|
Location = cell;
|
||||||
PxPosition = Util.CenterOfCell(cell);
|
PxPosition = Util.CenterOfCell(cell);
|
||||||
|
|
||||||
var seq = self.World.GetTerrainInfo(cell).IsWater ? "water" : "idle";
|
var seq = self.World.GetTerrainInfo(cell).IsWater ? "water" : "land";
|
||||||
var rs = self.Trait<RenderSimple>();
|
var rs = self.Trait<RenderSimple>();
|
||||||
if (seq != rs.anim.CurrentSequence.Name)
|
if (seq != rs.anim.CurrentSequence.Name)
|
||||||
rs.anim.PlayRepeating(seq);
|
rs.anim.PlayRepeating(seq);
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ allyrepair:
|
|||||||
crate:
|
crate:
|
||||||
idle: wcrate
|
idle: wcrate
|
||||||
Start: 0
|
Start: 0
|
||||||
|
land: wcrate
|
||||||
|
Start: 0
|
||||||
|
|
||||||
crate-effects:
|
crate-effects:
|
||||||
airstrike: deviator
|
airstrike: deviator
|
||||||
|
|||||||
BIN
mods/ra/bits/sh-crate.shp
Normal file
BIN
mods/ra/bits/sh-crate.shp
Normal file
Binary file not shown.
@@ -1629,6 +1629,8 @@ crate:
|
|||||||
Start: 0
|
Start: 0
|
||||||
Length: *
|
Length: *
|
||||||
Tick: 500
|
Tick: 500
|
||||||
|
land: sh-crate
|
||||||
|
Start: 0
|
||||||
|
|
||||||
crate-effects:
|
crate-effects:
|
||||||
speed: speed
|
speed: speed
|
||||||
|
|||||||
Reference in New Issue
Block a user