Adds stun status effect

This commit is contained in:
zumorica
2020-05-14 17:26:08 +02:00
parent a8275b4fae
commit b5cf3cf2da
6 changed files with 69 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
using System;
using Content.Shared.GameObjects.Components.Mobs;
using Microsoft.CodeAnalysis.Completion;
using Robust.Client.Animations;
using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations;
@@ -39,7 +40,8 @@ namespace Content.Client.GameObjects.Components.Mobs
return;
}
animation.Stop("rotate");
if (animation.HasRunningAnimation("rotate"))
animation.Stop("rotate");
animation.Play(new Animation
{