Fixes bullet rotation (#5179)
Fixes bullets being fired from weapons at the wrong rotation
This commit is contained in:
@@ -359,7 +359,7 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
projectile.Transform.LocalRotation = projectileAngle + MathHelper.PiOver2;
|
projectile.Transform.WorldRotation = projectileAngle + MathHelper.PiOver2;
|
||||||
}
|
}
|
||||||
#pragma warning disable 618
|
#pragma warning disable 618
|
||||||
ammo.SendMessage(this, new BarrelFiredMessage(firedProjectiles));
|
ammo.SendMessage(this, new BarrelFiredMessage(firedProjectiles));
|
||||||
|
|||||||
Reference in New Issue
Block a user