- add: more interaction shit

This commit is contained in:
2024-02-26 21:43:11 +03:00
parent b63a46e032
commit a31947423c
27 changed files with 752 additions and 97 deletions

View File

@@ -46,8 +46,11 @@ public sealed class SharebleAnimationSystem : SharedAnimationSystem
public override void Play(EntityUid uid,AnimationData data, string animationId = "funny")
{
if(_animation.HasRunningAnimation(uid,animationId))
return;
if (_animation.HasRunningAnimation(uid, animationId))
{
Logger.Error($"Entity {ToPrettyString(uid)} has running animation {animationId}");
_animation.Stop(uid,animationId);
}
var animation = ParseAnimation(data);
_animation.Play(uid,animation,animationId);