Fix tranq shells not injecting solution (#11254)

This commit is contained in:
themias
2022-09-13 22:40:50 -04:00
committed by GitHub
parent b5b5e18a87
commit 2141a31c8a
3 changed files with 9 additions and 0 deletions

View File

@@ -103,6 +103,12 @@ public sealed partial class GunSystem : SharedGunSystem
shotProjectiles.Add(uid);
}
//signal ChemicalAmmo to transfer solution
RaiseLocalEvent(cartridge.Owner, new AmmoShotEvent()
{
FiredProjectiles = shotProjectiles,
}, false);
SetCartridgeSpent(cartridge, true);
MuzzleFlash(gun.Owner, cartridge, user);
PlaySound(gun.Owner, gun.SoundGunshot?.GetSound(Random, ProtoManager), user);