#2038 fixed - add shadow to crates on the ground
This commit is contained in:
@@ -115,7 +115,7 @@ namespace OpenRA.Mods.RA
|
||||
Location = 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>();
|
||||
if (seq != rs.anim.CurrentSequence.Name)
|
||||
rs.anim.PlayRepeating(seq);
|
||||
|
||||
@@ -120,6 +120,8 @@ allyrepair:
|
||||
crate:
|
||||
idle: wcrate
|
||||
Start: 0
|
||||
land: wcrate
|
||||
Start: 0
|
||||
|
||||
crate-effects:
|
||||
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
|
||||
Length: *
|
||||
Tick: 500
|
||||
land: sh-crate
|
||||
Start: 0
|
||||
|
||||
crate-effects:
|
||||
speed: speed
|
||||
|
||||
Reference in New Issue
Block a user