Apply forensics when loading with an ammo box (#32280)
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Content.Shared.Weapons.Ranged.Systems;
|
||||
public abstract partial class SharedGunSystem
|
||||
{
|
||||
[Dependency] private readonly SharedDoAfterSystem _doAfter = default!;
|
||||
[Dependency] private readonly SharedInteractionSystem _interaction = default!;
|
||||
|
||||
|
||||
protected virtual void InitializeBallistic()
|
||||
@@ -117,8 +118,8 @@ public abstract partial class SharedGunSystem
|
||||
|
||||
void SimulateInsertAmmo(EntityUid ammo, EntityUid ammoProvider, EntityCoordinates coordinates)
|
||||
{
|
||||
var evInsert = new InteractUsingEvent(args.User, ammo, ammoProvider, coordinates);
|
||||
RaiseLocalEvent(ammoProvider, evInsert);
|
||||
// We call SharedInteractionSystem to raise contact events. Checks are already done by this point.
|
||||
_interaction.InteractUsing(args.User, ammo, ammoProvider, coordinates, checkCanInteract: false, checkCanUse: false);
|
||||
}
|
||||
|
||||
List<(EntityUid? Entity, IShootable Shootable)> ammo = new();
|
||||
|
||||
Reference in New Issue
Block a user