tweaks, setup flame and boom variants of ExplodeCrateAction

This commit is contained in:
Chris Forbes
2010-03-21 10:06:06 +13:00
parent a38b5b89db
commit 0f902ae41a
4 changed files with 14 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ using System.Text;
using OpenRA.Traits; using OpenRA.Traits;
using OpenRA.Effects; using OpenRA.Effects;
namespace OpenRA.Mods.RA.Crates namespace OpenRA.Mods.RA
{ {
class ExplodeCrateActionInfo : ITraitInfo class ExplodeCrateActionInfo : ITraitInfo
{ {
@@ -23,6 +23,7 @@ namespace OpenRA.Mods.RA.Crates
public ExplodeCrateAction(Actor self, ExplodeCrateActionInfo info) public ExplodeCrateAction(Actor self, ExplodeCrateActionInfo info)
{ {
this.self = self; this.self = self;
this.info = info;
} }
public int SelectionShares public int SelectionShares

View File

@@ -661,6 +661,7 @@ Verses=90%,100%,60%,25%,50%
Explosion=3 Explosion=3
InfDeath=4 InfDeath=4
SmudgeType=Scorch SmudgeType=Scorch
ImpactSound=firebl3
; anti-infantry rifle bullet (single shot -- very effective verses infantry) ; anti-infantry rifle bullet (single shot -- very effective verses infantry)
[HollowPoint] [HollowPoint]

View File

@@ -646,6 +646,12 @@ CRATE:
ArmorUpgradeCrateAction: ArmorUpgradeCrateAction:
Multiplier: 2.0 Multiplier: 2.0
SelectionShares: 10 SelectionShares: 10
ExplodeCrateAction@fire:
Weapon: Napalm
SelectionShares: 80
ExplodeCrateAction@boom:
Weapon: UnitExplode
SelectionShares: 80
Unit: Unit:
HP: 1 HP: 1
RenderUnit: RenderUnit:

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- openra/sequences.xml <!-- openra/sequences.xml
this file describes animation sequences for structures and units. this file describes animation sequences for structures and units.
@@ -892,4 +892,7 @@
<unit name="atomicdn"> <unit name="atomicdn">
<sequence name="idle" start="0" length="4" /> <sequence name="idle" start="0" length="4" />
</unit> </unit>
</sequences> <unit name="bomblet">
<sequence name="idle" start="0" length="7" />
</unit>
</sequences>