From 58d15ebc3b3dce2a184203c2c31e7e46e05fb732 Mon Sep 17 00:00:00 2001 From: mirrorcult Date: Fri, 28 May 2021 01:58:30 -0700 Subject: [PATCH] Fix melee weapon effects being offset incorrectly (#4102) --- Content.Client/GameObjects/EntitySystems/MeleeWeaponSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Client/GameObjects/EntitySystems/MeleeWeaponSystem.cs b/Content.Client/GameObjects/EntitySystems/MeleeWeaponSystem.cs index ce57b2ef7c..9f7d69212f 100644 --- a/Content.Client/GameObjects/EntitySystems/MeleeWeaponSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/MeleeWeaponSystem.cs @@ -77,8 +77,8 @@ namespace Content.Client.GameObjects.EntitySystems Coordinates = attacker.Transform.Coordinates, Color = Vector4.Multiply(new Vector4(255, 255, 255, 125), 1.0f), ColorDelta = Vector4.Multiply(new Vector4(0, 0, 0, -10), 1.0f), - Velocity = msg.Angle.ToVec(), - Acceleration = msg.Angle.ToVec() * 5f, + Velocity = msg.Angle.ToWorldVec(), + Acceleration = msg.Angle.ToWorldVec() * 5f, Born = curTime, DeathTime = curTime.Add(TimeSpan.FromMilliseconds(300f)), };