Fixes the projectile list in AmmoShotEvent when firing something with a ProjectileSpreadComponent (#31300)
Fixed multiple projectile addition.
This commit is contained in:
@@ -292,7 +292,7 @@ public sealed partial class GunSystem : SharedGunSystem
|
|||||||
{
|
{
|
||||||
var newuid = Spawn(ammoSpreadComp.Proto, fromEnt);
|
var newuid = Spawn(ammoSpreadComp.Proto, fromEnt);
|
||||||
ShootOrThrow(newuid, angles[i].ToVec(), gunVelocity, gun, gunUid, user);
|
ShootOrThrow(newuid, angles[i].ToVec(), gunVelocity, gun, gunUid, user);
|
||||||
shotProjectiles.Add(ammoEnt);
|
shotProjectiles.Add(newuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user