Bullet impact effects (#9530)
This commit is contained in:
@@ -8,6 +8,7 @@ using Content.Shared.Examine;
|
||||
using Content.Shared.Hands.Components;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Projectiles;
|
||||
using Content.Shared.Throwing;
|
||||
using Content.Shared.Verbs;
|
||||
using Content.Shared.Weapons.Ranged.Components;
|
||||
@@ -43,7 +44,8 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
[Dependency] protected readonly SharedPhysicsSystem Physics = default!;
|
||||
[Dependency] protected readonly SharedPopupSystem PopupSystem = default!;
|
||||
[Dependency] protected readonly ThrowingSystem ThrowingSystem = default!;
|
||||
[Dependency] protected readonly TagSystem _tagSystem = default!;
|
||||
[Dependency] protected readonly TagSystem TagSystem = default!;
|
||||
[Dependency] protected readonly SharedProjectileSystem Projectiles = default!;
|
||||
|
||||
protected ISawmill Sawmill = default!;
|
||||
|
||||
@@ -88,7 +90,7 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
|
||||
private void OnGunMeleeAttempt(EntityUid uid, GunComponent component, ref MeleeAttackAttemptEvent args)
|
||||
{
|
||||
if (_tagSystem.HasTag(args.User, "GunsDisabled"))
|
||||
if (TagSystem.HasTag(args.User, "GunsDisabled"))
|
||||
return;
|
||||
|
||||
args.Cancelled = true;
|
||||
@@ -186,7 +188,7 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
|
||||
if (toCoordinates == null) return;
|
||||
|
||||
if (_tagSystem.HasTag(user, "GunsDisabled"))
|
||||
if (TagSystem.HasTag(user, "GunsDisabled"))
|
||||
{
|
||||
Popup(Loc.GetString("gun-disabled"), user, user);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user