Make bullets inherit the velocity of the grid, not the gun or player (#27484)

This commit is contained in:
DrSmugleaf 2024-04-29 06:12:29 -07:00 committed by null
parent 1f63363b45
commit dbf25845d5
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public sealed partial class GunSystem : SharedGunSystem
// Update shot based on the recoil
toMap = fromMap.Position + angle.ToVec() * mapDirection.Length();
mapDirection = toMap - fromMap.Position;
var gunVelocity = Physics.GetMapLinearVelocity(gunUid);
var gunVelocity = Physics.GetMapLinearVelocity(fromEnt);
// I must be high because this was getting tripped even when true.
// DebugTools.Assert(direction != Vector2.Zero);