(7c7004099) Fixed syringes being launched backwards from the syringe gun when firing to the right.
This commit is contained in:
@@ -164,7 +164,7 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
//set the rotation of the projectile again because dropping the projectile resets the rotation
|
//set the rotation of the projectile again because dropping the projectile resets the rotation
|
||||||
projectile.Item.SetTransform(projectilePos,
|
projectile.Item.SetTransform(projectilePos,
|
||||||
rotation + ((item.body.Dir == 1.0f) ? projectile.LaunchRotationRadians : projectile.LaunchRotationRadians - MathHelper.Pi));
|
rotation + (projectile.Item.body.Dir * projectile.LaunchRotationRadians));
|
||||||
|
|
||||||
//recoil
|
//recoil
|
||||||
item.body.ApplyLinearImpulse(
|
item.body.ApplyLinearImpulse(
|
||||||
|
|||||||
Reference in New Issue
Block a user