Idle animations for infantry. Enabled for cnc e3.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
using OpenRA.Mods.RA.Effects;
|
||||
using OpenRA.Traits;
|
||||
using OpenRA.Traits.Activities;
|
||||
using OpenRA.Mods.RA.Activities;
|
||||
|
||||
namespace OpenRA.Mods.RA.Render
|
||||
{
|
||||
@@ -66,10 +67,9 @@ namespace OpenRA.Mods.RA.Render
|
||||
{
|
||||
base.Tick(self);
|
||||
if (inAttack) return;
|
||||
if (self.GetCurrentActivity() is Activities.IdleAnimation) return;
|
||||
if (ChooseMoveAnim(self)) return;
|
||||
|
||||
/* todo: idle anims, etc */
|
||||
|
||||
if (IsProne(self))
|
||||
anim.PlayFetchIndex("crawl", () => 0); /* what a hack. */
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user