From 2bc38fd751dfaa882eabb276fc2864ec8bfc26f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 21 Apr 2013 08:38:52 +0200 Subject: [PATCH] don't hard-code smokey.shp --- OpenRA.Mods.RA/SmokeTrailWhenDamaged.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/SmokeTrailWhenDamaged.cs b/OpenRA.Mods.RA/SmokeTrailWhenDamaged.cs index a6d9ac9668..ff4d3972d5 100644 --- a/OpenRA.Mods.RA/SmokeTrailWhenDamaged.cs +++ b/OpenRA.Mods.RA/SmokeTrailWhenDamaged.cs @@ -19,6 +19,7 @@ namespace OpenRA.Mods.RA [Desc("Position relative to body")] public readonly WVec Offset = WVec.Zero; public readonly int Interval = 3; + public readonly string Sprite = "smokey"; public object Create(ActorInitializer init) { return new SmokeTrailWhenDamaged(init.self, this); } } @@ -45,7 +46,7 @@ namespace OpenRA.Mods.RA { var offset = info.Offset.Rotate(coords.QuantizeOrientation(self, self.Orientation)); var pos = PPos.FromWPosHackZ(position + coords.LocalToWorld(offset)); - self.World.AddFrameEndTask(w => w.Add(new Smoke(w, pos, "smokey"))); + self.World.AddFrameEndTask(w => w.Add(new Smoke(w, pos, info.Sprite))); } ticks = info.Interval;