Parent muzzle flashes to the shooter (#1935)

I didn't do hitscan because it would look weird af unless someone has a better idea.

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-08-29 20:47:03 +10:00
committed by GitHub
parent cc1125cd91
commit 033ddb04e0
2 changed files with 4 additions and 3 deletions

View File

@@ -260,7 +260,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
if (CanMuzzleFlash)
{
ammoComponent.MuzzleFlash(Owner.Transform.GridPosition, angle);
ammoComponent.MuzzleFlash(Owner, angle);
}
if (ammoComponent.Caseless)