Make projectiles not hit crit mobs unless clicked on (#27905)

This commit is contained in:
DrSmugleaf
2024-05-11 08:42:11 -07:00
committed by GitHub
parent 1698e1cfab
commit 8b88fe4bb7
7 changed files with 56 additions and 2 deletions

View File

@@ -1,5 +1,3 @@
using Content.Shared.Damage;
using Content.Shared.Tag;
using Content.Shared.Weapons.Ranged.Events;
using Content.Shared.Weapons.Ranged.Systems;
using Robust.Shared.Audio;
@@ -139,6 +137,12 @@ public sealed partial class GunComponent : Component
[ViewVariables]
public EntityCoordinates? ShootCoordinates = null;
/// <summary>
/// Who the gun is being requested to shoot at directly.
/// </summary>
[ViewVariables]
public EntityUid? Target = null;
/// <summary>
/// The base value for how many shots to fire per burst.
/// </summary>