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);

View File

@@ -131,5 +131,7 @@
solution: ammo
- type: SolutionTransfer
maxTransferAmount: 15
- type: ExaminableSolution
solution: ammo
- type: SpentAmmoVisuals
state: "practice"

View File

@@ -100,6 +100,7 @@
solution: ammo
- type: SolutionInjectOnCollide
transferAmount: 15
blockSlots: NONE #tranquillizer darts shouldn't be blocked by a mask
- type: InjectableSolution
solution: ammo