Add (laser-)viceroids. Needs a proper weapon.

This commit is contained in:
Paul Chote
2011-02-10 22:50:35 +13:00
parent 48482cf09a
commit 8844ca0fdd
2 changed files with 18 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA.Render
{ {
canSmoke = self.Info.Traits.Get<RenderUnitInfo>().Smokes; canSmoke = self.Info.Traits.Get<RenderUnitInfo>().Smokes;
anim.Play("idle"); anim.PlayRepeating("idle");
if (canSmoke) if (canSmoke)
anims.Add( "smoke", new AnimationWithOffset( new Animation( "smoke_m" ), null, () => !isSmoking ) ); anims.Add( "smoke", new AnimationWithOffset( new Animation( "smoke_m" ), null, () => !isSmoking ) );

View File

@@ -186,3 +186,20 @@ RMBO:
PrimaryWeapon: Sniper PrimaryWeapon: Sniper
IdleAnimation: IdleAnimation:
Animations: idle1,idle2,idle3 Animations: idle1,idle2,idle3
VICE:
Inherits: ^Infantry
Valued:
Cost: 1000
Tooltip:
Name: Viceroid
Icon: rmboicnh
Mobile:
Speed: 5
Health:
HP: 400
AttackFrontal:
PrimaryWeapon: Laser
AttackWander:
-RenderInfantry:
RenderUnit: