Files
Delta-v/Content.Shared/Weapons/Ranged/Events/RequestShootEvent.cs
T
SlamBamActionman ddeea645ef Add an option for hold-to-attack in settings (#42596)
* Initial commit

* Separate ranged and melee

* Move to controls tab
2026-06-29 12:43:40 +02:00

33 lines
831 B
C#

using Robust.Shared.Map;
using Robust.Shared.Serialization;
namespace Content.Shared.Weapons.Ranged.Events;
/// <summary>
/// Raised on the client to indicate it'd like to shoot.
/// </summary>
[Serializable, NetSerializable]
public sealed class RequestShootEvent : EntityEventArgs
{
/// <summary>
/// The gun shooting.
/// </summary>
public NetEntity Gun;
/// <summary>
/// The location the player is shooting at.
/// </summary>
public NetCoordinates Coordinates;
/// <summary>
/// The target the player is shooting at, if any.
/// </summary>
public NetEntity? Target;
/// <summary>
/// If the client wants to continuously shoot.
/// If true, the gun will continue firing until a stop event is sent from the client.
/// </summary>
public bool Continuous;
}