From 3eb11d9c5d03a734639b3428f0a51265d30465ee Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 2 Apr 2019 12:42:14 +0300 Subject: [PATCH] (7c7004099) Fixed syringes being launched backwards from the syringe gun when firing to the right. --- .../Source/Items/Components/Holdable/RangedWeapon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/RangedWeapon.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/RangedWeapon.cs index 0c14f05fa..25845c874 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/RangedWeapon.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/RangedWeapon.cs @@ -164,7 +164,7 @@ namespace Barotrauma.Items.Components //set the rotation of the projectile again because dropping the projectile resets the rotation projectile.Item.SetTransform(projectilePos, - rotation + ((item.body.Dir == 1.0f) ? projectile.LaunchRotationRadians : projectile.LaunchRotationRadians - MathHelper.Pi)); + rotation + (projectile.Item.body.Dir * projectile.LaunchRotationRadians)); //recoil item.body.ApplyLinearImpulse(