tesla charges
This commit is contained in:
@@ -106,6 +106,7 @@ namespace OpenRa.Game.Traits
|
||||
|
||||
var firePos = self.CenterLocation.ToInt2() + Util.GetTurretPosition(self, unit, offset, 0f).ToInt2();
|
||||
var thisTarget = target;
|
||||
|
||||
ScheduleDelayedAction(self.Info.FireDelay, () =>
|
||||
{
|
||||
if( weapon.RenderAsTesla )
|
||||
|
||||
23
OpenRa.Game/Traits/RenderBuildingCharge.cs
Normal file
23
OpenRa.Game/Traits/RenderBuildingCharge.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
/* used for tesla */
|
||||
class RenderBuildingCharge : RenderBuilding, INotifyAttack
|
||||
{
|
||||
public RenderBuildingCharge(Actor self)
|
||||
: base(self)
|
||||
{
|
||||
}
|
||||
|
||||
public void Attacking(Actor self)
|
||||
{
|
||||
var prev = anim.CurrentSequence.Name;
|
||||
Sound.Play("tslachg2.aud");
|
||||
anim.PlayThen("active", () => anim.PlayRepeating(prev));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user