This commit is contained in:
EvilFactory
2023-10-19 13:36:40 -03:00
21 changed files with 196 additions and 89 deletions
@@ -2186,11 +2186,11 @@ namespace Barotrauma
rotation += spread;
if (projectile != null)
{
var sourceEntity = (sourceBody as ISpatialEntity) ?? entity;
var sourceEntity = (sourceBody?.UserData as ISpatialEntity) ?? entity;
Vector2 spawnPos = sourceEntity.SimPosition;
projectile.Shoot(user, spawnPos, spawnPos, rotation,
ignoredBodies: user?.AnimController.Limbs.Where(l => !l.IsSevered).Select(l => l.body.FarseerBody).ToList(), createNetworkEvent: true);
projectile.Item.Submarine = sourceEntity?.Submarine;
projectile.Item.Submarine = projectile.LaunchSub = sourceEntity?.Submarine;
}
else if (newItem.body != null)
{