#2038 fixed - add shadow to crates on the ground

This commit is contained in:
Chris Forbes
2012-04-24 19:17:41 +12:00
parent f86332fd99
commit c4916bd997
4 changed files with 5 additions and 1 deletions

View File

@@ -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);

View File

@@ -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

Binary file not shown.

View File

@@ -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