Make attack animation follow the character (#1071)

* Fix #971

* Make atacker parent of the animation instead
This commit is contained in:
Clyybber
2020-06-05 13:00:32 +02:00
committed by GitHub
parent 365a050e70
commit 19c9e3e4f9
2 changed files with 6 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ namespace Content.Client.GameObjects.EntitySystems
entity.Transform.LocalRotation = msg.Angle;
var weaponArcAnimation = entity.GetComponent<MeleeWeaponArcAnimationComponent>();
weaponArcAnimation.SetData(weaponArc, msg.Angle);
weaponArcAnimation.SetData(weaponArc, msg.Angle, attacker);
foreach (var uid in msg.Hits)